]>
Commit | Line | Data |
---|---|---|
71ab34df | 1 | #! /bin/sh |
71ab34df | 2 | # Guess values for system-dependent variables and create Makefiles. |
cd9a469c | 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. | |
71ab34df | 8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
cd9a469c | 11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
b30fcfae | 14 | |
cd9a469c | 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 : | |
b30fcfae | 18 | emulate sh |
19 | NULLCMD=: | |
cd9a469c | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b30fcfae | 21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
cd9a469c | 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 | |
b30fcfae | 31 | fi |
b30fcfae | 32 | |
cd9a469c | 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 | } | |
b30fcfae | 79 | fi |
80 | ||
81 | ||
cd9a469c | 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 | |
b30fcfae | 121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
cd9a469c | 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'\" && | |
b181f265 | 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" | |
cd9a469c | 173 | if (eval "$as_required") 2>/dev/null; then : |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
b30fcfae | 184 | do |
cd9a469c | 185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
b30fcfae | 228 | else |
cd9a469c | 229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
b30fcfae | 233 | fi |
cd9a469c | 234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
b30fcfae | 263 | |
cd9a469c | 264 | # as_fn_exit STATUS |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
372 | ||
373 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b30fcfae | 375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
cd9a469c | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b30fcfae | 381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
cd9a469c | 386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
b30fcfae | 391 | |
cd9a469c | 392 | as_me=`$as_basename -- "$0" || |
b30fcfae | 393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
b30fcfae | 410 | |
5084f823 | 411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
570af75a | 417 | |
b30fcfae | 418 | |
cd9a469c | 419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
b30fcfae | 428 | sed ' |
cd9a469c | 429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
b30fcfae | 433 | N |
cd9a469c | 434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b30fcfae | 436 | t loop |
cd9a469c | 437 | s/-\n.*// |
b30fcfae | 438 | ' >$as_me.lineno && |
cd9a469c | 439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
b30fcfae | 441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
cd9a469c | 444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
b30fcfae | 446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
cd9a469c | 450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
b30fcfae | 461 | esac |
462 | ||
cd9a469c | 463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
b30fcfae | 466 | else |
cd9a469c | 467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
b30fcfae | 469 | fi |
cd9a469c | 470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
5084f823 | 472 | as_ln_s='ln -s' |
cd9a469c | 473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
5084f823 | 483 | fi |
b30fcfae | 484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
cd9a469c | 487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
b30fcfae | 489 | |
490 | if mkdir -p . 2>/dev/null; then | |
cd9a469c | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
b30fcfae | 492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
cd9a469c | 497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
a83ffacf | 519 | |
b30fcfae | 520 | # Sed expression to map a string onto a valid CPP name. |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
cd9a469c | 527 | exec 7<&0 </dev/null 6>&1 |
b30fcfae | 528 | |
529 | # Name of the host. | |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
b30fcfae | 534 | # |
535 | # Initializations. | |
536 | # | |
71ab34df | 537 | ac_default_prefix=/usr/local |
cd9a469c | 538 | ac_clean_files= |
b30fcfae | 539 | ac_config_libobj_dir=. |
cd9a469c | 540 | LIBOBJS= |
b30fcfae | 541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
5084f823 | 545 | |
b30fcfae | 546 | # Identity of this package. |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
cd9a469c | 552 | PACKAGE_URL= |
b30fcfae | 553 | |
554 | ac_unique_file="move-if-change" | |
cd9a469c | 555 | enable_option_checking=no |
556 | ac_subst_vars='LTLIBOBJS | |
557 | LIBOBJS | |
558 | compare_exclusions | |
2bd17377 | 559 | host_shared |
cd9a469c | 560 | stage2_werror_flag |
561 | stage1_checking | |
562 | stage1_cflags | |
563 | MAINT | |
564 | MAINTAINER_MODE_FALSE | |
565 | MAINTAINER_MODE_TRUE | |
566 | COMPILER_NM_FOR_TARGET | |
567 | COMPILER_LD_FOR_TARGET | |
568 | COMPILER_AS_FOR_TARGET | |
569 | FLAGS_FOR_TARGET | |
570 | RAW_CXX_FOR_TARGET | |
571 | WINDMC_FOR_TARGET | |
572 | WINDRES_FOR_TARGET | |
573 | STRIP_FOR_TARGET | |
3f71364d | 574 | READELF_FOR_TARGET |
cd9a469c | 575 | RANLIB_FOR_TARGET |
576 | OBJDUMP_FOR_TARGET | |
577 | NM_FOR_TARGET | |
578 | LIPO_FOR_TARGET | |
579 | LD_FOR_TARGET | |
580 | DLLTOOL_FOR_TARGET | |
581 | AS_FOR_TARGET | |
582 | AR_FOR_TARGET | |
5ff5b630 | 583 | GOC_FOR_TARGET |
cd9a469c | 584 | GFORTRAN_FOR_TARGET |
585 | GCJ_FOR_TARGET | |
586 | GCC_FOR_TARGET | |
587 | CXX_FOR_TARGET | |
588 | CC_FOR_TARGET | |
3f71364d | 589 | READELF |
cd9a469c | 590 | OBJDUMP |
591 | OBJCOPY | |
592 | WINDMC | |
593 | WINDRES | |
594 | STRIP | |
595 | RANLIB | |
596 | NM | |
597 | LIPO | |
598 | LD | |
599 | DLLTOOL | |
600 | AS | |
601 | AR | |
602 | RUNTEST | |
603 | EXPECT | |
604 | MAKEINFO | |
605 | FLEX | |
606 | LEX | |
607 | M4 | |
608 | BISON | |
609 | YACC | |
cd9a469c | 610 | WINDRES_FOR_BUILD |
611 | WINDMC_FOR_BUILD | |
612 | RANLIB_FOR_BUILD | |
613 | NM_FOR_BUILD | |
614 | LD_FOR_BUILD | |
615 | LDFLAGS_FOR_BUILD | |
5ff5b630 | 616 | GOC_FOR_BUILD |
cd9a469c | 617 | GFORTRAN_FOR_BUILD |
618 | GCJ_FOR_BUILD | |
619 | DLLTOOL_FOR_BUILD | |
620 | CXX_FOR_BUILD | |
621 | CXXFLAGS_FOR_BUILD | |
622 | CFLAGS_FOR_BUILD | |
623 | CC_FOR_BUILD | |
624 | AS_FOR_BUILD | |
625 | AR_FOR_BUILD | |
1fda3360 | 626 | target_configdirs |
cd9a469c | 627 | configdirs |
cd9a469c | 628 | build_configdirs |
cd9a469c | 629 | INSTALL_GDB_TK |
630 | GDB_TK | |
631 | CONFIGURE_GDB_TK | |
632 | build_tooldir | |
633 | tooldir | |
634 | GCC_SHLIB_SUBDIR | |
635 | RPATH_ENVVAR | |
372a3f1e | 636 | target_configargs |
637 | host_configargs | |
638 | build_configargs | |
719faf1c | 639 | BUILD_CONFIG |
ed9516f5 | 640 | LDFLAGS_FOR_TARGET |
cd9a469c | 641 | CXXFLAGS_FOR_TARGET |
642 | CFLAGS_FOR_TARGET | |
643 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
644 | SYSROOT_CFLAGS_FOR_TARGET | |
7bfefa9d | 645 | extra_host_libiberty_configure_flags |
944792ef | 646 | stage1_languages |
1015a063 | 647 | extra_linker_plugin_flags |
648 | extra_linker_plugin_configure_flags | |
87e20041 | 649 | islinc |
429cca51 | 650 | isllibs |
cd9a469c | 651 | poststage1_ldflags |
d6dfe18a | 652 | poststage1_libs |
cd9a469c | 653 | stage1_ldflags |
13687c85 | 654 | stage1_libs |
e4128452 | 655 | extra_isl_gmp_configure_flags |
cd9a469c | 656 | extra_mpc_mpfr_configure_flags |
657 | extra_mpc_gmp_configure_flags | |
658 | extra_mpfr_configure_flags | |
659 | gmpinc | |
660 | gmplibs | |
661 | do_compare | |
662 | GNATMAKE | |
663 | GNATBIND | |
664 | ac_ct_CXX | |
665 | CXXFLAGS | |
666 | CXX | |
667 | OBJEXT | |
668 | EXEEXT | |
669 | ac_ct_CC | |
670 | CPPFLAGS | |
671 | LDFLAGS | |
672 | CFLAGS | |
673 | CC | |
d7e52ac9 | 674 | EXTRA_CONFIGARGS_LIBJAVA |
d3a7dd32 | 675 | extra_liboffloadmic_configure_flags |
cd9a469c | 676 | target_subdir |
677 | host_subdir | |
678 | build_subdir | |
679 | build_libsubdir | |
b181f265 | 680 | AWK |
681 | SED | |
cd9a469c | 682 | LN_S |
683 | LN | |
684 | INSTALL_DATA | |
685 | INSTALL_SCRIPT | |
686 | INSTALL_PROGRAM | |
687 | target_os | |
688 | target_vendor | |
689 | target_cpu | |
690 | target | |
691 | host_os | |
692 | host_vendor | |
693 | host_cpu | |
694 | host | |
695 | target_noncanonical | |
696 | host_noncanonical | |
697 | build_noncanonical | |
698 | build_os | |
699 | build_vendor | |
700 | build_cpu | |
701 | build | |
702 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
703 | target_alias | |
704 | host_alias | |
705 | build_alias | |
706 | LIBS | |
707 | ECHO_T | |
708 | ECHO_N | |
709 | ECHO_C | |
710 | DEFS | |
711 | mandir | |
712 | localedir | |
713 | libdir | |
714 | psdir | |
715 | pdfdir | |
716 | dvidir | |
717 | htmldir | |
718 | infodir | |
719 | docdir | |
720 | oldincludedir | |
721 | includedir | |
722 | localstatedir | |
723 | sharedstatedir | |
724 | sysconfdir | |
725 | datadir | |
726 | datarootdir | |
727 | libexecdir | |
728 | sbindir | |
729 | bindir | |
730 | program_transform_name | |
731 | prefix | |
732 | exec_prefix | |
733 | PACKAGE_URL | |
734 | PACKAGE_BUGREPORT | |
735 | PACKAGE_STRING | |
736 | PACKAGE_VERSION | |
737 | PACKAGE_TARNAME | |
738 | PACKAGE_NAME | |
739 | PATH_SEPARATOR | |
740 | SHELL' | |
741 | ac_subst_files='serialization_dependencies | |
742 | host_makefile_frag | |
743 | target_makefile_frag | |
744 | alphaieee_frag | |
745 | ospace_frag' | |
746 | ac_user_opts=' | |
747 | enable_option_checking | |
748 | with_build_libsubdir | |
a3d93be3 | 749 | enable_as_accelerator_for |
750 | enable_offload_targets | |
cd9a469c | 751 | enable_gold |
1e369e5f | 752 | enable_ld |
d9d975ae | 753 | enable_libquadmath |
754 | enable_libquadmath_support | |
cd9a469c | 755 | enable_libada |
756 | enable_libssp | |
a3ba808f | 757 | enable_libstdcxx |
d3a7dd32 | 758 | enable_liboffloadmic |
d7e52ac9 | 759 | enable_static_libjava |
6c59dfa4 | 760 | enable_bootstrap |
cd9a469c | 761 | with_mpc |
762 | with_mpc_include | |
763 | with_mpc_lib | |
764 | with_mpfr_dir | |
765 | with_mpfr | |
766 | with_mpfr_include | |
767 | with_mpfr_lib | |
768 | with_gmp_dir | |
769 | with_gmp | |
770 | with_gmp_include | |
771 | with_gmp_lib | |
772 | with_host_libstdcxx | |
cd9a469c | 773 | with_stage1_libs |
13687c85 | 774 | with_stage1_ldflags |
cd9a469c | 775 | with_boot_libs |
d6dfe18a | 776 | with_boot_ldflags |
87e20041 | 777 | with_isl |
778 | with_isl_include | |
779 | with_isl_lib | |
780 | enable_isl_version_check | |
7bfefa9d | 781 | enable_lto |
1015a063 | 782 | enable_linker_plugin_configure_flags |
783 | enable_linker_plugin_flags | |
cd9a469c | 784 | enable_stage1_languages |
785 | enable_objc_gc | |
786 | with_build_sysroot | |
787 | with_debug_prefix_map | |
a2059f7a | 788 | with_build_config |
ee055341 | 789 | enable_vtable_verify |
cd9a469c | 790 | enable_serial_configure |
791 | with_build_time_tools | |
792 | enable_maintainer_mode | |
793 | enable_stage1_checking | |
794 | enable_werror | |
2bd17377 | 795 | enable_host_shared |
cd9a469c | 796 | ' |
797 | ac_precious_vars='build_alias | |
798 | host_alias | |
799 | target_alias | |
800 | CC | |
801 | CFLAGS | |
802 | LDFLAGS | |
803 | LIBS | |
804 | CPPFLAGS | |
805 | CXX | |
806 | CXXFLAGS | |
807 | CCC | |
372a3f1e | 808 | build_configargs |
809 | host_configargs | |
810 | target_configargs | |
cd9a469c | 811 | AR |
812 | AS | |
813 | DLLTOOL | |
814 | LD | |
815 | LIPO | |
816 | NM | |
817 | RANLIB | |
818 | STRIP | |
819 | WINDRES | |
820 | WINDMC | |
821 | OBJCOPY | |
822 | OBJDUMP | |
3f71364d | 823 | READELF |
cd9a469c | 824 | CC_FOR_TARGET |
825 | CXX_FOR_TARGET | |
826 | GCC_FOR_TARGET | |
827 | GCJ_FOR_TARGET | |
828 | GFORTRAN_FOR_TARGET | |
5ff5b630 | 829 | GOC_FOR_TARGET |
cd9a469c | 830 | AR_FOR_TARGET |
831 | AS_FOR_TARGET | |
832 | DLLTOOL_FOR_TARGET | |
833 | LD_FOR_TARGET | |
834 | LIPO_FOR_TARGET | |
835 | NM_FOR_TARGET | |
836 | OBJDUMP_FOR_TARGET | |
837 | RANLIB_FOR_TARGET | |
3f71364d | 838 | READELF_FOR_TARGET |
cd9a469c | 839 | STRIP_FOR_TARGET |
840 | WINDRES_FOR_TARGET | |
841 | WINDMC_FOR_TARGET' | |
842 | ||
71ab34df | 843 | |
844 | # Initialize some variables set by options. | |
b30fcfae | 845 | ac_init_help= |
846 | ac_init_version=false | |
cd9a469c | 847 | ac_unrecognized_opts= |
848 | ac_unrecognized_sep= | |
71ab34df | 849 | # The variables have the same names as the options, with |
850 | # dashes changed to underlines. | |
b30fcfae | 851 | cache_file=/dev/null |
71ab34df | 852 | exec_prefix=NONE |
71ab34df | 853 | no_create= |
71ab34df | 854 | no_recursion= |
855 | prefix=NONE | |
856 | program_prefix=NONE | |
857 | program_suffix=NONE | |
858 | program_transform_name=s,x,x, | |
859 | silent= | |
860 | site= | |
861 | srcdir= | |
71ab34df | 862 | verbose= |
863 | x_includes=NONE | |
864 | x_libraries=NONE | |
b30fcfae | 865 | |
866 | # Installation directory options. | |
867 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
868 | # and all the variables that are supposed to be based on exec_prefix | |
869 | # by default will actually change. | |
870 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
cd9a469c | 871 | # (The list follows the same order as the GNU Coding Standards.) |
71ab34df | 872 | bindir='${exec_prefix}/bin' |
873 | sbindir='${exec_prefix}/sbin' | |
874 | libexecdir='${exec_prefix}/libexec' | |
cd9a469c | 875 | datarootdir='${prefix}/share' |
876 | datadir='${datarootdir}' | |
71ab34df | 877 | sysconfdir='${prefix}/etc' |
878 | sharedstatedir='${prefix}/com' | |
879 | localstatedir='${prefix}/var' | |
71ab34df | 880 | includedir='${prefix}/include' |
881 | oldincludedir='/usr/include' | |
cd9a469c | 882 | docdir='${datarootdir}/doc/${PACKAGE}' |
883 | infodir='${datarootdir}/info' | |
884 | htmldir='${docdir}' | |
885 | dvidir='${docdir}' | |
886 | pdfdir='${docdir}' | |
887 | psdir='${docdir}' | |
888 | libdir='${exec_prefix}/lib' | |
889 | localedir='${datarootdir}/locale' | |
890 | mandir='${datarootdir}/man' | |
a8298541 | 891 | |
71ab34df | 892 | ac_prev= |
cd9a469c | 893 | ac_dashdash= |
71ab34df | 894 | for ac_option |
895 | do | |
71ab34df | 896 | # If the previous option needs an argument, assign it. |
897 | if test -n "$ac_prev"; then | |
cd9a469c | 898 | eval $ac_prev=\$ac_option |
71ab34df | 899 | ac_prev= |
900 | continue | |
901 | fi | |
a8298541 | 902 | |
cd9a469c | 903 | case $ac_option in |
904 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
905 | *) ac_optarg=yes ;; | |
906 | esac | |
71ab34df | 907 | |
908 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
909 | ||
cd9a469c | 910 | case $ac_dashdash$ac_option in |
911 | --) | |
912 | ac_dashdash=yes ;; | |
71ab34df | 913 | |
914 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
915 | ac_prev=bindir ;; | |
916 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b30fcfae | 917 | bindir=$ac_optarg ;; |
71ab34df | 918 | |
919 | -build | --build | --buil | --bui | --bu) | |
b30fcfae | 920 | ac_prev=build_alias ;; |
71ab34df | 921 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b30fcfae | 922 | build_alias=$ac_optarg ;; |
71ab34df | 923 | |
924 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
925 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
926 | ac_prev=cache_file ;; | |
927 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
928 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b30fcfae | 929 | cache_file=$ac_optarg ;; |
930 | ||
931 | --config-cache | -C) | |
932 | cache_file=config.cache ;; | |
71ab34df | 933 | |
cd9a469c | 934 | -datadir | --datadir | --datadi | --datad) |
71ab34df | 935 | ac_prev=datadir ;; |
cd9a469c | 936 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b30fcfae | 937 | datadir=$ac_optarg ;; |
71ab34df | 938 | |
cd9a469c | 939 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
940 | | --dataroo | --dataro | --datar) | |
941 | ac_prev=datarootdir ;; | |
942 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
943 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
944 | datarootdir=$ac_optarg ;; | |
945 | ||
71ab34df | 946 | -disable-* | --disable-*) |
cd9a469c | 947 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
71ab34df | 948 | # Reject names that are not valid shell variable names. |
cd9a469c | 949 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
950 | as_fn_error "invalid feature name: $ac_useropt" | |
951 | ac_useropt_orig=$ac_useropt | |
952 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
953 | case $ac_user_opts in | |
954 | *" | |
955 | "enable_$ac_useropt" | |
956 | "*) ;; | |
957 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
958 | ac_unrecognized_sep=', ';; | |
959 | esac | |
960 | eval enable_$ac_useropt=no ;; | |
961 | ||
962 | -docdir | --docdir | --docdi | --doc | --do) | |
963 | ac_prev=docdir ;; | |
964 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
965 | docdir=$ac_optarg ;; | |
966 | ||
967 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
968 | ac_prev=dvidir ;; | |
969 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
970 | dvidir=$ac_optarg ;; | |
71ab34df | 971 | |
972 | -enable-* | --enable-*) | |
cd9a469c | 973 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
71ab34df | 974 | # Reject names that are not valid shell variable names. |
cd9a469c | 975 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
976 | as_fn_error "invalid feature name: $ac_useropt" | |
977 | ac_useropt_orig=$ac_useropt | |
978 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
979 | case $ac_user_opts in | |
980 | *" | |
981 | "enable_$ac_useropt" | |
982 | "*) ;; | |
983 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
984 | ac_unrecognized_sep=', ';; | |
5084f823 | 985 | esac |
cd9a469c | 986 | eval enable_$ac_useropt=\$ac_optarg ;; |
71ab34df | 987 | |
988 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
989 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
990 | | --exec | --exe | --ex) | |
991 | ac_prev=exec_prefix ;; | |
992 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
993 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
994 | | --exec=* | --exe=* | --ex=*) | |
b30fcfae | 995 | exec_prefix=$ac_optarg ;; |
71ab34df | 996 | |
997 | -gas | --gas | --ga | --g) | |
998 | # Obsolete; use --with-gas. | |
999 | with_gas=yes ;; | |
1000 | ||
b30fcfae | 1001 | -help | --help | --hel | --he | -h) |
1002 | ac_init_help=long ;; | |
1003 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1004 | ac_init_help=recursive ;; | |
1005 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1006 | ac_init_help=short ;; | |
71ab34df | 1007 | |
1008 | -host | --host | --hos | --ho) | |
b30fcfae | 1009 | ac_prev=host_alias ;; |
71ab34df | 1010 | -host=* | --host=* | --hos=* | --ho=*) |
b30fcfae | 1011 | host_alias=$ac_optarg ;; |
71ab34df | 1012 | |
cd9a469c | 1013 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1014 | ac_prev=htmldir ;; | |
1015 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1016 | | --ht=*) | |
1017 | htmldir=$ac_optarg ;; | |
1018 | ||
71ab34df | 1019 | -includedir | --includedir | --includedi | --included | --include \ |
1020 | | --includ | --inclu | --incl | --inc) | |
1021 | ac_prev=includedir ;; | |
1022 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1023 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b30fcfae | 1024 | includedir=$ac_optarg ;; |
71ab34df | 1025 | |
1026 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1027 | ac_prev=infodir ;; | |
1028 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b30fcfae | 1029 | infodir=$ac_optarg ;; |
71ab34df | 1030 | |
1031 | -libdir | --libdir | --libdi | --libd) | |
1032 | ac_prev=libdir ;; | |
1033 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b30fcfae | 1034 | libdir=$ac_optarg ;; |
71ab34df | 1035 | |
1036 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1037 | | --libexe | --libex | --libe) | |
1038 | ac_prev=libexecdir ;; | |
1039 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1040 | | --libexe=* | --libex=* | --libe=*) | |
b30fcfae | 1041 | libexecdir=$ac_optarg ;; |
71ab34df | 1042 | |
cd9a469c | 1043 | -localedir | --localedir | --localedi | --localed | --locale) |
1044 | ac_prev=localedir ;; | |
1045 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1046 | localedir=$ac_optarg ;; | |
1047 | ||
71ab34df | 1048 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
cd9a469c | 1049 | | --localstate | --localstat | --localsta | --localst | --locals) |
71ab34df | 1050 | ac_prev=localstatedir ;; |
1051 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
cd9a469c | 1052 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b30fcfae | 1053 | localstatedir=$ac_optarg ;; |
71ab34df | 1054 | |
1055 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1056 | ac_prev=mandir ;; | |
1057 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b30fcfae | 1058 | mandir=$ac_optarg ;; |
71ab34df | 1059 | |
1060 | -nfp | --nfp | --nf) | |
1061 | # Obsolete; use --without-fp. | |
1062 | with_fp=no ;; | |
1063 | ||
1064 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b30fcfae | 1065 | | --no-cr | --no-c | -n) |
71ab34df | 1066 | no_create=yes ;; |
1067 | ||
1068 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1069 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1070 | no_recursion=yes ;; | |
1071 | ||
1072 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1073 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1074 | | --oldin | --oldi | --old | --ol | --o) | |
1075 | ac_prev=oldincludedir ;; | |
1076 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1077 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1078 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b30fcfae | 1079 | oldincludedir=$ac_optarg ;; |
71ab34df | 1080 | |
1081 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1082 | ac_prev=prefix ;; | |
1083 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b30fcfae | 1084 | prefix=$ac_optarg ;; |
71ab34df | 1085 | |
1086 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1087 | | --program-pre | --program-pr | --program-p) | |
1088 | ac_prev=program_prefix ;; | |
1089 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1090 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b30fcfae | 1091 | program_prefix=$ac_optarg ;; |
71ab34df | 1092 | |
1093 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1094 | | --program-suf | --program-su | --program-s) | |
1095 | ac_prev=program_suffix ;; | |
1096 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1097 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b30fcfae | 1098 | program_suffix=$ac_optarg ;; |
71ab34df | 1099 | |
1100 | -program-transform-name | --program-transform-name \ | |
1101 | | --program-transform-nam | --program-transform-na \ | |
1102 | | --program-transform-n | --program-transform- \ | |
1103 | | --program-transform | --program-transfor \ | |
1104 | | --program-transfo | --program-transf \ | |
1105 | | --program-trans | --program-tran \ | |
1106 | | --progr-tra | --program-tr | --program-t) | |
1107 | ac_prev=program_transform_name ;; | |
1108 | -program-transform-name=* | --program-transform-name=* \ | |
1109 | | --program-transform-nam=* | --program-transform-na=* \ | |
1110 | | --program-transform-n=* | --program-transform-=* \ | |
1111 | | --program-transform=* | --program-transfor=* \ | |
1112 | | --program-transfo=* | --program-transf=* \ | |
1113 | | --program-trans=* | --program-tran=* \ | |
1114 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b30fcfae | 1115 | program_transform_name=$ac_optarg ;; |
71ab34df | 1116 | |
cd9a469c | 1117 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1118 | ac_prev=pdfdir ;; | |
1119 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1120 | pdfdir=$ac_optarg ;; | |
1121 | ||
1122 | -psdir | --psdir | --psdi | --psd | --ps) | |
1123 | ac_prev=psdir ;; | |
1124 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1125 | psdir=$ac_optarg ;; | |
1126 | ||
71ab34df | 1127 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1128 | | -silent | --silent | --silen | --sile | --sil) | |
1129 | silent=yes ;; | |
1130 | ||
1131 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1132 | ac_prev=sbindir ;; | |
1133 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1134 | | --sbi=* | --sb=*) | |
b30fcfae | 1135 | sbindir=$ac_optarg ;; |
71ab34df | 1136 | |
1137 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1138 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1139 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1140 | | --sha | --sh) | |
1141 | ac_prev=sharedstatedir ;; | |
1142 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1143 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1144 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1145 | | --sha=* | --sh=*) | |
b30fcfae | 1146 | sharedstatedir=$ac_optarg ;; |
71ab34df | 1147 | |
1148 | -site | --site | --sit) | |
1149 | ac_prev=site ;; | |
1150 | -site=* | --site=* | --sit=*) | |
b30fcfae | 1151 | site=$ac_optarg ;; |
71ab34df | 1152 | |
1153 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1154 | ac_prev=srcdir ;; | |
1155 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b30fcfae | 1156 | srcdir=$ac_optarg ;; |
71ab34df | 1157 | |
1158 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1159 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1160 | ac_prev=sysconfdir ;; | |
1161 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1162 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b30fcfae | 1163 | sysconfdir=$ac_optarg ;; |
71ab34df | 1164 | |
1165 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b30fcfae | 1166 | ac_prev=target_alias ;; |
71ab34df | 1167 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b30fcfae | 1168 | target_alias=$ac_optarg ;; |
71ab34df | 1169 | |
1170 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1171 | verbose=yes ;; | |
1172 | ||
b30fcfae | 1173 | -version | --version | --versio | --versi | --vers | -V) |
1174 | ac_init_version=: ;; | |
71ab34df | 1175 | |
1176 | -with-* | --with-*) | |
cd9a469c | 1177 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
71ab34df | 1178 | # Reject names that are not valid shell variable names. |
cd9a469c | 1179 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1180 | as_fn_error "invalid package name: $ac_useropt" | |
1181 | ac_useropt_orig=$ac_useropt | |
1182 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1183 | case $ac_user_opts in | |
1184 | *" | |
1185 | "with_$ac_useropt" | |
1186 | "*) ;; | |
1187 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1188 | ac_unrecognized_sep=', ';; | |
5084f823 | 1189 | esac |
cd9a469c | 1190 | eval with_$ac_useropt=\$ac_optarg ;; |
71ab34df | 1191 | |
1192 | -without-* | --without-*) | |
cd9a469c | 1193 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
71ab34df | 1194 | # Reject names that are not valid shell variable names. |
cd9a469c | 1195 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1196 | as_fn_error "invalid package name: $ac_useropt" | |
1197 | ac_useropt_orig=$ac_useropt | |
1198 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1199 | case $ac_user_opts in | |
1200 | *" | |
1201 | "with_$ac_useropt" | |
1202 | "*) ;; | |
1203 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1204 | ac_unrecognized_sep=', ';; | |
1205 | esac | |
1206 | eval with_$ac_useropt=no ;; | |
71ab34df | 1207 | |
1208 | --x) | |
1209 | # Obsolete; use --with-x. | |
1210 | with_x=yes ;; | |
1211 | ||
1212 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1213 | | --x-incl | --x-inc | --x-in | --x-i) | |
1214 | ac_prev=x_includes ;; | |
1215 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1216 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b30fcfae | 1217 | x_includes=$ac_optarg ;; |
71ab34df | 1218 | |
1219 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1220 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1221 | ac_prev=x_libraries ;; | |
1222 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1223 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b30fcfae | 1224 | x_libraries=$ac_optarg ;; |
71ab34df | 1225 | |
cd9a469c | 1226 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1227 | Try \`$0 --help' for more information." | |
71ab34df | 1228 | ;; |
1229 | ||
b30fcfae | 1230 | *=*) |
1231 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1232 | # Reject names that are not valid shell variable names. | |
cd9a469c | 1233 | case $ac_envvar in #( |
1234 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1235 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1236 | esac | |
1237 | eval $ac_envvar=\$ac_optarg | |
b30fcfae | 1238 | export $ac_envvar ;; |
1239 | ||
71ab34df | 1240 | *) |
b30fcfae | 1241 | # FIXME: should be removed in autoconf 3.0. |
cd9a469c | 1242 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b30fcfae | 1243 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
cd9a469c | 1244 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b30fcfae | 1245 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
71ab34df | 1246 | ;; |
1247 | ||
1248 | esac | |
1249 | done | |
1250 | ||
1251 | if test -n "$ac_prev"; then | |
b30fcfae | 1252 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
cd9a469c | 1253 | as_fn_error "missing argument to $ac_option" |
ae48753c | 1254 | fi |
ae48753c | 1255 | |
cd9a469c | 1256 | if test -n "$ac_unrecognized_opts"; then |
1257 | case $enable_option_checking in | |
1258 | no) ;; | |
1259 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1260 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
5084f823 | 1261 | esac |
cd9a469c | 1262 | fi |
5084f823 | 1263 | |
cd9a469c | 1264 | # Check all directory arguments for consistency. |
1265 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1266 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1267 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1268 | libdir localedir mandir | |
5084f823 | 1269 | do |
cd9a469c | 1270 | eval ac_val=\$$ac_var |
1271 | # Remove trailing slashes. | |
1272 | case $ac_val in | |
1273 | */ ) | |
1274 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1275 | eval $ac_var=\$ac_val;; | |
1276 | esac | |
1277 | # Be sure to have absolute directory names. | |
5084f823 | 1278 | case $ac_val in |
cd9a469c | 1279 | [\\/$]* | ?:[\\/]* ) continue;; |
1280 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
71ab34df | 1281 | esac |
cd9a469c | 1282 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
71ab34df | 1283 | done |
1284 | ||
b30fcfae | 1285 | # There might be people who depend on the old broken behavior: `$host' |
1286 | # used to hold the argument of --host etc. | |
1287 | # FIXME: To remove some day. | |
1288 | build=$build_alias | |
1289 | host=$host_alias | |
1290 | target=$target_alias | |
a83ffacf | 1291 | |
b30fcfae | 1292 | # FIXME: To remove some day. |
1293 | if test "x$host_alias" != x; then | |
1294 | if test "x$build_alias" = x; then | |
1295 | cross_compiling=maybe | |
cd9a469c | 1296 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
b30fcfae | 1297 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1298 | elif test "x$build_alias" != "x$host_alias"; then | |
1299 | cross_compiling=yes | |
1300 | fi | |
1301 | fi | |
1302 | ||
1303 | ac_tool_prefix= | |
1304 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1305 | ||
1306 | test "$silent" = yes && exec 6>/dev/null | |
71ab34df | 1307 | |
71ab34df | 1308 | |
cd9a469c | 1309 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1310 | ac_ls_di=`ls -di .` && | |
1311 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1312 | as_fn_error "working directory cannot be determined" | |
1313 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1314 | as_fn_error "pwd does not report name of working directory" | |
1315 | ||
1316 | ||
71ab34df | 1317 | # Find the source files, if location was not specified. |
1318 | if test -z "$srcdir"; then | |
1319 | ac_srcdir_defaulted=yes | |
cd9a469c | 1320 | # Try the directory containing this script, then the parent directory. |
1321 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1322 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1323 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1324 | X"$as_myself" : 'X\(//\)$' \| \ | |
1325 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1326 | $as_echo X"$as_myself" | | |
1327 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1328 | s//\1/ | |
1329 | q | |
1330 | } | |
1331 | /^X\(\/\/\)[^/].*/{ | |
1332 | s//\1/ | |
1333 | q | |
1334 | } | |
1335 | /^X\(\/\/\)$/{ | |
1336 | s//\1/ | |
1337 | q | |
1338 | } | |
1339 | /^X\(\/\).*/{ | |
1340 | s//\1/ | |
1341 | q | |
1342 | } | |
1343 | s/.*/./; q'` | |
71ab34df | 1344 | srcdir=$ac_confdir |
cd9a469c | 1345 | if test ! -r "$srcdir/$ac_unique_file"; then |
71ab34df | 1346 | srcdir=.. |
1347 | fi | |
1348 | else | |
1349 | ac_srcdir_defaulted=no | |
1350 | fi | |
cd9a469c | 1351 | if test ! -r "$srcdir/$ac_unique_file"; then |
1352 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1353 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1354 | fi | |
1355 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1356 | ac_abs_confdir=`( | |
1357 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1358 | pwd)` | |
1359 | # When building in place, set srcdir=. | |
1360 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1361 | srcdir=. | |
1362 | fi | |
1363 | # Remove unnecessary trailing slashes from srcdir. | |
1364 | # Double slashes in file names in object file debugging info | |
1365 | # mess up M-x gdb in Emacs. | |
1366 | case $srcdir in | |
1367 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1368 | esac | |
13d2f2b2 | 1369 | case $srcdir in |
1370 | *" "*) | |
1371 | as_fn_error "path to source, $srcdir, contains spaces" | |
1372 | ;; | |
1373 | esac | |
d2d2630b | 1374 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1375 | ||
cd9a469c | 1376 | for ac_var in $ac_precious_vars; do |
1377 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1378 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1379 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1380 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1381 | done | |
b30fcfae | 1382 | |
1383 | # | |
1384 | # Report the --help message. | |
1385 | # | |
1386 | if test "$ac_init_help" = "long"; then | |
1387 | # Omit some internal or obsolete options to make the list less imposing. | |
1388 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1389 | cat <<_ACEOF | |
1390 | \`configure' configures this package to adapt to many kinds of systems. | |
1391 | ||
1392 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1393 | ||
1394 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1395 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1396 | ||
1397 | Defaults for the options are specified in brackets. | |
1398 | ||
1399 | Configuration: | |
1400 | -h, --help display this help and exit | |
1401 | --help=short display options specific to this package | |
1402 | --help=recursive display the short help of all the included packages | |
1403 | -V, --version display version information and exit | |
1404 | -q, --quiet, --silent do not print \`checking...' messages | |
1405 | --cache-file=FILE cache test results in FILE [disabled] | |
1406 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1407 | -n, --no-create do not create output files | |
1408 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1409 | ||
b30fcfae | 1410 | Installation directories: |
1411 | --prefix=PREFIX install architecture-independent files in PREFIX | |
cd9a469c | 1412 | [$ac_default_prefix] |
b30fcfae | 1413 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
cd9a469c | 1414 | [PREFIX] |
b30fcfae | 1415 | |
1416 | By default, \`make install' will install all the files in | |
1417 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1418 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1419 | for instance \`--prefix=\$HOME'. | |
1420 | ||
1421 | For better control, use the options below. | |
1422 | ||
1423 | Fine tuning of the installation directories: | |
cd9a469c | 1424 | --bindir=DIR user executables [EPREFIX/bin] |
1425 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1426 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1427 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1428 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1429 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1430 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1431 | --includedir=DIR C header files [PREFIX/include] | |
1432 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1433 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1434 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1435 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1436 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1437 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1438 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1439 | --htmldir=DIR html documentation [DOCDIR] | |
1440 | --dvidir=DIR dvi documentation [DOCDIR] | |
1441 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1442 | --psdir=DIR ps documentation [DOCDIR] | |
b30fcfae | 1443 | _ACEOF |
1444 | ||
1445 | cat <<\_ACEOF | |
1446 | ||
1447 | Program names: | |
1448 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1449 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1450 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1451 | ||
1452 | System types: | |
1453 | --build=BUILD configure for building on BUILD [guessed] | |
1454 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1455 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1456 | _ACEOF | |
1457 | fi | |
1458 | ||
1459 | if test -n "$ac_init_help"; then | |
1460 | ||
1461 | cat <<\_ACEOF | |
1462 | ||
1463 | Optional Features: | |
cd9a469c | 1464 | --disable-option-checking ignore unrecognized --enable/--with options |
b30fcfae | 1465 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1466 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
a3d93be3 | 1467 | --enable-as-accelerator-for=ARG |
1468 | build as offload target compiler. Specify offload | |
1469 | host triple by ARG | |
1470 | --enable-offload-targets=LIST | |
1471 | enable offloading to devices from comma-separated | |
1472 | LIST of TARGET[=DIR]. Use optional path to find | |
1473 | offload target compiler during the build | |
1e369e5f | 1474 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
8747a938 | 1475 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
d9d975ae | 1476 | --disable-libquadmath do not build libquadmath directory |
1477 | --disable-libquadmath-support | |
1478 | disable libquadmath support for Fortran | |
09c2d953 | 1479 | --enable-libada build libada directory |
1480 | --enable-libssp build libssp directory | |
a3ba808f | 1481 | --disable-libstdcxx do not build libstdc++-v3 directory |
d3a7dd32 | 1482 | --enable-liboffloadmic=ARG |
1483 | build liboffloadmic [ARG={no,host,target}] | |
d7e52ac9 | 1484 | --enable-static-libjava[=ARG] |
1485 | build static libjava [default=no] | |
6c59dfa4 | 1486 | --enable-bootstrap enable bootstrapping [yes if native build] |
87e20041 | 1487 | --disable-isl-version-check |
1488 | disable check for ISL version | |
7bfefa9d | 1489 | --enable-lto enable link time optimization support |
1015a063 | 1490 | --enable-linker-plugin-configure-flags=FLAGS |
1491 | additional flags for configuring linker plugins | |
1492 | [none] | |
1493 | --enable-linker-plugin-flags=FLAGS | |
1494 | additional flags for configuring and building linker | |
1495 | plugins [none] | |
8747a938 | 1496 | --enable-stage1-languages[=all] |
1497 | choose additional languages to build during stage1. | |
1498 | Mostly useful for compiler development | |
1499 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1500 | Objective-C runtime | |
ee055341 | 1501 | --enable-vtable-verify Enable vtable verification feature |
09c2d953 | 1502 | --enable-serial-[{host,target,build}-]configure |
8747a938 | 1503 | force sequential configuration of sub-packages for |
1504 | the host, target or build machine, or all | |
1505 | sub-packages | |
1506 | --enable-maintainer-mode | |
1507 | enable make rules and dependencies not useful (and | |
1508 | sometimes confusing) to the casual installer | |
1509 | --enable-stage1-checking[=all] | |
1510 | choose additional checking for stage1 of the | |
1511 | compiler | |
b30fcfae | 1512 | --enable-werror enable -Werror in bootstrap stage2 and later |
2bd17377 | 1513 | --enable-host-shared build host code as shared libraries |
b30fcfae | 1514 | |
1515 | Optional Packages: | |
1516 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1517 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1518 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
8747a938 | 1519 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1520 | Equivalent to --with-mpc-include=PATH/include plus | |
1521 | --with-mpc-lib=PATH/lib | |
1522 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1523 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
09c2d953 | 1524 | --with-mpfr-dir=PATH this option has been REMOVED |
1525 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
8747a938 | 1526 | Equivalent to --with-mpfr-include=PATH/include plus |
1527 | --with-mpfr-lib=PATH/lib | |
b30fcfae | 1528 | --with-mpfr-include=PATH |
09c2d953 | 1529 | specify directory for installed MPFR include files |
1530 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1531 | --with-gmp-dir=PATH this option has been REMOVED | |
8747a938 | 1532 | --with-gmp=PATH specify prefix directory for the installed GMP |
1533 | package. Equivalent to | |
1534 | --with-gmp-include=PATH/include plus | |
1535 | --with-gmp-lib=PATH/lib | |
09c2d953 | 1536 | --with-gmp-include=PATH specify directory for installed GMP include files |
1537 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
8747a938 | 1538 | --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when |
1539 | linking with PPL | |
13687c85 | 1540 | --with-stage1-libs=LIBS libraries for stage1 |
8747a938 | 1541 | --with-stage1-ldflags=FLAGS |
1542 | linker flags for stage1 | |
8747a938 | 1543 | --with-boot-libs=LIBS libraries for stage2 and later |
1544 | --with-boot-ldflags=FLAGS | |
1545 | linker flags for stage2 and later | |
87e20041 | 1546 | --with-isl=PATH Specify prefix directory for the installed ISL |
8747a938 | 1547 | package. Equivalent to |
87e20041 | 1548 | --with-isl-include=PATH/include plus |
1549 | --with-isl-lib=PATH/lib | |
1550 | --with-isl-include=PATH Specify directory for installed ISL include files | |
1551 | --with-isl-lib=PATH Specify the directory for the installed ISL library | |
09c2d953 | 1552 | --with-build-sysroot=SYSROOT |
b30fcfae | 1553 | use sysroot as the system root during the build |
5f1f2de5 | 1554 | --with-debug-prefix-map='A=B C=D ...' |
8747a938 | 1555 | map A to B, C to D ... in debug information |
1556 | --with-build-config='NAME NAME2...' | |
1557 | use config/NAME.mk build configuration | |
09c2d953 | 1558 | --with-build-time-tools=PATH |
b30fcfae | 1559 | use given path to find target tools during the build |
b30fcfae | 1560 | |
1561 | Some influential environment variables: | |
1562 | CC C compiler command | |
1563 | CFLAGS C compiler flags | |
1564 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1565 | nonstandard directory <lib dir> | |
cd9a469c | 1566 | LIBS libraries to pass to the linker, e.g. -l<library> |
1567 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1568 | you have headers in a nonstandard directory <include dir> | |
eae5b2bc | 1569 | CXX C++ compiler command |
1570 | CXXFLAGS C++ compiler flags | |
372a3f1e | 1571 | build_configargs |
1572 | additional configure arguments for build directories | |
1573 | host_configargs | |
1574 | additional configure arguments for host directories | |
1575 | target_configargs | |
1576 | additional configure arguments for target directories | |
95a05732 | 1577 | AR AR for the host |
1578 | AS AS for the host | |
1579 | DLLTOOL DLLTOOL for the host | |
1580 | LD LD for the host | |
1581 | LIPO LIPO for the host | |
1582 | NM NM for the host | |
1583 | RANLIB RANLIB for the host | |
1584 | STRIP STRIP for the host | |
1585 | WINDRES WINDRES for the host | |
75d6a0a9 | 1586 | WINDMC WINDMC for the host |
95a05732 | 1587 | OBJCOPY OBJCOPY for the host |
1588 | OBJDUMP OBJDUMP for the host | |
3f71364d | 1589 | READELF READELF for the host |
95a05732 | 1590 | CC_FOR_TARGET |
1591 | CC for the target | |
1592 | CXX_FOR_TARGET | |
1593 | CXX for the target | |
1594 | GCC_FOR_TARGET | |
1595 | GCC for the target | |
1596 | GCJ_FOR_TARGET | |
1597 | GCJ for the target | |
1598 | GFORTRAN_FOR_TARGET | |
1599 | GFORTRAN for the target | |
5ff5b630 | 1600 | GOC_FOR_TARGET |
1601 | GOC for the target | |
95a05732 | 1602 | AR_FOR_TARGET |
1603 | AR for the target | |
1604 | AS_FOR_TARGET | |
1605 | AS for the target | |
1606 | DLLTOOL_FOR_TARGET | |
1607 | DLLTOOL for the target | |
1608 | LD_FOR_TARGET | |
1609 | LD for the target | |
1610 | LIPO_FOR_TARGET | |
1611 | LIPO for the target | |
1612 | NM_FOR_TARGET | |
1613 | NM for the target | |
1614 | OBJDUMP_FOR_TARGET | |
1615 | OBJDUMP for the target | |
1616 | RANLIB_FOR_TARGET | |
1617 | RANLIB for the target | |
3f71364d | 1618 | READELF_FOR_TARGET |
1619 | READELF for the target | |
95a05732 | 1620 | STRIP_FOR_TARGET |
1621 | STRIP for the target | |
1622 | WINDRES_FOR_TARGET | |
1623 | WINDRES for the target | |
75d6a0a9 | 1624 | WINDMC_FOR_TARGET |
1625 | WINDMC for the target | |
b30fcfae | 1626 | |
1627 | Use these variables to override the choices made by `configure' or to help | |
1628 | it to find libraries and programs with nonstandard names/locations. | |
1629 | ||
cd9a469c | 1630 | Report bugs to the package provider. |
b30fcfae | 1631 | _ACEOF |
cd9a469c | 1632 | ac_status=$? |
b30fcfae | 1633 | fi |
1634 | ||
1635 | if test "$ac_init_help" = "recursive"; then | |
1636 | # If there are subdirs, report their specific --help. | |
b30fcfae | 1637 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
cd9a469c | 1638 | test -d "$ac_dir" || |
1639 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1640 | continue | |
b30fcfae | 1641 | ac_builddir=. |
1642 | ||
cd9a469c | 1643 | case "$ac_dir" in |
1644 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1645 | *) | |
1646 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1647 | # A ".." for each directory in $ac_dir_suffix. | |
1648 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1649 | case $ac_top_builddir_sub in | |
1650 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1651 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1652 | esac ;; | |
1653 | esac | |
1654 | ac_abs_top_builddir=$ac_pwd | |
1655 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1656 | # for backward compatibility: | |
1657 | ac_top_builddir=$ac_top_build_prefix | |
b30fcfae | 1658 | |
1659 | case $srcdir in | |
cd9a469c | 1660 | .) # We are building in place. |
b30fcfae | 1661 | ac_srcdir=. |
cd9a469c | 1662 | ac_top_srcdir=$ac_top_builddir_sub |
1663 | ac_abs_top_srcdir=$ac_pwd ;; | |
1664 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b30fcfae | 1665 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 1666 | ac_top_srcdir=$srcdir |
1667 | ac_abs_top_srcdir=$srcdir ;; | |
1668 | *) # Relative name. | |
1669 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1670 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1671 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
5084f823 | 1672 | esac |
cd9a469c | 1673 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1674 | ||
1675 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1676 | # Check for guested configure. | |
1677 | if test -f "$ac_srcdir/configure.gnu"; then | |
1678 | echo && | |
1679 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1680 | elif test -f "$ac_srcdir/configure"; then | |
1681 | echo && | |
1682 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b30fcfae | 1683 | else |
cd9a469c | 1684 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1685 | fi || ac_status=$? | |
1686 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b30fcfae | 1687 | done |
1688 | fi | |
1689 | ||
cd9a469c | 1690 | test -n "$ac_init_help" && exit $ac_status |
b30fcfae | 1691 | if $ac_init_version; then |
1692 | cat <<\_ACEOF | |
cd9a469c | 1693 | configure |
1694 | generated by GNU Autoconf 2.64 | |
b30fcfae | 1695 | |
cd9a469c | 1696 | Copyright (C) 2009 Free Software Foundation, Inc. |
b30fcfae | 1697 | This configure script is free software; the Free Software Foundation |
1698 | gives unlimited permission to copy, distribute and modify it. | |
1699 | _ACEOF | |
cd9a469c | 1700 | exit |
a83ffacf | 1701 | fi |
cd9a469c | 1702 | |
1703 | ## ------------------------ ## | |
1704 | ## Autoconf initialization. ## | |
1705 | ## ------------------------ ## | |
1706 | ||
1707 | # ac_fn_c_try_compile LINENO | |
1708 | # -------------------------- | |
1709 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1710 | ac_fn_c_try_compile () | |
1711 | { | |
1712 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1713 | rm -f conftest.$ac_objext | |
1714 | if { { ac_try="$ac_compile" | |
1715 | case "(($ac_try" in | |
1716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1717 | *) ac_try_echo=$ac_try;; | |
1718 | esac | |
1719 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1720 | $as_echo "$ac_try_echo"; } >&5 | |
1721 | (eval "$ac_compile") 2>conftest.err | |
1722 | ac_status=$? | |
1723 | if test -s conftest.err; then | |
1724 | grep -v '^ *+' conftest.err >conftest.er1 | |
1725 | cat conftest.er1 >&5 | |
1726 | mv -f conftest.er1 conftest.err | |
1727 | fi | |
1728 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1729 | test $ac_status = 0; } && { | |
1730 | test -z "$ac_c_werror_flag" || | |
1731 | test ! -s conftest.err | |
1732 | } && test -s conftest.$ac_objext; then : | |
1733 | ac_retval=0 | |
1734 | else | |
1735 | $as_echo "$as_me: failed program was:" >&5 | |
1736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1737 | ||
1738 | ac_retval=1 | |
1739 | fi | |
1740 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1741 | return $ac_retval | |
1742 | ||
1743 | } # ac_fn_c_try_compile | |
1744 | ||
1745 | # ac_fn_cxx_try_compile LINENO | |
1746 | # ---------------------------- | |
1747 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1748 | ac_fn_cxx_try_compile () | |
1749 | { | |
1750 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1751 | rm -f conftest.$ac_objext | |
1752 | if { { ac_try="$ac_compile" | |
1753 | case "(($ac_try" in | |
1754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1755 | *) ac_try_echo=$ac_try;; | |
1756 | esac | |
1757 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1758 | $as_echo "$ac_try_echo"; } >&5 | |
1759 | (eval "$ac_compile") 2>conftest.err | |
1760 | ac_status=$? | |
1761 | if test -s conftest.err; then | |
1762 | grep -v '^ *+' conftest.err >conftest.er1 | |
1763 | cat conftest.er1 >&5 | |
1764 | mv -f conftest.er1 conftest.err | |
1765 | fi | |
1766 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1767 | test $ac_status = 0; } && { | |
1768 | test -z "$ac_cxx_werror_flag" || | |
1769 | test ! -s conftest.err | |
1770 | } && test -s conftest.$ac_objext; then : | |
1771 | ac_retval=0 | |
1772 | else | |
1773 | $as_echo "$as_me: failed program was:" >&5 | |
1774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1775 | ||
1776 | ac_retval=1 | |
1777 | fi | |
1778 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1779 | return $ac_retval | |
1780 | ||
1781 | } # ac_fn_cxx_try_compile | |
1782 | ||
13687c85 | 1783 | # ac_fn_cxx_try_link LINENO |
1784 | # ------------------------- | |
1785 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1786 | ac_fn_cxx_try_link () | |
1787 | { | |
1788 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1789 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1790 | if { { ac_try="$ac_link" | |
1791 | case "(($ac_try" in | |
1792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1793 | *) ac_try_echo=$ac_try;; | |
1794 | esac | |
1795 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1796 | $as_echo "$ac_try_echo"; } >&5 | |
1797 | (eval "$ac_link") 2>conftest.err | |
1798 | ac_status=$? | |
1799 | if test -s conftest.err; then | |
1800 | grep -v '^ *+' conftest.err >conftest.er1 | |
1801 | cat conftest.er1 >&5 | |
1802 | mv -f conftest.er1 conftest.err | |
1803 | fi | |
1804 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1805 | test $ac_status = 0; } && { | |
1806 | test -z "$ac_cxx_werror_flag" || | |
1807 | test ! -s conftest.err | |
1808 | } && test -s conftest$ac_exeext && { | |
1809 | test "$cross_compiling" = yes || | |
1810 | $as_test_x conftest$ac_exeext | |
1811 | }; then : | |
1812 | ac_retval=0 | |
1813 | else | |
1814 | $as_echo "$as_me: failed program was:" >&5 | |
1815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1816 | ||
1817 | ac_retval=1 | |
1818 | fi | |
1819 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1820 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1821 | # interfere with the next link command; also delete a directory that is | |
1822 | # left behind by Apple's compiler. We do this before executing the actions. | |
1823 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1824 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1825 | return $ac_retval | |
1826 | ||
1827 | } # ac_fn_cxx_try_link | |
1828 | ||
cd9a469c | 1829 | # ac_fn_c_try_link LINENO |
1830 | # ----------------------- | |
1831 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1832 | ac_fn_c_try_link () | |
1833 | { | |
1834 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1835 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1836 | if { { ac_try="$ac_link" | |
1837 | case "(($ac_try" in | |
1838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1839 | *) ac_try_echo=$ac_try;; | |
1840 | esac | |
1841 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1842 | $as_echo "$ac_try_echo"; } >&5 | |
1843 | (eval "$ac_link") 2>conftest.err | |
1844 | ac_status=$? | |
1845 | if test -s conftest.err; then | |
1846 | grep -v '^ *+' conftest.err >conftest.er1 | |
1847 | cat conftest.er1 >&5 | |
1848 | mv -f conftest.er1 conftest.err | |
1849 | fi | |
1850 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1851 | test $ac_status = 0; } && { | |
1852 | test -z "$ac_c_werror_flag" || | |
1853 | test ! -s conftest.err | |
1854 | } && test -s conftest$ac_exeext && { | |
1855 | test "$cross_compiling" = yes || | |
1856 | $as_test_x conftest$ac_exeext | |
1857 | }; then : | |
1858 | ac_retval=0 | |
1859 | else | |
1860 | $as_echo "$as_me: failed program was:" >&5 | |
1861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1862 | ||
1863 | ac_retval=1 | |
1864 | fi | |
1865 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1866 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1867 | # interfere with the next link command; also delete a directory that is | |
1868 | # left behind by Apple's compiler. We do this before executing the actions. | |
1869 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1870 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1871 | return $ac_retval | |
1872 | ||
1873 | } # ac_fn_c_try_link | |
1874 | cat >config.log <<_ACEOF | |
b30fcfae | 1875 | This file contains any messages produced by compilers while |
1876 | running configure, to aid debugging if configure makes a mistake. | |
1877 | ||
1878 | It was created by $as_me, which was | |
cd9a469c | 1879 | generated by GNU Autoconf 2.64. Invocation command line was |
b30fcfae | 1880 | |
1881 | $ $0 $@ | |
1882 | ||
1883 | _ACEOF | |
cd9a469c | 1884 | exec 5>>config.log |
b30fcfae | 1885 | { |
1886 | cat <<_ASUNAME | |
1887 | ## --------- ## | |
1888 | ## Platform. ## | |
1889 | ## --------- ## | |
1890 | ||
1891 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1892 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1893 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1894 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1895 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1896 | ||
1897 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1898 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1899 | ||
1900 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1901 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1902 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
cd9a469c | 1903 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
b30fcfae | 1904 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1905 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1906 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1907 | ||
1908 | _ASUNAME | |
1909 | ||
1910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1911 | for as_dir in $PATH | |
1912 | do | |
1913 | IFS=$as_save_IFS | |
1914 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 1915 | $as_echo "PATH: $as_dir" |
1916 | done | |
1917 | IFS=$as_save_IFS | |
b30fcfae | 1918 | |
1919 | } >&5 | |
1920 | ||
1921 | cat >&5 <<_ACEOF | |
1922 | ||
1923 | ||
1924 | ## ----------- ## | |
1925 | ## Core tests. ## | |
1926 | ## ----------- ## | |
1927 | ||
1928 | _ACEOF | |
1929 | ||
1930 | ||
1931 | # Keep a trace of the command line. | |
1932 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1933 | # Strip out --silent because we don't want to record it for future runs. | |
1934 | # Also quote any args containing shell meta-characters. | |
1935 | # Make two passes to allow for proper duplicate-argument suppression. | |
1936 | ac_configure_args= | |
1937 | ac_configure_args0= | |
1938 | ac_configure_args1= | |
b30fcfae | 1939 | ac_must_keep_next=false |
1940 | for ac_pass in 1 2 | |
1941 | do | |
1942 | for ac_arg | |
1943 | do | |
1944 | case $ac_arg in | |
1945 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1946 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1947 | | -silent | --silent | --silen | --sile | --sil) | |
1948 | continue ;; | |
cd9a469c | 1949 | *\'*) |
1950 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b30fcfae | 1951 | esac |
1952 | case $ac_pass in | |
cd9a469c | 1953 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b30fcfae | 1954 | 2) |
cd9a469c | 1955 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b30fcfae | 1956 | if test $ac_must_keep_next = true; then |
1957 | ac_must_keep_next=false # Got value, back to normal. | |
1958 | else | |
1959 | case $ac_arg in | |
1960 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1961 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1962 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1963 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1964 | case "$ac_configure_args0 " in | |
1965 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1966 | esac | |
1967 | ;; | |
1968 | -* ) ac_must_keep_next=true ;; | |
1969 | esac | |
1970 | fi | |
cd9a469c | 1971 | as_fn_append ac_configure_args " '$ac_arg'" |
b30fcfae | 1972 | ;; |
1973 | esac | |
1974 | done | |
1975 | done | |
cd9a469c | 1976 | { ac_configure_args0=; unset ac_configure_args0;} |
1977 | { ac_configure_args1=; unset ac_configure_args1;} | |
b30fcfae | 1978 | |
1979 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1980 | # config.log. We remove comments because anyway the quotes in there | |
1981 | # would cause problems or look ugly. | |
cd9a469c | 1982 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1983 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b30fcfae | 1984 | trap 'exit_status=$? |
1985 | # Save into config.log some information that might help in debugging. | |
1986 | { | |
1987 | echo | |
1988 | ||
1989 | cat <<\_ASBOX | |
1990 | ## ---------------- ## | |
1991 | ## Cache variables. ## | |
1992 | ## ---------------- ## | |
1993 | _ASBOX | |
1994 | echo | |
1995 | # The following way of writing the cache mishandles newlines in values, | |
cd9a469c | 1996 | ( |
1997 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1998 | eval ac_val=\$$ac_var | |
1999 | case $ac_val in #( | |
2000 | *${as_nl}*) | |
2001 | case $ac_var in #( | |
2002 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2003 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2004 | esac | |
2005 | case $ac_var in #( | |
2006 | _ | IFS | as_nl) ;; #( | |
2007 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2008 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2009 | esac ;; | |
2010 | esac | |
2011 | done | |
b30fcfae | 2012 | (set) 2>&1 | |
cd9a469c | 2013 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2014 | *${as_nl}ac_space=\ *) | |
b30fcfae | 2015 | sed -n \ |
cd9a469c | 2016 | "s/'\''/'\''\\\\'\'''\''/g; |
2017 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2018 | ;; #( | |
b30fcfae | 2019 | *) |
cd9a469c | 2020 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b30fcfae | 2021 | ;; |
cd9a469c | 2022 | esac | |
2023 | sort | |
2024 | ) | |
b30fcfae | 2025 | echo |
2026 | ||
2027 | cat <<\_ASBOX | |
2028 | ## ----------------- ## | |
2029 | ## Output variables. ## | |
2030 | ## ----------------- ## | |
2031 | _ASBOX | |
2032 | echo | |
2033 | for ac_var in $ac_subst_vars | |
2034 | do | |
cd9a469c | 2035 | eval ac_val=\$$ac_var |
2036 | case $ac_val in | |
2037 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2038 | esac | |
2039 | $as_echo "$ac_var='\''$ac_val'\''" | |
b30fcfae | 2040 | done | sort |
2041 | echo | |
2042 | ||
2043 | if test -n "$ac_subst_files"; then | |
2044 | cat <<\_ASBOX | |
cd9a469c | 2045 | ## ------------------- ## |
2046 | ## File substitutions. ## | |
2047 | ## ------------------- ## | |
b30fcfae | 2048 | _ASBOX |
2049 | echo | |
2050 | for ac_var in $ac_subst_files | |
2051 | do | |
cd9a469c | 2052 | eval ac_val=\$$ac_var |
2053 | case $ac_val in | |
2054 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2055 | esac | |
2056 | $as_echo "$ac_var='\''$ac_val'\''" | |
b30fcfae | 2057 | done | sort |
2058 | echo | |
2059 | fi | |
2060 | ||
2061 | if test -s confdefs.h; then | |
2062 | cat <<\_ASBOX | |
2063 | ## ----------- ## | |
2064 | ## confdefs.h. ## | |
2065 | ## ----------- ## | |
2066 | _ASBOX | |
2067 | echo | |
cd9a469c | 2068 | cat confdefs.h |
b30fcfae | 2069 | echo |
2070 | fi | |
2071 | test "$ac_signal" != 0 && | |
cd9a469c | 2072 | $as_echo "$as_me: caught signal $ac_signal" |
2073 | $as_echo "$as_me: exit $exit_status" | |
b30fcfae | 2074 | } >&5 |
cd9a469c | 2075 | rm -f core *.core core.conftest.* && |
2076 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b30fcfae | 2077 | exit $exit_status |
cd9a469c | 2078 | ' 0 |
b30fcfae | 2079 | for ac_signal in 1 2 13 15; do |
cd9a469c | 2080 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b30fcfae | 2081 | done |
2082 | ac_signal=0 | |
2083 | ||
2084 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
cd9a469c | 2085 | rm -f -r conftest* confdefs.h |
2086 | ||
2087 | $as_echo "/* confdefs.h */" > confdefs.h | |
b30fcfae | 2088 | |
2089 | # Predefined preprocessor variables. | |
2090 | ||
2091 | cat >>confdefs.h <<_ACEOF | |
2092 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2093 | _ACEOF | |
2094 | ||
b30fcfae | 2095 | cat >>confdefs.h <<_ACEOF |
2096 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2097 | _ACEOF | |
2098 | ||
b30fcfae | 2099 | cat >>confdefs.h <<_ACEOF |
2100 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2101 | _ACEOF | |
a83ffacf | 2102 | |
b30fcfae | 2103 | cat >>confdefs.h <<_ACEOF |
2104 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2105 | _ACEOF | |
2106 | ||
b30fcfae | 2107 | cat >>confdefs.h <<_ACEOF |
2108 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2109 | _ACEOF | |
2110 | ||
cd9a469c | 2111 | cat >>confdefs.h <<_ACEOF |
2112 | #define PACKAGE_URL "$PACKAGE_URL" | |
2113 | _ACEOF | |
2114 | ||
b30fcfae | 2115 | |
2116 | # Let the site file select an alternate cache file if it wants to. | |
cd9a469c | 2117 | # Prefer an explicitly selected file to automatically selected ones. |
2118 | ac_site_file1=NONE | |
2119 | ac_site_file2=NONE | |
2120 | if test -n "$CONFIG_SITE"; then | |
2121 | ac_site_file1=$CONFIG_SITE | |
2122 | elif test "x$prefix" != xNONE; then | |
2123 | ac_site_file1=$prefix/share/config.site | |
2124 | ac_site_file2=$prefix/etc/config.site | |
2125 | else | |
2126 | ac_site_file1=$ac_default_prefix/share/config.site | |
2127 | ac_site_file2=$ac_default_prefix/etc/config.site | |
71ab34df | 2128 | fi |
cd9a469c | 2129 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2130 | do | |
2131 | test "x$ac_site_file" = xNONE && continue | |
71ab34df | 2132 | if test -r "$ac_site_file"; then |
cd9a469c | 2133 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2134 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b30fcfae | 2135 | sed 's/^/| /' "$ac_site_file" >&5 |
71ab34df | 2136 | . "$ac_site_file" |
2137 | fi | |
2138 | done | |
2139 | ||
2140 | if test -r "$cache_file"; then | |
b30fcfae | 2141 | # Some versions of bash will fail to source /dev/null (special |
2142 | # files actually), so we avoid doing that. | |
2143 | if test -f "$cache_file"; then | |
cd9a469c | 2144 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2145 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b30fcfae | 2146 | case $cache_file in |
cd9a469c | 2147 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2148 | *) . "./$cache_file";; | |
b30fcfae | 2149 | esac |
2150 | fi | |
71ab34df | 2151 | else |
cd9a469c | 2152 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2153 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b30fcfae | 2154 | >$cache_file |
2155 | fi | |
2156 | ||
2157 | # Check that the precious variables saved in the cache have kept the same | |
2158 | # value. | |
2159 | ac_cache_corrupted=false | |
cd9a469c | 2160 | for ac_var in $ac_precious_vars; do |
b30fcfae | 2161 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2162 | eval ac_new_set=\$ac_env_${ac_var}_set | |
cd9a469c | 2163 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2164 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b30fcfae | 2165 | case $ac_old_set,$ac_new_set in |
2166 | set,) | |
cd9a469c | 2167 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2168 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b30fcfae | 2169 | ac_cache_corrupted=: ;; |
2170 | ,set) | |
cd9a469c | 2171 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2172 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b30fcfae | 2173 | ac_cache_corrupted=: ;; |
2174 | ,);; | |
2175 | *) | |
2176 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
cd9a469c | 2177 | # differences in whitespace do not lead to failure. |
2178 | ac_old_val_w=`echo x $ac_old_val` | |
2179 | ac_new_val_w=`echo x $ac_new_val` | |
2180 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2181 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2182 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2183 | ac_cache_corrupted=: | |
2184 | else | |
2185 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2186 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2187 | eval $ac_var=\$ac_old_val | |
2188 | fi | |
2189 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2190 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2191 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2192 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b30fcfae | 2193 | fi;; |
2194 | esac | |
2195 | # Pass precious variables to config.status. | |
2196 | if test "$ac_new_set" = set; then | |
2197 | case $ac_new_val in | |
cd9a469c | 2198 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b30fcfae | 2199 | *) ac_arg=$ac_var=$ac_new_val ;; |
2200 | esac | |
2201 | case " $ac_configure_args " in | |
2202 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
cd9a469c | 2203 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b30fcfae | 2204 | esac |
2205 | fi | |
2206 | done | |
2207 | if $ac_cache_corrupted; then | |
cd9a469c | 2208 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2209 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2210 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2211 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2212 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
71ab34df | 2213 | fi |
cd9a469c | 2214 | ## -------------------- ## |
2215 | ## Main body of script. ## | |
2216 | ## -------------------- ## | |
71ab34df | 2217 | |
5084f823 | 2218 | ac_ext=c |
2219 | ac_cpp='$CPP $CPPFLAGS' | |
2220 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2221 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2222 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2223 | ||
b30fcfae | 2224 | |
2225 | ||
2226 | ||
b30fcfae | 2227 | |
2228 | ||
cd2f3773 | 2229 | |
b30fcfae | 2230 | |
4e8a889d | 2231 | |
2232 | progname=$0 | |
2233 | # if PWD already has a value, it is probably wrong. | |
2234 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2235 | ||
2236 | # Export original configure arguments for use by sub-configures. | |
2237 | # Quote arguments with shell meta charatcers. | |
2238 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2239 | set -- "$progname" "$@" | |
2240 | for ac_arg | |
2241 | do | |
2242 | case "$ac_arg" in | |
2243 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2244 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2245 | # if the argument is of the form -foo=baz, quote the baz part only | |
2246 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2247 | *) ;; | |
2248 | esac | |
2249 | # Add the quoted argument to the list. | |
2250 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2251 | done | |
2252 | if test "$silent" = yes; then | |
2253 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2254 | fi | |
2255 | # Remove the initial space we just introduced and, as these will be | |
2256 | # expanded by make, quote '$'. | |
2257 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2258 | ||
b30fcfae | 2259 | |
2260 | # Find the build, host, and target systems. | |
71ab34df | 2261 | ac_aux_dir= |
cd9a469c | 2262 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2263 | for ac_t in install-sh install.sh shtool; do | |
2264 | if test -f "$ac_dir/$ac_t"; then | |
2265 | ac_aux_dir=$ac_dir | |
2266 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2267 | break 2 | |
2268 | fi | |
2269 | done | |
71ab34df | 2270 | done |
2271 | if test -z "$ac_aux_dir"; then | |
cd9a469c | 2272 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
71ab34df | 2273 | fi |
cd9a469c | 2274 | |
2275 | # These three variables are undocumented and unsupported, | |
2276 | # and are intended to be withdrawn in a future Autoconf release. | |
2277 | # They can cause serious problems if a builder's source tree is in a directory | |
2278 | # whose full name contains unusual characters. | |
2279 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2280 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2281 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2282 | ||
71ab34df | 2283 | |
b30fcfae | 2284 | # Make sure we can run config.sub. |
cd9a469c | 2285 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2286 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2287 | ||
2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2289 | $as_echo_n "checking build system type... " >&6; } | |
2290 | if test "${ac_cv_build+set}" = set; then : | |
2291 | $as_echo_n "(cached) " >&6 | |
2292 | else | |
2293 | ac_build_alias=$build_alias | |
2294 | test "x$ac_build_alias" = x && | |
2295 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2296 | test "x$ac_build_alias" = x && | |
2297 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2298 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2299 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2300 | ||
2301 | fi | |
2302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2303 | $as_echo "$ac_cv_build" >&6; } | |
2304 | case $ac_cv_build in | |
2305 | *-*-*) ;; | |
2306 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2307 | esac | |
b30fcfae | 2308 | build=$ac_cv_build |
cd9a469c | 2309 | ac_save_IFS=$IFS; IFS='-' |
2310 | set x $ac_cv_build | |
2311 | shift | |
2312 | build_cpu=$1 | |
2313 | build_vendor=$2 | |
2314 | shift; shift | |
2315 | # Remember, the first character of IFS is used to create $*, | |
2316 | # except with old shells: | |
2317 | build_os=$* | |
2318 | IFS=$ac_save_IFS | |
2319 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
71ab34df | 2320 | |
71ab34df | 2321 | |
b30fcfae | 2322 | case ${build_alias} in |
2323 | "") build_noncanonical=${build} ;; | |
2324 | *) build_noncanonical=${build_alias} ;; | |
ae48753c | 2325 | esac |
2326 | ||
2327 | ||
ae48753c | 2328 | |
b30fcfae | 2329 | case ${host_alias} in |
2330 | "") host_noncanonical=${build_noncanonical} ;; | |
2331 | *) host_noncanonical=${host_alias} ;; | |
ae48753c | 2332 | esac |
2333 | ||
ae48753c | 2334 | |
b30fcfae | 2335 | |
2336 | case ${target_alias} in | |
2337 | "") target_noncanonical=${host_noncanonical} ;; | |
2338 | *) target_noncanonical=${target_alias} ;; | |
ae48753c | 2339 | esac |
2340 | ||
ae48753c | 2341 | |
b30fcfae | 2342 | |
2343 | ||
2344 | test "$host_noncanonical" = "$target_noncanonical" && | |
71ab34df | 2345 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2346 | NONENONEs,x,x, && | |
b30fcfae | 2347 | program_transform_name=s,y,y, |
ae48753c | 2348 | |
cd9a469c | 2349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2350 | $as_echo_n "checking host system type... " >&6; } | |
2351 | if test "${ac_cv_host+set}" = set; then : | |
2352 | $as_echo_n "(cached) " >&6 | |
ae48753c | 2353 | else |
cd9a469c | 2354 | if test "x$host_alias" = x; then |
2355 | ac_cv_host=$ac_cv_build | |
2356 | else | |
2357 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2358 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2359 | fi | |
b30fcfae | 2360 | |
ae48753c | 2361 | fi |
cd9a469c | 2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2363 | $as_echo "$ac_cv_host" >&6; } | |
2364 | case $ac_cv_host in | |
2365 | *-*-*) ;; | |
2366 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2367 | esac | |
b30fcfae | 2368 | host=$ac_cv_host |
cd9a469c | 2369 | ac_save_IFS=$IFS; IFS='-' |
2370 | set x $ac_cv_host | |
2371 | shift | |
2372 | host_cpu=$1 | |
2373 | host_vendor=$2 | |
2374 | shift; shift | |
2375 | # Remember, the first character of IFS is used to create $*, | |
2376 | # except with old shells: | |
2377 | host_os=$* | |
2378 | IFS=$ac_save_IFS | |
2379 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
5084f823 | 2380 | |
2381 | ||
cd9a469c | 2382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2383 | $as_echo_n "checking target system type... " >&6; } | |
2384 | if test "${ac_cv_target+set}" = set; then : | |
2385 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 2386 | else |
cd9a469c | 2387 | if test "x$target_alias" = x; then |
2388 | ac_cv_target=$ac_cv_host | |
2389 | else | |
2390 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2391 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2392 | fi | |
b30fcfae | 2393 | |
2394 | fi | |
cd9a469c | 2395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2396 | $as_echo "$ac_cv_target" >&6; } | |
2397 | case $ac_cv_target in | |
2398 | *-*-*) ;; | |
2399 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2400 | esac | |
b30fcfae | 2401 | target=$ac_cv_target |
cd9a469c | 2402 | ac_save_IFS=$IFS; IFS='-' |
2403 | set x $ac_cv_target | |
2404 | shift | |
2405 | target_cpu=$1 | |
2406 | target_vendor=$2 | |
2407 | shift; shift | |
2408 | # Remember, the first character of IFS is used to create $*, | |
2409 | # except with old shells: | |
2410 | target_os=$* | |
2411 | IFS=$ac_save_IFS | |
2412 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
b30fcfae | 2413 | |
2414 | ||
2415 | # The aliases save the names the user supplied, while $host etc. | |
2416 | # will get canonicalized. | |
2417 | test -n "$target_alias" && | |
2418 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2419 | NONENONEs,x,x, && | |
2420 | program_prefix=${target_alias}- | |
cd9a469c | 2421 | |
71ab34df | 2422 | test "$program_prefix" != NONE && |
cd9a469c | 2423 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
71ab34df | 2424 | # Use a double $ so make ignores it. |
2425 | test "$program_suffix" != NONE && | |
cd9a469c | 2426 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2427 | # Double any \ or $. | |
b30fcfae | 2428 | # By default was `s,x,x', remove it if useless. |
cd9a469c | 2429 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2430 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
ae48753c | 2431 | |
71ab34df | 2432 | |
2433 | ||
450e6c84 | 2434 | # Get 'install' or 'install-sh' and its variants. |
2435 | # Find a good install program. We prefer a C program (faster), | |
2436 | # so one script is as good as another. But avoid the broken or | |
2437 | # incompatible versions: | |
2438 | # SysV /etc/install, /usr/sbin/install | |
2439 | # SunOS /usr/etc/install | |
2440 | # IRIX /sbin/install | |
2441 | # AIX /bin/install | |
b30fcfae | 2442 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
450e6c84 | 2443 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2444 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2445 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
b30fcfae | 2446 | # OS/2's system install, which has a completely different semantic |
450e6c84 | 2447 | # ./install, which can be erroneously created by make from ./install.sh. |
82eaf560 | 2448 | # Reject install programs that cannot install multiple files. |
cd9a469c | 2449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2450 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
450e6c84 | 2451 | if test -z "$INSTALL"; then |
cd9a469c | 2452 | if test "${ac_cv_path_install+set}" = set; then : |
2453 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 2454 | else |
2455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2456 | for as_dir in $PATH | |
2457 | do | |
2458 | IFS=$as_save_IFS | |
2459 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 2460 | # Account for people who put trailing slashes in PATH elements. |
2461 | case $as_dir/ in #(( | |
2462 | ./ | .// | /[cC]/* | \ | |
b30fcfae | 2463 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
cd9a469c | 2464 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
b30fcfae | 2465 | /usr/ucb/* ) ;; |
2466 | *) | |
2467 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2468 | # Don't use installbsd from OSF since it installs stuff as root | |
2469 | # by default. | |
2470 | for ac_prog in ginstall scoinst install; do | |
2471 | for ac_exec_ext in '' $ac_executable_extensions; do | |
cd9a469c | 2472 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
450e6c84 | 2473 | if test $ac_prog = install && |
b30fcfae | 2474 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
450e6c84 | 2475 | # AIX install. It has an incompatible calling convention. |
2476 | : | |
b30fcfae | 2477 | elif test $ac_prog = install && |
2478 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2479 | # program-specific install script used by HP pwplus--don't use. | |
2480 | : | |
450e6c84 | 2481 | else |
82eaf560 | 2482 | rm -rf conftest.one conftest.two conftest.dir |
2483 | echo one > conftest.one | |
2484 | echo two > conftest.two | |
2485 | mkdir conftest.dir | |
2486 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2487 | test -s conftest.one && test -s conftest.two && | |
2488 | test -s conftest.dir/conftest.one && | |
2489 | test -s conftest.dir/conftest.two | |
2490 | then | |
2491 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2492 | break 3 | |
2493 | fi | |
450e6c84 | 2494 | fi |
2495 | fi | |
2496 | done | |
b30fcfae | 2497 | done |
2498 | ;; | |
2499 | esac | |
cd9a469c | 2500 | |
2501 | done | |
2502 | IFS=$as_save_IFS | |
b30fcfae | 2503 | |
82eaf560 | 2504 | rm -rf conftest.one conftest.two conftest.dir |
450e6c84 | 2505 | |
2506 | fi | |
2507 | if test "${ac_cv_path_install+set}" = set; then | |
b30fcfae | 2508 | INSTALL=$ac_cv_path_install |
450e6c84 | 2509 | else |
82eaf560 | 2510 | # As a last resort, use the slow shell script. Don't cache a |
2511 | # value for INSTALL within a source directory, because that will | |
450e6c84 | 2512 | # break other packages using the cache if that directory is |
82eaf560 | 2513 | # removed, or if the value is a relative name. |
b30fcfae | 2514 | INSTALL=$ac_install_sh |
450e6c84 | 2515 | fi |
2516 | fi | |
cd9a469c | 2517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2518 | $as_echo "$INSTALL" >&6; } | |
450e6c84 | 2519 | |
2520 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2521 | # It thinks the first close brace ends the variable substitution. | |
2522 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2523 | ||
b30fcfae | 2524 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
450e6c84 | 2525 | |
2526 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2527 | ||
cd9a469c | 2528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2529 | $as_echo_n "checking whether ln works... " >&6; } | |
2530 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2531 | $as_echo_n "(cached) " >&6 | |
599a3eac | 2532 | else |
2533 | rm -f conftestdata_t | |
2534 | echo >conftestdata_f | |
2535 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2536 | then | |
2537 | acx_cv_prog_LN=ln | |
2538 | else | |
2539 | acx_cv_prog_LN=no | |
2540 | fi | |
2541 | rm -f conftestdata_f conftestdata_t | |
2542 | ||
2543 | fi | |
2544 | if test $acx_cv_prog_LN = no; then | |
2545 | LN="cp" | |
cd9a469c | 2546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2547 | $as_echo "no, using $LN" >&6; } | |
599a3eac | 2548 | else |
2549 | LN="$acx_cv_prog_LN" | |
cd9a469c | 2550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2551 | $as_echo "yes" >&6; } | |
599a3eac | 2552 | fi |
2553 | ||
cd9a469c | 2554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2555 | $as_echo_n "checking whether ln -s works... " >&6; } | |
b30fcfae | 2556 | LN_S=$as_ln_s |
2557 | if test "$LN_S" = "ln -s"; then | |
cd9a469c | 2558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2559 | $as_echo "yes" >&6; } | |
a4af6a58 | 2560 | else |
cd9a469c | 2561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2562 | $as_echo "no, using $LN_S" >&6; } | |
5965d276 | 2563 | fi |
2564 | ||
b181f265 | 2565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2566 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2567 | if test "${ac_cv_path_SED+set}" = set; then : | |
2568 | $as_echo_n "(cached) " >&6 | |
2569 | else | |
2570 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2571 | for ac_i in 1 2 3 4 5 6 7; do | |
2572 | ac_script="$ac_script$as_nl$ac_script" | |
2573 | done | |
2574 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2575 | { ac_script=; unset ac_script;} | |
2576 | if test -z "$SED"; then | |
2577 | ac_path_SED_found=false | |
2578 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2580 | for as_dir in $PATH | |
2581 | do | |
2582 | IFS=$as_save_IFS | |
2583 | test -z "$as_dir" && as_dir=. | |
2584 | for ac_prog in sed gsed; do | |
2585 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2586 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2587 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2588 | # Check for GNU ac_path_SED and select it if it is found. | |
2589 | # Check for GNU $ac_path_SED | |
2590 | case `"$ac_path_SED" --version 2>&1` in | |
2591 | *GNU*) | |
2592 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2593 | *) | |
2594 | ac_count=0 | |
2595 | $as_echo_n 0123456789 >"conftest.in" | |
2596 | while : | |
2597 | do | |
2598 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2599 | mv "conftest.tmp" "conftest.in" | |
2600 | cp "conftest.in" "conftest.nl" | |
2601 | $as_echo '' >> "conftest.nl" | |
2602 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2603 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2604 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2605 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2606 | # Best one so far, save it but keep looking for a better one | |
2607 | ac_cv_path_SED="$ac_path_SED" | |
2608 | ac_path_SED_max=$ac_count | |
2609 | fi | |
2610 | # 10*(2^10) chars as input seems more than enough | |
2611 | test $ac_count -gt 10 && break | |
2612 | done | |
2613 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2614 | esac | |
2615 | ||
2616 | $ac_path_SED_found && break 3 | |
2617 | done | |
2618 | done | |
2619 | done | |
2620 | IFS=$as_save_IFS | |
2621 | if test -z "$ac_cv_path_SED"; then | |
2622 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2623 | fi | |
2624 | else | |
2625 | ac_cv_path_SED=$SED | |
2626 | fi | |
2627 | ||
2628 | fi | |
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2630 | $as_echo "$ac_cv_path_SED" >&6; } | |
2631 | SED="$ac_cv_path_SED" | |
2632 | rm -f conftest.sed | |
2633 | ||
2634 | for ac_prog in gawk mawk nawk awk | |
2635 | do | |
2636 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2637 | set dummy $ac_prog; ac_word=$2 | |
2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2639 | $as_echo_n "checking for $ac_word... " >&6; } | |
2640 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2641 | $as_echo_n "(cached) " >&6 | |
2642 | else | |
2643 | if test -n "$AWK"; then | |
2644 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2645 | else | |
2646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2647 | for as_dir in $PATH | |
2648 | do | |
2649 | IFS=$as_save_IFS | |
2650 | test -z "$as_dir" && as_dir=. | |
2651 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2652 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2653 | ac_cv_prog_AWK="$ac_prog" | |
2654 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2655 | break 2 | |
2656 | fi | |
2657 | done | |
2658 | done | |
2659 | IFS=$as_save_IFS | |
2660 | ||
2661 | fi | |
2662 | fi | |
2663 | AWK=$ac_cv_prog_AWK | |
2664 | if test -n "$AWK"; then | |
2665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2666 | $as_echo "$AWK" >&6; } | |
2667 | else | |
2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2669 | $as_echo "no" >&6; } | |
2670 | fi | |
2671 | ||
2672 | ||
2673 | test -n "$AWK" && break | |
2674 | done | |
2675 | ||
450e6c84 | 2676 | |
e8eddfdd | 2677 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2678 | ||
2679 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2680 | # a relative path. | |
2681 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2682 | INSTALL="${srcpwd}/install-sh -c" | |
2683 | fi | |
2684 | ||
71ab34df | 2685 | # Set srcdir to "." if that's what it is. |
2686 | # This is important for multilib support. | |
2687 | pwd=`${PWDCMD-pwd}` | |
71ab34df | 2688 | if test "${pwd}" = "${srcpwd}" ; then |
2689 | srcdir=. | |
a8298541 | 2690 | fi |
2691 | ||
71ab34df | 2692 | topsrcdir=$srcpwd |
ed37269d | 2693 | |
71ab34df | 2694 | extra_host_args= |
14ac9144 | 2695 | |
71ab34df | 2696 | ### To add a new directory to the tree, first choose whether it is a target |
2697 | ### or a host dependent tool. Then put it into the appropriate list | |
2698 | ### (library or tools, host or target), doing a dependency sort. | |
a8298541 | 2699 | |
b30fcfae | 2700 | # Subdirs will be configured in the order listed in build_configdirs, |
71ab34df | 2701 | # configdirs, or target_configdirs; see the serialization section below. |
a8298541 | 2702 | |
b30fcfae | 2703 | # Dependency sorting is only needed when *configuration* must be done in |
2704 | # a particular order. In all cases a dependency should be specified in | |
71ab34df | 2705 | # the Makefile, whether or not it's implicitly specified here. |
a8298541 | 2706 | |
71ab34df | 2707 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2708 | # cause circular dependencies and break everything horribly. | |
a8298541 | 2709 | |
2f8725b0 | 2710 | # these library is used by various programs built for the build |
2711 | # environment | |
2712 | # | |
9245d2c5 | 2713 | build_libs="build-libiberty build-libcpp" |
2f8725b0 | 2714 | |
2715 | # these tools are built for the build environment | |
4fc99708 | 2716 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
2f8725b0 | 2717 | |
71ab34df | 2718 | # these libraries are used by various programs built for the host environment |
429cca51 | 2719 | #f |
572cf1f7 | 2720 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv" |
71ab34df | 2721 | |
71ab34df | 2722 | # these tools are built for the host environment |
2723 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2724 | # know that we are building the simulator. | |
2725 | # binutils, gas and ld appear in that order because it makes sense to run | |
2726 | # "make check" in that particular order. | |
af7c5662 | 2727 | # If --enable-gold is used, "gold" may replace "ld". |
ab103e33 | 2728 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1" |
71ab34df | 2729 | |
2730 | # libgcj represents the runtime libraries only used by gcj. | |
2731 | libgcj="target-libffi \ | |
71ab34df | 2732 | target-zlib \ |
71ab34df | 2733 | target-libjava" |
2734 | ||
2735 | # these libraries are built for the target environment, and are built after | |
2736 | # the host libraries and the host tools (which may be a cross compiler) | |
5ab7e123 | 2737 | # Note that libiberty is not a target library. |
27bfe7b7 | 2738 | target_libraries="target-libgcc \ |
ecd3459e | 2739 | target-libbacktrace \ |
71ab34df | 2740 | target-libgloss \ |
2741 | target-newlib \ | |
a0191bfe | 2742 | target-libgomp \ |
4710dd51 | 2743 | target-libcilkrts \ |
d3a7dd32 | 2744 | target-liboffloadmic \ |
6db1d2ca | 2745 | target-libatomic \ |
4c0315d0 | 2746 | target-libitm \ |
54d7d5f2 | 2747 | target-libstdc++-v3 \ |
549e2197 | 2748 | target-libsanitizer \ |
b710ec85 | 2749 | target-libvtv \ |
0d55f4d0 | 2750 | target-libssp \ |
87969c8c | 2751 | target-libquadmath \ |
4ee9c684 | 2752 | target-libgfortran \ |
dd6d3a67 | 2753 | target-boehm-gc \ |
cdfc500e | 2754 | ${libgcj} \ |
93341878 | 2755 | target-libobjc \ |
5ff5b630 | 2756 | target-libada \ |
2757 | target-libgo" | |
71ab34df | 2758 | |
328637e8 | 2759 | # these tools are built using the target libraries, and are intended to |
2760 | # run only in the target environment | |
71ab34df | 2761 | # |
328637e8 | 2762 | # note: any program that *uses* libraries that are in the "target_libraries" |
6c9785b4 | 2763 | # list belongs in this list. |
71ab34df | 2764 | # |
4fc99708 | 2765 | target_tools="target-rda" |
a8298541 | 2766 | |
71ab34df | 2767 | ################################################################################ |
a8298541 | 2768 | |
71ab34df | 2769 | ## All tools belong in one of the four categories, and are assigned above |
2770 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2771 | ## is important because configure will choke if they ever get through. | |
2772 | ## ${configdirs} is directories we build using the host tools. | |
2773 | ## ${target_configdirs} is directories we build using the target tools. | |
71ab34df | 2774 | configdirs=`echo ${host_libs} ${host_tools}` |
328637e8 | 2775 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
2b59cb05 | 2776 | build_configdirs=`echo ${build_libs} ${build_tools}` |
6f4f34a7 | 2777 | |
d2d2630b | 2778 | |
2779 | ||
71ab34df | 2780 | ################################################################################ |
a8298541 | 2781 | |
71ab34df | 2782 | srcname="gnu development package" |
a8298541 | 2783 | |
71ab34df | 2784 | # This gets set non-empty for some net releases of packages. |
2785 | appdirs="" | |
a8298541 | 2786 | |
71ab34df | 2787 | # Define is_cross_compiler to save on calls to 'test'. |
2788 | is_cross_compiler= | |
2789 | if test x"${host}" = x"${target}" ; then | |
2790 | is_cross_compiler=no | |
a8298541 | 2791 | else |
71ab34df | 2792 | is_cross_compiler=yes |
b30fcfae | 2793 | fi |
a8298541 | 2794 | |
2f61b8ca | 2795 | # Find the build and target subdir names. |
6f4f34a7 | 2796 | |
d3e7b04c | 2797 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2798 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2799 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2800 | # However, they still use the build modules, because the corresponding | |
2801 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2802 | # finishes. So: | |
2803 | # - build_subdir is where we find build modules, and never changes. | |
2804 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2805 | ||
2806 | # Prefix 'build-' so this never conflicts with target_subdir. | |
6f4f34a7 | 2807 | build_subdir="build-${build_noncanonical}" |
b30fcfae | 2808 | |
cd9a469c | 2809 | # Check whether --with-build-libsubdir was given. |
2810 | if test "${with_build_libsubdir+set}" = set; then : | |
2811 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
d3e7b04c | 2812 | else |
2813 | build_libsubdir="$build_subdir" | |
cd9a469c | 2814 | fi |
2815 | ||
c1eb9e31 | 2816 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2817 | if ( test $srcdir = . && test -d gcc ) \ | |
2818 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2819 | host_subdir="host-${host_noncanonical}" | |
2820 | else | |
2821 | host_subdir=. | |
2822 | fi | |
6f4f34a7 | 2823 | # No prefix. |
2824 | target_subdir=${target_noncanonical} | |
b30fcfae | 2825 | |
04a2e841 | 2826 | # Be sure to cover against remnants of an in-tree build. |
2827 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2828 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2829 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2830 | fi | |
a8298541 | 2831 | |
71ab34df | 2832 | # Skipdirs are removed silently. |
2833 | skipdirs= | |
2834 | # Noconfigdirs are removed loudly. | |
2835 | noconfigdirs="" | |
a8298541 | 2836 | |
71ab34df | 2837 | use_gnu_ld= |
2838 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2839 | if test x$with_gnu_ld = xno ; then | |
2840 | use_gnu_ld=no | |
3d47fcf5 | 2841 | noconfigdirs="$noconfigdirs ld gold" |
a8298541 | 2842 | fi |
2843 | ||
71ab34df | 2844 | use_gnu_as= |
2845 | # Make sure we don't let GNU as be added if we didn't want it. | |
2846 | if test x$with_gnu_as = xno ; then | |
2847 | use_gnu_as=no | |
2848 | noconfigdirs="$noconfigdirs gas" | |
a8298541 | 2849 | fi |
2850 | ||
7bfefa9d | 2851 | use_included_zlib= |
2852 | # Make sure we don't let ZLIB be added if we didn't want it. | |
2853 | if test x$with_system_zlib = xyes ; then | |
2854 | use_included_zlib=no | |
2855 | noconfigdirs="$noconfigdirs zlib" | |
2856 | fi | |
2857 | ||
b30fcfae | 2858 | # some tools are so dependent upon X11 that if we're not building with X, |
71ab34df | 2859 | # it's not even worth trying to configure, much less build, that tool. |
a8298541 | 2860 | |
71ab34df | 2861 | case ${with_x} in |
2862 | yes | "") ;; # the default value for this tree is that X11 is available | |
2863 | no) | |
f843f075 | 2864 | skipdirs="${skipdirs} tk itcl libgui" |
71ab34df | 2865 | # We won't be able to build gdbtk without X. |
b30fcfae | 2866 | enable_gdbtk=no |
71ab34df | 2867 | ;; |
2868 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2869 | esac | |
a8298541 | 2870 | |
6c9785b4 | 2871 | # Some are only suitable for cross toolchains. |
71ab34df | 2872 | # Remove these if host=target. |
2873 | cross_only="target-libgloss target-newlib target-opcodes" | |
2874 | ||
2875 | case $is_cross_compiler in | |
2876 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
71ab34df | 2877 | esac |
a8298541 | 2878 | |
71ab34df | 2879 | # If both --with-headers and --with-libs are specified, default to |
2880 | # --without-newlib. | |
e8eddfdd | 2881 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2882 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
71ab34df | 2883 | if test x"${with_newlib}" = x ; then |
2884 | with_newlib=no | |
2885 | fi | |
a8298541 | 2886 | fi |
2887 | ||
71ab34df | 2888 | # Recognize --with-newlib/--without-newlib. |
2889 | case ${with_newlib} in | |
2890 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2891 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2892 | esac | |
a8298541 | 2893 | |
a3d93be3 | 2894 | # Check whether --enable-as-accelerator-for was given. |
2895 | if test "${enable_as_accelerator_for+set}" = set; then : | |
67cedda8 | 2896 | enableval=$enable_as_accelerator_for; |
a3d93be3 | 2897 | fi |
2898 | ||
2899 | ||
2900 | # Check whether --enable-offload-targets was given. | |
2901 | if test "${enable_offload_targets+set}" = set; then : | |
2902 | enableval=$enable_offload_targets; | |
2903 | if test x"$enable_offload_targets" = x; then | |
2904 | as_fn_error "no offload targets specified" "$LINENO" 5 | |
2905 | fi | |
2906 | ||
2907 | else | |
2908 | enable_offload_targets= | |
2909 | fi | |
2910 | ||
2911 | ||
1e369e5f | 2912 | # Handle --enable-gold, --enable-ld. |
2913 | # --disable-gold [--enable-ld] | |
2914 | # Build only ld. Default option. | |
85516948 | 2915 | # --enable-gold [--enable-ld] |
2916 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2917 | # as "ld.bfd" and "ld". | |
2918 | # --enable-gold=default [--enable-ld] | |
1e369e5f | 2919 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2920 | # install ld as "ld.bfd". | |
2921 | # --enable-gold[=default] --disable-ld | |
2922 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2923 | # --enable-gold --enable-ld=default | |
85516948 | 2924 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2925 | # and ld.bfd). | |
1e369e5f | 2926 | # In other words, ld is default |
2927 | # --enable-gold=default --enable-ld=default | |
2928 | # Error. | |
2929 | ||
2930 | default_ld= | |
cd9a469c | 2931 | # Check whether --enable-gold was given. |
2932 | if test "${enable_gold+set}" = set; then : | |
2933 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
3d47fcf5 | 2934 | else |
2935 | ENABLE_GOLD=no | |
cd9a469c | 2936 | fi |
2937 | ||
1e369e5f | 2938 | case "${ENABLE_GOLD}" in |
2939 | yes|default) | |
af7c5662 | 2940 | # Check for ELF target. |
2941 | is_elf=no | |
2942 | case "${target}" in | |
2943 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
e4c33dd2 | 2944 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
e3a1fe08 | 2945 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
9d36d513 | 2946 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
af7c5662 | 2947 | case "${target}" in |
2948 | *-*-linux*aout* | *-*-linux*oldld*) | |
2949 | ;; | |
2950 | *) | |
2951 | is_elf=yes | |
2952 | ;; | |
2953 | esac | |
2954 | esac | |
2955 | ||
2956 | if test "$is_elf" = "yes"; then | |
2957 | # Check for target supported by gold. | |
3d47fcf5 | 2958 | case "${target}" in |
58f62c51 | 2959 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
2960 | | aarch64*-*-* | tilegx*-*-*) | |
1e369e5f | 2961 | configdirs="$configdirs gold" |
2962 | if test x${ENABLE_GOLD} = xdefault; then | |
2963 | default_ld=gold | |
2964 | fi | |
af7c5662 | 2965 | ENABLE_GOLD=yes |
3d47fcf5 | 2966 | ;; |
2967 | esac | |
af7c5662 | 2968 | fi |
2969 | ;; | |
2970 | no) | |
2971 | ;; | |
2972 | *) | |
2973 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2974 | ;; | |
1e369e5f | 2975 | esac |
2976 | ||
2977 | # Check whether --enable-ld was given. | |
2978 | if test "${enable_ld+set}" = set; then : | |
2979 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2980 | else | |
2981 | ENABLE_LD=yes | |
2982 | fi | |
2983 | ||
2984 | ||
2985 | case "${ENABLE_LD}" in | |
2986 | default) | |
85516948 | 2987 | if test x${default_ld} != x; then |
1e369e5f | 2988 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
2989 | fi | |
2990 | ;; | |
2991 | yes) | |
2992 | ;; | |
2993 | no) | |
2994 | if test x${ENABLE_GOLD} != xyes; then | |
2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
2996 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
2997 | fi | |
2998 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
2999 | ;; | |
3000 | *) | |
3001 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
3002 | ;; | |
3003 | esac | |
3d47fcf5 | 3004 | |
71ab34df | 3005 | # Configure extra directories which are host specific |
a8298541 | 3006 | |
71ab34df | 3007 | case "${host}" in |
3008 | *-cygwin*) | |
3009 | configdirs="$configdirs libtermcap" ;; | |
3010 | esac | |
a8298541 | 3011 | |
ff7dcf6a | 3012 | # A target can indicate whether a language isn't supported for some reason. |
3013 | # Only spaces may be used in this macro; not newlines or tabs. | |
3014 | unsupported_languages= | |
3015 | ||
b30fcfae | 3016 | # Remove more programs from consideration, based on the host or |
71ab34df | 3017 | # target this usually means that a port of the program doesn't |
3018 | # exist yet. | |
c7879c37 | 3019 | |
71ab34df | 3020 | case "${host}" in |
b2240ff6 | 3021 | i[3456789]86-*-msdosdjgpp*) |
e3a5e6ff | 3022 | noconfigdirs="$noconfigdirs tcl tk itcl" |
71ab34df | 3023 | ;; |
71ab34df | 3024 | esac |
c7879c37 | 3025 | |
4ee9c684 | 3026 | |
d9d975ae | 3027 | # Check whether --enable-libquadmath was given. |
3028 | if test "${enable_libquadmath+set}" = set; then : | |
3029 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3030 | else | |
3031 | ENABLE_LIBQUADMATH=yes | |
3032 | fi | |
3033 | ||
3034 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3035 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3036 | fi | |
3037 | ||
3038 | ||
3039 | # Check whether --enable-libquadmath-support was given. | |
3040 | if test "${enable_libquadmath_support+set}" = set; then : | |
3041 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3042 | else | |
3043 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3044 | fi | |
3045 | ||
3046 | enable_libquadmath_support= | |
3047 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3048 | enable_libquadmath_support=no | |
3049 | fi | |
3050 | ||
3051 | ||
cd9a469c | 3052 | # Check whether --enable-libada was given. |
3053 | if test "${enable_libada+set}" = set; then : | |
3054 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
93341878 | 3055 | else |
3056 | ENABLE_LIBADA=yes | |
cd9a469c | 3057 | fi |
3058 | ||
93341878 | 3059 | if test "${ENABLE_LIBADA}" != "yes" ; then |
a136b23d | 3060 | noconfigdirs="$noconfigdirs gnattools" |
93341878 | 3061 | fi |
3062 | ||
cd9a469c | 3063 | # Check whether --enable-libssp was given. |
3064 | if test "${enable_libssp+set}" = set; then : | |
3065 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
07da5214 | 3066 | else |
3067 | ENABLE_LIBSSP=yes | |
cd9a469c | 3068 | fi |
3069 | ||
07da5214 | 3070 | |
a3ba808f | 3071 | # Check whether --enable-libstdcxx was given. |
3072 | if test "${enable_libstdcxx+set}" = set; then : | |
3073 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3074 | else | |
3075 | ENABLE_LIBSTDCXX=default | |
3076 | fi | |
3077 | ||
3078 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
df148e44 | 3079 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
a3ba808f | 3080 | fi |
3081 | ||
d3a7dd32 | 3082 | # If this is accelerator compiler and its target is intelmic we enable |
3083 | # target liboffloadmic by default. If this is compiler with offloading | |
3084 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3085 | # liboffloadmic is disabled by default. | |
3086 | # Check whether --enable-liboffloadmic was given. | |
3087 | if test "${enable_liboffloadmic+set}" = set; then : | |
3088 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3089 | no | host | target) | |
3090 | enable_liboffloadmic=$enableval ;; | |
3091 | *) | |
3092 | as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; | |
3093 | esac | |
3094 | else | |
67cedda8 | 3095 | if test x"$enable_as_accelerator_for" != x; then |
d3a7dd32 | 3096 | case "${target}" in |
3097 | *-intelmic-* | *-intelmicemul-*) | |
3098 | enable_liboffloadmic=target | |
3099 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3100 | ;; | |
3101 | *) | |
3102 | enable_liboffloadmic=no | |
3103 | ;; | |
3104 | esac | |
3105 | else | |
3106 | case "${enable_offload_targets}" in | |
3107 | *-intelmic-* | *-intelmicemul-*) | |
3108 | enable_liboffloadmic=host | |
3109 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3110 | ;; | |
3111 | *) | |
3112 | enable_liboffloadmic=no | |
3113 | ;; | |
3114 | esac | |
3115 | fi | |
3116 | fi | |
3117 | ||
3118 | ||
3119 | ||
71ab34df | 3120 | # Save it here so that, even in case of --enable-libgcj, if the Java |
3121 | # front-end isn't enabled, we still get libgcj disabled. | |
3122 | libgcj_saved=$libgcj | |
3123 | case $enable_libgcj in | |
3124 | yes) | |
3125 | # If we reset it here, it won't get added to noconfigdirs in the | |
3126 | # target-specific build rules, so it will be forcibly enabled | |
3127 | # (unless the Java language itself isn't enabled). | |
3128 | libgcj= | |
3129 | ;; | |
3130 | no) | |
3131 | # Make sure we get it printed in the list of not supported target libs. | |
604a285a | 3132 | # Don't disable libffi, though, other languages use it. |
3133 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
8593ce89 | 3134 | # Clear libgcj_saved so that even if java is enabled libffi won't be |
3135 | # built. | |
3136 | libgcj_saved= | |
71ab34df | 3137 | ;; |
3138 | esac | |
c7879c37 | 3139 | |
d7e52ac9 | 3140 | # Check whether --enable-static-libjava was given. |
3141 | if test "${enable_static_libjava+set}" = set; then : | |
3142 | enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval | |
3143 | else | |
3144 | ENABLE_STATIC_LIBJAVA=no | |
3145 | fi | |
3146 | ||
3147 | enable_static_libjava= | |
3148 | if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then | |
3149 | enable_static_libjava=yes | |
3150 | fi | |
3151 | ||
3152 | if test x$enable_static_libjava != xyes ; then | |
3153 | EXTRA_CONFIGARGS_LIBJAVA=--disable-static | |
3154 | fi | |
3155 | ||
4ee9c684 | 3156 | |
50996fe5 | 3157 | # Disable libgomp on non POSIX hosted systems. |
3158 | if test x$enable_libgomp = x ; then | |
1e8e9920 | 3159 | # Enable libgomp by default on hosted POSIX systems. |
3160 | case "${target}" in | |
3bef4012 | 3161 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
1e8e9920 | 3162 | ;; |
e3a1fe08 | 3163 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
1e8e9920 | 3164 | ;; |
5641963c | 3165 | *-*-solaris2* | *-*-hpux11*) |
1e8e9920 | 3166 | ;; |
634efbee | 3167 | *-*-darwin* | *-*-aix*) |
1e8e9920 | 3168 | ;; |
3169 | *) | |
3170 | noconfigdirs="$noconfigdirs target-libgomp" | |
3171 | ;; | |
3172 | esac | |
50996fe5 | 3173 | fi |
1e8e9920 | 3174 | |
6db1d2ca | 3175 | # Disable libatomic on unsupported systems. |
3176 | if test -d ${srcdir}/libatomic; then | |
3177 | if test x$enable_libatomic = x; then | |
3178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3179 | $as_echo_n "checking for libatomic support... " >&6; } | |
3180 | if (srcdir=${srcdir}/libatomic; \ | |
3181 | . ${srcdir}/configure.tgt; \ | |
3182 | test -n "$UNSUPPORTED") | |
3183 | then | |
3184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3185 | $as_echo "no" >&6; } | |
3186 | noconfigdirs="$noconfigdirs target-libatomic" | |
3187 | else | |
3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3189 | $as_echo "yes" >&6; } | |
3190 | fi | |
3191 | fi | |
3192 | fi | |
3193 | ||
4710dd51 | 3194 | # Disable libcilkrts on unsupported systems. |
3195 | if test -d ${srcdir}/libcilkrts; then | |
3196 | if test x$enable_libcilkrts = x; then | |
3197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5 | |
3198 | $as_echo_n "checking for libcilkrts support... " >&6; } | |
3199 | if (srcdir=${srcdir}/libcilkrts; \ | |
3200 | . ${srcdir}/configure.tgt; \ | |
3201 | test -n "$UNSUPPORTED") | |
3202 | then | |
3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3204 | $as_echo "no" >&6; } | |
3205 | noconfigdirs="$noconfigdirs target-libcilkrts" | |
3206 | else | |
3207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3208 | $as_echo "yes" >&6; } | |
3209 | fi | |
3210 | fi | |
3211 | fi | |
3212 | ||
d3a7dd32 | 3213 | # Disable liboffloadmic on unsupported systems. |
3214 | if test -d ${srcdir}/liboffloadmic; then | |
3215 | if test x$enable_liboffloadmic != xno; then | |
3216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3217 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3218 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3219 | . ${srcdir}/configure.tgt; \ | |
3220 | test -n "$UNSUPPORTED") | |
3221 | then | |
3222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3223 | $as_echo "no" >&6; } | |
3224 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3225 | else | |
3226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3227 | $as_echo "yes" >&6; } | |
3228 | fi | |
3229 | fi | |
3230 | fi | |
3231 | ||
42b15c81 | 3232 | # Disable libitm on unsupported systems. |
3233 | if test -d ${srcdir}/libitm; then | |
3234 | if test x$enable_libitm = x; then | |
3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
298c66d9 | 3236 | $as_echo_n "checking for libitm support... " >&6; } |
42b15c81 | 3237 | if (srcdir=${srcdir}/libitm; \ |
3238 | . ${srcdir}/configure.tgt; \ | |
3239 | test -n "$UNSUPPORTED") | |
3240 | then | |
3241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
298c66d9 | 3242 | $as_echo "no" >&6; } |
42b15c81 | 3243 | noconfigdirs="$noconfigdirs target-libitm" |
3244 | else | |
3245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
298c66d9 | 3246 | $as_echo "yes" >&6; } |
42b15c81 | 3247 | fi |
3248 | fi | |
4c0315d0 | 3249 | fi |
3250 | ||
492e75a7 | 3251 | # Disable libsanitizer on unsupported systems. |
3252 | if test -d ${srcdir}/libsanitizer; then | |
3253 | if test x$enable_libsanitizer = x; then | |
3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3255 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3256 | if (srcdir=${srcdir}/libsanitizer; \ | |
3257 | . ${srcdir}/configure.tgt; \ | |
3258 | test -n "$UNSUPPORTED") | |
3259 | then | |
3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3261 | $as_echo "no" >&6; } | |
3262 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3263 | else | |
3264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3265 | $as_echo "yes" >&6; } | |
3266 | fi | |
3267 | fi | |
3268 | fi | |
3269 | ||
b710ec85 | 3270 | # Disable libvtv on unsupported systems. |
3271 | if test -d ${srcdir}/libvtv; then | |
3272 | if test x$enable_libvtv = x; then | |
3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3274 | $as_echo_n "checking for libvtv support... " >&6; } | |
3275 | if (srcdir=${srcdir}/libvtv; \ | |
3276 | . ${srcdir}/configure.tgt; \ | |
6d0992e1 | 3277 | test "$VTV_SUPPORTED" != "yes") |
b710ec85 | 3278 | then |
3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3280 | $as_echo "no" >&6; } | |
3281 | noconfigdirs="$noconfigdirs target-libvtv" | |
3282 | else | |
3283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3284 | $as_echo "yes" >&6; } | |
3285 | fi | |
3286 | fi | |
3287 | fi | |
3288 | ||
62f0972f | 3289 | # Disable libquadmath for some systems. |
3290 | case "${target}" in | |
c36ee471 | 3291 | avr-*-*) |
3292 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3293 | ;; | |
62f0972f | 3294 | # libquadmath is unused on AIX and libquadmath build process use of |
3295 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3296 | powerpc-*-aix* | rs6000-*-aix*) | |
3297 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3298 | ;; | |
3299 | esac | |
3300 | ||
d5831552 | 3301 | # Disable libssp for some systems. |
3302 | case "${target}" in | |
3303 | avr-*-*) | |
76c19016 | 3304 | # No hosted I/O support. |
d5831552 | 3305 | noconfigdirs="$noconfigdirs target-libssp" |
3306 | ;; | |
3307 | powerpc-*-aix* | rs6000-*-aix*) | |
3308 | noconfigdirs="$noconfigdirs target-libssp" | |
78e515f7 | 3309 | ;; |
3310 | rl78-*-*) | |
9d5fd7d0 | 3311 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3312 | # doesn't fault for those - instead, it gives a build-time error | |
3313 | # for explicit misaligned loads. | |
78e515f7 | 3314 | noconfigdirs="$noconfigdirs target-libssp" |
d5831552 | 3315 | ;; |
d5831552 | 3316 | esac |
3317 | ||
d5831552 | 3318 | # Disable libstdc++-v3 for some systems. |
a3ba808f | 3319 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3320 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3321 | case "${target}" in | |
3322 | *-*-vxworks*) | |
3323 | # VxWorks uses the Dinkumware C++ library. | |
3324 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3325 | ;; | |
3326 | arm*-wince-pe*) | |
3327 | # the C++ libraries don't build on top of CE's C libraries | |
3328 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3329 | ;; | |
3330 | avr-*-*) | |
3331 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3332 | ;; | |
3333 | esac | |
3334 | fi | |
d5831552 | 3335 | |
3336 | # Disable Fortran for some systems. | |
3337 | case "${target}" in | |
3338 | mmix-*-*) | |
3339 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3340 | unsupported_languages="$unsupported_languages fortran" | |
3341 | ;; | |
3342 | esac | |
3343 | ||
91b5b6ec | 3344 | # Disable Java if libffi is not supported. |
f24be480 | 3345 | case "${target}" in |
45e22a2e | 3346 | aarch64-*-*) |
3347 | ;; | |
91b5b6ec | 3348 | alpha*-*-*) |
3349 | ;; | |
3350 | arm*-*-*) | |
3351 | ;; | |
3352 | cris-*-*) | |
3353 | ;; | |
3354 | frv-*-*) | |
3355 | ;; | |
3356 | hppa*-*-linux*) | |
3357 | ;; | |
3358 | hppa*-*-hpux*) | |
3359 | ;; | |
3360 | i?86-*-*) | |
3361 | ;; | |
3362 | ia64*-*-*) | |
3363 | ;; | |
3364 | m32r*-*-*) | |
3365 | ;; | |
3366 | m68k-*-*) | |
3367 | ;; | |
5641963c | 3368 | mips*-*-rtems*) |
91b5b6ec | 3369 | ;; |
3370 | mips*-*-linux*) | |
3371 | ;; | |
3372 | powerpc*-*-linux*) | |
3373 | ;; | |
3374 | powerpc-*-darwin*) | |
3375 | ;; | |
3376 | powerpc-*-aix* | rs6000-*-aix*) | |
3377 | ;; | |
3378 | powerpc-*-freebsd*) | |
3379 | ;; | |
3380 | powerpc64-*-freebsd*) | |
3381 | ;; | |
3382 | powerpc*-*-rtems*) | |
f24be480 | 3383 | ;; |
91b5b6ec | 3384 | s390-*-* | s390x-*-*) |
3385 | ;; | |
3386 | sh-*-* | sh[34]*-*-*) | |
3387 | ;; | |
3388 | sh64-*-* | sh5*-*-*) | |
3389 | ;; | |
3390 | sparc*-*-*) | |
3391 | ;; | |
3392 | x86_64-*-*) | |
3393 | ;; | |
3394 | *-*-*) | |
3395 | unsupported_languages="$unsupported_languages java" | |
3396 | ;; | |
3397 | esac | |
3398 | ||
3399 | # Disable Java, libgcj or related libraries for some systems. | |
3400 | case "${target}" in | |
f24be480 | 3401 | powerpc-*-darwin*) |
3402 | ;; | |
3403 | i[3456789]86-*-darwin*) | |
3404 | ;; | |
3405 | x86_64-*-darwin[912]*) | |
3406 | ;; | |
3407 | *-*-darwin*) | |
3408 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3409 | ;; | |
f24be480 | 3410 | *-*-netware*) |
3411 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3412 | ;; | |
3413 | *-*-rtems*) | |
3414 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3415 | ;; | |
3416 | *-*-tpf*) | |
3417 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3418 | ;; | |
3419 | *-*-uclinux*) | |
3420 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3421 | ;; | |
3422 | *-*-vxworks*) | |
3423 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3424 | ;; | |
f24be480 | 3425 | alpha*-*-*vms*) |
3426 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3427 | ;; | |
91b5b6ec | 3428 | arm-wince-pe) |
f24be480 | 3429 | noconfigdirs="$noconfigdirs ${libgcj}" |
3430 | ;; | |
f24be480 | 3431 | arm*-*-symbianelf*) |
3432 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3433 | ;; | |
f24be480 | 3434 | bfin-*-*) |
f24be480 | 3435 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3436 | ;; | |
f24be480 | 3437 | cris-*-* | crisv32-*-*) |
3438 | unsupported_languages="$unsupported_languages java" | |
3439 | case "${target}" in | |
3440 | *-*-linux*) | |
3441 | ;; | |
3442 | *) # See PR46792 regarding target-libffi. | |
3443 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3444 | esac | |
3445 | ;; | |
f24be480 | 3446 | hppa*64*-*-linux*) |
3447 | # In this case, it's because the hppa64-linux target is for | |
3448 | # the kernel only at this point and has no libc, and thus no | |
3449 | # headers, crt*.o, etc., all of which are needed by these. | |
a7e330e9 | 3450 | unsupported_languages="$unsupported_languages java" |
f24be480 | 3451 | ;; |
a7e330e9 | 3452 | hppa*64*-*-hpux*) |
f24be480 | 3453 | noconfigdirs="$noconfigdirs ${libgcj}" |
3454 | ;; | |
3455 | hppa*-hp-hpux11*) | |
3456 | ;; | |
a7e330e9 | 3457 | hppa*-*-hpux*) |
f24be480 | 3458 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't |
3459 | # build on HP-UX 10.20. | |
3460 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3461 | ;; | |
f24be480 | 3462 | ia64*-*-*vms*) |
3463 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3464 | ;; | |
f24be480 | 3465 | i[3456789]86-w64-mingw*) |
3466 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3467 | ;; | |
3468 | i[3456789]86-*-mingw*) | |
3469 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3470 | ;; | |
3471 | x86_64-*-mingw*) | |
3472 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3473 | ;; | |
f24be480 | 3474 | mmix-*-*) |
3475 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
f24be480 | 3476 | ;; |
3477 | powerpc-*-aix*) | |
3478 | # copied from rs6000-*-* entry | |
3479 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3480 | ;; | |
f24be480 | 3481 | rs6000-*-aix*) |
3482 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3483 | ;; | |
f24be480 | 3484 | *-*-lynxos*) |
3485 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3486 | ;; | |
f24be480 | 3487 | esac |
3488 | ||
10e64fba | 3489 | # Disable the go frontend on systems where it is known to not work. Please keep |
3490 | # this in sync with contrib/config-list.mk. | |
56242c27 | 3491 | case "${target}" in |
3492 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) | |
3493 | unsupported_languages="$unsupported_languages go" | |
3494 | ;; | |
3495 | esac | |
3496 | ||
a6999726 | 3497 | # Disable libgo for some systems where it is known to not work. |
3498 | # For testing, you can easily override this with --enable-libgo. | |
3499 | if test x$enable_libgo = x; then | |
3500 | case "${target}" in | |
3501 | *-*-darwin*) | |
3502 | # PR 46986 | |
3503 | noconfigdirs="$noconfigdirs target-libgo" | |
3504 | ;; | |
3505 | *-*-cygwin* | *-*-mingw*) | |
3506 | noconfigdirs="$noconfigdirs target-libgo" | |
3507 | ;; | |
3508 | *-*-aix*) | |
3509 | noconfigdirs="$noconfigdirs target-libgo" | |
3510 | ;; | |
3511 | esac | |
3512 | fi | |
3513 | ||
1c5767f1 | 3514 | # Default libgloss CPU subdirectory. |
3515 | libgloss_dir="$target_cpu" | |
4ee9c684 | 3516 | |
e0942c78 | 3517 | case "${target}" in |
3518 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3519 | libgloss_dir=wince | |
3520 | ;; | |
e26fddfa | 3521 | aarch64*-*-* ) |
3522 | libgloss_dir=aarch64 | |
3523 | ;; | |
e0942c78 | 3524 | arm*-*-*) |
3525 | libgloss_dir=arm | |
3526 | ;; | |
3527 | cris-*-* | crisv32-*-*) | |
3528 | libgloss_dir=cris | |
3529 | ;; | |
3530 | hppa*-*-*) | |
3531 | libgloss_dir=pa | |
3532 | ;; | |
3533 | i[3456789]86-*-*) | |
3534 | libgloss_dir=i386 | |
3535 | ;; | |
3536 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3537 | libgloss_dir=m68hc11 | |
3538 | ;; | |
3539 | m68*-*-* | fido-*-*) | |
3540 | libgloss_dir=m68k | |
3541 | ;; | |
3542 | mips*-*-*) | |
3543 | libgloss_dir=mips | |
3544 | ;; | |
3545 | powerpc*-*-*) | |
3546 | libgloss_dir=rs6000 | |
3547 | ;; | |
3548 | sparc*-*-*) | |
3549 | libgloss_dir=sparc | |
3550 | ;; | |
3551 | esac | |
3552 | ||
d556f192 | 3553 | # Disable newlib and libgloss for various target OSes. |
71ab34df | 3554 | case "${target}" in |
d556f192 | 3555 | alpha*-dec-osf*) |
3556 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3557 | ;; | |
3558 | i[3456789]86-*-linux*) | |
3559 | # This section makes it possible to build newlib natively on linux. | |
3560 | # If we are using a cross compiler then don't configure newlib. | |
3561 | if test x${is_cross_compiler} != xno ; then | |
3562 | noconfigdirs="$noconfigdirs target-newlib" | |
3563 | fi | |
3564 | noconfigdirs="$noconfigdirs target-libgloss" | |
3565 | # If we are not using a cross compiler, do configure newlib. | |
3566 | # Note however, that newlib will only be configured in this situation | |
3567 | # if the --with-newlib option has been given, because otherwise | |
3568 | # 'target-newlib' will appear in skipdirs. | |
3569 | ;; | |
3570 | i[3456789]86-*-rdos*) | |
3571 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3572 | ;; | |
3573 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3574 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3575 | ;; | |
3576 | sparc-*-sunos4*) | |
3577 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3578 | ;; | |
3579 | *-*-aix*) | |
3580 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3581 | ;; | |
3582 | *-*-beos*) | |
3583 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3584 | ;; | |
71ab34df | 3585 | *-*-chorusos) |
71559dce | 3586 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
71ab34df | 3587 | ;; |
d556f192 | 3588 | *-*-dragonfly*) |
3589 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3590 | ;; | |
3591 | *-*-freebsd*) | |
3592 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3593 | ;; | |
3594 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3595 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3596 | ;; | |
3597 | *-*-lynxos*) | |
3598 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3599 | ;; | |
3600 | *-*-mingw*) | |
3601 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3602 | ;; | |
3603 | *-*-netbsd*) | |
3604 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3605 | ;; | |
3606 | *-*-netware*) | |
3607 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3608 | ;; | |
3609 | *-*-tpf*) | |
3610 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3611 | ;; | |
3612 | *-*-uclinux*) | |
3613 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3614 | ;; | |
3615 | *-*-vxworks*) | |
3616 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3617 | ;; | |
3618 | esac | |
3619 | ||
3620 | case "${target}" in | |
3621 | *-*-chorusos) | |
3622 | ;; | |
40c500e1 | 3623 | powerpc-*-darwin*) |
dba2c8ea | 3624 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
d28caca4 | 3625 | noconfigdirs="$noconfigdirs sim target-rda" |
0894307c | 3626 | ;; |
ea864ded | 3627 | i[3456789]86-*-darwin*) |
3628 | noconfigdirs="$noconfigdirs ld gprof" | |
3629 | noconfigdirs="$noconfigdirs sim target-rda" | |
3630 | ;; | |
3631 | x86_64-*-darwin[912]*) | |
d9f9f3af | 3632 | noconfigdirs="$noconfigdirs ld gas gprof" |
3633 | noconfigdirs="$noconfigdirs sim target-rda" | |
3634 | ;; | |
fce068fd | 3635 | *-*-darwin*) |
3636 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3637 | noconfigdirs="$noconfigdirs sim target-rda" | |
fce068fd | 3638 | ;; |
e3a1fe08 | 3639 | *-*-dragonfly*) |
e3a1fe08 | 3640 | ;; |
c01dd063 | 3641 | *-*-freebsd*) |
4ee9c684 | 3642 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3643 | && test -f /usr/local/include/gmp.h; then | |
3644 | with_gmp=/usr/local | |
3645 | fi | |
4ee9c684 | 3646 | ;; |
336577be | 3647 | *-*-kaos*) |
3648 | # Remove unsupported stuff on all kaOS configurations. | |
336577be | 3649 | noconfigdirs="$noconfigdirs target-libgloss" |
3650 | ;; | |
71ab34df | 3651 | *-*-netbsd*) |
71ab34df | 3652 | ;; |
634f7a13 | 3653 | *-*-netware*) |
71ab34df | 3654 | ;; |
3655 | *-*-rtems*) | |
f24be480 | 3656 | noconfigdirs="$noconfigdirs target-libgloss" |
d781ea5c | 3657 | # this is not caught below because this stanza matches earlier |
3658 | case $target in | |
3659 | or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;; | |
3660 | esac | |
71ab34df | 3661 | ;; |
9f88bc9d | 3662 | # The tpf target doesn't support gdb yet. |
3663 | *-*-tpf*) | |
d556f192 | 3664 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
9f88bc9d | 3665 | ;; |
688429c4 | 3666 | *-*-uclinux*) |
d556f192 | 3667 | noconfigdirs="$noconfigdirs target-rda" |
688429c4 | 3668 | ;; |
71ab34df | 3669 | *-*-vxworks*) |
71ab34df | 3670 | ;; |
3671 | alpha*-dec-osf*) | |
3672 | # ld works, but does not support shared libraries. | |
71ab34df | 3673 | # gas doesn't generate exception information. |
d556f192 | 3674 | noconfigdirs="$noconfigdirs gas ld" |
71ab34df | 3675 | ;; |
3676 | alpha*-*-*vms*) | |
f24be480 | 3677 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
71ab34df | 3678 | ;; |
71ab34df | 3679 | alpha*-*-*) |
3680 | # newlib is not 64 bit ready | |
f24be480 | 3681 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
71ab34df | 3682 | ;; |
71ab34df | 3683 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
f843f075 | 3684 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
71ab34df | 3685 | ;; |
3c867e46 | 3686 | arc-*-*|arceb-*-*) |
17b3d2a8 | 3687 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3688 | ;; |
71ab34df | 3689 | arm-*-pe*) |
f24be480 | 3690 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3691 | ;; |
71ab34df | 3692 | arm-*-riscix*) |
71559dce | 3693 | noconfigdirs="$noconfigdirs ld target-libgloss" |
71ab34df | 3694 | ;; |
fd28e216 | 3695 | avr-*-rtems*) |
3696 | ;; | |
3697 | avr-*-*) | |
3698 | if test x${with_avrlibc} != xno; then | |
3699 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3700 | fi | |
3701 | ;; | |
71ab34df | 3702 | c4x-*-* | tic4x-*-*) |
71559dce | 3703 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3704 | ;; |
71559dce | 3705 | tic54x-*-*) |
3706 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
71ab34df | 3707 | ;; |
71ab34df | 3708 | d10v-*-*) |
71559dce | 3709 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3710 | ;; |
3711 | d30v-*-*) | |
71559dce | 3712 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3713 | ;; |
3714 | fr30-*-elf*) | |
f24be480 | 3715 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3716 | ;; |
ca2751b6 | 3717 | moxie-*-*) |
ca2751b6 | 3718 | noconfigdirs="$noconfigdirs gprof" |
3719 | ;; | |
71ab34df | 3720 | h8300*-*-*) |
f24be480 | 3721 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3722 | ;; |
3723 | h8500-*-*) | |
71559dce | 3724 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3725 | ;; |
e8eddfdd | 3726 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
e8eddfdd | 3727 | ;; |
6bd59761 | 3728 | hppa*64*-*-linux*) |
71ab34df | 3729 | ;; |
99684e84 | 3730 | hppa*-*-linux*) |
08261f02 | 3731 | ;; |
71ab34df | 3732 | hppa*-*-*elf* | \ |
71ab34df | 3733 | hppa*-*-lites* | \ |
3734 | hppa*-*-openbsd* | \ | |
3735 | hppa*64*-*-*) | |
71ab34df | 3736 | ;; |
75d59721 | 3737 | hppa*-hp-hpux11*) |
6c9785b4 | 3738 | noconfigdirs="$noconfigdirs ld" |
75d59721 | 3739 | ;; |
1c5767f1 | 3740 | hppa*-*-pro*) |
1c5767f1 | 3741 | ;; |
71ab34df | 3742 | hppa*-*-*) |
f24be480 | 3743 | noconfigdirs="$noconfigdirs ld" |
71ab34df | 3744 | ;; |
4a9237fb | 3745 | i960-*-*) |
71559dce | 3746 | noconfigdirs="$noconfigdirs gdb" |
4a9237fb | 3747 | ;; |
71ab34df | 3748 | ia64*-*-elf*) |
3749 | # No gdb support yet. | |
6c9785b4 | 3750 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
71ab34df | 3751 | ;; |
3752 | ia64*-**-hpux*) | |
1aca86a6 | 3753 | # No ld support yet. |
f24be480 | 3754 | noconfigdirs="$noconfigdirs libgui itcl ld" |
71ab34df | 3755 | ;; |
8408ca00 | 3756 | ia64*-*-*vms*) |
3211401d | 3757 | # No ld support yet. |
3758 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
8408ca00 | 3759 | ;; |
ec2eb8fb | 3760 | i[3456789]86-w64-mingw*) |
ec2eb8fb | 3761 | ;; |
3762 | i[3456789]86-*-mingw*) | |
d6d689df | 3763 | target_configdirs="$target_configdirs target-winsup" |
b30fcfae | 3764 | ;; |
71ab34df | 3765 | *-*-cygwin*) |
3766 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
6c9785b4 | 3767 | noconfigdirs="$noconfigdirs target-libgloss" |
2c10944d | 3768 | # always build newlib if winsup directory is present. |
d6d689df | 3769 | if test -d "$srcdir/winsup/cygwin"; then |
2c10944d | 3770 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
e8eddfdd | 3771 | elif test -d "$srcdir/newlib"; then |
d6d689df | 3772 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
2c10944d | 3773 | fi |
b30fcfae | 3774 | ;; |
f74ea578 | 3775 | i[3456789]86-*-pe) |
17b3d2a8 | 3776 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3777 | ;; |
f74ea578 | 3778 | i[3456789]86-*-sco3.2v5*) |
71ab34df | 3779 | # The linker does not yet know about weak symbols in COFF, |
3780 | # and is not configured to handle mixed ELF and COFF. | |
71559dce | 3781 | noconfigdirs="$noconfigdirs ld target-libgloss" |
71ab34df | 3782 | ;; |
f74ea578 | 3783 | i[3456789]86-*-sco*) |
71559dce | 3784 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
71ab34df | 3785 | ;; |
14f27bc6 | 3786 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
71ab34df | 3787 | noconfigdirs="$noconfigdirs target-libgloss" |
3788 | ;; | |
f74ea578 | 3789 | i[3456789]86-*-sysv4*) |
71559dce | 3790 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3791 | ;; |
f74ea578 | 3792 | i[3456789]86-*-beos*) |
d556f192 | 3793 | noconfigdirs="$noconfigdirs gdb" |
602d002b | 3794 | ;; |
ab0da556 | 3795 | i[3456789]86-*-rdos*) |
d556f192 | 3796 | noconfigdirs="$noconfigdirs gdb" |
1c5767f1 | 3797 | ;; |
71ab34df | 3798 | mmix-*-*) |
f24be480 | 3799 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3800 | ;; |
957985d9 | 3801 | mt-*-*) |
f6fa11cb | 3802 | noconfigdirs="$noconfigdirs sim" |
3803 | ;; | |
71ab34df | 3804 | powerpc-*-aix*) |
3805 | # copied from rs6000-*-* entry | |
d556f192 | 3806 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3807 | ;; |
6bd59761 | 3808 | powerpc*-*-winnt* | powerpc*-*-pe*) |
71ab34df | 3809 | target_configdirs="$target_configdirs target-winsup" |
71559dce | 3810 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
71ab34df | 3811 | # always build newlib. |
3812 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3813 | ;; | |
3814 | # This is temporary until we can link against shared libraries | |
3815 | powerpcle-*-solaris*) | |
71559dce | 3816 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
71ab34df | 3817 | ;; |
3818 | powerpc-*-beos*) | |
d556f192 | 3819 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3820 | ;; |
71ab34df | 3821 | rs6000-*-lynxos*) |
d556f192 | 3822 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3823 | ;; |
3824 | rs6000-*-aix*) | |
d556f192 | 3825 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3826 | ;; |
3827 | rs6000-*-*) | |
f24be480 | 3828 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3829 | ;; |
3830 | m68k-apollo-*) | |
71559dce | 3831 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
71ab34df | 3832 | ;; |
ba2b484f | 3833 | microblaze*) |
f24be480 | 3834 | noconfigdirs="$noconfigdirs gprof" |
ba2b484f | 3835 | ;; |
d781ea5c | 3836 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
68c9bc25 | 3837 | if test x$with_newlib = xyes; then |
3838 | noconfigdirs="$noconfigdirs gprof" | |
3839 | fi | |
68c9bc25 | 3840 | ;; |
71ab34df | 3841 | mips*-*-irix5*) |
71559dce | 3842 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
71ab34df | 3843 | ;; |
3844 | mips*-*-irix6*) | |
f24be480 | 3845 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
71ab34df | 3846 | ;; |
71ab34df | 3847 | mips*-*-bsd*) |
d6449910 | 3848 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
71ab34df | 3849 | ;; |
71ab34df | 3850 | mips*-*-linux*) |
71ab34df | 3851 | ;; |
d6449910 | 3852 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3853 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3854 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3855 | ;; | |
71ab34df | 3856 | mips*-*-*) |
f24be480 | 3857 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3858 | ;; |
d781ea5c | 3859 | nds32*-*-*) |
3860 | noconfigdirs="$noconfigdirs gdb" | |
3861 | ;; | |
8ce80784 | 3862 | nvptx*-*-*) |
3863 | # nvptx is just a compiler | |
3864 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" | |
3865 | ;; | |
d781ea5c | 3866 | or1k*-*-*) |
3867 | noconfigdirs="$noconfigdirs gdb" | |
3868 | ;; | |
33974778 | 3869 | sh-*-* | sh64-*-*) |
39f6b116 | 3870 | case "${target}" in |
3871 | sh*-*-elf) | |
f24be480 | 3872 | ;; |
39f6b116 | 3873 | *) |
f24be480 | 3874 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
39f6b116 | 3875 | esac |
71ab34df | 3876 | ;; |
71ab34df | 3877 | sparc-*-sunos4*) |
d556f192 | 3878 | if test x${is_cross_compiler} = xno ; then |
71ab34df | 3879 | use_gnu_ld=no |
3880 | fi | |
3881 | ;; | |
fa0a53e3 | 3882 | tic6x-*-*) |
ccdfa490 | 3883 | noconfigdirs="$noconfigdirs sim" |
fa0a53e3 | 3884 | ;; |
2da35515 | 3885 | tilepro*-*-* | tilegx*-*-*) |
e5fa74b2 | 3886 | noconfigdirs="$noconfigdirs sim" |
3887 | ;; | |
71ab34df | 3888 | v810-*-*) |
71559dce | 3889 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
71ab34df | 3890 | ;; |
3891 | vax-*-*) | |
f24be480 | 3892 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
71ab34df | 3893 | ;; |
71ab34df | 3894 | esac |
a8298541 | 3895 | |
71ab34df | 3896 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3897 | # depends upon some newlib header files. | |
3898 | case "${noconfigdirs}" in | |
3899 | *target-libgloss*) ;; | |
3900 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3901 | esac | |
3902 | ||
71ab34df | 3903 | # Work in distributions that contain no compiler tools, like Autoconf. |
71ab34df | 3904 | host_makefile_frag=/dev/null |
3905 | if test -d ${srcdir}/config ; then | |
3906 | case "${host}" in | |
f74ea578 | 3907 | i[3456789]86-*-msdosdjgpp*) |
71ab34df | 3908 | host_makefile_frag="config/mh-djgpp" |
3909 | ;; | |
3910 | *-cygwin*) | |
45043b2b | 3911 | |
cd9a469c | 3912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3913 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
45043b2b | 3914 | echo a >cygwin-cat-check |
82d97a59 | 3915 | if test `cat cygwin-cat-check` = a ; then |
45043b2b | 3916 | rm cygwin-cat-check |
cd9a469c | 3917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3918 | $as_echo "yes" >&6; } | |
45043b2b | 3919 | else |
3920 | rm cygwin-cat-check | |
cd9a469c | 3921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3922 | $as_echo "no" >&6; } | |
3923 | as_fn_error "The cat command does not ignore carriage return characters. | |
45043b2b | 3924 | Please either mount the build directory in binary mode or run the following |
3925 | commands before running any configure script: | |
3926 | set -o igncr | |
3927 | export SHELLOPTS | |
cd9a469c | 3928 | " "$LINENO" 5 |
45043b2b | 3929 | fi |
3930 | ||
71ab34df | 3931 | host_makefile_frag="config/mh-cygwin" |
3932 | ;; | |
5a92bcc2 | 3933 | *-mingw*) |
70d8e49e | 3934 | host_makefile_frag="config/mh-mingw" |
a378fc89 | 3935 | ;; |
385527e9 | 3936 | alpha*-*-linux*) |
3937 | host_makefile_frag="config/mh-alpha-linux" | |
3938 | ;; | |
d2b94e36 | 3939 | hppa*-hp-hpux10*) |
d2b94e36 | 3940 | host_makefile_frag="config/mh-pa-hpux10" |
71ab34df | 3941 | ;; |
b2240ff6 | 3942 | hppa*-hp-hpux*) |
d2b94e36 | 3943 | host_makefile_frag="config/mh-pa" |
3944 | ;; | |
3945 | hppa*-*) | |
3946 | host_makefile_frag="config/mh-pa" | |
3947 | ;; | |
16463c8d | 3948 | *-*-darwin*) |
3949 | host_makefile_frag="config/mh-darwin" | |
0222d984 | 3950 | ;; |
9d44a802 | 3951 | powerpc-*-aix*) |
3952 | host_makefile_frag="config/mh-ppc-aix" | |
3953 | ;; | |
3954 | rs6000-*-aix*) | |
3955 | host_makefile_frag="config/mh-ppc-aix" | |
3956 | ;; | |
71ab34df | 3957 | esac |
3958 | fi | |
3959 | ||
8e1fea1a | 3960 | if test "${build}" != "${host}" ; then |
93c5e793 | 3961 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3962 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
8e1fea1a | 3963 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
93c5e793 | 3964 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3965 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
3966 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
5ff5b630 | 3967 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
93c5e793 | 3968 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3969 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3970 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3971 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3972 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3973 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3974 | else | |
3975 | AR_FOR_BUILD="\$(AR)" | |
3976 | AS_FOR_BUILD="\$(AS)" | |
a4af6a58 | 3977 | CC_FOR_BUILD="\$(CC)" |
93c5e793 | 3978 | CXX_FOR_BUILD="\$(CXX)" |
3979 | GCJ_FOR_BUILD="\$(GCJ)" | |
3980 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
5ff5b630 | 3981 | GOC_FOR_BUILD="\$(GOC)" |
93c5e793 | 3982 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3983 | LD_FOR_BUILD="\$(LD)" | |
3984 | NM_FOR_BUILD="\$(NM)" | |
3985 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3986 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3987 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
eae5b2bc | 3988 | fi |
3989 | ||
3990 | ac_ext=c | |
b30fcfae | 3991 | ac_cpp='$CPP $CPPFLAGS' |
3992 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3993 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3994 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3995 | if test -n "$ac_tool_prefix"; then | |
3996 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3997 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
cd9a469c | 3998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3999 | $as_echo_n "checking for $ac_word... " >&6; } | |
4000 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4001 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 4002 | else |
4003 | if test -n "$CC"; then | |
4004 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4005 | else | |
4006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4007 | for as_dir in $PATH | |
4008 | do | |
4009 | IFS=$as_save_IFS | |
4010 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4011 | for ac_exec_ext in '' $ac_executable_extensions; do |
4012 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4013 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
cd9a469c | 4014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4015 | break 2 |
4016 | fi | |
4017 | done | |
cd9a469c | 4018 | done |
4019 | IFS=$as_save_IFS | |
b30fcfae | 4020 | |
4021 | fi | |
4022 | fi | |
4023 | CC=$ac_cv_prog_CC | |
4024 | if test -n "$CC"; then | |
cd9a469c | 4025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4026 | $as_echo "$CC" >&6; } | |
b30fcfae | 4027 | else |
cd9a469c | 4028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4029 | $as_echo "no" >&6; } | |
b30fcfae | 4030 | fi |
4031 | ||
cd9a469c | 4032 | |
b30fcfae | 4033 | fi |
4034 | if test -z "$ac_cv_prog_CC"; then | |
4035 | ac_ct_CC=$CC | |
a4af6a58 | 4036 | # Extract the first word of "gcc", so it can be a program name with args. |
4037 | set dummy gcc; ac_word=$2 | |
cd9a469c | 4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4039 | $as_echo_n "checking for $ac_word... " >&6; } | |
4040 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4041 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 4042 | else |
4043 | if test -n "$ac_ct_CC"; then | |
4044 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4045 | else | |
4046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4047 | for as_dir in $PATH | |
4048 | do | |
4049 | IFS=$as_save_IFS | |
4050 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4051 | for ac_exec_ext in '' $ac_executable_extensions; do |
4052 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4053 | ac_cv_prog_ac_ct_CC="gcc" |
cd9a469c | 4054 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4055 | break 2 |
4056 | fi | |
4057 | done | |
cd9a469c | 4058 | done |
4059 | IFS=$as_save_IFS | |
b30fcfae | 4060 | |
4061 | fi | |
4062 | fi | |
4063 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4064 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 4065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4066 | $as_echo "$ac_ct_CC" >&6; } | |
b30fcfae | 4067 | else |
cd9a469c | 4068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4069 | $as_echo "no" >&6; } | |
b30fcfae | 4070 | fi |
4071 | ||
cd9a469c | 4072 | if test "x$ac_ct_CC" = x; then |
4073 | CC="" | |
4074 | else | |
4075 | case $cross_compiling:$ac_tool_warned in | |
4076 | yes:) | |
4077 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4078 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4079 | ac_tool_warned=yes ;; | |
4080 | esac | |
4081 | CC=$ac_ct_CC | |
4082 | fi | |
b30fcfae | 4083 | else |
4084 | CC="$ac_cv_prog_CC" | |
4085 | fi | |
4086 | ||
4087 | if test -z "$CC"; then | |
cd9a469c | 4088 | if test -n "$ac_tool_prefix"; then |
4089 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b30fcfae | 4090 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
cd9a469c | 4091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4092 | $as_echo_n "checking for $ac_word... " >&6; } | |
4093 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4094 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 4095 | else |
4096 | if test -n "$CC"; then | |
4097 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4098 | else | |
b30fcfae | 4099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4100 | for as_dir in $PATH | |
4101 | do | |
4102 | IFS=$as_save_IFS | |
4103 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4104 | for ac_exec_ext in '' $ac_executable_extensions; do |
4105 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4106 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
cd9a469c | 4107 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4108 | break 2 |
4109 | fi | |
4110 | done | |
cd9a469c | 4111 | done |
4112 | IFS=$as_save_IFS | |
b30fcfae | 4113 | |
a83ffacf | 4114 | fi |
a83ffacf | 4115 | fi |
b30fcfae | 4116 | CC=$ac_cv_prog_CC |
ae48753c | 4117 | if test -n "$CC"; then |
cd9a469c | 4118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4119 | $as_echo "$CC" >&6; } | |
5084f823 | 4120 | else |
cd9a469c | 4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4122 | $as_echo "no" >&6; } | |
5084f823 | 4123 | fi |
4124 | ||
5084f823 | 4125 | |
cd9a469c | 4126 | fi |
b30fcfae | 4127 | fi |
8e1fea1a | 4128 | if test -z "$CC"; then |
4129 | # Extract the first word of "cc", so it can be a program name with args. | |
4130 | set dummy cc; ac_word=$2 | |
cd9a469c | 4131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4132 | $as_echo_n "checking for $ac_word... " >&6; } | |
4133 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4134 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 4135 | else |
4136 | if test -n "$CC"; then | |
4137 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4138 | else | |
a83ffacf | 4139 | ac_prog_rejected=no |
b30fcfae | 4140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4141 | for as_dir in $PATH | |
4142 | do | |
4143 | IFS=$as_save_IFS | |
4144 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4145 | for ac_exec_ext in '' $ac_executable_extensions; do |
4146 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4147 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4148 | ac_prog_rejected=yes | |
4149 | continue | |
4150 | fi | |
4151 | ac_cv_prog_CC="cc" | |
cd9a469c | 4152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4153 | break 2 |
4154 | fi | |
4155 | done | |
cd9a469c | 4156 | done |
4157 | IFS=$as_save_IFS | |
b30fcfae | 4158 | |
8e1fea1a | 4159 | if test $ac_prog_rejected = yes; then |
4160 | # We found a bogon in the path, so make sure we never use it. | |
4161 | set dummy $ac_cv_prog_CC | |
4162 | shift | |
b30fcfae | 4163 | if test $# != 0; then |
8e1fea1a | 4164 | # We chose a different compiler from the bogus one. |
4165 | # However, it has the same basename, so the bogon will be chosen | |
4166 | # first if we set CC to just the basename; use the full file name. | |
4167 | shift | |
b30fcfae | 4168 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
8e1fea1a | 4169 | fi |
4170 | fi | |
4171 | fi | |
4172 | fi | |
b30fcfae | 4173 | CC=$ac_cv_prog_CC |
8e1fea1a | 4174 | if test -n "$CC"; then |
cd9a469c | 4175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4176 | $as_echo "$CC" >&6; } | |
8e1fea1a | 4177 | else |
cd9a469c | 4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4179 | $as_echo "no" >&6; } | |
8e1fea1a | 4180 | fi |
4181 | ||
cd9a469c | 4182 | |
b30fcfae | 4183 | fi |
4184 | if test -z "$CC"; then | |
4185 | if test -n "$ac_tool_prefix"; then | |
cd9a469c | 4186 | for ac_prog in cl.exe |
b30fcfae | 4187 | do |
4188 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4189 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 4190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4191 | $as_echo_n "checking for $ac_word... " >&6; } | |
4192 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4193 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 4194 | else |
4195 | if test -n "$CC"; then | |
4196 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4197 | else | |
b30fcfae | 4198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4199 | for as_dir in $PATH | |
4200 | do | |
4201 | IFS=$as_save_IFS | |
4202 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4203 | for ac_exec_ext in '' $ac_executable_extensions; do |
4204 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4205 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
cd9a469c | 4206 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4207 | break 2 |
4208 | fi | |
4209 | done | |
cd9a469c | 4210 | done |
4211 | IFS=$as_save_IFS | |
b30fcfae | 4212 | |
8e1fea1a | 4213 | fi |
4214 | fi | |
b30fcfae | 4215 | CC=$ac_cv_prog_CC |
8e1fea1a | 4216 | if test -n "$CC"; then |
cd9a469c | 4217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4218 | $as_echo "$CC" >&6; } | |
b1660f25 | 4219 | else |
cd9a469c | 4220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4221 | $as_echo "no" >&6; } | |
a4af6a58 | 4222 | fi |
ae48753c | 4223 | |
cd9a469c | 4224 | |
b30fcfae | 4225 | test -n "$CC" && break |
4226 | done | |
ae48753c | 4227 | fi |
b30fcfae | 4228 | if test -z "$CC"; then |
4229 | ac_ct_CC=$CC | |
cd9a469c | 4230 | for ac_prog in cl.exe |
b30fcfae | 4231 | do |
4232 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4233 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 4234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4235 | $as_echo_n "checking for $ac_word... " >&6; } | |
4236 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4237 | $as_echo_n "(cached) " >&6 | |
a83ffacf | 4238 | else |
b30fcfae | 4239 | if test -n "$ac_ct_CC"; then |
4240 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
a83ffacf | 4241 | else |
b30fcfae | 4242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4243 | for as_dir in $PATH | |
4244 | do | |
4245 | IFS=$as_save_IFS | |
4246 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4247 | for ac_exec_ext in '' $ac_executable_extensions; do |
4248 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4249 | ac_cv_prog_ac_ct_CC="$ac_prog" |
cd9a469c | 4250 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4251 | break 2 |
4252 | fi | |
4253 | done | |
cd9a469c | 4254 | done |
4255 | IFS=$as_save_IFS | |
b30fcfae | 4256 | |
ae48753c | 4257 | fi |
4258 | fi | |
b30fcfae | 4259 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4260 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 4261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4262 | $as_echo "$ac_ct_CC" >&6; } | |
a4af6a58 | 4263 | else |
cd9a469c | 4264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4265 | $as_echo "no" >&6; } | |
ae48753c | 4266 | fi |
a83ffacf | 4267 | |
cd9a469c | 4268 | |
b30fcfae | 4269 | test -n "$ac_ct_CC" && break |
4270 | done | |
4271 | ||
cd9a469c | 4272 | if test "x$ac_ct_CC" = x; then |
4273 | CC="" | |
4274 | else | |
4275 | case $cross_compiling:$ac_tool_warned in | |
4276 | yes:) | |
4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4278 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4279 | ac_tool_warned=yes ;; | |
4280 | esac | |
4281 | CC=$ac_ct_CC | |
4282 | fi | |
b30fcfae | 4283 | fi |
4284 | ||
4285 | fi | |
4286 | ||
4287 | ||
cd9a469c | 4288 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4289 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4290 | as_fn_error "no acceptable C compiler found in \$PATH | |
4291 | See \`config.log' for more details." "$LINENO" 5; } | |
b30fcfae | 4292 | |
4293 | # Provide some information about the compiler. | |
cd9a469c | 4294 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4295 | set X $ac_compile | |
4296 | ac_compiler=$2 | |
4297 | for ac_option in --version -v -V -qversion; do | |
4298 | { { ac_try="$ac_compiler $ac_option >&5" | |
4299 | case "(($ac_try" in | |
4300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4301 | *) ac_try_echo=$ac_try;; | |
4302 | esac | |
4303 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4304 | $as_echo "$ac_try_echo"; } >&5 | |
4305 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b30fcfae | 4306 | ac_status=$? |
cd9a469c | 4307 | if test -s conftest.err; then |
4308 | sed '10a\ | |
4309 | ... rest of stderr output deleted ... | |
4310 | 10q' conftest.err >conftest.er1 | |
4311 | cat conftest.er1 >&5 | |
4312 | rm -f conftest.er1 conftest.err | |
4313 | fi | |
4314 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4315 | test $ac_status = 0; } | |
4316 | done | |
b30fcfae | 4317 | |
cd9a469c | 4318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4319 | /* end confdefs.h. */ |
4320 | ||
4321 | int | |
4322 | main () | |
4323 | { | |
4324 | ||
4325 | ; | |
4326 | return 0; | |
4327 | } | |
4328 | _ACEOF | |
4329 | ac_clean_files_save=$ac_clean_files | |
cd9a469c | 4330 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
b30fcfae | 4331 | # Try to create an executable without -o first, disregard a.out. |
4332 | # It will help us diagnose broken compilers, and finding out an intuition | |
4333 | # of exeext. | |
cd9a469c | 4334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4335 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4336 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4337 | ||
4338 | # The possible output files: | |
4339 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4340 | ||
4341 | ac_rmfiles= | |
4342 | for ac_file in $ac_files | |
4343 | do | |
4344 | case $ac_file in | |
4345 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4346 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4347 | esac | |
4348 | done | |
4349 | rm -f $ac_rmfiles | |
4350 | ||
4351 | if { { ac_try="$ac_link_default" | |
4352 | case "(($ac_try" in | |
4353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4354 | *) ac_try_echo=$ac_try;; | |
4355 | esac | |
4356 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4357 | $as_echo "$ac_try_echo"; } >&5 | |
4358 | (eval "$ac_link_default") 2>&5 | |
b30fcfae | 4359 | ac_status=$? |
cd9a469c | 4360 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4361 | test $ac_status = 0; }; then : | |
4362 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4363 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4364 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4365 | # so that the user can short-circuit this test for compilers unknown to | |
4366 | # Autoconf. | |
4367 | for ac_file in $ac_files '' | |
b30fcfae | 4368 | do |
4369 | test -f "$ac_file" || continue | |
4370 | case $ac_file in | |
cd9a469c | 4371 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b30fcfae | 4372 | ;; |
4373 | [ab].out ) | |
4374 | # We found the default executable, but exeext='' is most | |
4375 | # certainly right. | |
4376 | break;; | |
4377 | *.* ) | |
cd9a469c | 4378 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4379 | then :; else | |
4380 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4381 | fi | |
4382 | # We set ac_cv_exeext here because the later test for it is not | |
4383 | # safe: cross compilers may not add the suffix if given an `-o' | |
4384 | # argument, so we may need to know it at that point already. | |
4385 | # Even if this section looks crufty: it has the advantage of | |
4386 | # actually working. | |
b30fcfae | 4387 | break;; |
4388 | * ) | |
4389 | break;; | |
4390 | esac | |
4391 | done | |
cd9a469c | 4392 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4393 | ||
b30fcfae | 4394 | else |
cd9a469c | 4395 | ac_file='' |
4396 | fi | |
4397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4398 | $as_echo "$ac_file" >&6; } | |
4399 | if test -z "$ac_file"; then : | |
4400 | $as_echo "$as_me: failed program was:" >&5 | |
b30fcfae | 4401 | sed 's/^/| /' conftest.$ac_ext >&5 |
4402 | ||
cd9a469c | 4403 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4404 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4405 | { as_fn_set_status 77 | |
4406 | as_fn_error "C compiler cannot create executables | |
4407 | See \`config.log' for more details." "$LINENO" 5; }; } | |
b30fcfae | 4408 | fi |
b30fcfae | 4409 | ac_exeext=$ac_cv_exeext |
b30fcfae | 4410 | |
cd9a469c | 4411 | # Check that the compiler produces executables we can run. If not, either |
b30fcfae | 4412 | # the compiler is broken, or we cross compile. |
cd9a469c | 4413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4414 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
b30fcfae | 4415 | # If not cross compiling, check that we can run a simple program. |
4416 | if test "$cross_compiling" != yes; then | |
4417 | if { ac_try='./$ac_file' | |
cd9a469c | 4418 | { { case "(($ac_try" in |
4419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4420 | *) ac_try_echo=$ac_try;; | |
4421 | esac | |
4422 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4423 | $as_echo "$ac_try_echo"; } >&5 | |
4424 | (eval "$ac_try") 2>&5 | |
b30fcfae | 4425 | ac_status=$? |
cd9a469c | 4426 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4427 | test $ac_status = 0; }; }; then | |
b30fcfae | 4428 | cross_compiling=no |
4429 | else | |
4430 | if test "$cross_compiling" = maybe; then | |
4431 | cross_compiling=yes | |
4432 | else | |
cd9a469c | 4433 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4434 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4435 | as_fn_error "cannot run C compiled programs. | |
b30fcfae | 4436 | If you meant to cross compile, use \`--host'. |
cd9a469c | 4437 | See \`config.log' for more details." "$LINENO" 5; } |
b30fcfae | 4438 | fi |
4439 | fi | |
4440 | fi | |
cd9a469c | 4441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4442 | $as_echo "yes" >&6; } | |
b30fcfae | 4443 | |
cd9a469c | 4444 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
b30fcfae | 4445 | ac_clean_files=$ac_clean_files_save |
cd9a469c | 4446 | # Check that the compiler produces executables we can run. If not, either |
b30fcfae | 4447 | # the compiler is broken, or we cross compile. |
cd9a469c | 4448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4449 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4451 | $as_echo "$cross_compiling" >&6; } | |
4452 | ||
4453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4454 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4455 | if { { ac_try="$ac_link" | |
4456 | case "(($ac_try" in | |
4457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4458 | *) ac_try_echo=$ac_try;; | |
4459 | esac | |
4460 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4461 | $as_echo "$ac_try_echo"; } >&5 | |
4462 | (eval "$ac_link") 2>&5 | |
b30fcfae | 4463 | ac_status=$? |
cd9a469c | 4464 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4465 | test $ac_status = 0; }; then : | |
b30fcfae | 4466 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4467 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4468 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4469 | # `rm'. | |
4470 | for ac_file in conftest.exe conftest conftest.*; do | |
4471 | test -f "$ac_file" || continue | |
4472 | case $ac_file in | |
cd9a469c | 4473 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b30fcfae | 4474 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b30fcfae | 4475 | break;; |
4476 | * ) break;; | |
4477 | esac | |
4478 | done | |
ae48753c | 4479 | else |
cd9a469c | 4480 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4481 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4482 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4483 | See \`config.log' for more details." "$LINENO" 5; } | |
b30fcfae | 4484 | fi |
b30fcfae | 4485 | rm -f conftest$ac_cv_exeext |
cd9a469c | 4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4487 | $as_echo "$ac_cv_exeext" >&6; } | |
b30fcfae | 4488 | |
4489 | rm -f conftest.$ac_ext | |
4490 | EXEEXT=$ac_cv_exeext | |
4491 | ac_exeext=$EXEEXT | |
cd9a469c | 4492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4493 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4494 | if test "${ac_cv_objext+set}" = set; then : | |
4495 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 4496 | else |
cd9a469c | 4497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4498 | /* end confdefs.h. */ |
4499 | ||
4500 | int | |
4501 | main () | |
4502 | { | |
4503 | ||
4504 | ; | |
4505 | return 0; | |
4506 | } | |
4507 | _ACEOF | |
4508 | rm -f conftest.o conftest.obj | |
cd9a469c | 4509 | if { { ac_try="$ac_compile" |
4510 | case "(($ac_try" in | |
4511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4512 | *) ac_try_echo=$ac_try;; | |
4513 | esac | |
4514 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4515 | $as_echo "$ac_try_echo"; } >&5 | |
4516 | (eval "$ac_compile") 2>&5 | |
b30fcfae | 4517 | ac_status=$? |
cd9a469c | 4518 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4519 | test $ac_status = 0; }; then : | |
4520 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4521 | test -f "$ac_file" || continue; | |
b30fcfae | 4522 | case $ac_file in |
cd9a469c | 4523 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b30fcfae | 4524 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4525 | break;; | |
4526 | esac | |
4527 | done | |
4528 | else | |
cd9a469c | 4529 | $as_echo "$as_me: failed program was:" >&5 |
b30fcfae | 4530 | sed 's/^/| /' conftest.$ac_ext >&5 |
4531 | ||
cd9a469c | 4532 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4533 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4534 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4535 | See \`config.log' for more details." "$LINENO" 5; } | |
b30fcfae | 4536 | fi |
b30fcfae | 4537 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4538 | fi | |
cd9a469c | 4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4540 | $as_echo "$ac_cv_objext" >&6; } | |
b30fcfae | 4541 | OBJEXT=$ac_cv_objext |
4542 | ac_objext=$OBJEXT | |
cd9a469c | 4543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4544 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4545 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4546 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 4547 | else |
cd9a469c | 4548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4549 | /* end confdefs.h. */ |
4550 | ||
4551 | int | |
4552 | main () | |
4553 | { | |
4554 | #ifndef __GNUC__ | |
4555 | choke me | |
4556 | #endif | |
4557 | ||
4558 | ; | |
4559 | return 0; | |
4560 | } | |
4561 | _ACEOF | |
cd9a469c | 4562 | if ac_fn_c_try_compile "$LINENO"; then : |
b30fcfae | 4563 | ac_compiler_gnu=yes |
4564 | else | |
cd9a469c | 4565 | ac_compiler_gnu=no |
b30fcfae | 4566 | fi |
cd9a469c | 4567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b30fcfae | 4568 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4569 | ||
4570 | fi | |
cd9a469c | 4571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4572 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4573 | if test $ac_compiler_gnu = yes; then | |
4574 | GCC=yes | |
4575 | else | |
4576 | GCC= | |
4577 | fi | |
b30fcfae | 4578 | ac_test_CFLAGS=${CFLAGS+set} |
4579 | ac_save_CFLAGS=$CFLAGS | |
cd9a469c | 4580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4581 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4582 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4583 | $as_echo_n "(cached) " >&6 | |
4584 | else | |
4585 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4586 | ac_c_werror_flag=yes | |
4587 | ac_cv_prog_cc_g=no | |
4588 | CFLAGS="-g" | |
4589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b30fcfae | 4590 | /* end confdefs.h. */ |
4591 | ||
4592 | int | |
4593 | main () | |
4594 | { | |
4595 | ||
4596 | ; | |
4597 | return 0; | |
4598 | } | |
4599 | _ACEOF | |
cd9a469c | 4600 | if ac_fn_c_try_compile "$LINENO"; then : |
8e1fea1a | 4601 | ac_cv_prog_cc_g=yes |
4602 | else | |
cd9a469c | 4603 | CFLAGS="" |
4604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4605 | /* end confdefs.h. */ | |
4606 | ||
4607 | int | |
4608 | main () | |
4609 | { | |
4610 | ||
4611 | ; | |
4612 | return 0; | |
4613 | } | |
4614 | _ACEOF | |
4615 | if ac_fn_c_try_compile "$LINENO"; then : | |
4616 | ||
4617 | else | |
4618 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4619 | CFLAGS="-g" | |
4620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4621 | /* end confdefs.h. */ | |
ae48753c | 4622 | |
cd9a469c | 4623 | int |
4624 | main () | |
4625 | { | |
4626 | ||
4627 | ; | |
4628 | return 0; | |
4629 | } | |
4630 | _ACEOF | |
4631 | if ac_fn_c_try_compile "$LINENO"; then : | |
4632 | ac_cv_prog_cc_g=yes | |
4633 | fi | |
4634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a83ffacf | 4635 | fi |
cd9a469c | 4636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b30fcfae | 4637 | fi |
cd9a469c | 4638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4639 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4640 | fi | |
4641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4642 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
8e1fea1a | 4643 | if test "$ac_test_CFLAGS" = set; then |
b30fcfae | 4644 | CFLAGS=$ac_save_CFLAGS |
8e1fea1a | 4645 | elif test $ac_cv_prog_cc_g = yes; then |
4646 | if test "$GCC" = yes; then | |
4647 | CFLAGS="-g -O2" | |
4648 | else | |
4649 | CFLAGS="-g" | |
4650 | fi | |
4651 | else | |
4652 | if test "$GCC" = yes; then | |
4653 | CFLAGS="-O2" | |
4654 | else | |
4655 | CFLAGS= | |
4656 | fi | |
4657 | fi | |
cd9a469c | 4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4659 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4660 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4661 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 4662 | else |
cd9a469c | 4663 | ac_cv_prog_cc_c89=no |
b30fcfae | 4664 | ac_save_CC=$CC |
cd9a469c | 4665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4666 | /* end confdefs.h. */ |
4667 | #include <stdarg.h> | |
4668 | #include <stdio.h> | |
4669 | #include <sys/types.h> | |
4670 | #include <sys/stat.h> | |
4671 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4672 | struct buf { int x; }; | |
4673 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4674 | static char *e (p, i) | |
4675 | char **p; | |
4676 | int i; | |
4677 | { | |
4678 | return p[i]; | |
4679 | } | |
4680 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4681 | { | |
4682 | char *s; | |
4683 | va_list v; | |
4684 | va_start (v,p); | |
4685 | s = g (p, va_arg (v,int)); | |
4686 | va_end (v); | |
4687 | return s; | |
4688 | } | |
4689 | ||
4690 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4691 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4692 | These don't provoke an error unfortunately, instead are silently treated | |
cd9a469c | 4693 | as 'x'. The following induces an error, until -std is added to get |
b30fcfae | 4694 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4695 | array size at least. It's necessary to write '\x00'==0 to get something | |
cd9a469c | 4696 | that's true only with -std. */ |
b30fcfae | 4697 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4698 | ||
cd9a469c | 4699 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4700 | inside strings and character constants. */ | |
4701 | #define FOO(x) 'x' | |
4702 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4703 | ||
b30fcfae | 4704 | int test (int i, double x); |
4705 | struct s1 {int (*f) (int a);}; | |
4706 | struct s2 {int (*f) (double a);}; | |
4707 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4708 | int argc; | |
4709 | char **argv; | |
4710 | int | |
4711 | main () | |
4712 | { | |
4713 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4714 | ; | |
4715 | return 0; | |
4716 | } | |
4717 | _ACEOF | |
cd9a469c | 4718 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4719 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b30fcfae | 4720 | do |
4721 | CC="$ac_save_CC $ac_arg" | |
cd9a469c | 4722 | if ac_fn_c_try_compile "$LINENO"; then : |
4723 | ac_cv_prog_cc_c89=$ac_arg | |
b30fcfae | 4724 | fi |
cd9a469c | 4725 | rm -f core conftest.err conftest.$ac_objext |
4726 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b30fcfae | 4727 | done |
cd9a469c | 4728 | rm -f conftest.$ac_ext |
b30fcfae | 4729 | CC=$ac_save_CC |
4730 | ||
4731 | fi | |
cd9a469c | 4732 | # AC_CACHE_VAL |
4733 | case "x$ac_cv_prog_cc_c89" in | |
4734 | x) | |
4735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4736 | $as_echo "none needed" >&6; } ;; | |
4737 | xno) | |
4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4739 | $as_echo "unsupported" >&6; } ;; | |
b30fcfae | 4740 | *) |
cd9a469c | 4741 | CC="$CC $ac_cv_prog_cc_c89" |
4742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4743 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b30fcfae | 4744 | esac |
cd9a469c | 4745 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b30fcfae | 4746 | |
5084f823 | 4747 | fi |
4748 | ||
5084f823 | 4749 | ac_ext=c |
4750 | ac_cpp='$CPP $CPPFLAGS' | |
4751 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4752 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4753 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4754 | ||
cd9a469c | 4755 | ac_ext=cpp |
5084f823 | 4756 | ac_cpp='$CXXCPP $CPPFLAGS' |
4757 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4758 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4759 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
cd9a469c | 4760 | if test -z "$CXX"; then |
4761 | if test -n "$CCC"; then | |
4762 | CXX=$CCC | |
4763 | else | |
4764 | if test -n "$ac_tool_prefix"; then | |
4765 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5084f823 | 4766 | do |
4767 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4768 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 4769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4770 | $as_echo_n "checking for $ac_word... " >&6; } | |
4771 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4772 | $as_echo_n "(cached) " >&6 | |
5084f823 | 4773 | else |
4774 | if test -n "$CXX"; then | |
4775 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4776 | else | |
4777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4778 | for as_dir in $PATH | |
4779 | do | |
4780 | IFS=$as_save_IFS | |
4781 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4782 | for ac_exec_ext in '' $ac_executable_extensions; do |
4783 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5084f823 | 4784 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
cd9a469c | 4785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5084f823 | 4786 | break 2 |
4787 | fi | |
4788 | done | |
cd9a469c | 4789 | done |
4790 | IFS=$as_save_IFS | |
8e1fea1a | 4791 | |
eae5b2bc | 4792 | fi |
4793 | fi | |
4794 | CXX=$ac_cv_prog_CXX | |
4795 | if test -n "$CXX"; then | |
cd9a469c | 4796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4797 | $as_echo "$CXX" >&6; } | |
eae5b2bc | 4798 | else |
cd9a469c | 4799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4800 | $as_echo "no" >&6; } | |
eae5b2bc | 4801 | fi |
4802 | ||
cd9a469c | 4803 | |
eae5b2bc | 4804 | test -n "$CXX" && break |
4805 | done | |
4806 | fi | |
4807 | if test -z "$CXX"; then | |
4808 | ac_ct_CXX=$CXX | |
cd9a469c | 4809 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
eae5b2bc | 4810 | do |
4811 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4812 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 4813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4814 | $as_echo_n "checking for $ac_word... " >&6; } | |
4815 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4816 | $as_echo_n "(cached) " >&6 | |
eae5b2bc | 4817 | else |
4818 | if test -n "$ac_ct_CXX"; then | |
4819 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4820 | else | |
4821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4822 | for as_dir in $PATH | |
4823 | do | |
4824 | IFS=$as_save_IFS | |
4825 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4826 | for ac_exec_ext in '' $ac_executable_extensions; do |
4827 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
eae5b2bc | 4828 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
cd9a469c | 4829 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
eae5b2bc | 4830 | break 2 |
4831 | fi | |
4832 | done | |
cd9a469c | 4833 | done |
4834 | IFS=$as_save_IFS | |
eae5b2bc | 4835 | |
4836 | fi | |
4837 | fi | |
4838 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4839 | if test -n "$ac_ct_CXX"; then | |
cd9a469c | 4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4841 | $as_echo "$ac_ct_CXX" >&6; } | |
eae5b2bc | 4842 | else |
cd9a469c | 4843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4844 | $as_echo "no" >&6; } | |
eae5b2bc | 4845 | fi |
4846 | ||
cd9a469c | 4847 | |
eae5b2bc | 4848 | test -n "$ac_ct_CXX" && break |
4849 | done | |
eae5b2bc | 4850 | |
cd9a469c | 4851 | if test "x$ac_ct_CXX" = x; then |
4852 | CXX="g++" | |
4853 | else | |
4854 | case $cross_compiling:$ac_tool_warned in | |
4855 | yes:) | |
4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4857 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4858 | ac_tool_warned=yes ;; | |
4859 | esac | |
4860 | CXX=$ac_ct_CXX | |
4861 | fi | |
eae5b2bc | 4862 | fi |
4863 | ||
cd9a469c | 4864 | fi |
4865 | fi | |
eae5b2bc | 4866 | # Provide some information about the compiler. |
cd9a469c | 4867 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4868 | set X $ac_compile | |
4869 | ac_compiler=$2 | |
4870 | for ac_option in --version -v -V -qversion; do | |
4871 | { { ac_try="$ac_compiler $ac_option >&5" | |
4872 | case "(($ac_try" in | |
4873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4874 | *) ac_try_echo=$ac_try;; | |
4875 | esac | |
4876 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4877 | $as_echo "$ac_try_echo"; } >&5 | |
4878 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
eae5b2bc | 4879 | ac_status=$? |
cd9a469c | 4880 | if test -s conftest.err; then |
4881 | sed '10a\ | |
4882 | ... rest of stderr output deleted ... | |
4883 | 10q' conftest.err >conftest.er1 | |
4884 | cat conftest.er1 >&5 | |
4885 | rm -f conftest.er1 conftest.err | |
4886 | fi | |
4887 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4888 | test $ac_status = 0; } | |
4889 | done | |
eae5b2bc | 4890 | |
cd9a469c | 4891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4892 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4893 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4894 | $as_echo_n "(cached) " >&6 | |
eae5b2bc | 4895 | else |
cd9a469c | 4896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eae5b2bc | 4897 | /* end confdefs.h. */ |
4898 | ||
4899 | int | |
4900 | main () | |
4901 | { | |
4902 | #ifndef __GNUC__ | |
4903 | choke me | |
4904 | #endif | |
4905 | ||
4906 | ; | |
4907 | return 0; | |
4908 | } | |
4909 | _ACEOF | |
cd9a469c | 4910 | if ac_fn_cxx_try_compile "$LINENO"; then : |
eae5b2bc | 4911 | ac_compiler_gnu=yes |
4912 | else | |
cd9a469c | 4913 | ac_compiler_gnu=no |
eae5b2bc | 4914 | fi |
cd9a469c | 4915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
eae5b2bc | 4916 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4917 | ||
4918 | fi | |
cd9a469c | 4919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4920 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4921 | if test $ac_compiler_gnu = yes; then | |
4922 | GXX=yes | |
4923 | else | |
4924 | GXX= | |
4925 | fi | |
eae5b2bc | 4926 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4927 | ac_save_CXXFLAGS=$CXXFLAGS | |
cd9a469c | 4928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4929 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4930 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4931 | $as_echo_n "(cached) " >&6 | |
4932 | else | |
4933 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4934 | ac_cxx_werror_flag=yes | |
4935 | ac_cv_prog_cxx_g=no | |
4936 | CXXFLAGS="-g" | |
4937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eae5b2bc | 4938 | /* end confdefs.h. */ |
4939 | ||
4940 | int | |
4941 | main () | |
4942 | { | |
4943 | ||
4944 | ; | |
4945 | return 0; | |
4946 | } | |
4947 | _ACEOF | |
cd9a469c | 4948 | if ac_fn_cxx_try_compile "$LINENO"; then : |
eae5b2bc | 4949 | ac_cv_prog_cxx_g=yes |
4950 | else | |
cd9a469c | 4951 | CXXFLAGS="" |
4952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eae5b2bc | 4953 | /* end confdefs.h. */ |
cd9a469c | 4954 | |
eae5b2bc | 4955 | int |
4956 | main () | |
4957 | { | |
cd9a469c | 4958 | |
eae5b2bc | 4959 | ; |
4960 | return 0; | |
4961 | } | |
4962 | _ACEOF | |
cd9a469c | 4963 | if ac_fn_cxx_try_compile "$LINENO"; then : |
2f8725b0 | 4964 | |
cd9a469c | 4965 | else |
4966 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4967 | CXXFLAGS="-g" | |
4968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eae5b2bc | 4969 | /* end confdefs.h. */ |
cd9a469c | 4970 | |
eae5b2bc | 4971 | int |
4972 | main () | |
4973 | { | |
cd9a469c | 4974 | |
eae5b2bc | 4975 | ; |
4976 | return 0; | |
4977 | } | |
4978 | _ACEOF | |
cd9a469c | 4979 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4980 | ac_cv_prog_cxx_g=yes | |
570af75a | 4981 | fi |
cd9a469c | 4982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4983 | fi | |
4984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4985 | fi | |
4986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4987 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4988 | fi | |
4989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4990 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4991 | if test "$ac_test_CXXFLAGS" = set; then | |
4992 | CXXFLAGS=$ac_save_CXXFLAGS | |
4993 | elif test $ac_cv_prog_cxx_g = yes; then | |
4994 | if test "$GXX" = yes; then | |
4995 | CXXFLAGS="-g -O2" | |
4996 | else | |
4997 | CXXFLAGS="-g" | |
4998 | fi | |
4999 | else | |
5000 | if test "$GXX" = yes; then | |
5001 | CXXFLAGS="-O2" | |
5002 | else | |
5003 | CXXFLAGS= | |
5004 | fi | |
eae5b2bc | 5005 | fi |
eae5b2bc | 5006 | ac_ext=c |
5007 | ac_cpp='$CPP $CPPFLAGS' | |
5008 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5009 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5010 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5011 | ||
5012 | ||
5013 | # We must set the default linker to the linker used by gcc for the correct | |
5014 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5015 | # set the LD default to the ld used by gcc. | |
5016 | if test -z "$LD"; then | |
5017 | if test "$GCC" = yes; then | |
5018 | case $build in | |
5019 | *-*-mingw*) | |
5020 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5021 | *) | |
5022 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5023 | esac | |
5024 | case $gcc_prog_ld in | |
5025 | # Accept absolute paths. | |
5026 | [\\/]* | [A-Za-z]:[\\/]*) | |
5027 | LD="$gcc_prog_ld" ;; | |
5028 | esac | |
5029 | fi | |
2f8725b0 | 5030 | fi |
5031 | ||
13687c85 | 5032 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5033 | have_static_libs=no | |
5034 | if test "$GCC" = yes; then | |
5035 | saved_LDFLAGS="$LDFLAGS" | |
5036 | ||
5037 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5039 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5040 | ac_ext=cpp | |
5041 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5042 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5043 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5044 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5045 | ||
5046 | ||
5047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5048 | /* end confdefs.h. */ | |
74f1ea54 | 5049 | |
5050 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5051 | #error -static-libstdc++ not implemented | |
5052 | #endif | |
13687c85 | 5053 | int main() {} |
5054 | _ACEOF | |
5055 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5057 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5058 | else | |
5059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5060 | $as_echo "no" >&6; } | |
5061 | fi | |
5062 | rm -f core conftest.err conftest.$ac_objext \ | |
5063 | conftest$ac_exeext conftest.$ac_ext | |
5064 | ac_ext=c | |
5065 | ac_cpp='$CPP $CPPFLAGS' | |
5066 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5067 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5068 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5069 | ||
5070 | ||
5071 | LDFLAGS="$saved_LDFLAGS" | |
5072 | fi | |
5073 | ||
2f8725b0 | 5074 | |
5075 | ||
8e1fea1a | 5076 | |
b30fcfae | 5077 | if test -n "$ac_tool_prefix"; then |
5078 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
8e1fea1a | 5079 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
cd9a469c | 5080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5081 | $as_echo_n "checking for $ac_word... " >&6; } | |
5082 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
5083 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 5084 | else |
5085 | if test -n "$GNATBIND"; then | |
5086 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5087 | else | |
b30fcfae | 5088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5089 | for as_dir in $PATH | |
5090 | do | |
5091 | IFS=$as_save_IFS | |
5092 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5093 | for ac_exec_ext in '' $ac_executable_extensions; do |
5094 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 5095 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
cd9a469c | 5096 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5097 | break 2 |
5098 | fi | |
5099 | done | |
cd9a469c | 5100 | done |
5101 | IFS=$as_save_IFS | |
b30fcfae | 5102 | |
8e1fea1a | 5103 | fi |
5104 | fi | |
b30fcfae | 5105 | GNATBIND=$ac_cv_prog_GNATBIND |
8e1fea1a | 5106 | if test -n "$GNATBIND"; then |
cd9a469c | 5107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5108 | $as_echo "$GNATBIND" >&6; } | |
8e1fea1a | 5109 | else |
cd9a469c | 5110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5111 | $as_echo "no" >&6; } | |
8e1fea1a | 5112 | fi |
5113 | ||
cd9a469c | 5114 | |
b30fcfae | 5115 | fi |
8e1fea1a | 5116 | if test -z "$ac_cv_prog_GNATBIND"; then |
b30fcfae | 5117 | ac_ct_GNATBIND=$GNATBIND |
8e1fea1a | 5118 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5119 | set dummy gnatbind; ac_word=$2 | |
cd9a469c | 5120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5121 | $as_echo_n "checking for $ac_word... " >&6; } | |
5122 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
5123 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 5124 | else |
b30fcfae | 5125 | if test -n "$ac_ct_GNATBIND"; then |
5126 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
8e1fea1a | 5127 | else |
b30fcfae | 5128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5129 | for as_dir in $PATH | |
5130 | do | |
5131 | IFS=$as_save_IFS | |
5132 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5133 | for ac_exec_ext in '' $ac_executable_extensions; do |
5134 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 5135 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
cd9a469c | 5136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5137 | break 2 |
5138 | fi | |
5139 | done | |
cd9a469c | 5140 | done |
5141 | IFS=$as_save_IFS | |
b30fcfae | 5142 | |
8e1fea1a | 5143 | fi |
5144 | fi | |
b30fcfae | 5145 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5146 | if test -n "$ac_ct_GNATBIND"; then | |
cd9a469c | 5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5148 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
8e1fea1a | 5149 | else |
cd9a469c | 5150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5151 | $as_echo "no" >&6; } | |
8e1fea1a | 5152 | fi |
5153 | ||
cd9a469c | 5154 | if test "x$ac_ct_GNATBIND" = x; then |
5155 | GNATBIND="no" | |
5156 | else | |
5157 | case $cross_compiling:$ac_tool_warned in | |
5158 | yes:) | |
5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5160 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5161 | ac_tool_warned=yes ;; | |
5162 | esac | |
5163 | GNATBIND=$ac_ct_GNATBIND | |
5164 | fi | |
8e1fea1a | 5165 | else |
b30fcfae | 5166 | GNATBIND="$ac_cv_prog_GNATBIND" |
8e1fea1a | 5167 | fi |
5168 | ||
b30fcfae | 5169 | if test -n "$ac_tool_prefix"; then |
5170 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
a18b2c54 | 5171 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
cd9a469c | 5172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5173 | $as_echo_n "checking for $ac_word... " >&6; } | |
5174 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
5175 | $as_echo_n "(cached) " >&6 | |
a18b2c54 | 5176 | else |
5177 | if test -n "$GNATMAKE"; then | |
5178 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5179 | else | |
b30fcfae | 5180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5181 | for as_dir in $PATH | |
5182 | do | |
5183 | IFS=$as_save_IFS | |
5184 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5185 | for ac_exec_ext in '' $ac_executable_extensions; do |
5186 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 5187 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
cd9a469c | 5188 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5189 | break 2 |
5190 | fi | |
5191 | done | |
cd9a469c | 5192 | done |
5193 | IFS=$as_save_IFS | |
b30fcfae | 5194 | |
a18b2c54 | 5195 | fi |
5196 | fi | |
b30fcfae | 5197 | GNATMAKE=$ac_cv_prog_GNATMAKE |
a18b2c54 | 5198 | if test -n "$GNATMAKE"; then |
cd9a469c | 5199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5200 | $as_echo "$GNATMAKE" >&6; } | |
a18b2c54 | 5201 | else |
cd9a469c | 5202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5203 | $as_echo "no" >&6; } | |
a18b2c54 | 5204 | fi |
5205 | ||
cd9a469c | 5206 | |
b30fcfae | 5207 | fi |
a18b2c54 | 5208 | if test -z "$ac_cv_prog_GNATMAKE"; then |
b30fcfae | 5209 | ac_ct_GNATMAKE=$GNATMAKE |
a18b2c54 | 5210 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5211 | set dummy gnatmake; ac_word=$2 | |
cd9a469c | 5212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5213 | $as_echo_n "checking for $ac_word... " >&6; } | |
5214 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
5215 | $as_echo_n "(cached) " >&6 | |
a18b2c54 | 5216 | else |
b30fcfae | 5217 | if test -n "$ac_ct_GNATMAKE"; then |
5218 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
a18b2c54 | 5219 | else |
b30fcfae | 5220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5221 | for as_dir in $PATH | |
5222 | do | |
5223 | IFS=$as_save_IFS | |
5224 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5225 | for ac_exec_ext in '' $ac_executable_extensions; do |
5226 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 5227 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
cd9a469c | 5228 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5229 | break 2 |
5230 | fi | |
5231 | done | |
cd9a469c | 5232 | done |
5233 | IFS=$as_save_IFS | |
b30fcfae | 5234 | |
a18b2c54 | 5235 | fi |
5236 | fi | |
b30fcfae | 5237 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5238 | if test -n "$ac_ct_GNATMAKE"; then | |
cd9a469c | 5239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5240 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
a18b2c54 | 5241 | else |
cd9a469c | 5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5243 | $as_echo "no" >&6; } | |
a18b2c54 | 5244 | fi |
5245 | ||
cd9a469c | 5246 | if test "x$ac_ct_GNATMAKE" = x; then |
5247 | GNATMAKE="no" | |
5248 | else | |
5249 | case $cross_compiling:$ac_tool_warned in | |
5250 | yes:) | |
5251 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5252 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5253 | ac_tool_warned=yes ;; | |
5254 | esac | |
5255 | GNATMAKE=$ac_ct_GNATMAKE | |
5256 | fi | |
a18b2c54 | 5257 | else |
b30fcfae | 5258 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
a18b2c54 | 5259 | fi |
5260 | ||
cd9a469c | 5261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5262 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
5263 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
5264 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 5265 | else |
5266 | cat >conftest.adb <<EOF | |
5267 | procedure conftest is begin null; end conftest; | |
5268 | EOF | |
5269 | acx_cv_cc_gcc_supports_ada=no | |
5270 | # There is a bug in old released versions of GCC which causes the | |
5271 | # driver to exit successfully when the appropriate language module | |
5272 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5273 | # Therefore we must check for the error message as well as an | |
5274 | # unsuccessful exit. | |
216de822 | 5275 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5276 | # given a .adb file, but produce no object file. So we must check | |
5277 | # if an object file was really produced to guard against this. | |
8e1fea1a | 5278 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
216de822 | 5279 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
8e1fea1a | 5280 | acx_cv_cc_gcc_supports_ada=yes |
8e1fea1a | 5281 | fi |
5282 | rm -f conftest.* | |
5283 | fi | |
cd9a469c | 5284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5285 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
8e1fea1a | 5286 | |
9d5fd7d0 | 5287 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
8e1fea1a | 5288 | have_gnat=yes |
5289 | else | |
5290 | have_gnat=no | |
5291 | fi | |
5292 | ||
cd9a469c | 5293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5294 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5295 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5296 | $as_echo_n "(cached) " >&6 | |
7bcc3b4a | 5297 | else |
5298 | echo abfoo >t1 | |
5299 | echo cdfoo >t2 | |
5300 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
697dfd2c | 5301 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5302 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5303 | : | |
5304 | else | |
5305 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5306 | fi | |
5307 | fi | |
7bcc3b4a | 5308 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5309 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
697dfd2c | 5310 | : |
7bcc3b4a | 5311 | else |
5312 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5313 | fi | |
5314 | fi | |
5315 | rm t1 t2 | |
5316 | ||
5317 | fi | |
cd9a469c | 5318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5319 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
7bcc3b4a | 5320 | do_compare="$gcc_cv_prog_cmp_skip" |
5321 | ||
5322 | ||
8e1fea1a | 5323 | |
6c59dfa4 | 5324 | # Check whether --enable-bootstrap was given. |
5325 | if test "${enable_bootstrap+set}" = set; then : | |
5326 | enableval=$enable_bootstrap; | |
5327 | else | |
5328 | enable_bootstrap=default | |
5329 | fi | |
5330 | ||
5331 | ||
5332 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
d7c9b4c1 | 5333 | if test -r $srcdir/gcc/configure; then |
5334 | have_compiler=yes | |
5335 | else | |
5336 | have_compiler=no | |
5337 | fi | |
6c59dfa4 | 5338 | |
5339 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5340 | *:*:*:no) ;; | |
5341 | ||
5342 | # Default behavior. Enable bootstrap if we have a compiler | |
5343 | # and we are in a native configuration. | |
5344 | yes:$build:$build:default) | |
5345 | enable_bootstrap=yes ;; | |
5346 | ||
5347 | *:*:*:default) | |
5348 | enable_bootstrap=no ;; | |
5349 | ||
5350 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5351 | yes:$build:$build:yes) | |
5352 | ;; | |
5353 | ||
5354 | # Other configurations, but we have a compiler. Assume the user knows | |
5355 | # what he's doing. | |
5356 | yes:*:*:yes) | |
5357 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5358 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5359 | ;; | |
5360 | ||
5361 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5362 | no:*:*:yes) | |
5363 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5364 | ||
5365 | # Fail if wrong command line | |
5366 | *) | |
5367 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5368 | ;; | |
5369 | esac | |
5370 | ||
c3fc6a63 | 5371 | # Used for setting $lt_cv_objdir |
5372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5373 | $as_echo_n "checking for objdir... " >&6; } | |
5374 | if test "${lt_cv_objdir+set}" = set; then : | |
5375 | $as_echo_n "(cached) " >&6 | |
5376 | else | |
5377 | rm -f .libs 2>/dev/null | |
5378 | mkdir .libs 2>/dev/null | |
5379 | if test -d .libs; then | |
5380 | lt_cv_objdir=.libs | |
5381 | else | |
5382 | # MS-DOS does not allow filenames that begin with a dot. | |
5383 | lt_cv_objdir=_libs | |
5384 | fi | |
5385 | rmdir .libs 2>/dev/null | |
5386 | fi | |
5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5388 | $as_echo "$lt_cv_objdir" >&6; } | |
5389 | objdir=$lt_cv_objdir | |
5390 | ||
5391 | ||
5392 | ||
5393 | ||
5394 | ||
5395 | cat >>confdefs.h <<_ACEOF | |
5396 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5397 | _ACEOF | |
5398 | ||
5399 | ||
5400 | ||
7601a55c | 5401 | # Check for GMP, MPFR and MPC |
16de6a81 | 5402 | gmplibs="-lmpc -lmpfr -lgmp" |
4ee9c684 | 5403 | gmpinc= |
d45318b3 | 5404 | have_gmp=no |
7601a55c | 5405 | |
5406 | # Specify a location for mpc | |
5407 | # check for this first so it ends up on the link line before mpfr. | |
5408 | ||
cd9a469c | 5409 | # Check whether --with-mpc was given. |
5410 | if test "${with_mpc+set}" = set; then : | |
5411 | withval=$with_mpc; | |
5412 | fi | |
7601a55c | 5413 | |
7601a55c | 5414 | |
73f813e1 | 5415 | # Check whether --with-mpc-include was given. |
cd9a469c | 5416 | if test "${with_mpc_include+set}" = set; then : |
5417 | withval=$with_mpc_include; | |
5418 | fi | |
7601a55c | 5419 | |
7601a55c | 5420 | |
73f813e1 | 5421 | # Check whether --with-mpc-lib was given. |
cd9a469c | 5422 | if test "${with_mpc_lib+set}" = set; then : |
5423 | withval=$with_mpc_lib; | |
5424 | fi | |
7601a55c | 5425 | |
7601a55c | 5426 | |
5427 | if test "x$with_mpc" != x; then | |
16de6a81 | 5428 | gmplibs="-L$with_mpc/lib $gmplibs" |
5429 | gmpinc="-I$with_mpc/include $gmpinc" | |
7601a55c | 5430 | fi |
5431 | if test "x$with_mpc_include" != x; then | |
16de6a81 | 5432 | gmpinc="-I$with_mpc_include $gmpinc" |
7601a55c | 5433 | fi |
5434 | if test "x$with_mpc_lib" != x; then | |
16de6a81 | 5435 | gmplibs="-L$with_mpc_lib $gmplibs" |
7601a55c | 5436 | fi |
5437 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
c3fc6a63 | 5438 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
16de6a81 | 5439 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
7601a55c | 5440 | # Do not test the mpc version. Assume that it is sufficient, since |
5441 | # it is in the source tree, and the library has not been built yet | |
5442 | # but it would be included on the link line in the version check below | |
5443 | # hence making the test fail. | |
16de6a81 | 5444 | have_gmp=yes |
7601a55c | 5445 | fi |
d45318b3 | 5446 | |
5ca838b8 | 5447 | # Specify a location for mpfr |
5448 | # check for this first so it ends up on the link line before gmp. | |
b30fcfae | 5449 | |
cd9a469c | 5450 | # Check whether --with-mpfr-dir was given. |
5451 | if test "${with_mpfr_dir+set}" = set; then : | |
5452 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5453 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5454 | fi | |
5455 | ||
5ca838b8 | 5456 | |
5457 | ||
cd9a469c | 5458 | # Check whether --with-mpfr was given. |
5459 | if test "${with_mpfr+set}" = set; then : | |
5460 | withval=$with_mpfr; | |
5461 | fi | |
b30fcfae | 5462 | |
5ca838b8 | 5463 | |
73f813e1 | 5464 | # Check whether --with-mpfr-include was given. |
cd9a469c | 5465 | if test "${with_mpfr_include+set}" = set; then : |
5466 | withval=$with_mpfr_include; | |
5467 | fi | |
b30fcfae | 5468 | |
a5144c1d | 5469 | |
73f813e1 | 5470 | # Check whether --with-mpfr-lib was given. |
cd9a469c | 5471 | if test "${with_mpfr_lib+set}" = set; then : |
5472 | withval=$with_mpfr_lib; | |
5473 | fi | |
a5144c1d | 5474 | |
5ca838b8 | 5475 | |
5476 | if test "x$with_mpfr" != x; then | |
5477 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
16de6a81 | 5478 | gmpinc="-I$with_mpfr/include $gmpinc" |
5ca838b8 | 5479 | fi |
a5144c1d | 5480 | if test "x$with_mpfr_include" != x; then |
16de6a81 | 5481 | gmpinc="-I$with_mpfr_include $gmpinc" |
a5144c1d | 5482 | fi |
5483 | if test "x$with_mpfr_lib" != x; then | |
5484 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5485 | fi | |
d45318b3 | 5486 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
37ca4325 | 5487 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
5488 | if test -d ${srcdir}/mpfr/src; then | |
5489 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" | |
5490 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5491 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
5492 | else | |
5493 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" | |
5494 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" | |
5495 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" | |
5496 | fi | |
d45318b3 | 5497 | # Do not test the mpfr version. Assume that it is sufficient, since |
5498 | # it is in the source tree, and the library has not been built yet | |
5499 | # but it would be included on the link line in the version check below | |
5500 | # hence making the test fail. | |
5501 | have_gmp=yes | |
5502 | fi | |
5ca838b8 | 5503 | |
4ee9c684 | 5504 | # Specify a location for gmp |
b30fcfae | 5505 | |
cd9a469c | 5506 | # Check whether --with-gmp-dir was given. |
5507 | if test "${with_gmp_dir+set}" = set; then : | |
5508 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5509 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5510 | fi | |
5511 | ||
4ee9c684 | 5512 | |
4ee9c684 | 5513 | |
cd9a469c | 5514 | # Check whether --with-gmp was given. |
5515 | if test "${with_gmp+set}" = set; then : | |
5516 | withval=$with_gmp; | |
5517 | fi | |
b30fcfae | 5518 | |
4ee9c684 | 5519 | |
73f813e1 | 5520 | # Check whether --with-gmp-include was given. |
cd9a469c | 5521 | if test "${with_gmp_include+set}" = set; then : |
5522 | withval=$with_gmp_include; | |
5523 | fi | |
b30fcfae | 5524 | |
a5144c1d | 5525 | |
73f813e1 | 5526 | # Check whether --with-gmp-lib was given. |
cd9a469c | 5527 | if test "${with_gmp_lib+set}" = set; then : |
5528 | withval=$with_gmp_lib; | |
5529 | fi | |
a5144c1d | 5530 | |
5531 | ||
4ee9c684 | 5532 | |
5ca838b8 | 5533 | if test "x$with_gmp" != x; then |
5534 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5535 | gmpinc="-I$with_gmp/include $gmpinc" | |
4ee9c684 | 5536 | fi |
a5144c1d | 5537 | if test "x$with_gmp_include" != x; then |
5538 | gmpinc="-I$with_gmp_include $gmpinc" | |
5539 | fi | |
5540 | if test "x$with_gmp_lib" != x; then | |
5541 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5542 | fi | |
d45318b3 | 5543 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
c3fc6a63 | 5544 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
d45318b3 | 5545 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
b9a8e4c4 | 5546 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
c3fc6a63 | 5547 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
e4128452 | 5548 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
d45318b3 | 5549 | # Do not test the gmp version. Assume that it is sufficient, since |
5550 | # it is in the source tree, and the library has not been built yet | |
5551 | # but it would be included on the link line in the version check below | |
5552 | # hence making the test fail. | |
5553 | have_gmp=yes | |
5554 | fi | |
4ee9c684 | 5555 | |
16c9b2e3 | 5556 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
d45318b3 | 5557 | have_gmp=yes |
5558 | saved_CFLAGS="$CFLAGS" | |
5559 | CFLAGS="$CFLAGS $gmpinc" | |
17b6993a | 5560 | # Check for the recommended and required versions of GMP. |
5561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5562 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
4fd35f21 | 5563 | |
5564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17b6993a | 5565 | /* end confdefs.h. */ |
5566 | #include "gmp.h" | |
5567 | int | |
5568 | main () | |
5569 | { | |
5570 | ||
5571 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5572 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
f819bb73 | 5573 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
17b6993a | 5574 | choke me |
5575 | #endif | |
5576 | ||
5577 | ; | |
5578 | return 0; | |
5579 | } | |
5580 | _ACEOF | |
5581 | if ac_fn_c_try_compile "$LINENO"; then : | |
4fd35f21 | 5582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 5583 | /* end confdefs.h. */ |
17b6993a | 5584 | #include <gmp.h> |
b30fcfae | 5585 | int |
5586 | main () | |
5587 | { | |
4ee9c684 | 5588 | |
17b6993a | 5589 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5590 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5591 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
d45318b3 | 5592 | choke me |
5593 | #endif | |
b30fcfae | 5594 | |
5595 | ; | |
5596 | return 0; | |
5597 | } | |
5598 | _ACEOF | |
cd9a469c | 5599 | if ac_fn_c_try_compile "$LINENO"; then : |
5600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5601 | $as_echo "yes" >&6; } | |
17b6993a | 5602 | else |
5603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5604 | $as_echo "buggy but acceptable" >&6; } | |
5605 | fi | |
5606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b30fcfae | 5607 | else |
cd9a469c | 5608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5609 | $as_echo "no" >&6; }; have_gmp=no | |
b30fcfae | 5610 | fi |
cd9a469c | 5611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4ee9c684 | 5612 | |
7601a55c | 5613 | # If we have GMP, check the MPFR version. |
d45318b3 | 5614 | if test x"$have_gmp" = xyes; then |
17b6993a | 5615 | # Check for the recommended and required versions of MPFR. |
5616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5617 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
cd9a469c | 5618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 5619 | /* end confdefs.h. */ |
6a086156 | 5620 | #include <gmp.h> |
d45318b3 | 5621 | #include <mpfr.h> |
b30fcfae | 5622 | int |
5623 | main () | |
5624 | { | |
112f3d57 | 5625 | |
cb1d9044 | 5626 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
d45318b3 | 5627 | choke me |
5628 | #endif | |
b30fcfae | 5629 | |
5630 | ; | |
5631 | return 0; | |
5632 | } | |
5633 | _ACEOF | |
cd9a469c | 5634 | if ac_fn_c_try_compile "$LINENO"; then : |
5635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b30fcfae | 5636 | /* end confdefs.h. */ |
0157cc75 | 5637 | #include <gmp.h> |
d45318b3 | 5638 | #include <mpfr.h> |
b30fcfae | 5639 | int |
5640 | main () | |
5641 | { | |
0157cc75 | 5642 | |
17b6993a | 5643 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
d45318b3 | 5644 | choke me |
5645 | #endif | |
7601a55c | 5646 | |
5647 | ; | |
5648 | return 0; | |
5649 | } | |
5650 | _ACEOF | |
cd9a469c | 5651 | if ac_fn_c_try_compile "$LINENO"; then : |
5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5653 | $as_echo "yes" >&6; } | |
7601a55c | 5654 | else |
cd9a469c | 5655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5656 | $as_echo "buggy but acceptable" >&6; } | |
7601a55c | 5657 | fi |
cd9a469c | 5658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7601a55c | 5659 | else |
cd9a469c | 5660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5661 | $as_echo "no" >&6; }; have_gmp=no | |
7601a55c | 5662 | fi |
cd9a469c | 5663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7601a55c | 5664 | fi |
5665 | ||
5666 | # Check for the MPC header version. | |
16de6a81 | 5667 | if test x"$have_gmp" = xyes ; then |
17b6993a | 5668 | # Check for the recommended and required versions of MPC. |
cd9a469c | 5669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5670 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7601a55c | 5672 | /* end confdefs.h. */ |
5673 | #include <mpc.h> | |
5674 | int | |
5675 | main () | |
5676 | { | |
5677 | ||
17b6993a | 5678 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5679 | choke me | |
5680 | #endif | |
5681 | ||
5682 | ; | |
5683 | return 0; | |
5684 | } | |
5685 | _ACEOF | |
5686 | if ac_fn_c_try_compile "$LINENO"; then : | |
5687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5688 | /* end confdefs.h. */ | |
5689 | #include <mpc.h> | |
5690 | int | |
5691 | main () | |
5692 | { | |
5693 | ||
5694 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
7601a55c | 5695 | choke me |
5696 | #endif | |
5697 | ||
5698 | ; | |
5699 | return 0; | |
5700 | } | |
5701 | _ACEOF | |
cd9a469c | 5702 | if ac_fn_c_try_compile "$LINENO"; then : |
5703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16de6a81 | 5704 | $as_echo "yes" >&6; } |
17b6993a | 5705 | else |
5706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5707 | $as_echo "buggy but acceptable" >&6; } | |
5708 | fi | |
5709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7601a55c | 5710 | else |
cd9a469c | 5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16de6a81 | 5712 | $as_echo "no" >&6; }; have_gmp=no |
7601a55c | 5713 | fi |
cd9a469c | 5714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7601a55c | 5715 | fi |
5716 | ||
5717 | # Now check the MPFR library. | |
5718 | if test x"$have_gmp" = xyes; then | |
5719 | saved_LIBS="$LIBS" | |
5720 | LIBS="$LIBS $gmplibs" | |
16de6a81 | 5721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5722 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
cd9a469c | 5723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7601a55c | 5724 | /* end confdefs.h. */ |
16de6a81 | 5725 | #include <mpc.h> |
7601a55c | 5726 | int |
5727 | main () | |
5728 | { | |
5729 | ||
5730 | mpfr_t n; | |
5731 | mpfr_t x; | |
16de6a81 | 5732 | mpc_t c; |
7601a55c | 5733 | int t; |
5734 | mpfr_init (n); | |
5735 | mpfr_init (x); | |
5736 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5737 | mpfr_erfc (n, x, GMP_RNDN); | |
5738 | mpfr_subnormalize (x, t, GMP_RNDN); | |
16de6a81 | 5739 | mpfr_clear(n); |
5740 | mpfr_clear(x); | |
5741 | mpc_init2 (c, 53); | |
5742 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5743 | mpc_cosh (c, c, MPC_RNDNN); | |
5744 | mpc_pow (c, c, c, MPC_RNDNN); | |
5745 | mpc_acosh (c, c, MPC_RNDNN); | |
5746 | mpc_clear (c); | |
b30fcfae | 5747 | |
5748 | ; | |
5749 | return 0; | |
5750 | } | |
5751 | _ACEOF | |
cd9a469c | 5752 | if ac_fn_c_try_link "$LINENO"; then : |
5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5754 | $as_echo "yes" >&6; } | |
b30fcfae | 5755 | else |
cd9a469c | 5756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5757 | $as_echo "no" >&6; }; have_gmp=no | |
b30fcfae | 5758 | fi |
cd9a469c | 5759 | rm -f core conftest.err conftest.$ac_objext \ |
5760 | conftest$ac_exeext conftest.$ac_ext | |
7601a55c | 5761 | LIBS="$saved_LIBS" |
5762 | fi | |
5763 | ||
d45318b3 | 5764 | CFLAGS="$saved_CFLAGS" |
4ee9c684 | 5765 | |
17b6993a | 5766 | # The library versions listed in the error message below should match |
5767 | # the HARD-minimums enforced above. | |
d45318b3 | 5768 | if test x$have_gmp != xyes; then |
cb1d9044 | 5769 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
16de6a81 | 5770 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5771 | their locations. Source code for these libraries can be found at | |
5772 | their respective hosting sites as well as at | |
5773 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5774 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5775 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5776 | make sure that you have installed both the libraries and the header | |
5777 | files. They may be located in separate packages." "$LINENO" 5 | |
d45318b3 | 5778 | fi |
6a086156 | 5779 | fi |
5780 | ||
7601a55c | 5781 | # Flags needed for both GMP, MPFR and/or MPC. |
5782 | ||
5783 | ||
4ee9c684 | 5784 | |
5785 | ||
5786 | ||
bff7ea4a | 5787 | |
e4128452 | 5788 | |
5bc96548 | 5789 | # Allow host libstdc++ to be specified for static linking with PPL. |
5790 | ||
cd9a469c | 5791 | # Check whether --with-host-libstdcxx was given. |
5792 | if test "${with_host_libstdcxx+set}" = set; then : | |
5793 | withval=$with_host_libstdcxx; | |
5794 | fi | |
5bc96548 | 5795 | |
5bc96548 | 5796 | |
5797 | case $with_host_libstdcxx in | |
5798 | no|yes) | |
cd9a469c | 5799 | as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5 |
5bc96548 | 5800 | ;; |
5801 | esac | |
255b6be7 | 5802 | |
13687c85 | 5803 | # Libraries to use for stage1 or when not bootstrapping. |
7ab76cec | 5804 | |
13687c85 | 5805 | # Check whether --with-stage1-libs was given. |
5806 | if test "${with_stage1_libs+set}" = set; then : | |
5807 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5808 | stage1_libs= | |
7ab76cec | 5809 | else |
13687c85 | 5810 | stage1_libs=$withval |
7ab76cec | 5811 | fi |
5812 | else | |
13687c85 | 5813 | stage1_libs=$with_host_libstdcxx |
cd9a469c | 5814 | fi |
5815 | ||
7ab76cec | 5816 | |
5817 | ||
13687c85 | 5818 | # Linker flags to use for stage1 or when not bootstrapping. |
7ab76cec | 5819 | |
13687c85 | 5820 | # Check whether --with-stage1-ldflags was given. |
5821 | if test "${with_stage1_ldflags+set}" = set; then : | |
5822 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5823 | stage1_ldflags= | |
7ab76cec | 5824 | else |
13687c85 | 5825 | stage1_ldflags=$withval |
7ab76cec | 5826 | fi |
5827 | else | |
13687c85 | 5828 | stage1_ldflags= |
5829 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5830 | # if supported. But if the user explicitly specified the libraries to use, | |
5831 | # trust that they are doing what they want. | |
5832 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5833 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5834 | fi | |
cd9a469c | 5835 | fi |
5836 | ||
7ab76cec | 5837 | |
5838 | ||
7ab76cec | 5839 | # Libraries to use for stage2 and later builds. This defaults to the |
5840 | # argument passed to --with-host-libstdcxx. | |
5841 | ||
cd9a469c | 5842 | # Check whether --with-boot-libs was given. |
5843 | if test "${with_boot_libs+set}" = set; then : | |
5844 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5110389d | 5845 | poststage1_libs= |
5846 | else | |
5847 | poststage1_libs=$withval | |
5848 | fi | |
5849 | else | |
7ab76cec | 5850 | poststage1_libs=$with_host_libstdcxx |
cd9a469c | 5851 | fi |
5852 | ||
7ab76cec | 5853 | |
5854 | ||
d6dfe18a | 5855 | # Linker flags to use for stage2 and later builds. |
5856 | ||
5857 | # Check whether --with-boot-ldflags was given. | |
5858 | if test "${with_boot_ldflags+set}" = set; then : | |
5859 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5860 | poststage1_ldflags= | |
5861 | else | |
5862 | poststage1_ldflags=$withval | |
5863 | fi | |
5864 | else | |
5865 | poststage1_ldflags= | |
7deb2d70 | 5866 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5867 | # statically. But if the user explicitly specified the libraries to | |
5868 | # use, trust that they are doing what they want. | |
5869 | if test "$poststage1_libs" = ""; then | |
d6dfe18a | 5870 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5871 | fi | |
5872 | fi | |
5873 | ||
5874 | ||
5875 | ||
572cf1f7 | 5876 | # GCC GRAPHITE dependency ISL. |
5877 | # Basic setup is inlined here, actual checks are in config/isl.m4 | |
255b6be7 | 5878 | |
5879 | ||
87e20041 | 5880 | # Check whether --with-isl was given. |
5881 | if test "${with_isl+set}" = set; then : | |
5882 | withval=$with_isl; | |
cd9a469c | 5883 | fi |
255b6be7 | 5884 | |
255b6be7 | 5885 | |
429cca51 | 5886 | # Treat --without-isl as a request to disable |
83d54ac4 | 5887 | # GRAPHITE support and skip all following checks. |
429cca51 | 5888 | if test "x$with_isl" != "xno"; then |
83d54ac4 | 5889 | # Check for ISL |
5890 | ||
5891 | ||
87e20041 | 5892 | # Check whether --with-isl-include was given. |
5893 | if test "${with_isl_include+set}" = set; then : | |
5894 | withval=$with_isl_include; | |
cd9a469c | 5895 | fi |
5896 | ||
255b6be7 | 5897 | |
87e20041 | 5898 | # Check whether --with-isl-lib was given. |
5899 | if test "${with_isl_lib+set}" = set; then : | |
5900 | withval=$with_isl_lib; | |
cd9a469c | 5901 | fi |
255b6be7 | 5902 | |
255b6be7 | 5903 | |
87e20041 | 5904 | # Check whether --enable-isl-version-check was given. |
5905 | if test "${enable_isl_version_check+set}" = set; then : | |
5906 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5907 | else | |
5908 | ENABLE_ISL_CHECK=yes | |
062b4a94 | 5909 | fi |
5910 | ||
5911 | ||
87e20041 | 5912 | # Initialize isllibs and islinc. |
5913 | case $with_isl in | |
5914 | no) | |
5915 | isllibs= | |
5916 | islinc= | |
5917 | ;; | |
5918 | "" | yes) | |
5919 | ;; | |
5920 | *) | |
5921 | isllibs="-L$with_isl/lib" | |
5922 | islinc="-I$with_isl/include" | |
5923 | ;; | |
5924 | esac | |
5925 | if test "x${with_isl_include}" != x ; then | |
5926 | islinc="-I$with_isl_include" | |
5927 | fi | |
5928 | if test "x${with_isl_lib}" != x; then | |
5929 | isllibs="-L$with_isl_lib" | |
5930 | fi | |
5931 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5932 | && test -d ${srcdir}/isl; then | |
5933 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5934 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5935 | ENABLE_ISL_CHECK=no | |
5b0131d5 | 5936 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5 |
5937 | $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;} | |
87e20041 | 5938 | fi |
062b4a94 | 5939 | |
429cca51 | 5940 | isllibs="${isllibs} -lisl" |
5941 | ||
062b4a94 | 5942 | |
062b4a94 | 5943 | |
078393c7 | 5944 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
5945 | _isl_saved_CFLAGS=$CFLAGS | |
5946 | _isl_saved_LDFLAGS=$LDFLAGS | |
5947 | _isl_saved_LIBS=$LIBS | |
5948 | ||
5949 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
5950 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}" | |
5951 | LIBS="${_isl_saved_LIBS} -lisl" | |
5952 | ||
b6de67fd | 5953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5 |
5954 | $as_echo_n "checking for compatible ISL... " >&6; } | |
5955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6ac3b11e | 5956 | /* end confdefs.h. */ |
b6de67fd | 5957 | #include <isl/val.h> |
6ac3b11e | 5958 | int |
5959 | main () | |
5960 | { | |
b6de67fd | 5961 | ; |
6ac3b11e | 5962 | ; |
5963 | return 0; | |
5964 | } | |
5965 | _ACEOF | |
5966 | if ac_fn_c_try_link "$LINENO"; then : | |
078393c7 | 5967 | gcc_cv_isl=yes |
6ac3b11e | 5968 | else |
5969 | gcc_cv_isl=no | |
5970 | fi | |
5971 | rm -f core conftest.err conftest.$ac_objext \ | |
5972 | conftest$ac_exeext conftest.$ac_ext | |
078393c7 | 5973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
5974 | $as_echo "$gcc_cv_isl" >&6; } | |
5975 | ||
5976 | CFLAGS=$_isl_saved_CFLAGS | |
5977 | LDFLAGS=$_isl_saved_LDFLAGS | |
5978 | LIBS=$_isl_saved_LIBS | |
5979 | fi | |
5980 | ||
5981 | ||
255b6be7 | 5982 | |
255b6be7 | 5983 | |
87e20041 | 5984 | |
5985 | ||
87e20041 | 5986 | if test "x${with_isl}" = xno; then |
5987 | graphite_requested=no | |
5988 | elif test "x${with_isl}" != x \ | |
5989 | || test "x${with_isl_include}" != x \ | |
5990 | || test "x${with_isl_lib}" != x ; then | |
5991 | graphite_requested=yes | |
5992 | else | |
5993 | graphite_requested=no | |
062b4a94 | 5994 | fi |
5362e323 | 5995 | |
5362e323 | 5996 | |
5997 | ||
87e20041 | 5998 | if test "${gcc_cv_isl}" = no ; then |
5999 | isllibs= | |
6000 | islinc= | |
6001 | fi | |
6002 | ||
6003 | if test "${graphite_requested}" = yes \ | |
6004 | && test "x${isllibs}" = x \ | |
6005 | && test "x${islinc}" = x ; then | |
255b6be7 | 6006 | |
87e20041 | 6007 | as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5 |
6008 | fi | |
255b6be7 | 6009 | |
a3c81e03 | 6010 | |
a3c81e03 | 6011 | fi |
6012 | ||
572cf1f7 | 6013 | # If the ISL check failed, disable builds of in-tree variant of ISL |
83d54ac4 | 6014 | if test "x$with_isl" = xno || |
83d54ac4 | 6015 | test "x$gcc_cv_isl" = xno; then |
572cf1f7 | 6016 | noconfigdirs="$noconfigdirs isl" |
83d54ac4 | 6017 | islinc= |
bacb15cb | 6018 | fi |
6019 | ||
83d54ac4 | 6020 | |
6021 | ||
6022 | ||
7bfefa9d | 6023 | # Check for LTO support. |
6024 | # Check whether --enable-lto was given. | |
6025 | if test "${enable_lto+set}" = set; then : | |
6026 | enableval=$enable_lto; enable_lto=$enableval | |
6027 | else | |
6028 | enable_lto=yes; default_enable_lto=yes | |
6029 | fi | |
6030 | ||
6031 | ||
1a4f45ec | 6032 | |
9bdbb0bc | 6033 | |
6034 | ||
6035 | target_elf=no | |
6036 | case $target in | |
6037 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
4d72c922 | 6038 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
9bdbb0bc | 6039 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*) |
6040 | target_elf=no | |
6041 | ;; | |
6042 | *) | |
6043 | target_elf=yes | |
6044 | ;; | |
6045 | esac | |
6046 | ||
6047 | if test $target_elf = yes; then : | |
25630dc7 | 6048 | # ELF platforms build the lto-plugin always. |
6049 | build_lto_plugin=yes | |
9bdbb0bc | 6050 | |
9bdbb0bc | 6051 | else |
6052 | if test x"$default_enable_lto" = x"yes" ; then | |
4ae8c98f | 6053 | case $target in |
b990d06f | 6054 | *-apple-darwin9* | *-cygwin* | *-mingw*) ;; |
25630dc7 | 6055 | # On other non-ELF platforms, LTO has yet to be validated. |
4ae8c98f | 6056 | *) enable_lto=no ;; |
6057 | esac | |
9bdbb0bc | 6058 | else |
62932e4d | 6059 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6060 | # It would also be nice to check the binutils support, but we don't | |
9bdbb0bc | 6061 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6062 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6063 | # -flto it won't be needed until after installation anyway. | |
6064 | case $target in | |
ca42e774 | 6065 | *-cygwin* | *-mingw* | *-apple-darwin*) ;; |
9bdbb0bc | 6066 | *) if test x"$enable_lto" = x"yes"; then |
6067 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6068 | fi | |
6069 | ;; | |
6070 | esac | |
6071 | fi | |
ca42e774 | 6072 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
25630dc7 | 6073 | # Build it unless LTO was explicitly disabled. |
ca42e774 | 6074 | case $target in |
25630dc7 | 6075 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
ca42e774 | 6076 | *) ;; |
6077 | esac | |
25630dc7 | 6078 | |
9bdbb0bc | 6079 | fi |
6080 | ||
7bfefa9d | 6081 | |
1015a063 | 6082 | # Check whether --enable-linker-plugin-configure-flags was given. |
6083 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6084 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6085 | else | |
6086 | extra_linker_plugin_configure_flags= | |
6087 | fi | |
6088 | ||
6089 | ||
6090 | # Check whether --enable-linker-plugin-flags was given. | |
6091 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6092 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6093 | else | |
6094 | extra_linker_plugin_flags= | |
6095 | fi | |
6096 | ||
6097 | ||
6098 | ||
255b6be7 | 6099 | |
2b15d2ba | 6100 | # By default, C and C++ are the only stage 1 languages. |
9c3a0a29 | 6101 | stage1_languages=,c, |
2d64c2fd | 6102 | |
7ab76cec | 6103 | # Target libraries that we bootstrap. |
5c96a839 | 6104 | bootstrap_target_libs=,target-libgcc, |
7ab76cec | 6105 | |
8e1fea1a | 6106 | # Figure out what language subdirectories are present. |
6107 | # Look if the user specified --enable-languages="..."; if not, use | |
6108 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6109 | # go away some day. | |
6110 | # NB: embedded tabs in this IF block -- do not untabify | |
6111 | if test -d ${srcdir}/gcc; then | |
6112 | if test x"${enable_languages+set}" != xset; then | |
6113 | if test x"${LANGUAGES+set}" = xset; then | |
6114 | enable_languages="${LANGUAGES}" | |
6115 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
6116 | else | |
6117 | enable_languages=all | |
6118 | fi | |
6119 | else | |
6120 | if test x"${enable_languages}" = x || | |
6121 | test x"${enable_languages}" = xyes; | |
6122 | then | |
6123 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
6124 | exit 1 | |
6125 | fi | |
6126 | fi | |
6127 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6128 | ||
2c718da0 | 6129 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6130 | # and make the substitution. | |
6131 | case ,${enable_languages}, in | |
6132 | *,f95,*) | |
6133 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
6134 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
6135 | ;; | |
6136 | esac | |
6137 | ||
2b15d2ba | 6138 | # If bootstrapping, C++ must be enabled. |
6139 | case ",$enable_languages,:$enable_bootstrap" in | |
6140 | *,c++,*:*) ;; | |
6141 | *:yes) | |
6c59dfa4 | 6142 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6143 | enable_languages="${enable_languages},c++" | |
6144 | else | |
2b15d2ba | 6145 | as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5 |
6c59dfa4 | 6146 | fi |
6147 | ;; | |
6148 | esac | |
6149 | ||
8e1fea1a | 6150 | # First scan to see if an enabled language requires some other language. |
6151 | # We assume that a given config-lang.in will list all the language | |
6152 | # front ends it requires, even if some are required indirectly. | |
6153 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6154 | case ${lang_frag} in | |
6155 | ..) ;; | |
6156 | # The odd quoting in the next line works around | |
6157 | # an apparent bug in bash 1.12 on linux. | |
6158 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6159 | *) | |
101ddbe4 | 6160 | # From the config-lang.in, get $language, $lang_requires, and |
6161 | # $lang_requires_boot_languages. | |
8e1fea1a | 6162 | language= |
6163 | lang_requires= | |
101ddbe4 | 6164 | lang_requires_boot_languages= |
8e1fea1a | 6165 | . ${lang_frag} |
101ddbe4 | 6166 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
8e1fea1a | 6167 | case ,${enable_languages}, in |
6168 | *,$other,*) ;; | |
6169 | *,all,*) ;; | |
6170 | *,$language,*) | |
6171 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6172 | enable_languages="${enable_languages},${other}" | |
6173 | ;; | |
6174 | esac | |
6175 | done | |
101ddbe4 | 6176 | for other in ${lang_requires_boot_languages} ; do |
6177 | if test "$other" != "c"; then | |
6178 | case ,${enable_stage1_languages}, in | |
6179 | *,$other,*) ;; | |
6180 | *,all,*) ;; | |
6181 | *) | |
6182 | case ,${enable_languages}, in | |
6183 | *,$language,*) | |
6184 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6185 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6186 | ;; | |
6187 | esac | |
6188 | ;; | |
6189 | esac | |
6190 | fi | |
6191 | done | |
8e1fea1a | 6192 | ;; |
6193 | esac | |
6194 | done | |
6195 | ||
9c3a0a29 | 6196 | new_enable_languages=,c, |
7bfefa9d | 6197 | |
6198 | # If LTO is enabled, add the LTO front end. | |
7bfefa9d | 6199 | if test "$enable_lto" = "yes" ; then |
d6ef094a | 6200 | case ,${enable_languages}, in |
6201 | *,lto,*) ;; | |
6202 | *) enable_languages="${enable_languages},lto" ;; | |
6203 | esac | |
ca42e774 | 6204 | if test "${build_lto_plugin}" = "yes" ; then |
7bfefa9d | 6205 | configdirs="$configdirs lto-plugin" |
7bfefa9d | 6206 | fi |
6207 | fi | |
6208 | ||
8e1fea1a | 6209 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
9c3a0a29 | 6210 | potential_languages=,c, |
8e1fea1a | 6211 | |
604a285a | 6212 | enabled_target_libs= |
6213 | disabled_target_libs= | |
6214 | ||
8e1fea1a | 6215 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6216 | case ${lang_frag} in | |
6217 | ..) ;; | |
6218 | # The odd quoting in the next line works around | |
6219 | # an apparent bug in bash 1.12 on linux. | |
6220 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6221 | *) | |
b30fcfae | 6222 | # From the config-lang.in, get $language, $target_libs, |
2d64c2fd | 6223 | # $lang_dirs, $boot_language, and $build_by_default |
8e1fea1a | 6224 | language= |
6225 | target_libs= | |
6226 | lang_dirs= | |
5dee13c2 | 6227 | subdir_requires= |
9c3a0a29 | 6228 | boot_language=no |
6229 | build_by_default=yes | |
8e1fea1a | 6230 | . ${lang_frag} |
9c3a0a29 | 6231 | if test x${language} = x; then |
6232 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6233 | exit 1 | |
6234 | fi | |
6235 | ||
ef3c41c7 | 6236 | if test "$language" = "c++"; then |
2b15d2ba | 6237 | boot_language=yes |
7ab76cec | 6238 | fi |
6239 | ||
a2ecd49c | 6240 | add_this_lang=no |
9c3a0a29 | 6241 | case ,${enable_languages}, in |
6242 | *,${language},*) | |
e53d55e7 | 6243 | # Language was explicitly selected; include it |
6244 | # unless it is C, which is enabled by default. | |
6245 | if test "$language" != "c"; then | |
6246 | add_this_lang=yes | |
6247 | fi | |
8e1fea1a | 6248 | ;; |
9c3a0a29 | 6249 | *,all,*) |
6250 | # 'all' was selected, select it if it is a default language | |
a2ecd49c | 6251 | if test "$language" != "c"; then |
6252 | add_this_lang=${build_by_default} | |
6253 | fi | |
8e1fea1a | 6254 | ;; |
6255 | esac | |
4ee9c684 | 6256 | |
5dee13c2 | 6257 | # Disable languages that need other directories if these aren't available. |
9333ae0b | 6258 | for i in $subdir_requires; do |
3891e7d9 | 6259 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
5dee13c2 | 6260 | case ,${enable_languages}, in |
6261 | *,${language},*) | |
6262 | # Specifically requested language; tell them. | |
cd9a469c | 6263 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
5dee13c2 | 6264 | ;; |
6265 | *) | |
6266 | # Silently disable. | |
9c3a0a29 | 6267 | add_this_lang=unsupported |
5dee13c2 | 6268 | ;; |
6269 | esac | |
6270 | done | |
6271 | ||
9c3a0a29 | 6272 | # Disable Ada if no preexisting GNAT is available. |
6273 | case ,${enable_languages},:${language}:${have_gnat} in | |
6274 | *,${language},*:ada:no) | |
6275 | # Specifically requested language; tell them. | |
cd9a469c | 6276 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
9c3a0a29 | 6277 | ;; |
6278 | *:ada:no) | |
6279 | # Silently disable. | |
6280 | add_this_lang=unsupported | |
6281 | ;; | |
6282 | esac | |
6283 | ||
ff7dcf6a | 6284 | # Disable a language that is unsupported by the target. |
6285 | case " $unsupported_languages " in | |
6286 | *" $language "*) | |
9c3a0a29 | 6287 | add_this_lang=unsupported |
ff7dcf6a | 6288 | ;; |
6289 | esac | |
6290 | ||
4ee9c684 | 6291 | case $add_this_lang in |
9c3a0a29 | 6292 | unsupported) |
8e1fea1a | 6293 | # Remove language-dependent dirs. |
604a285a | 6294 | disabled_target_libs="$disabled_target_libs $target_libs" |
6295 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2d64c2fd | 6296 | ;; |
9c3a0a29 | 6297 | no) |
6298 | # Remove language-dependent dirs; still show language as supported. | |
604a285a | 6299 | disabled_target_libs="$disabled_target_libs $target_libs" |
6300 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9c3a0a29 | 6301 | potential_languages="${potential_languages}${language}," |
6302 | ;; | |
6303 | yes) | |
6304 | new_enable_languages="${new_enable_languages}${language}," | |
6305 | potential_languages="${potential_languages}${language}," | |
2d64c2fd | 6306 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
604a285a | 6307 | enabled_target_libs="$enabled_target_libs $target_libs" |
32027446 | 6308 | case "${boot_language}:,$enable_stage1_languages," in |
6309 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
aff6cf7b | 6310 | # Add to (comma-separated) list of stage 1 languages. |
32027446 | 6311 | case ",$stage1_languages," in |
6312 | *,$language,* | ,yes, | ,all,) ;; | |
6313 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6314 | esac | |
7ab76cec | 6315 | # We need to bootstrap any supporting libraries. |
6316 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
2d64c2fd | 6317 | ;; |
6318 | esac | |
6319 | ;; | |
8e1fea1a | 6320 | esac |
6321 | ;; | |
6322 | esac | |
6323 | done | |
6324 | ||
604a285a | 6325 | # Add target libraries which are only needed for disabled languages |
6326 | # to noconfigdirs. | |
6327 | if test -n "$disabled_target_libs"; then | |
6328 | for dir in $disabled_target_libs; do | |
6329 | case " $enabled_target_libs " in | |
6330 | *" ${dir} "*) ;; | |
6331 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6332 | esac | |
6333 | done | |
6334 | fi | |
6335 | ||
cd9a469c | 6336 | # Check whether --enable-stage1-languages was given. |
6337 | if test "${enable_stage1_languages+set}" = set; then : | |
6338 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9c3a0a29 | 6339 | ,no,|,,) |
6340 | # Set it to something that will have no effect in the loop below | |
6341 | enable_stage1_languages=c ;; | |
6342 | ,yes,) | |
6343 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6344 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6345 | *,all,*) | |
6346 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6347 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6348 | esac | |
6349 | ||
6350 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6351 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6352 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6353 | case $potential_languages in | |
6354 | *,$i,*) | |
6355 | case $stage1_languages in | |
6356 | *,$i,*) ;; | |
6357 | *) stage1_languages="$stage1_languages$i," ;; | |
6358 | esac ;; | |
6359 | *) | |
6360 | case $missing_languages in | |
6361 | *,$i,*) ;; | |
6362 | *) missing_languages="$missing_languages$i," ;; | |
6363 | esac ;; | |
6364 | esac | |
6365 | done | |
cd9a469c | 6366 | fi |
6367 | ||
9c3a0a29 | 6368 | |
6369 | # Remove leading/trailing commas that were added for simplicity | |
6370 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
989edd2f | 6371 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9c3a0a29 | 6372 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6373 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6374 | ||
8e1fea1a | 6375 | if test "x$missing_languages" != x; then |
cd9a469c | 6376 | as_fn_error " |
e8bfe1fa | 6377 | The following requested languages could not be built: ${missing_languages} |
cd9a469c | 6378 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
8e1fea1a | 6379 | fi |
8e1fea1a | 6380 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6381 | echo The following languages will be built: ${new_enable_languages} | |
9c3a0a29 | 6382 | enable_languages="$new_enable_languages" |
8e1fea1a | 6383 | fi |
9c3a0a29 | 6384 | |
b30fcfae | 6385 | |
b0e9b581 | 6386 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
8e1fea1a | 6387 | fi |
6388 | ||
50996fe5 | 6389 | # Handle --disable-<component> generically. |
6390 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6391 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
d2d2630b | 6392 | varname=`echo $dirname | sed -e s/+/_/g` |
6393 | if eval test x\${enable_${varname}} "=" xno ; then | |
50996fe5 | 6394 | noconfigdirs="$noconfigdirs $dir" |
6395 | fi | |
6396 | done | |
6397 | ||
dd6d3a67 | 6398 | # Check for Boehm's garbage collector |
cd9a469c | 6399 | # Check whether --enable-objc-gc was given. |
6400 | if test "${enable_objc_gc+set}" = set; then : | |
6401 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
dd6d3a67 | 6402 | *,objc,*:*:yes:*target-boehm-gc*) |
cd9a469c | 6403 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
dd6d3a67 | 6404 | ;; |
6405 | esac | |
cd9a469c | 6406 | fi |
6407 | ||
dd6d3a67 | 6408 | |
6409 | # Make sure we only build Boehm's garbage collector if required. | |
f1716c67 | 6410 | case ,${enable_languages},:${enable_objc_gc} in |
6411 | *,objc,*:yes) | |
dd6d3a67 | 6412 | # Keep target-boehm-gc if requested for Objective-C. |
6413 | ;; | |
dd6d3a67 | 6414 | *) |
f1716c67 | 6415 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6416 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6417 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6418 | fi | |
dd6d3a67 | 6419 | ;; |
6420 | esac | |
6421 | ||
d3a7dd32 | 6422 | # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
b33ca042 | 6423 | case ,${enable_languages}, in |
df148e44 | 6424 | *,c++,*) |
6425 | # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++ | |
6426 | case "${noconfigdirs}" in | |
6427 | *target-libstdc++-v3*) | |
6428 | noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer" | |
6429 | ;; | |
6430 | *) ;; | |
6431 | esac | |
6432 | ;; | |
b33ca042 | 6433 | *) |
d3a7dd32 | 6434 | noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
b33ca042 | 6435 | ;; |
6436 | esac | |
6437 | ||
e8eddfdd | 6438 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6439 | # $build_configdirs and $target_configdirs. | |
8e1fea1a | 6440 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6441 | ||
6442 | notsupp="" | |
6443 | for dir in . $skipdirs $noconfigdirs ; do | |
e8eddfdd | 6444 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
8e1fea1a | 6445 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6446 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6447 | if test -r $srcdir/$dirname/configure ; then | |
6448 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6449 | true | |
6450 | else | |
6451 | notsupp="$notsupp $dir" | |
6452 | fi | |
6453 | fi | |
6454 | fi | |
e8eddfdd | 6455 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6456 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6457 | if test -r $srcdir/$dirname/configure ; then | |
6458 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6459 | true | |
6460 | else | |
6461 | notsupp="$notsupp $dir" | |
6462 | fi | |
6463 | fi | |
6464 | fi | |
8e1fea1a | 6465 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6466 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6467 | if test -r $srcdir/$dirname/configure ; then | |
6468 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6469 | true | |
6470 | else | |
6471 | notsupp="$notsupp $dir" | |
6472 | fi | |
6473 | fi | |
6474 | fi | |
6475 | done | |
6476 | ||
8e1fea1a | 6477 | # Quietly strip out all directories which aren't configurable in this tree. |
6478 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6479 | # is now the case. | |
2f8725b0 | 6480 | build_configdirs_all="$build_configdirs" |
6481 | build_configdirs= | |
6482 | for i in ${build_configdirs_all} ; do | |
b30fcfae | 6483 | j=`echo $i | sed -e s/build-//g` |
2f8725b0 | 6484 | if test -f ${srcdir}/$j/configure ; then |
6485 | build_configdirs="${build_configdirs} $i" | |
6486 | fi | |
6487 | done | |
6488 | ||
8e1fea1a | 6489 | configdirs_all="$configdirs" |
6490 | configdirs= | |
6491 | for i in ${configdirs_all} ; do | |
6492 | if test -f ${srcdir}/$i/configure ; then | |
6493 | configdirs="${configdirs} $i" | |
6494 | fi | |
6495 | done | |
2f8725b0 | 6496 | |
8e1fea1a | 6497 | target_configdirs_all="$target_configdirs" |
6498 | target_configdirs= | |
6499 | for i in ${target_configdirs_all} ; do | |
b30fcfae | 6500 | j=`echo $i | sed -e s/target-//g` |
8e1fea1a | 6501 | if test -f ${srcdir}/$j/configure ; then |
6502 | target_configdirs="${target_configdirs} $i" | |
6503 | fi | |
6504 | done | |
6505 | ||
1015a063 | 6506 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6507 | # so we have to add it after the preceding checks. | |
6508 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6509 | then | |
6510 | case " $configdirs " in | |
6511 | *" libiberty "*) | |
6512 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6513 | configdirs="$configdirs libiberty-linker-plugin" | |
6514 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6515 | --with-libiberty=../libiberty-linker-plugin";; | |
6516 | *) | |
6517 | as_fn_error "libiberty missing" "$LINENO" 5;; | |
6518 | esac | |
6519 | fi | |
6520 | ||
944792ef | 6521 | # Sometimes we have special requirements for the host libiberty. |
6522 | extra_host_libiberty_configure_flags= | |
6523 | case " $configdirs " in | |
6524 | *" lto-plugin "* | *" libcc1 "*) | |
6525 | # When these are to be built as shared libraries, the same applies to | |
6526 | # libiberty. | |
6527 | extra_host_libiberty_configure_flags=--enable-shared | |
6528 | ;; | |
6529 | esac | |
6530 | ||
6531 | ||
8e1fea1a | 6532 | # Produce a warning message for the subdirs we can't configure. |
6533 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6534 | # FSF releases, it's important to let people know when their machine isn't | |
6535 | # supported by the one or two programs in a package. | |
6536 | ||
6537 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6538 | # If $appdirs is non-empty, at least one of those directories must still | |
6539 | # be configured, or we error out. (E.g., if the gas release supports a | |
6540 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6541 | # pretend that all is well.) | |
6542 | if test -n "$appdirs" ; then | |
6543 | for dir in $appdirs ; do | |
6544 | if test -r $dir/Makefile.in ; then | |
6545 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6546 | appdirs="" | |
6547 | break | |
6548 | fi | |
2f8725b0 | 6549 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
8e1fea1a | 6550 | appdirs="" |
6551 | break | |
6552 | fi | |
6553 | fi | |
6554 | done | |
6555 | if test -n "$appdirs" ; then | |
6556 | echo "*** This configuration is not supported by this package." 1>&2 | |
6557 | exit 1 | |
6558 | fi | |
6559 | fi | |
6560 | # Okay, some application will build, or we don't care to check. Still | |
6561 | # notify of subdirs not getting built. | |
6562 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6563 | echo " ${notsupp}" 1>&2 | |
6564 | echo " (Any other directories should still work fine.)" 1>&2 | |
6565 | fi | |
6566 | ||
6567 | case "$host" in | |
6568 | *msdosdjgpp*) | |
6569 | enable_gdbtk=no ;; | |
6570 | esac | |
6571 | ||
eae5b2bc | 6572 | # To find our prefix, in gcc_cv_tool_prefix. |
6573 | ||
6574 | # The user is always right. | |
6575 | if test "${PATH_SEPARATOR+set}" != set; then | |
6576 | echo "#! /bin/sh" >conf$$.sh | |
6577 | echo "exit 0" >>conf$$.sh | |
6578 | chmod +x conf$$.sh | |
6579 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6580 | PATH_SEPARATOR=';' | |
6581 | else | |
6582 | PATH_SEPARATOR=: | |
6583 | fi | |
6584 | rm -f conf$$.sh | |
6585 | fi | |
6586 | ||
6587 | ||
6588 | ||
6589 | if test "x$exec_prefix" = xNONE; then | |
6590 | if test "x$prefix" = xNONE; then | |
6591 | gcc_cv_tool_prefix=$ac_default_prefix | |
6592 | else | |
6593 | gcc_cv_tool_prefix=$prefix | |
6594 | fi | |
6595 | else | |
6596 | gcc_cv_tool_prefix=$exec_prefix | |
6597 | fi | |
6598 | ||
6599 | # If there is no compiler in the tree, use the PATH only. In any | |
6600 | # case, if there is no compiler in the tree nobody should use | |
6601 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6602 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6603 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6604 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6605 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6606 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6607 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6608 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6609 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6610 | else | |
6611 | gcc_cv_tool_dirs= | |
6612 | fi | |
6613 | ||
6614 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6615 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6616 | fi | |
6617 | ||
6618 | ||
6619 | ||
8e1fea1a | 6620 | copy_dirs= |
6621 | ||
b30fcfae | 6622 | |
cd9a469c | 6623 | # Check whether --with-build-sysroot was given. |
6624 | if test "${with_build_sysroot+set}" = set; then : | |
6625 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
ffa8502d | 6626 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6627 | fi | |
6628 | else | |
6629 | SYSROOT_CFLAGS_FOR_TARGET= | |
cd9a469c | 6630 | fi |
ffa8502d | 6631 | |
6632 | ||
5f1f2de5 | 6633 | |
cd9a469c | 6634 | |
6635 | # Check whether --with-debug-prefix-map was given. | |
6636 | if test "${with_debug_prefix_map+set}" = set; then : | |
6637 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
5f1f2de5 | 6638 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6639 | for debug_map in $withval; do | |
6640 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6641 | done | |
6642 | fi | |
6643 | else | |
6644 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
cd9a469c | 6645 | fi |
6646 | ||
5f1f2de5 | 6647 | |
6648 | ||
c898f165 | 6649 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6650 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6651 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6652 | # We want to ensure that TARGET libraries (which we know are built with | |
6653 | # gcc) are built with "-O2 -g", so include those options when setting | |
6654 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6655 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
6656 | CFLAGS_FOR_TARGET=$CFLAGS | |
6657 | case " $CFLAGS " in | |
6658 | *" -O2 "*) ;; | |
2be1222c | 6659 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; |
c898f165 | 6660 | esac |
6661 | case " $CFLAGS " in | |
6662 | *" -g "* | *" -g3 "*) ;; | |
2be1222c | 6663 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; |
c898f165 | 6664 | esac |
6665 | fi | |
6666 | ||
6667 | ||
6668 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
6669 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6670 | case " $CXXFLAGS " in | |
6671 | *" -O2 "*) ;; | |
2be1222c | 6672 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; |
c898f165 | 6673 | esac |
6674 | case " $CXXFLAGS " in | |
6675 | *" -g "* | *" -g3 "*) ;; | |
2be1222c | 6676 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; |
c898f165 | 6677 | esac |
6678 | fi | |
6679 | ||
6680 | ||
ed9516f5 | 6681 | |
6682 | ||
8e1fea1a | 6683 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6684 | # the named directory are copied to $(tooldir)/sys-include. | |
6685 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6686 | if test x${is_cross_compiler} = xno ; then | |
6687 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6688 | exit 1 | |
6689 | fi | |
6690 | if test x"${with_headers}" != xyes ; then | |
eae5b2bc | 6691 | x=${gcc_cv_tool_prefix} |
b30fcfae | 6692 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
8e1fea1a | 6693 | fi |
6694 | fi | |
6695 | ||
6696 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6697 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6698 | # are permitted. | |
6699 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6700 | if test x${is_cross_compiler} = xno ; then | |
6701 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6702 | exit 1 | |
6703 | fi | |
6704 | if test x"${with_libs}" != xyes ; then | |
6705 | # Copy the libraries in reverse order, so that files in the first named | |
6706 | # library override files in subsequent libraries. | |
eae5b2bc | 6707 | x=${gcc_cv_tool_prefix} |
8e1fea1a | 6708 | for l in ${with_libs}; do |
b30fcfae | 6709 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
8e1fea1a | 6710 | done |
6711 | fi | |
6712 | fi | |
6713 | ||
7bfefa9d | 6714 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
c47832b1 | 6715 | # |
6716 | # This is done by determining whether or not the appropriate directory | |
6717 | # is available, and by checking whether or not specific configurations | |
6718 | # have requested that this magic not happen. | |
b30fcfae | 6719 | # |
6720 | # The command line options always override the explicit settings in | |
c47832b1 | 6721 | # configure.in, and the settings in configure.in override this magic. |
6722 | # | |
b30fcfae | 6723 | # If the default for a toolchain is to use GNU as and ld, and you don't |
c47832b1 | 6724 | # want to do that, then you should use the --without-gnu-as and |
7bfefa9d | 6725 | # --without-gnu-ld options for the configure script. Similarly, if |
6726 | # the default is to use the included zlib and you don't want to do that, | |
6727 | # you should use the --with-system-zlib option for the configure script. | |
c47832b1 | 6728 | |
6729 | if test x${use_gnu_as} = x && | |
6730 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6731 | with_gnu_as=yes | |
6732 | extra_host_args="$extra_host_args --with-gnu-as" | |
6733 | fi | |
6734 | ||
6735 | if test x${use_gnu_ld} = x && | |
3d47fcf5 | 6736 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
c47832b1 | 6737 | with_gnu_ld=yes |
6738 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6739 | fi | |
6740 | ||
7bfefa9d | 6741 | if test x${use_included_zlib} = x && |
6742 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6743 | : | |
6744 | else | |
6745 | with_system_zlib=yes | |
6746 | extra_host_args="$extra_host_args --with-system-zlib" | |
6747 | fi | |
6748 | ||
c47832b1 | 6749 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6750 | # can detect this case. | |
6751 | ||
6752 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6753 | with_newlib=yes | |
6754 | extra_host_args="$extra_host_args --with-newlib" | |
6755 | fi | |
6756 | ||
8e1fea1a | 6757 | # Handle ${copy_dirs} |
6758 | set fnord ${copy_dirs} | |
6759 | shift | |
6760 | while test $# != 0 ; do | |
6761 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6762 | : | |
6763 | else | |
6764 | echo Copying $1 to $2 | |
6765 | ||
6766 | # Use the install script to create the directory and all required | |
6767 | # parent directories. | |
6768 | if test -d $2 ; then | |
6769 | : | |
6770 | else | |
6771 | echo >config.temp | |
6772 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6773 | fi | |
6774 | ||
6775 | # Copy the directory, assuming we have tar. | |
6776 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6777 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6778 | ||
6779 | # It is the responsibility of the user to correctly adjust all | |
6780 | # symlinks. If somebody can figure out how to handle them correctly | |
6781 | # here, feel free to add the code. | |
6782 | ||
6783 | echo $1 > $2/COPIED | |
6784 | fi | |
6785 | shift; shift | |
6786 | done | |
6787 | ||
c47832b1 | 6788 | # Determine a target-dependent exec_prefix that the installed |
6789 | # gcc will search in. Keep this list sorted by triplet, with | |
6790 | # the *-*-osname triplets last. | |
6791 | md_exec_prefix= | |
6792 | case "${target}" in | |
09c2d953 | 6793 | i[34567]86-pc-msdosdjgpp*) |
c47832b1 | 6794 | md_exec_prefix=/dev/env/DJDIR/bin |
6795 | ;; | |
c47832b1 | 6796 | *-*-hpux* | \ |
c47832b1 | 6797 | *-*-nto-qnx* | \ |
93faf308 | 6798 | *-*-solaris2*) |
c47832b1 | 6799 | md_exec_prefix=/usr/ccs/bin |
6800 | ;; | |
6801 | esac | |
6802 | ||
71ab34df | 6803 | extra_arflags_for_target= |
6804 | extra_nmflags_for_target= | |
6805 | extra_ranlibflags_for_target= | |
6806 | target_makefile_frag=/dev/null | |
6807 | case "${target}" in | |
57c7de11 | 6808 | spu-*-*) |
6809 | target_makefile_frag="config/mt-spu" | |
6810 | ;; | |
d781ea5c | 6811 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
f8520ad7 | 6812 | target_makefile_frag="config/mt-sde" |
6813 | ;; | |
3013c2c7 | 6814 | mipsisa*-*-elfoabi*) |
6815 | target_makefile_frag="config/mt-mips-elfoabi" | |
6816 | ;; | |
559b0712 | 6817 | mips*-*-*linux* | mips*-*-gnu*) |
6818 | target_makefile_frag="config/mt-mips-gnu" | |
6819 | ;; | |
2481a2c1 | 6820 | nios2-*-elf*) |
6821 | target_makefile_frag="config/mt-nios2-elf" | |
6822 | ;; | |
3bef4012 | 6823 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
cb8a7007 | 6824 | target_makefile_frag="config/mt-gnu" |
71ab34df | 6825 | ;; |
6826 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
b30fcfae | 6827 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
71ab34df | 6828 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6829 | # harmless if we're using GNU nm or ar. | |
6830 | extra_arflags_for_target=" -X32_64" | |
6831 | extra_nmflags_for_target=" -B -X32_64" | |
6832 | ;; | |
71ab34df | 6833 | esac |
6834 | ||
6835 | alphaieee_frag=/dev/null | |
6836 | case $target in | |
6837 | alpha*-*-*) | |
6838 | # This just makes sure to use the -mieee option to build target libs. | |
6839 | # This should probably be set individually by each library. | |
6840 | alphaieee_frag="config/mt-alphaieee" | |
6841 | ;; | |
6842 | esac | |
6843 | ||
6844 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6845 | # the target libraries, similarly if it is not specified, use -Os | |
6846 | # on selected platforms. | |
6847 | ospace_frag=/dev/null | |
6848 | case "${enable_target_optspace}:${target}" in | |
6849 | yes:*) | |
6850 | ospace_frag="config/mt-ospace" | |
6851 | ;; | |
6852 | :d30v-*) | |
6853 | ospace_frag="config/mt-d30v" | |
6854 | ;; | |
6855 | :m32r-* | :d10v-* | :fr30-*) | |
6856 | ospace_frag="config/mt-ospace" | |
6857 | ;; | |
6858 | no:* | :*) | |
6859 | ;; | |
6860 | *) | |
6861 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6862 | ;; | |
6863 | esac | |
6864 | ||
71ab34df | 6865 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6866 | # using) don't handle "\$" correctly, so don't use it here. | |
b30fcfae | 6867 | tooldir='${exec_prefix}'/${target_noncanonical} |
71ab34df | 6868 | build_tooldir=${tooldir} |
6869 | ||
71ab34df | 6870 | # Create a .gdbinit file which runs the one in srcdir |
6871 | # and tells GDB to look there for source files. | |
6872 | ||
6873 | if test -r ${srcdir}/.gdbinit ; then | |
6874 | case ${srcdir} in | |
6875 | .) ;; | |
6876 | *) cat > ./.gdbinit <<EOF | |
6877 | # ${NO_EDIT} | |
6878 | dir ${srcdir} | |
6879 | dir . | |
6880 | source ${srcdir}/.gdbinit | |
6881 | EOF | |
6882 | ;; | |
6883 | esac | |
6884 | fi | |
6885 | ||
71ab34df | 6886 | # Make sure that the compiler is able to generate an executable. If it |
6887 | # can't, we are probably in trouble. We don't care whether we can run the | |
6888 | # executable--we might be using a cross compiler--we only care whether it | |
6889 | # can be created. At this point the main configure script has set CC. | |
6890 | we_are_ok=no | |
6891 | echo "int main () { return 0; }" > conftest.c | |
6892 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
6893 | if test $? = 0 ; then | |
6894 | if test -s conftest || test -s conftest.exe ; then | |
6895 | we_are_ok=yes | |
6896 | fi | |
b30fcfae | 6897 | fi |
71ab34df | 6898 | case $we_are_ok in |
6899 | no) | |
6900 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
6901 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
6902 | rm -f conftest* | |
6903 | exit 1 | |
6904 | ;; | |
6905 | esac | |
6906 | rm -f conftest* | |
6907 | ||
7d804f04 | 6908 | # Decide which environment variable is used to find dynamic libraries. |
71ab34df | 6909 | case "${host}" in |
6910 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
b2240ff6 | 6911 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
7d804f04 | 6912 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
71ab34df | 6913 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
6914 | esac | |
6915 | ||
7d804f04 | 6916 | # On systems where the dynamic library environment variable is PATH, |
6917 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
6918 | # built executables to PATH. | |
6919 | if test "$RPATH_ENVVAR" = PATH; then | |
6920 | GCC_SHLIB_SUBDIR=/shlib | |
6921 | else | |
6922 | GCC_SHLIB_SUBDIR= | |
6923 | fi | |
6924 | ||
ee055341 | 6925 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
6926 | case $enable_bootstrap in | |
6927 | yes) | |
6928 | bootstrap_suffix=bootstrap | |
6929 | BUILD_CONFIG=bootstrap-debug | |
6930 | ;; | |
6931 | no) | |
6932 | bootstrap_suffix=no-bootstrap | |
6933 | BUILD_CONFIG= | |
6934 | ;; | |
6935 | esac | |
6936 | ||
6937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
6938 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
6939 | ||
6940 | ||
6941 | # Check whether --with-build-config was given. | |
6942 | if test "${with_build_config+set}" = set; then : | |
6943 | withval=$with_build_config; case $with_build_config in | |
6944 | yes) with_build_config= ;; | |
6945 | no) with_build_config= BUILD_CONFIG= ;; | |
6946 | esac | |
6947 | fi | |
6948 | ||
6949 | ||
6950 | if test "x${with_build_config}" != x; then | |
6951 | BUILD_CONFIG=$with_build_config | |
6952 | else | |
6953 | case $BUILD_CONFIG in | |
6954 | bootstrap-debug) | |
6955 | if echo "int f (void) { return 0; }" > conftest.c && | |
6956 | ${CC} -c conftest.c && | |
6957 | mv conftest.o conftest.o.g0 && | |
6958 | ${CC} -c -g conftest.c && | |
6959 | mv conftest.o conftest.o.g && | |
6960 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
6961 | : | |
6962 | else | |
6963 | BUILD_CONFIG= | |
6964 | fi | |
6965 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
6966 | ;; | |
6967 | esac | |
6968 | fi | |
6969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
6970 | $as_echo "$BUILD_CONFIG" >&6; } | |
6971 | ||
6972 | ||
6973 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
6974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
6975 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
6976 | # Check whether --enable-vtable-verify was given. | |
6977 | if test "${enable_vtable_verify+set}" = set; then : | |
6978 | enableval=$enable_vtable_verify; case "$enableval" in | |
6979 | yes) enable_vtable_verify=yes ;; | |
6980 | no) enable_vtable_verify=no ;; | |
6981 | *) enable_vtable_verify=no;; | |
6982 | esac | |
6983 | else | |
6984 | enable_vtable_verify=no | |
6985 | fi | |
6986 | ||
6987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
6988 | $as_echo "$enable_vtable_verify" >&6; } | |
6989 | ||
71ab34df | 6990 | # Record target_configdirs and the configure arguments for target and |
6991 | # build configuration in Makefile. | |
6992 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
2f8725b0 | 6993 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
f4ae1a00 | 6994 | bootstrap_fixincludes=no |
71ab34df | 6995 | |
5c96a839 | 6996 | # If we are building libgomp, bootstrap it. |
6997 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
6998 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
6999 | fi | |
7000 | ||
ee055341 | 7001 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7002 | # or bootstrap-ubsan, bootstrap it. | |
7003 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7004 | case "$BUILD_CONFIG" in | |
7005 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7006 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
f4ae1a00 | 7007 | bootstrap_fixincludes=yes |
ee055341 | 7008 | ;; |
7009 | esac | |
579abfee | 7010 | fi |
7011 | ||
ee055341 | 7012 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7013 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7014 | test "$enable_vtable_verify" != no; then | |
b710ec85 | 7015 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7016 | fi | |
7017 | ||
71ab34df | 7018 | # Determine whether gdb needs tk/tcl or not. |
7019 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7020 | # and in that case we want gdb to be built without tk. Ugh! | |
7021 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7022 | # so we should be able to put the 'maybe's in unconditionally and | |
7023 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7024 | # 100% sure that that's safe though. | |
8fdaf281 | 7025 | |
f843f075 | 7026 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
71ab34df | 7027 | case "$enable_gdbtk" in |
7028 | no) | |
7029 | GDB_TK="" ;; | |
8fdaf281 | 7030 | yes) |
7031 | GDB_TK="${gdb_tk}" ;; | |
71ab34df | 7032 | *) |
8fdaf281 | 7033 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7034 | # distro. Eventually someone will fix this and move Insight, nee | |
7035 | # gdbtk to a separate directory. | |
7036 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7037 | GDB_TK="${gdb_tk}" | |
7038 | else | |
7039 | GDB_TK="" | |
7040 | fi | |
7041 | ;; | |
71ab34df | 7042 | esac |
415470be | 7043 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7044 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
71ab34df | 7045 | |
01b41571 | 7046 | # Strip out unwanted targets. |
6f4f34a7 | 7047 | |
7048 | # While at that, we remove Makefiles if we were started for recursive | |
7049 | # configuration, so that the top-level Makefile reconfigures them, | |
7050 | # like we used to do when configure itself was recursive. | |
6f4f34a7 | 7051 | |
8bb79148 | 7052 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7053 | # but now we're fixing up the Makefile ourselves with the additional | |
7054 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7055 | # extrasub-{build,host,target} not because there is any reason to split | |
7056 | # the substitutions up that way, but only to remain below the limit of | |
7057 | # 99 commands in a script, for HP-UX sed. | |
7058 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
6f4f34a7 | 7059 | |
7b5fee3e | 7060 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7061 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7062 | yes:yes:*\ gold\ *:*) | |
7063 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
7064 | ;; | |
7065 | esac | |
7066 | ||
8bb79148 | 7067 | extrasub_build= |
2f8725b0 | 7068 | for module in ${build_configdirs} ; do |
93f93279 | 7069 | if test -z "${no_recursion}" \ |
7070 | && test -f ${build_subdir}/${module}/Makefile; then | |
7071 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7072 | rm -f ${build_subdir}/${module}/Makefile | |
7073 | fi | |
8bb79148 | 7074 | extrasub_build="$extrasub_build |
93f93279 | 7075 | /^@if build-$module\$/d |
7076 | /^@endif build-$module\$/d | |
7077 | /^@if build-$module-$bootstrap_suffix\$/d | |
7078 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7079 | done | |
8bb79148 | 7080 | extrasub_host= |
93f93279 | 7081 | for module in ${configdirs} ; do |
9c19a746 | 7082 | if test -z "${no_recursion}"; then |
35d84d10 | 7083 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
9c19a746 | 7084 | if test -f ${file}; then |
7085 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7086 | rm -f ${file} | |
7087 | fi | |
7088 | done | |
93f93279 | 7089 | fi |
f4ae1a00 | 7090 | case ${module},${bootstrap_fixincludes} in |
7091 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7092 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7093 | esac | |
8bb79148 | 7094 | extrasub_host="$extrasub_host |
93f93279 | 7095 | /^@if $module\$/d |
7096 | /^@endif $module\$/d | |
f4ae1a00 | 7097 | /^@if $module-$host_bootstrap_suffix\$/d |
7098 | /^@endif $module-$host_bootstrap_suffix\$/d" | |
93f93279 | 7099 | done |
8bb79148 | 7100 | extrasub_target= |
93f93279 | 7101 | for module in ${target_configdirs} ; do |
7102 | if test -z "${no_recursion}" \ | |
7103 | && test -f ${target_subdir}/${module}/Makefile; then | |
7104 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7105 | rm -f ${target_subdir}/${module}/Makefile | |
7106 | fi | |
7ab76cec | 7107 | |
7108 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7109 | case $bootstrap_target_libs in | |
7110 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7111 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7112 | esac | |
7113 | ||
8bb79148 | 7114 | extrasub_target="$extrasub_target |
93f93279 | 7115 | /^@if target-$module\$/d |
7116 | /^@endif target-$module\$/d | |
7ab76cec | 7117 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7118 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
93f93279 | 7119 | done |
7120 | ||
8bb79148 | 7121 | # Do the final fixup along with target modules. |
7122 | extrasub_target="$extrasub_target | |
01b41571 | 7123 | /^@if /,/^@endif /d" |
71ab34df | 7124 | |
7125 | # Create the serialization dependencies. This uses a temporary file. | |
7126 | ||
cd9a469c | 7127 | # Check whether --enable-serial-configure was given. |
7128 | if test "${enable_serial_configure+set}" = set; then : | |
7129 | enableval=$enable_serial_configure; | |
7130 | fi | |
11d8013a | 7131 | |
7132 | ||
622c1fa9 | 7133 | case ${enable_serial_configure} in |
7134 | yes) | |
7135 | enable_serial_build_configure=yes | |
7136 | enable_serial_host_configure=yes | |
7137 | enable_serial_target_configure=yes | |
7138 | ;; | |
7139 | esac | |
7140 | ||
71ab34df | 7141 | # These force 'configure's to be done one at a time, to avoid problems |
7142 | # with contention over a shared config.cache. | |
7143 | rm -f serdep.tmp | |
11d8013a | 7144 | echo '# serdep.tmp' > serdep.tmp |
71ab34df | 7145 | olditem= |
622c1fa9 | 7146 | test "x${enable_serial_build_configure}" = xyes && |
71ab34df | 7147 | for item in ${build_configdirs} ; do |
7148 | case ${olditem} in | |
7149 | "") ;; | |
11d8013a | 7150 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
71ab34df | 7151 | esac |
7152 | olditem=${item} | |
7153 | done | |
7154 | olditem= | |
622c1fa9 | 7155 | test "x${enable_serial_host_configure}" = xyes && |
71ab34df | 7156 | for item in ${configdirs} ; do |
7157 | case ${olditem} in | |
7158 | "") ;; | |
11d8013a | 7159 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
71ab34df | 7160 | esac |
7161 | olditem=${item} | |
7162 | done | |
7163 | olditem= | |
622c1fa9 | 7164 | test "x${enable_serial_target_configure}" = xyes && |
71ab34df | 7165 | for item in ${target_configdirs} ; do |
7166 | case ${olditem} in | |
7167 | "") ;; | |
11d8013a | 7168 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
71ab34df | 7169 | esac |
7170 | olditem=${item} | |
7171 | done | |
7172 | serialization_dependencies=serdep.tmp | |
7173 | ||
7174 | ||
11d8013a | 7175 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
b30fcfae | 7176 | # target, nonopt, and variable assignments. These are the ones we |
412c2e81 | 7177 | # might not want to pass down to subconfigures. The exception being |
7178 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7179 | # files altogether, and which should be passed on to subconfigures. | |
7180 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7181 | # so that we can pass down a consistent program-transform-name. | |
b30fcfae | 7182 | baseargs= |
0e4d1862 | 7183 | tbaseargs= |
b30fcfae | 7184 | keep_next=no |
7185 | skip_next=no | |
7186 | eval "set -- $ac_configure_args" | |
4ff792a4 | 7187 | for ac_arg |
7188 | do | |
b30fcfae | 7189 | if test X"$skip_next" = X"yes"; then |
7190 | skip_next=no | |
7191 | continue | |
7192 | fi | |
7193 | if test X"$keep_next" = X"yes"; then | |
7194 | case $ac_arg in | |
7195 | *\'*) | |
7196 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7197 | esac | |
7198 | baseargs="$baseargs '$ac_arg'" | |
0e4d1862 | 7199 | tbaseargs="$tbaseargs '$ac_arg'" |
b30fcfae | 7200 | keep_next=no |
7201 | continue | |
7202 | fi | |
7203 | ||
7204 | # Handle separated arguments. Based on the logic generated by | |
7205 | # autoconf 2.59. | |
7206 | case $ac_arg in | |
7207 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7208 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7209 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7210 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7211 | separate_arg=no | |
7212 | ;; | |
7213 | -*) | |
7214 | separate_arg=yes | |
7215 | ;; | |
7216 | *) | |
7217 | separate_arg=no | |
7218 | ;; | |
7219 | esac | |
7220 | ||
0e4d1862 | 7221 | skip_targ=no |
7222 | case $ac_arg in | |
7223 | ||
7224 | --with-* | --without-*) | |
7225 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7226 | ||
7227 | case $libopt in | |
7228 | *[-_]include) | |
7229 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7230 | ;; | |
7231 | *[-_]lib) | |
7232 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7233 | ;; | |
7234 | *) | |
7235 | lib=$libopt | |
7236 | ;; | |
7237 | esac | |
7238 | ||
7239 | ||
7240 | case $lib in | |
572cf1f7 | 7241 | mpc | mpfr | gmp | isl) |
0e4d1862 | 7242 | # If we're processing --with-$lib, --with-$lib-include or |
7243 | # --with-$lib-lib, for one of the libs above, and target is | |
7244 | # different from host, don't pass the current argument to any | |
7245 | # target library's configure. | |
7246 | if test x$is_cross_compiler = xyes; then | |
7247 | skip_targ=yes | |
7248 | fi | |
7249 | ;; | |
7250 | esac | |
7251 | ;; | |
7252 | esac | |
7253 | ||
b30fcfae | 7254 | case "$ac_arg" in |
412c2e81 | 7255 | --cache-file=/dev/null | \ |
7256 | -cache-file=/dev/null ) | |
7257 | # Handled here to avoid the test to skip args below. | |
7258 | baseargs="$baseargs '$ac_arg'" | |
0e4d1862 | 7259 | tbaseargs="$tbaseargs '$ac_arg'" |
412c2e81 | 7260 | # Assert: $separate_arg should always be no. |
7261 | keep_next=$separate_arg | |
7262 | ;; | |
b30fcfae | 7263 | --no*) |
7264 | continue | |
7265 | ;; | |
7266 | --c* | \ | |
7267 | --sr* | \ | |
7268 | --ho* | \ | |
7269 | --bu* | \ | |
7270 | --t* | \ | |
7271 | --program-* | \ | |
7272 | -cache_file* | \ | |
7273 | -srcdir* | \ | |
7274 | -host* | \ | |
7275 | -build* | \ | |
7276 | -target* | \ | |
7277 | -program-prefix* | \ | |
7278 | -program-suffix* | \ | |
7279 | -program-transform-name* ) | |
7280 | skip_next=$separate_arg | |
7281 | continue | |
7282 | ;; | |
7283 | -*) | |
7284 | # An option. Add it. | |
7285 | case $ac_arg in | |
7286 | *\'*) | |
7287 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7288 | esac | |
7289 | baseargs="$baseargs '$ac_arg'" | |
0e4d1862 | 7290 | if test X"$skip_targ" = Xno; then |
7291 | tbaseargs="$tbaseargs '$ac_arg'" | |
7292 | fi | |
b30fcfae | 7293 | keep_next=$separate_arg |
7294 | ;; | |
7295 | *) | |
7296 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7297 | # pass it down; let the Makefile handle this. | |
7298 | continue | |
7299 | ;; | |
7300 | esac | |
7301 | done | |
7302 | # Remove the initial space we just introduced and, as these will be | |
7303 | # expanded by make, quote '$'. | |
7304 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
71ab34df | 7305 | |
fbfea1fa | 7306 | # Add in --program-transform-name, after --program-prefix and |
7307 | # --program-suffix have been applied to it. Autoconf has already | |
7308 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7309 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
b30fcfae | 7310 | # quotes, because this will be expanded first by make and then by the shell. |
fbfea1fa | 7311 | # Also, because we want to override the logic in subdir configure scripts to |
7312 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7313 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7314 | ${program_transform_name} | |
7315 | EOF_SED | |
7316 | gcc_transform_name=`cat conftestsed.out` | |
7317 | rm -f conftestsed.out | |
7318 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
0e4d1862 | 7319 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
af7bb0c0 | 7320 | if test "$silent" = yes; then |
7321 | baseargs="$baseargs --silent" | |
0e4d1862 | 7322 | tbaseargs="$tbaseargs --silent" |
af7bb0c0 | 7323 | fi |
cd2f3773 | 7324 | baseargs="$baseargs --disable-option-checking" |
0e4d1862 | 7325 | tbaseargs="$tbaseargs --disable-option-checking" |
fbfea1fa | 7326 | |
372a3f1e | 7327 | # Record and document user additions to sub configure arguments. |
7328 | ||
7329 | ||
7330 | ||
7331 | ||
71ab34df | 7332 | # For the build-side libraries, we just need to pretend we're native, |
7333 | # and not use the same cache file. Multilibs are neither needed nor | |
b85b703b | 7334 | # desired. We can't even use the same cache file for all build-side |
7335 | # libraries, as they're compiled differently; some with C, some with | |
7336 | # C++ or with different feature-enabling options. | |
7337 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
71ab34df | 7338 | |
7339 | # For host modules, accept cache file option, or specification as blank. | |
7340 | case "${cache_file}" in | |
7341 | "") # empty | |
7342 | cache_file_option="" ;; | |
7343 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7344 | cache_file_option="--cache-file=${cache_file}" ;; | |
7345 | *) # relative path | |
7346 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7347 | esac | |
7348 | ||
ba1081ef | 7349 | # Host dirs don't like to share a cache file either, horribly enough. |
7350 | # This seems to be due to autoconf 2.5x stupidity. | |
372a3f1e | 7351 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
71ab34df | 7352 | |
0e4d1862 | 7353 | target_configargs="$target_configargs ${tbaseargs}" |
71ab34df | 7354 | |
7355 | # Passing a --with-cross-host argument lets the target libraries know | |
7356 | # whether they are being built with a cross-compiler or being built | |
7357 | # native. However, it would be better to use other mechanisms to make the | |
7358 | # sorts of decisions they want to make on this basis. Please consider | |
7359 | # this option to be deprecated. FIXME. | |
7360 | if test x${is_cross_compiler} = xyes ; then | |
b30fcfae | 7361 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
71ab34df | 7362 | fi |
7363 | ||
87ebeb4c | 7364 | # Special user-friendly check for native x86_64-linux build, if |
7365 | # multilib is not explicitly enabled. | |
7366 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7367 | x86_64-*linux*:yes:$build:$build:) | |
7368 | # Make sure we have a developement environment that handles 32-bit | |
7369 | dev64=no | |
7370 | echo "int main () { return 0; }" > conftest.c | |
7371 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7372 | if test $? = 0 ; then | |
7373 | if test -s conftest || test -s conftest.exe ; then | |
7374 | dev64=yes | |
7375 | fi | |
7376 | fi | |
7377 | rm -f conftest* | |
7378 | if test x${dev64} != xyes ; then | |
7379 | as_fn_error "I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5 | |
7380 | fi | |
7381 | ;; | |
7382 | esac | |
7383 | ||
59a40389 | 7384 | # Default to --enable-multilib. |
7385 | if test x${enable_multilib} = x ; then | |
71ab34df | 7386 | target_configargs="--enable-multilib ${target_configargs}" |
59a40389 | 7387 | fi |
71ab34df | 7388 | |
7389 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7390 | # changed from the earlier setting of with_newlib. | |
7391 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7392 | target_configargs="--with-newlib ${target_configargs}" | |
7393 | fi | |
7394 | ||
74fef112 | 7395 | # Different target subdirs use different values of certain variables |
7396 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7397 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7398 | # it doesn't automatically accept command-line overrides of them. | |
7399 | # This means it's not safe for target subdirs to share a cache file, | |
7400 | # which is disgusting, but there you have it. Hopefully this can be | |
7401 | # fixed in future. It's still worthwhile to use a cache file for each | |
7402 | # directory. I think. | |
7403 | ||
a8abbd9d | 7404 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7405 | # We need to pass --target, as newer autoconf's requires consistency | |
7406 | # for target_alias and gcc doesn't manage it consistently. | |
d45318b3 | 7407 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
71ab34df | 7408 | |
71ab34df | 7409 | FLAGS_FOR_TARGET= |
7410 | case " $target_configdirs " in | |
7411 | *" newlib "*) | |
7412 | case " $target_configargs " in | |
7413 | *" --with-newlib "*) | |
7414 | case "$target" in | |
fe284774 | 7415 | *-cygwin*) |
db54564d | 7416 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
fe284774 | 7417 | ;; |
71ab34df | 7418 | esac |
7419 | ||
7420 | # If we're not building GCC, don't discard standard headers. | |
7421 | if test -d ${srcdir}/gcc; then | |
7422 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7423 | ||
7424 | if test "${build}" != "${host}"; then | |
7425 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7426 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7427 | # to it. This is right: we don't want to search that directory | |
7428 | # for binaries, but we want the header files in there, so add | |
7429 | # them explicitly. | |
e619f0a6 | 7430 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
71ab34df | 7431 | |
7432 | # Someone might think of using the pre-installed headers on | |
7433 | # Canadian crosses, in case the installed compiler is not fully | |
7434 | # compatible with the compiler being built. In this case, it | |
7435 | # would be better to flag an error than risking having | |
7436 | # incompatible object files being constructed. We can't | |
7437 | # guarantee that an error will be flagged, but let's hope the | |
7438 | # compiler will do it, when presented with incompatible header | |
7439 | # files. | |
7440 | fi | |
7441 | fi | |
7442 | ||
7443 | case "${target}-${is_cross_compiler}" in | |
f74ea578 | 7444 | i[3456789]86-*-linux*-no) |
71ab34df | 7445 | # Here host == target, so we don't need to build gcc, |
7446 | # so we don't want to discard standard headers. | |
7447 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7448 | ;; | |
7449 | *) | |
7450 | # If we're building newlib, use its generic headers last, but search | |
7451 | # for any libc-related directories first (so make it the last -B | |
7452 | # switch). | |
7453 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
1c5767f1 | 7454 | |
7455 | # If we're building libgloss, find the startup file, simulator library | |
7456 | # and linker script. | |
7457 | case " $target_configdirs " in | |
7458 | *" libgloss "*) | |
7459 | # Look for startup file, simulator library and maybe linker script. | |
7460 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7461 | # Look for libnosys.a in case the target needs it. | |
7462 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7463 | # Most targets have the linker script in the source directory. | |
7464 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7465 | ;; | |
7466 | esac | |
71ab34df | 7467 | ;; |
7468 | esac | |
7469 | ;; | |
7470 | esac | |
7471 | ;; | |
7472 | esac | |
fe284774 | 7473 | |
d6d689df | 7474 | case "$target" in |
fe284774 | 7475 | x86_64-*mingw* | *-w64-mingw*) |
7476 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7477 | # however, use a symlink named 'mingw' in ${prefix} . | |
7478 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7479 | ;; | |
7480 | *-mingw*) | |
7481 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7482 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' | |
7483 | ;; | |
d6d689df | 7484 | esac |
71ab34df | 7485 | |
d8e9ea04 | 7486 | # Allow the user to override the flags for |
7487 | # our build compiler if desired. | |
823e8b8d | 7488 | if test x"${build}" = x"${host}" ; then |
7489 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7490 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7491 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7492 | fi | |
d8e9ea04 | 7493 | |
71ab34df | 7494 | # On Canadian crosses, we'll be searching the right directories for |
7495 | # the previously-installed cross compiler, so don't bother to add | |
7496 | # flags for directories within the install tree of the compiler | |
7497 | # being built; programs in there won't even run. | |
7498 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7499 | # Search for pre-installed headers if nothing else fits. | |
5750c7d4 | 7500 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
71ab34df | 7501 | fi |
7502 | ||
7503 | if test "x${use_gnu_ld}" = x && | |
7504 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7505 | # Arrange for us to find uninstalled linker scripts. | |
c1eb9e31 | 7506 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
71ab34df | 7507 | fi |
7508 | ||
24714a39 | 7509 | # Search for other target-specific linker scripts and such. |
7510 | case "${target}" in | |
38d7211b | 7511 | mep*) |
7512 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7513 | ;; | |
24714a39 | 7514 | esac |
7515 | ||
71ab34df | 7516 | # Makefile fragments. |
03c65091 | 7517 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7518 | do | |
7519 | eval fragval=\$$frag | |
7520 | if test $fragval != /dev/null; then | |
7521 | eval $frag=${srcdir}/$fragval | |
7522 | fi | |
7523 | done | |
71ab34df | 7524 | |
7525 | ||
7526 | ||
7527 | ||
7528 | ||
7529 | # Miscellanea: directories, flags, etc. | |
7530 | ||
7531 | ||
7532 | ||
7533 | ||
7534 | ||
7535 | ||
7536 | ||
7d804f04 | 7537 | |
2f8725b0 | 7538 | # Build module lists & subconfigure args. |
71ab34df | 7539 | |
7540 | ||
7541 | ||
f5aebe3e | 7542 | # Host module lists & subconfigure args. |
7543 | ||
7544 | ||
7545 | ||
1fda3360 | 7546 | |
f5aebe3e | 7547 | # Target module lists & subconfigure args. |
7548 | ||
7549 | ||
7550 | ||
7551 | # Build tools. | |
7552 | ||
7553 | ||
7554 | ||
93c5e793 | 7555 | |
7556 | ||
7557 | ||
7558 | ||
7559 | ||
7560 | ||
7561 | ||
7562 | ||
7563 | ||
7564 | ||
7565 | ||
7566 | ||
7567 | ||
7568 | ||
f5aebe3e | 7569 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7570 | # on the build machine. These are used if the Makefile can't locate these | |
7571 | # programs in objdir. | |
7572 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7573 | ||
7574 | for ac_prog in 'bison -y' byacc yacc | |
7575 | do | |
b30fcfae | 7576 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7577 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7579 | $as_echo_n "checking for $ac_word... " >&6; } | |
7580 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7581 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7582 | else |
7583 | if test -n "$YACC"; then | |
7584 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7585 | else | |
b30fcfae | 7586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7587 | for as_dir in $PATH | |
7588 | do | |
7589 | IFS=$as_save_IFS | |
7590 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7591 | for ac_exec_ext in '' $ac_executable_extensions; do |
7592 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7593 | ac_cv_prog_YACC="$ac_prog" |
cd9a469c | 7594 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7595 | break 2 |
7596 | fi | |
7597 | done | |
cd9a469c | 7598 | done |
7599 | IFS=$as_save_IFS | |
b30fcfae | 7600 | |
f5aebe3e | 7601 | fi |
7602 | fi | |
b30fcfae | 7603 | YACC=$ac_cv_prog_YACC |
f5aebe3e | 7604 | if test -n "$YACC"; then |
cd9a469c | 7605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7606 | $as_echo "$YACC" >&6; } | |
f5aebe3e | 7607 | else |
cd9a469c | 7608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7609 | $as_echo "no" >&6; } | |
f5aebe3e | 7610 | fi |
7611 | ||
cd9a469c | 7612 | |
b30fcfae | 7613 | test -n "$YACC" && break |
f5aebe3e | 7614 | done |
7615 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7616 | ||
7617 | case " $build_configdirs " in | |
7618 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
f5aebe3e | 7619 | esac |
7620 | ||
7621 | for ac_prog in bison | |
7622 | do | |
b30fcfae | 7623 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7624 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7626 | $as_echo_n "checking for $ac_word... " >&6; } | |
7627 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7628 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7629 | else |
7630 | if test -n "$BISON"; then | |
7631 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7632 | else | |
b30fcfae | 7633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7634 | for as_dir in $PATH | |
7635 | do | |
7636 | IFS=$as_save_IFS | |
7637 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7638 | for ac_exec_ext in '' $ac_executable_extensions; do |
7639 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7640 | ac_cv_prog_BISON="$ac_prog" |
cd9a469c | 7641 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7642 | break 2 |
7643 | fi | |
7644 | done | |
cd9a469c | 7645 | done |
7646 | IFS=$as_save_IFS | |
b30fcfae | 7647 | |
f5aebe3e | 7648 | fi |
7649 | fi | |
b30fcfae | 7650 | BISON=$ac_cv_prog_BISON |
f5aebe3e | 7651 | if test -n "$BISON"; then |
cd9a469c | 7652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7653 | $as_echo "$BISON" >&6; } | |
f5aebe3e | 7654 | else |
cd9a469c | 7655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7656 | $as_echo "no" >&6; } | |
f5aebe3e | 7657 | fi |
7658 | ||
cd9a469c | 7659 | |
b30fcfae | 7660 | test -n "$BISON" && break |
f5aebe3e | 7661 | done |
7662 | test -n "$BISON" || BISON="$MISSING bison" | |
7663 | ||
7664 | case " $build_configdirs " in | |
7665 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7666 | esac | |
7667 | ||
7668 | for ac_prog in gm4 gnum4 m4 | |
7669 | do | |
b30fcfae | 7670 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7671 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7673 | $as_echo_n "checking for $ac_word... " >&6; } | |
7674 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7675 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7676 | else |
7677 | if test -n "$M4"; then | |
7678 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7679 | else | |
b30fcfae | 7680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7681 | for as_dir in $PATH | |
7682 | do | |
7683 | IFS=$as_save_IFS | |
7684 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7685 | for ac_exec_ext in '' $ac_executable_extensions; do |
7686 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7687 | ac_cv_prog_M4="$ac_prog" |
cd9a469c | 7688 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7689 | break 2 |
7690 | fi | |
7691 | done | |
cd9a469c | 7692 | done |
7693 | IFS=$as_save_IFS | |
b30fcfae | 7694 | |
f5aebe3e | 7695 | fi |
7696 | fi | |
b30fcfae | 7697 | M4=$ac_cv_prog_M4 |
f5aebe3e | 7698 | if test -n "$M4"; then |
cd9a469c | 7699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7700 | $as_echo "$M4" >&6; } | |
f5aebe3e | 7701 | else |
cd9a469c | 7702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7703 | $as_echo "no" >&6; } | |
f5aebe3e | 7704 | fi |
7705 | ||
cd9a469c | 7706 | |
b30fcfae | 7707 | test -n "$M4" && break |
f5aebe3e | 7708 | done |
7709 | test -n "$M4" || M4="$MISSING m4" | |
7710 | ||
7711 | case " $build_configdirs " in | |
7712 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7713 | esac | |
7714 | ||
7715 | for ac_prog in flex lex | |
7716 | do | |
b30fcfae | 7717 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7718 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7720 | $as_echo_n "checking for $ac_word... " >&6; } | |
7721 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7722 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7723 | else |
7724 | if test -n "$LEX"; then | |
7725 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7726 | else | |
b30fcfae | 7727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7728 | for as_dir in $PATH | |
7729 | do | |
7730 | IFS=$as_save_IFS | |
7731 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7732 | for ac_exec_ext in '' $ac_executable_extensions; do |
7733 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7734 | ac_cv_prog_LEX="$ac_prog" |
cd9a469c | 7735 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7736 | break 2 |
7737 | fi | |
7738 | done | |
cd9a469c | 7739 | done |
7740 | IFS=$as_save_IFS | |
b30fcfae | 7741 | |
f5aebe3e | 7742 | fi |
7743 | fi | |
b30fcfae | 7744 | LEX=$ac_cv_prog_LEX |
f5aebe3e | 7745 | if test -n "$LEX"; then |
cd9a469c | 7746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7747 | $as_echo "$LEX" >&6; } | |
f5aebe3e | 7748 | else |
cd9a469c | 7749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7750 | $as_echo "no" >&6; } | |
f5aebe3e | 7751 | fi |
7752 | ||
cd9a469c | 7753 | |
b30fcfae | 7754 | test -n "$LEX" && break |
f5aebe3e | 7755 | done |
7756 | test -n "$LEX" || LEX="$MISSING flex" | |
7757 | ||
7758 | case " $build_configdirs " in | |
7759 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7760 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7761 | esac | |
7762 | ||
7763 | for ac_prog in flex | |
7764 | do | |
b30fcfae | 7765 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7766 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7768 | $as_echo_n "checking for $ac_word... " >&6; } | |
7769 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7770 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7771 | else |
7772 | if test -n "$FLEX"; then | |
7773 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7774 | else | |
b30fcfae | 7775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7776 | for as_dir in $PATH | |
7777 | do | |
7778 | IFS=$as_save_IFS | |
7779 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7780 | for ac_exec_ext in '' $ac_executable_extensions; do |
7781 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7782 | ac_cv_prog_FLEX="$ac_prog" |
cd9a469c | 7783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7784 | break 2 |
7785 | fi | |
7786 | done | |
cd9a469c | 7787 | done |
7788 | IFS=$as_save_IFS | |
b30fcfae | 7789 | |
f5aebe3e | 7790 | fi |
7791 | fi | |
b30fcfae | 7792 | FLEX=$ac_cv_prog_FLEX |
f5aebe3e | 7793 | if test -n "$FLEX"; then |
cd9a469c | 7794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7795 | $as_echo "$FLEX" >&6; } | |
f5aebe3e | 7796 | else |
cd9a469c | 7797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7798 | $as_echo "no" >&6; } | |
f5aebe3e | 7799 | fi |
7800 | ||
cd9a469c | 7801 | |
b30fcfae | 7802 | test -n "$FLEX" && break |
f5aebe3e | 7803 | done |
7804 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7805 | ||
7806 | case " $build_configdirs " in | |
7807 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7808 | esac | |
7809 | ||
7810 | for ac_prog in makeinfo | |
7811 | do | |
b30fcfae | 7812 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7813 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7815 | $as_echo_n "checking for $ac_word... " >&6; } | |
7816 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7817 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7818 | else |
7819 | if test -n "$MAKEINFO"; then | |
7820 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7821 | else | |
b30fcfae | 7822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7823 | for as_dir in $PATH | |
7824 | do | |
7825 | IFS=$as_save_IFS | |
7826 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7827 | for ac_exec_ext in '' $ac_executable_extensions; do |
7828 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7829 | ac_cv_prog_MAKEINFO="$ac_prog" |
cd9a469c | 7830 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7831 | break 2 |
7832 | fi | |
7833 | done | |
cd9a469c | 7834 | done |
7835 | IFS=$as_save_IFS | |
b30fcfae | 7836 | |
f5aebe3e | 7837 | fi |
7838 | fi | |
b30fcfae | 7839 | MAKEINFO=$ac_cv_prog_MAKEINFO |
f5aebe3e | 7840 | if test -n "$MAKEINFO"; then |
cd9a469c | 7841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7842 | $as_echo "$MAKEINFO" >&6; } | |
f5aebe3e | 7843 | else |
cd9a469c | 7844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7845 | $as_echo "no" >&6; } | |
f5aebe3e | 7846 | fi |
7847 | ||
cd9a469c | 7848 | |
b30fcfae | 7849 | test -n "$MAKEINFO" && break |
f5aebe3e | 7850 | done |
7851 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7852 | ||
7853 | case " $build_configdirs " in | |
7854 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7855 | *) | |
7856 | ||
03caadda | 7857 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
f5aebe3e | 7858 | # higher, else we use the "missing" dummy. |
7859 | if ${MAKEINFO} --version \ | |
03caadda | 7860 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
f5aebe3e | 7861 | : |
7862 | else | |
7863 | MAKEINFO="$MISSING makeinfo" | |
7864 | fi | |
7865 | ;; | |
7866 | ||
7867 | esac | |
71ab34df | 7868 | |
f5aebe3e | 7869 | # FIXME: expect and dejagnu may become build tools? |
71ab34df | 7870 | |
f5aebe3e | 7871 | for ac_prog in expect |
7872 | do | |
b30fcfae | 7873 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7874 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7876 | $as_echo_n "checking for $ac_word... " >&6; } | |
7877 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7878 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7879 | else |
7880 | if test -n "$EXPECT"; then | |
7881 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7882 | else | |
b30fcfae | 7883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7884 | for as_dir in $PATH | |
7885 | do | |
7886 | IFS=$as_save_IFS | |
7887 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7888 | for ac_exec_ext in '' $ac_executable_extensions; do |
7889 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7890 | ac_cv_prog_EXPECT="$ac_prog" |
cd9a469c | 7891 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7892 | break 2 |
7893 | fi | |
7894 | done | |
cd9a469c | 7895 | done |
7896 | IFS=$as_save_IFS | |
b30fcfae | 7897 | |
f5aebe3e | 7898 | fi |
7899 | fi | |
b30fcfae | 7900 | EXPECT=$ac_cv_prog_EXPECT |
f5aebe3e | 7901 | if test -n "$EXPECT"; then |
cd9a469c | 7902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
7903 | $as_echo "$EXPECT" >&6; } | |
f5aebe3e | 7904 | else |
cd9a469c | 7905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7906 | $as_echo "no" >&6; } | |
f5aebe3e | 7907 | fi |
71ab34df | 7908 | |
cd9a469c | 7909 | |
b30fcfae | 7910 | test -n "$EXPECT" && break |
f5aebe3e | 7911 | done |
7912 | test -n "$EXPECT" || EXPECT="expect" | |
71ab34df | 7913 | |
f5aebe3e | 7914 | case " $configdirs " in |
7915 | *" expect "*) | |
7916 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
7917 | ;; | |
7918 | esac | |
71ab34df | 7919 | |
f5aebe3e | 7920 | for ac_prog in runtest |
7921 | do | |
b30fcfae | 7922 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7923 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7925 | $as_echo_n "checking for $ac_word... " >&6; } | |
7926 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
7927 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7928 | else |
7929 | if test -n "$RUNTEST"; then | |
7930 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
a4af6a58 | 7931 | else |
b30fcfae | 7932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7933 | for as_dir in $PATH | |
7934 | do | |
7935 | IFS=$as_save_IFS | |
7936 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7937 | for ac_exec_ext in '' $ac_executable_extensions; do |
7938 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7939 | ac_cv_prog_RUNTEST="$ac_prog" |
cd9a469c | 7940 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7941 | break 2 |
7942 | fi | |
7943 | done | |
cd9a469c | 7944 | done |
7945 | IFS=$as_save_IFS | |
b30fcfae | 7946 | |
f5aebe3e | 7947 | fi |
7948 | fi | |
b30fcfae | 7949 | RUNTEST=$ac_cv_prog_RUNTEST |
f5aebe3e | 7950 | if test -n "$RUNTEST"; then |
cd9a469c | 7951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
7952 | $as_echo "$RUNTEST" >&6; } | |
f5aebe3e | 7953 | else |
cd9a469c | 7954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7955 | $as_echo "no" >&6; } | |
f5aebe3e | 7956 | fi |
71ab34df | 7957 | |
cd9a469c | 7958 | |
b30fcfae | 7959 | test -n "$RUNTEST" && break |
f5aebe3e | 7960 | done |
7961 | test -n "$RUNTEST" || RUNTEST="runtest" | |
71ab34df | 7962 | |
f5aebe3e | 7963 | case " $configdirs " in |
7964 | *" dejagnu "*) | |
8d365775 | 7965 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
f5aebe3e | 7966 | ;; |
7967 | esac | |
71ab34df | 7968 | |
7969 | ||
71ab34df | 7970 | # Host tools. |
bb612911 | 7971 | ncn_tool_prefix= |
7972 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
7973 | ncn_target_tool_prefix= | |
7974 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
7975 | ||
95a05732 | 7976 | |
7977 | ||
7978 | if test -n "$AR"; then | |
7979 | ac_cv_prog_AR=$AR | |
7980 | elif test -n "$ac_cv_prog_AR"; then | |
7981 | AR=$ac_cv_prog_AR | |
7982 | fi | |
7983 | ||
7984 | if test -n "$ac_cv_prog_AR"; then | |
7985 | for ncn_progname in ar; do | |
7986 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7987 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 7988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7989 | $as_echo_n "checking for $ac_word... " >&6; } | |
7990 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7991 | $as_echo_n "(cached) " >&6 | |
95a05732 | 7992 | else |
7993 | if test -n "$AR"; then | |
7994 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7995 | else | |
7996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7997 | for as_dir in $PATH | |
7998 | do | |
7999 | IFS=$as_save_IFS | |
8000 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8001 | for ac_exec_ext in '' $ac_executable_extensions; do |
8002 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8003 | ac_cv_prog_AR="${ncn_progname}" |
cd9a469c | 8004 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8005 | break 2 |
8006 | fi | |
8007 | done | |
cd9a469c | 8008 | done |
8009 | IFS=$as_save_IFS | |
95a05732 | 8010 | |
8011 | fi | |
8012 | fi | |
8013 | AR=$ac_cv_prog_AR | |
8014 | if test -n "$AR"; then | |
cd9a469c | 8015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8016 | $as_echo "$AR" >&6; } | |
95a05732 | 8017 | else |
cd9a469c | 8018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8019 | $as_echo "no" >&6; } | |
95a05732 | 8020 | fi |
8021 | ||
cd9a469c | 8022 | |
95a05732 | 8023 | done |
8024 | fi | |
8025 | ||
8026 | for ncn_progname in ar; do | |
768691b5 | 8027 | if test -n "$ncn_tool_prefix"; then |
8028 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8029 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8031 | $as_echo_n "checking for $ac_word... " >&6; } | |
8032 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8033 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8034 | else |
8035 | if test -n "$AR"; then | |
8036 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8037 | else | |
b30fcfae | 8038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8039 | for as_dir in $PATH | |
8040 | do | |
8041 | IFS=$as_save_IFS | |
8042 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8043 | for ac_exec_ext in '' $ac_executable_extensions; do |
8044 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8045 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8047 | break 2 |
8048 | fi | |
8049 | done | |
cd9a469c | 8050 | done |
8051 | IFS=$as_save_IFS | |
b30fcfae | 8052 | |
bb612911 | 8053 | fi |
8054 | fi | |
b30fcfae | 8055 | AR=$ac_cv_prog_AR |
bb612911 | 8056 | if test -n "$AR"; then |
cd9a469c | 8057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8058 | $as_echo "$AR" >&6; } | |
bb612911 | 8059 | else |
cd9a469c | 8060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8061 | $as_echo "no" >&6; } | |
bb612911 | 8062 | fi |
8063 | ||
cd9a469c | 8064 | |
768691b5 | 8065 | fi |
8066 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8067 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8068 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8070 | $as_echo_n "checking for $ac_word... " >&6; } | |
8071 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8072 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8073 | else |
768691b5 | 8074 | if test -n "$AR"; then |
ae48753c | 8075 | ac_cv_prog_AR="$AR" # Let the user override the test. |
8076 | else | |
b30fcfae | 8077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8078 | for as_dir in $PATH | |
8079 | do | |
8080 | IFS=$as_save_IFS | |
8081 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8082 | for ac_exec_ext in '' $ac_executable_extensions; do |
8083 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8084 | ac_cv_prog_AR="${ncn_progname}" |
cd9a469c | 8085 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8086 | break 2 |
8087 | fi | |
8088 | done | |
cd9a469c | 8089 | done |
8090 | IFS=$as_save_IFS | |
b30fcfae | 8091 | |
bb612911 | 8092 | fi |
8093 | fi | |
b30fcfae | 8094 | AR=$ac_cv_prog_AR |
768691b5 | 8095 | if test -n "$AR"; then |
cd9a469c | 8096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8097 | $as_echo "$AR" >&6; } | |
bb612911 | 8098 | else |
cd9a469c | 8099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8100 | $as_echo "no" >&6; } | |
bb612911 | 8101 | fi |
b30fcfae | 8102 | |
cd9a469c | 8103 | |
768691b5 | 8104 | fi |
8105 | test -n "$ac_cv_prog_AR" && break | |
8106 | done | |
8107 | ||
8108 | if test -z "$ac_cv_prog_AR" ; then | |
8109 | set dummy ar | |
8110 | if test $build = $host ; then | |
8111 | AR="$2" | |
bb612911 | 8112 | else |
768691b5 | 8113 | AR="${ncn_tool_prefix}$2" |
bb612911 | 8114 | fi |
bb612911 | 8115 | fi |
8116 | ||
95a05732 | 8117 | |
8118 | ||
8119 | if test -n "$AS"; then | |
8120 | ac_cv_prog_AS=$AS | |
8121 | elif test -n "$ac_cv_prog_AS"; then | |
8122 | AS=$ac_cv_prog_AS | |
8123 | fi | |
8124 | ||
8125 | if test -n "$ac_cv_prog_AS"; then | |
8126 | for ncn_progname in as; do | |
8127 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8128 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8130 | $as_echo_n "checking for $ac_word... " >&6; } | |
8131 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8132 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8133 | else |
8134 | if test -n "$AS"; then | |
8135 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8136 | else | |
8137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8138 | for as_dir in $PATH | |
8139 | do | |
8140 | IFS=$as_save_IFS | |
8141 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8142 | for ac_exec_ext in '' $ac_executable_extensions; do |
8143 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8144 | ac_cv_prog_AS="${ncn_progname}" |
cd9a469c | 8145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8146 | break 2 |
8147 | fi | |
8148 | done | |
cd9a469c | 8149 | done |
8150 | IFS=$as_save_IFS | |
95a05732 | 8151 | |
8152 | fi | |
8153 | fi | |
8154 | AS=$ac_cv_prog_AS | |
8155 | if test -n "$AS"; then | |
cd9a469c | 8156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8157 | $as_echo "$AS" >&6; } | |
95a05732 | 8158 | else |
cd9a469c | 8159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8160 | $as_echo "no" >&6; } | |
95a05732 | 8161 | fi |
8162 | ||
cd9a469c | 8163 | |
95a05732 | 8164 | done |
8165 | fi | |
8166 | ||
8167 | for ncn_progname in as; do | |
768691b5 | 8168 | if test -n "$ncn_tool_prefix"; then |
8169 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8170 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8172 | $as_echo_n "checking for $ac_word... " >&6; } | |
8173 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8174 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8175 | else |
8176 | if test -n "$AS"; then | |
8177 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
a83ffacf | 8178 | else |
b30fcfae | 8179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8180 | for as_dir in $PATH | |
8181 | do | |
8182 | IFS=$as_save_IFS | |
8183 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8184 | for ac_exec_ext in '' $ac_executable_extensions; do |
8185 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8186 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8187 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8188 | break 2 |
8189 | fi | |
8190 | done | |
cd9a469c | 8191 | done |
8192 | IFS=$as_save_IFS | |
b30fcfae | 8193 | |
bb612911 | 8194 | fi |
8195 | fi | |
b30fcfae | 8196 | AS=$ac_cv_prog_AS |
bb612911 | 8197 | if test -n "$AS"; then |
cd9a469c | 8198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8199 | $as_echo "$AS" >&6; } | |
bb612911 | 8200 | else |
cd9a469c | 8201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8202 | $as_echo "no" >&6; } | |
bb612911 | 8203 | fi |
8204 | ||
cd9a469c | 8205 | |
768691b5 | 8206 | fi |
8207 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8208 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8209 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8211 | $as_echo_n "checking for $ac_word... " >&6; } | |
8212 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8213 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8214 | else |
768691b5 | 8215 | if test -n "$AS"; then |
8216 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
bb612911 | 8217 | else |
b30fcfae | 8218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8219 | for as_dir in $PATH | |
8220 | do | |
8221 | IFS=$as_save_IFS | |
8222 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8223 | for ac_exec_ext in '' $ac_executable_extensions; do |
8224 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8225 | ac_cv_prog_AS="${ncn_progname}" |
cd9a469c | 8226 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8227 | break 2 |
8228 | fi | |
8229 | done | |
cd9a469c | 8230 | done |
8231 | IFS=$as_save_IFS | |
b30fcfae | 8232 | |
bb612911 | 8233 | fi |
8234 | fi | |
b30fcfae | 8235 | AS=$ac_cv_prog_AS |
768691b5 | 8236 | if test -n "$AS"; then |
cd9a469c | 8237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8238 | $as_echo "$AS" >&6; } | |
bb612911 | 8239 | else |
cd9a469c | 8240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8241 | $as_echo "no" >&6; } | |
bb612911 | 8242 | fi |
b30fcfae | 8243 | |
cd9a469c | 8244 | |
768691b5 | 8245 | fi |
8246 | test -n "$ac_cv_prog_AS" && break | |
8247 | done | |
8248 | ||
8249 | if test -z "$ac_cv_prog_AS" ; then | |
8250 | set dummy as | |
8251 | if test $build = $host ; then | |
8252 | AS="$2" | |
bb612911 | 8253 | else |
768691b5 | 8254 | AS="${ncn_tool_prefix}$2" |
bb612911 | 8255 | fi |
bb612911 | 8256 | fi |
8257 | ||
95a05732 | 8258 | |
8259 | ||
8260 | if test -n "$DLLTOOL"; then | |
8261 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8262 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8263 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8264 | fi | |
8265 | ||
8266 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8267 | for ncn_progname in dlltool; do | |
8268 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8269 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8271 | $as_echo_n "checking for $ac_word... " >&6; } | |
8272 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8273 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8274 | else |
8275 | if test -n "$DLLTOOL"; then | |
8276 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8277 | else | |
8278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8279 | for as_dir in $PATH | |
8280 | do | |
8281 | IFS=$as_save_IFS | |
8282 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8283 | for ac_exec_ext in '' $ac_executable_extensions; do |
8284 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8285 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
cd9a469c | 8286 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8287 | break 2 |
8288 | fi | |
8289 | done | |
cd9a469c | 8290 | done |
8291 | IFS=$as_save_IFS | |
95a05732 | 8292 | |
8293 | fi | |
8294 | fi | |
8295 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8296 | if test -n "$DLLTOOL"; then | |
cd9a469c | 8297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8298 | $as_echo "$DLLTOOL" >&6; } | |
95a05732 | 8299 | else |
cd9a469c | 8300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8301 | $as_echo "no" >&6; } | |
95a05732 | 8302 | fi |
8303 | ||
cd9a469c | 8304 | |
95a05732 | 8305 | done |
8306 | fi | |
8307 | ||
8308 | for ncn_progname in dlltool; do | |
768691b5 | 8309 | if test -n "$ncn_tool_prefix"; then |
8310 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8311 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8313 | $as_echo_n "checking for $ac_word... " >&6; } | |
8314 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8315 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8316 | else |
8317 | if test -n "$DLLTOOL"; then | |
8318 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8319 | else | |
b30fcfae | 8320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8321 | for as_dir in $PATH | |
8322 | do | |
8323 | IFS=$as_save_IFS | |
8324 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8325 | for ac_exec_ext in '' $ac_executable_extensions; do |
8326 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8327 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8328 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8329 | break 2 |
8330 | fi | |
8331 | done | |
cd9a469c | 8332 | done |
8333 | IFS=$as_save_IFS | |
b30fcfae | 8334 | |
bb612911 | 8335 | fi |
8336 | fi | |
b30fcfae | 8337 | DLLTOOL=$ac_cv_prog_DLLTOOL |
bb612911 | 8338 | if test -n "$DLLTOOL"; then |
cd9a469c | 8339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8340 | $as_echo "$DLLTOOL" >&6; } | |
bb612911 | 8341 | else |
cd9a469c | 8342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8343 | $as_echo "no" >&6; } | |
bb612911 | 8344 | fi |
8345 | ||
cd9a469c | 8346 | |
768691b5 | 8347 | fi |
8348 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8349 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8350 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8352 | $as_echo_n "checking for $ac_word... " >&6; } | |
8353 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8354 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8355 | else |
768691b5 | 8356 | if test -n "$DLLTOOL"; then |
8357 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
bb612911 | 8358 | else |
b30fcfae | 8359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8360 | for as_dir in $PATH | |
8361 | do | |
8362 | IFS=$as_save_IFS | |
8363 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8364 | for ac_exec_ext in '' $ac_executable_extensions; do |
8365 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8366 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
cd9a469c | 8367 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8368 | break 2 |
8369 | fi | |
8370 | done | |
cd9a469c | 8371 | done |
8372 | IFS=$as_save_IFS | |
b30fcfae | 8373 | |
bb612911 | 8374 | fi |
8375 | fi | |
b30fcfae | 8376 | DLLTOOL=$ac_cv_prog_DLLTOOL |
768691b5 | 8377 | if test -n "$DLLTOOL"; then |
cd9a469c | 8378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8379 | $as_echo "$DLLTOOL" >&6; } | |
bb612911 | 8380 | else |
cd9a469c | 8381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8382 | $as_echo "no" >&6; } | |
bb612911 | 8383 | fi |
b30fcfae | 8384 | |
cd9a469c | 8385 | |
768691b5 | 8386 | fi |
8387 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8388 | done | |
8389 | ||
8390 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8391 | set dummy dlltool | |
8392 | if test $build = $host ; then | |
8393 | DLLTOOL="$2" | |
bb612911 | 8394 | else |
768691b5 | 8395 | DLLTOOL="${ncn_tool_prefix}$2" |
bb612911 | 8396 | fi |
bb612911 | 8397 | fi |
8398 | ||
95a05732 | 8399 | |
8400 | ||
8401 | if test -n "$LD"; then | |
8402 | ac_cv_prog_LD=$LD | |
8403 | elif test -n "$ac_cv_prog_LD"; then | |
8404 | LD=$ac_cv_prog_LD | |
8405 | fi | |
8406 | ||
8407 | if test -n "$ac_cv_prog_LD"; then | |
8408 | for ncn_progname in ld; do | |
8409 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8410 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8412 | $as_echo_n "checking for $ac_word... " >&6; } | |
8413 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8414 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8415 | else |
8416 | if test -n "$LD"; then | |
8417 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8418 | else | |
8419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8420 | for as_dir in $PATH | |
8421 | do | |
8422 | IFS=$as_save_IFS | |
8423 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8424 | for ac_exec_ext in '' $ac_executable_extensions; do |
8425 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8426 | ac_cv_prog_LD="${ncn_progname}" |
cd9a469c | 8427 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8428 | break 2 |
8429 | fi | |
8430 | done | |
cd9a469c | 8431 | done |
8432 | IFS=$as_save_IFS | |
95a05732 | 8433 | |
8434 | fi | |
8435 | fi | |
8436 | LD=$ac_cv_prog_LD | |
8437 | if test -n "$LD"; then | |
cd9a469c | 8438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8439 | $as_echo "$LD" >&6; } | |
95a05732 | 8440 | else |
cd9a469c | 8441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8442 | $as_echo "no" >&6; } | |
95a05732 | 8443 | fi |
8444 | ||
cd9a469c | 8445 | |
95a05732 | 8446 | done |
8447 | fi | |
8448 | ||
8449 | for ncn_progname in ld; do | |
768691b5 | 8450 | if test -n "$ncn_tool_prefix"; then |
8451 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8452 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8454 | $as_echo_n "checking for $ac_word... " >&6; } | |
8455 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8456 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8457 | else |
8458 | if test -n "$LD"; then | |
8459 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8460 | else | |
b30fcfae | 8461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8462 | for as_dir in $PATH | |
8463 | do | |
8464 | IFS=$as_save_IFS | |
8465 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8466 | for ac_exec_ext in '' $ac_executable_extensions; do |
8467 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8468 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8470 | break 2 |
8471 | fi | |
8472 | done | |
cd9a469c | 8473 | done |
8474 | IFS=$as_save_IFS | |
b30fcfae | 8475 | |
bb612911 | 8476 | fi |
8477 | fi | |
b30fcfae | 8478 | LD=$ac_cv_prog_LD |
bb612911 | 8479 | if test -n "$LD"; then |
cd9a469c | 8480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8481 | $as_echo "$LD" >&6; } | |
bb612911 | 8482 | else |
cd9a469c | 8483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8484 | $as_echo "no" >&6; } | |
bb612911 | 8485 | fi |
8486 | ||
cd9a469c | 8487 | |
768691b5 | 8488 | fi |
8489 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8490 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8491 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8493 | $as_echo_n "checking for $ac_word... " >&6; } | |
8494 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8495 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8496 | else |
768691b5 | 8497 | if test -n "$LD"; then |
8498 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
7172be51 | 8499 | else |
b30fcfae | 8500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8501 | for as_dir in $PATH | |
8502 | do | |
8503 | IFS=$as_save_IFS | |
8504 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8505 | for ac_exec_ext in '' $ac_executable_extensions; do |
8506 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8507 | ac_cv_prog_LD="${ncn_progname}" |
cd9a469c | 8508 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8509 | break 2 |
8510 | fi | |
8511 | done | |
cd9a469c | 8512 | done |
8513 | IFS=$as_save_IFS | |
b30fcfae | 8514 | |
bb612911 | 8515 | fi |
8516 | fi | |
b30fcfae | 8517 | LD=$ac_cv_prog_LD |
768691b5 | 8518 | if test -n "$LD"; then |
cd9a469c | 8519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8520 | $as_echo "$LD" >&6; } | |
bb612911 | 8521 | else |
cd9a469c | 8522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8523 | $as_echo "no" >&6; } | |
bb612911 | 8524 | fi |
b30fcfae | 8525 | |
cd9a469c | 8526 | |
768691b5 | 8527 | fi |
8528 | test -n "$ac_cv_prog_LD" && break | |
8529 | done | |
8530 | ||
8531 | if test -z "$ac_cv_prog_LD" ; then | |
8532 | set dummy ld | |
8533 | if test $build = $host ; then | |
8534 | LD="$2" | |
bb612911 | 8535 | else |
768691b5 | 8536 | LD="${ncn_tool_prefix}$2" |
bb612911 | 8537 | fi |
bb612911 | 8538 | fi |
8539 | ||
95a05732 | 8540 | |
8541 | ||
8542 | if test -n "$LIPO"; then | |
8543 | ac_cv_prog_LIPO=$LIPO | |
8544 | elif test -n "$ac_cv_prog_LIPO"; then | |
8545 | LIPO=$ac_cv_prog_LIPO | |
8546 | fi | |
8547 | ||
8548 | if test -n "$ac_cv_prog_LIPO"; then | |
8549 | for ncn_progname in lipo; do | |
8550 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8551 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8553 | $as_echo_n "checking for $ac_word... " >&6; } | |
8554 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8555 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8556 | else |
8557 | if test -n "$LIPO"; then | |
8558 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8559 | else | |
8560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8561 | for as_dir in $PATH | |
8562 | do | |
8563 | IFS=$as_save_IFS | |
8564 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8565 | for ac_exec_ext in '' $ac_executable_extensions; do |
8566 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8567 | ac_cv_prog_LIPO="${ncn_progname}" |
cd9a469c | 8568 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8569 | break 2 |
8570 | fi | |
8571 | done | |
cd9a469c | 8572 | done |
8573 | IFS=$as_save_IFS | |
95a05732 | 8574 | |
8575 | fi | |
8576 | fi | |
8577 | LIPO=$ac_cv_prog_LIPO | |
8578 | if test -n "$LIPO"; then | |
cd9a469c | 8579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8580 | $as_echo "$LIPO" >&6; } | |
95a05732 | 8581 | else |
cd9a469c | 8582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8583 | $as_echo "no" >&6; } | |
95a05732 | 8584 | fi |
8585 | ||
cd9a469c | 8586 | |
95a05732 | 8587 | done |
8588 | fi | |
8589 | ||
8590 | for ncn_progname in lipo; do | |
f5aebe3e | 8591 | if test -n "$ncn_tool_prefix"; then |
8592 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8593 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8595 | $as_echo_n "checking for $ac_word... " >&6; } | |
8596 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8597 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 8598 | else |
8599 | if test -n "$LIPO"; then | |
8600 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8601 | else | |
b30fcfae | 8602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8603 | for as_dir in $PATH | |
8604 | do | |
8605 | IFS=$as_save_IFS | |
8606 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8607 | for ac_exec_ext in '' $ac_executable_extensions; do |
8608 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8609 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8610 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8611 | break 2 |
8612 | fi | |
8613 | done | |
cd9a469c | 8614 | done |
8615 | IFS=$as_save_IFS | |
b30fcfae | 8616 | |
f5aebe3e | 8617 | fi |
8618 | fi | |
b30fcfae | 8619 | LIPO=$ac_cv_prog_LIPO |
f5aebe3e | 8620 | if test -n "$LIPO"; then |
cd9a469c | 8621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8622 | $as_echo "$LIPO" >&6; } | |
f5aebe3e | 8623 | else |
cd9a469c | 8624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8625 | $as_echo "no" >&6; } | |
f5aebe3e | 8626 | fi |
8627 | ||
cd9a469c | 8628 | |
f5aebe3e | 8629 | fi |
8630 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8631 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8632 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8634 | $as_echo_n "checking for $ac_word... " >&6; } | |
8635 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8636 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 8637 | else |
8638 | if test -n "$LIPO"; then | |
8639 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8640 | else | |
b30fcfae | 8641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8642 | for as_dir in $PATH | |
8643 | do | |
8644 | IFS=$as_save_IFS | |
8645 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8646 | for ac_exec_ext in '' $ac_executable_extensions; do |
8647 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8648 | ac_cv_prog_LIPO="${ncn_progname}" |
cd9a469c | 8649 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8650 | break 2 |
8651 | fi | |
8652 | done | |
cd9a469c | 8653 | done |
8654 | IFS=$as_save_IFS | |
b30fcfae | 8655 | |
f5aebe3e | 8656 | fi |
8657 | fi | |
b30fcfae | 8658 | LIPO=$ac_cv_prog_LIPO |
f5aebe3e | 8659 | if test -n "$LIPO"; then |
cd9a469c | 8660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8661 | $as_echo "$LIPO" >&6; } | |
f5aebe3e | 8662 | else |
cd9a469c | 8663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8664 | $as_echo "no" >&6; } | |
f5aebe3e | 8665 | fi |
b30fcfae | 8666 | |
cd9a469c | 8667 | |
f5aebe3e | 8668 | fi |
8669 | test -n "$ac_cv_prog_LIPO" && break | |
8670 | done | |
8671 | ||
8672 | if test -z "$ac_cv_prog_LIPO" ; then | |
8673 | set dummy lipo | |
8674 | if test $build = $host ; then | |
8675 | LIPO="$2" | |
8676 | else | |
8677 | LIPO="${ncn_tool_prefix}$2" | |
8678 | fi | |
8679 | fi | |
8680 | ||
95a05732 | 8681 | |
8682 | ||
8683 | if test -n "$NM"; then | |
8684 | ac_cv_prog_NM=$NM | |
8685 | elif test -n "$ac_cv_prog_NM"; then | |
8686 | NM=$ac_cv_prog_NM | |
8687 | fi | |
8688 | ||
8689 | if test -n "$ac_cv_prog_NM"; then | |
8690 | for ncn_progname in nm; do | |
8691 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8692 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8694 | $as_echo_n "checking for $ac_word... " >&6; } | |
8695 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8696 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8697 | else |
8698 | if test -n "$NM"; then | |
8699 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8700 | else | |
b30fcfae | 8701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8702 | for as_dir in $PATH | |
8703 | do | |
8704 | IFS=$as_save_IFS | |
8705 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8706 | for ac_exec_ext in '' $ac_executable_extensions; do |
8707 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8708 | ac_cv_prog_NM="${ncn_progname}" |
cd9a469c | 8709 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8710 | break 2 |
8711 | fi | |
8712 | done | |
cd9a469c | 8713 | done |
8714 | IFS=$as_save_IFS | |
b30fcfae | 8715 | |
bb612911 | 8716 | fi |
8717 | fi | |
b30fcfae | 8718 | NM=$ac_cv_prog_NM |
bb612911 | 8719 | if test -n "$NM"; then |
cd9a469c | 8720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8721 | $as_echo "$NM" >&6; } | |
bb612911 | 8722 | else |
cd9a469c | 8723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8724 | $as_echo "no" >&6; } | |
bb612911 | 8725 | fi |
8726 | ||
cd9a469c | 8727 | |
95a05732 | 8728 | done |
8729 | fi | |
8730 | ||
8731 | for ncn_progname in nm; do | |
8732 | if test -n "$ncn_tool_prefix"; then | |
8733 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8734 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8736 | $as_echo_n "checking for $ac_word... " >&6; } | |
8737 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8738 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8739 | else |
768691b5 | 8740 | if test -n "$NM"; then |
8741 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
bb612911 | 8742 | else |
b30fcfae | 8743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8744 | for as_dir in $PATH | |
8745 | do | |
8746 | IFS=$as_save_IFS | |
8747 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8748 | for ac_exec_ext in '' $ac_executable_extensions; do |
8749 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8750 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8751 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8752 | break 2 |
8753 | fi | |
8754 | done | |
cd9a469c | 8755 | done |
8756 | IFS=$as_save_IFS | |
b30fcfae | 8757 | |
bb612911 | 8758 | fi |
8759 | fi | |
b30fcfae | 8760 | NM=$ac_cv_prog_NM |
768691b5 | 8761 | if test -n "$NM"; then |
cd9a469c | 8762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8763 | $as_echo "$NM" >&6; } | |
bb612911 | 8764 | else |
cd9a469c | 8765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8766 | $as_echo "no" >&6; } | |
bb612911 | 8767 | fi |
b30fcfae | 8768 | |
cd9a469c | 8769 | |
768691b5 | 8770 | fi |
95a05732 | 8771 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8772 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8773 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8775 | $as_echo_n "checking for $ac_word... " >&6; } | |
8776 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8777 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8778 | else |
8779 | if test -n "$NM"; then | |
8780 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8781 | else | |
8782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8783 | for as_dir in $PATH | |
8784 | do | |
8785 | IFS=$as_save_IFS | |
8786 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8787 | for ac_exec_ext in '' $ac_executable_extensions; do |
8788 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8789 | ac_cv_prog_NM="${ncn_progname}" |
cd9a469c | 8790 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8791 | break 2 |
8792 | fi | |
8793 | done | |
cd9a469c | 8794 | done |
8795 | IFS=$as_save_IFS | |
95a05732 | 8796 | |
8797 | fi | |
8798 | fi | |
8799 | NM=$ac_cv_prog_NM | |
8800 | if test -n "$NM"; then | |
cd9a469c | 8801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8802 | $as_echo "$NM" >&6; } | |
95a05732 | 8803 | else |
cd9a469c | 8804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8805 | $as_echo "no" >&6; } | |
95a05732 | 8806 | fi |
8807 | ||
cd9a469c | 8808 | |
95a05732 | 8809 | fi |
8810 | test -n "$ac_cv_prog_NM" && break | |
8811 | done | |
8812 | ||
8813 | if test -z "$ac_cv_prog_NM" ; then | |
8814 | set dummy nm | |
8815 | if test $build = $host ; then | |
8816 | NM="$2" | |
8817 | else | |
8818 | NM="${ncn_tool_prefix}$2" | |
8819 | fi | |
8820 | fi | |
8821 | ||
8822 | ||
8823 | ||
8824 | if test -n "$RANLIB"; then | |
8825 | ac_cv_prog_RANLIB=$RANLIB | |
8826 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8827 | RANLIB=$ac_cv_prog_RANLIB | |
8828 | fi | |
8829 | ||
8830 | if test -n "$ac_cv_prog_RANLIB"; then | |
8831 | for ncn_progname in ranlib; do | |
8832 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8833 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8835 | $as_echo_n "checking for $ac_word... " >&6; } | |
8836 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8837 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8838 | else |
8839 | if test -n "$RANLIB"; then | |
8840 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8841 | else | |
8842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8843 | for as_dir in $PATH | |
8844 | do | |
8845 | IFS=$as_save_IFS | |
8846 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8847 | for ac_exec_ext in '' $ac_executable_extensions; do |
8848 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8849 | ac_cv_prog_RANLIB="${ncn_progname}" |
cd9a469c | 8850 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8851 | break 2 |
8852 | fi | |
8853 | done | |
cd9a469c | 8854 | done |
8855 | IFS=$as_save_IFS | |
95a05732 | 8856 | |
8857 | fi | |
8858 | fi | |
8859 | RANLIB=$ac_cv_prog_RANLIB | |
8860 | if test -n "$RANLIB"; then | |
cd9a469c | 8861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8862 | $as_echo "$RANLIB" >&6; } | |
95a05732 | 8863 | else |
cd9a469c | 8864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8865 | $as_echo "no" >&6; } | |
95a05732 | 8866 | fi |
8867 | ||
cd9a469c | 8868 | |
95a05732 | 8869 | done |
8870 | fi | |
bb612911 | 8871 | |
95a05732 | 8872 | for ncn_progname in ranlib; do |
768691b5 | 8873 | if test -n "$ncn_tool_prefix"; then |
8874 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8875 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8877 | $as_echo_n "checking for $ac_word... " >&6; } | |
8878 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8879 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8880 | else |
8881 | if test -n "$RANLIB"; then | |
8882 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8883 | else | |
b30fcfae | 8884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8885 | for as_dir in $PATH | |
8886 | do | |
8887 | IFS=$as_save_IFS | |
8888 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8889 | for ac_exec_ext in '' $ac_executable_extensions; do |
8890 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8891 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8892 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8893 | break 2 |
8894 | fi | |
8895 | done | |
cd9a469c | 8896 | done |
8897 | IFS=$as_save_IFS | |
b30fcfae | 8898 | |
bb612911 | 8899 | fi |
8900 | fi | |
b30fcfae | 8901 | RANLIB=$ac_cv_prog_RANLIB |
bb612911 | 8902 | if test -n "$RANLIB"; then |
cd9a469c | 8903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8904 | $as_echo "$RANLIB" >&6; } | |
bb612911 | 8905 | else |
cd9a469c | 8906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8907 | $as_echo "no" >&6; } | |
bb612911 | 8908 | fi |
8909 | ||
cd9a469c | 8910 | |
768691b5 | 8911 | fi |
8912 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
8913 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8914 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8916 | $as_echo_n "checking for $ac_word... " >&6; } | |
8917 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8918 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8919 | else |
768691b5 | 8920 | if test -n "$RANLIB"; then |
8921 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
bb612911 | 8922 | else |
b30fcfae | 8923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8924 | for as_dir in $PATH | |
8925 | do | |
8926 | IFS=$as_save_IFS | |
8927 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8928 | for ac_exec_ext in '' $ac_executable_extensions; do |
8929 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8930 | ac_cv_prog_RANLIB="${ncn_progname}" |
cd9a469c | 8931 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8932 | break 2 |
8933 | fi | |
8934 | done | |
cd9a469c | 8935 | done |
8936 | IFS=$as_save_IFS | |
b30fcfae | 8937 | |
bb612911 | 8938 | fi |
8939 | fi | |
b30fcfae | 8940 | RANLIB=$ac_cv_prog_RANLIB |
768691b5 | 8941 | if test -n "$RANLIB"; then |
cd9a469c | 8942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8943 | $as_echo "$RANLIB" >&6; } | |
bb612911 | 8944 | else |
cd9a469c | 8945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8946 | $as_echo "no" >&6; } | |
bb612911 | 8947 | fi |
b30fcfae | 8948 | |
cd9a469c | 8949 | |
bb612911 | 8950 | fi |
768691b5 | 8951 | test -n "$ac_cv_prog_RANLIB" && break |
8952 | done | |
8953 | ||
8954 | if test -z "$ac_cv_prog_RANLIB" ; then | |
68645a6b | 8955 | RANLIB="true" |
bb612911 | 8956 | fi |
8957 | ||
95a05732 | 8958 | |
8959 | ||
8960 | if test -n "$STRIP"; then | |
8961 | ac_cv_prog_STRIP=$STRIP | |
8962 | elif test -n "$ac_cv_prog_STRIP"; then | |
8963 | STRIP=$ac_cv_prog_STRIP | |
8964 | fi | |
8965 | ||
8966 | if test -n "$ac_cv_prog_STRIP"; then | |
8967 | for ncn_progname in strip; do | |
8968 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8969 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8971 | $as_echo_n "checking for $ac_word... " >&6; } | |
8972 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8973 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8974 | else |
8975 | if test -n "$STRIP"; then | |
8976 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8977 | else | |
8978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8979 | for as_dir in $PATH | |
8980 | do | |
8981 | IFS=$as_save_IFS | |
8982 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8983 | for ac_exec_ext in '' $ac_executable_extensions; do |
8984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8985 | ac_cv_prog_STRIP="${ncn_progname}" |
cd9a469c | 8986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8987 | break 2 |
8988 | fi | |
8989 | done | |
cd9a469c | 8990 | done |
8991 | IFS=$as_save_IFS | |
95a05732 | 8992 | |
8993 | fi | |
8994 | fi | |
8995 | STRIP=$ac_cv_prog_STRIP | |
8996 | if test -n "$STRIP"; then | |
cd9a469c | 8997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8998 | $as_echo "$STRIP" >&6; } | |
95a05732 | 8999 | else |
cd9a469c | 9000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9001 | $as_echo "no" >&6; } | |
95a05732 | 9002 | fi |
9003 | ||
cd9a469c | 9004 | |
95a05732 | 9005 | done |
9006 | fi | |
9007 | ||
9008 | for ncn_progname in strip; do | |
f5aebe3e | 9009 | if test -n "$ncn_tool_prefix"; then |
9010 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9011 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9013 | $as_echo_n "checking for $ac_word... " >&6; } | |
9014 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9015 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 9016 | else |
9017 | if test -n "$STRIP"; then | |
9018 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9019 | else | |
b30fcfae | 9020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9021 | for as_dir in $PATH | |
9022 | do | |
9023 | IFS=$as_save_IFS | |
9024 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9025 | for ac_exec_ext in '' $ac_executable_extensions; do |
9026 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9027 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9028 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9029 | break 2 |
9030 | fi | |
9031 | done | |
cd9a469c | 9032 | done |
9033 | IFS=$as_save_IFS | |
b30fcfae | 9034 | |
f5aebe3e | 9035 | fi |
9036 | fi | |
b30fcfae | 9037 | STRIP=$ac_cv_prog_STRIP |
f5aebe3e | 9038 | if test -n "$STRIP"; then |
cd9a469c | 9039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9040 | $as_echo "$STRIP" >&6; } | |
f5aebe3e | 9041 | else |
cd9a469c | 9042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9043 | $as_echo "no" >&6; } | |
f5aebe3e | 9044 | fi |
9045 | ||
cd9a469c | 9046 | |
f5aebe3e | 9047 | fi |
9048 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9049 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9050 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9052 | $as_echo_n "checking for $ac_word... " >&6; } | |
9053 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9054 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 9055 | else |
9056 | if test -n "$STRIP"; then | |
9057 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9058 | else | |
b30fcfae | 9059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9060 | for as_dir in $PATH | |
9061 | do | |
9062 | IFS=$as_save_IFS | |
9063 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9064 | for ac_exec_ext in '' $ac_executable_extensions; do |
9065 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9066 | ac_cv_prog_STRIP="${ncn_progname}" |
cd9a469c | 9067 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9068 | break 2 |
9069 | fi | |
9070 | done | |
cd9a469c | 9071 | done |
9072 | IFS=$as_save_IFS | |
b30fcfae | 9073 | |
f5aebe3e | 9074 | fi |
9075 | fi | |
b30fcfae | 9076 | STRIP=$ac_cv_prog_STRIP |
f5aebe3e | 9077 | if test -n "$STRIP"; then |
cd9a469c | 9078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9079 | $as_echo "$STRIP" >&6; } | |
f5aebe3e | 9080 | else |
cd9a469c | 9081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9082 | $as_echo "no" >&6; } | |
f5aebe3e | 9083 | fi |
b30fcfae | 9084 | |
cd9a469c | 9085 | |
f5aebe3e | 9086 | fi |
9087 | test -n "$ac_cv_prog_STRIP" && break | |
9088 | done | |
9089 | ||
9090 | if test -z "$ac_cv_prog_STRIP" ; then | |
68645a6b | 9091 | STRIP="true" |
f5aebe3e | 9092 | fi |
9093 | ||
95a05732 | 9094 | |
9095 | ||
9096 | if test -n "$WINDRES"; then | |
9097 | ac_cv_prog_WINDRES=$WINDRES | |
9098 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9099 | WINDRES=$ac_cv_prog_WINDRES | |
9100 | fi | |
9101 | ||
9102 | if test -n "$ac_cv_prog_WINDRES"; then | |
9103 | for ncn_progname in windres; do | |
9104 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9105 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9107 | $as_echo_n "checking for $ac_word... " >&6; } | |
9108 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9109 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9110 | else |
9111 | if test -n "$WINDRES"; then | |
9112 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9113 | else | |
9114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9115 | for as_dir in $PATH | |
9116 | do | |
9117 | IFS=$as_save_IFS | |
9118 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9119 | for ac_exec_ext in '' $ac_executable_extensions; do |
9120 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9121 | ac_cv_prog_WINDRES="${ncn_progname}" |
cd9a469c | 9122 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9123 | break 2 |
9124 | fi | |
9125 | done | |
cd9a469c | 9126 | done |
9127 | IFS=$as_save_IFS | |
95a05732 | 9128 | |
9129 | fi | |
9130 | fi | |
9131 | WINDRES=$ac_cv_prog_WINDRES | |
9132 | if test -n "$WINDRES"; then | |
cd9a469c | 9133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9134 | $as_echo "$WINDRES" >&6; } | |
95a05732 | 9135 | else |
cd9a469c | 9136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9137 | $as_echo "no" >&6; } | |
95a05732 | 9138 | fi |
9139 | ||
cd9a469c | 9140 | |
95a05732 | 9141 | done |
9142 | fi | |
9143 | ||
9144 | for ncn_progname in windres; do | |
768691b5 | 9145 | if test -n "$ncn_tool_prefix"; then |
9146 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9147 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9149 | $as_echo_n "checking for $ac_word... " >&6; } | |
9150 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9151 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9152 | else |
9153 | if test -n "$WINDRES"; then | |
9154 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9155 | else | |
b30fcfae | 9156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9157 | for as_dir in $PATH | |
9158 | do | |
9159 | IFS=$as_save_IFS | |
9160 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9161 | for ac_exec_ext in '' $ac_executable_extensions; do |
9162 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9163 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9164 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9165 | break 2 |
9166 | fi | |
9167 | done | |
cd9a469c | 9168 | done |
9169 | IFS=$as_save_IFS | |
b30fcfae | 9170 | |
bb612911 | 9171 | fi |
9172 | fi | |
b30fcfae | 9173 | WINDRES=$ac_cv_prog_WINDRES |
bb612911 | 9174 | if test -n "$WINDRES"; then |
cd9a469c | 9175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9176 | $as_echo "$WINDRES" >&6; } | |
bb612911 | 9177 | else |
cd9a469c | 9178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9179 | $as_echo "no" >&6; } | |
bb612911 | 9180 | fi |
9181 | ||
cd9a469c | 9182 | |
768691b5 | 9183 | fi |
9184 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9185 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9186 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9188 | $as_echo_n "checking for $ac_word... " >&6; } | |
9189 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9190 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9191 | else |
768691b5 | 9192 | if test -n "$WINDRES"; then |
9193 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
bb612911 | 9194 | else |
b30fcfae | 9195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9196 | for as_dir in $PATH | |
9197 | do | |
9198 | IFS=$as_save_IFS | |
9199 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9200 | for ac_exec_ext in '' $ac_executable_extensions; do |
9201 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9202 | ac_cv_prog_WINDRES="${ncn_progname}" |
cd9a469c | 9203 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9204 | break 2 |
9205 | fi | |
9206 | done | |
cd9a469c | 9207 | done |
9208 | IFS=$as_save_IFS | |
b30fcfae | 9209 | |
bb612911 | 9210 | fi |
9211 | fi | |
b30fcfae | 9212 | WINDRES=$ac_cv_prog_WINDRES |
768691b5 | 9213 | if test -n "$WINDRES"; then |
cd9a469c | 9214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9215 | $as_echo "$WINDRES" >&6; } | |
bb612911 | 9216 | else |
cd9a469c | 9217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9218 | $as_echo "no" >&6; } | |
bb612911 | 9219 | fi |
b30fcfae | 9220 | |
cd9a469c | 9221 | |
768691b5 | 9222 | fi |
9223 | test -n "$ac_cv_prog_WINDRES" && break | |
9224 | done | |
9225 | ||
9226 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9227 | set dummy windres | |
9228 | if test $build = $host ; then | |
9229 | WINDRES="$2" | |
bb612911 | 9230 | else |
768691b5 | 9231 | WINDRES="${ncn_tool_prefix}$2" |
bb612911 | 9232 | fi |
bb612911 | 9233 | fi |
9234 | ||
95a05732 | 9235 | |
9236 | ||
75d6a0a9 | 9237 | if test -n "$WINDMC"; then |
9238 | ac_cv_prog_WINDMC=$WINDMC | |
9239 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9240 | WINDMC=$ac_cv_prog_WINDMC | |
9241 | fi | |
9242 | ||
9243 | if test -n "$ac_cv_prog_WINDMC"; then | |
9244 | for ncn_progname in windmc; do | |
9245 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9246 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9248 | $as_echo_n "checking for $ac_word... " >&6; } | |
9249 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9250 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 9251 | else |
9252 | if test -n "$WINDMC"; then | |
9253 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9254 | else | |
9255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9256 | for as_dir in $PATH | |
9257 | do | |
9258 | IFS=$as_save_IFS | |
9259 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9260 | for ac_exec_ext in '' $ac_executable_extensions; do |
9261 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 9262 | ac_cv_prog_WINDMC="${ncn_progname}" |
cd9a469c | 9263 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 9264 | break 2 |
9265 | fi | |
9266 | done | |
cd9a469c | 9267 | done |
9268 | IFS=$as_save_IFS | |
75d6a0a9 | 9269 | |
9270 | fi | |
9271 | fi | |
9272 | WINDMC=$ac_cv_prog_WINDMC | |
9273 | if test -n "$WINDMC"; then | |
cd9a469c | 9274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9275 | $as_echo "$WINDMC" >&6; } | |
75d6a0a9 | 9276 | else |
cd9a469c | 9277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9278 | $as_echo "no" >&6; } | |
75d6a0a9 | 9279 | fi |
9280 | ||
cd9a469c | 9281 | |
75d6a0a9 | 9282 | done |
9283 | fi | |
9284 | ||
9285 | for ncn_progname in windmc; do | |
9286 | if test -n "$ncn_tool_prefix"; then | |
9287 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9288 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9290 | $as_echo_n "checking for $ac_word... " >&6; } | |
9291 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9292 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 9293 | else |
9294 | if test -n "$WINDMC"; then | |
9295 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9296 | else | |
9297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9298 | for as_dir in $PATH | |
9299 | do | |
9300 | IFS=$as_save_IFS | |
9301 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9302 | for ac_exec_ext in '' $ac_executable_extensions; do |
9303 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 9304 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9305 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 9306 | break 2 |
9307 | fi | |
9308 | done | |
cd9a469c | 9309 | done |
9310 | IFS=$as_save_IFS | |
75d6a0a9 | 9311 | |
9312 | fi | |
9313 | fi | |
9314 | WINDMC=$ac_cv_prog_WINDMC | |
9315 | if test -n "$WINDMC"; then | |
cd9a469c | 9316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9317 | $as_echo "$WINDMC" >&6; } | |
75d6a0a9 | 9318 | else |
cd9a469c | 9319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9320 | $as_echo "no" >&6; } | |
75d6a0a9 | 9321 | fi |
9322 | ||
cd9a469c | 9323 | |
75d6a0a9 | 9324 | fi |
9325 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9326 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9327 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9329 | $as_echo_n "checking for $ac_word... " >&6; } | |
9330 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9331 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 9332 | else |
9333 | if test -n "$WINDMC"; then | |
9334 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9335 | else | |
9336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9337 | for as_dir in $PATH | |
9338 | do | |
9339 | IFS=$as_save_IFS | |
9340 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9341 | for ac_exec_ext in '' $ac_executable_extensions; do |
9342 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 9343 | ac_cv_prog_WINDMC="${ncn_progname}" |
cd9a469c | 9344 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 9345 | break 2 |
9346 | fi | |
9347 | done | |
cd9a469c | 9348 | done |
9349 | IFS=$as_save_IFS | |
75d6a0a9 | 9350 | |
9351 | fi | |
9352 | fi | |
9353 | WINDMC=$ac_cv_prog_WINDMC | |
9354 | if test -n "$WINDMC"; then | |
cd9a469c | 9355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9356 | $as_echo "$WINDMC" >&6; } | |
75d6a0a9 | 9357 | else |
cd9a469c | 9358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9359 | $as_echo "no" >&6; } | |
75d6a0a9 | 9360 | fi |
9361 | ||
cd9a469c | 9362 | |
75d6a0a9 | 9363 | fi |
9364 | test -n "$ac_cv_prog_WINDMC" && break | |
9365 | done | |
9366 | ||
9367 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9368 | set dummy windmc | |
9369 | if test $build = $host ; then | |
9370 | WINDMC="$2" | |
9371 | else | |
9372 | WINDMC="${ncn_tool_prefix}$2" | |
9373 | fi | |
9374 | fi | |
9375 | ||
9376 | ||
9377 | ||
95a05732 | 9378 | if test -n "$OBJCOPY"; then |
9379 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9380 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9381 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9382 | fi | |
9383 | ||
9384 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9385 | for ncn_progname in objcopy; do | |
9386 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9387 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9389 | $as_echo_n "checking for $ac_word... " >&6; } | |
9390 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9391 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9392 | else |
9393 | if test -n "$OBJCOPY"; then | |
9394 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9395 | else | |
9396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9397 | for as_dir in $PATH | |
9398 | do | |
9399 | IFS=$as_save_IFS | |
9400 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9401 | for ac_exec_ext in '' $ac_executable_extensions; do |
9402 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9403 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
cd9a469c | 9404 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9405 | break 2 |
9406 | fi | |
9407 | done | |
cd9a469c | 9408 | done |
9409 | IFS=$as_save_IFS | |
95a05732 | 9410 | |
9411 | fi | |
9412 | fi | |
9413 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9414 | if test -n "$OBJCOPY"; then | |
cd9a469c | 9415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9416 | $as_echo "$OBJCOPY" >&6; } | |
95a05732 | 9417 | else |
cd9a469c | 9418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9419 | $as_echo "no" >&6; } | |
95a05732 | 9420 | fi |
9421 | ||
cd9a469c | 9422 | |
95a05732 | 9423 | done |
9424 | fi | |
9425 | ||
9426 | for ncn_progname in objcopy; do | |
768691b5 | 9427 | if test -n "$ncn_tool_prefix"; then |
9428 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9429 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9431 | $as_echo_n "checking for $ac_word... " >&6; } | |
9432 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9433 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9434 | else |
9435 | if test -n "$OBJCOPY"; then | |
9436 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9437 | else | |
b30fcfae | 9438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9439 | for as_dir in $PATH | |
9440 | do | |
9441 | IFS=$as_save_IFS | |
9442 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9443 | for ac_exec_ext in '' $ac_executable_extensions; do |
9444 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9445 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9446 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9447 | break 2 |
9448 | fi | |
9449 | done | |
cd9a469c | 9450 | done |
9451 | IFS=$as_save_IFS | |
b30fcfae | 9452 | |
bb612911 | 9453 | fi |
9454 | fi | |
b30fcfae | 9455 | OBJCOPY=$ac_cv_prog_OBJCOPY |
bb612911 | 9456 | if test -n "$OBJCOPY"; then |
cd9a469c | 9457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9458 | $as_echo "$OBJCOPY" >&6; } | |
bb612911 | 9459 | else |
cd9a469c | 9460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9461 | $as_echo "no" >&6; } | |
bb612911 | 9462 | fi |
9463 | ||
cd9a469c | 9464 | |
768691b5 | 9465 | fi |
9466 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9467 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9468 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9470 | $as_echo_n "checking for $ac_word... " >&6; } | |
9471 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9472 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9473 | else |
768691b5 | 9474 | if test -n "$OBJCOPY"; then |
9475 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
bb612911 | 9476 | else |
b30fcfae | 9477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9478 | for as_dir in $PATH | |
9479 | do | |
9480 | IFS=$as_save_IFS | |
9481 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9482 | for ac_exec_ext in '' $ac_executable_extensions; do |
9483 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9484 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
cd9a469c | 9485 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9486 | break 2 |
9487 | fi | |
9488 | done | |
cd9a469c | 9489 | done |
9490 | IFS=$as_save_IFS | |
b30fcfae | 9491 | |
bb612911 | 9492 | fi |
9493 | fi | |
b30fcfae | 9494 | OBJCOPY=$ac_cv_prog_OBJCOPY |
768691b5 | 9495 | if test -n "$OBJCOPY"; then |
cd9a469c | 9496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9497 | $as_echo "$OBJCOPY" >&6; } | |
bb612911 | 9498 | else |
cd9a469c | 9499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9500 | $as_echo "no" >&6; } | |
bb612911 | 9501 | fi |
b30fcfae | 9502 | |
cd9a469c | 9503 | |
768691b5 | 9504 | fi |
9505 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9506 | done | |
9507 | ||
9508 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9509 | set dummy objcopy | |
9510 | if test $build = $host ; then | |
9511 | OBJCOPY="$2" | |
bb612911 | 9512 | else |
768691b5 | 9513 | OBJCOPY="${ncn_tool_prefix}$2" |
bb612911 | 9514 | fi |
bb612911 | 9515 | fi |
9516 | ||
95a05732 | 9517 | |
9518 | ||
9519 | if test -n "$OBJDUMP"; then | |
9520 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9521 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9522 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9523 | fi | |
9524 | ||
9525 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9526 | for ncn_progname in objdump; do | |
9527 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9528 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9530 | $as_echo_n "checking for $ac_word... " >&6; } | |
9531 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9532 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9533 | else |
9534 | if test -n "$OBJDUMP"; then | |
9535 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9536 | else | |
9537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9538 | for as_dir in $PATH | |
9539 | do | |
9540 | IFS=$as_save_IFS | |
9541 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9542 | for ac_exec_ext in '' $ac_executable_extensions; do |
9543 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9544 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
cd9a469c | 9545 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9546 | break 2 |
9547 | fi | |
9548 | done | |
cd9a469c | 9549 | done |
9550 | IFS=$as_save_IFS | |
95a05732 | 9551 | |
9552 | fi | |
9553 | fi | |
9554 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9555 | if test -n "$OBJDUMP"; then | |
cd9a469c | 9556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9557 | $as_echo "$OBJDUMP" >&6; } | |
95a05732 | 9558 | else |
cd9a469c | 9559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9560 | $as_echo "no" >&6; } | |
95a05732 | 9561 | fi |
9562 | ||
cd9a469c | 9563 | |
95a05732 | 9564 | done |
9565 | fi | |
9566 | ||
9567 | for ncn_progname in objdump; do | |
768691b5 | 9568 | if test -n "$ncn_tool_prefix"; then |
9569 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9570 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9572 | $as_echo_n "checking for $ac_word... " >&6; } | |
9573 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9574 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9575 | else |
9576 | if test -n "$OBJDUMP"; then | |
9577 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9578 | else | |
b30fcfae | 9579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9580 | for as_dir in $PATH | |
9581 | do | |
9582 | IFS=$as_save_IFS | |
9583 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9584 | for ac_exec_ext in '' $ac_executable_extensions; do |
9585 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9586 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9587 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9588 | break 2 |
9589 | fi | |
9590 | done | |
cd9a469c | 9591 | done |
9592 | IFS=$as_save_IFS | |
b30fcfae | 9593 | |
bb612911 | 9594 | fi |
9595 | fi | |
b30fcfae | 9596 | OBJDUMP=$ac_cv_prog_OBJDUMP |
bb612911 | 9597 | if test -n "$OBJDUMP"; then |
cd9a469c | 9598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9599 | $as_echo "$OBJDUMP" >&6; } | |
bb612911 | 9600 | else |
cd9a469c | 9601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9602 | $as_echo "no" >&6; } | |
bb612911 | 9603 | fi |
9604 | ||
cd9a469c | 9605 | |
768691b5 | 9606 | fi |
9607 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9608 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9609 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9611 | $as_echo_n "checking for $ac_word... " >&6; } | |
9612 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9613 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9614 | else |
768691b5 | 9615 | if test -n "$OBJDUMP"; then |
9616 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
bb612911 | 9617 | else |
b30fcfae | 9618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9619 | for as_dir in $PATH | |
9620 | do | |
9621 | IFS=$as_save_IFS | |
9622 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9623 | for ac_exec_ext in '' $ac_executable_extensions; do |
9624 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9625 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
cd9a469c | 9626 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9627 | break 2 |
9628 | fi | |
9629 | done | |
cd9a469c | 9630 | done |
9631 | IFS=$as_save_IFS | |
b30fcfae | 9632 | |
bb612911 | 9633 | fi |
9634 | fi | |
b30fcfae | 9635 | OBJDUMP=$ac_cv_prog_OBJDUMP |
768691b5 | 9636 | if test -n "$OBJDUMP"; then |
cd9a469c | 9637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9638 | $as_echo "$OBJDUMP" >&6; } | |
bb612911 | 9639 | else |
cd9a469c | 9640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9641 | $as_echo "no" >&6; } | |
bb612911 | 9642 | fi |
b30fcfae | 9643 | |
cd9a469c | 9644 | |
768691b5 | 9645 | fi |
9646 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9647 | done | |
9648 | ||
9649 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9650 | set dummy objdump | |
9651 | if test $build = $host ; then | |
9652 | OBJDUMP="$2" | |
bb612911 | 9653 | else |
768691b5 | 9654 | OBJDUMP="${ncn_tool_prefix}$2" |
bb612911 | 9655 | fi |
bb612911 | 9656 | fi |
9657 | ||
71ab34df | 9658 | |
9659 | ||
3f71364d | 9660 | if test -n "$READELF"; then |
9661 | ac_cv_prog_READELF=$READELF | |
9662 | elif test -n "$ac_cv_prog_READELF"; then | |
9663 | READELF=$ac_cv_prog_READELF | |
9664 | fi | |
9665 | ||
9666 | if test -n "$ac_cv_prog_READELF"; then | |
9667 | for ncn_progname in readelf; do | |
9668 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9669 | set dummy ${ncn_progname}; ac_word=$2 | |
9670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9671 | $as_echo_n "checking for $ac_word... " >&6; } | |
9672 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9673 | $as_echo_n "(cached) " >&6 | |
9674 | else | |
9675 | if test -n "$READELF"; then | |
9676 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9677 | else | |
9678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9679 | for as_dir in $PATH | |
9680 | do | |
9681 | IFS=$as_save_IFS | |
9682 | test -z "$as_dir" && as_dir=. | |
9683 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9684 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9685 | ac_cv_prog_READELF="${ncn_progname}" | |
9686 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9687 | break 2 | |
9688 | fi | |
9689 | done | |
9690 | done | |
9691 | IFS=$as_save_IFS | |
9692 | ||
9693 | fi | |
9694 | fi | |
9695 | READELF=$ac_cv_prog_READELF | |
9696 | if test -n "$READELF"; then | |
9697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9698 | $as_echo "$READELF" >&6; } | |
9699 | else | |
9700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9701 | $as_echo "no" >&6; } | |
9702 | fi | |
9703 | ||
9704 | ||
9705 | done | |
9706 | fi | |
9707 | ||
9708 | for ncn_progname in readelf; do | |
9709 | if test -n "$ncn_tool_prefix"; then | |
9710 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9711 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9713 | $as_echo_n "checking for $ac_word... " >&6; } | |
9714 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9715 | $as_echo_n "(cached) " >&6 | |
9716 | else | |
9717 | if test -n "$READELF"; then | |
9718 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9719 | else | |
9720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9721 | for as_dir in $PATH | |
9722 | do | |
9723 | IFS=$as_save_IFS | |
9724 | test -z "$as_dir" && as_dir=. | |
9725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9726 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9727 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" | |
9728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9729 | break 2 | |
9730 | fi | |
9731 | done | |
9732 | done | |
9733 | IFS=$as_save_IFS | |
9734 | ||
9735 | fi | |
9736 | fi | |
9737 | READELF=$ac_cv_prog_READELF | |
9738 | if test -n "$READELF"; then | |
9739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9740 | $as_echo "$READELF" >&6; } | |
9741 | else | |
9742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9743 | $as_echo "no" >&6; } | |
9744 | fi | |
9745 | ||
9746 | ||
9747 | fi | |
9748 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9749 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9750 | set dummy ${ncn_progname}; ac_word=$2 | |
9751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9752 | $as_echo_n "checking for $ac_word... " >&6; } | |
9753 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9754 | $as_echo_n "(cached) " >&6 | |
9755 | else | |
9756 | if test -n "$READELF"; then | |
9757 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9758 | else | |
9759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9760 | for as_dir in $PATH | |
9761 | do | |
9762 | IFS=$as_save_IFS | |
9763 | test -z "$as_dir" && as_dir=. | |
9764 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9765 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9766 | ac_cv_prog_READELF="${ncn_progname}" | |
9767 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9768 | break 2 | |
9769 | fi | |
9770 | done | |
9771 | done | |
9772 | IFS=$as_save_IFS | |
9773 | ||
9774 | fi | |
9775 | fi | |
9776 | READELF=$ac_cv_prog_READELF | |
9777 | if test -n "$READELF"; then | |
9778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9779 | $as_echo "$READELF" >&6; } | |
9780 | else | |
9781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9782 | $as_echo "no" >&6; } | |
9783 | fi | |
9784 | ||
9785 | ||
9786 | fi | |
9787 | test -n "$ac_cv_prog_READELF" && break | |
9788 | done | |
9789 | ||
9790 | if test -z "$ac_cv_prog_READELF" ; then | |
9791 | set dummy readelf | |
9792 | if test $build = $host ; then | |
9793 | READELF="$2" | |
9794 | else | |
9795 | READELF="${ncn_tool_prefix}$2" | |
9796 | fi | |
9797 | fi | |
9798 | ||
9799 | ||
9800 | ||
71ab34df | 9801 | |
9802 | ||
9803 | ||
f5aebe3e | 9804 | # Target tools. |
b30fcfae | 9805 | |
cd9a469c | 9806 | # Check whether --with-build-time-tools was given. |
9807 | if test "${with_build_time_tools+set}" = set; then : | |
9808 | withval=$with_build_time_tools; case x"$withval" in | |
c47832b1 | 9809 | x/*) ;; |
9810 | *) | |
9811 | with_build_time_tools= | |
cd9a469c | 9812 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9813 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
c47832b1 | 9814 | ;; |
9815 | esac | |
bb612911 | 9816 | else |
c47832b1 | 9817 | with_build_time_tools= |
cd9a469c | 9818 | fi |
9819 | ||
bb612911 | 9820 | |
95a05732 | 9821 | |
9822 | ||
9823 | if test -n "$CC_FOR_TARGET"; then | |
9824 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9825 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9826 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9827 | fi | |
9828 | ||
9829 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9830 | for ncn_progname in cc gcc; do | |
9831 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9832 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9834 | $as_echo_n "checking for $ac_word... " >&6; } | |
9835 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9836 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9837 | else |
9838 | if test -n "$CC_FOR_TARGET"; then | |
9839 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9840 | else | |
9841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9842 | for as_dir in $PATH | |
9843 | do | |
9844 | IFS=$as_save_IFS | |
9845 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9846 | for ac_exec_ext in '' $ac_executable_extensions; do |
9847 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9848 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 9849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9850 | break 2 |
9851 | fi | |
9852 | done | |
cd9a469c | 9853 | done |
9854 | IFS=$as_save_IFS | |
95a05732 | 9855 | |
9856 | fi | |
9857 | fi | |
9858 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9859 | if test -n "$CC_FOR_TARGET"; then | |
cd9a469c | 9860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9861 | $as_echo "$CC_FOR_TARGET" >&6; } | |
95a05732 | 9862 | else |
cd9a469c | 9863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9864 | $as_echo "no" >&6; } | |
95a05732 | 9865 | fi |
9866 | ||
cd9a469c | 9867 | |
95a05732 | 9868 | done |
9869 | fi | |
9870 | ||
9871 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 9872 | for ncn_progname in cc gcc; do |
cd9a469c | 9873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9874 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 9875 | if test -x $with_build_time_tools/${ncn_progname}; then |
9876 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 9877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9878 | $as_echo "yes" >&6; } | |
9886f3d1 | 9879 | break |
c47832b1 | 9880 | else |
cd9a469c | 9881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9882 | $as_echo "no" >&6; } | |
9886f3d1 | 9883 | fi |
9884 | done | |
ef8184c7 | 9885 | fi |
9886 | ||
c47832b1 | 9887 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
9888 | for ncn_progname in cc gcc; do | |
9889 | if test -n "$ncn_target_tool_prefix"; then | |
9890 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 9891 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 9892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9893 | $as_echo_n "checking for $ac_word... " >&6; } | |
9894 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9895 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 9896 | else |
9897 | if test -n "$CC_FOR_TARGET"; then | |
9898 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9899 | else | |
b30fcfae | 9900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9901 | for as_dir in $PATH | |
9902 | do | |
9903 | IFS=$as_save_IFS | |
9904 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9905 | for ac_exec_ext in '' $ac_executable_extensions; do |
9906 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9907 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 9908 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9909 | break 2 |
9910 | fi | |
9911 | done | |
cd9a469c | 9912 | done |
9913 | IFS=$as_save_IFS | |
b30fcfae | 9914 | |
ef8184c7 | 9915 | fi |
9916 | fi | |
b30fcfae | 9917 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
ef8184c7 | 9918 | if test -n "$CC_FOR_TARGET"; then |
cd9a469c | 9919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9920 | $as_echo "$CC_FOR_TARGET" >&6; } | |
ef8184c7 | 9921 | else |
cd9a469c | 9922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9923 | $as_echo "no" >&6; } | |
ef8184c7 | 9924 | fi |
9925 | ||
cd9a469c | 9926 | |
c47832b1 | 9927 | fi |
9928 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
9929 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 9930 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 9931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9932 | $as_echo_n "checking for $ac_word... " >&6; } | |
9933 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9934 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 9935 | else |
768691b5 | 9936 | if test -n "$CC_FOR_TARGET"; then |
9937 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 9938 | else |
b30fcfae | 9939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9940 | for as_dir in $PATH | |
9941 | do | |
9942 | IFS=$as_save_IFS | |
9943 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9944 | for ac_exec_ext in '' $ac_executable_extensions; do |
9945 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9946 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 9947 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9948 | break 2 |
9949 | fi | |
9950 | done | |
cd9a469c | 9951 | done |
9952 | IFS=$as_save_IFS | |
b30fcfae | 9953 | |
ef8184c7 | 9954 | fi |
9955 | fi | |
b30fcfae | 9956 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
768691b5 | 9957 | if test -n "$CC_FOR_TARGET"; then |
cd9a469c | 9958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9959 | $as_echo "$CC_FOR_TARGET" >&6; } | |
ef8184c7 | 9960 | else |
cd9a469c | 9961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9962 | $as_echo "no" >&6; } | |
ef8184c7 | 9963 | fi |
b30fcfae | 9964 | |
cd9a469c | 9965 | |
c47832b1 | 9966 | fi |
9967 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
9968 | done | |
9969 | fi | |
b30fcfae | 9970 | |
768691b5 | 9971 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
9972 | set dummy cc gcc | |
9973 | if test $build = $target ; then | |
9974 | CC_FOR_TARGET="$2" | |
ef8184c7 | 9975 | else |
768691b5 | 9976 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ef8184c7 | 9977 | fi |
b7ef8464 | 9978 | else |
9979 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
ef8184c7 | 9980 | fi |
9981 | ||
95a05732 | 9982 | |
9983 | ||
9984 | if test -n "$CXX_FOR_TARGET"; then | |
9985 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
9986 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9987 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9988 | fi | |
9989 | ||
9990 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9991 | for ncn_progname in c++ g++ cxx gxx; do | |
9992 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9993 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9995 | $as_echo_n "checking for $ac_word... " >&6; } | |
9996 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9997 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9998 | else |
9999 | if test -n "$CXX_FOR_TARGET"; then | |
10000 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10001 | else | |
10002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10003 | for as_dir in $PATH | |
10004 | do | |
10005 | IFS=$as_save_IFS | |
10006 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10007 | for ac_exec_ext in '' $ac_executable_extensions; do |
10008 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10009 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10010 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10011 | break 2 |
10012 | fi | |
10013 | done | |
cd9a469c | 10014 | done |
10015 | IFS=$as_save_IFS | |
95a05732 | 10016 | |
10017 | fi | |
10018 | fi | |
10019 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10020 | if test -n "$CXX_FOR_TARGET"; then | |
cd9a469c | 10021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10022 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
95a05732 | 10023 | else |
cd9a469c | 10024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10025 | $as_echo "no" >&6; } | |
95a05732 | 10026 | fi |
10027 | ||
cd9a469c | 10028 | |
95a05732 | 10029 | done |
10030 | fi | |
10031 | ||
10032 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10033 | for ncn_progname in c++ g++ cxx gxx; do |
cd9a469c | 10034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10035 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10036 | if test -x $with_build_time_tools/${ncn_progname}; then |
10037 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10039 | $as_echo "yes" >&6; } | |
c47832b1 | 10040 | break |
10041 | else | |
cd9a469c | 10042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10043 | $as_echo "no" >&6; } | |
c47832b1 | 10044 | fi |
10045 | done | |
10046 | fi | |
10047 | ||
10048 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10049 | for ncn_progname in c++ g++ cxx gxx; do | |
10050 | if test -n "$ncn_target_tool_prefix"; then | |
10051 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10052 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 10053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10054 | $as_echo_n "checking for $ac_word... " >&6; } | |
10055 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10056 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 10057 | else |
10058 | if test -n "$CXX_FOR_TARGET"; then | |
10059 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10060 | else | |
b30fcfae | 10061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10062 | for as_dir in $PATH | |
10063 | do | |
10064 | IFS=$as_save_IFS | |
10065 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10066 | for ac_exec_ext in '' $ac_executable_extensions; do |
10067 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10068 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10069 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10070 | break 2 |
10071 | fi | |
10072 | done | |
cd9a469c | 10073 | done |
10074 | IFS=$as_save_IFS | |
b30fcfae | 10075 | |
ef8184c7 | 10076 | fi |
10077 | fi | |
b30fcfae | 10078 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
ef8184c7 | 10079 | if test -n "$CXX_FOR_TARGET"; then |
cd9a469c | 10080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10081 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
ef8184c7 | 10082 | else |
cd9a469c | 10083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10084 | $as_echo "no" >&6; } | |
ef8184c7 | 10085 | fi |
10086 | ||
cd9a469c | 10087 | |
c47832b1 | 10088 | fi |
10089 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10090 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10091 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10093 | $as_echo_n "checking for $ac_word... " >&6; } | |
10094 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10095 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 10096 | else |
768691b5 | 10097 | if test -n "$CXX_FOR_TARGET"; then |
10098 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 10099 | else |
b30fcfae | 10100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10101 | for as_dir in $PATH | |
10102 | do | |
10103 | IFS=$as_save_IFS | |
10104 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10105 | for ac_exec_ext in '' $ac_executable_extensions; do |
10106 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10107 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10108 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10109 | break 2 |
10110 | fi | |
10111 | done | |
cd9a469c | 10112 | done |
10113 | IFS=$as_save_IFS | |
b30fcfae | 10114 | |
ef8184c7 | 10115 | fi |
10116 | fi | |
b30fcfae | 10117 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
768691b5 | 10118 | if test -n "$CXX_FOR_TARGET"; then |
cd9a469c | 10119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10120 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
ef8184c7 | 10121 | else |
cd9a469c | 10122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10123 | $as_echo "no" >&6; } | |
ef8184c7 | 10124 | fi |
b30fcfae | 10125 | |
cd9a469c | 10126 | |
c47832b1 | 10127 | fi |
10128 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10129 | done | |
10130 | fi | |
b30fcfae | 10131 | |
768691b5 | 10132 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10133 | set dummy c++ g++ cxx gxx | |
10134 | if test $build = $target ; then | |
10135 | CXX_FOR_TARGET="$2" | |
ef8184c7 | 10136 | else |
768691b5 | 10137 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ef8184c7 | 10138 | fi |
b7ef8464 | 10139 | else |
10140 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
bb612911 | 10141 | fi |
10142 | ||
95a05732 | 10143 | |
10144 | ||
10145 | if test -n "$GCC_FOR_TARGET"; then | |
10146 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10147 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10148 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10149 | fi | |
10150 | ||
10151 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10152 | for ncn_progname in gcc; do | |
10153 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10154 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10156 | $as_echo_n "checking for $ac_word... " >&6; } | |
10157 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10158 | $as_echo_n "(cached) " >&6 | |
95a05732 | 10159 | else |
10160 | if test -n "$GCC_FOR_TARGET"; then | |
10161 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10162 | else | |
10163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10164 | for as_dir in $PATH | |
10165 | do | |
10166 | IFS=$as_save_IFS | |
10167 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10168 | for ac_exec_ext in '' $ac_executable_extensions; do |
10169 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10170 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10171 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10172 | break 2 |
10173 | fi | |
10174 | done | |
cd9a469c | 10175 | done |
10176 | IFS=$as_save_IFS | |
95a05732 | 10177 | |
10178 | fi | |
10179 | fi | |
10180 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10181 | if test -n "$GCC_FOR_TARGET"; then | |
cd9a469c | 10182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10183 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
95a05732 | 10184 | else |
cd9a469c | 10185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10186 | $as_echo "no" >&6; } | |
95a05732 | 10187 | fi |
10188 | ||
cd9a469c | 10189 | |
95a05732 | 10190 | done |
10191 | fi | |
10192 | ||
10193 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10194 | for ncn_progname in gcc; do |
cd9a469c | 10195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10196 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10197 | if test -x $with_build_time_tools/${ncn_progname}; then |
10198 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10200 | $as_echo "yes" >&6; } | |
c47832b1 | 10201 | break |
10202 | else | |
cd9a469c | 10203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10204 | $as_echo "no" >&6; } | |
c47832b1 | 10205 | fi |
10206 | done | |
10207 | fi | |
10208 | ||
10209 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10210 | for ncn_progname in gcc; do | |
10211 | if test -n "$ncn_target_tool_prefix"; then | |
10212 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10213 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 10214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10215 | $as_echo_n "checking for $ac_word... " >&6; } | |
10216 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10217 | $as_echo_n "(cached) " >&6 | |
bb612911 | 10218 | else |
c47832b1 | 10219 | if test -n "$GCC_FOR_TARGET"; then |
10220 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
bb612911 | 10221 | else |
b30fcfae | 10222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10223 | for as_dir in $PATH | |
10224 | do | |
10225 | IFS=$as_save_IFS | |
10226 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10227 | for ac_exec_ext in '' $ac_executable_extensions; do |
10228 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10229 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10230 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10231 | break 2 |
10232 | fi | |
10233 | done | |
cd9a469c | 10234 | done |
10235 | IFS=$as_save_IFS | |
b30fcfae | 10236 | |
bb612911 | 10237 | fi |
10238 | fi | |
b30fcfae | 10239 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
c47832b1 | 10240 | if test -n "$GCC_FOR_TARGET"; then |
cd9a469c | 10241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10242 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
bb612911 | 10243 | else |
cd9a469c | 10244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10245 | $as_echo "no" >&6; } | |
bb612911 | 10246 | fi |
10247 | ||
cd9a469c | 10248 | |
c47832b1 | 10249 | fi |
10250 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10251 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10252 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10254 | $as_echo_n "checking for $ac_word... " >&6; } | |
10255 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10256 | $as_echo_n "(cached) " >&6 | |
bb612911 | 10257 | else |
c47832b1 | 10258 | if test -n "$GCC_FOR_TARGET"; then |
10259 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
bb612911 | 10260 | else |
b30fcfae | 10261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10262 | for as_dir in $PATH | |
10263 | do | |
10264 | IFS=$as_save_IFS | |
10265 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10266 | for ac_exec_ext in '' $ac_executable_extensions; do |
10267 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10268 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10269 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10270 | break 2 |
10271 | fi | |
10272 | done | |
cd9a469c | 10273 | done |
10274 | IFS=$as_save_IFS | |
b30fcfae | 10275 | |
bb612911 | 10276 | fi |
10277 | fi | |
b30fcfae | 10278 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
c47832b1 | 10279 | if test -n "$GCC_FOR_TARGET"; then |
cd9a469c | 10280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10281 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
bb612911 | 10282 | else |
cd9a469c | 10283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10284 | $as_echo "no" >&6; } | |
bb612911 | 10285 | fi |
b30fcfae | 10286 | |
cd9a469c | 10287 | |
c47832b1 | 10288 | fi |
10289 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10290 | done | |
10291 | fi | |
b30fcfae | 10292 | |
c47832b1 | 10293 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10294 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
b7ef8464 | 10295 | else |
10296 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
c47832b1 | 10297 | fi |
10298 | ||
95a05732 | 10299 | |
10300 | ||
10301 | if test -n "$GCJ_FOR_TARGET"; then | |
10302 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10303 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10304 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10305 | fi | |
10306 | ||
10307 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10308 | for ncn_progname in gcj; do | |
10309 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10310 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10312 | $as_echo_n "checking for $ac_word... " >&6; } | |
10313 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10314 | $as_echo_n "(cached) " >&6 | |
95a05732 | 10315 | else |
10316 | if test -n "$GCJ_FOR_TARGET"; then | |
10317 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10318 | else | |
10319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10320 | for as_dir in $PATH | |
10321 | do | |
10322 | IFS=$as_save_IFS | |
10323 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10324 | for ac_exec_ext in '' $ac_executable_extensions; do |
10325 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10326 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10327 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10328 | break 2 |
10329 | fi | |
10330 | done | |
cd9a469c | 10331 | done |
10332 | IFS=$as_save_IFS | |
95a05732 | 10333 | |
10334 | fi | |
10335 | fi | |
10336 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10337 | if test -n "$GCJ_FOR_TARGET"; then | |
cd9a469c | 10338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10339 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
95a05732 | 10340 | else |
cd9a469c | 10341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10342 | $as_echo "no" >&6; } | |
95a05732 | 10343 | fi |
10344 | ||
cd9a469c | 10345 | |
95a05732 | 10346 | done |
10347 | fi | |
10348 | ||
10349 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10350 | for ncn_progname in gcj; do |
cd9a469c | 10351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10352 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10353 | if test -x $with_build_time_tools/${ncn_progname}; then |
10354 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10356 | $as_echo "yes" >&6; } | |
c47832b1 | 10357 | break |
10358 | else | |
cd9a469c | 10359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10360 | $as_echo "no" >&6; } | |
c47832b1 | 10361 | fi |
10362 | done | |
10363 | fi | |
10364 | ||
10365 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10366 | for ncn_progname in gcj; do | |
10367 | if test -n "$ncn_target_tool_prefix"; then | |
10368 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10369 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 10370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10371 | $as_echo_n "checking for $ac_word... " >&6; } | |
10372 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10373 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10374 | else |
a4af6a58 | 10375 | if test -n "$GCJ_FOR_TARGET"; then |
10376 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10377 | else | |
b30fcfae | 10378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10379 | for as_dir in $PATH | |
10380 | do | |
10381 | IFS=$as_save_IFS | |
10382 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10383 | for ac_exec_ext in '' $ac_executable_extensions; do |
10384 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10385 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10386 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10387 | break 2 |
10388 | fi | |
10389 | done | |
cd9a469c | 10390 | done |
10391 | IFS=$as_save_IFS | |
b30fcfae | 10392 | |
c47832b1 | 10393 | fi |
10394 | fi | |
95a05732 | 10395 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10396 | if test -n "$GCJ_FOR_TARGET"; then | |
cd9a469c | 10397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10398 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
95a05732 | 10399 | else |
cd9a469c | 10400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10401 | $as_echo "no" >&6; } | |
95a05732 | 10402 | fi |
10403 | ||
cd9a469c | 10404 | |
95a05732 | 10405 | fi |
10406 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10407 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10408 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10410 | $as_echo_n "checking for $ac_word... " >&6; } | |
10411 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10412 | $as_echo_n "(cached) " >&6 | |
95a05732 | 10413 | else |
10414 | if test -n "$GCJ_FOR_TARGET"; then | |
10415 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10416 | else | |
10417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10418 | for as_dir in $PATH | |
10419 | do | |
10420 | IFS=$as_save_IFS | |
10421 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10422 | for ac_exec_ext in '' $ac_executable_extensions; do |
10423 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10424 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10425 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10426 | break 2 |
10427 | fi | |
10428 | done | |
cd9a469c | 10429 | done |
10430 | IFS=$as_save_IFS | |
95a05732 | 10431 | |
10432 | fi | |
10433 | fi | |
10434 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10435 | if test -n "$GCJ_FOR_TARGET"; then | |
cd9a469c | 10436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10437 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
95a05732 | 10438 | else |
cd9a469c | 10439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10440 | $as_echo "no" >&6; } | |
95a05732 | 10441 | fi |
10442 | ||
cd9a469c | 10443 | |
95a05732 | 10444 | fi |
10445 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10446 | done | |
10447 | fi | |
10448 | ||
10449 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10450 | set dummy gcj | |
10451 | if test $build = $target ; then | |
10452 | GCJ_FOR_TARGET="$2" | |
10453 | else | |
10454 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10455 | fi | |
b7ef8464 | 10456 | else |
10457 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
95a05732 | 10458 | fi |
10459 | ||
10460 | ||
10461 | ||
10462 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10463 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10464 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10465 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
c47832b1 | 10466 | fi |
10467 | ||
95a05732 | 10468 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10469 | for ncn_progname in gfortran; do | |
10470 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
c47832b1 | 10471 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10473 | $as_echo_n "checking for $ac_word... " >&6; } | |
10474 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10475 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10476 | else |
95a05732 | 10477 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10478 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
c47832b1 | 10479 | else |
b30fcfae | 10480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10481 | for as_dir in $PATH | |
10482 | do | |
10483 | IFS=$as_save_IFS | |
10484 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10485 | for ac_exec_ext in '' $ac_executable_extensions; do |
10486 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10487 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10488 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10489 | break 2 |
10490 | fi | |
10491 | done | |
cd9a469c | 10492 | done |
10493 | IFS=$as_save_IFS | |
b30fcfae | 10494 | |
c47832b1 | 10495 | fi |
10496 | fi | |
95a05732 | 10497 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10498 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
cd9a469c | 10499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10500 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
c47832b1 | 10501 | else |
cd9a469c | 10502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10503 | $as_echo "no" >&6; } | |
c47832b1 | 10504 | fi |
b30fcfae | 10505 | |
cd9a469c | 10506 | |
c47832b1 | 10507 | done |
10508 | fi | |
b30fcfae | 10509 | |
95a05732 | 10510 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
c47832b1 | 10511 | for ncn_progname in gfortran; do |
cd9a469c | 10512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10513 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10514 | if test -x $with_build_time_tools/${ncn_progname}; then |
10515 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10517 | $as_echo "yes" >&6; } | |
c47832b1 | 10518 | break |
10519 | else | |
cd9a469c | 10520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10521 | $as_echo "no" >&6; } | |
c47832b1 | 10522 | fi |
10523 | done | |
10524 | fi | |
10525 | ||
10526 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10527 | for ncn_progname in gfortran; do | |
10528 | if test -n "$ncn_target_tool_prefix"; then | |
10529 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10530 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 10531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10532 | $as_echo_n "checking for $ac_word... " >&6; } | |
10533 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10534 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10535 | else |
10536 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
b30fcfae | 10537 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10538 | else | |
10539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10540 | for as_dir in $PATH | |
10541 | do | |
10542 | IFS=$as_save_IFS | |
10543 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10544 | for ac_exec_ext in '' $ac_executable_extensions; do |
10545 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10546 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10547 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10548 | break 2 |
10549 | fi | |
10550 | done | |
cd9a469c | 10551 | done |
10552 | IFS=$as_save_IFS | |
b30fcfae | 10553 | |
c47832b1 | 10554 | fi |
10555 | fi | |
b30fcfae | 10556 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
c47832b1 | 10557 | if test -n "$GFORTRAN_FOR_TARGET"; then |
cd9a469c | 10558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10559 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
c47832b1 | 10560 | else |
cd9a469c | 10561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10562 | $as_echo "no" >&6; } | |
c47832b1 | 10563 | fi |
10564 | ||
cd9a469c | 10565 | |
c47832b1 | 10566 | fi |
10567 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10568 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10569 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10571 | $as_echo_n "checking for $ac_word... " >&6; } | |
10572 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10573 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10574 | else |
10575 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10576 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10577 | else | |
b30fcfae | 10578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10579 | for as_dir in $PATH | |
10580 | do | |
10581 | IFS=$as_save_IFS | |
10582 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10583 | for ac_exec_ext in '' $ac_executable_extensions; do |
10584 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10585 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10586 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10587 | break 2 |
10588 | fi | |
10589 | done | |
cd9a469c | 10590 | done |
10591 | IFS=$as_save_IFS | |
b30fcfae | 10592 | |
c47832b1 | 10593 | fi |
10594 | fi | |
b30fcfae | 10595 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
c47832b1 | 10596 | if test -n "$GFORTRAN_FOR_TARGET"; then |
cd9a469c | 10597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10598 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
c47832b1 | 10599 | else |
cd9a469c | 10600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10601 | $as_echo "no" >&6; } | |
c47832b1 | 10602 | fi |
b30fcfae | 10603 | |
cd9a469c | 10604 | |
c47832b1 | 10605 | fi |
10606 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10607 | done | |
10608 | fi | |
b30fcfae | 10609 | |
c47832b1 | 10610 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10611 | set dummy gfortran | |
768691b5 | 10612 | if test $build = $target ; then |
c47832b1 | 10613 | GFORTRAN_FOR_TARGET="$2" |
bb612911 | 10614 | else |
c47832b1 | 10615 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
10616 | fi | |
b7ef8464 | 10617 | else |
10618 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
c47832b1 | 10619 | fi |
10620 | ||
10621 | ||
10622 | ||
5ff5b630 | 10623 | if test -n "$GOC_FOR_TARGET"; then |
10624 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10625 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10626 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10627 | fi | |
10628 | ||
10629 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10630 | for ncn_progname in gccgo; do | |
10631 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10632 | set dummy ${ncn_progname}; ac_word=$2 | |
10633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10634 | $as_echo_n "checking for $ac_word... " >&6; } | |
10635 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10636 | $as_echo_n "(cached) " >&6 | |
10637 | else | |
10638 | if test -n "$GOC_FOR_TARGET"; then | |
10639 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10640 | else | |
10641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10642 | for as_dir in $PATH | |
10643 | do | |
10644 | IFS=$as_save_IFS | |
10645 | test -z "$as_dir" && as_dir=. | |
10646 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10647 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10648 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10649 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10650 | break 2 | |
10651 | fi | |
10652 | done | |
10653 | done | |
10654 | IFS=$as_save_IFS | |
10655 | ||
10656 | fi | |
10657 | fi | |
10658 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10659 | if test -n "$GOC_FOR_TARGET"; then | |
10660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10661 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10662 | else | |
10663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10664 | $as_echo "no" >&6; } | |
10665 | fi | |
10666 | ||
10667 | ||
10668 | done | |
10669 | fi | |
10670 | ||
10671 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10672 | for ncn_progname in gccgo; do | |
10673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10674 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10675 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10676 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10678 | $as_echo "yes" >&6; } | |
10679 | break | |
10680 | else | |
10681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10682 | $as_echo "no" >&6; } | |
10683 | fi | |
10684 | done | |
10685 | fi | |
10686 | ||
10687 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10688 | for ncn_progname in gccgo; do | |
10689 | if test -n "$ncn_target_tool_prefix"; then | |
10690 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10691 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10693 | $as_echo_n "checking for $ac_word... " >&6; } | |
10694 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10695 | $as_echo_n "(cached) " >&6 | |
10696 | else | |
10697 | if test -n "$GOC_FOR_TARGET"; then | |
10698 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10699 | else | |
10700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10701 | for as_dir in $PATH | |
10702 | do | |
10703 | IFS=$as_save_IFS | |
10704 | test -z "$as_dir" && as_dir=. | |
10705 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10706 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10707 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10708 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10709 | break 2 | |
10710 | fi | |
10711 | done | |
10712 | done | |
10713 | IFS=$as_save_IFS | |
10714 | ||
10715 | fi | |
10716 | fi | |
10717 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10718 | if test -n "$GOC_FOR_TARGET"; then | |
10719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10720 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10721 | else | |
10722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10723 | $as_echo "no" >&6; } | |
10724 | fi | |
10725 | ||
10726 | ||
10727 | fi | |
10728 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10729 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10730 | set dummy ${ncn_progname}; ac_word=$2 | |
10731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10732 | $as_echo_n "checking for $ac_word... " >&6; } | |
10733 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10734 | $as_echo_n "(cached) " >&6 | |
10735 | else | |
10736 | if test -n "$GOC_FOR_TARGET"; then | |
10737 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10738 | else | |
10739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10740 | for as_dir in $PATH | |
10741 | do | |
10742 | IFS=$as_save_IFS | |
10743 | test -z "$as_dir" && as_dir=. | |
10744 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10745 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10746 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10747 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10748 | break 2 | |
10749 | fi | |
10750 | done | |
10751 | done | |
10752 | IFS=$as_save_IFS | |
10753 | ||
10754 | fi | |
10755 | fi | |
10756 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10757 | if test -n "$GOC_FOR_TARGET"; then | |
10758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10759 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10760 | else | |
10761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10762 | $as_echo "no" >&6; } | |
10763 | fi | |
10764 | ||
10765 | ||
10766 | fi | |
10767 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10768 | done | |
10769 | fi | |
10770 | ||
10771 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10772 | set dummy gccgo | |
10773 | if test $build = $target ; then | |
10774 | GOC_FOR_TARGET="$2" | |
10775 | else | |
10776 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10777 | fi | |
10778 | else | |
10779 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10780 | fi | |
10781 | ||
10782 | ||
10783 | ||
c47832b1 | 10784 | cat > conftest.c << \EOF |
10785 | #ifdef __GNUC__ | |
10786 | gcc_yay; | |
10787 | #endif | |
10788 | EOF | |
10789 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10790 | have_gcc_for_target=yes | |
10791 | else | |
10792 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
10793 | have_gcc_for_target=no | |
10794 | fi | |
10795 | rm conftest.c | |
10796 | ||
10797 | ||
10798 | ||
10799 | ||
10800 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
10801 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 10802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10803 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
ab0da556 | 10804 | if test -x $with_build_time_tools/ar; then |
10805 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10806 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
cd9a469c | 10807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10808 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
ab0da556 | 10809 | else |
cd9a469c | 10810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10811 | $as_echo "no" >&6; } | |
ab0da556 | 10812 | fi |
c47832b1 | 10813 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10814 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
b7ef8464 | 10815 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10816 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
c47832b1 | 10817 | fi |
10818 | fi | |
38d7211b | 10819 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 10820 | # Extract the first word of "ar", so it can be a program name with args. |
10821 | set dummy ar; ac_word=$2 | |
cd9a469c | 10822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10823 | $as_echo_n "checking for $ac_word... " >&6; } | |
10824 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10825 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10826 | else |
b30fcfae | 10827 | case $AR_FOR_TARGET in |
10828 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 10829 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10830 | ;; | |
c47832b1 | 10831 | *) |
b30fcfae | 10832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10833 | for as_dir in $gcc_cv_tool_dirs | |
10834 | do | |
10835 | IFS=$as_save_IFS | |
10836 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10837 | for ac_exec_ext in '' $ac_executable_extensions; do |
10838 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10839 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 10840 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10841 | break 2 |
10842 | fi | |
10843 | done | |
cd9a469c | 10844 | done |
10845 | IFS=$as_save_IFS | |
b30fcfae | 10846 | |
c47832b1 | 10847 | ;; |
10848 | esac | |
10849 | fi | |
b30fcfae | 10850 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
c47832b1 | 10851 | if test -n "$AR_FOR_TARGET"; then |
cd9a469c | 10852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10853 | $as_echo "$AR_FOR_TARGET" >&6; } | |
c47832b1 | 10854 | else |
cd9a469c | 10855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10856 | $as_echo "no" >&6; } | |
ef8184c7 | 10857 | fi |
10858 | ||
cd9a469c | 10859 | |
c47832b1 | 10860 | fi |
10861 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
95a05732 | 10862 | |
10863 | ||
10864 | if test -n "$AR_FOR_TARGET"; then | |
10865 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10866 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10867 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10868 | fi | |
10869 | ||
10870 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10871 | for ncn_progname in ar; do | |
10872 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10873 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10875 | $as_echo_n "checking for $ac_word... " >&6; } | |
10876 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10877 | $as_echo_n "(cached) " >&6 | |
95a05732 | 10878 | else |
10879 | if test -n "$AR_FOR_TARGET"; then | |
10880 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10881 | else | |
10882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10883 | for as_dir in $PATH | |
10884 | do | |
10885 | IFS=$as_save_IFS | |
10886 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10887 | for ac_exec_ext in '' $ac_executable_extensions; do |
10888 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10889 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10890 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10891 | break 2 |
10892 | fi | |
10893 | done | |
cd9a469c | 10894 | done |
10895 | IFS=$as_save_IFS | |
95a05732 | 10896 | |
10897 | fi | |
10898 | fi | |
10899 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10900 | if test -n "$AR_FOR_TARGET"; then | |
cd9a469c | 10901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10902 | $as_echo "$AR_FOR_TARGET" >&6; } | |
95a05732 | 10903 | else |
cd9a469c | 10904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10905 | $as_echo "no" >&6; } | |
95a05732 | 10906 | fi |
10907 | ||
cd9a469c | 10908 | |
95a05732 | 10909 | done |
10910 | fi | |
10911 | ||
10912 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10913 | for ncn_progname in ar; do |
cd9a469c | 10914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10915 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10916 | if test -x $with_build_time_tools/${ncn_progname}; then |
10917 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10919 | $as_echo "yes" >&6; } | |
c47832b1 | 10920 | break |
10921 | else | |
cd9a469c | 10922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10923 | $as_echo "no" >&6; } | |
c47832b1 | 10924 | fi |
10925 | done | |
10926 | fi | |
10927 | ||
10928 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
10929 | for ncn_progname in ar; do | |
10930 | if test -n "$ncn_target_tool_prefix"; then | |
10931 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10932 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 10933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10934 | $as_echo_n "checking for $ac_word... " >&6; } | |
10935 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10936 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 10937 | else |
c47832b1 | 10938 | if test -n "$AR_FOR_TARGET"; then |
10939 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 10940 | else |
b30fcfae | 10941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10942 | for as_dir in $PATH | |
10943 | do | |
10944 | IFS=$as_save_IFS | |
10945 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10946 | for ac_exec_ext in '' $ac_executable_extensions; do |
10947 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10948 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10949 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10950 | break 2 |
10951 | fi | |
10952 | done | |
cd9a469c | 10953 | done |
10954 | IFS=$as_save_IFS | |
b30fcfae | 10955 | |
ef8184c7 | 10956 | fi |
10957 | fi | |
b30fcfae | 10958 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
c47832b1 | 10959 | if test -n "$AR_FOR_TARGET"; then |
cd9a469c | 10960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10961 | $as_echo "$AR_FOR_TARGET" >&6; } | |
ef8184c7 | 10962 | else |
cd9a469c | 10963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10964 | $as_echo "no" >&6; } | |
ef8184c7 | 10965 | fi |
10966 | ||
cd9a469c | 10967 | |
c47832b1 | 10968 | fi |
10969 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
10970 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10971 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10973 | $as_echo_n "checking for $ac_word... " >&6; } | |
10974 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10975 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10976 | else |
10977 | if test -n "$AR_FOR_TARGET"; then | |
10978 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10979 | else | |
b30fcfae | 10980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10981 | for as_dir in $PATH | |
10982 | do | |
10983 | IFS=$as_save_IFS | |
10984 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10985 | for ac_exec_ext in '' $ac_executable_extensions; do |
10986 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10987 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10988 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10989 | break 2 |
10990 | fi | |
10991 | done | |
cd9a469c | 10992 | done |
10993 | IFS=$as_save_IFS | |
b30fcfae | 10994 | |
c47832b1 | 10995 | fi |
10996 | fi | |
b30fcfae | 10997 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
c47832b1 | 10998 | if test -n "$AR_FOR_TARGET"; then |
cd9a469c | 10999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11000 | $as_echo "$AR_FOR_TARGET" >&6; } | |
c47832b1 | 11001 | else |
cd9a469c | 11002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11003 | $as_echo "no" >&6; } | |
c47832b1 | 11004 | fi |
b30fcfae | 11005 | |
cd9a469c | 11006 | |
c47832b1 | 11007 | fi |
11008 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11009 | done | |
11010 | fi | |
b30fcfae | 11011 | |
c47832b1 | 11012 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11013 | set dummy ar | |
11014 | if test $build = $target ; then | |
11015 | AR_FOR_TARGET="$2" | |
11016 | else | |
11017 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
768691b5 | 11018 | fi |
b7ef8464 | 11019 | else |
11020 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
c47832b1 | 11021 | fi |
11022 | ||
ab0da556 | 11023 | else |
11024 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
c47832b1 | 11025 | fi |
11026 | ||
11027 | ||
11028 | ||
11029 | ||
11030 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11031 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11033 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
ab0da556 | 11034 | if test -x $with_build_time_tools/as; then |
11035 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11036 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
cd9a469c | 11037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11038 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
ab0da556 | 11039 | else |
cd9a469c | 11040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11041 | $as_echo "no" >&6; } | |
ab0da556 | 11042 | fi |
c47832b1 | 11043 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11044 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
b7ef8464 | 11045 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11046 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
c47832b1 | 11047 | fi |
11048 | fi | |
38d7211b | 11049 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11050 | # Extract the first word of "as", so it can be a program name with args. |
11051 | set dummy as; ac_word=$2 | |
cd9a469c | 11052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11053 | $as_echo_n "checking for $ac_word... " >&6; } | |
11054 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
11055 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 11056 | else |
b30fcfae | 11057 | case $AS_FOR_TARGET in |
11058 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11059 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11060 | ;; | |
c47832b1 | 11061 | *) |
b30fcfae | 11062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11063 | for as_dir in $gcc_cv_tool_dirs | |
11064 | do | |
11065 | IFS=$as_save_IFS | |
11066 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11067 | for ac_exec_ext in '' $ac_executable_extensions; do |
11068 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11069 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11070 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11071 | break 2 |
11072 | fi | |
11073 | done | |
cd9a469c | 11074 | done |
11075 | IFS=$as_save_IFS | |
b30fcfae | 11076 | |
c47832b1 | 11077 | ;; |
11078 | esac | |
11079 | fi | |
b30fcfae | 11080 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
c47832b1 | 11081 | if test -n "$AS_FOR_TARGET"; then |
cd9a469c | 11082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11083 | $as_echo "$AS_FOR_TARGET" >&6; } | |
c47832b1 | 11084 | else |
cd9a469c | 11085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11086 | $as_echo "no" >&6; } | |
c47832b1 | 11087 | fi |
11088 | ||
cd9a469c | 11089 | |
c47832b1 | 11090 | fi |
11091 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
95a05732 | 11092 | |
11093 | ||
11094 | if test -n "$AS_FOR_TARGET"; then | |
11095 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11096 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11097 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11098 | fi | |
11099 | ||
11100 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11101 | for ncn_progname in as; do | |
11102 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11103 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11105 | $as_echo_n "checking for $ac_word... " >&6; } | |
11106 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11107 | $as_echo_n "(cached) " >&6 | |
95a05732 | 11108 | else |
11109 | if test -n "$AS_FOR_TARGET"; then | |
11110 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11111 | else | |
11112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11113 | for as_dir in $PATH | |
11114 | do | |
11115 | IFS=$as_save_IFS | |
11116 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11117 | for ac_exec_ext in '' $ac_executable_extensions; do |
11118 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11119 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11120 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11121 | break 2 |
11122 | fi | |
11123 | done | |
cd9a469c | 11124 | done |
11125 | IFS=$as_save_IFS | |
95a05732 | 11126 | |
11127 | fi | |
11128 | fi | |
11129 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11130 | if test -n "$AS_FOR_TARGET"; then | |
cd9a469c | 11131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11132 | $as_echo "$AS_FOR_TARGET" >&6; } | |
95a05732 | 11133 | else |
cd9a469c | 11134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11135 | $as_echo "no" >&6; } | |
95a05732 | 11136 | fi |
11137 | ||
cd9a469c | 11138 | |
95a05732 | 11139 | done |
11140 | fi | |
11141 | ||
11142 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11143 | for ncn_progname in as; do |
cd9a469c | 11144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11145 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11146 | if test -x $with_build_time_tools/${ncn_progname}; then |
11147 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11149 | $as_echo "yes" >&6; } | |
c47832b1 | 11150 | break |
11151 | else | |
cd9a469c | 11152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11153 | $as_echo "no" >&6; } | |
c47832b1 | 11154 | fi |
11155 | done | |
11156 | fi | |
11157 | ||
11158 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11159 | for ncn_progname in as; do | |
11160 | if test -n "$ncn_target_tool_prefix"; then | |
11161 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11162 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 11163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11164 | $as_echo_n "checking for $ac_word... " >&6; } | |
11165 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11166 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 11167 | else |
11168 | if test -n "$AS_FOR_TARGET"; then | |
11169 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11170 | else | |
b30fcfae | 11171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11172 | for as_dir in $PATH | |
11173 | do | |
11174 | IFS=$as_save_IFS | |
11175 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11176 | for ac_exec_ext in '' $ac_executable_extensions; do |
11177 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11178 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11179 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11180 | break 2 |
11181 | fi | |
11182 | done | |
cd9a469c | 11183 | done |
11184 | IFS=$as_save_IFS | |
b30fcfae | 11185 | |
c47832b1 | 11186 | fi |
11187 | fi | |
b30fcfae | 11188 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
c47832b1 | 11189 | if test -n "$AS_FOR_TARGET"; then |
cd9a469c | 11190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11191 | $as_echo "$AS_FOR_TARGET" >&6; } | |
c47832b1 | 11192 | else |
cd9a469c | 11193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11194 | $as_echo "no" >&6; } | |
c47832b1 | 11195 | fi |
11196 | ||
cd9a469c | 11197 | |
c47832b1 | 11198 | fi |
11199 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11200 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11201 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 11202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11203 | $as_echo_n "checking for $ac_word... " >&6; } | |
11204 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11205 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11206 | else |
c47832b1 | 11207 | if test -n "$AS_FOR_TARGET"; then |
11208 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11209 | else |
b30fcfae | 11210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11211 | for as_dir in $PATH | |
11212 | do | |
11213 | IFS=$as_save_IFS | |
11214 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11215 | for ac_exec_ext in '' $ac_executable_extensions; do |
11216 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11217 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11218 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11219 | break 2 |
11220 | fi | |
11221 | done | |
cd9a469c | 11222 | done |
11223 | IFS=$as_save_IFS | |
b30fcfae | 11224 | |
ef8184c7 | 11225 | fi |
11226 | fi | |
b30fcfae | 11227 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
c47832b1 | 11228 | if test -n "$AS_FOR_TARGET"; then |
cd9a469c | 11229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11230 | $as_echo "$AS_FOR_TARGET" >&6; } | |
ef8184c7 | 11231 | else |
cd9a469c | 11232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11233 | $as_echo "no" >&6; } | |
ef8184c7 | 11234 | fi |
b30fcfae | 11235 | |
cd9a469c | 11236 | |
c47832b1 | 11237 | fi |
11238 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11239 | done | |
11240 | fi | |
b30fcfae | 11241 | |
c47832b1 | 11242 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11243 | set dummy as | |
11244 | if test $build = $target ; then | |
11245 | AS_FOR_TARGET="$2" | |
11246 | else | |
11247 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ef8184c7 | 11248 | fi |
b7ef8464 | 11249 | else |
11250 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
c47832b1 | 11251 | fi |
768691b5 | 11252 | |
ab0da556 | 11253 | else |
11254 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
ef8184c7 | 11255 | fi |
11256 | ||
c47832b1 | 11257 | |
11258 | ||
11259 | ||
11260 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11261 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11263 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
ab0da556 | 11264 | if test -x $with_build_time_tools/dlltool; then |
11265 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11266 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
cd9a469c | 11267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11268 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
ab0da556 | 11269 | else |
cd9a469c | 11270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11271 | $as_echo "no" >&6; } | |
ab0da556 | 11272 | fi |
c47832b1 | 11273 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11274 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
b7ef8464 | 11275 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11276 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
c47832b1 | 11277 | fi |
11278 | fi | |
38d7211b | 11279 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11280 | # Extract the first word of "dlltool", so it can be a program name with args. |
11281 | set dummy dlltool; ac_word=$2 | |
cd9a469c | 11282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11283 | $as_echo_n "checking for $ac_word... " >&6; } | |
11284 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11285 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11286 | else |
b30fcfae | 11287 | case $DLLTOOL_FOR_TARGET in |
11288 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11289 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11290 | ;; | |
c47832b1 | 11291 | *) |
b30fcfae | 11292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11293 | for as_dir in $gcc_cv_tool_dirs | |
11294 | do | |
11295 | IFS=$as_save_IFS | |
11296 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11297 | for ac_exec_ext in '' $ac_executable_extensions; do |
11298 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11299 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11300 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11301 | break 2 |
11302 | fi | |
11303 | done | |
cd9a469c | 11304 | done |
11305 | IFS=$as_save_IFS | |
b30fcfae | 11306 | |
c47832b1 | 11307 | ;; |
11308 | esac | |
ef8184c7 | 11309 | fi |
b30fcfae | 11310 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
c47832b1 | 11311 | if test -n "$DLLTOOL_FOR_TARGET"; then |
cd9a469c | 11312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11313 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
ef8184c7 | 11314 | else |
cd9a469c | 11315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11316 | $as_echo "no" >&6; } | |
ef8184c7 | 11317 | fi |
11318 | ||
cd9a469c | 11319 | |
c47832b1 | 11320 | fi |
11321 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
95a05732 | 11322 | |
11323 | ||
11324 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11325 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11326 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11327 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11328 | fi | |
11329 | ||
11330 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11331 | for ncn_progname in dlltool; do | |
11332 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11333 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11335 | $as_echo_n "checking for $ac_word... " >&6; } | |
11336 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11337 | $as_echo_n "(cached) " >&6 | |
95a05732 | 11338 | else |
11339 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11340 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11341 | else | |
11342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11343 | for as_dir in $PATH | |
11344 | do | |
11345 | IFS=$as_save_IFS | |
11346 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11347 | for ac_exec_ext in '' $ac_executable_extensions; do |
11348 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11349 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11350 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11351 | break 2 |
11352 | fi | |
11353 | done | |
cd9a469c | 11354 | done |
11355 | IFS=$as_save_IFS | |
95a05732 | 11356 | |
11357 | fi | |
11358 | fi | |
11359 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11360 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
cd9a469c | 11361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11362 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
95a05732 | 11363 | else |
cd9a469c | 11364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11365 | $as_echo "no" >&6; } | |
95a05732 | 11366 | fi |
11367 | ||
cd9a469c | 11368 | |
95a05732 | 11369 | done |
11370 | fi | |
11371 | ||
11372 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11373 | for ncn_progname in dlltool; do |
cd9a469c | 11374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11375 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11376 | if test -x $with_build_time_tools/${ncn_progname}; then |
11377 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11379 | $as_echo "yes" >&6; } | |
c47832b1 | 11380 | break |
11381 | else | |
cd9a469c | 11382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11383 | $as_echo "no" >&6; } | |
c47832b1 | 11384 | fi |
11385 | done | |
11386 | fi | |
11387 | ||
11388 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11389 | for ncn_progname in dlltool; do | |
11390 | if test -n "$ncn_target_tool_prefix"; then | |
11391 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11392 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 11393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11394 | $as_echo_n "checking for $ac_word... " >&6; } | |
11395 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11396 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11397 | else |
c47832b1 | 11398 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11399 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11400 | else |
b30fcfae | 11401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11402 | for as_dir in $PATH | |
11403 | do | |
11404 | IFS=$as_save_IFS | |
11405 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11406 | for ac_exec_ext in '' $ac_executable_extensions; do |
11407 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11408 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11410 | break 2 |
11411 | fi | |
11412 | done | |
cd9a469c | 11413 | done |
11414 | IFS=$as_save_IFS | |
b30fcfae | 11415 | |
ef8184c7 | 11416 | fi |
11417 | fi | |
b30fcfae | 11418 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
c47832b1 | 11419 | if test -n "$DLLTOOL_FOR_TARGET"; then |
cd9a469c | 11420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11421 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
ef8184c7 | 11422 | else |
cd9a469c | 11423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11424 | $as_echo "no" >&6; } | |
ef8184c7 | 11425 | fi |
ef8184c7 | 11426 | |
cd9a469c | 11427 | |
c47832b1 | 11428 | fi |
11429 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11430 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11431 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11433 | $as_echo_n "checking for $ac_word... " >&6; } | |
11434 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11435 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11436 | else |
c47832b1 | 11437 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11438 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11439 | else |
b30fcfae | 11440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11441 | for as_dir in $PATH | |
11442 | do | |
11443 | IFS=$as_save_IFS | |
11444 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11445 | for ac_exec_ext in '' $ac_executable_extensions; do |
11446 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11447 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11448 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11449 | break 2 |
11450 | fi | |
11451 | done | |
cd9a469c | 11452 | done |
11453 | IFS=$as_save_IFS | |
b30fcfae | 11454 | |
ef8184c7 | 11455 | fi |
11456 | fi | |
b30fcfae | 11457 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
c47832b1 | 11458 | if test -n "$DLLTOOL_FOR_TARGET"; then |
cd9a469c | 11459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11460 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
ef8184c7 | 11461 | else |
cd9a469c | 11462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11463 | $as_echo "no" >&6; } | |
ef8184c7 | 11464 | fi |
b30fcfae | 11465 | |
cd9a469c | 11466 | |
c47832b1 | 11467 | fi |
11468 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11469 | done | |
11470 | fi | |
b30fcfae | 11471 | |
c47832b1 | 11472 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11473 | set dummy dlltool | |
11474 | if test $build = $target ; then | |
11475 | DLLTOOL_FOR_TARGET="$2" | |
11476 | else | |
11477 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11478 | fi | |
b7ef8464 | 11479 | else |
11480 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
c47832b1 | 11481 | fi |
11482 | ||
ab0da556 | 11483 | else |
11484 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
c47832b1 | 11485 | fi |
11486 | ||
ef8184c7 | 11487 | |
c47832b1 | 11488 | |
11489 | ||
11490 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11491 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11493 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
ab0da556 | 11494 | if test -x $with_build_time_tools/ld; then |
11495 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11496 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
cd9a469c | 11497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11498 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
ab0da556 | 11499 | else |
cd9a469c | 11500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11501 | $as_echo "no" >&6; } | |
ab0da556 | 11502 | fi |
c47832b1 | 11503 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11504 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
b7ef8464 | 11505 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11506 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
768691b5 | 11507 | fi |
c47832b1 | 11508 | fi |
38d7211b | 11509 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11510 | # Extract the first word of "ld", so it can be a program name with args. |
11511 | set dummy ld; ac_word=$2 | |
cd9a469c | 11512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11513 | $as_echo_n "checking for $ac_word... " >&6; } | |
11514 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11515 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11516 | else |
b30fcfae | 11517 | case $LD_FOR_TARGET in |
11518 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11519 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11520 | ;; | |
c47832b1 | 11521 | *) |
b30fcfae | 11522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11523 | for as_dir in $gcc_cv_tool_dirs | |
11524 | do | |
11525 | IFS=$as_save_IFS | |
11526 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11527 | for ac_exec_ext in '' $ac_executable_extensions; do |
11528 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11529 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11530 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11531 | break 2 |
11532 | fi | |
11533 | done | |
cd9a469c | 11534 | done |
11535 | IFS=$as_save_IFS | |
b30fcfae | 11536 | |
c47832b1 | 11537 | ;; |
11538 | esac | |
ef8184c7 | 11539 | fi |
b30fcfae | 11540 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
c47832b1 | 11541 | if test -n "$LD_FOR_TARGET"; then |
cd9a469c | 11542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11543 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ef8184c7 | 11544 | else |
cd9a469c | 11545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11546 | $as_echo "no" >&6; } | |
ef8184c7 | 11547 | fi |
768691b5 | 11548 | |
cd9a469c | 11549 | |
c47832b1 | 11550 | fi |
11551 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
95a05732 | 11552 | |
11553 | ||
11554 | if test -n "$LD_FOR_TARGET"; then | |
11555 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11556 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11557 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11558 | fi | |
11559 | ||
11560 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11561 | for ncn_progname in ld; do | |
11562 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11563 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11565 | $as_echo_n "checking for $ac_word... " >&6; } | |
11566 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11567 | $as_echo_n "(cached) " >&6 | |
95a05732 | 11568 | else |
11569 | if test -n "$LD_FOR_TARGET"; then | |
11570 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11571 | else | |
11572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11573 | for as_dir in $PATH | |
11574 | do | |
11575 | IFS=$as_save_IFS | |
11576 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11577 | for ac_exec_ext in '' $ac_executable_extensions; do |
11578 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11579 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11580 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11581 | break 2 |
11582 | fi | |
11583 | done | |
cd9a469c | 11584 | done |
11585 | IFS=$as_save_IFS | |
95a05732 | 11586 | |
11587 | fi | |
11588 | fi | |
11589 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11590 | if test -n "$LD_FOR_TARGET"; then | |
cd9a469c | 11591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11592 | $as_echo "$LD_FOR_TARGET" >&6; } | |
95a05732 | 11593 | else |
cd9a469c | 11594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11595 | $as_echo "no" >&6; } | |
95a05732 | 11596 | fi |
11597 | ||
cd9a469c | 11598 | |
95a05732 | 11599 | done |
11600 | fi | |
11601 | ||
11602 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11603 | for ncn_progname in ld; do |
cd9a469c | 11604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11605 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11606 | if test -x $with_build_time_tools/${ncn_progname}; then |
11607 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11609 | $as_echo "yes" >&6; } | |
c47832b1 | 11610 | break |
11611 | else | |
cd9a469c | 11612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11613 | $as_echo "no" >&6; } | |
c47832b1 | 11614 | fi |
11615 | done | |
bb612911 | 11616 | fi |
11617 | ||
c47832b1 | 11618 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
11619 | for ncn_progname in ld; do | |
11620 | if test -n "$ncn_target_tool_prefix"; then | |
11621 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11622 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 11623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11624 | $as_echo_n "checking for $ac_word... " >&6; } | |
11625 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11626 | $as_echo_n "(cached) " >&6 | |
bb612911 | 11627 | else |
ef8184c7 | 11628 | if test -n "$LD_FOR_TARGET"; then |
11629 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
bb612911 | 11630 | else |
b30fcfae | 11631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11632 | for as_dir in $PATH | |
11633 | do | |
11634 | IFS=$as_save_IFS | |
11635 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11636 | for ac_exec_ext in '' $ac_executable_extensions; do |
11637 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11638 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11639 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11640 | break 2 |
11641 | fi | |
11642 | done | |
cd9a469c | 11643 | done |
11644 | IFS=$as_save_IFS | |
b30fcfae | 11645 | |
bb612911 | 11646 | fi |
11647 | fi | |
b30fcfae | 11648 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
ef8184c7 | 11649 | if test -n "$LD_FOR_TARGET"; then |
cd9a469c | 11650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11651 | $as_echo "$LD_FOR_TARGET" >&6; } | |
bb612911 | 11652 | else |
cd9a469c | 11653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11654 | $as_echo "no" >&6; } | |
bb612911 | 11655 | fi |
11656 | ||
cd9a469c | 11657 | |
c47832b1 | 11658 | fi |
11659 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11660 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11661 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 11662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11663 | $as_echo_n "checking for $ac_word... " >&6; } | |
11664 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11665 | $as_echo_n "(cached) " >&6 | |
bb612911 | 11666 | else |
768691b5 | 11667 | if test -n "$LD_FOR_TARGET"; then |
11668 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
bb612911 | 11669 | else |
b30fcfae | 11670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11671 | for as_dir in $PATH | |
11672 | do | |
11673 | IFS=$as_save_IFS | |
11674 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11675 | for ac_exec_ext in '' $ac_executable_extensions; do |
11676 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11677 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11679 | break 2 |
11680 | fi | |
11681 | done | |
cd9a469c | 11682 | done |
11683 | IFS=$as_save_IFS | |
b30fcfae | 11684 | |
bb612911 | 11685 | fi |
11686 | fi | |
b30fcfae | 11687 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
768691b5 | 11688 | if test -n "$LD_FOR_TARGET"; then |
cd9a469c | 11689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11690 | $as_echo "$LD_FOR_TARGET" >&6; } | |
bb612911 | 11691 | else |
cd9a469c | 11692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11693 | $as_echo "no" >&6; } | |
bb612911 | 11694 | fi |
b30fcfae | 11695 | |
cd9a469c | 11696 | |
c47832b1 | 11697 | fi |
11698 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11699 | done | |
11700 | fi | |
b30fcfae | 11701 | |
768691b5 | 11702 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11703 | set dummy ld | |
11704 | if test $build = $target ; then | |
11705 | LD_FOR_TARGET="$2" | |
bb612911 | 11706 | else |
768691b5 | 11707 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
bb612911 | 11708 | fi |
b7ef8464 | 11709 | else |
11710 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
bb612911 | 11711 | fi |
11712 | ||
ab0da556 | 11713 | else |
11714 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
c47832b1 | 11715 | fi |
11716 | ||
11717 | ||
11718 | ||
11719 | ||
11720 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11721 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11723 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
ab0da556 | 11724 | if test -x $with_build_time_tools/lipo; then |
11725 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11726 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
cd9a469c | 11727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11728 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
ab0da556 | 11729 | else |
cd9a469c | 11730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11731 | $as_echo "no" >&6; } | |
ab0da556 | 11732 | fi |
c47832b1 | 11733 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11734 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
b7ef8464 | 11735 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11736 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
c47832b1 | 11737 | fi |
11738 | fi | |
95a05732 | 11739 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11740 | # Extract the first word of "lipo", so it can be a program name with args. | |
11741 | set dummy lipo; ac_word=$2 | |
cd9a469c | 11742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11743 | $as_echo_n "checking for $ac_word... " >&6; } | |
11744 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11745 | $as_echo_n "(cached) " >&6 | |
95a05732 | 11746 | else |
11747 | case $LIPO_FOR_TARGET in | |
11748 | [\\/]* | ?:[\\/]*) | |
11749 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11750 | ;; | |
11751 | *) | |
11752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11753 | for as_dir in $gcc_cv_tool_dirs | |
11754 | do | |
11755 | IFS=$as_save_IFS | |
11756 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11757 | for ac_exec_ext in '' $ac_executable_extensions; do |
11758 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11759 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11760 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11761 | break 2 |
11762 | fi | |
11763 | done | |
cd9a469c | 11764 | done |
11765 | IFS=$as_save_IFS | |
95a05732 | 11766 | |
11767 | ;; | |
11768 | esac | |
11769 | fi | |
11770 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
95a05732 | 11771 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 11772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11773 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
95a05732 | 11774 | else |
cd9a469c | 11775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11776 | $as_echo "no" >&6; } | |
95a05732 | 11777 | fi |
11778 | ||
cd9a469c | 11779 | |
95a05732 | 11780 | fi |
11781 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11782 | ||
11783 | ||
11784 | if test -n "$LIPO_FOR_TARGET"; then | |
11785 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11786 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11787 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11788 | fi | |
11789 | ||
11790 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11791 | for ncn_progname in lipo; do | |
11792 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11793 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11795 | $as_echo_n "checking for $ac_word... " >&6; } | |
11796 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11797 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 11798 | else |
95a05732 | 11799 | if test -n "$LIPO_FOR_TARGET"; then |
11800 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11801 | else | |
11802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11803 | for as_dir in $PATH | |
b30fcfae | 11804 | do |
11805 | IFS=$as_save_IFS | |
11806 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11807 | for ac_exec_ext in '' $ac_executable_extensions; do |
11808 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11809 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11810 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11811 | break 2 |
11812 | fi | |
11813 | done | |
cd9a469c | 11814 | done |
11815 | IFS=$as_save_IFS | |
b30fcfae | 11816 | |
c47832b1 | 11817 | fi |
95a05732 | 11818 | fi |
11819 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
c47832b1 | 11820 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 11821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11822 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
c47832b1 | 11823 | else |
cd9a469c | 11824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11825 | $as_echo "no" >&6; } | |
c47832b1 | 11826 | fi |
11827 | ||
cd9a469c | 11828 | |
95a05732 | 11829 | done |
c47832b1 | 11830 | fi |
95a05732 | 11831 | |
11832 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11833 | for ncn_progname in lipo; do |
cd9a469c | 11834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11835 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11836 | if test -x $with_build_time_tools/${ncn_progname}; then |
11837 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11839 | $as_echo "yes" >&6; } | |
c47832b1 | 11840 | break |
11841 | else | |
cd9a469c | 11842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11843 | $as_echo "no" >&6; } | |
c47832b1 | 11844 | fi |
11845 | done | |
11846 | fi | |
11847 | ||
11848 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11849 | for ncn_progname in lipo; do | |
11850 | if test -n "$ncn_target_tool_prefix"; then | |
11851 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11852 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 11853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11854 | $as_echo_n "checking for $ac_word... " >&6; } | |
11855 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11856 | $as_echo_n "(cached) " >&6 | |
9fec3fa8 | 11857 | else |
11858 | if test -n "$LIPO_FOR_TARGET"; then | |
11859 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11860 | else | |
b30fcfae | 11861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11862 | for as_dir in $PATH | |
11863 | do | |
11864 | IFS=$as_save_IFS | |
11865 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11866 | for ac_exec_ext in '' $ac_executable_extensions; do |
11867 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11868 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11869 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11870 | break 2 |
11871 | fi | |
11872 | done | |
cd9a469c | 11873 | done |
11874 | IFS=$as_save_IFS | |
b30fcfae | 11875 | |
9fec3fa8 | 11876 | fi |
11877 | fi | |
b30fcfae | 11878 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
9fec3fa8 | 11879 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 11880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11881 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9fec3fa8 | 11882 | else |
cd9a469c | 11883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11884 | $as_echo "no" >&6; } | |
9fec3fa8 | 11885 | fi |
11886 | ||
cd9a469c | 11887 | |
c47832b1 | 11888 | fi |
11889 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11890 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 11891 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 11892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11893 | $as_echo_n "checking for $ac_word... " >&6; } | |
11894 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11895 | $as_echo_n "(cached) " >&6 | |
9fec3fa8 | 11896 | else |
11897 | if test -n "$LIPO_FOR_TARGET"; then | |
9886f3d1 | 11898 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
11899 | else | |
b30fcfae | 11900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11901 | for as_dir in $PATH | |
11902 | do | |
11903 | IFS=$as_save_IFS | |
11904 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11905 | for ac_exec_ext in '' $ac_executable_extensions; do |
11906 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11907 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11908 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11909 | break 2 |
11910 | fi | |
11911 | done | |
cd9a469c | 11912 | done |
11913 | IFS=$as_save_IFS | |
b30fcfae | 11914 | |
9fec3fa8 | 11915 | fi |
11916 | fi | |
b30fcfae | 11917 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
9fec3fa8 | 11918 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 11919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11920 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9fec3fa8 | 11921 | else |
cd9a469c | 11922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11923 | $as_echo "no" >&6; } | |
9fec3fa8 | 11924 | fi |
b30fcfae | 11925 | |
cd9a469c | 11926 | |
c47832b1 | 11927 | fi |
11928 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
11929 | done | |
11930 | fi | |
b30fcfae | 11931 | |
9fec3fa8 | 11932 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
11933 | set dummy lipo | |
11934 | if test $build = $target ; then | |
11935 | LIPO_FOR_TARGET="$2" | |
11936 | else | |
11937 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11938 | fi | |
b7ef8464 | 11939 | else |
11940 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
9fec3fa8 | 11941 | fi |
11942 | ||
ab0da556 | 11943 | else |
11944 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
c47832b1 | 11945 | fi |
11946 | ||
11947 | ||
11948 | ||
11949 | ||
11950 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11951 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
11953 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
ab0da556 | 11954 | if test -x $with_build_time_tools/nm; then |
11955 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
11956 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
cd9a469c | 11957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
11958 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
ab0da556 | 11959 | else |
cd9a469c | 11960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11961 | $as_echo "no" >&6; } | |
ab0da556 | 11962 | fi |
c47832b1 | 11963 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11964 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
b7ef8464 | 11965 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
11966 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
c47832b1 | 11967 | fi |
11968 | fi | |
38d7211b | 11969 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11970 | # Extract the first word of "nm", so it can be a program name with args. |
11971 | set dummy nm; ac_word=$2 | |
cd9a469c | 11972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11973 | $as_echo_n "checking for $ac_word... " >&6; } | |
11974 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
11975 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 11976 | else |
b30fcfae | 11977 | case $NM_FOR_TARGET in |
11978 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11979 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
11980 | ;; | |
c47832b1 | 11981 | *) |
b30fcfae | 11982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11983 | for as_dir in $gcc_cv_tool_dirs | |
11984 | do | |
11985 | IFS=$as_save_IFS | |
11986 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11987 | for ac_exec_ext in '' $ac_executable_extensions; do |
11988 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11989 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11991 | break 2 |
11992 | fi | |
11993 | done | |
cd9a469c | 11994 | done |
11995 | IFS=$as_save_IFS | |
b30fcfae | 11996 | |
c47832b1 | 11997 | ;; |
11998 | esac | |
11999 | fi | |
b30fcfae | 12000 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
c47832b1 | 12001 | if test -n "$NM_FOR_TARGET"; then |
cd9a469c | 12002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12003 | $as_echo "$NM_FOR_TARGET" >&6; } | |
c47832b1 | 12004 | else |
cd9a469c | 12005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12006 | $as_echo "no" >&6; } | |
c47832b1 | 12007 | fi |
12008 | ||
cd9a469c | 12009 | |
c47832b1 | 12010 | fi |
12011 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
95a05732 | 12012 | |
12013 | ||
12014 | if test -n "$NM_FOR_TARGET"; then | |
12015 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12016 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12017 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12018 | fi | |
12019 | ||
12020 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12021 | for ncn_progname in nm; do | |
12022 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12023 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12025 | $as_echo_n "checking for $ac_word... " >&6; } | |
12026 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12027 | $as_echo_n "(cached) " >&6 | |
95a05732 | 12028 | else |
12029 | if test -n "$NM_FOR_TARGET"; then | |
12030 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12031 | else | |
12032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12033 | for as_dir in $PATH | |
12034 | do | |
12035 | IFS=$as_save_IFS | |
12036 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12037 | for ac_exec_ext in '' $ac_executable_extensions; do |
12038 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 12039 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12040 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 12041 | break 2 |
12042 | fi | |
12043 | done | |
cd9a469c | 12044 | done |
12045 | IFS=$as_save_IFS | |
95a05732 | 12046 | |
12047 | fi | |
12048 | fi | |
12049 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12050 | if test -n "$NM_FOR_TARGET"; then | |
cd9a469c | 12051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12052 | $as_echo "$NM_FOR_TARGET" >&6; } | |
95a05732 | 12053 | else |
cd9a469c | 12054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12055 | $as_echo "no" >&6; } | |
95a05732 | 12056 | fi |
12057 | ||
cd9a469c | 12058 | |
95a05732 | 12059 | done |
12060 | fi | |
12061 | ||
12062 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12063 | for ncn_progname in nm; do |
cd9a469c | 12064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12065 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12066 | if test -x $with_build_time_tools/${ncn_progname}; then |
12067 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12069 | $as_echo "yes" >&6; } | |
c47832b1 | 12070 | break |
12071 | else | |
cd9a469c | 12072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12073 | $as_echo "no" >&6; } | |
c47832b1 | 12074 | fi |
12075 | done | |
12076 | fi | |
12077 | ||
12078 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12079 | for ncn_progname in nm; do | |
12080 | if test -n "$ncn_target_tool_prefix"; then | |
12081 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 12082 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 12083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12084 | $as_echo_n "checking for $ac_word... " >&6; } | |
12085 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12086 | $as_echo_n "(cached) " >&6 | |
bb612911 | 12087 | else |
ef8184c7 | 12088 | if test -n "$NM_FOR_TARGET"; then |
12089 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12090 | else |
b30fcfae | 12091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12092 | for as_dir in $PATH | |
12093 | do | |
12094 | IFS=$as_save_IFS | |
12095 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12096 | for ac_exec_ext in '' $ac_executable_extensions; do |
12097 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12098 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12100 | break 2 |
12101 | fi | |
12102 | done | |
cd9a469c | 12103 | done |
12104 | IFS=$as_save_IFS | |
b30fcfae | 12105 | |
bb612911 | 12106 | fi |
12107 | fi | |
b30fcfae | 12108 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
ef8184c7 | 12109 | if test -n "$NM_FOR_TARGET"; then |
cd9a469c | 12110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12111 | $as_echo "$NM_FOR_TARGET" >&6; } | |
bb612911 | 12112 | else |
cd9a469c | 12113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12114 | $as_echo "no" >&6; } | |
bb612911 | 12115 | fi |
12116 | ||
cd9a469c | 12117 | |
c47832b1 | 12118 | fi |
12119 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12120 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12121 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12123 | $as_echo_n "checking for $ac_word... " >&6; } | |
12124 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12125 | $as_echo_n "(cached) " >&6 | |
bb612911 | 12126 | else |
768691b5 | 12127 | if test -n "$NM_FOR_TARGET"; then |
12128 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12129 | else |
b30fcfae | 12130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12131 | for as_dir in $PATH | |
12132 | do | |
12133 | IFS=$as_save_IFS | |
12134 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12135 | for ac_exec_ext in '' $ac_executable_extensions; do |
12136 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12137 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12138 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12139 | break 2 |
12140 | fi | |
12141 | done | |
cd9a469c | 12142 | done |
12143 | IFS=$as_save_IFS | |
b30fcfae | 12144 | |
bb612911 | 12145 | fi |
12146 | fi | |
b30fcfae | 12147 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
768691b5 | 12148 | if test -n "$NM_FOR_TARGET"; then |
cd9a469c | 12149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12150 | $as_echo "$NM_FOR_TARGET" >&6; } | |
bb612911 | 12151 | else |
cd9a469c | 12152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12153 | $as_echo "no" >&6; } | |
bb612911 | 12154 | fi |
b30fcfae | 12155 | |
cd9a469c | 12156 | |
c47832b1 | 12157 | fi |
12158 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12159 | done | |
12160 | fi | |
b30fcfae | 12161 | |
768691b5 | 12162 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12163 | set dummy nm | |
12164 | if test $build = $target ; then | |
12165 | NM_FOR_TARGET="$2" | |
bb612911 | 12166 | else |
768691b5 | 12167 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
bb612911 | 12168 | fi |
b7ef8464 | 12169 | else |
12170 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
bb612911 | 12171 | fi |
12172 | ||
ab0da556 | 12173 | else |
12174 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
c47832b1 | 12175 | fi |
12176 | ||
12177 | ||
12178 | ||
12179 | ||
12180 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
12181 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 12182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12183 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
ab0da556 | 12184 | if test -x $with_build_time_tools/objdump; then |
12185 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12186 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
cd9a469c | 12187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12188 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
ab0da556 | 12189 | else |
cd9a469c | 12190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12191 | $as_echo "no" >&6; } | |
ab0da556 | 12192 | fi |
c47832b1 | 12193 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12194 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
b7ef8464 | 12195 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12196 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
c47832b1 | 12197 | fi |
12198 | fi | |
38d7211b | 12199 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 12200 | # Extract the first word of "objdump", so it can be a program name with args. |
12201 | set dummy objdump; ac_word=$2 | |
cd9a469c | 12202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12203 | $as_echo_n "checking for $ac_word... " >&6; } | |
12204 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12205 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 12206 | else |
b30fcfae | 12207 | case $OBJDUMP_FOR_TARGET in |
12208 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 12209 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12210 | ;; | |
c47832b1 | 12211 | *) |
b30fcfae | 12212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12213 | for as_dir in $gcc_cv_tool_dirs | |
12214 | do | |
12215 | IFS=$as_save_IFS | |
12216 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12217 | for ac_exec_ext in '' $ac_executable_extensions; do |
12218 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12219 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 12220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12221 | break 2 |
12222 | fi | |
12223 | done | |
cd9a469c | 12224 | done |
12225 | IFS=$as_save_IFS | |
b30fcfae | 12226 | |
c47832b1 | 12227 | ;; |
12228 | esac | |
12229 | fi | |
b30fcfae | 12230 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
c47832b1 | 12231 | if test -n "$OBJDUMP_FOR_TARGET"; then |
cd9a469c | 12232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12233 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
c47832b1 | 12234 | else |
cd9a469c | 12235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12236 | $as_echo "no" >&6; } | |
c47832b1 | 12237 | fi |
12238 | ||
cd9a469c | 12239 | |
c47832b1 | 12240 | fi |
12241 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
95a05732 | 12242 | |
12243 | ||
12244 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12245 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12246 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12247 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12248 | fi | |
12249 | ||
12250 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12251 | for ncn_progname in objdump; do | |
12252 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12253 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12255 | $as_echo_n "checking for $ac_word... " >&6; } | |
12256 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12257 | $as_echo_n "(cached) " >&6 | |
95a05732 | 12258 | else |
12259 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12260 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12261 | else | |
12262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12263 | for as_dir in $PATH | |
12264 | do | |
12265 | IFS=$as_save_IFS | |
12266 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12267 | for ac_exec_ext in '' $ac_executable_extensions; do |
12268 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 12269 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12270 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 12271 | break 2 |
12272 | fi | |
12273 | done | |
cd9a469c | 12274 | done |
12275 | IFS=$as_save_IFS | |
95a05732 | 12276 | |
12277 | fi | |
12278 | fi | |
12279 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12280 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
cd9a469c | 12281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12282 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
95a05732 | 12283 | else |
cd9a469c | 12284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12285 | $as_echo "no" >&6; } | |
95a05732 | 12286 | fi |
12287 | ||
cd9a469c | 12288 | |
95a05732 | 12289 | done |
12290 | fi | |
12291 | ||
12292 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12293 | for ncn_progname in objdump; do |
cd9a469c | 12294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12295 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12296 | if test -x $with_build_time_tools/${ncn_progname}; then |
12297 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12299 | $as_echo "yes" >&6; } | |
c47832b1 | 12300 | break |
12301 | else | |
cd9a469c | 12302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12303 | $as_echo "no" >&6; } | |
c47832b1 | 12304 | fi |
12305 | done | |
12306 | fi | |
12307 | ||
12308 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12309 | for ncn_progname in objdump; do | |
12310 | if test -n "$ncn_target_tool_prefix"; then | |
12311 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12312 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 12313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12314 | $as_echo_n "checking for $ac_word... " >&6; } | |
12315 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12316 | $as_echo_n "(cached) " >&6 | |
ae74ffb7 | 12317 | else |
12318 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12319 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12320 | else | |
b30fcfae | 12321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12322 | for as_dir in $PATH | |
12323 | do | |
12324 | IFS=$as_save_IFS | |
12325 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12326 | for ac_exec_ext in '' $ac_executable_extensions; do |
12327 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12328 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12329 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12330 | break 2 |
12331 | fi | |
12332 | done | |
cd9a469c | 12333 | done |
12334 | IFS=$as_save_IFS | |
b30fcfae | 12335 | |
ae74ffb7 | 12336 | fi |
12337 | fi | |
b30fcfae | 12338 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
ae74ffb7 | 12339 | if test -n "$OBJDUMP_FOR_TARGET"; then |
cd9a469c | 12340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12341 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
ae74ffb7 | 12342 | else |
cd9a469c | 12343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12344 | $as_echo "no" >&6; } | |
ae74ffb7 | 12345 | fi |
12346 | ||
cd9a469c | 12347 | |
c47832b1 | 12348 | fi |
12349 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12350 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
ae74ffb7 | 12351 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12353 | $as_echo_n "checking for $ac_word... " >&6; } | |
12354 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12355 | $as_echo_n "(cached) " >&6 | |
ae74ffb7 | 12356 | else |
12357 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12358 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12359 | else | |
b30fcfae | 12360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12361 | for as_dir in $PATH | |
12362 | do | |
12363 | IFS=$as_save_IFS | |
12364 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12365 | for ac_exec_ext in '' $ac_executable_extensions; do |
12366 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12367 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12368 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12369 | break 2 |
12370 | fi | |
12371 | done | |
cd9a469c | 12372 | done |
12373 | IFS=$as_save_IFS | |
b30fcfae | 12374 | |
ae74ffb7 | 12375 | fi |
12376 | fi | |
b30fcfae | 12377 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
ae74ffb7 | 12378 | if test -n "$OBJDUMP_FOR_TARGET"; then |
cd9a469c | 12379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12380 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
ae74ffb7 | 12381 | else |
cd9a469c | 12382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12383 | $as_echo "no" >&6; } | |
ae74ffb7 | 12384 | fi |
b30fcfae | 12385 | |
cd9a469c | 12386 | |
c47832b1 | 12387 | fi |
12388 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12389 | done | |
12390 | fi | |
b30fcfae | 12391 | |
ae74ffb7 | 12392 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12393 | set dummy objdump | |
12394 | if test $build = $target ; then | |
12395 | OBJDUMP_FOR_TARGET="$2" | |
12396 | else | |
12397 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12398 | fi | |
b7ef8464 | 12399 | else |
12400 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
ae74ffb7 | 12401 | fi |
12402 | ||
ab0da556 | 12403 | else |
12404 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
c47832b1 | 12405 | fi |
12406 | ||
12407 | ||
12408 | ||
12409 | ||
12410 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12411 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 12412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12413 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
ab0da556 | 12414 | if test -x $with_build_time_tools/ranlib; then |
12415 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12416 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
cd9a469c | 12417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12418 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
ab0da556 | 12419 | else |
cd9a469c | 12420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12421 | $as_echo "no" >&6; } | |
ab0da556 | 12422 | fi |
c47832b1 | 12423 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12424 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
b7ef8464 | 12425 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12426 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
c47832b1 | 12427 | fi |
12428 | fi | |
38d7211b | 12429 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 12430 | # Extract the first word of "ranlib", so it can be a program name with args. |
12431 | set dummy ranlib; ac_word=$2 | |
cd9a469c | 12432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12433 | $as_echo_n "checking for $ac_word... " >&6; } | |
12434 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12435 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 12436 | else |
b30fcfae | 12437 | case $RANLIB_FOR_TARGET in |
12438 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 12439 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12440 | ;; | |
c47832b1 | 12441 | *) |
b30fcfae | 12442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12443 | for as_dir in $gcc_cv_tool_dirs | |
12444 | do | |
12445 | IFS=$as_save_IFS | |
12446 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12447 | for ac_exec_ext in '' $ac_executable_extensions; do |
12448 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12449 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 12450 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12451 | break 2 |
12452 | fi | |
12453 | done | |
cd9a469c | 12454 | done |
12455 | IFS=$as_save_IFS | |
b30fcfae | 12456 | |
c47832b1 | 12457 | ;; |
12458 | esac | |
12459 | fi | |
b30fcfae | 12460 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
c47832b1 | 12461 | if test -n "$RANLIB_FOR_TARGET"; then |
cd9a469c | 12462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12463 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
c47832b1 | 12464 | else |
cd9a469c | 12465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12466 | $as_echo "no" >&6; } | |
c47832b1 | 12467 | fi |
12468 | ||
cd9a469c | 12469 | |
c47832b1 | 12470 | fi |
12471 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
95a05732 | 12472 | |
12473 | ||
12474 | if test -n "$RANLIB_FOR_TARGET"; then | |
12475 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12476 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12477 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12478 | fi | |
12479 | ||
12480 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12481 | for ncn_progname in ranlib; do | |
12482 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12483 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12485 | $as_echo_n "checking for $ac_word... " >&6; } | |
12486 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12487 | $as_echo_n "(cached) " >&6 | |
95a05732 | 12488 | else |
12489 | if test -n "$RANLIB_FOR_TARGET"; then | |
12490 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12491 | else | |
12492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12493 | for as_dir in $PATH | |
12494 | do | |
12495 | IFS=$as_save_IFS | |
12496 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12497 | for ac_exec_ext in '' $ac_executable_extensions; do |
12498 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 12499 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12500 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 12501 | break 2 |
12502 | fi | |
12503 | done | |
cd9a469c | 12504 | done |
12505 | IFS=$as_save_IFS | |
95a05732 | 12506 | |
12507 | fi | |
12508 | fi | |
12509 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12510 | if test -n "$RANLIB_FOR_TARGET"; then | |
cd9a469c | 12511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12512 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
95a05732 | 12513 | else |
cd9a469c | 12514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12515 | $as_echo "no" >&6; } | |
95a05732 | 12516 | fi |
12517 | ||
cd9a469c | 12518 | |
95a05732 | 12519 | done |
12520 | fi | |
12521 | ||
12522 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12523 | for ncn_progname in ranlib; do |
cd9a469c | 12524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12525 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12526 | if test -x $with_build_time_tools/${ncn_progname}; then |
12527 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12529 | $as_echo "yes" >&6; } | |
c47832b1 | 12530 | break |
12531 | else | |
cd9a469c | 12532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12533 | $as_echo "no" >&6; } | |
c47832b1 | 12534 | fi |
12535 | done | |
12536 | fi | |
12537 | ||
12538 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12539 | for ncn_progname in ranlib; do | |
12540 | if test -n "$ncn_target_tool_prefix"; then | |
12541 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
ae74ffb7 | 12542 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 12543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12544 | $as_echo_n "checking for $ac_word... " >&6; } | |
12545 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12546 | $as_echo_n "(cached) " >&6 | |
bb612911 | 12547 | else |
ef8184c7 | 12548 | if test -n "$RANLIB_FOR_TARGET"; then |
12549 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12550 | else |
b30fcfae | 12551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12552 | for as_dir in $PATH | |
12553 | do | |
12554 | IFS=$as_save_IFS | |
12555 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12556 | for ac_exec_ext in '' $ac_executable_extensions; do |
12557 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12558 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12559 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12560 | break 2 |
12561 | fi | |
12562 | done | |
cd9a469c | 12563 | done |
12564 | IFS=$as_save_IFS | |
b30fcfae | 12565 | |
bb612911 | 12566 | fi |
12567 | fi | |
b30fcfae | 12568 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
ef8184c7 | 12569 | if test -n "$RANLIB_FOR_TARGET"; then |
cd9a469c | 12570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12571 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
bb612911 | 12572 | else |
cd9a469c | 12573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12574 | $as_echo "no" >&6; } | |
bb612911 | 12575 | fi |
12576 | ||
cd9a469c | 12577 | |
c47832b1 | 12578 | fi |
12579 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12580 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12581 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12583 | $as_echo_n "checking for $ac_word... " >&6; } | |
12584 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12585 | $as_echo_n "(cached) " >&6 | |
bb612911 | 12586 | else |
768691b5 | 12587 | if test -n "$RANLIB_FOR_TARGET"; then |
12588 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12589 | else |
b30fcfae | 12590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12591 | for as_dir in $PATH | |
12592 | do | |
12593 | IFS=$as_save_IFS | |
12594 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12595 | for ac_exec_ext in '' $ac_executable_extensions; do |
12596 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12597 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12598 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12599 | break 2 |
12600 | fi | |
12601 | done | |
cd9a469c | 12602 | done |
12603 | IFS=$as_save_IFS | |
b30fcfae | 12604 | |
bb612911 | 12605 | fi |
12606 | fi | |
b30fcfae | 12607 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
768691b5 | 12608 | if test -n "$RANLIB_FOR_TARGET"; then |
cd9a469c | 12609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12610 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
bb612911 | 12611 | else |
cd9a469c | 12612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12613 | $as_echo "no" >&6; } | |
bb612911 | 12614 | fi |
b30fcfae | 12615 | |
cd9a469c | 12616 | |
c47832b1 | 12617 | fi |
12618 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12619 | done | |
12620 | fi | |
b30fcfae | 12621 | |
c47832b1 | 12622 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12623 | set dummy ranlib | |
12624 | if test $build = $target ; then | |
12625 | RANLIB_FOR_TARGET="$2" | |
12626 | else | |
12627 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
bb612911 | 12628 | fi |
b7ef8464 | 12629 | else |
12630 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
c47832b1 | 12631 | fi |
768691b5 | 12632 | |
ab0da556 | 12633 | else |
12634 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
bb612911 | 12635 | fi |
12636 | ||
c47832b1 | 12637 | |
12638 | ||
12639 | ||
3f71364d | 12640 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
12641 | if test -n "$with_build_time_tools"; then | |
12642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
12643 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
12644 | if test -x $with_build_time_tools/readelf; then | |
12645 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
12646 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
12648 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
12649 | else | |
12650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12651 | $as_echo "no" >&6; } | |
12652 | fi | |
12653 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12654 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
12655 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
12656 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12657 | fi | |
12658 | fi | |
12659 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12660 | # Extract the first word of "readelf", so it can be a program name with args. | |
12661 | set dummy readelf; ac_word=$2 | |
12662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12663 | $as_echo_n "checking for $ac_word... " >&6; } | |
12664 | if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then : | |
12665 | $as_echo_n "(cached) " >&6 | |
12666 | else | |
12667 | case $READELF_FOR_TARGET in | |
12668 | [\\/]* | ?:[\\/]*) | |
12669 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
12670 | ;; | |
12671 | *) | |
12672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12673 | for as_dir in $gcc_cv_tool_dirs | |
12674 | do | |
12675 | IFS=$as_save_IFS | |
12676 | test -z "$as_dir" && as_dir=. | |
12677 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12678 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12679 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12680 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12681 | break 2 | |
12682 | fi | |
12683 | done | |
12684 | done | |
12685 | IFS=$as_save_IFS | |
12686 | ||
12687 | ;; | |
12688 | esac | |
12689 | fi | |
12690 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12691 | if test -n "$READELF_FOR_TARGET"; then | |
12692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12693 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12694 | else | |
12695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12696 | $as_echo "no" >&6; } | |
12697 | fi | |
12698 | ||
12699 | ||
12700 | fi | |
12701 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
12702 | ||
12703 | ||
12704 | if test -n "$READELF_FOR_TARGET"; then | |
12705 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12706 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12707 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12708 | fi | |
12709 | ||
12710 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12711 | for ncn_progname in readelf; do | |
12712 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12713 | set dummy ${ncn_progname}; ac_word=$2 | |
12714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12715 | $as_echo_n "checking for $ac_word... " >&6; } | |
12716 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12717 | $as_echo_n "(cached) " >&6 | |
12718 | else | |
12719 | if test -n "$READELF_FOR_TARGET"; then | |
12720 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12721 | else | |
12722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12723 | for as_dir in $PATH | |
12724 | do | |
12725 | IFS=$as_save_IFS | |
12726 | test -z "$as_dir" && as_dir=. | |
12727 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12728 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12729 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12730 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12731 | break 2 | |
12732 | fi | |
12733 | done | |
12734 | done | |
12735 | IFS=$as_save_IFS | |
12736 | ||
12737 | fi | |
12738 | fi | |
12739 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12740 | if test -n "$READELF_FOR_TARGET"; then | |
12741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12742 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12743 | else | |
12744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12745 | $as_echo "no" >&6; } | |
12746 | fi | |
12747 | ||
12748 | ||
12749 | done | |
12750 | fi | |
12751 | ||
12752 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12753 | for ncn_progname in readelf; do | |
12754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12755 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12756 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12757 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12759 | $as_echo "yes" >&6; } | |
12760 | break | |
12761 | else | |
12762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12763 | $as_echo "no" >&6; } | |
12764 | fi | |
12765 | done | |
12766 | fi | |
12767 | ||
12768 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12769 | for ncn_progname in readelf; do | |
12770 | if test -n "$ncn_target_tool_prefix"; then | |
12771 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12772 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12774 | $as_echo_n "checking for $ac_word... " >&6; } | |
12775 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12776 | $as_echo_n "(cached) " >&6 | |
12777 | else | |
12778 | if test -n "$READELF_FOR_TARGET"; then | |
12779 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12780 | else | |
12781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12782 | for as_dir in $PATH | |
12783 | do | |
12784 | IFS=$as_save_IFS | |
12785 | test -z "$as_dir" && as_dir=. | |
12786 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12787 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12788 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12789 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12790 | break 2 | |
12791 | fi | |
12792 | done | |
12793 | done | |
12794 | IFS=$as_save_IFS | |
12795 | ||
12796 | fi | |
12797 | fi | |
12798 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12799 | if test -n "$READELF_FOR_TARGET"; then | |
12800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12801 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12802 | else | |
12803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12804 | $as_echo "no" >&6; } | |
12805 | fi | |
12806 | ||
12807 | ||
12808 | fi | |
12809 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
12810 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12811 | set dummy ${ncn_progname}; ac_word=$2 | |
12812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12813 | $as_echo_n "checking for $ac_word... " >&6; } | |
12814 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12815 | $as_echo_n "(cached) " >&6 | |
12816 | else | |
12817 | if test -n "$READELF_FOR_TARGET"; then | |
12818 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12819 | else | |
12820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12821 | for as_dir in $PATH | |
12822 | do | |
12823 | IFS=$as_save_IFS | |
12824 | test -z "$as_dir" && as_dir=. | |
12825 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12826 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12827 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12829 | break 2 | |
12830 | fi | |
12831 | done | |
12832 | done | |
12833 | IFS=$as_save_IFS | |
12834 | ||
12835 | fi | |
12836 | fi | |
12837 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12838 | if test -n "$READELF_FOR_TARGET"; then | |
12839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12840 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12841 | else | |
12842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12843 | $as_echo "no" >&6; } | |
12844 | fi | |
12845 | ||
12846 | ||
12847 | fi | |
12848 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
12849 | done | |
12850 | fi | |
12851 | ||
12852 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
12853 | set dummy readelf | |
12854 | if test $build = $target ; then | |
12855 | READELF_FOR_TARGET="$2" | |
12856 | else | |
12857 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12858 | fi | |
12859 | else | |
12860 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
12861 | fi | |
12862 | ||
12863 | else | |
12864 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12865 | fi | |
12866 | ||
12867 | ||
12868 | ||
12869 | ||
c47832b1 | 12870 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
12871 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 12872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
12873 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
ab0da556 | 12874 | if test -x $with_build_time_tools/strip; then |
12875 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
12876 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
cd9a469c | 12877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
12878 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
ab0da556 | 12879 | else |
cd9a469c | 12880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12881 | $as_echo "no" >&6; } | |
ab0da556 | 12882 | fi |
c47832b1 | 12883 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12884 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
b7ef8464 | 12885 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
12886 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
c47832b1 | 12887 | fi |
12888 | fi | |
38d7211b | 12889 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 12890 | # Extract the first word of "strip", so it can be a program name with args. |
12891 | set dummy strip; ac_word=$2 | |
cd9a469c | 12892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12893 | $as_echo_n "checking for $ac_word... " >&6; } | |
12894 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
12895 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 12896 | else |
b30fcfae | 12897 | case $STRIP_FOR_TARGET in |
12898 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 12899 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
12900 | ;; | |
c47832b1 | 12901 | *) |
b30fcfae | 12902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12903 | for as_dir in $gcc_cv_tool_dirs | |
12904 | do | |
12905 | IFS=$as_save_IFS | |
12906 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12907 | for ac_exec_ext in '' $ac_executable_extensions; do |
12908 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12909 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 12910 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12911 | break 2 |
12912 | fi | |
12913 | done | |
cd9a469c | 12914 | done |
12915 | IFS=$as_save_IFS | |
b30fcfae | 12916 | |
c47832b1 | 12917 | ;; |
12918 | esac | |
12919 | fi | |
b30fcfae | 12920 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
c47832b1 | 12921 | if test -n "$STRIP_FOR_TARGET"; then |
cd9a469c | 12922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12923 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
c47832b1 | 12924 | else |
cd9a469c | 12925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12926 | $as_echo "no" >&6; } | |
c47832b1 | 12927 | fi |
12928 | ||
cd9a469c | 12929 | |
c47832b1 | 12930 | fi |
12931 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
95a05732 | 12932 | |
12933 | ||
12934 | if test -n "$STRIP_FOR_TARGET"; then | |
12935 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
12936 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12937 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12938 | fi | |
12939 | ||
12940 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12941 | for ncn_progname in strip; do | |
12942 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12943 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12945 | $as_echo_n "checking for $ac_word... " >&6; } | |
12946 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12947 | $as_echo_n "(cached) " >&6 | |
95a05732 | 12948 | else |
12949 | if test -n "$STRIP_FOR_TARGET"; then | |
12950 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12951 | else | |
12952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12953 | for as_dir in $PATH | |
12954 | do | |
12955 | IFS=$as_save_IFS | |
12956 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12957 | for ac_exec_ext in '' $ac_executable_extensions; do |
12958 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 12959 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12960 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 12961 | break 2 |
12962 | fi | |
12963 | done | |
cd9a469c | 12964 | done |
12965 | IFS=$as_save_IFS | |
95a05732 | 12966 | |
12967 | fi | |
12968 | fi | |
12969 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12970 | if test -n "$STRIP_FOR_TARGET"; then | |
cd9a469c | 12971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12972 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
95a05732 | 12973 | else |
cd9a469c | 12974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12975 | $as_echo "no" >&6; } | |
95a05732 | 12976 | fi |
12977 | ||
cd9a469c | 12978 | |
95a05732 | 12979 | done |
12980 | fi | |
12981 | ||
12982 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12983 | for ncn_progname in strip; do |
cd9a469c | 12984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12985 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12986 | if test -x $with_build_time_tools/${ncn_progname}; then |
12987 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12989 | $as_echo "yes" >&6; } | |
c47832b1 | 12990 | break |
12991 | else | |
cd9a469c | 12992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12993 | $as_echo "no" >&6; } | |
c47832b1 | 12994 | fi |
12995 | done | |
12996 | fi | |
12997 | ||
12998 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12999 | for ncn_progname in strip; do | |
13000 | if test -n "$ncn_target_tool_prefix"; then | |
13001 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 13002 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 13003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13004 | $as_echo_n "checking for $ac_word... " >&6; } | |
13005 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13006 | $as_echo_n "(cached) " >&6 | |
ae48753c | 13007 | else |
13008 | if test -n "$STRIP_FOR_TARGET"; then | |
b30fcfae | 13009 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
13010 | else | |
13011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13012 | for as_dir in $PATH | |
13013 | do | |
13014 | IFS=$as_save_IFS | |
13015 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13016 | for ac_exec_ext in '' $ac_executable_extensions; do |
13017 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13018 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 13019 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13020 | break 2 |
13021 | fi | |
13022 | done | |
cd9a469c | 13023 | done |
13024 | IFS=$as_save_IFS | |
b30fcfae | 13025 | |
9fec3fa8 | 13026 | fi |
13027 | fi | |
b30fcfae | 13028 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
9fec3fa8 | 13029 | if test -n "$STRIP_FOR_TARGET"; then |
cd9a469c | 13030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13031 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9fec3fa8 | 13032 | else |
cd9a469c | 13033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13034 | $as_echo "no" >&6; } | |
9fec3fa8 | 13035 | fi |
13036 | ||
cd9a469c | 13037 | |
c47832b1 | 13038 | fi |
13039 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13040 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 13041 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 13042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13043 | $as_echo_n "checking for $ac_word... " >&6; } | |
13044 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13045 | $as_echo_n "(cached) " >&6 | |
9fec3fa8 | 13046 | else |
13047 | if test -n "$STRIP_FOR_TARGET"; then | |
13048 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13049 | else | |
b30fcfae | 13050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13051 | for as_dir in $PATH | |
13052 | do | |
13053 | IFS=$as_save_IFS | |
13054 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13055 | for ac_exec_ext in '' $ac_executable_extensions; do |
13056 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13057 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13058 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13059 | break 2 |
13060 | fi | |
13061 | done | |
cd9a469c | 13062 | done |
13063 | IFS=$as_save_IFS | |
b30fcfae | 13064 | |
9fec3fa8 | 13065 | fi |
13066 | fi | |
b30fcfae | 13067 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
9fec3fa8 | 13068 | if test -n "$STRIP_FOR_TARGET"; then |
cd9a469c | 13069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13070 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9fec3fa8 | 13071 | else |
cd9a469c | 13072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13073 | $as_echo "no" >&6; } | |
9fec3fa8 | 13074 | fi |
b30fcfae | 13075 | |
cd9a469c | 13076 | |
c47832b1 | 13077 | fi |
13078 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13079 | done | |
13080 | fi | |
b30fcfae | 13081 | |
9fec3fa8 | 13082 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13083 | set dummy strip | |
13084 | if test $build = $target ; then | |
13085 | STRIP_FOR_TARGET="$2" | |
13086 | else | |
13087 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13088 | fi | |
b7ef8464 | 13089 | else |
13090 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
9fec3fa8 | 13091 | fi |
13092 | ||
ab0da556 | 13093 | else |
13094 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
c47832b1 | 13095 | fi |
13096 | ||
13097 | ||
13098 | ||
13099 | ||
13100 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13101 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 13102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13103 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
ab0da556 | 13104 | if test -x $with_build_time_tools/windres; then |
13105 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13106 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
cd9a469c | 13107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13108 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
ab0da556 | 13109 | else |
cd9a469c | 13110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13111 | $as_echo "no" >&6; } | |
ab0da556 | 13112 | fi |
c47832b1 | 13113 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13114 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
b7ef8464 | 13115 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13116 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
c47832b1 | 13117 | fi |
13118 | fi | |
38d7211b | 13119 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 13120 | # Extract the first word of "windres", so it can be a program name with args. |
13121 | set dummy windres; ac_word=$2 | |
cd9a469c | 13122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13123 | $as_echo_n "checking for $ac_word... " >&6; } | |
13124 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
13125 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 13126 | else |
b30fcfae | 13127 | case $WINDRES_FOR_TARGET in |
13128 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 13129 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13130 | ;; | |
c47832b1 | 13131 | *) |
b30fcfae | 13132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13133 | for as_dir in $gcc_cv_tool_dirs | |
13134 | do | |
13135 | IFS=$as_save_IFS | |
13136 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13137 | for ac_exec_ext in '' $ac_executable_extensions; do |
13138 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13139 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 13140 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13141 | break 2 |
13142 | fi | |
13143 | done | |
cd9a469c | 13144 | done |
13145 | IFS=$as_save_IFS | |
b30fcfae | 13146 | |
c47832b1 | 13147 | ;; |
13148 | esac | |
13149 | fi | |
b30fcfae | 13150 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
c47832b1 | 13151 | if test -n "$WINDRES_FOR_TARGET"; then |
cd9a469c | 13152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13153 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
c47832b1 | 13154 | else |
cd9a469c | 13155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13156 | $as_echo "no" >&6; } | |
c47832b1 | 13157 | fi |
13158 | ||
cd9a469c | 13159 | |
c47832b1 | 13160 | fi |
13161 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
95a05732 | 13162 | |
13163 | ||
13164 | if test -n "$WINDRES_FOR_TARGET"; then | |
13165 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13166 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13167 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13168 | fi | |
13169 | ||
13170 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13171 | for ncn_progname in windres; do | |
13172 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13173 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13175 | $as_echo_n "checking for $ac_word... " >&6; } | |
13176 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13177 | $as_echo_n "(cached) " >&6 | |
95a05732 | 13178 | else |
13179 | if test -n "$WINDRES_FOR_TARGET"; then | |
13180 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13181 | else | |
13182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13183 | for as_dir in $PATH | |
13184 | do | |
13185 | IFS=$as_save_IFS | |
13186 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13187 | for ac_exec_ext in '' $ac_executable_extensions; do |
13188 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 13189 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13190 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 13191 | break 2 |
13192 | fi | |
13193 | done | |
cd9a469c | 13194 | done |
13195 | IFS=$as_save_IFS | |
95a05732 | 13196 | |
13197 | fi | |
13198 | fi | |
13199 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13200 | if test -n "$WINDRES_FOR_TARGET"; then | |
cd9a469c | 13201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13202 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
95a05732 | 13203 | else |
cd9a469c | 13204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13205 | $as_echo "no" >&6; } | |
95a05732 | 13206 | fi |
13207 | ||
cd9a469c | 13208 | |
95a05732 | 13209 | done |
13210 | fi | |
13211 | ||
13212 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 13213 | for ncn_progname in windres; do |
cd9a469c | 13214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13215 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 13216 | if test -x $with_build_time_tools/${ncn_progname}; then |
13217 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 13218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13219 | $as_echo "yes" >&6; } | |
c47832b1 | 13220 | break |
13221 | else | |
cd9a469c | 13222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13223 | $as_echo "no" >&6; } | |
c47832b1 | 13224 | fi |
13225 | done | |
13226 | fi | |
13227 | ||
13228 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13229 | for ncn_progname in windres; do | |
13230 | if test -n "$ncn_target_tool_prefix"; then | |
13231 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 13232 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 13233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13234 | $as_echo_n "checking for $ac_word... " >&6; } | |
13235 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13236 | $as_echo_n "(cached) " >&6 | |
bb612911 | 13237 | else |
ef8184c7 | 13238 | if test -n "$WINDRES_FOR_TARGET"; then |
13239 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
bb612911 | 13240 | else |
b30fcfae | 13241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13242 | for as_dir in $PATH | |
13243 | do | |
13244 | IFS=$as_save_IFS | |
13245 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13246 | for ac_exec_ext in '' $ac_executable_extensions; do |
13247 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13248 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 13249 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13250 | break 2 |
13251 | fi | |
13252 | done | |
cd9a469c | 13253 | done |
13254 | IFS=$as_save_IFS | |
b30fcfae | 13255 | |
bb612911 | 13256 | fi |
13257 | fi | |
b30fcfae | 13258 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
ef8184c7 | 13259 | if test -n "$WINDRES_FOR_TARGET"; then |
cd9a469c | 13260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13261 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
bb612911 | 13262 | else |
cd9a469c | 13263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13264 | $as_echo "no" >&6; } | |
bb612911 | 13265 | fi |
13266 | ||
cd9a469c | 13267 | |
c47832b1 | 13268 | fi |
13269 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13270 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 13271 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 13272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13273 | $as_echo_n "checking for $ac_word... " >&6; } | |
13274 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13275 | $as_echo_n "(cached) " >&6 | |
bb612911 | 13276 | else |
768691b5 | 13277 | if test -n "$WINDRES_FOR_TARGET"; then |
13278 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
bb612911 | 13279 | else |
b30fcfae | 13280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13281 | for as_dir in $PATH | |
13282 | do | |
13283 | IFS=$as_save_IFS | |
13284 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13285 | for ac_exec_ext in '' $ac_executable_extensions; do |
13286 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13287 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13289 | break 2 |
13290 | fi | |
13291 | done | |
cd9a469c | 13292 | done |
13293 | IFS=$as_save_IFS | |
b30fcfae | 13294 | |
bb612911 | 13295 | fi |
13296 | fi | |
b30fcfae | 13297 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
768691b5 | 13298 | if test -n "$WINDRES_FOR_TARGET"; then |
cd9a469c | 13299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13300 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
bb612911 | 13301 | else |
cd9a469c | 13302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13303 | $as_echo "no" >&6; } | |
bb612911 | 13304 | fi |
b30fcfae | 13305 | |
cd9a469c | 13306 | |
c47832b1 | 13307 | fi |
13308 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13309 | done | |
13310 | fi | |
b30fcfae | 13311 | |
768691b5 | 13312 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13313 | set dummy windres | |
13314 | if test $build = $target ; then | |
13315 | WINDRES_FOR_TARGET="$2" | |
bb612911 | 13316 | else |
768691b5 | 13317 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
bb612911 | 13318 | fi |
b7ef8464 | 13319 | else |
13320 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
bb612911 | 13321 | fi |
13322 | ||
ab0da556 | 13323 | else |
13324 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
c47832b1 | 13325 | fi |
13326 | ||
805e22b2 | 13327 | |
75d6a0a9 | 13328 | |
13329 | ||
13330 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13331 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 13332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13333 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
75d6a0a9 | 13334 | if test -x $with_build_time_tools/windmc; then |
13335 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13336 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
cd9a469c | 13337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13338 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13339 | else |
cd9a469c | 13340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13341 | $as_echo "no" >&6; } | |
75d6a0a9 | 13342 | fi |
13343 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13344 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
b7ef8464 | 13345 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
13346 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
75d6a0a9 | 13347 | fi |
13348 | fi | |
13349 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13350 | # Extract the first word of "windmc", so it can be a program name with args. | |
13351 | set dummy windmc; ac_word=$2 | |
cd9a469c | 13352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13353 | $as_echo_n "checking for $ac_word... " >&6; } | |
13354 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13355 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 13356 | else |
13357 | case $WINDMC_FOR_TARGET in | |
13358 | [\\/]* | ?:[\\/]*) | |
13359 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13360 | ;; | |
13361 | *) | |
13362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13363 | for as_dir in $gcc_cv_tool_dirs | |
13364 | do | |
13365 | IFS=$as_save_IFS | |
13366 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13367 | for ac_exec_ext in '' $ac_executable_extensions; do |
13368 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 13369 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 13370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13371 | break 2 |
13372 | fi | |
13373 | done | |
cd9a469c | 13374 | done |
13375 | IFS=$as_save_IFS | |
75d6a0a9 | 13376 | |
13377 | ;; | |
13378 | esac | |
13379 | fi | |
13380 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
75d6a0a9 | 13381 | if test -n "$WINDMC_FOR_TARGET"; then |
cd9a469c | 13382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13383 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13384 | else |
cd9a469c | 13385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13386 | $as_echo "no" >&6; } | |
75d6a0a9 | 13387 | fi |
13388 | ||
cd9a469c | 13389 | |
75d6a0a9 | 13390 | fi |
13391 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13392 | ||
13393 | ||
13394 | if test -n "$WINDMC_FOR_TARGET"; then | |
13395 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13396 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13397 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13398 | fi | |
13399 | ||
13400 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13401 | for ncn_progname in windmc; do | |
13402 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13403 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13405 | $as_echo_n "checking for $ac_word... " >&6; } | |
13406 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13407 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 13408 | else |
13409 | if test -n "$WINDMC_FOR_TARGET"; then | |
13410 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13411 | else | |
13412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13413 | for as_dir in $PATH | |
13414 | do | |
13415 | IFS=$as_save_IFS | |
13416 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13417 | for ac_exec_ext in '' $ac_executable_extensions; do |
13418 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 13419 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13420 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13421 | break 2 |
13422 | fi | |
13423 | done | |
cd9a469c | 13424 | done |
13425 | IFS=$as_save_IFS | |
75d6a0a9 | 13426 | |
13427 | fi | |
13428 | fi | |
13429 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13430 | if test -n "$WINDMC_FOR_TARGET"; then | |
cd9a469c | 13431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13432 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13433 | else |
cd9a469c | 13434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13435 | $as_echo "no" >&6; } | |
75d6a0a9 | 13436 | fi |
13437 | ||
cd9a469c | 13438 | |
75d6a0a9 | 13439 | done |
13440 | fi | |
13441 | ||
13442 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13443 | for ncn_progname in windmc; do | |
cd9a469c | 13444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13445 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
75d6a0a9 | 13446 | if test -x $with_build_time_tools/${ncn_progname}; then |
13447 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 13448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13449 | $as_echo "yes" >&6; } | |
75d6a0a9 | 13450 | break |
13451 | else | |
cd9a469c | 13452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13453 | $as_echo "no" >&6; } | |
75d6a0a9 | 13454 | fi |
13455 | done | |
13456 | fi | |
13457 | ||
13458 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13459 | for ncn_progname in windmc; do | |
13460 | if test -n "$ncn_target_tool_prefix"; then | |
13461 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13462 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 13463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13464 | $as_echo_n "checking for $ac_word... " >&6; } | |
13465 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13466 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 13467 | else |
13468 | if test -n "$WINDMC_FOR_TARGET"; then | |
13469 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13470 | else | |
13471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13472 | for as_dir in $PATH | |
13473 | do | |
13474 | IFS=$as_save_IFS | |
13475 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13476 | for ac_exec_ext in '' $ac_executable_extensions; do |
13477 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 13478 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 13479 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13480 | break 2 |
13481 | fi | |
13482 | done | |
cd9a469c | 13483 | done |
13484 | IFS=$as_save_IFS | |
75d6a0a9 | 13485 | |
13486 | fi | |
13487 | fi | |
13488 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13489 | if test -n "$WINDMC_FOR_TARGET"; then | |
cd9a469c | 13490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13491 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13492 | else |
cd9a469c | 13493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13494 | $as_echo "no" >&6; } | |
75d6a0a9 | 13495 | fi |
13496 | ||
cd9a469c | 13497 | |
75d6a0a9 | 13498 | fi |
13499 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13500 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13501 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13503 | $as_echo_n "checking for $ac_word... " >&6; } | |
13504 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13505 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 13506 | else |
13507 | if test -n "$WINDMC_FOR_TARGET"; then | |
13508 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13509 | else | |
13510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13511 | for as_dir in $PATH | |
13512 | do | |
13513 | IFS=$as_save_IFS | |
13514 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13515 | for ac_exec_ext in '' $ac_executable_extensions; do |
13516 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 13517 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13518 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13519 | break 2 |
13520 | fi | |
13521 | done | |
cd9a469c | 13522 | done |
13523 | IFS=$as_save_IFS | |
75d6a0a9 | 13524 | |
13525 | fi | |
13526 | fi | |
13527 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13528 | if test -n "$WINDMC_FOR_TARGET"; then | |
cd9a469c | 13529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13530 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13531 | else |
cd9a469c | 13532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13533 | $as_echo "no" >&6; } | |
75d6a0a9 | 13534 | fi |
13535 | ||
cd9a469c | 13536 | |
75d6a0a9 | 13537 | fi |
13538 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13539 | done | |
13540 | fi | |
13541 | ||
13542 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13543 | set dummy windmc | |
13544 | if test $build = $target ; then | |
13545 | WINDMC_FOR_TARGET="$2" | |
13546 | else | |
13547 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13548 | fi | |
b7ef8464 | 13549 | else |
13550 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
75d6a0a9 | 13551 | fi |
13552 | ||
13553 | else | |
13554 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13555 | fi | |
13556 | ||
13557 | ||
f5aebe3e | 13558 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13559 | ||
cd9a469c | 13560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13561 | $as_echo_n "checking where to find the target ar... " >&6; } | |
f5aebe3e | 13562 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13563 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13564 | # We already found the complete path | |
a6c599b5 | 13565 | ac_dir=`dirname $AR_FOR_TARGET` |
cd9a469c | 13566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13567 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13568 | else |
13569 | # Canadian cross, just use what we found | |
cd9a469c | 13570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13571 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13572 | fi |
f5aebe3e | 13573 | else |
13574 | ok=yes | |
13575 | case " ${configdirs} " in | |
13576 | *" binutils "*) ;; | |
13577 | *) ok=no ;; | |
13578 | esac | |
b30fcfae | 13579 | |
f5aebe3e | 13580 | if test $ok = yes; then |
13581 | # An in-tree tool is available and we can use it | |
13582 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
cd9a469c | 13583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13584 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13585 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13586 | # We already found the complete path | |
a6c599b5 | 13587 | ac_dir=`dirname $AR_FOR_TARGET` |
cd9a469c | 13588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13589 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13590 | elif test "x$target" = "x$host"; then |
13591 | # We can use an host tool | |
13592 | AR_FOR_TARGET='$(AR)' | |
cd9a469c | 13593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13594 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13595 | else |
13596 | # We need a cross tool | |
cd9a469c | 13597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13598 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13599 | fi |
13600 | fi | |
a83ffacf | 13601 | |
cd9a469c | 13602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13603 | $as_echo_n "checking where to find the target as... " >&6; } | |
f5aebe3e | 13604 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13605 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13606 | # We already found the complete path | |
a6c599b5 | 13607 | ac_dir=`dirname $AS_FOR_TARGET` |
cd9a469c | 13608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13609 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13610 | else |
13611 | # Canadian cross, just use what we found | |
cd9a469c | 13612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13613 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13614 | fi |
f5aebe3e | 13615 | else |
13616 | ok=yes | |
13617 | case " ${configdirs} " in | |
13618 | *" gas "*) ;; | |
13619 | *) ok=no ;; | |
13620 | esac | |
b30fcfae | 13621 | |
f5aebe3e | 13622 | if test $ok = yes; then |
13623 | # An in-tree tool is available and we can use it | |
13624 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
cd9a469c | 13625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13626 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13627 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13628 | # We already found the complete path | |
a6c599b5 | 13629 | ac_dir=`dirname $AS_FOR_TARGET` |
cd9a469c | 13630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13631 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13632 | elif test "x$target" = "x$host"; then |
13633 | # We can use an host tool | |
13634 | AS_FOR_TARGET='$(AS)' | |
cd9a469c | 13635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13636 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13637 | else |
13638 | # We need a cross tool | |
cd9a469c | 13639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13640 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13641 | fi |
13642 | fi | |
a83ffacf | 13643 | |
cd9a469c | 13644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13645 | $as_echo_n "checking where to find the target cc... " >&6; } | |
f5aebe3e | 13646 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13647 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13648 | # We already found the complete path | |
a6c599b5 | 13649 | ac_dir=`dirname $CC_FOR_TARGET` |
cd9a469c | 13650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13651 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13652 | else |
13653 | # Canadian cross, just use what we found | |
cd9a469c | 13654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13655 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13656 | fi |
f5aebe3e | 13657 | else |
13658 | ok=yes | |
13659 | case " ${configdirs} " in | |
13660 | *" gcc "*) ;; | |
13661 | *) ok=no ;; | |
13662 | esac | |
b30fcfae | 13663 | |
f5aebe3e | 13664 | if test $ok = yes; then |
13665 | # An in-tree tool is available and we can use it | |
13666 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 13667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13668 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13669 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13670 | # We already found the complete path | |
a6c599b5 | 13671 | ac_dir=`dirname $CC_FOR_TARGET` |
cd9a469c | 13672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13673 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13674 | elif test "x$target" = "x$host"; then |
13675 | # We can use an host tool | |
13676 | CC_FOR_TARGET='$(CC)' | |
cd9a469c | 13677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13678 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13679 | else |
13680 | # We need a cross tool | |
cd9a469c | 13681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13682 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13683 | fi |
13684 | fi | |
a83ffacf | 13685 | |
cd9a469c | 13686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13687 | $as_echo_n "checking where to find the target c++... " >&6; } | |
f5aebe3e | 13688 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13689 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13690 | # We already found the complete path | |
a6c599b5 | 13691 | ac_dir=`dirname $CXX_FOR_TARGET` |
cd9a469c | 13692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13693 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13694 | else |
13695 | # Canadian cross, just use what we found | |
cd9a469c | 13696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13697 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13698 | fi |
f5aebe3e | 13699 | else |
13700 | ok=yes | |
13701 | case " ${configdirs} " in | |
13702 | *" gcc "*) ;; | |
13703 | *) ok=no ;; | |
13704 | esac | |
13705 | case ,${enable_languages}, in | |
13706 | *,c++,*) ;; | |
13707 | *) ok=no ;; | |
13708 | esac | |
13709 | if test $ok = yes; then | |
13710 | # An in-tree tool is available and we can use it | |
b710ec85 | 13711 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
cd9a469c | 13712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13713 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13714 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13715 | # We already found the complete path | |
a6c599b5 | 13716 | ac_dir=`dirname $CXX_FOR_TARGET` |
cd9a469c | 13717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13718 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13719 | elif test "x$target" = "x$host"; then |
13720 | # We can use an host tool | |
13721 | CXX_FOR_TARGET='$(CXX)' | |
cd9a469c | 13722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13723 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13724 | else |
13725 | # We need a cross tool | |
cd9a469c | 13726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13727 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13728 | fi |
13729 | fi | |
a83ffacf | 13730 | |
cd9a469c | 13731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13732 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
f5aebe3e | 13733 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13734 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13735 | # We already found the complete path | |
a6c599b5 | 13736 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
cd9a469c | 13737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13738 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13739 | else |
13740 | # Canadian cross, just use what we found | |
cd9a469c | 13741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13742 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13743 | fi |
f5aebe3e | 13744 | else |
13745 | ok=yes | |
13746 | case " ${configdirs} " in | |
13747 | *" gcc "*) ;; | |
13748 | *) ok=no ;; | |
13749 | esac | |
13750 | case ,${enable_languages}, in | |
13751 | *,c++,*) ;; | |
13752 | *) ok=no ;; | |
13753 | esac | |
13754 | if test $ok = yes; then | |
13755 | # An in-tree tool is available and we can use it | |
b710ec85 | 13756 | RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
cd9a469c | 13757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13758 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13759 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13760 | # We already found the complete path | |
a6c599b5 | 13761 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
cd9a469c | 13762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13763 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13764 | elif test "x$target" = "x$host"; then |
13765 | # We can use an host tool | |
13766 | RAW_CXX_FOR_TARGET='$(CXX)' | |
cd9a469c | 13767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13768 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13769 | else |
13770 | # We need a cross tool | |
cd9a469c | 13771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13772 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13773 | fi |
13774 | fi | |
a83ffacf | 13775 | |
cd9a469c | 13776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
13777 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
f5aebe3e | 13778 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13779 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13780 | # We already found the complete path | |
a6c599b5 | 13781 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
cd9a469c | 13782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13783 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13784 | else |
13785 | # Canadian cross, just use what we found | |
cd9a469c | 13786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13787 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13788 | fi |
f5aebe3e | 13789 | else |
13790 | ok=yes | |
13791 | case " ${configdirs} " in | |
13792 | *" binutils "*) ;; | |
13793 | *) ok=no ;; | |
13794 | esac | |
b30fcfae | 13795 | |
f5aebe3e | 13796 | if test $ok = yes; then |
13797 | # An in-tree tool is available and we can use it | |
13798 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
cd9a469c | 13799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13800 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13801 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13802 | # We already found the complete path | |
a6c599b5 | 13803 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
cd9a469c | 13804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13805 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13806 | elif test "x$target" = "x$host"; then |
13807 | # We can use an host tool | |
13808 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
cd9a469c | 13809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13810 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13811 | else |
13812 | # We need a cross tool | |
cd9a469c | 13813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13814 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13815 | fi |
13816 | fi | |
a83ffacf | 13817 | |
cd9a469c | 13818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
13819 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
f5aebe3e | 13820 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13821 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13822 | # We already found the complete path | |
a6c599b5 | 13823 | ac_dir=`dirname $GCC_FOR_TARGET` |
cd9a469c | 13824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13825 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13826 | else |
13827 | # Canadian cross, just use what we found | |
cd9a469c | 13828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13829 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13830 | fi |
f5aebe3e | 13831 | else |
13832 | ok=yes | |
13833 | case " ${configdirs} " in | |
13834 | *" gcc "*) ;; | |
13835 | *) ok=no ;; | |
13836 | esac | |
b30fcfae | 13837 | |
f5aebe3e | 13838 | if test $ok = yes; then |
13839 | # An in-tree tool is available and we can use it | |
13840 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 13841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13842 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13843 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13844 | # We already found the complete path | |
a6c599b5 | 13845 | ac_dir=`dirname $GCC_FOR_TARGET` |
cd9a469c | 13846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13847 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13848 | elif test "x$target" = "x$host"; then |
13849 | # We can use an host tool | |
13850 | GCC_FOR_TARGET='$()' | |
cd9a469c | 13851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13852 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13853 | else |
13854 | # We need a cross tool | |
cd9a469c | 13855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13856 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13857 | fi |
13858 | fi | |
a83ffacf | 13859 | |
cd9a469c | 13860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
13861 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
f5aebe3e | 13862 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13863 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13864 | # We already found the complete path | |
a6c599b5 | 13865 | ac_dir=`dirname $GCJ_FOR_TARGET` |
cd9a469c | 13866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13867 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13868 | else |
13869 | # Canadian cross, just use what we found | |
cd9a469c | 13870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13871 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13872 | fi |
f5aebe3e | 13873 | else |
13874 | ok=yes | |
13875 | case " ${configdirs} " in | |
13876 | *" gcc "*) ;; | |
13877 | *) ok=no ;; | |
13878 | esac | |
13879 | case ,${enable_languages}, in | |
13880 | *,java,*) ;; | |
13881 | *) ok=no ;; | |
13882 | esac | |
13883 | if test $ok = yes; then | |
13884 | # An in-tree tool is available and we can use it | |
13885 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 13886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13887 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13888 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13889 | # We already found the complete path | |
a6c599b5 | 13890 | ac_dir=`dirname $GCJ_FOR_TARGET` |
cd9a469c | 13891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13892 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13893 | elif test "x$target" = "x$host"; then |
13894 | # We can use an host tool | |
13895 | GCJ_FOR_TARGET='$(GCJ)' | |
cd9a469c | 13896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13897 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13898 | else |
13899 | # We need a cross tool | |
cd9a469c | 13900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13901 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13902 | fi |
13903 | fi | |
a83ffacf | 13904 | |
cd9a469c | 13905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
13906 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
f5aebe3e | 13907 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13908 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13909 | # We already found the complete path | |
a6c599b5 | 13910 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
cd9a469c | 13911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13912 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13913 | else |
13914 | # Canadian cross, just use what we found | |
cd9a469c | 13915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13916 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13917 | fi |
f5aebe3e | 13918 | else |
13919 | ok=yes | |
13920 | case " ${configdirs} " in | |
13921 | *" gcc "*) ;; | |
13922 | *) ok=no ;; | |
13923 | esac | |
13924 | case ,${enable_languages}, in | |
13925 | *,fortran,*) ;; | |
13926 | *) ok=no ;; | |
13927 | esac | |
13928 | if test $ok = yes; then | |
13929 | # An in-tree tool is available and we can use it | |
13930 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 13931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13932 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13933 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13934 | # We already found the complete path | |
a6c599b5 | 13935 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
cd9a469c | 13936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13937 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13938 | elif test "x$target" = "x$host"; then |
13939 | # We can use an host tool | |
13940 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
cd9a469c | 13941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13942 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13943 | else |
13944 | # We need a cross tool | |
cd9a469c | 13945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13946 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13947 | fi |
13948 | fi | |
a83ffacf | 13949 | |
5ff5b630 | 13950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
13951 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
13952 | if test "x${build}" != "x${host}" ; then | |
13953 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13954 | # We already found the complete path | |
13955 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13957 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13958 | else | |
13959 | # Canadian cross, just use what we found | |
13960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13961 | $as_echo "pre-installed" >&6; } | |
13962 | fi | |
13963 | else | |
13964 | ok=yes | |
13965 | case " ${configdirs} " in | |
13966 | *" gcc "*) ;; | |
13967 | *) ok=no ;; | |
13968 | esac | |
13969 | case ,${enable_languages}, in | |
13970 | *,go,*) ;; | |
13971 | *) ok=no ;; | |
13972 | esac | |
13973 | if test $ok = yes; then | |
13974 | # An in-tree tool is available and we can use it | |
13975 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
13976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13977 | $as_echo "just compiled" >&6; } | |
13978 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13979 | # We already found the complete path | |
13980 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13982 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13983 | elif test "x$target" = "x$host"; then | |
13984 | # We can use an host tool | |
13985 | GOC_FOR_TARGET='$(GOC)' | |
13986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13987 | $as_echo "host tool" >&6; } | |
13988 | else | |
13989 | # We need a cross tool | |
13990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13991 | $as_echo "pre-installed" >&6; } | |
13992 | fi | |
13993 | fi | |
13994 | ||
cd9a469c | 13995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
13996 | $as_echo_n "checking where to find the target ld... " >&6; } | |
f5aebe3e | 13997 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13998 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13999 | # We already found the complete path | |
a6c599b5 | 14000 | ac_dir=`dirname $LD_FOR_TARGET` |
cd9a469c | 14001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14002 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14003 | else |
14004 | # Canadian cross, just use what we found | |
cd9a469c | 14005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14006 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14007 | fi |
f5aebe3e | 14008 | else |
14009 | ok=yes | |
14010 | case " ${configdirs} " in | |
14011 | *" ld "*) ;; | |
14012 | *) ok=no ;; | |
14013 | esac | |
b30fcfae | 14014 | |
f5aebe3e | 14015 | if test $ok = yes; then |
14016 | # An in-tree tool is available and we can use it | |
14017 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
cd9a469c | 14018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14019 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14020 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14021 | # We already found the complete path | |
a6c599b5 | 14022 | ac_dir=`dirname $LD_FOR_TARGET` |
cd9a469c | 14023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14024 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14025 | elif test "x$target" = "x$host"; then |
14026 | # We can use an host tool | |
14027 | LD_FOR_TARGET='$(LD)' | |
cd9a469c | 14028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14029 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14030 | else |
14031 | # We need a cross tool | |
cd9a469c | 14032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14033 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14034 | fi |
14035 | fi | |
a83ffacf | 14036 | |
cd9a469c | 14037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14038 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
f5aebe3e | 14039 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14040 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14041 | # We already found the complete path | |
a6c599b5 | 14042 | ac_dir=`dirname $LIPO_FOR_TARGET` |
cd9a469c | 14043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14044 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14045 | else |
14046 | # Canadian cross, just use what we found | |
cd9a469c | 14047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14048 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14049 | fi |
f5aebe3e | 14050 | else |
c47832b1 | 14051 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14052 | # We already found the complete path | |
a6c599b5 | 14053 | ac_dir=`dirname $LIPO_FOR_TARGET` |
cd9a469c | 14054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14055 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14056 | elif test "x$target" = "x$host"; then |
f5aebe3e | 14057 | # We can use an host tool |
14058 | LIPO_FOR_TARGET='$(LIPO)' | |
cd9a469c | 14059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14060 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14061 | else |
14062 | # We need a cross tool | |
cd9a469c | 14063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14064 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14065 | fi |
14066 | fi | |
a83ffacf | 14067 | |
cd9a469c | 14068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14069 | $as_echo_n "checking where to find the target nm... " >&6; } | |
f5aebe3e | 14070 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14071 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14072 | # We already found the complete path | |
a6c599b5 | 14073 | ac_dir=`dirname $NM_FOR_TARGET` |
cd9a469c | 14074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14075 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14076 | else |
14077 | # Canadian cross, just use what we found | |
cd9a469c | 14078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14079 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14080 | fi |
f5aebe3e | 14081 | else |
14082 | ok=yes | |
14083 | case " ${configdirs} " in | |
14084 | *" binutils "*) ;; | |
14085 | *) ok=no ;; | |
14086 | esac | |
b30fcfae | 14087 | |
f5aebe3e | 14088 | if test $ok = yes; then |
14089 | # An in-tree tool is available and we can use it | |
14090 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
cd9a469c | 14091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14092 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14093 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14094 | # We already found the complete path | |
a6c599b5 | 14095 | ac_dir=`dirname $NM_FOR_TARGET` |
cd9a469c | 14096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14097 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14098 | elif test "x$target" = "x$host"; then |
14099 | # We can use an host tool | |
14100 | NM_FOR_TARGET='$(NM)' | |
cd9a469c | 14101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14102 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14103 | else |
14104 | # We need a cross tool | |
cd9a469c | 14105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14106 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14107 | fi |
14108 | fi | |
a83ffacf | 14109 | |
cd9a469c | 14110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14111 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
f5aebe3e | 14112 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14113 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14114 | # We already found the complete path | |
a6c599b5 | 14115 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
cd9a469c | 14116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14117 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14118 | else |
14119 | # Canadian cross, just use what we found | |
cd9a469c | 14120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14121 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14122 | fi |
f5aebe3e | 14123 | else |
14124 | ok=yes | |
14125 | case " ${configdirs} " in | |
14126 | *" binutils "*) ;; | |
14127 | *) ok=no ;; | |
14128 | esac | |
b30fcfae | 14129 | |
f5aebe3e | 14130 | if test $ok = yes; then |
14131 | # An in-tree tool is available and we can use it | |
14132 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
cd9a469c | 14133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14134 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14135 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14136 | # We already found the complete path | |
a6c599b5 | 14137 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
cd9a469c | 14138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14139 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14140 | elif test "x$target" = "x$host"; then |
14141 | # We can use an host tool | |
14142 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
cd9a469c | 14143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14144 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14145 | else |
14146 | # We need a cross tool | |
cd9a469c | 14147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14148 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14149 | fi |
14150 | fi | |
a83ffacf | 14151 | |
cd9a469c | 14152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14153 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
f5aebe3e | 14154 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14155 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14156 | # We already found the complete path | |
a6c599b5 | 14157 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
cd9a469c | 14158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14159 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14160 | else |
14161 | # Canadian cross, just use what we found | |
cd9a469c | 14162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14163 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14164 | fi |
f5aebe3e | 14165 | else |
14166 | ok=yes | |
14167 | case " ${configdirs} " in | |
14168 | *" binutils "*) ;; | |
14169 | *) ok=no ;; | |
14170 | esac | |
b30fcfae | 14171 | |
f5aebe3e | 14172 | if test $ok = yes; then |
14173 | # An in-tree tool is available and we can use it | |
14174 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
cd9a469c | 14175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14176 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14177 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14178 | # We already found the complete path | |
a6c599b5 | 14179 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
cd9a469c | 14180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14181 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14182 | elif test "x$target" = "x$host"; then |
14183 | # We can use an host tool | |
14184 | RANLIB_FOR_TARGET='$(RANLIB)' | |
cd9a469c | 14185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14186 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14187 | else |
14188 | # We need a cross tool | |
cd9a469c | 14189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14190 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14191 | fi |
14192 | fi | |
a83ffacf | 14193 | |
3f71364d | 14194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14195 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14196 | if test "x${build}" != "x${host}" ; then | |
14197 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14198 | # We already found the complete path | |
14199 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14201 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14202 | else | |
14203 | # Canadian cross, just use what we found | |
14204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14205 | $as_echo "pre-installed" >&6; } | |
14206 | fi | |
14207 | else | |
14208 | ok=yes | |
14209 | case " ${configdirs} " in | |
14210 | *" binutils "*) ;; | |
14211 | *) ok=no ;; | |
14212 | esac | |
14213 | ||
14214 | if test $ok = yes; then | |
14215 | # An in-tree tool is available and we can use it | |
14216 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14218 | $as_echo "just compiled" >&6; } | |
14219 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14220 | # We already found the complete path | |
14221 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14223 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14224 | elif test "x$target" = "x$host"; then | |
14225 | # We can use an host tool | |
14226 | READELF_FOR_TARGET='$(READELF)' | |
14227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14228 | $as_echo "host tool" >&6; } | |
14229 | else | |
14230 | # We need a cross tool | |
14231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14232 | $as_echo "pre-installed" >&6; } | |
14233 | fi | |
14234 | fi | |
14235 | ||
cd9a469c | 14236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14237 | $as_echo_n "checking where to find the target strip... " >&6; } | |
f5aebe3e | 14238 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14239 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14240 | # We already found the complete path | |
a6c599b5 | 14241 | ac_dir=`dirname $STRIP_FOR_TARGET` |
cd9a469c | 14242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14243 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14244 | else |
14245 | # Canadian cross, just use what we found | |
cd9a469c | 14246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14247 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14248 | fi |
f5aebe3e | 14249 | else |
14250 | ok=yes | |
14251 | case " ${configdirs} " in | |
14252 | *" binutils "*) ;; | |
14253 | *) ok=no ;; | |
14254 | esac | |
b30fcfae | 14255 | |
f5aebe3e | 14256 | if test $ok = yes; then |
14257 | # An in-tree tool is available and we can use it | |
2b7a4d59 | 14258 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
cd9a469c | 14259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14260 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14261 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14262 | # We already found the complete path | |
a6c599b5 | 14263 | ac_dir=`dirname $STRIP_FOR_TARGET` |
cd9a469c | 14264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14265 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14266 | elif test "x$target" = "x$host"; then |
14267 | # We can use an host tool | |
14268 | STRIP_FOR_TARGET='$(STRIP)' | |
cd9a469c | 14269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14270 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14271 | else |
14272 | # We need a cross tool | |
cd9a469c | 14273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14274 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14275 | fi |
14276 | fi | |
a83ffacf | 14277 | |
cd9a469c | 14278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14279 | $as_echo_n "checking where to find the target windres... " >&6; } | |
f5aebe3e | 14280 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14281 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14282 | # We already found the complete path | |
a6c599b5 | 14283 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
cd9a469c | 14284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14285 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14286 | else |
14287 | # Canadian cross, just use what we found | |
cd9a469c | 14288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14289 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14290 | fi |
f5aebe3e | 14291 | else |
14292 | ok=yes | |
14293 | case " ${configdirs} " in | |
14294 | *" binutils "*) ;; | |
14295 | *) ok=no ;; | |
14296 | esac | |
b30fcfae | 14297 | |
f5aebe3e | 14298 | if test $ok = yes; then |
14299 | # An in-tree tool is available and we can use it | |
14300 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
cd9a469c | 14301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14302 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14303 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14304 | # We already found the complete path | |
a6c599b5 | 14305 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
cd9a469c | 14306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14307 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14308 | elif test "x$target" = "x$host"; then |
14309 | # We can use an host tool | |
14310 | WINDRES_FOR_TARGET='$(WINDRES)' | |
cd9a469c | 14311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14312 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14313 | else |
14314 | # We need a cross tool | |
cd9a469c | 14315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14316 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14317 | fi |
71ab34df | 14318 | fi |
49aae208 | 14319 | |
cd9a469c | 14320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14321 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
75d6a0a9 | 14322 | if test "x${build}" != "x${host}" ; then |
14323 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14324 | # We already found the complete path | |
14325 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
cd9a469c | 14326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14327 | $as_echo "pre-installed in $ac_dir" >&6; } | |
75d6a0a9 | 14328 | else |
14329 | # Canadian cross, just use what we found | |
cd9a469c | 14330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14331 | $as_echo "pre-installed" >&6; } | |
75d6a0a9 | 14332 | fi |
14333 | else | |
14334 | ok=yes | |
14335 | case " ${configdirs} " in | |
14336 | *" binutils "*) ;; | |
14337 | *) ok=no ;; | |
14338 | esac | |
14339 | ||
14340 | if test $ok = yes; then | |
14341 | # An in-tree tool is available and we can use it | |
14342 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
cd9a469c | 14343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14344 | $as_echo "just compiled" >&6; } | |
75d6a0a9 | 14345 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14346 | # We already found the complete path | |
14347 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
cd9a469c | 14348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14349 | $as_echo "pre-installed in $ac_dir" >&6; } | |
75d6a0a9 | 14350 | elif test "x$target" = "x$host"; then |
14351 | # We can use an host tool | |
14352 | WINDMC_FOR_TARGET='$(WINDMC)' | |
cd9a469c | 14353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14354 | $as_echo "host tool" >&6; } | |
75d6a0a9 | 14355 | else |
14356 | # We need a cross tool | |
cd9a469c | 14357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14358 | $as_echo "pre-installed" >&6; } | |
75d6a0a9 | 14359 | fi |
14360 | fi | |
14361 | ||
49aae208 | 14362 | |
14363 | ||
f5aebe3e | 14364 | |
a83ffacf | 14365 | |
71ab34df | 14366 | # Certain tools may need extra flags. |
14367 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14368 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14369 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14370 | ||
f5aebe3e | 14371 | # When building target libraries, except in a Canadian cross, we use |
14372 | # the same toolchain as the compiler we just built. | |
14373 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14374 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14375 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14376 | if test $host = $build; then | |
14377 | case " $configdirs " in | |
14378 | *" gcc "*) | |
14379 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14380 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14381 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14382 | ;; | |
14383 | esac | |
14384 | fi | |
14385 | ||
14386 | ||
14387 | ||
14388 | ||
14389 | ||
cd9a469c | 14390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14391 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14392 | # Check whether --enable-maintainer-mode was given. | |
14393 | if test "${enable_maintainer_mode+set}" = set; then : | |
14394 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3290c0cf | 14395 | else |
14396 | USE_MAINTAINER_MODE=no | |
cd9a469c | 14397 | fi |
14398 | ||
14399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14400 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3290c0cf | 14401 | |
14402 | ||
14403 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14404 | MAINTAINER_MODE_TRUE= | |
14405 | MAINTAINER_MODE_FALSE='#' | |
14406 | else | |
14407 | MAINTAINER_MODE_TRUE='#' | |
14408 | MAINTAINER_MODE_FALSE= | |
b30fcfae | 14409 | fi |
3290c0cf | 14410 | MAINT=$MAINTAINER_MODE_TRUE |
14411 | ||
2d64c2fd | 14412 | # --------------------- |
14413 | # GCC bootstrap support | |
14414 | # --------------------- | |
14415 | ||
14416 | # Stage specific cflags for build. | |
14417 | stage1_cflags="-g" | |
14418 | case $build in | |
14419 | vax-*-*) | |
14420 | case ${GCC} in | |
14421 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14422 | *) stage1_cflags="-g -J" ;; | |
14423 | esac ;; | |
2d64c2fd | 14424 | esac |
14425 | ||
f508ba97 | 14426 | |
2d64c2fd | 14427 | |
39f34cfc | 14428 | # Enable --enable-checking in stage1 of the compiler. |
cd9a469c | 14429 | # Check whether --enable-stage1-checking was given. |
14430 | if test "${enable_stage1_checking+set}" = set; then : | |
14431 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
39f34cfc | 14432 | else |
f6be6a96 | 14433 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
f03e0ae4 | 14434 | stage1_checking=--enable-checking=yes,types |
39f34cfc | 14435 | else |
f6be6a96 | 14436 | stage1_checking=--enable-checking=$enable_checking,types |
39f34cfc | 14437 | fi |
cd9a469c | 14438 | fi |
39f34cfc | 14439 | |
14440 | ||
5084f823 | 14441 | |
cd9a469c | 14442 | # Enable -Werror in bootstrap stage2 and later. |
14443 | # Check whether --enable-werror was given. | |
14444 | if test "${enable_werror+set}" = set; then : | |
14445 | enableval=$enable_werror; | |
2d64c2fd | 14446 | else |
dd979235 | 14447 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
2d64c2fd | 14448 | enable_werror=yes |
dc914c6d | 14449 | else |
14450 | enable_werror=no | |
14451 | fi | |
cd9a469c | 14452 | fi |
14453 | ||
c0c5068d | 14454 | case ${enable_werror} in |
14455 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14456 | *) stage2_werror_flag="" ;; | |
2d64c2fd | 14457 | esac |
14458 | ||
14459 | ||
2bd17377 | 14460 | # Enable --enable-host-shared. |
14461 | # Check whether --enable-host-shared was given. | |
14462 | if test "${enable_host_shared+set}" = set; then : | |
14463 | enableval=$enable_host_shared; host_shared=$enableval | |
14464 | else | |
14465 | host_shared=no | |
14466 | fi | |
14467 | ||
14468 | ||
14469 | ||
6fe86052 | 14470 | # Specify what files to not compare during bootstrap. |
14471 | ||
14472 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14473 | case "$target" in | |
14474 | hppa*64*-*-hpux*) ;; | |
14475 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
62f0972f | 14476 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
6fe86052 | 14477 | esac |
14478 | ||
14479 | ||
cd9a469c | 14480 | ac_config_files="$ac_config_files Makefile" |
14481 | ||
b30fcfae | 14482 | cat >confcache <<\_ACEOF |
71ab34df | 14483 | # This file is a shell script that caches the results of configure |
14484 | # tests run on this system so they can be shared between configure | |
b30fcfae | 14485 | # scripts and configure runs, see configure's option --config-cache. |
14486 | # It is not useful on other systems. If it contains results you don't | |
14487 | # want to keep, you may remove or edit it. | |
71ab34df | 14488 | # |
b30fcfae | 14489 | # config.status only pays attention to the cache file if you give it |
14490 | # the --recheck option to rerun configure. | |
71ab34df | 14491 | # |
b30fcfae | 14492 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14493 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14494 | # following values. | |
14495 | ||
14496 | _ACEOF | |
14497 | ||
71ab34df | 14498 | # The following way of writing the cache mishandles newlines in values, |
14499 | # but we know of no workaround that is simple, portable, and efficient. | |
cd9a469c | 14500 | # So, we kill variables containing newlines. |
71ab34df | 14501 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14502 | # and sets the high bit in the cache file unless we assign to the vars. | |
cd9a469c | 14503 | ( |
14504 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14505 | eval ac_val=\$$ac_var | |
14506 | case $ac_val in #( | |
14507 | *${as_nl}*) | |
14508 | case $ac_var in #( | |
14509 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14510 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14511 | esac | |
14512 | case $ac_var in #( | |
14513 | _ | IFS | as_nl) ;; #( | |
14514 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14515 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14516 | esac ;; | |
14517 | esac | |
14518 | done | |
14519 | ||
b30fcfae | 14520 | (set) 2>&1 | |
cd9a469c | 14521 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14522 | *${as_nl}ac_space=\ *) | |
14523 | # `set' does not quote correctly, so add quotes: double-quote | |
14524 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b30fcfae | 14525 | sed -n \ |
14526 | "s/'/'\\\\''/g; | |
14527 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
cd9a469c | 14528 | ;; #( |
b30fcfae | 14529 | *) |
14530 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
cd9a469c | 14531 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b30fcfae | 14532 | ;; |
cd9a469c | 14533 | esac | |
14534 | sort | |
14535 | ) | | |
b30fcfae | 14536 | sed ' |
cd9a469c | 14537 | /^ac_cv_env_/b end |
b30fcfae | 14538 | t clear |
cd9a469c | 14539 | :clear |
b30fcfae | 14540 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14541 | t end | |
cd9a469c | 14542 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14543 | :end' >>confcache | |
14544 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14545 | if test -w "$cache_file"; then | |
14546 | test "x$cache_file" != "x/dev/null" && | |
14547 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14548 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
b30fcfae | 14549 | cat confcache >$cache_file |
71ab34df | 14550 | else |
cd9a469c | 14551 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14552 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
71ab34df | 14553 | fi |
805e22b2 | 14554 | fi |
71ab34df | 14555 | rm -f confcache |
a8298541 | 14556 | |
71ab34df | 14557 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14558 | # Let make expand exec_prefix. | |
14559 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
92424a17 | 14560 | |
71ab34df | 14561 | # Transform confdefs.h into DEFS. |
14562 | # Protect against shell expansion while executing Makefile rules. | |
14563 | # Protect against Makefile macro expansion. | |
b30fcfae | 14564 | # |
14565 | # If the first sed substitution is executed (which looks for macros that | |
cd9a469c | 14566 | # take arguments), then branch to the quote section. Otherwise, |
b30fcfae | 14567 | # look for a macro that doesn't take arguments. |
cd9a469c | 14568 | ac_script=' |
14569 | :mline | |
14570 | /\\$/{ | |
14571 | N | |
14572 | s,\\\n,, | |
14573 | b mline | |
14574 | } | |
b30fcfae | 14575 | t clear |
cd9a469c | 14576 | :clear |
14577 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
b30fcfae | 14578 | t quote |
cd9a469c | 14579 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
b30fcfae | 14580 | t quote |
cd9a469c | 14581 | b any |
14582 | :quote | |
14583 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14584 | s/\[/\\&/g | |
14585 | s/\]/\\&/g | |
14586 | s/\$/$$/g | |
14587 | H | |
14588 | :any | |
14589 | ${ | |
14590 | g | |
14591 | s/^\n// | |
14592 | s/\n/ /g | |
14593 | p | |
14594 | } | |
14595 | ' | |
14596 | DEFS=`sed -n "$ac_script" confdefs.h` | |
b30fcfae | 14597 | |
14598 | ||
14599 | ac_libobjs= | |
14600 | ac_ltlibobjs= | |
14601 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14602 | # 1. Remove the extension, and $U if already installed. | |
cd9a469c | 14603 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14604 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14605 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14606 | # will be set to the directory where LIBOBJS objects are built. | |
14607 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14608 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b30fcfae | 14609 | done |
14610 | LIBOBJS=$ac_libobjs | |
a4af6a58 | 14611 | |
b30fcfae | 14612 | LTLIBOBJS=$ac_ltlibobjs |
a83ffacf | 14613 | |
ae48753c | 14614 | |
b30fcfae | 14615 | |
14616 | : ${CONFIG_STATUS=./config.status} | |
cd9a469c | 14617 | ac_write_fail=0 |
b30fcfae | 14618 | ac_clean_files_save=$ac_clean_files |
14619 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
cd9a469c | 14620 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14621 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14622 | as_write_fail=0 | |
14623 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b30fcfae | 14624 | #! $SHELL |
14625 | # Generated by $as_me. | |
71ab34df | 14626 | # Run this file to recreate the current configuration. |
71ab34df | 14627 | # Compiler output produced by configure, useful for debugging |
b30fcfae | 14628 | # configure, is in config.log if it exists. |
a83ffacf | 14629 | |
b30fcfae | 14630 | debug=false |
14631 | ac_cs_recheck=false | |
14632 | ac_cs_silent=false | |
b30fcfae | 14633 | |
cd9a469c | 14634 | SHELL=\${CONFIG_SHELL-$SHELL} |
14635 | export SHELL | |
14636 | _ASEOF | |
14637 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14638 | ## -------------------- ## | |
14639 | ## M4sh Initialization. ## | |
14640 | ## -------------------- ## | |
14641 | ||
14642 | # Be more Bourne compatible | |
14643 | DUALCASE=1; export DUALCASE # for MKS sh | |
14644 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b30fcfae | 14645 | emulate sh |
14646 | NULLCMD=: | |
cd9a469c | 14647 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b30fcfae | 14648 | # is contrary to our usage. Disable this feature. |
14649 | alias -g '${1+"$@"}'='"$@"' | |
cd9a469c | 14650 | setopt NO_GLOB_SUBST |
14651 | else | |
14652 | case `(set -o) 2>/dev/null` in #( | |
14653 | *posix*) : | |
14654 | set -o posix ;; #( | |
14655 | *) : | |
14656 | ;; | |
14657 | esac | |
b30fcfae | 14658 | fi |
b30fcfae | 14659 | |
cd9a469c | 14660 | |
14661 | as_nl=' | |
14662 | ' | |
14663 | export as_nl | |
14664 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14665 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14666 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14667 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14668 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14669 | # but without wasting forks for bash or zsh. | |
14670 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14671 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14672 | as_echo='print -r --' | |
14673 | as_echo_n='print -rn --' | |
14674 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14675 | as_echo='printf %s\n' | |
14676 | as_echo_n='printf %s' | |
14677 | else | |
14678 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14679 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14680 | as_echo_n='/usr/ucb/echo -n' | |
14681 | else | |
14682 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14683 | as_echo_n_body='eval | |
14684 | arg=$1; | |
14685 | case $arg in #( | |
14686 | *"$as_nl"*) | |
14687 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14688 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14689 | esac; | |
14690 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14691 | ' | |
14692 | export as_echo_n_body | |
14693 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14694 | fi | |
14695 | export as_echo_body | |
14696 | as_echo='sh -c $as_echo_body as_echo' | |
b30fcfae | 14697 | fi |
14698 | ||
cd9a469c | 14699 | # The user is always right. |
14700 | if test "${PATH_SEPARATOR+set}" != set; then | |
14701 | PATH_SEPARATOR=: | |
14702 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14703 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14704 | PATH_SEPARATOR=';' | |
14705 | } | |
14706 | fi | |
14707 | ||
14708 | ||
14709 | # IFS | |
14710 | # We need space, tab and new line, in precisely that order. Quoting is | |
14711 | # there to prevent editors from complaining about space-tab. | |
14712 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14713 | # splitting by setting IFS to empty value.) | |
14714 | IFS=" "" $as_nl" | |
14715 | ||
14716 | # Find who we are. Look in the path if we contain no directory separator. | |
14717 | case $0 in #(( | |
14718 | *[\\/]* ) as_myself=$0 ;; | |
14719 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14720 | for as_dir in $PATH | |
14721 | do | |
14722 | IFS=$as_save_IFS | |
14723 | test -z "$as_dir" && as_dir=. | |
14724 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14725 | done | |
14726 | IFS=$as_save_IFS | |
14727 | ||
14728 | ;; | |
14729 | esac | |
14730 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14731 | # in which case we are not to be found in the path. | |
14732 | if test "x$as_myself" = x; then | |
14733 | as_myself=$0 | |
14734 | fi | |
14735 | if test ! -f "$as_myself"; then | |
14736 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14737 | exit 1 | |
14738 | fi | |
b30fcfae | 14739 | |
cd9a469c | 14740 | # Unset variables that we do not need and which cause bugs (e.g. in |
14741 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14742 | # suppresses any "Segmentation fault" message there. '((' could | |
14743 | # trigger a bug in pdksh 5.2.14. | |
14744 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14745 | do eval test x\${$as_var+set} = xset \ | |
14746 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14747 | done | |
b30fcfae | 14748 | PS1='$ ' |
14749 | PS2='> ' | |
14750 | PS4='+ ' | |
14751 | ||
14752 | # NLS nuisances. | |
cd9a469c | 14753 | LC_ALL=C |
14754 | export LC_ALL | |
14755 | LANGUAGE=C | |
14756 | export LANGUAGE | |
14757 | ||
14758 | # CDPATH. | |
14759 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14760 | ||
14761 | ||
14762 | # as_fn_error ERROR [LINENO LOG_FD] | |
14763 | # --------------------------------- | |
14764 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14765 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14766 | # script with status $?, using 1 if that was 0. | |
14767 | as_fn_error () | |
14768 | { | |
14769 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14770 | if test "$3"; then | |
14771 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14772 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
b30fcfae | 14773 | fi |
cd9a469c | 14774 | $as_echo "$as_me: error: $1" >&2 |
14775 | as_fn_exit $as_status | |
14776 | } # as_fn_error | |
14777 | ||
14778 | ||
14779 | # as_fn_set_status STATUS | |
14780 | # ----------------------- | |
14781 | # Set $? to STATUS, without forking. | |
14782 | as_fn_set_status () | |
14783 | { | |
14784 | return $1 | |
14785 | } # as_fn_set_status | |
14786 | ||
14787 | # as_fn_exit STATUS | |
14788 | # ----------------- | |
14789 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14790 | as_fn_exit () | |
14791 | { | |
14792 | set +e | |
14793 | as_fn_set_status $1 | |
14794 | exit $1 | |
14795 | } # as_fn_exit | |
14796 | ||
14797 | # as_fn_unset VAR | |
14798 | # --------------- | |
14799 | # Portably unset VAR. | |
14800 | as_fn_unset () | |
14801 | { | |
14802 | { eval $1=; unset $1;} | |
14803 | } | |
14804 | as_unset=as_fn_unset | |
14805 | # as_fn_append VAR VALUE | |
14806 | # ---------------------- | |
14807 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14808 | # advantage of any shell optimizations that allow amortized linear growth over | |
14809 | # repeated appends, instead of the typical quadratic growth present in naive | |
14810 | # implementations. | |
14811 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14812 | eval 'as_fn_append () | |
14813 | { | |
14814 | eval $1+=\$2 | |
14815 | }' | |
14816 | else | |
14817 | as_fn_append () | |
14818 | { | |
14819 | eval $1=\$$1\$2 | |
14820 | } | |
14821 | fi # as_fn_append | |
14822 | ||
14823 | # as_fn_arith ARG... | |
14824 | # ------------------ | |
14825 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14826 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14827 | # must be portable across $(()) and expr. | |
14828 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14829 | eval 'as_fn_arith () | |
14830 | { | |
14831 | as_val=$(( $* )) | |
14832 | }' | |
14833 | else | |
14834 | as_fn_arith () | |
14835 | { | |
14836 | as_val=`expr "$@" || test $? -eq 1` | |
14837 | } | |
14838 | fi # as_fn_arith | |
14839 | ||
b30fcfae | 14840 | |
cd9a469c | 14841 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14842 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b30fcfae | 14843 | as_expr=expr |
14844 | else | |
14845 | as_expr=false | |
14846 | fi | |
14847 | ||
cd9a469c | 14848 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b30fcfae | 14849 | as_basename=basename |
14850 | else | |
14851 | as_basename=false | |
14852 | fi | |
14853 | ||
cd9a469c | 14854 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14855 | as_dirname=dirname | |
14856 | else | |
14857 | as_dirname=false | |
14858 | fi | |
b30fcfae | 14859 | |
cd9a469c | 14860 | as_me=`$as_basename -- "$0" || |
b30fcfae | 14861 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14862 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 14863 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14864 | $as_echo X/"$0" | | |
14865 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14866 | s//\1/ | |
14867 | q | |
14868 | } | |
14869 | /^X\/\(\/\/\)$/{ | |
14870 | s//\1/ | |
14871 | q | |
14872 | } | |
14873 | /^X\/\(\/\).*/{ | |
14874 | s//\1/ | |
14875 | q | |
14876 | } | |
14877 | s/.*/./; q'` | |
5084f823 | 14878 | |
5084f823 | 14879 | # Avoid depending upon Character Ranges. |
14880 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14881 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14882 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14883 | as_cr_digits='0123456789' | |
14884 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14885 | ||
cd9a469c | 14886 | ECHO_C= ECHO_N= ECHO_T= |
14887 | case `echo -n x` in #((((( | |
14888 | -n*) | |
14889 | case `echo 'xy\c'` in | |
14890 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14891 | xy) ECHO_C='\c';; | |
14892 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14893 | ECHO_T=' ';; | |
14894 | esac;; | |
14895 | *) | |
14896 | ECHO_N='-n';; | |
b30fcfae | 14897 | esac |
14898 | ||
cd9a469c | 14899 | rm -f conf$$ conf$$.exe conf$$.file |
14900 | if test -d conf$$.dir; then | |
14901 | rm -f conf$$.dir/conf$$.file | |
b30fcfae | 14902 | else |
cd9a469c | 14903 | rm -f conf$$.dir |
14904 | mkdir conf$$.dir 2>/dev/null | |
b30fcfae | 14905 | fi |
cd9a469c | 14906 | if (echo >conf$$.file) 2>/dev/null; then |
14907 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
5084f823 | 14908 | as_ln_s='ln -s' |
cd9a469c | 14909 | # ... but there are two gotchas: |
14910 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14911 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14912 | # In both cases, we have to default to `cp -p'. | |
14913 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
14914 | as_ln_s='cp -p' | |
14915 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14916 | as_ln_s=ln | |
14917 | else | |
14918 | as_ln_s='cp -p' | |
5084f823 | 14919 | fi |
b30fcfae | 14920 | else |
14921 | as_ln_s='cp -p' | |
14922 | fi | |
cd9a469c | 14923 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14924 | rmdir conf$$.dir 2>/dev/null | |
14925 | ||
14926 | ||
14927 | # as_fn_mkdir_p | |
14928 | # ------------- | |
14929 | # Create "$as_dir" as a directory, including parents if necessary. | |
14930 | as_fn_mkdir_p () | |
14931 | { | |
14932 | ||
14933 | case $as_dir in #( | |
14934 | -*) as_dir=./$as_dir;; | |
14935 | esac | |
14936 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14937 | as_dirs= | |
14938 | while :; do | |
14939 | case $as_dir in #( | |
14940 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14941 | *) as_qdir=$as_dir;; | |
14942 | esac | |
14943 | as_dirs="'$as_qdir' $as_dirs" | |
14944 | as_dir=`$as_dirname -- "$as_dir" || | |
14945 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14946 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14947 | X"$as_dir" : 'X\(//\)$' \| \ | |
14948 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14949 | $as_echo X"$as_dir" | | |
14950 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14951 | s//\1/ | |
14952 | q | |
14953 | } | |
14954 | /^X\(\/\/\)[^/].*/{ | |
14955 | s//\1/ | |
14956 | q | |
14957 | } | |
14958 | /^X\(\/\/\)$/{ | |
14959 | s//\1/ | |
14960 | q | |
14961 | } | |
14962 | /^X\(\/\).*/{ | |
14963 | s//\1/ | |
14964 | q | |
14965 | } | |
14966 | s/.*/./; q'` | |
14967 | test -d "$as_dir" && break | |
14968 | done | |
14969 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14970 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
14971 | ||
b30fcfae | 14972 | |
cd9a469c | 14973 | } # as_fn_mkdir_p |
b30fcfae | 14974 | if mkdir -p . 2>/dev/null; then |
cd9a469c | 14975 | as_mkdir_p='mkdir -p "$as_dir"' |
b30fcfae | 14976 | else |
14977 | test -d ./-p && rmdir ./-p | |
14978 | as_mkdir_p=false | |
14979 | fi | |
14980 | ||
cd9a469c | 14981 | if test -x / >/dev/null 2>&1; then |
14982 | as_test_x='test -x' | |
14983 | else | |
14984 | if ls -dL / >/dev/null 2>&1; then | |
14985 | as_ls_L_option=L | |
14986 | else | |
14987 | as_ls_L_option= | |
14988 | fi | |
14989 | as_test_x=' | |
14990 | eval sh -c '\'' | |
14991 | if test -d "$1"; then | |
14992 | test -d "$1/."; | |
14993 | else | |
14994 | case $1 in #( | |
14995 | -*)set "./$1";; | |
14996 | esac; | |
14997 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
14998 | ???[sx]*):;;*)false;;esac;fi | |
14999 | '\'' sh | |
15000 | ' | |
15001 | fi | |
15002 | as_executable_p=$as_test_x | |
b30fcfae | 15003 | |
15004 | # Sed expression to map a string onto a valid CPP name. | |
15005 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15006 | ||
15007 | # Sed expression to map a string onto a valid variable name. | |
15008 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15009 | ||
15010 | ||
b30fcfae | 15011 | exec 6>&1 |
cd9a469c | 15012 | ## ----------------------------------- ## |
15013 | ## Main body of $CONFIG_STATUS script. ## | |
15014 | ## ----------------------------------- ## | |
15015 | _ASEOF | |
15016 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15017 | ||
15018 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15019 | # Save the log message, to keep $0 and so on meaningful, and to | |
b30fcfae | 15020 | # report actual input values of CONFIG_FILES etc. instead of their |
cd9a469c | 15021 | # values after options handling. |
15022 | ac_log=" | |
b30fcfae | 15023 | This file was extended by $as_me, which was |
cd9a469c | 15024 | generated by GNU Autoconf 2.64. Invocation command line was |
b30fcfae | 15025 | |
15026 | CONFIG_FILES = $CONFIG_FILES | |
15027 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15028 | CONFIG_LINKS = $CONFIG_LINKS | |
15029 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15030 | $ $0 $@ | |
15031 | ||
cd9a469c | 15032 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15033 | " | |
15034 | ||
b30fcfae | 15035 | _ACEOF |
15036 | ||
cd9a469c | 15037 | case $ac_config_files in *" |
15038 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15039 | esac | |
b30fcfae | 15040 | |
5084f823 | 15041 | |
5084f823 | 15042 | |
cd9a469c | 15043 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15044 | # Files that config.status was made for. | |
15045 | config_files="$ac_config_files" | |
b30fcfae | 15046 | |
cd9a469c | 15047 | _ACEOF |
5084f823 | 15048 | |
cd9a469c | 15049 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b30fcfae | 15050 | ac_cs_usage="\ |
cd9a469c | 15051 | \`$as_me' instantiates files and other configuration actions |
15052 | from templates according to the current configuration. Unless the files | |
15053 | and actions are specified as TAGs, all are instantiated by default. | |
b30fcfae | 15054 | |
cd9a469c | 15055 | Usage: $0 [OPTION]... [TAG]... |
b30fcfae | 15056 | |
15057 | -h, --help print this help, then exit | |
cd9a469c | 15058 | -V, --version print version number and configuration settings, then exit |
15059 | -q, --quiet, --silent | |
15060 | do not print progress messages | |
b30fcfae | 15061 | -d, --debug don't remove temporary files |
15062 | --recheck update $as_me by reconfiguring in the same conditions | |
cd9a469c | 15063 | --file=FILE[:TEMPLATE] |
15064 | instantiate the configuration file FILE | |
b30fcfae | 15065 | |
15066 | Configuration files: | |
15067 | $config_files | |
15068 | ||
cd9a469c | 15069 | Report bugs to the package provider." |
5084f823 | 15070 | |
cd9a469c | 15071 | _ACEOF |
15072 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b30fcfae | 15073 | ac_cs_version="\\ |
15074 | config.status | |
cd9a469c | 15075 | configured by $0, generated by GNU Autoconf 2.64, |
15076 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
b30fcfae | 15077 | |
cd9a469c | 15078 | Copyright (C) 2009 Free Software Foundation, Inc. |
b30fcfae | 15079 | This config.status script is free software; the Free Software Foundation |
15080 | gives unlimited permission to copy, distribute and modify it." | |
cd9a469c | 15081 | |
15082 | ac_pwd='$ac_pwd' | |
15083 | srcdir='$srcdir' | |
15084 | INSTALL='$INSTALL' | |
b181f265 | 15085 | AWK='$AWK' |
cd9a469c | 15086 | test -n "\$AWK" || AWK=awk |
b30fcfae | 15087 | _ACEOF |
15088 | ||
cd9a469c | 15089 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15090 | # The default lists apply if the user does not specify any file. | |
b30fcfae | 15091 | ac_need_defaults=: |
15092 | while test $# != 0 | |
b1660f25 | 15093 | do |
b30fcfae | 15094 | case $1 in |
15095 | --*=*) | |
cd9a469c | 15096 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15097 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b30fcfae | 15098 | ac_shift=: |
15099 | ;; | |
cd9a469c | 15100 | *) |
b30fcfae | 15101 | ac_option=$1 |
15102 | ac_optarg=$2 | |
15103 | ac_shift=shift | |
15104 | ;; | |
b30fcfae | 15105 | esac |
15106 | ||
15107 | case $ac_option in | |
15108 | # Handling of the options. | |
71ab34df | 15109 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
b30fcfae | 15110 | ac_cs_recheck=: ;; |
cd9a469c | 15111 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15112 | $as_echo "$ac_cs_version"; exit ;; | |
15113 | --debug | --debu | --deb | --de | --d | -d ) | |
b30fcfae | 15114 | debug=: ;; |
15115 | --file | --fil | --fi | --f ) | |
15116 | $ac_shift | |
cd9a469c | 15117 | case $ac_optarg in |
15118 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15119 | esac | |
15120 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
5084f823 | 15121 | ac_need_defaults=false;; |
cd9a469c | 15122 | --he | --h | --help | --hel | -h ) |
15123 | $as_echo "$ac_cs_usage"; exit ;; | |
b30fcfae | 15124 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15125 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15126 | ac_cs_silent=: ;; | |
15127 | ||
15128 | # This is an error. | |
cd9a469c | 15129 | -*) as_fn_error "unrecognized option: \`$1' |
15130 | Try \`$0 --help' for more information." ;; | |
b30fcfae | 15131 | |
cd9a469c | 15132 | *) as_fn_append ac_config_targets " $1" |
15133 | ac_need_defaults=false ;; | |
b30fcfae | 15134 | |
a83ffacf | 15135 | esac |
b30fcfae | 15136 | shift |
a83ffacf | 15137 | done |
15138 | ||
b30fcfae | 15139 | ac_configure_extra_args= |
a83ffacf | 15140 | |
b30fcfae | 15141 | if $ac_cs_silent; then |
15142 | exec 6>/dev/null | |
15143 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15144 | fi | |
a83ffacf | 15145 | |
b30fcfae | 15146 | _ACEOF |
cd9a469c | 15147 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b30fcfae | 15148 | if \$ac_cs_recheck; then |
cd9a469c | 15149 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15150 | shift | |
15151 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15152 | CONFIG_SHELL='$SHELL' | |
15153 | export CONFIG_SHELL | |
15154 | exec "\$@" | |
b30fcfae | 15155 | fi |
15156 | ||
15157 | _ACEOF | |
cd9a469c | 15158 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15159 | exec 5>>config.log | |
15160 | { | |
15161 | echo | |
15162 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15163 | ## Running $as_me. ## | |
15164 | _ASBOX | |
15165 | $as_echo "$ac_log" | |
15166 | } >&5 | |
b30fcfae | 15167 | |
cd9a469c | 15168 | _ACEOF |
15169 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8bb79148 | 15170 | # |
15171 | # INIT-COMMANDS | |
15172 | # | |
15173 | extrasub_build="$extrasub_build" | |
15174 | extrasub_host="$extrasub_host" | |
15175 | extrasub_target="$extrasub_target" | |
15176 | ||
cd9a469c | 15177 | _ACEOF |
b30fcfae | 15178 | |
cd9a469c | 15179 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
570af75a | 15180 | |
cd9a469c | 15181 | # Handling of arguments. |
b30fcfae | 15182 | for ac_config_target in $ac_config_targets |
15183 | do | |
cd9a469c | 15184 | case $ac_config_target in |
15185 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15186 | ||
15187 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
b30fcfae | 15188 | esac |
15189 | done | |
15190 | ||
cd9a469c | 15191 | |
b30fcfae | 15192 | # If the user did not use the arguments to specify the items to instantiate, |
15193 | # then the envvar interface is used. Set only those that are not. | |
15194 | # We use the long form for the default assignment because of an extremely | |
15195 | # bizarre bug on SunOS 4.1.3. | |
15196 | if $ac_need_defaults; then | |
15197 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15198 | fi | |
15199 | ||
15200 | # Have a temporary directory for convenience. Make it in the build tree | |
cd9a469c | 15201 | # simply because there is no reason against having it here, and in addition, |
b30fcfae | 15202 | # creating and moving files from /tmp can sometimes cause problems. |
cd9a469c | 15203 | # Hook for its removal unless debugging. |
15204 | # Note that there is a small window in which the directory will not be cleaned: | |
15205 | # after its creation but before its name has been assigned to `$tmp'. | |
b30fcfae | 15206 | $debug || |
15207 | { | |
cd9a469c | 15208 | tmp= |
15209 | trap 'exit_status=$? | |
15210 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15211 | ' 0 | |
15212 | trap 'as_fn_exit 1' 1 2 13 15 | |
b30fcfae | 15213 | } |
b30fcfae | 15214 | # Create a (secure) tmp directory for tmp files. |
15215 | ||
15216 | { | |
cd9a469c | 15217 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b30fcfae | 15218 | test -n "$tmp" && test -d "$tmp" |
15219 | } || | |
15220 | { | |
cd9a469c | 15221 | tmp=./conf$$-$RANDOM |
15222 | (umask 077 && mkdir "$tmp") | |
15223 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
15224 | ||
15225 | # Set up the scripts for CONFIG_FILES section. | |
15226 | # No need to generate them if there are no CONFIG_FILES. | |
15227 | # This happens for instance with `./config.status config.h'. | |
15228 | if test -n "$CONFIG_FILES"; then | |
15229 | ||
15230 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15231 | ac_cs_awk_getline=: | |
15232 | ac_cs_awk_pipe_init= | |
15233 | ac_cs_awk_read_file=' | |
15234 | while ((getline aline < (F[key])) > 0) | |
15235 | print(aline) | |
15236 | close(F[key])' | |
15237 | ac_cs_awk_pipe_fini= | |
15238 | else | |
15239 | ac_cs_awk_getline=false | |
15240 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15241 | ac_cs_awk_read_file=' | |
15242 | print "|#_!!_#|" | |
15243 | print "cat " F[key] " &&" | |
15244 | '$ac_cs_awk_pipe_init | |
15245 | # The final `:' finishes the AND list. | |
15246 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15247 | fi | |
15248 | ac_cr=`echo X | tr X '\015'` | |
15249 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15250 | # But we know of no other shell where ac_cr would be empty at this | |
15251 | # point, so we can use a bashism as a fallback. | |
15252 | if test "x$ac_cr" = x; then | |
15253 | eval ac_cr=\$\'\\r\' | |
15254 | fi | |
15255 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15256 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15257 | ac_cs_awk_cr='\r' | |
15258 | else | |
15259 | ac_cs_awk_cr=$ac_cr | |
15260 | fi | |
15261 | ||
15262 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15263 | _ACEOF | |
15264 | ||
15265 | # Create commands to substitute file output variables. | |
b30fcfae | 15266 | { |
cd9a469c | 15267 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
15268 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
15269 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
15270 | echo "_ACAWK" && | |
15271 | echo "_ACEOF" | |
15272 | } >conf$$files.sh && | |
15273 | . ./conf$$files.sh || | |
15274 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15275 | rm -f conf$$files.sh | |
b30fcfae | 15276 | |
cd9a469c | 15277 | { |
15278 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15279 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15280 | echo "_ACEOF" | |
15281 | } >conf$$subs.sh || | |
15282 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15283 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15284 | ac_delim='%!_!# ' | |
15285 | for ac_last_try in false false false false false :; do | |
15286 | . ./conf$$subs.sh || | |
15287 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15288 | ||
15289 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15290 | if test $ac_delim_n = $ac_delim_num; then | |
15291 | break | |
15292 | elif $ac_last_try; then | |
15293 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15294 | else | |
15295 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15296 | fi | |
15297 | done | |
15298 | rm -f conf$$subs.sh | |
15299 | ||
15300 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15301 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
5084f823 | 15302 | _ACEOF |
cd9a469c | 15303 | sed -n ' |
15304 | h | |
15305 | s/^/S["/; s/!.*/"]=/ | |
15306 | p | |
15307 | g | |
15308 | s/^[^!]*!// | |
15309 | :repl | |
15310 | t repl | |
15311 | s/'"$ac_delim"'$// | |
15312 | t delim | |
15313 | :nl | |
15314 | h | |
15315 | s/\(.\{148\}\).*/\1/ | |
15316 | t more1 | |
15317 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15318 | p | |
15319 | n | |
15320 | b repl | |
15321 | :more1 | |
15322 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15323 | p | |
15324 | g | |
15325 | s/.\{148\}// | |
15326 | t nl | |
15327 | :delim | |
15328 | h | |
15329 | s/\(.\{148\}\).*/\1/ | |
15330 | t more2 | |
15331 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15332 | p | |
15333 | b | |
15334 | :more2 | |
15335 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15336 | p | |
15337 | g | |
15338 | s/.\{148\}// | |
15339 | t delim | |
15340 | ' <conf$$subs.awk | sed ' | |
15341 | /^[^""]/{ | |
15342 | N | |
15343 | s/\n// | |
15344 | } | |
15345 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15346 | rm -f conf$$subs.awk | |
15347 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15348 | _ACAWK | |
15349 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15350 | for (key in S) S_is_set[key] = 1 | |
15351 | FS = "\a" | |
15352 | \$ac_cs_awk_pipe_init | |
15353 | } | |
15354 | { | |
15355 | line = $ 0 | |
15356 | nfields = split(line, field, "@") | |
15357 | substed = 0 | |
15358 | len = length(field[1]) | |
15359 | for (i = 2; i < nfields; i++) { | |
15360 | key = field[i] | |
15361 | keylen = length(key) | |
15362 | if (S_is_set[key]) { | |
15363 | value = S[key] | |
15364 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15365 | len += length(value) + length(field[++i]) | |
15366 | substed = 1 | |
15367 | } else | |
15368 | len += 1 + keylen | |
15369 | } | |
15370 | if (nfields == 3 && !substed) { | |
15371 | key = field[2] | |
15372 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15373 | \$ac_cs_awk_read_file | |
15374 | next | |
15375 | } | |
15376 | } | |
15377 | print line | |
15378 | } | |
15379 | \$ac_cs_awk_pipe_fini | |
15380 | _ACAWK | |
15381 | _ACEOF | |
15382 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15383 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15384 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15385 | else | |
15386 | cat | |
15387 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15388 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15389 | _ACEOF | |
15390 | ||
15391 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15392 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15393 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15394 | # (actually we leave an empty line to preserve line numbers). | |
15395 | if test "x$srcdir" = x.; then | |
15396 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15397 | s/:*\$(srcdir):*/:/ | |
15398 | s/:*\${srcdir}:*/:/ | |
15399 | s/:*@srcdir@:*/:/ | |
15400 | s/^\([^=]*=[ ]*\):*/\1/ | |
15401 | s/:*$// | |
15402 | s/^[^=]*=[ ]*$// | |
15403 | }' | |
15404 | fi | |
5084f823 | 15405 | |
cd9a469c | 15406 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15407 | fi # test -n "$CONFIG_FILES" | |
5084f823 | 15408 | |
b30fcfae | 15409 | |
cd9a469c | 15410 | eval set X " :F $CONFIG_FILES " |
15411 | shift | |
15412 | for ac_tag | |
15413 | do | |
15414 | case $ac_tag in | |
15415 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15416 | esac | |
15417 | case $ac_mode$ac_tag in | |
15418 | :[FHL]*:*);; | |
15419 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15420 | :[FH]-) ac_tag=-:-;; | |
15421 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15422 | esac | |
15423 | ac_save_IFS=$IFS | |
15424 | IFS=: | |
15425 | set x $ac_tag | |
15426 | IFS=$ac_save_IFS | |
15427 | shift | |
15428 | ac_file=$1 | |
15429 | shift | |
a8298541 | 15430 | |
cd9a469c | 15431 | case $ac_mode in |
15432 | :L) ac_source=$1;; | |
15433 | :[FH]) | |
15434 | ac_file_inputs= | |
15435 | for ac_f | |
15436 | do | |
15437 | case $ac_f in | |
15438 | -) ac_f="$tmp/stdin";; | |
15439 | *) # Look for the file first in the build tree, then in the source tree | |
15440 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15441 | # because $ac_f cannot contain `:'. | |
15442 | test -f "$ac_f" || | |
15443 | case $ac_f in | |
15444 | [\\/$]*) false;; | |
15445 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15446 | esac || | |
15447 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15448 | esac | |
15449 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15450 | as_fn_append ac_file_inputs " '$ac_f'" | |
15451 | done | |
b30fcfae | 15452 | |
cd9a469c | 15453 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15454 | # use $as_me), people would be surprised to read: | |
15455 | # /* config.h. Generated by config.status. */ | |
15456 | configure_input='Generated from '` | |
15457 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15458 | `' by configure.' | |
15459 | if test x"$ac_file" != x-; then | |
15460 | configure_input="$ac_file. $configure_input" | |
15461 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15462 | $as_echo "$as_me: creating $ac_file" >&6;} | |
5084f823 | 15463 | fi |
cd9a469c | 15464 | # Neutralize special characters interpreted by sed in replacement strings. |
15465 | case $configure_input in #( | |
15466 | *\&* | *\|* | *\\* ) | |
15467 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15468 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15469 | *) ac_sed_conf_input=$configure_input;; | |
15470 | esac | |
570af75a | 15471 | |
cd9a469c | 15472 | case $ac_tag in |
15473 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15474 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15475 | esac | |
15476 | ;; | |
570af75a | 15477 | esac |
15478 | ||
cd9a469c | 15479 | ac_dir=`$as_dirname -- "$ac_file" || |
b30fcfae | 15480 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15481 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15482 | X"$ac_file" : 'X\(//\)$' \| \ | |
cd9a469c | 15483 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15484 | $as_echo X"$ac_file" | | |
15485 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15486 | s//\1/ | |
15487 | q | |
15488 | } | |
15489 | /^X\(\/\/\)[^/].*/{ | |
15490 | s//\1/ | |
15491 | q | |
15492 | } | |
15493 | /^X\(\/\/\)$/{ | |
15494 | s//\1/ | |
15495 | q | |
15496 | } | |
15497 | /^X\(\/\).*/{ | |
15498 | s//\1/ | |
15499 | q | |
15500 | } | |
15501 | s/.*/./; q'` | |
15502 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b30fcfae | 15503 | ac_builddir=. |
a83ffacf | 15504 | |
cd9a469c | 15505 | case "$ac_dir" in |
15506 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15507 | *) | |
15508 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15509 | # A ".." for each directory in $ac_dir_suffix. | |
15510 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15511 | case $ac_top_builddir_sub in | |
15512 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15513 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15514 | esac ;; | |
15515 | esac | |
15516 | ac_abs_top_builddir=$ac_pwd | |
15517 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15518 | # for backward compatibility: | |
15519 | ac_top_builddir=$ac_top_build_prefix | |
b30fcfae | 15520 | |
15521 | case $srcdir in | |
cd9a469c | 15522 | .) # We are building in place. |
b30fcfae | 15523 | ac_srcdir=. |
cd9a469c | 15524 | ac_top_srcdir=$ac_top_builddir_sub |
15525 | ac_abs_top_srcdir=$ac_pwd ;; | |
15526 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b30fcfae | 15527 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 15528 | ac_top_srcdir=$srcdir |
15529 | ac_abs_top_srcdir=$srcdir ;; | |
15530 | *) # Relative name. | |
15531 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15532 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15533 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b30fcfae | 15534 | esac |
cd9a469c | 15535 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b1660f25 | 15536 | |
a83ffacf | 15537 | |
cd9a469c | 15538 | case $ac_mode in |
15539 | :F) | |
15540 | # | |
15541 | # CONFIG_FILE | |
15542 | # | |
b30fcfae | 15543 | |
15544 | case $INSTALL in | |
15545 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
cd9a469c | 15546 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
71ab34df | 15547 | esac |
cd9a469c | 15548 | _ACEOF |
570af75a | 15549 | |
cd9a469c | 15550 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15551 | # If the template does not know about datarootdir, expand it. | |
15552 | # FIXME: This hack should be removed a few years after 2.60. | |
15553 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15554 | ac_sed_dataroot=' | |
15555 | /datarootdir/ { | |
15556 | p | |
15557 | q | |
15558 | } | |
15559 | /@datadir@/p | |
15560 | /@docdir@/p | |
15561 | /@infodir@/p | |
15562 | /@localedir@/p | |
15563 | /@mandir@/p' | |
15564 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15565 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15566 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15567 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15568 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
570af75a | 15569 | _ACEOF |
cd9a469c | 15570 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15571 | ac_datarootdir_hack=' | |
15572 | s&@datadir@&$datadir&g | |
15573 | s&@docdir@&$docdir&g | |
15574 | s&@infodir@&$infodir&g | |
15575 | s&@localedir@&$localedir&g | |
15576 | s&@mandir@&$mandir&g | |
15577 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15578 | esac | |
15579 | _ACEOF | |
15580 | ||
15581 | # Neutralize VPATH when `$srcdir' = `.'. | |
15582 | # Shell code in configure.ac might set extrasub. | |
15583 | # FIXME: do we really want to maintain this feature? | |
15584 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15585 | ac_sed_extra="$ac_vpsub | |
b30fcfae | 15586 | $extrasub |
15587 | _ACEOF | |
cd9a469c | 15588 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b30fcfae | 15589 | :t |
15590 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
cd9a469c | 15591 | s|@configure_input@|$ac_sed_conf_input|;t t |
15592 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15593 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15594 | s&@srcdir@&$ac_srcdir&;t t | |
15595 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15596 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15597 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15598 | s&@builddir@&$ac_builddir&;t t | |
15599 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15600 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15601 | s&@INSTALL@&$ac_INSTALL&;t t | |
15602 | $ac_datarootdir_hack | |
15603 | " | |
15604 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15605 | if $ac_cs_awk_getline; then | |
15606 | $AWK -f "$tmp/subs.awk" | |
15607 | else | |
15608 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15609 | fi >$tmp/out \ | |
15610 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15611 | ||
15612 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15613 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15614 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15615 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15616 | which seems to be undefined. Please make sure it is defined." >&5 | |
15617 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15618 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15619 | ||
15620 | rm -f "$tmp/stdin" | |
15621 | case $ac_file in | |
15622 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
15623 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15624 | esac \ | |
15625 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15626 | ;; | |
570af75a | 15627 | |
570af75a | 15628 | |
a8298541 | 15629 | |
cd9a469c | 15630 | esac |
15631 | ||
8bb79148 | 15632 | |
15633 | case $ac_file$ac_mode in | |
15634 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15635 | sed "$extrasub_host" | | |
15636 | sed "$extrasub_target" > mf$$ | |
15637 | mv -f mf$$ Makefile ;; | |
15638 | ||
15639 | esac | |
cd9a469c | 15640 | done # for ac_tag |
15641 | ||
15642 | ||
15643 | as_fn_exit 0 | |
b30fcfae | 15644 | _ACEOF |
b30fcfae | 15645 | ac_clean_files=$ac_clean_files_save |
15646 | ||
cd9a469c | 15647 | test $ac_write_fail = 0 || |
15648 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15649 | ||
b30fcfae | 15650 | |
15651 | # configure is writing to config.log, and then calls config.status. | |
15652 | # config.status does its own redirection, appending to config.log. | |
15653 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15654 | # by configure, so config.status won't be able to write to it; its | |
15655 | # output is simply discarded. So we exec the FD to /dev/null, | |
15656 | # effectively closing config.log, so it can be properly (re)opened and | |
15657 | # appended to by config.status. When coming back to configure, we | |
15658 | # need to make the FD available again. | |
15659 | if test "$no_create" != yes; then | |
15660 | ac_cs_success=: | |
15661 | ac_config_status_args= | |
15662 | test "$silent" = yes && | |
15663 | ac_config_status_args="$ac_config_status_args --quiet" | |
15664 | exec 5>/dev/null | |
15665 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15666 | exec 5>>config.log | |
15667 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15668 | # would make configure fail if this is the last instruction. | |
cd9a469c | 15669 | $ac_cs_success || as_fn_exit $? |
15670 | fi | |
15671 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15672 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15673 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
b30fcfae | 15674 | fi |
a8298541 | 15675 |