Mercurial > hg > CbC > CbC_gcc
comparison gcc/configure.orig @ 57:326d9e06c2e3
modify c-parser.c
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 15 Feb 2010 00:54:17 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
54:f62c169bbc24 | 57:326d9e06c2e3 |
---|---|
1 #! /bin/sh | |
2 # Guess values for system-dependent variables and create Makefiles. | |
3 # Generated by GNU Autoconf 2.64. | |
4 # | |
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 # Foundation, Inc. | |
8 # | |
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 # Pre-4.2 versions of Zsh do 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*) : | |
27 set -o posix ;; #( | |
28 *) : | |
29 ;; | |
30 esac | |
31 fi | |
32 | |
33 | |
34 as_nl=' | |
35 ' | |
36 export as_nl | |
37 # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 # but without wasting forks for bash or zsh. | |
43 if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 as_echo='print -r --' | |
46 as_echo_n='print -rn --' | |
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 as_echo='printf %s\n' | |
49 as_echo_n='printf %s' | |
50 else | |
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 as_echo_n='/usr/ucb/echo -n' | |
54 else | |
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 as_echo_n_body='eval | |
57 arg=$1; | |
58 case $arg in #( | |
59 *"$as_nl"*) | |
60 expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 esac; | |
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 ' | |
65 export as_echo_n_body | |
66 as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 fi | |
68 export as_echo_body | |
69 as_echo='sh -c $as_echo_body as_echo' | |
70 fi | |
71 | |
72 # The user is always right. | |
73 if test "${PATH_SEPARATOR+set}" != set; then | |
74 PATH_SEPARATOR=: | |
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 PATH_SEPARATOR=';' | |
78 } | |
79 fi | |
80 | |
81 | |
82 # IFS | |
83 # We need space, tab and new line, in precisely that order. Quoting is | |
84 # there to prevent editors from complaining about space-tab. | |
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 # splitting by setting IFS to empty value.) | |
87 IFS=" "" $as_nl" | |
88 | |
89 # Find who we are. Look in the path if we contain no directory separator. | |
90 case $0 in #(( | |
91 *[\\/]* ) as_myself=$0 ;; | |
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 for as_dir in $PATH | |
94 do | |
95 IFS=$as_save_IFS | |
96 test -z "$as_dir" && as_dir=. | |
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 done | |
99 IFS=$as_save_IFS | |
100 | |
101 ;; | |
102 esac | |
103 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 # in which case we are not to be found in the path. | |
105 if test "x$as_myself" = x; then | |
106 as_myself=$0 | |
107 fi | |
108 if test ! -f "$as_myself"; then | |
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 exit 1 | |
111 fi | |
112 | |
113 # Unset variables that we do not need and which cause bugs (e.g. in | |
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 # suppresses any "Segmentation fault" message there. '((' could | |
116 # trigger a bug in pdksh 5.2.14. | |
117 for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 do eval test x\${$as_var+set} = xset \ | |
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 done | |
121 PS1='$ ' | |
122 PS2='> ' | |
123 PS4='+ ' | |
124 | |
125 # NLS nuisances. | |
126 LC_ALL=C | |
127 export LC_ALL | |
128 LANGUAGE=C | |
129 export LANGUAGE | |
130 | |
131 # CDPATH. | |
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | |
134 if test "x$CONFIG_SHELL" = x; then | |
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 emulate sh | |
137 NULLCMD=: | |
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 # is contrary to our usage. Disable this feature. | |
140 alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 setopt NO_GLOB_SUBST | |
142 else | |
143 case \`(set -o) 2>/dev/null\` in #( | |
144 *posix*) : | |
145 set -o posix ;; #( | |
146 *) : | |
147 ;; | |
148 esac | |
149 fi | |
150 " | |
151 as_required="as_fn_return () { (exit \$1); } | |
152 as_fn_success () { as_fn_return 0; } | |
153 as_fn_failure () { as_fn_return 1; } | |
154 as_fn_ret_success () { return 0; } | |
155 as_fn_ret_failure () { return 1; } | |
156 | |
157 exitcode=0 | |
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | |
164 else | |
165 exitcode=1; echo positional parameters were not saved. | |
166 fi | |
167 test x\$exitcode = x0 || exit 1" | |
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
172 test \$(( 1 + 1 )) = 2 || exit 1 | |
173 | |
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
178 PATH=/empty FPATH=/empty; export PATH FPATH | |
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | |
181 if (eval "$as_required") 2>/dev/null; then : | |
182 as_have_required=yes | |
183 else | |
184 as_have_required=no | |
185 fi | |
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
187 | |
188 else | |
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
190 as_found=false | |
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
192 do | |
193 IFS=$as_save_IFS | |
194 test -z "$as_dir" && as_dir=. | |
195 as_found=: | |
196 case $as_dir in #( | |
197 /*) | |
198 for as_base in sh bash ksh sh5; do | |
199 # Try only shells that exist, to save several forks. | |
200 as_shell=$as_dir/$as_base | |
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
203 CONFIG_SHELL=$as_shell as_have_required=yes | |
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
205 break 2 | |
206 fi | |
207 fi | |
208 done;; | |
209 esac | |
210 as_found=false | |
211 done | |
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
214 CONFIG_SHELL=$SHELL as_have_required=yes | |
215 fi; } | |
216 IFS=$as_save_IFS | |
217 | |
218 | |
219 if test "x$CONFIG_SHELL" != x; then : | |
220 # We cannot yet assume a decent shell, so we have to provide a | |
221 # neutralization value for shells without unset; and this also | |
222 # works around shells that cannot unset nonexistent variables. | |
223 BASH_ENV=/dev/null | |
224 ENV=/dev/null | |
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
226 export CONFIG_SHELL | |
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
228 fi | |
229 | |
230 if test x$as_have_required = xno; then : | |
231 $as_echo "$0: This script requires a shell more modern than all" | |
232 $as_echo "$0: the shells that I found on your system." | |
233 if test x${ZSH_VERSION+set} = xset ; then | |
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
236 else | |
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
238 $0: including any error possibly output before this | |
239 $0: message. Then install a modern shell, or manually run | |
240 $0: the script under such a shell if you do have one." | |
241 fi | |
242 exit 1 | |
243 fi | |
244 fi | |
245 fi | |
246 SHELL=${CONFIG_SHELL-/bin/sh} | |
247 export SHELL | |
248 # Unset more variables known to interfere with behavior of common tools. | |
249 CLICOLOR_FORCE= GREP_OPTIONS= | |
250 unset CLICOLOR_FORCE GREP_OPTIONS | |
251 | |
252 ## --------------------- ## | |
253 ## M4sh Shell Functions. ## | |
254 ## --------------------- ## | |
255 # as_fn_unset VAR | |
256 # --------------- | |
257 # Portably unset VAR. | |
258 as_fn_unset () | |
259 { | |
260 { eval $1=; unset $1;} | |
261 } | |
262 as_unset=as_fn_unset | |
263 | |
264 # as_fn_set_status STATUS | |
265 # ----------------------- | |
266 # Set $? to STATUS, without forking. | |
267 as_fn_set_status () | |
268 { | |
269 return $1 | |
270 } # as_fn_set_status | |
271 | |
272 # as_fn_exit STATUS | |
273 # ----------------- | |
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
275 as_fn_exit () | |
276 { | |
277 set +e | |
278 as_fn_set_status $1 | |
279 exit $1 | |
280 } # as_fn_exit | |
281 | |
282 # as_fn_mkdir_p | |
283 # ------------- | |
284 # Create "$as_dir" as a directory, including parents if necessary. | |
285 as_fn_mkdir_p () | |
286 { | |
287 | |
288 case $as_dir in #( | |
289 -*) as_dir=./$as_dir;; | |
290 esac | |
291 test -d "$as_dir" || eval $as_mkdir_p || { | |
292 as_dirs= | |
293 while :; do | |
294 case $as_dir in #( | |
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
296 *) as_qdir=$as_dir;; | |
297 esac | |
298 as_dirs="'$as_qdir' $as_dirs" | |
299 as_dir=`$as_dirname -- "$as_dir" || | |
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
301 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
302 X"$as_dir" : 'X\(//\)$' \| \ | |
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
304 $as_echo X"$as_dir" | | |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
306 s//\1/ | |
307 q | |
308 } | |
309 /^X\(\/\/\)[^/].*/{ | |
310 s//\1/ | |
311 q | |
312 } | |
313 /^X\(\/\/\)$/{ | |
314 s//\1/ | |
315 q | |
316 } | |
317 /^X\(\/\).*/{ | |
318 s//\1/ | |
319 q | |
320 } | |
321 s/.*/./; q'` | |
322 test -d "$as_dir" && break | |
323 done | |
324 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
326 | |
327 | |
328 } # as_fn_mkdir_p | |
329 # as_fn_append VAR VALUE | |
330 # ---------------------- | |
331 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
332 # advantage of any shell optimizations that allow amortized linear growth over | |
333 # repeated appends, instead of the typical quadratic growth present in naive | |
334 # implementations. | |
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
336 eval 'as_fn_append () | |
337 { | |
338 eval $1+=\$2 | |
339 }' | |
340 else | |
341 as_fn_append () | |
342 { | |
343 eval $1=\$$1\$2 | |
344 } | |
345 fi # as_fn_append | |
346 | |
347 # as_fn_arith ARG... | |
348 # ------------------ | |
349 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
351 # must be portable across $(()) and expr. | |
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
353 eval 'as_fn_arith () | |
354 { | |
355 as_val=$(( $* )) | |
356 }' | |
357 else | |
358 as_fn_arith () | |
359 { | |
360 as_val=`expr "$@" || test $? -eq 1` | |
361 } | |
362 fi # as_fn_arith | |
363 | |
364 | |
365 # as_fn_error ERROR [LINENO LOG_FD] | |
366 # --------------------------------- | |
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
369 # script with status $?, using 1 if that was 0. | |
370 as_fn_error () | |
371 { | |
372 as_status=$?; test $as_status -eq 0 && as_status=1 | |
373 if test "$3"; then | |
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
376 fi | |
377 $as_echo "$as_me: error: $1" >&2 | |
378 as_fn_exit $as_status | |
379 } # as_fn_error | |
380 | |
381 if expr a : '\(a\)' >/dev/null 2>&1 && | |
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
383 as_expr=expr | |
384 else | |
385 as_expr=false | |
386 fi | |
387 | |
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
389 as_basename=basename | |
390 else | |
391 as_basename=false | |
392 fi | |
393 | |
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
395 as_dirname=dirname | |
396 else | |
397 as_dirname=false | |
398 fi | |
399 | |
400 as_me=`$as_basename -- "$0" || | |
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
402 X"$0" : 'X\(//\)$' \| \ | |
403 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
404 $as_echo X/"$0" | | |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
406 s//\1/ | |
407 q | |
408 } | |
409 /^X\/\(\/\/\)$/{ | |
410 s//\1/ | |
411 q | |
412 } | |
413 /^X\/\(\/\).*/{ | |
414 s//\1/ | |
415 q | |
416 } | |
417 s/.*/./; q'` | |
418 | |
419 # Avoid depending upon Character Ranges. | |
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
423 as_cr_digits='0123456789' | |
424 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
425 | |
426 | |
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
432 sed -n ' | |
433 p | |
434 /[$]LINENO/= | |
435 ' <$as_myself | | |
436 sed ' | |
437 s/[$]LINENO.*/&-/ | |
438 t lineno | |
439 b | |
440 :lineno | |
441 N | |
442 :loop | |
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
444 t loop | |
445 s/-\n.*// | |
446 ' >$as_me.lineno && | |
447 chmod +x "$as_me.lineno" || | |
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
449 | |
450 # Don't try to exec as it changes $[0], causing all sort of problems | |
451 # (the dirname of $[0] is not the place where we might find the | |
452 # original and so on. Autoconf is especially sensitive to this). | |
453 . "./$as_me.lineno" | |
454 # Exit status is that of the last command. | |
455 exit | |
456 } | |
457 | |
458 ECHO_C= ECHO_N= ECHO_T= | |
459 case `echo -n x` in #((((( | |
460 -n*) | |
461 case `echo 'xy\c'` in | |
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
463 xy) ECHO_C='\c';; | |
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
465 ECHO_T=' ';; | |
466 esac;; | |
467 *) | |
468 ECHO_N='-n';; | |
469 esac | |
470 | |
471 rm -f conf$$ conf$$.exe conf$$.file | |
472 if test -d conf$$.dir; then | |
473 rm -f conf$$.dir/conf$$.file | |
474 else | |
475 rm -f conf$$.dir | |
476 mkdir conf$$.dir 2>/dev/null | |
477 fi | |
478 if (echo >conf$$.file) 2>/dev/null; then | |
479 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
480 as_ln_s='ln -s' | |
481 # ... but there are two gotchas: | |
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
484 # In both cases, we have to default to `cp -p'. | |
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
486 as_ln_s='cp -p' | |
487 elif ln conf$$.file conf$$ 2>/dev/null; then | |
488 as_ln_s=ln | |
489 else | |
490 as_ln_s='cp -p' | |
491 fi | |
492 else | |
493 as_ln_s='cp -p' | |
494 fi | |
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
496 rmdir conf$$.dir 2>/dev/null | |
497 | |
498 if mkdir -p . 2>/dev/null; then | |
499 as_mkdir_p='mkdir -p "$as_dir"' | |
500 else | |
501 test -d ./-p && rmdir ./-p | |
502 as_mkdir_p=false | |
503 fi | |
504 | |
505 if test -x / >/dev/null 2>&1; then | |
506 as_test_x='test -x' | |
507 else | |
508 if ls -dL / >/dev/null 2>&1; then | |
509 as_ls_L_option=L | |
510 else | |
511 as_ls_L_option= | |
512 fi | |
513 as_test_x=' | |
514 eval sh -c '\'' | |
515 if test -d "$1"; then | |
516 test -d "$1/."; | |
517 else | |
518 case $1 in #( | |
519 -*)set "./$1";; | |
520 esac; | |
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
522 ???[sx]*):;;*)false;;esac;fi | |
523 '\'' sh | |
524 ' | |
525 fi | |
526 as_executable_p=$as_test_x | |
527 | |
528 # Sed expression to map a string onto a valid CPP name. | |
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
530 | |
531 # Sed expression to map a string onto a valid variable name. | |
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
533 | |
534 SHELL=${CONFIG_SHELL-/bin/sh} | |
535 | |
536 | |
537 exec 7<&0 </dev/null 6>&1 | |
538 | |
539 # Name of the host. | |
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
541 # so uname gets run too. | |
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
543 | |
544 # | |
545 # Initializations. | |
546 # | |
547 ac_default_prefix=/usr/local | |
548 ac_clean_files= | |
549 ac_config_libobj_dir=. | |
550 LIBOBJS= | |
551 cross_compiling=no | |
552 subdirs= | |
553 MFLAGS= | |
554 MAKEFLAGS= | |
555 | |
556 # Identity of this package. | |
557 PACKAGE_NAME= | |
558 PACKAGE_TARNAME= | |
559 PACKAGE_VERSION= | |
560 PACKAGE_STRING= | |
561 PACKAGE_BUGREPORT= | |
562 PACKAGE_URL= | |
563 | |
564 ac_unique_file="tree.c" | |
565 # Factoring default headers for most tests. | |
566 ac_includes_default="\ | |
567 #include <stdio.h> | |
568 #ifdef HAVE_SYS_TYPES_H | |
569 # include <sys/types.h> | |
570 #endif | |
571 #ifdef HAVE_SYS_STAT_H | |
572 # include <sys/stat.h> | |
573 #endif | |
574 #ifdef STDC_HEADERS | |
575 # include <stdlib.h> | |
576 # include <stddef.h> | |
577 #else | |
578 # ifdef HAVE_STDLIB_H | |
579 # include <stdlib.h> | |
580 # endif | |
581 #endif | |
582 #ifdef HAVE_STRING_H | |
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
584 # include <memory.h> | |
585 # endif | |
586 # include <string.h> | |
587 #endif | |
588 #ifdef HAVE_STRINGS_H | |
589 # include <strings.h> | |
590 #endif | |
591 #ifdef HAVE_INTTYPES_H | |
592 # include <inttypes.h> | |
593 #endif | |
594 #ifdef HAVE_STDINT_H | |
595 # include <stdint.h> | |
596 #endif | |
597 #ifdef HAVE_UNISTD_H | |
598 # include <unistd.h> | |
599 #endif" | |
600 | |
601 ac_subst_vars='LTLIBOBJS | |
602 LIBOBJS | |
603 enable_plugin | |
604 pluginlibs | |
605 LIBELFINC | |
606 LIBELFLIBS | |
607 CLOOGINC | |
608 CLOOGLIBS | |
609 PPLINC | |
610 PPLLIBS | |
611 GMPINC | |
612 GMPLIBS | |
613 target_cpu_default | |
614 fortran_target_objs | |
615 cxx_target_objs | |
616 c_target_objs | |
617 use_gcc_stdint | |
618 xm_defines | |
619 xm_include_list | |
620 xm_file_list | |
621 tm_p_include_list | |
622 tm_p_file_list | |
623 tm_defines | |
624 tm_include_list | |
625 tm_file_list | |
626 thread_file | |
627 out_object_file | |
628 out_file | |
629 objc_boehm_gc | |
630 md_file | |
631 local_prefix | |
632 lang_tree_files | |
633 lang_specs_files | |
634 lang_opt_files | |
635 install | |
636 out_host_hook_obj | |
637 host_xm_defines | |
638 host_xm_include_list | |
639 host_xm_file_list | |
640 host_exeext | |
641 gcc_gxx_include_dir | |
642 gcc_config_arguments | |
643 float_h_file | |
644 extra_programs | |
645 extra_passes | |
646 extra_parts | |
647 extra_objs | |
648 extra_headers_list | |
649 extra_gcc_objs | |
650 TM_MULTILIB_EXCEPTIONS_CONFIG | |
651 TM_MULTILIB_CONFIG | |
652 TM_ENDIAN_CONFIG | |
653 tmake_file | |
654 xmake_file | |
655 cpp_install_dir | |
656 check_languages | |
657 build_file_translate | |
658 build_xm_defines | |
659 build_xm_include_list | |
660 build_xm_file_list | |
661 build_install_headers_dir | |
662 build_exeext | |
663 all_selected_languages | |
664 all_languages | |
665 all_lang_makefiles | |
666 all_lang_makefrags | |
667 all_gtfiles | |
668 all_compilers | |
669 srcdir | |
670 subdirs | |
671 slibdir | |
672 dollar | |
673 gcc_tooldir | |
674 enable_lto | |
675 MAINT | |
676 zlibinc | |
677 zlibdir | |
678 HOST_LIBS | |
679 GGC | |
680 libgcc_visibility | |
681 gcc_cv_readelf | |
682 gcc_cv_objdump | |
683 ORIGINAL_NM_FOR_TARGET | |
684 gcc_cv_nm | |
685 ORIGINAL_LD_FOR_TARGET | |
686 ORIGINAL_PLUGIN_LD_FOR_TARGET | |
687 gcc_cv_ld | |
688 ORIGINAL_AS_FOR_TARGET | |
689 gcc_cv_as | |
690 enable_fast_install | |
691 objdir | |
692 CXXCPP | |
693 OTOOL64 | |
694 OTOOL | |
695 LIPO | |
696 NMEDIT | |
697 DSYMUTIL | |
698 STRIP | |
699 OBJDUMP | |
700 ac_ct_DUMPBIN | |
701 DUMPBIN | |
702 LD | |
703 FGREP | |
704 SED | |
705 LIBTOOL | |
706 collect2 | |
707 STMP_FIXINC | |
708 BUILD_LDFLAGS | |
709 BUILD_CFLAGS | |
710 CC_FOR_BUILD | |
711 inhibit_libc | |
712 SYSTEM_HEADER_DIR | |
713 ALL | |
714 CROSS | |
715 CATOBJEXT | |
716 GENCAT | |
717 INSTOBJEXT | |
718 DATADIRNAME | |
719 CATALOGS | |
720 POSUB | |
721 GMSGFMT | |
722 XGETTEXT | |
723 INCINTL | |
724 LIBINTL_DEP | |
725 LIBINTL | |
726 USE_NLS | |
727 extra_opt_files | |
728 extra_modes_file | |
729 gthread_flags | |
730 objext | |
731 manext | |
732 LIBICONV_DEP | |
733 LTLIBICONV | |
734 LIBICONV | |
735 LDEXP_LIB | |
736 GNAT_LIBEXC | |
737 COLLECT2_LIBS | |
738 AR | |
739 NM | |
740 BISON | |
741 FLEX | |
742 GENERATED_MANPAGES | |
743 BUILD_INFO | |
744 MAKEINFO | |
745 have_mktemp_command | |
746 make_compare_target | |
747 INSTALL_DATA | |
748 INSTALL_PROGRAM | |
749 INSTALL | |
750 ranlib_flags | |
751 RANLIB | |
752 LN | |
753 LN_S | |
754 AWK | |
755 SET_MAKE | |
756 REPORT_BUGS_TEXI | |
757 REPORT_BUGS_TO | |
758 PKGVERSION | |
759 onestep | |
760 CONFIGURE_SPECS | |
761 CROSS_SYSTEM_HEADER_DIR | |
762 TARGET_SYSTEM_ROOT_DEFINE | |
763 TARGET_SYSTEM_ROOT | |
764 enable_shared | |
765 enable_fixed_point | |
766 enable_decimal_float | |
767 enable_multilib | |
768 ENABLE_BUILD_WITH_CXX | |
769 coverage_flags | |
770 valgrind_command | |
771 valgrind_path_defines | |
772 valgrind_path | |
773 TREEBROWSER | |
774 nocommon_flag | |
775 warn_cxxflags | |
776 warn_cflags | |
777 c_strict_warn | |
778 strict_warn | |
779 c_loose_warn | |
780 loose_warn | |
781 EGREP | |
782 GREP | |
783 CPP | |
784 OUTPUT_OPTION | |
785 NO_MINUS_C_MINUS_O | |
786 GNATMAKE | |
787 GNATBIND | |
788 ac_ct_CXX | |
789 CXXFLAGS | |
790 CXX | |
791 OBJEXT | |
792 EXEEXT | |
793 ac_ct_CC | |
794 CPPFLAGS | |
795 LDFLAGS | |
796 CFLAGS | |
797 CC | |
798 GENINSRC | |
799 target_subdir | |
800 host_subdir | |
801 build_subdir | |
802 build_libsubdir | |
803 target_noncanonical | |
804 target_os | |
805 target_vendor | |
806 target_cpu | |
807 target | |
808 host_os | |
809 host_vendor | |
810 host_cpu | |
811 host | |
812 build_os | |
813 build_vendor | |
814 build_cpu | |
815 build | |
816 target_alias | |
817 host_alias | |
818 build_alias | |
819 LIBS | |
820 ECHO_T | |
821 ECHO_N | |
822 ECHO_C | |
823 DEFS | |
824 mandir | |
825 localedir | |
826 libdir | |
827 psdir | |
828 pdfdir | |
829 dvidir | |
830 htmldir | |
831 infodir | |
832 docdir | |
833 oldincludedir | |
834 includedir | |
835 localstatedir | |
836 sharedstatedir | |
837 sysconfdir | |
838 datadir | |
839 datarootdir | |
840 libexecdir | |
841 sbindir | |
842 bindir | |
843 program_transform_name | |
844 prefix | |
845 exec_prefix | |
846 PACKAGE_URL | |
847 PACKAGE_BUGREPORT | |
848 PACKAGE_STRING | |
849 PACKAGE_VERSION | |
850 PACKAGE_TARNAME | |
851 PACKAGE_NAME | |
852 PATH_SEPARATOR | |
853 SHELL' | |
854 ac_subst_files='language_hooks' | |
855 ac_user_opts=' | |
856 enable_option_checking | |
857 with_build_libsubdir | |
858 with_local_prefix | |
859 with_gxx_include_dir | |
860 with_cpp_install_dir | |
861 enable_generated_files_in_srcdir | |
862 with_gnu_ld | |
863 with_ld | |
864 with_demangler_in_ld | |
865 with_gnu_as | |
866 with_as | |
867 enable_werror_always | |
868 enable_checking | |
869 enable_coverage | |
870 enable_gather_detailed_mem_stats | |
871 enable_build_with_cxx | |
872 with_stabs | |
873 enable_multilib | |
874 enable___cxa_atexit | |
875 enable_decimal_float | |
876 enable_fixed_point | |
877 enable_threads | |
878 enable_tls | |
879 enable_objc_gc | |
880 with_dwarf2 | |
881 enable_shared | |
882 with_build_sysroot | |
883 with_sysroot | |
884 with_specs | |
885 enable_intermodule | |
886 with_pkgversion | |
887 with_bugurl | |
888 enable_languages | |
889 with_multilib_list | |
890 enable_rpath | |
891 with_libiconv_prefix | |
892 enable_initfini_array | |
893 enable_sjlj_exceptions | |
894 with_system_libunwind | |
895 enable_secureplt | |
896 enable_cld | |
897 enable_win32_registry | |
898 enable_static | |
899 with_pic | |
900 enable_fast_install | |
901 enable_libtool_lock | |
902 with_plugin_ld | |
903 enable_gnu_unique_object | |
904 enable_linker_build_id | |
905 with_long_double_128 | |
906 with_gc | |
907 with_system_zlib | |
908 enable_maintainer_mode | |
909 enable_version_specific_runtime_libs | |
910 with_slibdir | |
911 enable_plugin | |
912 ' | |
913 ac_precious_vars='build_alias | |
914 host_alias | |
915 target_alias | |
916 CC | |
917 CFLAGS | |
918 LDFLAGS | |
919 LIBS | |
920 CPPFLAGS | |
921 CXX | |
922 CXXFLAGS | |
923 CCC | |
924 CPP | |
925 CXXCPP | |
926 GMPLIBS | |
927 GMPINC | |
928 PPLLIBS | |
929 PPLINC | |
930 CLOOGLIBS | |
931 CLOOGINC | |
932 LIBELFLIBS | |
933 LIBELFINC' | |
934 | |
935 | |
936 # Initialize some variables set by options. | |
937 ac_init_help= | |
938 ac_init_version=false | |
939 ac_unrecognized_opts= | |
940 ac_unrecognized_sep= | |
941 # The variables have the same names as the options, with | |
942 # dashes changed to underlines. | |
943 cache_file=/dev/null | |
944 exec_prefix=NONE | |
945 no_create= | |
946 no_recursion= | |
947 prefix=NONE | |
948 program_prefix=NONE | |
949 program_suffix=NONE | |
950 program_transform_name=s,x,x, | |
951 silent= | |
952 site= | |
953 srcdir= | |
954 verbose= | |
955 x_includes=NONE | |
956 x_libraries=NONE | |
957 | |
958 # Installation directory options. | |
959 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
960 # and all the variables that are supposed to be based on exec_prefix | |
961 # by default will actually change. | |
962 # Use braces instead of parens because sh, perl, etc. also accept them. | |
963 # (The list follows the same order as the GNU Coding Standards.) | |
964 bindir='${exec_prefix}/bin' | |
965 sbindir='${exec_prefix}/sbin' | |
966 libexecdir='${exec_prefix}/libexec' | |
967 datarootdir='${prefix}/share' | |
968 datadir='${datarootdir}' | |
969 sysconfdir='${prefix}/etc' | |
970 sharedstatedir='${prefix}/com' | |
971 localstatedir='${prefix}/var' | |
972 includedir='${prefix}/include' | |
973 oldincludedir='/usr/include' | |
974 docdir='${datarootdir}/doc/${PACKAGE}' | |
975 infodir='${datarootdir}/info' | |
976 htmldir='${docdir}' | |
977 dvidir='${docdir}' | |
978 pdfdir='${docdir}' | |
979 psdir='${docdir}' | |
980 libdir='${exec_prefix}/lib' | |
981 localedir='${datarootdir}/locale' | |
982 mandir='${datarootdir}/man' | |
983 | |
984 ac_prev= | |
985 ac_dashdash= | |
986 for ac_option | |
987 do | |
988 # If the previous option needs an argument, assign it. | |
989 if test -n "$ac_prev"; then | |
990 eval $ac_prev=\$ac_option | |
991 ac_prev= | |
992 continue | |
993 fi | |
994 | |
995 case $ac_option in | |
996 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
997 *) ac_optarg=yes ;; | |
998 esac | |
999 | |
1000 # Accept the important Cygnus configure options, so we can diagnose typos. | |
1001 | |
1002 case $ac_dashdash$ac_option in | |
1003 --) | |
1004 ac_dashdash=yes ;; | |
1005 | |
1006 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1007 ac_prev=bindir ;; | |
1008 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1009 bindir=$ac_optarg ;; | |
1010 | |
1011 -build | --build | --buil | --bui | --bu) | |
1012 ac_prev=build_alias ;; | |
1013 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1014 build_alias=$ac_optarg ;; | |
1015 | |
1016 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1018 ac_prev=cache_file ;; | |
1019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1021 cache_file=$ac_optarg ;; | |
1022 | |
1023 --config-cache | -C) | |
1024 cache_file=config.cache ;; | |
1025 | |
1026 -datadir | --datadir | --datadi | --datad) | |
1027 ac_prev=datadir ;; | |
1028 -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1029 datadir=$ac_optarg ;; | |
1030 | |
1031 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1032 | --dataroo | --dataro | --datar) | |
1033 ac_prev=datarootdir ;; | |
1034 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1035 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1036 datarootdir=$ac_optarg ;; | |
1037 | |
1038 -disable-* | --disable-*) | |
1039 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1040 # Reject names that are not valid shell variable names. | |
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1042 as_fn_error "invalid feature name: $ac_useropt" | |
1043 ac_useropt_orig=$ac_useropt | |
1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1045 case $ac_user_opts in | |
1046 *" | |
1047 "enable_$ac_useropt" | |
1048 "*) ;; | |
1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1050 ac_unrecognized_sep=', ';; | |
1051 esac | |
1052 eval enable_$ac_useropt=no ;; | |
1053 | |
1054 -docdir | --docdir | --docdi | --doc | --do) | |
1055 ac_prev=docdir ;; | |
1056 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1057 docdir=$ac_optarg ;; | |
1058 | |
1059 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1060 ac_prev=dvidir ;; | |
1061 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1062 dvidir=$ac_optarg ;; | |
1063 | |
1064 -enable-* | --enable-*) | |
1065 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1066 # Reject names that are not valid shell variable names. | |
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1068 as_fn_error "invalid feature name: $ac_useropt" | |
1069 ac_useropt_orig=$ac_useropt | |
1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1071 case $ac_user_opts in | |
1072 *" | |
1073 "enable_$ac_useropt" | |
1074 "*) ;; | |
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1076 ac_unrecognized_sep=', ';; | |
1077 esac | |
1078 eval enable_$ac_useropt=\$ac_optarg ;; | |
1079 | |
1080 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1081 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1082 | --exec | --exe | --ex) | |
1083 ac_prev=exec_prefix ;; | |
1084 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1085 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1086 | --exec=* | --exe=* | --ex=*) | |
1087 exec_prefix=$ac_optarg ;; | |
1088 | |
1089 -gas | --gas | --ga | --g) | |
1090 # Obsolete; use --with-gas. | |
1091 with_gas=yes ;; | |
1092 | |
1093 -help | --help | --hel | --he | -h) | |
1094 ac_init_help=long ;; | |
1095 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1096 ac_init_help=recursive ;; | |
1097 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1098 ac_init_help=short ;; | |
1099 | |
1100 -host | --host | --hos | --ho) | |
1101 ac_prev=host_alias ;; | |
1102 -host=* | --host=* | --hos=* | --ho=*) | |
1103 host_alias=$ac_optarg ;; | |
1104 | |
1105 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1106 ac_prev=htmldir ;; | |
1107 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1108 | --ht=*) | |
1109 htmldir=$ac_optarg ;; | |
1110 | |
1111 -includedir | --includedir | --includedi | --included | --include \ | |
1112 | --includ | --inclu | --incl | --inc) | |
1113 ac_prev=includedir ;; | |
1114 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1115 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1116 includedir=$ac_optarg ;; | |
1117 | |
1118 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1119 ac_prev=infodir ;; | |
1120 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1121 infodir=$ac_optarg ;; | |
1122 | |
1123 -libdir | --libdir | --libdi | --libd) | |
1124 ac_prev=libdir ;; | |
1125 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1126 libdir=$ac_optarg ;; | |
1127 | |
1128 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1129 | --libexe | --libex | --libe) | |
1130 ac_prev=libexecdir ;; | |
1131 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1132 | --libexe=* | --libex=* | --libe=*) | |
1133 libexecdir=$ac_optarg ;; | |
1134 | |
1135 -localedir | --localedir | --localedi | --localed | --locale) | |
1136 ac_prev=localedir ;; | |
1137 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1138 localedir=$ac_optarg ;; | |
1139 | |
1140 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1141 | --localstate | --localstat | --localsta | --localst | --locals) | |
1142 ac_prev=localstatedir ;; | |
1143 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1144 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1145 localstatedir=$ac_optarg ;; | |
1146 | |
1147 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1148 ac_prev=mandir ;; | |
1149 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1150 mandir=$ac_optarg ;; | |
1151 | |
1152 -nfp | --nfp | --nf) | |
1153 # Obsolete; use --without-fp. | |
1154 with_fp=no ;; | |
1155 | |
1156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1157 | --no-cr | --no-c | -n) | |
1158 no_create=yes ;; | |
1159 | |
1160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1162 no_recursion=yes ;; | |
1163 | |
1164 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1165 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1166 | --oldin | --oldi | --old | --ol | --o) | |
1167 ac_prev=oldincludedir ;; | |
1168 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1169 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1170 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1171 oldincludedir=$ac_optarg ;; | |
1172 | |
1173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1174 ac_prev=prefix ;; | |
1175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1176 prefix=$ac_optarg ;; | |
1177 | |
1178 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1179 | --program-pre | --program-pr | --program-p) | |
1180 ac_prev=program_prefix ;; | |
1181 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1182 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1183 program_prefix=$ac_optarg ;; | |
1184 | |
1185 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1186 | --program-suf | --program-su | --program-s) | |
1187 ac_prev=program_suffix ;; | |
1188 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1189 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1190 program_suffix=$ac_optarg ;; | |
1191 | |
1192 -program-transform-name | --program-transform-name \ | |
1193 | --program-transform-nam | --program-transform-na \ | |
1194 | --program-transform-n | --program-transform- \ | |
1195 | --program-transform | --program-transfor \ | |
1196 | --program-transfo | --program-transf \ | |
1197 | --program-trans | --program-tran \ | |
1198 | --progr-tra | --program-tr | --program-t) | |
1199 ac_prev=program_transform_name ;; | |
1200 -program-transform-name=* | --program-transform-name=* \ | |
1201 | --program-transform-nam=* | --program-transform-na=* \ | |
1202 | --program-transform-n=* | --program-transform-=* \ | |
1203 | --program-transform=* | --program-transfor=* \ | |
1204 | --program-transfo=* | --program-transf=* \ | |
1205 | --program-trans=* | --program-tran=* \ | |
1206 | --progr-tra=* | --program-tr=* | --program-t=*) | |
1207 program_transform_name=$ac_optarg ;; | |
1208 | |
1209 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1210 ac_prev=pdfdir ;; | |
1211 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1212 pdfdir=$ac_optarg ;; | |
1213 | |
1214 -psdir | --psdir | --psdi | --psd | --ps) | |
1215 ac_prev=psdir ;; | |
1216 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1217 psdir=$ac_optarg ;; | |
1218 | |
1219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1220 | -silent | --silent | --silen | --sile | --sil) | |
1221 silent=yes ;; | |
1222 | |
1223 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1224 ac_prev=sbindir ;; | |
1225 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1226 | --sbi=* | --sb=*) | |
1227 sbindir=$ac_optarg ;; | |
1228 | |
1229 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1230 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1231 | --sharedst | --shareds | --shared | --share | --shar \ | |
1232 | --sha | --sh) | |
1233 ac_prev=sharedstatedir ;; | |
1234 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1235 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1236 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1237 | --sha=* | --sh=*) | |
1238 sharedstatedir=$ac_optarg ;; | |
1239 | |
1240 -site | --site | --sit) | |
1241 ac_prev=site ;; | |
1242 -site=* | --site=* | --sit=*) | |
1243 site=$ac_optarg ;; | |
1244 | |
1245 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1246 ac_prev=srcdir ;; | |
1247 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1248 srcdir=$ac_optarg ;; | |
1249 | |
1250 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1251 | --syscon | --sysco | --sysc | --sys | --sy) | |
1252 ac_prev=sysconfdir ;; | |
1253 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1254 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1255 sysconfdir=$ac_optarg ;; | |
1256 | |
1257 -target | --target | --targe | --targ | --tar | --ta | --t) | |
1258 ac_prev=target_alias ;; | |
1259 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1260 target_alias=$ac_optarg ;; | |
1261 | |
1262 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1263 verbose=yes ;; | |
1264 | |
1265 -version | --version | --versio | --versi | --vers | -V) | |
1266 ac_init_version=: ;; | |
1267 | |
1268 -with-* | --with-*) | |
1269 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1270 # Reject names that are not valid shell variable names. | |
1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1272 as_fn_error "invalid package name: $ac_useropt" | |
1273 ac_useropt_orig=$ac_useropt | |
1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1275 case $ac_user_opts in | |
1276 *" | |
1277 "with_$ac_useropt" | |
1278 "*) ;; | |
1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1280 ac_unrecognized_sep=', ';; | |
1281 esac | |
1282 eval with_$ac_useropt=\$ac_optarg ;; | |
1283 | |
1284 -without-* | --without-*) | |
1285 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1286 # Reject names that are not valid shell variable names. | |
1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1288 as_fn_error "invalid package name: $ac_useropt" | |
1289 ac_useropt_orig=$ac_useropt | |
1290 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1291 case $ac_user_opts in | |
1292 *" | |
1293 "with_$ac_useropt" | |
1294 "*) ;; | |
1295 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1296 ac_unrecognized_sep=', ';; | |
1297 esac | |
1298 eval with_$ac_useropt=no ;; | |
1299 | |
1300 --x) | |
1301 # Obsolete; use --with-x. | |
1302 with_x=yes ;; | |
1303 | |
1304 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1305 | --x-incl | --x-inc | --x-in | --x-i) | |
1306 ac_prev=x_includes ;; | |
1307 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1308 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1309 x_includes=$ac_optarg ;; | |
1310 | |
1311 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1312 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1313 ac_prev=x_libraries ;; | |
1314 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1315 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1316 x_libraries=$ac_optarg ;; | |
1317 | |
1318 -*) as_fn_error "unrecognized option: \`$ac_option' | |
1319 Try \`$0 --help' for more information." | |
1320 ;; | |
1321 | |
1322 *=*) | |
1323 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1324 # Reject names that are not valid shell variable names. | |
1325 case $ac_envvar in #( | |
1326 '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1327 as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1328 esac | |
1329 eval $ac_envvar=\$ac_optarg | |
1330 export $ac_envvar ;; | |
1331 | |
1332 *) | |
1333 # FIXME: should be removed in autoconf 3.0. | |
1334 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1335 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1336 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1337 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1338 ;; | |
1339 | |
1340 esac | |
1341 done | |
1342 | |
1343 if test -n "$ac_prev"; then | |
1344 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1345 as_fn_error "missing argument to $ac_option" | |
1346 fi | |
1347 | |
1348 if test -n "$ac_unrecognized_opts"; then | |
1349 case $enable_option_checking in | |
1350 no) ;; | |
1351 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1352 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1353 esac | |
1354 fi | |
1355 | |
1356 # Check all directory arguments for consistency. | |
1357 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1358 datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1359 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1360 libdir localedir mandir | |
1361 do | |
1362 eval ac_val=\$$ac_var | |
1363 # Remove trailing slashes. | |
1364 case $ac_val in | |
1365 */ ) | |
1366 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1367 eval $ac_var=\$ac_val;; | |
1368 esac | |
1369 # Be sure to have absolute directory names. | |
1370 case $ac_val in | |
1371 [\\/$]* | ?:[\\/]* ) continue;; | |
1372 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1373 esac | |
1374 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | |
1375 done | |
1376 | |
1377 # There might be people who depend on the old broken behavior: `$host' | |
1378 # used to hold the argument of --host etc. | |
1379 # FIXME: To remove some day. | |
1380 build=$build_alias | |
1381 host=$host_alias | |
1382 target=$target_alias | |
1383 | |
1384 # FIXME: To remove some day. | |
1385 if test "x$host_alias" != x; then | |
1386 if test "x$build_alias" = x; then | |
1387 cross_compiling=maybe | |
1388 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1389 If a cross compiler is detected then cross compile mode will be used." >&2 | |
1390 elif test "x$build_alias" != "x$host_alias"; then | |
1391 cross_compiling=yes | |
1392 fi | |
1393 fi | |
1394 | |
1395 ac_tool_prefix= | |
1396 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1397 | |
1398 test "$silent" = yes && exec 6>/dev/null | |
1399 | |
1400 | |
1401 ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1402 ac_ls_di=`ls -di .` && | |
1403 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1404 as_fn_error "working directory cannot be determined" | |
1405 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1406 as_fn_error "pwd does not report name of working directory" | |
1407 | |
1408 | |
1409 # Find the source files, if location was not specified. | |
1410 if test -z "$srcdir"; then | |
1411 ac_srcdir_defaulted=yes | |
1412 # Try the directory containing this script, then the parent directory. | |
1413 ac_confdir=`$as_dirname -- "$as_myself" || | |
1414 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1415 X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1416 X"$as_myself" : 'X\(//\)$' \| \ | |
1417 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1418 $as_echo X"$as_myself" | | |
1419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1420 s//\1/ | |
1421 q | |
1422 } | |
1423 /^X\(\/\/\)[^/].*/{ | |
1424 s//\1/ | |
1425 q | |
1426 } | |
1427 /^X\(\/\/\)$/{ | |
1428 s//\1/ | |
1429 q | |
1430 } | |
1431 /^X\(\/\).*/{ | |
1432 s//\1/ | |
1433 q | |
1434 } | |
1435 s/.*/./; q'` | |
1436 srcdir=$ac_confdir | |
1437 if test ! -r "$srcdir/$ac_unique_file"; then | |
1438 srcdir=.. | |
1439 fi | |
1440 else | |
1441 ac_srcdir_defaulted=no | |
1442 fi | |
1443 if test ! -r "$srcdir/$ac_unique_file"; then | |
1444 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1445 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1446 fi | |
1447 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1448 ac_abs_confdir=`( | |
1449 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1450 pwd)` | |
1451 # When building in place, set srcdir=. | |
1452 if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1453 srcdir=. | |
1454 fi | |
1455 # Remove unnecessary trailing slashes from srcdir. | |
1456 # Double slashes in file names in object file debugging info | |
1457 # mess up M-x gdb in Emacs. | |
1458 case $srcdir in | |
1459 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1460 esac | |
1461 for ac_var in $ac_precious_vars; do | |
1462 eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1463 eval ac_env_${ac_var}_value=\$${ac_var} | |
1464 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1465 eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1466 done | |
1467 | |
1468 # | |
1469 # Report the --help message. | |
1470 # | |
1471 if test "$ac_init_help" = "long"; then | |
1472 # Omit some internal or obsolete options to make the list less imposing. | |
1473 # This message is too long to be a string in the A/UX 3.1 sh. | |
1474 cat <<_ACEOF | |
1475 \`configure' configures this package to adapt to many kinds of systems. | |
1476 | |
1477 Usage: $0 [OPTION]... [VAR=VALUE]... | |
1478 | |
1479 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1480 VAR=VALUE. See below for descriptions of some of the useful variables. | |
1481 | |
1482 Defaults for the options are specified in brackets. | |
1483 | |
1484 Configuration: | |
1485 -h, --help display this help and exit | |
1486 --help=short display options specific to this package | |
1487 --help=recursive display the short help of all the included packages | |
1488 -V, --version display version information and exit | |
1489 -q, --quiet, --silent do not print \`checking...' messages | |
1490 --cache-file=FILE cache test results in FILE [disabled] | |
1491 -C, --config-cache alias for \`--cache-file=config.cache' | |
1492 -n, --no-create do not create output files | |
1493 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1494 | |
1495 Installation directories: | |
1496 --prefix=PREFIX install architecture-independent files in PREFIX | |
1497 [$ac_default_prefix] | |
1498 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1499 [PREFIX] | |
1500 | |
1501 By default, \`make install' will install all the files in | |
1502 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1503 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1504 for instance \`--prefix=\$HOME'. | |
1505 | |
1506 For better control, use the options below. | |
1507 | |
1508 Fine tuning of the installation directories: | |
1509 --bindir=DIR user executables [EPREFIX/bin] | |
1510 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1511 --libexecdir=DIR program executables [EPREFIX/libexec] | |
1512 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1513 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1514 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1515 --libdir=DIR object code libraries [EPREFIX/lib] | |
1516 --includedir=DIR C header files [PREFIX/include] | |
1517 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1518 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1519 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1520 --infodir=DIR info documentation [DATAROOTDIR/info] | |
1521 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1522 --mandir=DIR man documentation [DATAROOTDIR/man] | |
1523 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1524 --htmldir=DIR html documentation [DOCDIR] | |
1525 --dvidir=DIR dvi documentation [DOCDIR] | |
1526 --pdfdir=DIR pdf documentation [DOCDIR] | |
1527 --psdir=DIR ps documentation [DOCDIR] | |
1528 _ACEOF | |
1529 | |
1530 cat <<\_ACEOF | |
1531 | |
1532 Program names: | |
1533 --program-prefix=PREFIX prepend PREFIX to installed program names | |
1534 --program-suffix=SUFFIX append SUFFIX to installed program names | |
1535 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1536 | |
1537 System types: | |
1538 --build=BUILD configure for building on BUILD [guessed] | |
1539 --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1540 --target=TARGET configure for building compilers for TARGET [HOST] | |
1541 _ACEOF | |
1542 fi | |
1543 | |
1544 if test -n "$ac_init_help"; then | |
1545 | |
1546 cat <<\_ACEOF | |
1547 | |
1548 Optional Features: | |
1549 --disable-option-checking ignore unrecognized --enable/--with options | |
1550 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1551 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1552 --enable-generated-files-in-srcdir | |
1553 put copies of generated files in source dir | |
1554 intended for creating source tarballs for users | |
1555 without texinfo bison or flex. | |
1556 --enable-werror-always enable -Werror despite compiler version | |
1557 --enable-checking=LIST | |
1558 enable expensive run-time checks. With LIST, | |
1559 enable only specific categories of checks. | |
1560 Categories are: yes,no,all,none,release. | |
1561 Flags are: assert,df,fold,gc,gcac,gimple,misc, | |
1562 rtlflag,rtl,runtime,tree,valgrind,types. | |
1563 --enable-coverage=LEVEL | |
1564 enable compiler's code coverage collection. | |
1565 Use to measure compiler performance and locate | |
1566 unused parts of the compiler. With LEVEL, specify | |
1567 optimization. Values are opt, noopt, | |
1568 default is noopt | |
1569 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering | |
1570 --enable-build-with-cxx build with C++ compiler instead of C compiler | |
1571 --enable-multilib enable library support for multiple ABIs | |
1572 --enable-__cxa_atexit enable __cxa_atexit for C++ | |
1573 --enable-decimal-float={no,yes,bid,dpd} | |
1574 enable decimal float extension to C. Selecting 'bid' | |
1575 or 'dpd' choses which decimal floating point format | |
1576 to use | |
1577 --enable-fixed-point enable fixed-point arithmetic extension to C | |
1578 --enable-threads enable thread usage for target GCC | |
1579 --enable-threads=LIB use LIB thread package for target GCC | |
1580 --enable-tls enable or disable generation of tls code | |
1581 overriding the assembler check for tls support | |
1582 --enable-objc-gc enable the use of Boehm's garbage collector with | |
1583 the GNU Objective-C runtime | |
1584 --disable-shared don't provide a shared libgcc | |
1585 --enable-intermodule build the compiler in one step | |
1586 --enable-languages=LIST specify which front-ends to build | |
1587 --disable-rpath do not hardcode runtime library paths | |
1588 --enable-initfini-array use .init_array/.fini_array sections | |
1589 --enable-sjlj-exceptions | |
1590 arrange to use setjmp/longjmp exception handling | |
1591 --enable-secureplt enable -msecure-plt by default for PowerPC | |
1592 --enable-cld enable -mcld by default for 32bit x86 | |
1593 --disable-win32-registry | |
1594 disable lookup of installation paths in the | |
1595 Registry on Windows hosts | |
1596 --enable-win32-registry enable registry lookup (default) | |
1597 --enable-win32-registry=KEY | |
1598 use KEY instead of GCC version as the last portion | |
1599 of the registry key | |
1600 --enable-shared[=PKGS] build shared libraries [default=yes] | |
1601 --enable-static[=PKGS] build static libraries [default=yes] | |
1602 --enable-fast-install[=PKGS] | |
1603 optimize for fast installation [default=yes] | |
1604 --disable-libtool-lock avoid locking (might break parallel builds) | |
1605 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on | |
1606 glibc systems | |
1607 --enable-linker-build-id | |
1608 compiler will always pass --build-id to linker | |
1609 --enable-maintainer-mode | |
1610 enable make rules and dependencies not useful | |
1611 (and sometimes confusing) to the casual installer | |
1612 --enable-version-specific-runtime-libs | |
1613 specify that runtime libraries should be | |
1614 installed in a compiler-specific directory | |
1615 --enable-plugin enable plugin support | |
1616 | |
1617 Optional Packages: | |
1618 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1619 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1620 --with-build-libsubdir=DIR Directory where to find libraries for build system | |
1621 --with-local-prefix=DIR specifies directory to put local include | |
1622 --with-gxx-include-dir=DIR | |
1623 specifies directory to put g++ header files | |
1624 --with-cpp-install-dir=DIR | |
1625 install the user visible C preprocessor in DIR | |
1626 (relative to PREFIX) as well as PREFIX/bin | |
1627 --with-gnu-ld arrange to work with GNU ld. | |
1628 --with-ld arrange to use the specified ld (full pathname) | |
1629 --with-demangler-in-ld try to use demangler in GNU ld. | |
1630 --with-gnu-as arrange to work with GNU as | |
1631 --with-as arrange to use the specified as (full pathname) | |
1632 --with-stabs arrange to use stabs instead of host debug format | |
1633 --with-dwarf2 force the default debug format to be DWARF 2 | |
1634 --with-build-sysroot=sysroot | |
1635 use sysroot as the system root during the build | |
1636 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR. | |
1637 --with-specs=SPECS add SPECS to driver command-line processing | |
1638 --with-pkgversion=PKG Use PKG in the version string in place of "GCC" | |
1639 --with-bugurl=URL Direct users to URL to report a bug | |
1640 --with-multilib-list Select multilibs (SH only) | |
1641 --with-gnu-ld assume the C compiler uses GNU ld default=no | |
1642 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1643 --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1644 --with-system-libunwind use installed libunwind | |
1645 --with-pic try to use only PIC/non-PIC objects [default=use | |
1646 both] | |
1647 --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1648 --with-plugin-ld=[ARG] specify the plugin linker | |
1649 --with-long-double-128 Use 128-bit long double by default. | |
1650 --with-gc={page,zone} choose the garbage collection mechanism to use | |
1651 with the compiler | |
1652 --with-system-zlib use installed libz | |
1653 --with-slibdir=DIR shared libraries in DIR [LIBDIR] | |
1654 | |
1655 Some influential environment variables: | |
1656 CC C compiler command | |
1657 CFLAGS C compiler flags | |
1658 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1659 nonstandard directory <lib dir> | |
1660 LIBS libraries to pass to the linker, e.g. -l<library> | |
1661 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1662 you have headers in a nonstandard directory <include dir> | |
1663 CXX C++ compiler command | |
1664 CXXFLAGS C++ compiler flags | |
1665 CPP C preprocessor | |
1666 CXXCPP C++ preprocessor | |
1667 GMPLIBS How to link GMP | |
1668 GMPINC How to find GMP include files | |
1669 PPLLIBS How to link PPL | |
1670 PPLINC How to find PPL include files | |
1671 CLOOGLIBS How to link CLOOG | |
1672 CLOOGINC How to find CLOOG include files | |
1673 LIBELFLIBS How to link libelf | |
1674 LIBELFINC How to find libelf include files | |
1675 | |
1676 Use these variables to override the choices made by `configure' or to help | |
1677 it to find libraries and programs with nonstandard names/locations. | |
1678 | |
1679 Report bugs to the package provider. | |
1680 _ACEOF | |
1681 ac_status=$? | |
1682 fi | |
1683 | |
1684 if test "$ac_init_help" = "recursive"; then | |
1685 # If there are subdirs, report their specific --help. | |
1686 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1687 test -d "$ac_dir" || | |
1688 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1689 continue | |
1690 ac_builddir=. | |
1691 | |
1692 case "$ac_dir" in | |
1693 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1694 *) | |
1695 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1696 # A ".." for each directory in $ac_dir_suffix. | |
1697 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1698 case $ac_top_builddir_sub in | |
1699 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1700 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1701 esac ;; | |
1702 esac | |
1703 ac_abs_top_builddir=$ac_pwd | |
1704 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1705 # for backward compatibility: | |
1706 ac_top_builddir=$ac_top_build_prefix | |
1707 | |
1708 case $srcdir in | |
1709 .) # We are building in place. | |
1710 ac_srcdir=. | |
1711 ac_top_srcdir=$ac_top_builddir_sub | |
1712 ac_abs_top_srcdir=$ac_pwd ;; | |
1713 [\\/]* | ?:[\\/]* ) # Absolute name. | |
1714 ac_srcdir=$srcdir$ac_dir_suffix; | |
1715 ac_top_srcdir=$srcdir | |
1716 ac_abs_top_srcdir=$srcdir ;; | |
1717 *) # Relative name. | |
1718 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1719 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1720 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1721 esac | |
1722 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1723 | |
1724 cd "$ac_dir" || { ac_status=$?; continue; } | |
1725 # Check for guested configure. | |
1726 if test -f "$ac_srcdir/configure.gnu"; then | |
1727 echo && | |
1728 $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1729 elif test -f "$ac_srcdir/configure"; then | |
1730 echo && | |
1731 $SHELL "$ac_srcdir/configure" --help=recursive | |
1732 else | |
1733 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1734 fi || ac_status=$? | |
1735 cd "$ac_pwd" || { ac_status=$?; break; } | |
1736 done | |
1737 fi | |
1738 | |
1739 test -n "$ac_init_help" && exit $ac_status | |
1740 if $ac_init_version; then | |
1741 cat <<\_ACEOF | |
1742 configure | |
1743 generated by GNU Autoconf 2.64 | |
1744 | |
1745 Copyright (C) 2009 Free Software Foundation, Inc. | |
1746 This configure script is free software; the Free Software Foundation | |
1747 gives unlimited permission to copy, distribute and modify it. | |
1748 _ACEOF | |
1749 exit | |
1750 fi | |
1751 | |
1752 ## ------------------------ ## | |
1753 ## Autoconf initialization. ## | |
1754 ## ------------------------ ## | |
1755 | |
1756 # ac_fn_c_try_compile LINENO | |
1757 # -------------------------- | |
1758 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1759 ac_fn_c_try_compile () | |
1760 { | |
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1762 rm -f conftest.$ac_objext | |
1763 if { { ac_try="$ac_compile" | |
1764 case "(($ac_try" in | |
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1766 *) ac_try_echo=$ac_try;; | |
1767 esac | |
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1769 $as_echo "$ac_try_echo"; } >&5 | |
1770 (eval "$ac_compile") 2>conftest.err | |
1771 ac_status=$? | |
1772 if test -s conftest.err; then | |
1773 grep -v '^ *+' conftest.err >conftest.er1 | |
1774 cat conftest.er1 >&5 | |
1775 mv -f conftest.er1 conftest.err | |
1776 fi | |
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1778 test $ac_status = 0; } && { | |
1779 test -z "$ac_c_werror_flag" || | |
1780 test ! -s conftest.err | |
1781 } && test -s conftest.$ac_objext; then : | |
1782 ac_retval=0 | |
1783 else | |
1784 $as_echo "$as_me: failed program was:" >&5 | |
1785 sed 's/^/| /' conftest.$ac_ext >&5 | |
1786 | |
1787 ac_retval=1 | |
1788 fi | |
1789 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1790 return $ac_retval | |
1791 | |
1792 } # ac_fn_c_try_compile | |
1793 | |
1794 # ac_fn_cxx_try_compile LINENO | |
1795 # ---------------------------- | |
1796 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1797 ac_fn_cxx_try_compile () | |
1798 { | |
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1800 rm -f conftest.$ac_objext | |
1801 if { { ac_try="$ac_compile" | |
1802 case "(($ac_try" in | |
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1804 *) ac_try_echo=$ac_try;; | |
1805 esac | |
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1807 $as_echo "$ac_try_echo"; } >&5 | |
1808 (eval "$ac_compile") 2>conftest.err | |
1809 ac_status=$? | |
1810 if test -s conftest.err; then | |
1811 grep -v '^ *+' conftest.err >conftest.er1 | |
1812 cat conftest.er1 >&5 | |
1813 mv -f conftest.er1 conftest.err | |
1814 fi | |
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1816 test $ac_status = 0; } && { | |
1817 test -z "$ac_cxx_werror_flag" || | |
1818 test ! -s conftest.err | |
1819 } && test -s conftest.$ac_objext; then : | |
1820 ac_retval=0 | |
1821 else | |
1822 $as_echo "$as_me: failed program was:" >&5 | |
1823 sed 's/^/| /' conftest.$ac_ext >&5 | |
1824 | |
1825 ac_retval=1 | |
1826 fi | |
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1828 return $ac_retval | |
1829 | |
1830 } # ac_fn_cxx_try_compile | |
1831 | |
1832 # ac_fn_c_try_cpp LINENO | |
1833 # ---------------------- | |
1834 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1835 ac_fn_c_try_cpp () | |
1836 { | |
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1838 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1839 case "(($ac_try" in | |
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1841 *) ac_try_echo=$ac_try;; | |
1842 esac | |
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1844 $as_echo "$ac_try_echo"; } >&5 | |
1845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1846 ac_status=$? | |
1847 if test -s conftest.err; then | |
1848 grep -v '^ *+' conftest.err >conftest.er1 | |
1849 cat conftest.er1 >&5 | |
1850 mv -f conftest.er1 conftest.err | |
1851 fi | |
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1853 test $ac_status = 0; } >/dev/null && { | |
1854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1855 test ! -s conftest.err | |
1856 }; then : | |
1857 ac_retval=0 | |
1858 else | |
1859 $as_echo "$as_me: failed program was:" >&5 | |
1860 sed 's/^/| /' conftest.$ac_ext >&5 | |
1861 | |
1862 ac_retval=1 | |
1863 fi | |
1864 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1865 return $ac_retval | |
1866 | |
1867 } # ac_fn_c_try_cpp | |
1868 | |
1869 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1870 # ------------------------------------------------------- | |
1871 # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1872 # the include files in INCLUDES and setting the cache variable VAR | |
1873 # accordingly. | |
1874 ac_fn_c_check_header_mongrel () | |
1875 { | |
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1877 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1879 $as_echo_n "checking for $2... " >&6; } | |
1880 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1881 $as_echo_n "(cached) " >&6 | |
1882 fi | |
1883 eval ac_res=\$$3 | |
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1885 $as_echo "$ac_res" >&6; } | |
1886 else | |
1887 # Is the header compilable? | |
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1889 $as_echo_n "checking $2 usability... " >&6; } | |
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1891 /* end confdefs.h. */ | |
1892 $4 | |
1893 #include <$2> | |
1894 _ACEOF | |
1895 if ac_fn_c_try_compile "$LINENO"; then : | |
1896 ac_header_compiler=yes | |
1897 else | |
1898 ac_header_compiler=no | |
1899 fi | |
1900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1902 $as_echo "$ac_header_compiler" >&6; } | |
1903 | |
1904 # Is the header present? | |
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1906 $as_echo_n "checking $2 presence... " >&6; } | |
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1908 /* end confdefs.h. */ | |
1909 #include <$2> | |
1910 _ACEOF | |
1911 if ac_fn_c_try_cpp "$LINENO"; then : | |
1912 ac_header_preproc=yes | |
1913 else | |
1914 ac_header_preproc=no | |
1915 fi | |
1916 rm -f conftest.err conftest.$ac_ext | |
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1918 $as_echo "$ac_header_preproc" >&6; } | |
1919 | |
1920 # So? What about this header? | |
1921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1922 yes:no: ) | |
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1924 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1926 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1927 ;; | |
1928 no:yes:* ) | |
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1930 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1932 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1934 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1936 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1938 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1939 ;; | |
1940 esac | |
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1942 $as_echo_n "checking for $2... " >&6; } | |
1943 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1944 $as_echo_n "(cached) " >&6 | |
1945 else | |
1946 eval "$3=\$ac_header_compiler" | |
1947 fi | |
1948 eval ac_res=\$$3 | |
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1950 $as_echo "$ac_res" >&6; } | |
1951 fi | |
1952 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1953 | |
1954 } # ac_fn_c_check_header_mongrel | |
1955 | |
1956 # ac_fn_c_try_run LINENO | |
1957 # ---------------------- | |
1958 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1959 # that executables *can* be run. | |
1960 ac_fn_c_try_run () | |
1961 { | |
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1963 if { { ac_try="$ac_link" | |
1964 case "(($ac_try" in | |
1965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1966 *) ac_try_echo=$ac_try;; | |
1967 esac | |
1968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1969 $as_echo "$ac_try_echo"; } >&5 | |
1970 (eval "$ac_link") 2>&5 | |
1971 ac_status=$? | |
1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1973 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1974 { { case "(($ac_try" in | |
1975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1976 *) ac_try_echo=$ac_try;; | |
1977 esac | |
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1979 $as_echo "$ac_try_echo"; } >&5 | |
1980 (eval "$ac_try") 2>&5 | |
1981 ac_status=$? | |
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1983 test $ac_status = 0; }; }; then : | |
1984 ac_retval=0 | |
1985 else | |
1986 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1987 $as_echo "$as_me: failed program was:" >&5 | |
1988 sed 's/^/| /' conftest.$ac_ext >&5 | |
1989 | |
1990 ac_retval=$ac_status | |
1991 fi | |
1992 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1993 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1994 return $ac_retval | |
1995 | |
1996 } # ac_fn_c_try_run | |
1997 | |
1998 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1999 # ------------------------------------------------------- | |
2000 # Tests whether HEADER exists and can be compiled using the include files in | |
2001 # INCLUDES, setting the cache variable VAR accordingly. | |
2002 ac_fn_c_check_header_compile () | |
2003 { | |
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2006 $as_echo_n "checking for $2... " >&6; } | |
2007 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2008 $as_echo_n "(cached) " >&6 | |
2009 else | |
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2011 /* end confdefs.h. */ | |
2012 $4 | |
2013 #include <$2> | |
2014 _ACEOF | |
2015 if ac_fn_c_try_compile "$LINENO"; then : | |
2016 eval "$3=yes" | |
2017 else | |
2018 eval "$3=no" | |
2019 fi | |
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2021 fi | |
2022 eval ac_res=\$$3 | |
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2024 $as_echo "$ac_res" >&6; } | |
2025 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2026 | |
2027 } # ac_fn_c_check_header_compile | |
2028 | |
2029 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2030 # -------------------------------------------- | |
2031 # Tries to find the compile-time value of EXPR in a program that includes | |
2032 # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2033 # computed | |
2034 ac_fn_c_compute_int () | |
2035 { | |
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2037 if test "$cross_compiling" = yes; then | |
2038 # Depending upon the size, compute the lo and hi bounds. | |
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2040 /* end confdefs.h. */ | |
2041 $4 | |
2042 int | |
2043 main () | |
2044 { | |
2045 static int test_array [1 - 2 * !(($2) >= 0)]; | |
2046 test_array [0] = 0 | |
2047 | |
2048 ; | |
2049 return 0; | |
2050 } | |
2051 _ACEOF | |
2052 if ac_fn_c_try_compile "$LINENO"; then : | |
2053 ac_lo=0 ac_mid=0 | |
2054 while :; do | |
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2056 /* end confdefs.h. */ | |
2057 $4 | |
2058 int | |
2059 main () | |
2060 { | |
2061 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2062 test_array [0] = 0 | |
2063 | |
2064 ; | |
2065 return 0; | |
2066 } | |
2067 _ACEOF | |
2068 if ac_fn_c_try_compile "$LINENO"; then : | |
2069 ac_hi=$ac_mid; break | |
2070 else | |
2071 as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2072 if test $ac_lo -le $ac_mid; then | |
2073 ac_lo= ac_hi= | |
2074 break | |
2075 fi | |
2076 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2077 fi | |
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2079 done | |
2080 else | |
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2082 /* end confdefs.h. */ | |
2083 $4 | |
2084 int | |
2085 main () | |
2086 { | |
2087 static int test_array [1 - 2 * !(($2) < 0)]; | |
2088 test_array [0] = 0 | |
2089 | |
2090 ; | |
2091 return 0; | |
2092 } | |
2093 _ACEOF | |
2094 if ac_fn_c_try_compile "$LINENO"; then : | |
2095 ac_hi=-1 ac_mid=-1 | |
2096 while :; do | |
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2098 /* end confdefs.h. */ | |
2099 $4 | |
2100 int | |
2101 main () | |
2102 { | |
2103 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2104 test_array [0] = 0 | |
2105 | |
2106 ; | |
2107 return 0; | |
2108 } | |
2109 _ACEOF | |
2110 if ac_fn_c_try_compile "$LINENO"; then : | |
2111 ac_lo=$ac_mid; break | |
2112 else | |
2113 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2114 if test $ac_mid -le $ac_hi; then | |
2115 ac_lo= ac_hi= | |
2116 break | |
2117 fi | |
2118 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2119 fi | |
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2121 done | |
2122 else | |
2123 ac_lo= ac_hi= | |
2124 fi | |
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2126 fi | |
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2128 # Binary search between lo and hi bounds. | |
2129 while test "x$ac_lo" != "x$ac_hi"; do | |
2130 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2132 /* end confdefs.h. */ | |
2133 $4 | |
2134 int | |
2135 main () | |
2136 { | |
2137 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2138 test_array [0] = 0 | |
2139 | |
2140 ; | |
2141 return 0; | |
2142 } | |
2143 _ACEOF | |
2144 if ac_fn_c_try_compile "$LINENO"; then : | |
2145 ac_hi=$ac_mid | |
2146 else | |
2147 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2148 fi | |
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2150 done | |
2151 case $ac_lo in #(( | |
2152 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2153 '') ac_retval=1 ;; | |
2154 esac | |
2155 else | |
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2157 /* end confdefs.h. */ | |
2158 $4 | |
2159 static long int longval () { return $2; } | |
2160 static unsigned long int ulongval () { return $2; } | |
2161 #include <stdio.h> | |
2162 #include <stdlib.h> | |
2163 int | |
2164 main () | |
2165 { | |
2166 | |
2167 FILE *f = fopen ("conftest.val", "w"); | |
2168 if (! f) | |
2169 return 1; | |
2170 if (($2) < 0) | |
2171 { | |
2172 long int i = longval (); | |
2173 if (i != ($2)) | |
2174 return 1; | |
2175 fprintf (f, "%ld", i); | |
2176 } | |
2177 else | |
2178 { | |
2179 unsigned long int i = ulongval (); | |
2180 if (i != ($2)) | |
2181 return 1; | |
2182 fprintf (f, "%lu", i); | |
2183 } | |
2184 /* Do not output a trailing newline, as this causes \r\n confusion | |
2185 on some platforms. */ | |
2186 return ferror (f) || fclose (f) != 0; | |
2187 | |
2188 ; | |
2189 return 0; | |
2190 } | |
2191 _ACEOF | |
2192 if ac_fn_c_try_run "$LINENO"; then : | |
2193 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2194 else | |
2195 ac_retval=1 | |
2196 fi | |
2197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2198 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2199 rm -f conftest.val | |
2200 | |
2201 fi | |
2202 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2203 return $ac_retval | |
2204 | |
2205 } # ac_fn_c_compute_int | |
2206 | |
2207 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
2208 # ------------------------------------------- | |
2209 # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2210 # variable VAR accordingly. | |
2211 ac_fn_c_check_type () | |
2212 { | |
2213 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2215 $as_echo_n "checking for $2... " >&6; } | |
2216 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2217 $as_echo_n "(cached) " >&6 | |
2218 else | |
2219 eval "$3=no" | |
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2221 /* end confdefs.h. */ | |
2222 $4 | |
2223 int | |
2224 main () | |
2225 { | |
2226 if (sizeof ($2)) | |
2227 return 0; | |
2228 ; | |
2229 return 0; | |
2230 } | |
2231 _ACEOF | |
2232 if ac_fn_c_try_compile "$LINENO"; then : | |
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2234 /* end confdefs.h. */ | |
2235 $4 | |
2236 int | |
2237 main () | |
2238 { | |
2239 if (sizeof (($2))) | |
2240 return 0; | |
2241 ; | |
2242 return 0; | |
2243 } | |
2244 _ACEOF | |
2245 if ac_fn_c_try_compile "$LINENO"; then : | |
2246 | |
2247 else | |
2248 eval "$3=yes" | |
2249 fi | |
2250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2251 fi | |
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2253 fi | |
2254 eval ac_res=\$$3 | |
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2256 $as_echo "$ac_res" >&6; } | |
2257 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2258 | |
2259 } # ac_fn_c_check_type | |
2260 | |
2261 # ac_fn_c_find_intX_t LINENO BITS VAR | |
2262 # ----------------------------------- | |
2263 # Finds a signed integer type with width BITS, setting cache variable VAR | |
2264 # accordingly. | |
2265 ac_fn_c_find_intX_t () | |
2266 { | |
2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | |
2269 $as_echo_n "checking for int$2_t... " >&6; } | |
2270 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2271 $as_echo_n "(cached) " >&6 | |
2272 else | |
2273 eval "$3=no" | |
2274 for ac_type in int$2_t 'int' 'long int' \ | |
2275 'long long int' 'short int' 'signed char'; do | |
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2277 /* end confdefs.h. */ | |
2278 $ac_includes_default | |
2279 int | |
2280 main () | |
2281 { | |
2282 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))]; | |
2283 test_array [0] = 0 | |
2284 | |
2285 ; | |
2286 return 0; | |
2287 } | |
2288 _ACEOF | |
2289 if ac_fn_c_try_compile "$LINENO"; then : | |
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2291 /* end confdefs.h. */ | |
2292 $ac_includes_default | |
2293 int | |
2294 main () | |
2295 { | |
2296 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1) | |
2297 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))]; | |
2298 test_array [0] = 0 | |
2299 | |
2300 ; | |
2301 return 0; | |
2302 } | |
2303 _ACEOF | |
2304 if ac_fn_c_try_compile "$LINENO"; then : | |
2305 | |
2306 else | |
2307 case $ac_type in #( | |
2308 int$2_t) : | |
2309 eval "$3=yes" ;; #( | |
2310 *) : | |
2311 eval "$3=\$ac_type" ;; | |
2312 esac | |
2313 fi | |
2314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2315 fi | |
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2317 eval as_val=\$$3 | |
2318 if test "x$as_val" = x""no; then : | |
2319 | |
2320 else | |
2321 break | |
2322 fi | |
2323 done | |
2324 fi | |
2325 eval ac_res=\$$3 | |
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2327 $as_echo "$ac_res" >&6; } | |
2328 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2329 | |
2330 } # ac_fn_c_find_intX_t | |
2331 | |
2332 # ac_fn_c_try_link LINENO | |
2333 # ----------------------- | |
2334 # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2335 ac_fn_c_try_link () | |
2336 { | |
2337 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2338 rm -f conftest.$ac_objext conftest$ac_exeext | |
2339 if { { ac_try="$ac_link" | |
2340 case "(($ac_try" in | |
2341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2342 *) ac_try_echo=$ac_try;; | |
2343 esac | |
2344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2345 $as_echo "$ac_try_echo"; } >&5 | |
2346 (eval "$ac_link") 2>conftest.err | |
2347 ac_status=$? | |
2348 if test -s conftest.err; then | |
2349 grep -v '^ *+' conftest.err >conftest.er1 | |
2350 cat conftest.er1 >&5 | |
2351 mv -f conftest.er1 conftest.err | |
2352 fi | |
2353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2354 test $ac_status = 0; } && { | |
2355 test -z "$ac_c_werror_flag" || | |
2356 test ! -s conftest.err | |
2357 } && test -s conftest$ac_exeext && { | |
2358 test "$cross_compiling" = yes || | |
2359 $as_test_x conftest$ac_exeext | |
2360 }; then : | |
2361 ac_retval=0 | |
2362 else | |
2363 $as_echo "$as_me: failed program was:" >&5 | |
2364 sed 's/^/| /' conftest.$ac_ext >&5 | |
2365 | |
2366 ac_retval=1 | |
2367 fi | |
2368 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2369 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2370 # interfere with the next link command; also delete a directory that is | |
2371 # left behind by Apple's compiler. We do this before executing the actions. | |
2372 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2373 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2374 return $ac_retval | |
2375 | |
2376 } # ac_fn_c_try_link | |
2377 | |
2378 # ac_fn_c_find_uintX_t LINENO BITS VAR | |
2379 # ------------------------------------ | |
2380 # Finds an unsigned integer type with width BITS, setting cache variable VAR | |
2381 # accordingly. | |
2382 ac_fn_c_find_uintX_t () | |
2383 { | |
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | |
2386 $as_echo_n "checking for uint$2_t... " >&6; } | |
2387 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2388 $as_echo_n "(cached) " >&6 | |
2389 else | |
2390 eval "$3=no" | |
2391 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | |
2392 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2394 /* end confdefs.h. */ | |
2395 $ac_includes_default | |
2396 int | |
2397 main () | |
2398 { | |
2399 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)]; | |
2400 test_array [0] = 0 | |
2401 | |
2402 ; | |
2403 return 0; | |
2404 } | |
2405 _ACEOF | |
2406 if ac_fn_c_try_compile "$LINENO"; then : | |
2407 case $ac_type in #( | |
2408 uint$2_t) : | |
2409 eval "$3=yes" ;; #( | |
2410 *) : | |
2411 eval "$3=\$ac_type" ;; | |
2412 esac | |
2413 fi | |
2414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2415 eval as_val=\$$3 | |
2416 if test "x$as_val" = x""no; then : | |
2417 | |
2418 else | |
2419 break | |
2420 fi | |
2421 done | |
2422 fi | |
2423 eval ac_res=\$$3 | |
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2425 $as_echo "$ac_res" >&6; } | |
2426 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2427 | |
2428 } # ac_fn_c_find_uintX_t | |
2429 | |
2430 # ac_fn_c_check_header_preproc LINENO HEADER VAR | |
2431 # ---------------------------------------------- | |
2432 # Tests whether HEADER is present, setting the cache variable VAR accordingly. | |
2433 ac_fn_c_check_header_preproc () | |
2434 { | |
2435 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2437 $as_echo_n "checking for $2... " >&6; } | |
2438 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2439 $as_echo_n "(cached) " >&6 | |
2440 else | |
2441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2442 /* end confdefs.h. */ | |
2443 #include <$2> | |
2444 _ACEOF | |
2445 if ac_fn_c_try_cpp "$LINENO"; then : | |
2446 eval "$3=yes" | |
2447 else | |
2448 eval "$3=no" | |
2449 fi | |
2450 rm -f conftest.err conftest.$ac_ext | |
2451 fi | |
2452 eval ac_res=\$$3 | |
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2454 $as_echo "$ac_res" >&6; } | |
2455 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2456 | |
2457 } # ac_fn_c_check_header_preproc | |
2458 | |
2459 # ac_fn_c_check_func LINENO FUNC VAR | |
2460 # ---------------------------------- | |
2461 # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2462 ac_fn_c_check_func () | |
2463 { | |
2464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2466 $as_echo_n "checking for $2... " >&6; } | |
2467 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2468 $as_echo_n "(cached) " >&6 | |
2469 else | |
2470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2471 /* end confdefs.h. */ | |
2472 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2473 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2474 #define $2 innocuous_$2 | |
2475 | |
2476 /* System header to define __stub macros and hopefully few prototypes, | |
2477 which can conflict with char $2 (); below. | |
2478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2479 <limits.h> exists even on freestanding compilers. */ | |
2480 | |
2481 #ifdef __STDC__ | |
2482 # include <limits.h> | |
2483 #else | |
2484 # include <assert.h> | |
2485 #endif | |
2486 | |
2487 #undef $2 | |
2488 | |
2489 /* Override any GCC internal prototype to avoid an error. | |
2490 Use char because int might match the return type of a GCC | |
2491 builtin and then its argument prototype would still apply. */ | |
2492 #ifdef __cplusplus | |
2493 extern "C" | |
2494 #endif | |
2495 char $2 (); | |
2496 /* The GNU C library defines this for functions which it implements | |
2497 to always fail with ENOSYS. Some functions are actually named | |
2498 something starting with __ and the normal name is an alias. */ | |
2499 #if defined __stub_$2 || defined __stub___$2 | |
2500 choke me | |
2501 #endif | |
2502 | |
2503 int | |
2504 main () | |
2505 { | |
2506 return $2 (); | |
2507 ; | |
2508 return 0; | |
2509 } | |
2510 _ACEOF | |
2511 if ac_fn_c_try_link "$LINENO"; then : | |
2512 eval "$3=yes" | |
2513 else | |
2514 eval "$3=no" | |
2515 fi | |
2516 rm -f core conftest.err conftest.$ac_objext \ | |
2517 conftest$ac_exeext conftest.$ac_ext | |
2518 fi | |
2519 eval ac_res=\$$3 | |
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2521 $as_echo "$ac_res" >&6; } | |
2522 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2523 | |
2524 } # ac_fn_c_check_func | |
2525 | |
2526 # ac_fn_cxx_try_cpp LINENO | |
2527 # ------------------------ | |
2528 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
2529 ac_fn_cxx_try_cpp () | |
2530 { | |
2531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2532 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
2533 case "(($ac_try" in | |
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2535 *) ac_try_echo=$ac_try;; | |
2536 esac | |
2537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2538 $as_echo "$ac_try_echo"; } >&5 | |
2539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
2540 ac_status=$? | |
2541 if test -s conftest.err; then | |
2542 grep -v '^ *+' conftest.err >conftest.er1 | |
2543 cat conftest.er1 >&5 | |
2544 mv -f conftest.er1 conftest.err | |
2545 fi | |
2546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2547 test $ac_status = 0; } >/dev/null && { | |
2548 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
2549 test ! -s conftest.err | |
2550 }; then : | |
2551 ac_retval=0 | |
2552 else | |
2553 $as_echo "$as_me: failed program was:" >&5 | |
2554 sed 's/^/| /' conftest.$ac_ext >&5 | |
2555 | |
2556 ac_retval=1 | |
2557 fi | |
2558 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2559 return $ac_retval | |
2560 | |
2561 } # ac_fn_cxx_try_cpp | |
2562 | |
2563 # ac_fn_cxx_try_link LINENO | |
2564 # ------------------------- | |
2565 # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2566 ac_fn_cxx_try_link () | |
2567 { | |
2568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2569 rm -f conftest.$ac_objext conftest$ac_exeext | |
2570 if { { ac_try="$ac_link" | |
2571 case "(($ac_try" in | |
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2573 *) ac_try_echo=$ac_try;; | |
2574 esac | |
2575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2576 $as_echo "$ac_try_echo"; } >&5 | |
2577 (eval "$ac_link") 2>conftest.err | |
2578 ac_status=$? | |
2579 if test -s conftest.err; then | |
2580 grep -v '^ *+' conftest.err >conftest.er1 | |
2581 cat conftest.er1 >&5 | |
2582 mv -f conftest.er1 conftest.err | |
2583 fi | |
2584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2585 test $ac_status = 0; } && { | |
2586 test -z "$ac_cxx_werror_flag" || | |
2587 test ! -s conftest.err | |
2588 } && test -s conftest$ac_exeext && { | |
2589 test "$cross_compiling" = yes || | |
2590 $as_test_x conftest$ac_exeext | |
2591 }; then : | |
2592 ac_retval=0 | |
2593 else | |
2594 $as_echo "$as_me: failed program was:" >&5 | |
2595 sed 's/^/| /' conftest.$ac_ext >&5 | |
2596 | |
2597 ac_retval=1 | |
2598 fi | |
2599 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2600 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2601 # interfere with the next link command; also delete a directory that is | |
2602 # left behind by Apple's compiler. We do this before executing the actions. | |
2603 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2604 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2605 return $ac_retval | |
2606 | |
2607 } # ac_fn_cxx_try_link | |
2608 cat >config.log <<_ACEOF | |
2609 This file contains any messages produced by compilers while | |
2610 running configure, to aid debugging if configure makes a mistake. | |
2611 | |
2612 It was created by $as_me, which was | |
2613 generated by GNU Autoconf 2.64. Invocation command line was | |
2614 | |
2615 $ $0 $@ | |
2616 | |
2617 _ACEOF | |
2618 exec 5>>config.log | |
2619 { | |
2620 cat <<_ASUNAME | |
2621 ## --------- ## | |
2622 ## Platform. ## | |
2623 ## --------- ## | |
2624 | |
2625 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2626 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2627 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2628 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2629 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2630 | |
2631 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2632 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2633 | |
2634 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2635 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2636 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2637 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2638 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2639 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2640 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2641 | |
2642 _ASUNAME | |
2643 | |
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2645 for as_dir in $PATH | |
2646 do | |
2647 IFS=$as_save_IFS | |
2648 test -z "$as_dir" && as_dir=. | |
2649 $as_echo "PATH: $as_dir" | |
2650 done | |
2651 IFS=$as_save_IFS | |
2652 | |
2653 } >&5 | |
2654 | |
2655 cat >&5 <<_ACEOF | |
2656 | |
2657 | |
2658 ## ----------- ## | |
2659 ## Core tests. ## | |
2660 ## ----------- ## | |
2661 | |
2662 _ACEOF | |
2663 | |
2664 | |
2665 # Keep a trace of the command line. | |
2666 # Strip out --no-create and --no-recursion so they do not pile up. | |
2667 # Strip out --silent because we don't want to record it for future runs. | |
2668 # Also quote any args containing shell meta-characters. | |
2669 # Make two passes to allow for proper duplicate-argument suppression. | |
2670 ac_configure_args= | |
2671 ac_configure_args0= | |
2672 ac_configure_args1= | |
2673 ac_must_keep_next=false | |
2674 for ac_pass in 1 2 | |
2675 do | |
2676 for ac_arg | |
2677 do | |
2678 case $ac_arg in | |
2679 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2680 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2681 | -silent | --silent | --silen | --sile | --sil) | |
2682 continue ;; | |
2683 *\'*) | |
2684 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2685 esac | |
2686 case $ac_pass in | |
2687 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2688 2) | |
2689 as_fn_append ac_configure_args1 " '$ac_arg'" | |
2690 if test $ac_must_keep_next = true; then | |
2691 ac_must_keep_next=false # Got value, back to normal. | |
2692 else | |
2693 case $ac_arg in | |
2694 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2695 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2696 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2697 | -with-* | --with-* | -without-* | --without-* | --x) | |
2698 case "$ac_configure_args0 " in | |
2699 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2700 esac | |
2701 ;; | |
2702 -* ) ac_must_keep_next=true ;; | |
2703 esac | |
2704 fi | |
2705 as_fn_append ac_configure_args " '$ac_arg'" | |
2706 ;; | |
2707 esac | |
2708 done | |
2709 done | |
2710 { ac_configure_args0=; unset ac_configure_args0;} | |
2711 { ac_configure_args1=; unset ac_configure_args1;} | |
2712 | |
2713 # When interrupted or exit'd, cleanup temporary files, and complete | |
2714 # config.log. We remove comments because anyway the quotes in there | |
2715 # would cause problems or look ugly. | |
2716 # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2717 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2718 trap 'exit_status=$? | |
2719 # Save into config.log some information that might help in debugging. | |
2720 { | |
2721 echo | |
2722 | |
2723 cat <<\_ASBOX | |
2724 ## ---------------- ## | |
2725 ## Cache variables. ## | |
2726 ## ---------------- ## | |
2727 _ASBOX | |
2728 echo | |
2729 # The following way of writing the cache mishandles newlines in values, | |
2730 ( | |
2731 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2732 eval ac_val=\$$ac_var | |
2733 case $ac_val in #( | |
2734 *${as_nl}*) | |
2735 case $ac_var in #( | |
2736 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2737 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2738 esac | |
2739 case $ac_var in #( | |
2740 _ | IFS | as_nl) ;; #( | |
2741 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2742 *) { eval $ac_var=; unset $ac_var;} ;; | |
2743 esac ;; | |
2744 esac | |
2745 done | |
2746 (set) 2>&1 | | |
2747 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2748 *${as_nl}ac_space=\ *) | |
2749 sed -n \ | |
2750 "s/'\''/'\''\\\\'\'''\''/g; | |
2751 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2752 ;; #( | |
2753 *) | |
2754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2755 ;; | |
2756 esac | | |
2757 sort | |
2758 ) | |
2759 echo | |
2760 | |
2761 cat <<\_ASBOX | |
2762 ## ----------------- ## | |
2763 ## Output variables. ## | |
2764 ## ----------------- ## | |
2765 _ASBOX | |
2766 echo | |
2767 for ac_var in $ac_subst_vars | |
2768 do | |
2769 eval ac_val=\$$ac_var | |
2770 case $ac_val in | |
2771 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2772 esac | |
2773 $as_echo "$ac_var='\''$ac_val'\''" | |
2774 done | sort | |
2775 echo | |
2776 | |
2777 if test -n "$ac_subst_files"; then | |
2778 cat <<\_ASBOX | |
2779 ## ------------------- ## | |
2780 ## File substitutions. ## | |
2781 ## ------------------- ## | |
2782 _ASBOX | |
2783 echo | |
2784 for ac_var in $ac_subst_files | |
2785 do | |
2786 eval ac_val=\$$ac_var | |
2787 case $ac_val in | |
2788 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2789 esac | |
2790 $as_echo "$ac_var='\''$ac_val'\''" | |
2791 done | sort | |
2792 echo | |
2793 fi | |
2794 | |
2795 if test -s confdefs.h; then | |
2796 cat <<\_ASBOX | |
2797 ## ----------- ## | |
2798 ## confdefs.h. ## | |
2799 ## ----------- ## | |
2800 _ASBOX | |
2801 echo | |
2802 cat confdefs.h | |
2803 echo | |
2804 fi | |
2805 test "$ac_signal" != 0 && | |
2806 $as_echo "$as_me: caught signal $ac_signal" | |
2807 $as_echo "$as_me: exit $exit_status" | |
2808 } >&5 | |
2809 rm -f core *.core core.conftest.* && | |
2810 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2811 exit $exit_status | |
2812 ' 0 | |
2813 for ac_signal in 1 2 13 15; do | |
2814 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2815 done | |
2816 ac_signal=0 | |
2817 | |
2818 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2819 rm -f -r conftest* confdefs.h | |
2820 | |
2821 $as_echo "/* confdefs.h */" > confdefs.h | |
2822 | |
2823 # Predefined preprocessor variables. | |
2824 | |
2825 cat >>confdefs.h <<_ACEOF | |
2826 #define PACKAGE_NAME "$PACKAGE_NAME" | |
2827 _ACEOF | |
2828 | |
2829 cat >>confdefs.h <<_ACEOF | |
2830 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2831 _ACEOF | |
2832 | |
2833 cat >>confdefs.h <<_ACEOF | |
2834 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2835 _ACEOF | |
2836 | |
2837 cat >>confdefs.h <<_ACEOF | |
2838 #define PACKAGE_STRING "$PACKAGE_STRING" | |
2839 _ACEOF | |
2840 | |
2841 cat >>confdefs.h <<_ACEOF | |
2842 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2843 _ACEOF | |
2844 | |
2845 cat >>confdefs.h <<_ACEOF | |
2846 #define PACKAGE_URL "$PACKAGE_URL" | |
2847 _ACEOF | |
2848 | |
2849 | |
2850 # Let the site file select an alternate cache file if it wants to. | |
2851 # Prefer an explicitly selected file to automatically selected ones. | |
2852 ac_site_file1=NONE | |
2853 ac_site_file2=NONE | |
2854 if test -n "$CONFIG_SITE"; then | |
2855 ac_site_file1=$CONFIG_SITE | |
2856 elif test "x$prefix" != xNONE; then | |
2857 ac_site_file1=$prefix/share/config.site | |
2858 ac_site_file2=$prefix/etc/config.site | |
2859 else | |
2860 ac_site_file1=$ac_default_prefix/share/config.site | |
2861 ac_site_file2=$ac_default_prefix/etc/config.site | |
2862 fi | |
2863 for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2864 do | |
2865 test "x$ac_site_file" = xNONE && continue | |
2866 if test -r "$ac_site_file"; then | |
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2868 $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2869 sed 's/^/| /' "$ac_site_file" >&5 | |
2870 . "$ac_site_file" | |
2871 fi | |
2872 done | |
2873 | |
2874 if test -r "$cache_file"; then | |
2875 # Some versions of bash will fail to source /dev/null (special | |
2876 # files actually), so we avoid doing that. | |
2877 if test -f "$cache_file"; then | |
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2879 $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2880 case $cache_file in | |
2881 [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2882 *) . "./$cache_file";; | |
2883 esac | |
2884 fi | |
2885 else | |
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2887 $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2888 >$cache_file | |
2889 fi | |
2890 | |
2891 # Check that the precious variables saved in the cache have kept the same | |
2892 # value. | |
2893 ac_cache_corrupted=false | |
2894 for ac_var in $ac_precious_vars; do | |
2895 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2896 eval ac_new_set=\$ac_env_${ac_var}_set | |
2897 eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2898 eval ac_new_val=\$ac_env_${ac_var}_value | |
2899 case $ac_old_set,$ac_new_set in | |
2900 set,) | |
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2902 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2903 ac_cache_corrupted=: ;; | |
2904 ,set) | |
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2906 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2907 ac_cache_corrupted=: ;; | |
2908 ,);; | |
2909 *) | |
2910 if test "x$ac_old_val" != "x$ac_new_val"; then | |
2911 # differences in whitespace do not lead to failure. | |
2912 ac_old_val_w=`echo x $ac_old_val` | |
2913 ac_new_val_w=`echo x $ac_new_val` | |
2914 if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2916 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2917 ac_cache_corrupted=: | |
2918 else | |
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2920 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2921 eval $ac_var=\$ac_old_val | |
2922 fi | |
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2924 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2926 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2927 fi;; | |
2928 esac | |
2929 # Pass precious variables to config.status. | |
2930 if test "$ac_new_set" = set; then | |
2931 case $ac_new_val in | |
2932 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2933 *) ac_arg=$ac_var=$ac_new_val ;; | |
2934 esac | |
2935 case " $ac_configure_args " in | |
2936 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2937 *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2938 esac | |
2939 fi | |
2940 done | |
2941 if $ac_cache_corrupted; then | |
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2945 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2946 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2947 fi | |
2948 ## -------------------- ## | |
2949 ## Main body of script. ## | |
2950 ## -------------------- ## | |
2951 | |
2952 ac_ext=c | |
2953 ac_cpp='$CPP $CPPFLAGS' | |
2954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2956 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2957 | |
2958 | |
2959 | |
2960 | |
2961 | |
2962 | |
2963 ac_config_headers="$ac_config_headers auto-host.h:config.in" | |
2964 | |
2965 | |
2966 gcc_version=`cat $srcdir/BASE-VER` | |
2967 | |
2968 # Determine the host, build, and target systems | |
2969 ac_aux_dir= | |
2970 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2971 for ac_t in install-sh install.sh shtool; do | |
2972 if test -f "$ac_dir/$ac_t"; then | |
2973 ac_aux_dir=$ac_dir | |
2974 ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2975 break 2 | |
2976 fi | |
2977 done | |
2978 done | |
2979 if test -z "$ac_aux_dir"; then | |
2980 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2981 fi | |
2982 | |
2983 # These three variables are undocumented and unsupported, | |
2984 # and are intended to be withdrawn in a future Autoconf release. | |
2985 # They can cause serious problems if a builder's source tree is in a directory | |
2986 # whose full name contains unusual characters. | |
2987 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2988 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2989 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2990 | |
2991 | |
2992 # Make sure we can run config.sub. | |
2993 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2994 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2995 | |
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2997 $as_echo_n "checking build system type... " >&6; } | |
2998 if test "${ac_cv_build+set}" = set; then : | |
2999 $as_echo_n "(cached) " >&6 | |
3000 else | |
3001 ac_build_alias=$build_alias | |
3002 test "x$ac_build_alias" = x && | |
3003 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3004 test "x$ac_build_alias" = x && | |
3005 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
3006 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3007 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
3008 | |
3009 fi | |
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
3011 $as_echo "$ac_cv_build" >&6; } | |
3012 case $ac_cv_build in | |
3013 *-*-*) ;; | |
3014 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
3015 esac | |
3016 build=$ac_cv_build | |
3017 ac_save_IFS=$IFS; IFS='-' | |
3018 set x $ac_cv_build | |
3019 shift | |
3020 build_cpu=$1 | |
3021 build_vendor=$2 | |
3022 shift; shift | |
3023 # Remember, the first character of IFS is used to create $*, | |
3024 # except with old shells: | |
3025 build_os=$* | |
3026 IFS=$ac_save_IFS | |
3027 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3028 | |
3029 | |
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
3031 $as_echo_n "checking host system type... " >&6; } | |
3032 if test "${ac_cv_host+set}" = set; then : | |
3033 $as_echo_n "(cached) " >&6 | |
3034 else | |
3035 if test "x$host_alias" = x; then | |
3036 ac_cv_host=$ac_cv_build | |
3037 else | |
3038 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3039 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
3040 fi | |
3041 | |
3042 fi | |
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
3044 $as_echo "$ac_cv_host" >&6; } | |
3045 case $ac_cv_host in | |
3046 *-*-*) ;; | |
3047 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
3048 esac | |
3049 host=$ac_cv_host | |
3050 ac_save_IFS=$IFS; IFS='-' | |
3051 set x $ac_cv_host | |
3052 shift | |
3053 host_cpu=$1 | |
3054 host_vendor=$2 | |
3055 shift; shift | |
3056 # Remember, the first character of IFS is used to create $*, | |
3057 # except with old shells: | |
3058 host_os=$* | |
3059 IFS=$ac_save_IFS | |
3060 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3061 | |
3062 | |
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
3064 $as_echo_n "checking target system type... " >&6; } | |
3065 if test "${ac_cv_target+set}" = set; then : | |
3066 $as_echo_n "(cached) " >&6 | |
3067 else | |
3068 if test "x$target_alias" = x; then | |
3069 ac_cv_target=$ac_cv_host | |
3070 else | |
3071 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
3072 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
3073 fi | |
3074 | |
3075 fi | |
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
3077 $as_echo "$ac_cv_target" >&6; } | |
3078 case $ac_cv_target in | |
3079 *-*-*) ;; | |
3080 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
3081 esac | |
3082 target=$ac_cv_target | |
3083 ac_save_IFS=$IFS; IFS='-' | |
3084 set x $ac_cv_target | |
3085 shift | |
3086 target_cpu=$1 | |
3087 target_vendor=$2 | |
3088 shift; shift | |
3089 # Remember, the first character of IFS is used to create $*, | |
3090 # except with old shells: | |
3091 target_os=$* | |
3092 IFS=$ac_save_IFS | |
3093 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
3094 | |
3095 | |
3096 # The aliases save the names the user supplied, while $host etc. | |
3097 # will get canonicalized. | |
3098 test -n "$target_alias" && | |
3099 test "$program_prefix$program_suffix$program_transform_name" = \ | |
3100 NONENONEs,x,x, && | |
3101 program_prefix=${target_alias}- | |
3102 | |
3103 # Determine the noncanonical target name, for directory use. | |
3104 case ${build_alias} in | |
3105 "") build_noncanonical=${build} ;; | |
3106 *) build_noncanonical=${build_alias} ;; | |
3107 esac | |
3108 | |
3109 case ${host_alias} in | |
3110 "") host_noncanonical=${build_noncanonical} ;; | |
3111 *) host_noncanonical=${host_alias} ;; | |
3112 esac | |
3113 | |
3114 case ${target_alias} in | |
3115 "") target_noncanonical=${host_noncanonical} ;; | |
3116 *) target_noncanonical=${target_alias} ;; | |
3117 esac | |
3118 | |
3119 | |
3120 | |
3121 | |
3122 # Determine the target- and build-specific subdirectories | |
3123 | |
3124 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to | |
3125 # have matching libraries, they should use host libraries: Makefile.tpl | |
3126 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
3127 # However, they still use the build modules, because the corresponding | |
3128 # host modules (e.g. bison) are only built for the host when bootstrap | |
3129 # finishes. So: | |
3130 # - build_subdir is where we find build modules, and never changes. | |
3131 # - build_libsubdir is where we find build libraries, and can be overridden. | |
3132 | |
3133 # Prefix 'build-' so this never conflicts with target_subdir. | |
3134 build_subdir="build-${build_noncanonical}" | |
3135 | |
3136 # Check whether --with-build-libsubdir was given. | |
3137 if test "${with_build_libsubdir+set}" = set; then : | |
3138 withval=$with_build_libsubdir; build_libsubdir="$withval" | |
3139 else | |
3140 build_libsubdir="$build_subdir" | |
3141 fi | |
3142 | |
3143 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories | |
3144 if ( test $srcdir = . && test -d gcc ) \ | |
3145 || test -d $srcdir/../host-${host_noncanonical}; then | |
3146 host_subdir="host-${host_noncanonical}" | |
3147 else | |
3148 host_subdir=. | |
3149 fi | |
3150 # No prefix. | |
3151 target_subdir=${target_noncanonical} | |
3152 | |
3153 | |
3154 # Set program_transform_name | |
3155 test "$program_prefix" != NONE && | |
3156 program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
3157 # Use a double $ so make ignores it. | |
3158 test "$program_suffix" != NONE && | |
3159 program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
3160 # Double any \ or $. | |
3161 # By default was `s,x,x', remove it if useless. | |
3162 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
3163 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
3164 | |
3165 | |
3166 # Check for bogus environment variables. | |
3167 # Test if LIBRARY_PATH contains the notation for the current directory | |
3168 # since this would lead to problems installing/building glibc. | |
3169 # LIBRARY_PATH contains the current directory if one of the following | |
3170 # is true: | |
3171 # - one of the terminals (":" and ";") is the first or last sign | |
3172 # - two terminals occur directly after each other | |
3173 # - the path contains an element with a dot in it | |
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5 | |
3175 $as_echo_n "checking LIBRARY_PATH variable... " >&6; } | |
3176 case ${LIBRARY_PATH} in | |
3177 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
3178 library_path_setting="contains current directory" | |
3179 ;; | |
3180 *) | |
3181 library_path_setting="ok" | |
3182 ;; | |
3183 esac | |
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5 | |
3185 $as_echo "$library_path_setting" >&6; } | |
3186 if test "$library_path_setting" != "ok"; then | |
3187 as_fn_error " | |
3188 *** LIBRARY_PATH shouldn't contain the current directory when | |
3189 *** building gcc. Please change the environment variable | |
3190 *** and run configure again." "$LINENO" 5 | |
3191 fi | |
3192 | |
3193 # Test if GCC_EXEC_PREFIX contains the notation for the current directory | |
3194 # since this would lead to problems installing/building glibc. | |
3195 # GCC_EXEC_PREFIX contains the current directory if one of the following | |
3196 # is true: | |
3197 # - one of the terminals (":" and ";") is the first or last sign | |
3198 # - two terminals occur directly after each other | |
3199 # - the path contains an element with a dot in it | |
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5 | |
3201 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; } | |
3202 case ${GCC_EXEC_PREFIX} in | |
3203 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
3204 gcc_exec_prefix_setting="contains current directory" | |
3205 ;; | |
3206 *) | |
3207 gcc_exec_prefix_setting="ok" | |
3208 ;; | |
3209 esac | |
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5 | |
3211 $as_echo "$gcc_exec_prefix_setting" >&6; } | |
3212 if test "$gcc_exec_prefix_setting" != "ok"; then | |
3213 as_fn_error " | |
3214 *** GCC_EXEC_PREFIX shouldn't contain the current directory when | |
3215 *** building gcc. Please change the environment variable | |
3216 *** and run configure again." "$LINENO" 5 | |
3217 fi | |
3218 | |
3219 # ----------- | |
3220 # Directories | |
3221 # ----------- | |
3222 | |
3223 # Specify the local prefix | |
3224 local_prefix= | |
3225 | |
3226 # Check whether --with-local-prefix was given. | |
3227 if test "${with_local_prefix+set}" = set; then : | |
3228 withval=$with_local_prefix; case "${withval}" in | |
3229 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;; | |
3230 no) ;; | |
3231 *) local_prefix=$with_local_prefix ;; | |
3232 esac | |
3233 fi | |
3234 | |
3235 | |
3236 # Default local prefix if it is empty | |
3237 if test x$local_prefix = x; then | |
3238 local_prefix=/usr/local | |
3239 fi | |
3240 | |
3241 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only | |
3242 # passed in by the toplevel make and thus we'd get different behavior | |
3243 # depending on where we built the sources. | |
3244 gcc_gxx_include_dir= | |
3245 # Specify the g++ header file directory | |
3246 | |
3247 # Check whether --with-gxx-include-dir was given. | |
3248 if test "${with_gxx_include_dir+set}" = set; then : | |
3249 withval=$with_gxx_include_dir; case "${withval}" in | |
3250 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;; | |
3251 no) ;; | |
3252 *) gcc_gxx_include_dir=$with_gxx_include_dir ;; | |
3253 esac | |
3254 fi | |
3255 | |
3256 | |
3257 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO. | |
3258 if test x${gcc_gxx_include_dir} = x; then | |
3259 if test x${enable_version_specific_runtime_libs} = xyes; then | |
3260 gcc_gxx_include_dir='${libsubdir}/include/c++' | |
3261 else | |
3262 libstdcxx_incdir='include/c++/$(version)' | |
3263 if test x$host != x$target; then | |
3264 libstdcxx_incdir="$target_alias/$libstdcxx_incdir" | |
3265 fi | |
3266 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir" | |
3267 fi | |
3268 fi | |
3269 | |
3270 | |
3271 # Check whether --with-cpp_install_dir was given. | |
3272 if test "${with_cpp_install_dir+set}" = set; then : | |
3273 withval=$with_cpp_install_dir; if test x$withval = xyes; then | |
3274 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5 | |
3275 elif test x$withval != xno; then | |
3276 cpp_install_dir=$withval | |
3277 fi | |
3278 fi | |
3279 | |
3280 | |
3281 # We would like to our source tree to be readonly. However when releases or | |
3282 # pre-releases are generated, the flex/bison generated files as well as the | |
3283 # various formats of manuals need to be included along with the rest of the | |
3284 # sources. Therefore we have --enable-generated-files-in-srcdir to do | |
3285 # just that. | |
3286 | |
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5 | |
3288 $as_echo_n "checking whether to place generated files in the source directory... " >&6; } | |
3289 # Check whether --enable-generated-files-in-srcdir was given. | |
3290 if test "${enable_generated_files_in_srcdir+set}" = set; then : | |
3291 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval | |
3292 else | |
3293 generated_files_in_srcdir=no | |
3294 fi | |
3295 | |
3296 | |
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5 | |
3298 $as_echo "$generated_files_in_srcdir" >&6; } | |
3299 | |
3300 if test "$generated_files_in_srcdir" = "yes"; then | |
3301 GENINSRC='' | |
3302 else | |
3303 GENINSRC='#' | |
3304 fi | |
3305 | |
3306 | |
3307 # ------------------- | |
3308 # Find default linker | |
3309 # ------------------- | |
3310 | |
3311 # With GNU ld | |
3312 | |
3313 # Check whether --with-gnu-ld was given. | |
3314 if test "${with_gnu_ld+set}" = set; then : | |
3315 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld" | |
3316 else | |
3317 gnu_ld_flag=no | |
3318 fi | |
3319 | |
3320 | |
3321 # With pre-defined ld | |
3322 | |
3323 # Check whether --with-ld was given. | |
3324 if test "${with_ld+set}" = set; then : | |
3325 withval=$with_ld; DEFAULT_LINKER="$with_ld" | |
3326 fi | |
3327 | |
3328 if test x"${DEFAULT_LINKER+set}" = x"set"; then | |
3329 if test ! -x "$DEFAULT_LINKER"; then | |
3330 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5 | |
3331 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then | |
3332 gnu_ld_flag=yes | |
3333 fi | |
3334 | |
3335 cat >>confdefs.h <<_ACEOF | |
3336 #define DEFAULT_LINKER "$DEFAULT_LINKER" | |
3337 _ACEOF | |
3338 | |
3339 fi | |
3340 | |
3341 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi` | |
3342 | |
3343 cat >>confdefs.h <<_ACEOF | |
3344 #define HAVE_GNU_LD $gnu_ld | |
3345 _ACEOF | |
3346 | |
3347 | |
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5 | |
3349 $as_echo_n "checking whether a default linker was specified... " >&6; } | |
3350 if test x"${DEFAULT_LINKER+set}" = x"set"; then | |
3351 if test x"$gnu_ld_flag" = x"no"; then | |
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5 | |
3353 $as_echo "yes ($DEFAULT_LINKER)" >&6; } | |
3354 else | |
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5 | |
3356 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; } | |
3357 fi | |
3358 else | |
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3360 $as_echo "no" >&6; } | |
3361 fi | |
3362 | |
3363 # With demangler in GNU ld | |
3364 | |
3365 # Check whether --with-demangler-in-ld was given. | |
3366 if test "${with_demangler_in_ld+set}" = set; then : | |
3367 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld" | |
3368 else | |
3369 demangler_in_ld=no | |
3370 fi | |
3371 | |
3372 | |
3373 # ---------------------- | |
3374 # Find default assembler | |
3375 # ---------------------- | |
3376 | |
3377 # With GNU as | |
3378 | |
3379 # Check whether --with-gnu-as was given. | |
3380 if test "${with_gnu_as+set}" = set; then : | |
3381 withval=$with_gnu_as; gas_flag="$with_gnu_as" | |
3382 else | |
3383 gas_flag=no | |
3384 fi | |
3385 | |
3386 | |
3387 | |
3388 # Check whether --with-as was given. | |
3389 if test "${with_as+set}" = set; then : | |
3390 withval=$with_as; DEFAULT_ASSEMBLER="$with_as" | |
3391 fi | |
3392 | |
3393 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then | |
3394 if test ! -x "$DEFAULT_ASSEMBLER"; then | |
3395 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5 | |
3396 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then | |
3397 gas_flag=yes | |
3398 fi | |
3399 | |
3400 cat >>confdefs.h <<_ACEOF | |
3401 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER" | |
3402 _ACEOF | |
3403 | |
3404 fi | |
3405 | |
3406 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi` | |
3407 | |
3408 cat >>confdefs.h <<_ACEOF | |
3409 #define HAVE_GNU_AS $gnu_as | |
3410 _ACEOF | |
3411 | |
3412 | |
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5 | |
3414 $as_echo_n "checking whether a default assembler was specified... " >&6; } | |
3415 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then | |
3416 if test x"$gas_flag" = x"no"; then | |
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5 | |
3418 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; } | |
3419 else | |
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5 | |
3421 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; } | |
3422 fi | |
3423 else | |
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3425 $as_echo "no" >&6; } | |
3426 fi | |
3427 | |
3428 # --------------- | |
3429 # Find C compiler | |
3430 # --------------- | |
3431 | |
3432 # If a non-executable a.out is present (e.g. created by GNU as above even if | |
3433 # invoked with -v only), the IRIX 6 native ld just overwrites the existing | |
3434 # file, even when creating an executable, so an execution test fails. | |
3435 # Remove possible default executable files to avoid this. | |
3436 # | |
3437 # FIXME: This really belongs into AC_PROG_CC and can be removed once | |
3438 # Autoconf includes it. | |
3439 rm -f a.out a.exe b.out | |
3440 | |
3441 # Find the native compiler | |
3442 ac_ext=c | |
3443 ac_cpp='$CPP $CPPFLAGS' | |
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3447 if test -n "$ac_tool_prefix"; then | |
3448 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3449 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3451 $as_echo_n "checking for $ac_word... " >&6; } | |
3452 if test "${ac_cv_prog_CC+set}" = set; then : | |
3453 $as_echo_n "(cached) " >&6 | |
3454 else | |
3455 if test -n "$CC"; then | |
3456 ac_cv_prog_CC="$CC" # Let the user override the test. | |
3457 else | |
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3459 for as_dir in $PATH | |
3460 do | |
3461 IFS=$as_save_IFS | |
3462 test -z "$as_dir" && as_dir=. | |
3463 for ac_exec_ext in '' $ac_executable_extensions; do | |
3464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3465 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3467 break 2 | |
3468 fi | |
3469 done | |
3470 done | |
3471 IFS=$as_save_IFS | |
3472 | |
3473 fi | |
3474 fi | |
3475 CC=$ac_cv_prog_CC | |
3476 if test -n "$CC"; then | |
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3478 $as_echo "$CC" >&6; } | |
3479 else | |
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3481 $as_echo "no" >&6; } | |
3482 fi | |
3483 | |
3484 | |
3485 fi | |
3486 if test -z "$ac_cv_prog_CC"; then | |
3487 ac_ct_CC=$CC | |
3488 # Extract the first word of "gcc", so it can be a program name with args. | |
3489 set dummy gcc; ac_word=$2 | |
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3491 $as_echo_n "checking for $ac_word... " >&6; } | |
3492 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3493 $as_echo_n "(cached) " >&6 | |
3494 else | |
3495 if test -n "$ac_ct_CC"; then | |
3496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3497 else | |
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3499 for as_dir in $PATH | |
3500 do | |
3501 IFS=$as_save_IFS | |
3502 test -z "$as_dir" && as_dir=. | |
3503 for ac_exec_ext in '' $ac_executable_extensions; do | |
3504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3505 ac_cv_prog_ac_ct_CC="gcc" | |
3506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3507 break 2 | |
3508 fi | |
3509 done | |
3510 done | |
3511 IFS=$as_save_IFS | |
3512 | |
3513 fi | |
3514 fi | |
3515 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3516 if test -n "$ac_ct_CC"; then | |
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3518 $as_echo "$ac_ct_CC" >&6; } | |
3519 else | |
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3521 $as_echo "no" >&6; } | |
3522 fi | |
3523 | |
3524 if test "x$ac_ct_CC" = x; then | |
3525 CC="" | |
3526 else | |
3527 case $cross_compiling:$ac_tool_warned in | |
3528 yes:) | |
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3531 ac_tool_warned=yes ;; | |
3532 esac | |
3533 CC=$ac_ct_CC | |
3534 fi | |
3535 else | |
3536 CC="$ac_cv_prog_CC" | |
3537 fi | |
3538 | |
3539 if test -z "$CC"; then | |
3540 if test -n "$ac_tool_prefix"; then | |
3541 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3542 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3544 $as_echo_n "checking for $ac_word... " >&6; } | |
3545 if test "${ac_cv_prog_CC+set}" = set; then : | |
3546 $as_echo_n "(cached) " >&6 | |
3547 else | |
3548 if test -n "$CC"; then | |
3549 ac_cv_prog_CC="$CC" # Let the user override the test. | |
3550 else | |
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3552 for as_dir in $PATH | |
3553 do | |
3554 IFS=$as_save_IFS | |
3555 test -z "$as_dir" && as_dir=. | |
3556 for ac_exec_ext in '' $ac_executable_extensions; do | |
3557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3558 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3560 break 2 | |
3561 fi | |
3562 done | |
3563 done | |
3564 IFS=$as_save_IFS | |
3565 | |
3566 fi | |
3567 fi | |
3568 CC=$ac_cv_prog_CC | |
3569 if test -n "$CC"; then | |
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3571 $as_echo "$CC" >&6; } | |
3572 else | |
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3574 $as_echo "no" >&6; } | |
3575 fi | |
3576 | |
3577 | |
3578 fi | |
3579 fi | |
3580 if test -z "$CC"; then | |
3581 # Extract the first word of "cc", so it can be a program name with args. | |
3582 set dummy cc; ac_word=$2 | |
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3584 $as_echo_n "checking for $ac_word... " >&6; } | |
3585 if test "${ac_cv_prog_CC+set}" = set; then : | |
3586 $as_echo_n "(cached) " >&6 | |
3587 else | |
3588 if test -n "$CC"; then | |
3589 ac_cv_prog_CC="$CC" # Let the user override the test. | |
3590 else | |
3591 ac_prog_rejected=no | |
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3593 for as_dir in $PATH | |
3594 do | |
3595 IFS=$as_save_IFS | |
3596 test -z "$as_dir" && as_dir=. | |
3597 for ac_exec_ext in '' $ac_executable_extensions; do | |
3598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3599 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3600 ac_prog_rejected=yes | |
3601 continue | |
3602 fi | |
3603 ac_cv_prog_CC="cc" | |
3604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3605 break 2 | |
3606 fi | |
3607 done | |
3608 done | |
3609 IFS=$as_save_IFS | |
3610 | |
3611 if test $ac_prog_rejected = yes; then | |
3612 # We found a bogon in the path, so make sure we never use it. | |
3613 set dummy $ac_cv_prog_CC | |
3614 shift | |
3615 if test $# != 0; then | |
3616 # We chose a different compiler from the bogus one. | |
3617 # However, it has the same basename, so the bogon will be chosen | |
3618 # first if we set CC to just the basename; use the full file name. | |
3619 shift | |
3620 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3621 fi | |
3622 fi | |
3623 fi | |
3624 fi | |
3625 CC=$ac_cv_prog_CC | |
3626 if test -n "$CC"; then | |
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3628 $as_echo "$CC" >&6; } | |
3629 else | |
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3631 $as_echo "no" >&6; } | |
3632 fi | |
3633 | |
3634 | |
3635 fi | |
3636 if test -z "$CC"; then | |
3637 if test -n "$ac_tool_prefix"; then | |
3638 for ac_prog in cl.exe | |
3639 do | |
3640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3643 $as_echo_n "checking for $ac_word... " >&6; } | |
3644 if test "${ac_cv_prog_CC+set}" = set; then : | |
3645 $as_echo_n "(cached) " >&6 | |
3646 else | |
3647 if test -n "$CC"; then | |
3648 ac_cv_prog_CC="$CC" # Let the user override the test. | |
3649 else | |
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3651 for as_dir in $PATH | |
3652 do | |
3653 IFS=$as_save_IFS | |
3654 test -z "$as_dir" && as_dir=. | |
3655 for ac_exec_ext in '' $ac_executable_extensions; do | |
3656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3657 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3659 break 2 | |
3660 fi | |
3661 done | |
3662 done | |
3663 IFS=$as_save_IFS | |
3664 | |
3665 fi | |
3666 fi | |
3667 CC=$ac_cv_prog_CC | |
3668 if test -n "$CC"; then | |
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3670 $as_echo "$CC" >&6; } | |
3671 else | |
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3673 $as_echo "no" >&6; } | |
3674 fi | |
3675 | |
3676 | |
3677 test -n "$CC" && break | |
3678 done | |
3679 fi | |
3680 if test -z "$CC"; then | |
3681 ac_ct_CC=$CC | |
3682 for ac_prog in cl.exe | |
3683 do | |
3684 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3685 set dummy $ac_prog; ac_word=$2 | |
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3687 $as_echo_n "checking for $ac_word... " >&6; } | |
3688 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3689 $as_echo_n "(cached) " >&6 | |
3690 else | |
3691 if test -n "$ac_ct_CC"; then | |
3692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3693 else | |
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3695 for as_dir in $PATH | |
3696 do | |
3697 IFS=$as_save_IFS | |
3698 test -z "$as_dir" && as_dir=. | |
3699 for ac_exec_ext in '' $ac_executable_extensions; do | |
3700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3701 ac_cv_prog_ac_ct_CC="$ac_prog" | |
3702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3703 break 2 | |
3704 fi | |
3705 done | |
3706 done | |
3707 IFS=$as_save_IFS | |
3708 | |
3709 fi | |
3710 fi | |
3711 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3712 if test -n "$ac_ct_CC"; then | |
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3714 $as_echo "$ac_ct_CC" >&6; } | |
3715 else | |
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3717 $as_echo "no" >&6; } | |
3718 fi | |
3719 | |
3720 | |
3721 test -n "$ac_ct_CC" && break | |
3722 done | |
3723 | |
3724 if test "x$ac_ct_CC" = x; then | |
3725 CC="" | |
3726 else | |
3727 case $cross_compiling:$ac_tool_warned in | |
3728 yes:) | |
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3731 ac_tool_warned=yes ;; | |
3732 esac | |
3733 CC=$ac_ct_CC | |
3734 fi | |
3735 fi | |
3736 | |
3737 fi | |
3738 | |
3739 | |
3740 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3742 as_fn_error "no acceptable C compiler found in \$PATH | |
3743 See \`config.log' for more details." "$LINENO" 5; } | |
3744 | |
3745 # Provide some information about the compiler. | |
3746 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3747 set X $ac_compile | |
3748 ac_compiler=$2 | |
3749 for ac_option in --version -v -V -qversion; do | |
3750 { { ac_try="$ac_compiler $ac_option >&5" | |
3751 case "(($ac_try" in | |
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3753 *) ac_try_echo=$ac_try;; | |
3754 esac | |
3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3756 $as_echo "$ac_try_echo"; } >&5 | |
3757 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3758 ac_status=$? | |
3759 if test -s conftest.err; then | |
3760 sed '10a\ | |
3761 ... rest of stderr output deleted ... | |
3762 10q' conftest.err >conftest.er1 | |
3763 cat conftest.er1 >&5 | |
3764 rm -f conftest.er1 conftest.err | |
3765 fi | |
3766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3767 test $ac_status = 0; } | |
3768 done | |
3769 | |
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3771 /* end confdefs.h. */ | |
3772 | |
3773 int | |
3774 main () | |
3775 { | |
3776 | |
3777 ; | |
3778 return 0; | |
3779 } | |
3780 _ACEOF | |
3781 ac_clean_files_save=$ac_clean_files | |
3782 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" | |
3783 # Try to create an executable without -o first, disregard a.out. | |
3784 # It will help us diagnose broken compilers, and finding out an intuition | |
3785 # of exeext. | |
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3787 $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3788 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3789 | |
3790 # The possible output files: | |
3791 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3792 | |
3793 ac_rmfiles= | |
3794 for ac_file in $ac_files | |
3795 do | |
3796 case $ac_file in | |
3797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3798 * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3799 esac | |
3800 done | |
3801 rm -f $ac_rmfiles | |
3802 | |
3803 if { { ac_try="$ac_link_default" | |
3804 case "(($ac_try" in | |
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3806 *) ac_try_echo=$ac_try;; | |
3807 esac | |
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3809 $as_echo "$ac_try_echo"; } >&5 | |
3810 (eval "$ac_link_default") 2>&5 | |
3811 ac_status=$? | |
3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3813 test $ac_status = 0; }; then : | |
3814 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3815 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3816 # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3817 # so that the user can short-circuit this test for compilers unknown to | |
3818 # Autoconf. | |
3819 for ac_file in $ac_files '' | |
3820 do | |
3821 test -f "$ac_file" || continue | |
3822 case $ac_file in | |
3823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3824 ;; | |
3825 [ab].out ) | |
3826 # We found the default executable, but exeext='' is most | |
3827 # certainly right. | |
3828 break;; | |
3829 *.* ) | |
3830 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3831 then :; else | |
3832 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3833 fi | |
3834 # We set ac_cv_exeext here because the later test for it is not | |
3835 # safe: cross compilers may not add the suffix if given an `-o' | |
3836 # argument, so we may need to know it at that point already. | |
3837 # Even if this section looks crufty: it has the advantage of | |
3838 # actually working. | |
3839 break;; | |
3840 * ) | |
3841 break;; | |
3842 esac | |
3843 done | |
3844 test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3845 | |
3846 else | |
3847 ac_file='' | |
3848 fi | |
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3850 $as_echo "$ac_file" >&6; } | |
3851 if test -z "$ac_file"; then : | |
3852 $as_echo "$as_me: failed program was:" >&5 | |
3853 sed 's/^/| /' conftest.$ac_ext >&5 | |
3854 | |
3855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3857 { as_fn_set_status 77 | |
3858 as_fn_error "C compiler cannot create executables | |
3859 See \`config.log' for more details." "$LINENO" 5; }; } | |
3860 fi | |
3861 ac_exeext=$ac_cv_exeext | |
3862 | |
3863 # Check that the compiler produces executables we can run. If not, either | |
3864 # the compiler is broken, or we cross compile. | |
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3866 $as_echo_n "checking whether the C compiler works... " >&6; } | |
3867 # If not cross compiling, check that we can run a simple program. | |
3868 if test "$cross_compiling" != yes; then | |
3869 if { ac_try='./$ac_file' | |
3870 { { case "(($ac_try" in | |
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3872 *) ac_try_echo=$ac_try;; | |
3873 esac | |
3874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3875 $as_echo "$ac_try_echo"; } >&5 | |
3876 (eval "$ac_try") 2>&5 | |
3877 ac_status=$? | |
3878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3879 test $ac_status = 0; }; }; then | |
3880 cross_compiling=no | |
3881 else | |
3882 if test "$cross_compiling" = maybe; then | |
3883 cross_compiling=yes | |
3884 else | |
3885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3887 as_fn_error "cannot run C compiled programs. | |
3888 If you meant to cross compile, use \`--host'. | |
3889 See \`config.log' for more details." "$LINENO" 5; } | |
3890 fi | |
3891 fi | |
3892 fi | |
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3894 $as_echo "yes" >&6; } | |
3895 | |
3896 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out | |
3897 ac_clean_files=$ac_clean_files_save | |
3898 # Check that the compiler produces executables we can run. If not, either | |
3899 # the compiler is broken, or we cross compile. | |
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3901 $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3903 $as_echo "$cross_compiling" >&6; } | |
3904 | |
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3906 $as_echo_n "checking for suffix of executables... " >&6; } | |
3907 if { { ac_try="$ac_link" | |
3908 case "(($ac_try" in | |
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3910 *) ac_try_echo=$ac_try;; | |
3911 esac | |
3912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3913 $as_echo "$ac_try_echo"; } >&5 | |
3914 (eval "$ac_link") 2>&5 | |
3915 ac_status=$? | |
3916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3917 test $ac_status = 0; }; then : | |
3918 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3919 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3920 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3921 # `rm'. | |
3922 for ac_file in conftest.exe conftest conftest.*; do | |
3923 test -f "$ac_file" || continue | |
3924 case $ac_file in | |
3925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3926 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3927 break;; | |
3928 * ) break;; | |
3929 esac | |
3930 done | |
3931 else | |
3932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3934 as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3935 See \`config.log' for more details." "$LINENO" 5; } | |
3936 fi | |
3937 rm -f conftest$ac_cv_exeext | |
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3939 $as_echo "$ac_cv_exeext" >&6; } | |
3940 | |
3941 rm -f conftest.$ac_ext | |
3942 EXEEXT=$ac_cv_exeext | |
3943 ac_exeext=$EXEEXT | |
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3945 $as_echo_n "checking for suffix of object files... " >&6; } | |
3946 if test "${ac_cv_objext+set}" = set; then : | |
3947 $as_echo_n "(cached) " >&6 | |
3948 else | |
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3950 /* end confdefs.h. */ | |
3951 | |
3952 int | |
3953 main () | |
3954 { | |
3955 | |
3956 ; | |
3957 return 0; | |
3958 } | |
3959 _ACEOF | |
3960 rm -f conftest.o conftest.obj | |
3961 if { { ac_try="$ac_compile" | |
3962 case "(($ac_try" in | |
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3964 *) ac_try_echo=$ac_try;; | |
3965 esac | |
3966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3967 $as_echo "$ac_try_echo"; } >&5 | |
3968 (eval "$ac_compile") 2>&5 | |
3969 ac_status=$? | |
3970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3971 test $ac_status = 0; }; then : | |
3972 for ac_file in conftest.o conftest.obj conftest.*; do | |
3973 test -f "$ac_file" || continue; | |
3974 case $ac_file in | |
3975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3976 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3977 break;; | |
3978 esac | |
3979 done | |
3980 else | |
3981 $as_echo "$as_me: failed program was:" >&5 | |
3982 sed 's/^/| /' conftest.$ac_ext >&5 | |
3983 | |
3984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3986 as_fn_error "cannot compute suffix of object files: cannot compile | |
3987 See \`config.log' for more details." "$LINENO" 5; } | |
3988 fi | |
3989 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3990 fi | |
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3992 $as_echo "$ac_cv_objext" >&6; } | |
3993 OBJEXT=$ac_cv_objext | |
3994 ac_objext=$OBJEXT | |
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3996 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3997 if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3998 $as_echo_n "(cached) " >&6 | |
3999 else | |
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4001 /* end confdefs.h. */ | |
4002 | |
4003 int | |
4004 main () | |
4005 { | |
4006 #ifndef __GNUC__ | |
4007 choke me | |
4008 #endif | |
4009 | |
4010 ; | |
4011 return 0; | |
4012 } | |
4013 _ACEOF | |
4014 if ac_fn_c_try_compile "$LINENO"; then : | |
4015 ac_compiler_gnu=yes | |
4016 else | |
4017 ac_compiler_gnu=no | |
4018 fi | |
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4020 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4021 | |
4022 fi | |
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4024 $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4025 if test $ac_compiler_gnu = yes; then | |
4026 GCC=yes | |
4027 else | |
4028 GCC= | |
4029 fi | |
4030 ac_test_CFLAGS=${CFLAGS+set} | |
4031 ac_save_CFLAGS=$CFLAGS | |
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4033 $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4034 if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4035 $as_echo_n "(cached) " >&6 | |
4036 else | |
4037 ac_save_c_werror_flag=$ac_c_werror_flag | |
4038 ac_c_werror_flag=yes | |
4039 ac_cv_prog_cc_g=no | |
4040 CFLAGS="-g" | |
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4042 /* end confdefs.h. */ | |
4043 | |
4044 int | |
4045 main () | |
4046 { | |
4047 | |
4048 ; | |
4049 return 0; | |
4050 } | |
4051 _ACEOF | |
4052 if ac_fn_c_try_compile "$LINENO"; then : | |
4053 ac_cv_prog_cc_g=yes | |
4054 else | |
4055 CFLAGS="" | |
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4057 /* end confdefs.h. */ | |
4058 | |
4059 int | |
4060 main () | |
4061 { | |
4062 | |
4063 ; | |
4064 return 0; | |
4065 } | |
4066 _ACEOF | |
4067 if ac_fn_c_try_compile "$LINENO"; then : | |
4068 | |
4069 else | |
4070 ac_c_werror_flag=$ac_save_c_werror_flag | |
4071 CFLAGS="-g" | |
4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4073 /* end confdefs.h. */ | |
4074 | |
4075 int | |
4076 main () | |
4077 { | |
4078 | |
4079 ; | |
4080 return 0; | |
4081 } | |
4082 _ACEOF | |
4083 if ac_fn_c_try_compile "$LINENO"; then : | |
4084 ac_cv_prog_cc_g=yes | |
4085 fi | |
4086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4087 fi | |
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4089 fi | |
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4091 ac_c_werror_flag=$ac_save_c_werror_flag | |
4092 fi | |
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4094 $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4095 if test "$ac_test_CFLAGS" = set; then | |
4096 CFLAGS=$ac_save_CFLAGS | |
4097 elif test $ac_cv_prog_cc_g = yes; then | |
4098 if test "$GCC" = yes; then | |
4099 CFLAGS="-g -O2" | |
4100 else | |
4101 CFLAGS="-g" | |
4102 fi | |
4103 else | |
4104 if test "$GCC" = yes; then | |
4105 CFLAGS="-O2" | |
4106 else | |
4107 CFLAGS= | |
4108 fi | |
4109 fi | |
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4111 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4112 if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4113 $as_echo_n "(cached) " >&6 | |
4114 else | |
4115 ac_cv_prog_cc_c89=no | |
4116 ac_save_CC=$CC | |
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4118 /* end confdefs.h. */ | |
4119 #include <stdarg.h> | |
4120 #include <stdio.h> | |
4121 #include <sys/types.h> | |
4122 #include <sys/stat.h> | |
4123 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4124 struct buf { int x; }; | |
4125 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4126 static char *e (p, i) | |
4127 char **p; | |
4128 int i; | |
4129 { | |
4130 return p[i]; | |
4131 } | |
4132 static char *f (char * (*g) (char **, int), char **p, ...) | |
4133 { | |
4134 char *s; | |
4135 va_list v; | |
4136 va_start (v,p); | |
4137 s = g (p, va_arg (v,int)); | |
4138 va_end (v); | |
4139 return s; | |
4140 } | |
4141 | |
4142 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4143 function prototypes and stuff, but not '\xHH' hex character constants. | |
4144 These don't provoke an error unfortunately, instead are silently treated | |
4145 as 'x'. The following induces an error, until -std is added to get | |
4146 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4147 array size at least. It's necessary to write '\x00'==0 to get something | |
4148 that's true only with -std. */ | |
4149 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4150 | |
4151 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4152 inside strings and character constants. */ | |
4153 #define FOO(x) 'x' | |
4154 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4155 | |
4156 int test (int i, double x); | |
4157 struct s1 {int (*f) (int a);}; | |
4158 struct s2 {int (*f) (double a);}; | |
4159 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4160 int argc; | |
4161 char **argv; | |
4162 int | |
4163 main () | |
4164 { | |
4165 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4166 ; | |
4167 return 0; | |
4168 } | |
4169 _ACEOF | |
4170 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4171 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4172 do | |
4173 CC="$ac_save_CC $ac_arg" | |
4174 if ac_fn_c_try_compile "$LINENO"; then : | |
4175 ac_cv_prog_cc_c89=$ac_arg | |
4176 fi | |
4177 rm -f core conftest.err conftest.$ac_objext | |
4178 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4179 done | |
4180 rm -f conftest.$ac_ext | |
4181 CC=$ac_save_CC | |
4182 | |
4183 fi | |
4184 # AC_CACHE_VAL | |
4185 case "x$ac_cv_prog_cc_c89" in | |
4186 x) | |
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4188 $as_echo "none needed" >&6; } ;; | |
4189 xno) | |
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4191 $as_echo "unsupported" >&6; } ;; | |
4192 *) | |
4193 CC="$CC $ac_cv_prog_cc_c89" | |
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4195 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4196 esac | |
4197 if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4198 | |
4199 fi | |
4200 | |
4201 ac_ext=c | |
4202 ac_cpp='$CPP $CPPFLAGS' | |
4203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4205 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4206 | |
4207 if test "x$CC" != xcc; then | |
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 | |
4209 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | |
4210 else | |
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 | |
4212 $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | |
4213 fi | |
4214 set dummy $CC; ac_cc=`$as_echo "$2" | | |
4215 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
4216 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : | |
4217 $as_echo_n "(cached) " >&6 | |
4218 else | |
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4220 /* end confdefs.h. */ | |
4221 | |
4222 int | |
4223 main () | |
4224 { | |
4225 | |
4226 ; | |
4227 return 0; | |
4228 } | |
4229 _ACEOF | |
4230 # Make sure it works both with $CC and with simple cc. | |
4231 # We do the test twice because some compilers refuse to overwrite an | |
4232 # existing .o file with -o, though they will create one. | |
4233 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
4234 rm -f conftest2.* | |
4235 if { { case "(($ac_try" in | |
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4237 *) ac_try_echo=$ac_try;; | |
4238 esac | |
4239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4240 $as_echo "$ac_try_echo"; } >&5 | |
4241 (eval "$ac_try") 2>&5 | |
4242 ac_status=$? | |
4243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4244 test $ac_status = 0; } && | |
4245 test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4247 *) ac_try_echo=$ac_try;; | |
4248 esac | |
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4250 $as_echo "$ac_try_echo"; } >&5 | |
4251 (eval "$ac_try") 2>&5 | |
4252 ac_status=$? | |
4253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4254 test $ac_status = 0; }; | |
4255 then | |
4256 eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
4257 if test "x$CC" != xcc; then | |
4258 # Test first that cc exists at all. | |
4259 if { ac_try='cc -c conftest.$ac_ext >&5' | |
4260 { { case "(($ac_try" in | |
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4262 *) ac_try_echo=$ac_try;; | |
4263 esac | |
4264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4265 $as_echo "$ac_try_echo"; } >&5 | |
4266 (eval "$ac_try") 2>&5 | |
4267 ac_status=$? | |
4268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4269 test $ac_status = 0; }; }; then | |
4270 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
4271 rm -f conftest2.* | |
4272 if { { case "(($ac_try" in | |
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4274 *) ac_try_echo=$ac_try;; | |
4275 esac | |
4276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4277 $as_echo "$ac_try_echo"; } >&5 | |
4278 (eval "$ac_try") 2>&5 | |
4279 ac_status=$? | |
4280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4281 test $ac_status = 0; } && | |
4282 test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4284 *) ac_try_echo=$ac_try;; | |
4285 esac | |
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4287 $as_echo "$ac_try_echo"; } >&5 | |
4288 (eval "$ac_try") 2>&5 | |
4289 ac_status=$? | |
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4291 test $ac_status = 0; }; | |
4292 then | |
4293 # cc works too. | |
4294 : | |
4295 else | |
4296 # cc exists but doesn't like -o. | |
4297 eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
4298 fi | |
4299 fi | |
4300 fi | |
4301 else | |
4302 eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
4303 fi | |
4304 rm -f core conftest* | |
4305 | |
4306 fi | |
4307 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | |
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4309 $as_echo "yes" >&6; } | |
4310 else | |
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4312 $as_echo "no" >&6; } | |
4313 | |
4314 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h | |
4315 | |
4316 fi | |
4317 | |
4318 # expand $ac_aux_dir to an absolute path | |
4319 am_aux_dir=`cd $ac_aux_dir && pwd` | |
4320 | |
4321 # FIXME: we rely on the cache variable name because | |
4322 # there is no other way. | |
4323 set dummy $CC | |
4324 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
4325 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | |
4326 if test "$am_t" != yes; then | |
4327 # Losing compiler, so override with the script. | |
4328 # FIXME: It is wrong to rewrite CC. | |
4329 # But if we don't then we get into trouble of one sort or another. | |
4330 # A longer-term fix would be to have automake use am__CC in this case, | |
4331 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4332 CC="$am_aux_dir/compile $CC" | |
4333 fi | |
4334 | |
4335 | |
4336 ac_ext=cpp | |
4337 ac_cpp='$CXXCPP $CPPFLAGS' | |
4338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4341 if test -z "$CXX"; then | |
4342 if test -n "$CCC"; then | |
4343 CXX=$CCC | |
4344 else | |
4345 if test -n "$ac_tool_prefix"; then | |
4346 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4347 do | |
4348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4351 $as_echo_n "checking for $ac_word... " >&6; } | |
4352 if test "${ac_cv_prog_CXX+set}" = set; then : | |
4353 $as_echo_n "(cached) " >&6 | |
4354 else | |
4355 if test -n "$CXX"; then | |
4356 ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4357 else | |
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4359 for as_dir in $PATH | |
4360 do | |
4361 IFS=$as_save_IFS | |
4362 test -z "$as_dir" && as_dir=. | |
4363 for ac_exec_ext in '' $ac_executable_extensions; do | |
4364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4365 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
4366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4367 break 2 | |
4368 fi | |
4369 done | |
4370 done | |
4371 IFS=$as_save_IFS | |
4372 | |
4373 fi | |
4374 fi | |
4375 CXX=$ac_cv_prog_CXX | |
4376 if test -n "$CXX"; then | |
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4378 $as_echo "$CXX" >&6; } | |
4379 else | |
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4381 $as_echo "no" >&6; } | |
4382 fi | |
4383 | |
4384 | |
4385 test -n "$CXX" && break | |
4386 done | |
4387 fi | |
4388 if test -z "$CXX"; then | |
4389 ac_ct_CXX=$CXX | |
4390 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4391 do | |
4392 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4393 set dummy $ac_prog; ac_word=$2 | |
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4395 $as_echo_n "checking for $ac_word... " >&6; } | |
4396 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4397 $as_echo_n "(cached) " >&6 | |
4398 else | |
4399 if test -n "$ac_ct_CXX"; then | |
4400 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4401 else | |
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4403 for as_dir in $PATH | |
4404 do | |
4405 IFS=$as_save_IFS | |
4406 test -z "$as_dir" && as_dir=. | |
4407 for ac_exec_ext in '' $ac_executable_extensions; do | |
4408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4409 ac_cv_prog_ac_ct_CXX="$ac_prog" | |
4410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4411 break 2 | |
4412 fi | |
4413 done | |
4414 done | |
4415 IFS=$as_save_IFS | |
4416 | |
4417 fi | |
4418 fi | |
4419 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4420 if test -n "$ac_ct_CXX"; then | |
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4422 $as_echo "$ac_ct_CXX" >&6; } | |
4423 else | |
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4425 $as_echo "no" >&6; } | |
4426 fi | |
4427 | |
4428 | |
4429 test -n "$ac_ct_CXX" && break | |
4430 done | |
4431 | |
4432 if test "x$ac_ct_CXX" = x; then | |
4433 CXX="g++" | |
4434 else | |
4435 case $cross_compiling:$ac_tool_warned in | |
4436 yes:) | |
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4439 ac_tool_warned=yes ;; | |
4440 esac | |
4441 CXX=$ac_ct_CXX | |
4442 fi | |
4443 fi | |
4444 | |
4445 fi | |
4446 fi | |
4447 # Provide some information about the compiler. | |
4448 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
4449 set X $ac_compile | |
4450 ac_compiler=$2 | |
4451 for ac_option in --version -v -V -qversion; do | |
4452 { { ac_try="$ac_compiler $ac_option >&5" | |
4453 case "(($ac_try" in | |
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4455 *) ac_try_echo=$ac_try;; | |
4456 esac | |
4457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4458 $as_echo "$ac_try_echo"; } >&5 | |
4459 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4460 ac_status=$? | |
4461 if test -s conftest.err; then | |
4462 sed '10a\ | |
4463 ... rest of stderr output deleted ... | |
4464 10q' conftest.err >conftest.er1 | |
4465 cat conftest.er1 >&5 | |
4466 rm -f conftest.er1 conftest.err | |
4467 fi | |
4468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4469 test $ac_status = 0; } | |
4470 done | |
4471 | |
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
4473 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4474 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4475 $as_echo_n "(cached) " >&6 | |
4476 else | |
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4478 /* end confdefs.h. */ | |
4479 | |
4480 int | |
4481 main () | |
4482 { | |
4483 #ifndef __GNUC__ | |
4484 choke me | |
4485 #endif | |
4486 | |
4487 ; | |
4488 return 0; | |
4489 } | |
4490 _ACEOF | |
4491 if ac_fn_cxx_try_compile "$LINENO"; then : | |
4492 ac_compiler_gnu=yes | |
4493 else | |
4494 ac_compiler_gnu=no | |
4495 fi | |
4496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4497 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
4498 | |
4499 fi | |
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
4501 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4502 if test $ac_compiler_gnu = yes; then | |
4503 GXX=yes | |
4504 else | |
4505 GXX= | |
4506 fi | |
4507 ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4508 ac_save_CXXFLAGS=$CXXFLAGS | |
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4510 $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4511 if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4512 $as_echo_n "(cached) " >&6 | |
4513 else | |
4514 ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4515 ac_cxx_werror_flag=yes | |
4516 ac_cv_prog_cxx_g=no | |
4517 CXXFLAGS="-g" | |
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4519 /* end confdefs.h. */ | |
4520 | |
4521 int | |
4522 main () | |
4523 { | |
4524 | |
4525 ; | |
4526 return 0; | |
4527 } | |
4528 _ACEOF | |
4529 if ac_fn_cxx_try_compile "$LINENO"; then : | |
4530 ac_cv_prog_cxx_g=yes | |
4531 else | |
4532 CXXFLAGS="" | |
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4534 /* end confdefs.h. */ | |
4535 | |
4536 int | |
4537 main () | |
4538 { | |
4539 | |
4540 ; | |
4541 return 0; | |
4542 } | |
4543 _ACEOF | |
4544 if ac_fn_cxx_try_compile "$LINENO"; then : | |
4545 | |
4546 else | |
4547 ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4548 CXXFLAGS="-g" | |
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4550 /* end confdefs.h. */ | |
4551 | |
4552 int | |
4553 main () | |
4554 { | |
4555 | |
4556 ; | |
4557 return 0; | |
4558 } | |
4559 _ACEOF | |
4560 if ac_fn_cxx_try_compile "$LINENO"; then : | |
4561 ac_cv_prog_cxx_g=yes | |
4562 fi | |
4563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4564 fi | |
4565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4566 fi | |
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4568 ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4569 fi | |
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4571 $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4572 if test "$ac_test_CXXFLAGS" = set; then | |
4573 CXXFLAGS=$ac_save_CXXFLAGS | |
4574 elif test $ac_cv_prog_cxx_g = yes; then | |
4575 if test "$GXX" = yes; then | |
4576 CXXFLAGS="-g -O2" | |
4577 else | |
4578 CXXFLAGS="-g" | |
4579 fi | |
4580 else | |
4581 if test "$GXX" = yes; then | |
4582 CXXFLAGS="-O2" | |
4583 else | |
4584 CXXFLAGS= | |
4585 fi | |
4586 fi | |
4587 ac_ext=c | |
4588 ac_cpp='$CPP $CPPFLAGS' | |
4589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4591 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4592 | |
4593 | |
4594 | |
4595 | |
4596 if test -n "$ac_tool_prefix"; then | |
4597 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
4598 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4600 $as_echo_n "checking for $ac_word... " >&6; } | |
4601 if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
4602 $as_echo_n "(cached) " >&6 | |
4603 else | |
4604 if test -n "$GNATBIND"; then | |
4605 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
4606 else | |
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4608 for as_dir in $PATH | |
4609 do | |
4610 IFS=$as_save_IFS | |
4611 test -z "$as_dir" && as_dir=. | |
4612 for ac_exec_ext in '' $ac_executable_extensions; do | |
4613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4614 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" | |
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4616 break 2 | |
4617 fi | |
4618 done | |
4619 done | |
4620 IFS=$as_save_IFS | |
4621 | |
4622 fi | |
4623 fi | |
4624 GNATBIND=$ac_cv_prog_GNATBIND | |
4625 if test -n "$GNATBIND"; then | |
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 | |
4627 $as_echo "$GNATBIND" >&6; } | |
4628 else | |
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4630 $as_echo "no" >&6; } | |
4631 fi | |
4632 | |
4633 | |
4634 fi | |
4635 if test -z "$ac_cv_prog_GNATBIND"; then | |
4636 ac_ct_GNATBIND=$GNATBIND | |
4637 # Extract the first word of "gnatbind", so it can be a program name with args. | |
4638 set dummy gnatbind; ac_word=$2 | |
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4640 $as_echo_n "checking for $ac_word... " >&6; } | |
4641 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
4642 $as_echo_n "(cached) " >&6 | |
4643 else | |
4644 if test -n "$ac_ct_GNATBIND"; then | |
4645 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
4646 else | |
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4648 for as_dir in $PATH | |
4649 do | |
4650 IFS=$as_save_IFS | |
4651 test -z "$as_dir" && as_dir=. | |
4652 for ac_exec_ext in '' $ac_executable_extensions; do | |
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4654 ac_cv_prog_ac_ct_GNATBIND="gnatbind" | |
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4656 break 2 | |
4657 fi | |
4658 done | |
4659 done | |
4660 IFS=$as_save_IFS | |
4661 | |
4662 fi | |
4663 fi | |
4664 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND | |
4665 if test -n "$ac_ct_GNATBIND"; then | |
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 | |
4667 $as_echo "$ac_ct_GNATBIND" >&6; } | |
4668 else | |
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4670 $as_echo "no" >&6; } | |
4671 fi | |
4672 | |
4673 if test "x$ac_ct_GNATBIND" = x; then | |
4674 GNATBIND="no" | |
4675 else | |
4676 case $cross_compiling:$ac_tool_warned in | |
4677 yes:) | |
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4680 ac_tool_warned=yes ;; | |
4681 esac | |
4682 GNATBIND=$ac_ct_GNATBIND | |
4683 fi | |
4684 else | |
4685 GNATBIND="$ac_cv_prog_GNATBIND" | |
4686 fi | |
4687 | |
4688 if test -n "$ac_tool_prefix"; then | |
4689 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
4690 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4692 $as_echo_n "checking for $ac_word... " >&6; } | |
4693 if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
4694 $as_echo_n "(cached) " >&6 | |
4695 else | |
4696 if test -n "$GNATMAKE"; then | |
4697 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
4698 else | |
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4700 for as_dir in $PATH | |
4701 do | |
4702 IFS=$as_save_IFS | |
4703 test -z "$as_dir" && as_dir=. | |
4704 for ac_exec_ext in '' $ac_executable_extensions; do | |
4705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4706 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" | |
4707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4708 break 2 | |
4709 fi | |
4710 done | |
4711 done | |
4712 IFS=$as_save_IFS | |
4713 | |
4714 fi | |
4715 fi | |
4716 GNATMAKE=$ac_cv_prog_GNATMAKE | |
4717 if test -n "$GNATMAKE"; then | |
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 | |
4719 $as_echo "$GNATMAKE" >&6; } | |
4720 else | |
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4722 $as_echo "no" >&6; } | |
4723 fi | |
4724 | |
4725 | |
4726 fi | |
4727 if test -z "$ac_cv_prog_GNATMAKE"; then | |
4728 ac_ct_GNATMAKE=$GNATMAKE | |
4729 # Extract the first word of "gnatmake", so it can be a program name with args. | |
4730 set dummy gnatmake; ac_word=$2 | |
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4732 $as_echo_n "checking for $ac_word... " >&6; } | |
4733 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
4734 $as_echo_n "(cached) " >&6 | |
4735 else | |
4736 if test -n "$ac_ct_GNATMAKE"; then | |
4737 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
4738 else | |
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4740 for as_dir in $PATH | |
4741 do | |
4742 IFS=$as_save_IFS | |
4743 test -z "$as_dir" && as_dir=. | |
4744 for ac_exec_ext in '' $ac_executable_extensions; do | |
4745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4746 ac_cv_prog_ac_ct_GNATMAKE="gnatmake" | |
4747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4748 break 2 | |
4749 fi | |
4750 done | |
4751 done | |
4752 IFS=$as_save_IFS | |
4753 | |
4754 fi | |
4755 fi | |
4756 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE | |
4757 if test -n "$ac_ct_GNATMAKE"; then | |
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 | |
4759 $as_echo "$ac_ct_GNATMAKE" >&6; } | |
4760 else | |
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4762 $as_echo "no" >&6; } | |
4763 fi | |
4764 | |
4765 if test "x$ac_ct_GNATMAKE" = x; then | |
4766 GNATMAKE="no" | |
4767 else | |
4768 case $cross_compiling:$ac_tool_warned in | |
4769 yes:) | |
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4772 ac_tool_warned=yes ;; | |
4773 esac | |
4774 GNATMAKE=$ac_ct_GNATMAKE | |
4775 fi | |
4776 else | |
4777 GNATMAKE="$ac_cv_prog_GNATMAKE" | |
4778 fi | |
4779 | |
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 | |
4781 $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
4782 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
4783 $as_echo_n "(cached) " >&6 | |
4784 else | |
4785 cat >conftest.adb <<EOF | |
4786 procedure conftest is begin null; end conftest; | |
4787 EOF | |
4788 acx_cv_cc_gcc_supports_ada=no | |
4789 # There is a bug in old released versions of GCC which causes the | |
4790 # driver to exit successfully when the appropriate language module | |
4791 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
4792 # Therefore we must check for the error message as well as an | |
4793 # unsuccessful exit. | |
4794 # Other compilers, like HP Tru64 UNIX cc, exit successfully when | |
4795 # given a .adb file, but produce no object file. So we must check | |
4796 # if an object file was really produced to guard against this. | |
4797 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure` | |
4798 if test x"$errors" = x && test -f conftest.$ac_objext; then | |
4799 acx_cv_cc_gcc_supports_ada=yes | |
4800 fi | |
4801 rm -f conftest.* | |
4802 fi | |
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 | |
4804 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
4805 | |
4806 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then | |
4807 have_gnat=yes | |
4808 else | |
4809 have_gnat=no | |
4810 fi | |
4811 | |
4812 | |
4813 # autoconf is lame and doesn't give us any substitution variable for this. | |
4814 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then | |
4815 NO_MINUS_C_MINUS_O=yes | |
4816 else | |
4817 OUTPUT_OPTION='-o $@' | |
4818 fi | |
4819 | |
4820 | |
4821 | |
4822 # Remove the -O2: for historical reasons, unless bootstrapping we prefer | |
4823 # optimizations to be activated explicitly by the toplevel. | |
4824 case "$CC" in | |
4825 */prev-gcc/xgcc*) ;; | |
4826 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;; | |
4827 esac | |
4828 | |
4829 | |
4830 # ------------------------- | |
4831 # Check C compiler features | |
4832 # ------------------------- | |
4833 | |
4834 | |
4835 ac_ext=c | |
4836 ac_cpp='$CPP $CPPFLAGS' | |
4837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4839 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4841 $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4842 # On Suns, sometimes $CPP names a directory. | |
4843 if test -n "$CPP" && test -d "$CPP"; then | |
4844 CPP= | |
4845 fi | |
4846 if test -z "$CPP"; then | |
4847 if test "${ac_cv_prog_CPP+set}" = set; then : | |
4848 $as_echo_n "(cached) " >&6 | |
4849 else | |
4850 # Double quotes because CPP needs to be expanded | |
4851 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4852 do | |
4853 ac_preproc_ok=false | |
4854 for ac_c_preproc_warn_flag in '' yes | |
4855 do | |
4856 # Use a header file that comes with gcc, so configuring glibc | |
4857 # with a fresh cross-compiler works. | |
4858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4859 # <limits.h> exists even on freestanding compilers. | |
4860 # On the NeXT, cc -E runs the code through the compiler's parser, | |
4861 # not just through cpp. "Syntax error" is here to catch this case. | |
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4863 /* end confdefs.h. */ | |
4864 #ifdef __STDC__ | |
4865 # include <limits.h> | |
4866 #else | |
4867 # include <assert.h> | |
4868 #endif | |
4869 Syntax error | |
4870 _ACEOF | |
4871 if ac_fn_c_try_cpp "$LINENO"; then : | |
4872 | |
4873 else | |
4874 # Broken: fails on valid input. | |
4875 continue | |
4876 fi | |
4877 rm -f conftest.err conftest.$ac_ext | |
4878 | |
4879 # OK, works on sane cases. Now check whether nonexistent headers | |
4880 # can be detected and how. | |
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4882 /* end confdefs.h. */ | |
4883 #include <ac_nonexistent.h> | |
4884 _ACEOF | |
4885 if ac_fn_c_try_cpp "$LINENO"; then : | |
4886 # Broken: success on invalid input. | |
4887 continue | |
4888 else | |
4889 # Passes both tests. | |
4890 ac_preproc_ok=: | |
4891 break | |
4892 fi | |
4893 rm -f conftest.err conftest.$ac_ext | |
4894 | |
4895 done | |
4896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4897 rm -f conftest.err conftest.$ac_ext | |
4898 if $ac_preproc_ok; then : | |
4899 break | |
4900 fi | |
4901 | |
4902 done | |
4903 ac_cv_prog_CPP=$CPP | |
4904 | |
4905 fi | |
4906 CPP=$ac_cv_prog_CPP | |
4907 else | |
4908 ac_cv_prog_CPP=$CPP | |
4909 fi | |
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4911 $as_echo "$CPP" >&6; } | |
4912 ac_preproc_ok=false | |
4913 for ac_c_preproc_warn_flag in '' yes | |
4914 do | |
4915 # Use a header file that comes with gcc, so configuring glibc | |
4916 # with a fresh cross-compiler works. | |
4917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4918 # <limits.h> exists even on freestanding compilers. | |
4919 # On the NeXT, cc -E runs the code through the compiler's parser, | |
4920 # not just through cpp. "Syntax error" is here to catch this case. | |
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4922 /* end confdefs.h. */ | |
4923 #ifdef __STDC__ | |
4924 # include <limits.h> | |
4925 #else | |
4926 # include <assert.h> | |
4927 #endif | |
4928 Syntax error | |
4929 _ACEOF | |
4930 if ac_fn_c_try_cpp "$LINENO"; then : | |
4931 | |
4932 else | |
4933 # Broken: fails on valid input. | |
4934 continue | |
4935 fi | |
4936 rm -f conftest.err conftest.$ac_ext | |
4937 | |
4938 # OK, works on sane cases. Now check whether nonexistent headers | |
4939 # can be detected and how. | |
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4941 /* end confdefs.h. */ | |
4942 #include <ac_nonexistent.h> | |
4943 _ACEOF | |
4944 if ac_fn_c_try_cpp "$LINENO"; then : | |
4945 # Broken: success on invalid input. | |
4946 continue | |
4947 else | |
4948 # Passes both tests. | |
4949 ac_preproc_ok=: | |
4950 break | |
4951 fi | |
4952 rm -f conftest.err conftest.$ac_ext | |
4953 | |
4954 done | |
4955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4956 rm -f conftest.err conftest.$ac_ext | |
4957 if $ac_preproc_ok; then : | |
4958 | |
4959 else | |
4960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4962 as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
4963 See \`config.log' for more details." "$LINENO" 5; } | |
4964 fi | |
4965 | |
4966 ac_ext=c | |
4967 ac_cpp='$CPP $CPPFLAGS' | |
4968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4970 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4971 | |
4972 | |
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4974 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4975 if test "${ac_cv_path_GREP+set}" = set; then : | |
4976 $as_echo_n "(cached) " >&6 | |
4977 else | |
4978 if test -z "$GREP"; then | |
4979 ac_path_GREP_found=false | |
4980 # Loop through the user's path and test for each of PROGNAME-LIST | |
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4982 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4983 do | |
4984 IFS=$as_save_IFS | |
4985 test -z "$as_dir" && as_dir=. | |
4986 for ac_prog in grep ggrep; do | |
4987 for ac_exec_ext in '' $ac_executable_extensions; do | |
4988 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4989 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4990 # Check for GNU ac_path_GREP and select it if it is found. | |
4991 # Check for GNU $ac_path_GREP | |
4992 case `"$ac_path_GREP" --version 2>&1` in | |
4993 *GNU*) | |
4994 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4995 *) | |
4996 ac_count=0 | |
4997 $as_echo_n 0123456789 >"conftest.in" | |
4998 while : | |
4999 do | |
5000 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5001 mv "conftest.tmp" "conftest.in" | |
5002 cp "conftest.in" "conftest.nl" | |
5003 $as_echo 'GREP' >> "conftest.nl" | |
5004 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5005 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5006 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5007 if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5008 # Best one so far, save it but keep looking for a better one | |
5009 ac_cv_path_GREP="$ac_path_GREP" | |
5010 ac_path_GREP_max=$ac_count | |
5011 fi | |
5012 # 10*(2^10) chars as input seems more than enough | |
5013 test $ac_count -gt 10 && break | |
5014 done | |
5015 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5016 esac | |
5017 | |
5018 $ac_path_GREP_found && break 3 | |
5019 done | |
5020 done | |
5021 done | |
5022 IFS=$as_save_IFS | |
5023 if test -z "$ac_cv_path_GREP"; then | |
5024 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5025 fi | |
5026 else | |
5027 ac_cv_path_GREP=$GREP | |
5028 fi | |
5029 | |
5030 fi | |
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5032 $as_echo "$ac_cv_path_GREP" >&6; } | |
5033 GREP="$ac_cv_path_GREP" | |
5034 | |
5035 | |
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5037 $as_echo_n "checking for egrep... " >&6; } | |
5038 if test "${ac_cv_path_EGREP+set}" = set; then : | |
5039 $as_echo_n "(cached) " >&6 | |
5040 else | |
5041 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5042 then ac_cv_path_EGREP="$GREP -E" | |
5043 else | |
5044 if test -z "$EGREP"; then | |
5045 ac_path_EGREP_found=false | |
5046 # Loop through the user's path and test for each of PROGNAME-LIST | |
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5048 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5049 do | |
5050 IFS=$as_save_IFS | |
5051 test -z "$as_dir" && as_dir=. | |
5052 for ac_prog in egrep; do | |
5053 for ac_exec_ext in '' $ac_executable_extensions; do | |
5054 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5055 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5056 # Check for GNU ac_path_EGREP and select it if it is found. | |
5057 # Check for GNU $ac_path_EGREP | |
5058 case `"$ac_path_EGREP" --version 2>&1` in | |
5059 *GNU*) | |
5060 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5061 *) | |
5062 ac_count=0 | |
5063 $as_echo_n 0123456789 >"conftest.in" | |
5064 while : | |
5065 do | |
5066 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5067 mv "conftest.tmp" "conftest.in" | |
5068 cp "conftest.in" "conftest.nl" | |
5069 $as_echo 'EGREP' >> "conftest.nl" | |
5070 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5071 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5072 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5073 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5074 # Best one so far, save it but keep looking for a better one | |
5075 ac_cv_path_EGREP="$ac_path_EGREP" | |
5076 ac_path_EGREP_max=$ac_count | |
5077 fi | |
5078 # 10*(2^10) chars as input seems more than enough | |
5079 test $ac_count -gt 10 && break | |
5080 done | |
5081 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5082 esac | |
5083 | |
5084 $ac_path_EGREP_found && break 3 | |
5085 done | |
5086 done | |
5087 done | |
5088 IFS=$as_save_IFS | |
5089 if test -z "$ac_cv_path_EGREP"; then | |
5090 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5091 fi | |
5092 else | |
5093 ac_cv_path_EGREP=$EGREP | |
5094 fi | |
5095 | |
5096 fi | |
5097 fi | |
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5099 $as_echo "$ac_cv_path_EGREP" >&6; } | |
5100 EGREP="$ac_cv_path_EGREP" | |
5101 | |
5102 | |
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
5104 $as_echo_n "checking for ANSI C header files... " >&6; } | |
5105 if test "${ac_cv_header_stdc+set}" = set; then : | |
5106 $as_echo_n "(cached) " >&6 | |
5107 else | |
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5109 /* end confdefs.h. */ | |
5110 #include <stdlib.h> | |
5111 #include <stdarg.h> | |
5112 #include <string.h> | |
5113 #include <float.h> | |
5114 | |
5115 int | |
5116 main () | |
5117 { | |
5118 | |
5119 ; | |
5120 return 0; | |
5121 } | |
5122 _ACEOF | |
5123 if ac_fn_c_try_compile "$LINENO"; then : | |
5124 ac_cv_header_stdc=yes | |
5125 else | |
5126 ac_cv_header_stdc=no | |
5127 fi | |
5128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5129 | |
5130 if test $ac_cv_header_stdc = yes; then | |
5131 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5133 /* end confdefs.h. */ | |
5134 #include <string.h> | |
5135 | |
5136 _ACEOF | |
5137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5138 $EGREP "memchr" >/dev/null 2>&1; then : | |
5139 | |
5140 else | |
5141 ac_cv_header_stdc=no | |
5142 fi | |
5143 rm -f conftest* | |
5144 | |
5145 fi | |
5146 | |
5147 if test $ac_cv_header_stdc = yes; then | |
5148 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5150 /* end confdefs.h. */ | |
5151 #include <stdlib.h> | |
5152 | |
5153 _ACEOF | |
5154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5155 $EGREP "free" >/dev/null 2>&1; then : | |
5156 | |
5157 else | |
5158 ac_cv_header_stdc=no | |
5159 fi | |
5160 rm -f conftest* | |
5161 | |
5162 fi | |
5163 | |
5164 if test $ac_cv_header_stdc = yes; then | |
5165 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5166 if test "$cross_compiling" = yes; then : | |
5167 : | |
5168 else | |
5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5170 /* end confdefs.h. */ | |
5171 #include <ctype.h> | |
5172 #include <stdlib.h> | |
5173 #if ((' ' & 0x0FF) == 0x020) | |
5174 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5175 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5176 #else | |
5177 # define ISLOWER(c) \ | |
5178 (('a' <= (c) && (c) <= 'i') \ | |
5179 || ('j' <= (c) && (c) <= 'r') \ | |
5180 || ('s' <= (c) && (c) <= 'z')) | |
5181 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5182 #endif | |
5183 | |
5184 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5185 int | |
5186 main () | |
5187 { | |
5188 int i; | |
5189 for (i = 0; i < 256; i++) | |
5190 if (XOR (islower (i), ISLOWER (i)) | |
5191 || toupper (i) != TOUPPER (i)) | |
5192 return 2; | |
5193 return 0; | |
5194 } | |
5195 _ACEOF | |
5196 if ac_fn_c_try_run "$LINENO"; then : | |
5197 | |
5198 else | |
5199 ac_cv_header_stdc=no | |
5200 fi | |
5201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5202 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5203 fi | |
5204 | |
5205 fi | |
5206 fi | |
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5208 $as_echo "$ac_cv_header_stdc" >&6; } | |
5209 if test $ac_cv_header_stdc = yes; then | |
5210 | |
5211 $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5212 | |
5213 fi | |
5214 | |
5215 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5216 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5217 inttypes.h stdint.h unistd.h | |
5218 do : | |
5219 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5220 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5221 " | |
5222 eval as_val=\$$as_ac_Header | |
5223 if test "x$as_val" = x""yes; then : | |
5224 cat >>confdefs.h <<_ACEOF | |
5225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5226 _ACEOF | |
5227 | |
5228 fi | |
5229 | |
5230 done | |
5231 | |
5232 | |
5233 | |
5234 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
5235 if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
5236 MINIX=yes | |
5237 else | |
5238 MINIX= | |
5239 fi | |
5240 | |
5241 | |
5242 if test "$MINIX" = yes; then | |
5243 | |
5244 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
5245 | |
5246 | |
5247 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
5248 | |
5249 | |
5250 $as_echo "#define _MINIX 1" >>confdefs.h | |
5251 | |
5252 fi | |
5253 | |
5254 | |
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
5256 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
5257 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
5258 $as_echo_n "(cached) " >&6 | |
5259 else | |
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5261 /* end confdefs.h. */ | |
5262 | |
5263 # define __EXTENSIONS__ 1 | |
5264 $ac_includes_default | |
5265 int | |
5266 main () | |
5267 { | |
5268 | |
5269 ; | |
5270 return 0; | |
5271 } | |
5272 _ACEOF | |
5273 if ac_fn_c_try_compile "$LINENO"; then : | |
5274 ac_cv_safe_to_define___extensions__=yes | |
5275 else | |
5276 ac_cv_safe_to_define___extensions__=no | |
5277 fi | |
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5279 fi | |
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5281 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5282 test $ac_cv_safe_to_define___extensions__ = yes && | |
5283 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
5284 | |
5285 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
5286 | |
5287 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
5288 | |
5289 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
5290 | |
5291 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5292 | |
5293 | |
5294 ac_ext=c | |
5295 ac_cpp='$CPP $CPPFLAGS' | |
5296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5298 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
5300 $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
5301 # On Suns, sometimes $CPP names a directory. | |
5302 if test -n "$CPP" && test -d "$CPP"; then | |
5303 CPP= | |
5304 fi | |
5305 if test -z "$CPP"; then | |
5306 if test "${ac_cv_prog_CPP+set}" = set; then : | |
5307 $as_echo_n "(cached) " >&6 | |
5308 else | |
5309 # Double quotes because CPP needs to be expanded | |
5310 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5311 do | |
5312 ac_preproc_ok=false | |
5313 for ac_c_preproc_warn_flag in '' yes | |
5314 do | |
5315 # Use a header file that comes with gcc, so configuring glibc | |
5316 # with a fresh cross-compiler works. | |
5317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5318 # <limits.h> exists even on freestanding compilers. | |
5319 # On the NeXT, cc -E runs the code through the compiler's parser, | |
5320 # not just through cpp. "Syntax error" is here to catch this case. | |
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5322 /* end confdefs.h. */ | |
5323 #ifdef __STDC__ | |
5324 # include <limits.h> | |
5325 #else | |
5326 # include <assert.h> | |
5327 #endif | |
5328 Syntax error | |
5329 _ACEOF | |
5330 if ac_fn_c_try_cpp "$LINENO"; then : | |
5331 | |
5332 else | |
5333 # Broken: fails on valid input. | |
5334 continue | |
5335 fi | |
5336 rm -f conftest.err conftest.$ac_ext | |
5337 | |
5338 # OK, works on sane cases. Now check whether nonexistent headers | |
5339 # can be detected and how. | |
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5341 /* end confdefs.h. */ | |
5342 #include <ac_nonexistent.h> | |
5343 _ACEOF | |
5344 if ac_fn_c_try_cpp "$LINENO"; then : | |
5345 # Broken: success on invalid input. | |
5346 continue | |
5347 else | |
5348 # Passes both tests. | |
5349 ac_preproc_ok=: | |
5350 break | |
5351 fi | |
5352 rm -f conftest.err conftest.$ac_ext | |
5353 | |
5354 done | |
5355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5356 rm -f conftest.err conftest.$ac_ext | |
5357 if $ac_preproc_ok; then : | |
5358 break | |
5359 fi | |
5360 | |
5361 done | |
5362 ac_cv_prog_CPP=$CPP | |
5363 | |
5364 fi | |
5365 CPP=$ac_cv_prog_CPP | |
5366 else | |
5367 ac_cv_prog_CPP=$CPP | |
5368 fi | |
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
5370 $as_echo "$CPP" >&6; } | |
5371 ac_preproc_ok=false | |
5372 for ac_c_preproc_warn_flag in '' yes | |
5373 do | |
5374 # Use a header file that comes with gcc, so configuring glibc | |
5375 # with a fresh cross-compiler works. | |
5376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5377 # <limits.h> exists even on freestanding compilers. | |
5378 # On the NeXT, cc -E runs the code through the compiler's parser, | |
5379 # not just through cpp. "Syntax error" is here to catch this case. | |
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5381 /* end confdefs.h. */ | |
5382 #ifdef __STDC__ | |
5383 # include <limits.h> | |
5384 #else | |
5385 # include <assert.h> | |
5386 #endif | |
5387 Syntax error | |
5388 _ACEOF | |
5389 if ac_fn_c_try_cpp "$LINENO"; then : | |
5390 | |
5391 else | |
5392 # Broken: fails on valid input. | |
5393 continue | |
5394 fi | |
5395 rm -f conftest.err conftest.$ac_ext | |
5396 | |
5397 # OK, works on sane cases. Now check whether nonexistent headers | |
5398 # can be detected and how. | |
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5400 /* end confdefs.h. */ | |
5401 #include <ac_nonexistent.h> | |
5402 _ACEOF | |
5403 if ac_fn_c_try_cpp "$LINENO"; then : | |
5404 # Broken: success on invalid input. | |
5405 continue | |
5406 else | |
5407 # Passes both tests. | |
5408 ac_preproc_ok=: | |
5409 break | |
5410 fi | |
5411 rm -f conftest.err conftest.$ac_ext | |
5412 | |
5413 done | |
5414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5415 rm -f conftest.err conftest.$ac_ext | |
5416 if $ac_preproc_ok; then : | |
5417 | |
5418 else | |
5419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5421 as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
5422 See \`config.log' for more details." "$LINENO" 5; } | |
5423 fi | |
5424 | |
5425 ac_ext=c | |
5426 ac_cpp='$CPP $CPPFLAGS' | |
5427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5429 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5430 | |
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | |
5432 $as_echo_n "checking for inline... " >&6; } | |
5433 if test "${ac_cv_c_inline+set}" = set; then : | |
5434 $as_echo_n "(cached) " >&6 | |
5435 else | |
5436 ac_cv_c_inline=no | |
5437 for ac_kw in inline __inline__ __inline; do | |
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5439 /* end confdefs.h. */ | |
5440 #ifndef __cplusplus | |
5441 typedef int foo_t; | |
5442 static $ac_kw foo_t static_foo () {return 0; } | |
5443 $ac_kw foo_t foo () {return 0; } | |
5444 #endif | |
5445 | |
5446 _ACEOF | |
5447 if ac_fn_c_try_compile "$LINENO"; then : | |
5448 ac_cv_c_inline=$ac_kw | |
5449 fi | |
5450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5451 test "$ac_cv_c_inline" != no && break | |
5452 done | |
5453 | |
5454 fi | |
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
5456 $as_echo "$ac_cv_c_inline" >&6; } | |
5457 | |
5458 case $ac_cv_c_inline in | |
5459 inline | yes) ;; | |
5460 *) | |
5461 case $ac_cv_c_inline in | |
5462 no) ac_val=;; | |
5463 *) ac_val=$ac_cv_c_inline;; | |
5464 esac | |
5465 cat >>confdefs.h <<_ACEOF | |
5466 #ifndef __cplusplus | |
5467 #define inline $ac_val | |
5468 #endif | |
5469 _ACEOF | |
5470 ;; | |
5471 esac | |
5472 | |
5473 | |
5474 # sizeof(char) is 1 by definition. | |
5475 # The cast to long int works around a bug in the HP C Compiler | |
5476 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5477 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5478 # This bug is HP SR number 8606223364. | |
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
5480 $as_echo_n "checking size of void *... " >&6; } | |
5481 if test "${ac_cv_sizeof_void_p+set}" = set; then : | |
5482 $as_echo_n "(cached) " >&6 | |
5483 else | |
5484 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
5485 | |
5486 else | |
5487 if test "$ac_cv_type_void_p" = yes; then | |
5488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5490 { as_fn_set_status 77 | |
5491 as_fn_error "cannot compute sizeof (void *) | |
5492 See \`config.log' for more details." "$LINENO" 5; }; } | |
5493 else | |
5494 ac_cv_sizeof_void_p=0 | |
5495 fi | |
5496 fi | |
5497 | |
5498 fi | |
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
5500 $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
5501 | |
5502 | |
5503 | |
5504 cat >>confdefs.h <<_ACEOF | |
5505 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
5506 _ACEOF | |
5507 | |
5508 | |
5509 # The cast to long int works around a bug in the HP C Compiler | |
5510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5512 # This bug is HP SR number 8606223364. | |
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
5514 $as_echo_n "checking size of short... " >&6; } | |
5515 if test "${ac_cv_sizeof_short+set}" = set; then : | |
5516 $as_echo_n "(cached) " >&6 | |
5517 else | |
5518 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
5519 | |
5520 else | |
5521 if test "$ac_cv_type_short" = yes; then | |
5522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5524 { as_fn_set_status 77 | |
5525 as_fn_error "cannot compute sizeof (short) | |
5526 See \`config.log' for more details." "$LINENO" 5; }; } | |
5527 else | |
5528 ac_cv_sizeof_short=0 | |
5529 fi | |
5530 fi | |
5531 | |
5532 fi | |
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
5534 $as_echo "$ac_cv_sizeof_short" >&6; } | |
5535 | |
5536 | |
5537 | |
5538 cat >>confdefs.h <<_ACEOF | |
5539 #define SIZEOF_SHORT $ac_cv_sizeof_short | |
5540 _ACEOF | |
5541 | |
5542 | |
5543 # The cast to long int works around a bug in the HP C Compiler | |
5544 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5545 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5546 # This bug is HP SR number 8606223364. | |
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
5548 $as_echo_n "checking size of int... " >&6; } | |
5549 if test "${ac_cv_sizeof_int+set}" = set; then : | |
5550 $as_echo_n "(cached) " >&6 | |
5551 else | |
5552 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
5553 | |
5554 else | |
5555 if test "$ac_cv_type_int" = yes; then | |
5556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5558 { as_fn_set_status 77 | |
5559 as_fn_error "cannot compute sizeof (int) | |
5560 See \`config.log' for more details." "$LINENO" 5; }; } | |
5561 else | |
5562 ac_cv_sizeof_int=0 | |
5563 fi | |
5564 fi | |
5565 | |
5566 fi | |
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
5568 $as_echo "$ac_cv_sizeof_int" >&6; } | |
5569 | |
5570 | |
5571 | |
5572 cat >>confdefs.h <<_ACEOF | |
5573 #define SIZEOF_INT $ac_cv_sizeof_int | |
5574 _ACEOF | |
5575 | |
5576 | |
5577 # The cast to long int works around a bug in the HP C Compiler | |
5578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5580 # This bug is HP SR number 8606223364. | |
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
5582 $as_echo_n "checking size of long... " >&6; } | |
5583 if test "${ac_cv_sizeof_long+set}" = set; then : | |
5584 $as_echo_n "(cached) " >&6 | |
5585 else | |
5586 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | |
5587 | |
5588 else | |
5589 if test "$ac_cv_type_long" = yes; then | |
5590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5592 { as_fn_set_status 77 | |
5593 as_fn_error "cannot compute sizeof (long) | |
5594 See \`config.log' for more details." "$LINENO" 5; }; } | |
5595 else | |
5596 ac_cv_sizeof_long=0 | |
5597 fi | |
5598 fi | |
5599 | |
5600 fi | |
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
5602 $as_echo "$ac_cv_sizeof_long" >&6; } | |
5603 | |
5604 | |
5605 | |
5606 cat >>confdefs.h <<_ACEOF | |
5607 #define SIZEOF_LONG $ac_cv_sizeof_long | |
5608 _ACEOF | |
5609 | |
5610 | |
5611 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" | |
5612 if test "x$ac_cv_type_long_long" = x""yes; then : | |
5613 | |
5614 cat >>confdefs.h <<_ACEOF | |
5615 #define HAVE_LONG_LONG 1 | |
5616 _ACEOF | |
5617 | |
5618 # The cast to long int works around a bug in the HP C Compiler | |
5619 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5620 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5621 # This bug is HP SR number 8606223364. | |
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
5623 $as_echo_n "checking size of long long... " >&6; } | |
5624 if test "${ac_cv_sizeof_long_long+set}" = set; then : | |
5625 $as_echo_n "(cached) " >&6 | |
5626 else | |
5627 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
5628 | |
5629 else | |
5630 if test "$ac_cv_type_long_long" = yes; then | |
5631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5633 { as_fn_set_status 77 | |
5634 as_fn_error "cannot compute sizeof (long long) | |
5635 See \`config.log' for more details." "$LINENO" 5; }; } | |
5636 else | |
5637 ac_cv_sizeof_long_long=0 | |
5638 fi | |
5639 fi | |
5640 | |
5641 fi | |
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | |
5643 $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
5644 | |
5645 | |
5646 | |
5647 cat >>confdefs.h <<_ACEOF | |
5648 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
5649 _ACEOF | |
5650 | |
5651 | |
5652 fi | |
5653 | |
5654 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default" | |
5655 if test "x$ac_cv_type___int64" = x""yes; then : | |
5656 | |
5657 cat >>confdefs.h <<_ACEOF | |
5658 #define HAVE___INT64 1 | |
5659 _ACEOF | |
5660 | |
5661 # The cast to long int works around a bug in the HP C Compiler | |
5662 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5663 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5664 # This bug is HP SR number 8606223364. | |
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5 | |
5666 $as_echo_n "checking size of __int64... " >&6; } | |
5667 if test "${ac_cv_sizeof___int64+set}" = set; then : | |
5668 $as_echo_n "(cached) " >&6 | |
5669 else | |
5670 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then : | |
5671 | |
5672 else | |
5673 if test "$ac_cv_type___int64" = yes; then | |
5674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5676 { as_fn_set_status 77 | |
5677 as_fn_error "cannot compute sizeof (__int64) | |
5678 See \`config.log' for more details." "$LINENO" 5; }; } | |
5679 else | |
5680 ac_cv_sizeof___int64=0 | |
5681 fi | |
5682 fi | |
5683 | |
5684 fi | |
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5 | |
5686 $as_echo "$ac_cv_sizeof___int64" >&6; } | |
5687 | |
5688 | |
5689 | |
5690 cat >>confdefs.h <<_ACEOF | |
5691 #define SIZEOF___INT64 $ac_cv_sizeof___int64 | |
5692 _ACEOF | |
5693 | |
5694 | |
5695 fi | |
5696 | |
5697 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" | |
5698 case $ac_cv_c_int8_t in #( | |
5699 no|yes) ;; #( | |
5700 *) | |
5701 | |
5702 cat >>confdefs.h <<_ACEOF | |
5703 #define int8_t $ac_cv_c_int8_t | |
5704 _ACEOF | |
5705 ;; | |
5706 esac | |
5707 | |
5708 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" | |
5709 case $ac_cv_c_int16_t in #( | |
5710 no|yes) ;; #( | |
5711 *) | |
5712 | |
5713 cat >>confdefs.h <<_ACEOF | |
5714 #define int16_t $ac_cv_c_int16_t | |
5715 _ACEOF | |
5716 ;; | |
5717 esac | |
5718 | |
5719 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" | |
5720 case $ac_cv_c_int32_t in #( | |
5721 no|yes) ;; #( | |
5722 *) | |
5723 | |
5724 cat >>confdefs.h <<_ACEOF | |
5725 #define int32_t $ac_cv_c_int32_t | |
5726 _ACEOF | |
5727 ;; | |
5728 esac | |
5729 | |
5730 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" | |
5731 case $ac_cv_c_int64_t in #( | |
5732 no|yes) ;; #( | |
5733 *) | |
5734 | |
5735 cat >>confdefs.h <<_ACEOF | |
5736 #define int64_t $ac_cv_c_int64_t | |
5737 _ACEOF | |
5738 ;; | |
5739 esac | |
5740 | |
5741 | |
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 | |
5743 $as_echo_n "checking for long long int... " >&6; } | |
5744 if test "${ac_cv_type_long_long_int+set}" = set; then : | |
5745 $as_echo_n "(cached) " >&6 | |
5746 else | |
5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5748 /* end confdefs.h. */ | |
5749 | |
5750 /* For now, do not test the preprocessor; as of 2007 there are too many | |
5751 implementations with broken preprocessors. Perhaps this can | |
5752 be revisited in 2012. In the meantime, code should not expect | |
5753 #if to work with literals wider than 32 bits. */ | |
5754 /* Test literals. */ | |
5755 long long int ll = 9223372036854775807ll; | |
5756 long long int nll = -9223372036854775807LL; | |
5757 unsigned long long int ull = 18446744073709551615ULL; | |
5758 /* Test constant expressions. */ | |
5759 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | |
5760 ? 1 : -1)]; | |
5761 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | |
5762 ? 1 : -1)]; | |
5763 int i = 63; | |
5764 int | |
5765 main () | |
5766 { | |
5767 /* Test availability of runtime routines for shift and division. */ | |
5768 long long int llmax = 9223372036854775807ll; | |
5769 unsigned long long int ullmax = 18446744073709551615ull; | |
5770 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | |
5771 | (llmax / ll) | (llmax % ll) | |
5772 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | |
5773 | (ullmax / ull) | (ullmax % ull)); | |
5774 ; | |
5775 return 0; | |
5776 } | |
5777 | |
5778 _ACEOF | |
5779 if ac_fn_c_try_link "$LINENO"; then : | |
5780 if test "$cross_compiling" = yes; then : | |
5781 ac_cv_type_long_long_int=yes | |
5782 else | |
5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5784 /* end confdefs.h. */ | |
5785 #include <limits.h> | |
5786 #ifndef LLONG_MAX | |
5787 # define HALF \ | |
5788 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) | |
5789 # define LLONG_MAX (HALF - 1 + HALF) | |
5790 #endif | |
5791 int | |
5792 main () | |
5793 { | |
5794 long long int n = 1; | |
5795 int i; | |
5796 for (i = 0; ; i++) | |
5797 { | |
5798 long long int m = n << i; | |
5799 if (m >> i != n) | |
5800 return 1; | |
5801 if (LLONG_MAX / 2 < m) | |
5802 break; | |
5803 } | |
5804 return 0; | |
5805 ; | |
5806 return 0; | |
5807 } | |
5808 _ACEOF | |
5809 if ac_fn_c_try_run "$LINENO"; then : | |
5810 ac_cv_type_long_long_int=yes | |
5811 else | |
5812 ac_cv_type_long_long_int=no | |
5813 fi | |
5814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5815 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5816 fi | |
5817 | |
5818 else | |
5819 ac_cv_type_long_long_int=no | |
5820 fi | |
5821 rm -f core conftest.err conftest.$ac_objext \ | |
5822 conftest$ac_exeext conftest.$ac_ext | |
5823 fi | |
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 | |
5825 $as_echo "$ac_cv_type_long_long_int" >&6; } | |
5826 if test $ac_cv_type_long_long_int = yes; then | |
5827 | |
5828 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h | |
5829 | |
5830 fi | |
5831 | |
5832 | |
5833 | |
5834 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" | |
5835 if test "x$ac_cv_type_intmax_t" = x""yes; then : | |
5836 | |
5837 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h | |
5838 | |
5839 else | |
5840 test $ac_cv_type_long_long_int = yes \ | |
5841 && ac_type='long long int' \ | |
5842 || ac_type='long int' | |
5843 | |
5844 cat >>confdefs.h <<_ACEOF | |
5845 #define intmax_t $ac_type | |
5846 _ACEOF | |
5847 | |
5848 fi | |
5849 | |
5850 | |
5851 | |
5852 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" | |
5853 if test "x$ac_cv_type_intptr_t" = x""yes; then : | |
5854 | |
5855 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h | |
5856 | |
5857 else | |
5858 for ac_type in 'int' 'long int' 'long long int'; do | |
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5860 /* end confdefs.h. */ | |
5861 $ac_includes_default | |
5862 int | |
5863 main () | |
5864 { | |
5865 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
5866 test_array [0] = 0 | |
5867 | |
5868 ; | |
5869 return 0; | |
5870 } | |
5871 _ACEOF | |
5872 if ac_fn_c_try_compile "$LINENO"; then : | |
5873 | |
5874 cat >>confdefs.h <<_ACEOF | |
5875 #define intptr_t $ac_type | |
5876 _ACEOF | |
5877 | |
5878 ac_type= | |
5879 fi | |
5880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5881 test -z "$ac_type" && break | |
5882 done | |
5883 fi | |
5884 | |
5885 | |
5886 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" | |
5887 case $ac_cv_c_uint8_t in #( | |
5888 no|yes) ;; #( | |
5889 *) | |
5890 | |
5891 $as_echo "#define _UINT8_T 1" >>confdefs.h | |
5892 | |
5893 | |
5894 cat >>confdefs.h <<_ACEOF | |
5895 #define uint8_t $ac_cv_c_uint8_t | |
5896 _ACEOF | |
5897 ;; | |
5898 esac | |
5899 | |
5900 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" | |
5901 case $ac_cv_c_uint16_t in #( | |
5902 no|yes) ;; #( | |
5903 *) | |
5904 | |
5905 | |
5906 cat >>confdefs.h <<_ACEOF | |
5907 #define uint16_t $ac_cv_c_uint16_t | |
5908 _ACEOF | |
5909 ;; | |
5910 esac | |
5911 | |
5912 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" | |
5913 case $ac_cv_c_uint32_t in #( | |
5914 no|yes) ;; #( | |
5915 *) | |
5916 | |
5917 $as_echo "#define _UINT32_T 1" >>confdefs.h | |
5918 | |
5919 | |
5920 cat >>confdefs.h <<_ACEOF | |
5921 #define uint32_t $ac_cv_c_uint32_t | |
5922 _ACEOF | |
5923 ;; | |
5924 esac | |
5925 | |
5926 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | |
5927 case $ac_cv_c_uint64_t in #( | |
5928 no|yes) ;; #( | |
5929 *) | |
5930 | |
5931 $as_echo "#define _UINT64_T 1" >>confdefs.h | |
5932 | |
5933 | |
5934 cat >>confdefs.h <<_ACEOF | |
5935 #define uint64_t $ac_cv_c_uint64_t | |
5936 _ACEOF | |
5937 ;; | |
5938 esac | |
5939 | |
5940 | |
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 | |
5942 $as_echo_n "checking for unsigned long long int... " >&6; } | |
5943 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then : | |
5944 $as_echo_n "(cached) " >&6 | |
5945 else | |
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5947 /* end confdefs.h. */ | |
5948 | |
5949 /* For now, do not test the preprocessor; as of 2007 there are too many | |
5950 implementations with broken preprocessors. Perhaps this can | |
5951 be revisited in 2012. In the meantime, code should not expect | |
5952 #if to work with literals wider than 32 bits. */ | |
5953 /* Test literals. */ | |
5954 long long int ll = 9223372036854775807ll; | |
5955 long long int nll = -9223372036854775807LL; | |
5956 unsigned long long int ull = 18446744073709551615ULL; | |
5957 /* Test constant expressions. */ | |
5958 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | |
5959 ? 1 : -1)]; | |
5960 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | |
5961 ? 1 : -1)]; | |
5962 int i = 63; | |
5963 int | |
5964 main () | |
5965 { | |
5966 /* Test availability of runtime routines for shift and division. */ | |
5967 long long int llmax = 9223372036854775807ll; | |
5968 unsigned long long int ullmax = 18446744073709551615ull; | |
5969 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | |
5970 | (llmax / ll) | (llmax % ll) | |
5971 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | |
5972 | (ullmax / ull) | (ullmax % ull)); | |
5973 ; | |
5974 return 0; | |
5975 } | |
5976 | |
5977 _ACEOF | |
5978 if ac_fn_c_try_link "$LINENO"; then : | |
5979 ac_cv_type_unsigned_long_long_int=yes | |
5980 else | |
5981 ac_cv_type_unsigned_long_long_int=no | |
5982 fi | |
5983 rm -f core conftest.err conftest.$ac_objext \ | |
5984 conftest$ac_exeext conftest.$ac_ext | |
5985 fi | |
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 | |
5987 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } | |
5988 if test $ac_cv_type_unsigned_long_long_int = yes; then | |
5989 | |
5990 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h | |
5991 | |
5992 fi | |
5993 | |
5994 | |
5995 | |
5996 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" | |
5997 if test "x$ac_cv_type_uintmax_t" = x""yes; then : | |
5998 | |
5999 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h | |
6000 | |
6001 else | |
6002 test $ac_cv_type_unsigned_long_long_int = yes \ | |
6003 && ac_type='unsigned long long int' \ | |
6004 || ac_type='unsigned long int' | |
6005 | |
6006 cat >>confdefs.h <<_ACEOF | |
6007 #define uintmax_t $ac_type | |
6008 _ACEOF | |
6009 | |
6010 fi | |
6011 | |
6012 | |
6013 | |
6014 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" | |
6015 if test "x$ac_cv_type_uintptr_t" = x""yes; then : | |
6016 | |
6017 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h | |
6018 | |
6019 else | |
6020 for ac_type in 'unsigned int' 'unsigned long int' \ | |
6021 'unsigned long long int'; do | |
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6023 /* end confdefs.h. */ | |
6024 $ac_includes_default | |
6025 int | |
6026 main () | |
6027 { | |
6028 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
6029 test_array [0] = 0 | |
6030 | |
6031 ; | |
6032 return 0; | |
6033 } | |
6034 _ACEOF | |
6035 if ac_fn_c_try_compile "$LINENO"; then : | |