]>
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 | |
fc740d70 | 577 | OBJCOPY_FOR_TARGET |
cd9a469c | 578 | NM_FOR_TARGET |
579 | LIPO_FOR_TARGET | |
580 | LD_FOR_TARGET | |
581 | DLLTOOL_FOR_TARGET | |
582 | AS_FOR_TARGET | |
583 | AR_FOR_TARGET | |
5ff5b630 | 584 | GOC_FOR_TARGET |
cd9a469c | 585 | GFORTRAN_FOR_TARGET |
cd9a469c | 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 |
cd9a469c | 618 | DLLTOOL_FOR_BUILD |
619 | CXX_FOR_BUILD | |
620 | CXXFLAGS_FOR_BUILD | |
621 | CFLAGS_FOR_BUILD | |
622 | CC_FOR_BUILD | |
623 | AS_FOR_BUILD | |
624 | AR_FOR_BUILD | |
1fda3360 | 625 | target_configdirs |
cd9a469c | 626 | configdirs |
cd9a469c | 627 | build_configdirs |
cd9a469c | 628 | INSTALL_GDB_TK |
629 | GDB_TK | |
630 | CONFIGURE_GDB_TK | |
631 | build_tooldir | |
632 | tooldir | |
633 | GCC_SHLIB_SUBDIR | |
634 | RPATH_ENVVAR | |
372a3f1e | 635 | target_configargs |
636 | host_configargs | |
637 | build_configargs | |
719faf1c | 638 | BUILD_CONFIG |
ed9516f5 | 639 | LDFLAGS_FOR_TARGET |
cd9a469c | 640 | CXXFLAGS_FOR_TARGET |
641 | CFLAGS_FOR_TARGET | |
642 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
643 | SYSROOT_CFLAGS_FOR_TARGET | |
c850ece7 | 644 | extra_host_zlib_configure_flags |
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 |
45fc5243 | 651 | islver |
cd9a469c | 652 | poststage1_ldflags |
d6dfe18a | 653 | poststage1_libs |
cd9a469c | 654 | stage1_ldflags |
13687c85 | 655 | stage1_libs |
e4128452 | 656 | extra_isl_gmp_configure_flags |
cd9a469c | 657 | extra_mpc_mpfr_configure_flags |
658 | extra_mpc_gmp_configure_flags | |
659 | extra_mpfr_configure_flags | |
660 | gmpinc | |
661 | gmplibs | |
662 | do_compare | |
663 | GNATMAKE | |
664 | GNATBIND | |
665 | ac_ct_CXX | |
666 | CXXFLAGS | |
667 | CXX | |
668 | OBJEXT | |
669 | EXEEXT | |
670 | ac_ct_CC | |
671 | CPPFLAGS | |
672 | LDFLAGS | |
673 | CFLAGS | |
674 | CC | |
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 | |
6406d366 | 749 | with_system_zlib |
a3d93be3 | 750 | enable_as_accelerator_for |
751 | enable_offload_targets | |
cd9a469c | 752 | enable_gold |
1e369e5f | 753 | enable_ld |
afb6adb9 | 754 | enable_compressed_debug_sections |
d9d975ae | 755 | enable_libquadmath |
756 | enable_libquadmath_support | |
cd9a469c | 757 | enable_libada |
758 | enable_libssp | |
a3ba808f | 759 | enable_libstdcxx |
d3a7dd32 | 760 | enable_liboffloadmic |
6c59dfa4 | 761 | enable_bootstrap |
cd9a469c | 762 | with_mpc |
763 | with_mpc_include | |
764 | with_mpc_lib | |
765 | with_mpfr_dir | |
766 | with_mpfr | |
767 | with_mpfr_include | |
768 | with_mpfr_lib | |
769 | with_gmp_dir | |
770 | with_gmp | |
771 | with_gmp_include | |
772 | with_gmp_lib | |
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 |
03869f98 | 785 | enable_objc_gc |
baf71228 | 786 | with_target_bdw_gc |
787 | with_target_bdw_gc_include | |
788 | with_target_bdw_gc_lib | |
cd9a469c | 789 | with_build_sysroot |
790 | with_debug_prefix_map | |
a2059f7a | 791 | with_build_config |
ee055341 | 792 | enable_vtable_verify |
cd9a469c | 793 | enable_serial_configure |
794 | with_build_time_tools | |
795 | enable_maintainer_mode | |
796 | enable_stage1_checking | |
797 | enable_werror | |
2bd17377 | 798 | enable_host_shared |
cd9a469c | 799 | ' |
800 | ac_precious_vars='build_alias | |
801 | host_alias | |
802 | target_alias | |
803 | CC | |
804 | CFLAGS | |
805 | LDFLAGS | |
806 | LIBS | |
807 | CPPFLAGS | |
808 | CXX | |
809 | CXXFLAGS | |
810 | CCC | |
372a3f1e | 811 | build_configargs |
812 | host_configargs | |
813 | target_configargs | |
cd9a469c | 814 | AR |
815 | AS | |
816 | DLLTOOL | |
817 | LD | |
818 | LIPO | |
819 | NM | |
820 | RANLIB | |
821 | STRIP | |
822 | WINDRES | |
823 | WINDMC | |
824 | OBJCOPY | |
825 | OBJDUMP | |
3f71364d | 826 | READELF |
cd9a469c | 827 | CC_FOR_TARGET |
828 | CXX_FOR_TARGET | |
829 | GCC_FOR_TARGET | |
cd9a469c | 830 | GFORTRAN_FOR_TARGET |
5ff5b630 | 831 | GOC_FOR_TARGET |
cd9a469c | 832 | AR_FOR_TARGET |
833 | AS_FOR_TARGET | |
834 | DLLTOOL_FOR_TARGET | |
835 | LD_FOR_TARGET | |
836 | LIPO_FOR_TARGET | |
837 | NM_FOR_TARGET | |
fc740d70 | 838 | OBJCOPY_FOR_TARGET |
cd9a469c | 839 | OBJDUMP_FOR_TARGET |
840 | RANLIB_FOR_TARGET | |
3f71364d | 841 | READELF_FOR_TARGET |
cd9a469c | 842 | STRIP_FOR_TARGET |
843 | WINDRES_FOR_TARGET | |
844 | WINDMC_FOR_TARGET' | |
845 | ||
71ab34df | 846 | |
847 | # Initialize some variables set by options. | |
b30fcfae | 848 | ac_init_help= |
849 | ac_init_version=false | |
cd9a469c | 850 | ac_unrecognized_opts= |
851 | ac_unrecognized_sep= | |
71ab34df | 852 | # The variables have the same names as the options, with |
853 | # dashes changed to underlines. | |
b30fcfae | 854 | cache_file=/dev/null |
71ab34df | 855 | exec_prefix=NONE |
71ab34df | 856 | no_create= |
71ab34df | 857 | no_recursion= |
858 | prefix=NONE | |
859 | program_prefix=NONE | |
860 | program_suffix=NONE | |
861 | program_transform_name=s,x,x, | |
862 | silent= | |
863 | site= | |
864 | srcdir= | |
71ab34df | 865 | verbose= |
866 | x_includes=NONE | |
867 | x_libraries=NONE | |
b30fcfae | 868 | |
869 | # Installation directory options. | |
870 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
871 | # and all the variables that are supposed to be based on exec_prefix | |
872 | # by default will actually change. | |
873 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
cd9a469c | 874 | # (The list follows the same order as the GNU Coding Standards.) |
71ab34df | 875 | bindir='${exec_prefix}/bin' |
876 | sbindir='${exec_prefix}/sbin' | |
877 | libexecdir='${exec_prefix}/libexec' | |
cd9a469c | 878 | datarootdir='${prefix}/share' |
879 | datadir='${datarootdir}' | |
71ab34df | 880 | sysconfdir='${prefix}/etc' |
881 | sharedstatedir='${prefix}/com' | |
882 | localstatedir='${prefix}/var' | |
71ab34df | 883 | includedir='${prefix}/include' |
884 | oldincludedir='/usr/include' | |
cd9a469c | 885 | docdir='${datarootdir}/doc/${PACKAGE}' |
886 | infodir='${datarootdir}/info' | |
887 | htmldir='${docdir}' | |
888 | dvidir='${docdir}' | |
889 | pdfdir='${docdir}' | |
890 | psdir='${docdir}' | |
891 | libdir='${exec_prefix}/lib' | |
892 | localedir='${datarootdir}/locale' | |
893 | mandir='${datarootdir}/man' | |
a8298541 | 894 | |
71ab34df | 895 | ac_prev= |
cd9a469c | 896 | ac_dashdash= |
71ab34df | 897 | for ac_option |
898 | do | |
71ab34df | 899 | # If the previous option needs an argument, assign it. |
900 | if test -n "$ac_prev"; then | |
cd9a469c | 901 | eval $ac_prev=\$ac_option |
71ab34df | 902 | ac_prev= |
903 | continue | |
904 | fi | |
a8298541 | 905 | |
cd9a469c | 906 | case $ac_option in |
907 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
908 | *) ac_optarg=yes ;; | |
909 | esac | |
71ab34df | 910 | |
911 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
912 | ||
cd9a469c | 913 | case $ac_dashdash$ac_option in |
914 | --) | |
915 | ac_dashdash=yes ;; | |
71ab34df | 916 | |
917 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
918 | ac_prev=bindir ;; | |
919 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b30fcfae | 920 | bindir=$ac_optarg ;; |
71ab34df | 921 | |
922 | -build | --build | --buil | --bui | --bu) | |
b30fcfae | 923 | ac_prev=build_alias ;; |
71ab34df | 924 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b30fcfae | 925 | build_alias=$ac_optarg ;; |
71ab34df | 926 | |
927 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
928 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
929 | ac_prev=cache_file ;; | |
930 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
931 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b30fcfae | 932 | cache_file=$ac_optarg ;; |
933 | ||
934 | --config-cache | -C) | |
935 | cache_file=config.cache ;; | |
71ab34df | 936 | |
cd9a469c | 937 | -datadir | --datadir | --datadi | --datad) |
71ab34df | 938 | ac_prev=datadir ;; |
cd9a469c | 939 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b30fcfae | 940 | datadir=$ac_optarg ;; |
71ab34df | 941 | |
cd9a469c | 942 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
943 | | --dataroo | --dataro | --datar) | |
944 | ac_prev=datarootdir ;; | |
945 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
946 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
947 | datarootdir=$ac_optarg ;; | |
948 | ||
71ab34df | 949 | -disable-* | --disable-*) |
cd9a469c | 950 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
71ab34df | 951 | # Reject names that are not valid shell variable names. |
cd9a469c | 952 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
953 | as_fn_error "invalid feature name: $ac_useropt" | |
954 | ac_useropt_orig=$ac_useropt | |
955 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
956 | case $ac_user_opts in | |
957 | *" | |
958 | "enable_$ac_useropt" | |
959 | "*) ;; | |
960 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
961 | ac_unrecognized_sep=', ';; | |
962 | esac | |
963 | eval enable_$ac_useropt=no ;; | |
964 | ||
965 | -docdir | --docdir | --docdi | --doc | --do) | |
966 | ac_prev=docdir ;; | |
967 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
968 | docdir=$ac_optarg ;; | |
969 | ||
970 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
971 | ac_prev=dvidir ;; | |
972 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
973 | dvidir=$ac_optarg ;; | |
71ab34df | 974 | |
975 | -enable-* | --enable-*) | |
cd9a469c | 976 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
71ab34df | 977 | # Reject names that are not valid shell variable names. |
cd9a469c | 978 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
979 | as_fn_error "invalid feature name: $ac_useropt" | |
980 | ac_useropt_orig=$ac_useropt | |
981 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
982 | case $ac_user_opts in | |
983 | *" | |
984 | "enable_$ac_useropt" | |
985 | "*) ;; | |
986 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
987 | ac_unrecognized_sep=', ';; | |
5084f823 | 988 | esac |
cd9a469c | 989 | eval enable_$ac_useropt=\$ac_optarg ;; |
71ab34df | 990 | |
991 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
992 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
993 | | --exec | --exe | --ex) | |
994 | ac_prev=exec_prefix ;; | |
995 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
996 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
997 | | --exec=* | --exe=* | --ex=*) | |
b30fcfae | 998 | exec_prefix=$ac_optarg ;; |
71ab34df | 999 | |
1000 | -gas | --gas | --ga | --g) | |
1001 | # Obsolete; use --with-gas. | |
1002 | with_gas=yes ;; | |
1003 | ||
b30fcfae | 1004 | -help | --help | --hel | --he | -h) |
1005 | ac_init_help=long ;; | |
1006 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1007 | ac_init_help=recursive ;; | |
1008 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1009 | ac_init_help=short ;; | |
71ab34df | 1010 | |
1011 | -host | --host | --hos | --ho) | |
b30fcfae | 1012 | ac_prev=host_alias ;; |
71ab34df | 1013 | -host=* | --host=* | --hos=* | --ho=*) |
b30fcfae | 1014 | host_alias=$ac_optarg ;; |
71ab34df | 1015 | |
cd9a469c | 1016 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1017 | ac_prev=htmldir ;; | |
1018 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1019 | | --ht=*) | |
1020 | htmldir=$ac_optarg ;; | |
1021 | ||
71ab34df | 1022 | -includedir | --includedir | --includedi | --included | --include \ |
1023 | | --includ | --inclu | --incl | --inc) | |
1024 | ac_prev=includedir ;; | |
1025 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1026 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b30fcfae | 1027 | includedir=$ac_optarg ;; |
71ab34df | 1028 | |
1029 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1030 | ac_prev=infodir ;; | |
1031 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b30fcfae | 1032 | infodir=$ac_optarg ;; |
71ab34df | 1033 | |
1034 | -libdir | --libdir | --libdi | --libd) | |
1035 | ac_prev=libdir ;; | |
1036 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b30fcfae | 1037 | libdir=$ac_optarg ;; |
71ab34df | 1038 | |
1039 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1040 | | --libexe | --libex | --libe) | |
1041 | ac_prev=libexecdir ;; | |
1042 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1043 | | --libexe=* | --libex=* | --libe=*) | |
b30fcfae | 1044 | libexecdir=$ac_optarg ;; |
71ab34df | 1045 | |
cd9a469c | 1046 | -localedir | --localedir | --localedi | --localed | --locale) |
1047 | ac_prev=localedir ;; | |
1048 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1049 | localedir=$ac_optarg ;; | |
1050 | ||
71ab34df | 1051 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
cd9a469c | 1052 | | --localstate | --localstat | --localsta | --localst | --locals) |
71ab34df | 1053 | ac_prev=localstatedir ;; |
1054 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
cd9a469c | 1055 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b30fcfae | 1056 | localstatedir=$ac_optarg ;; |
71ab34df | 1057 | |
1058 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1059 | ac_prev=mandir ;; | |
1060 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b30fcfae | 1061 | mandir=$ac_optarg ;; |
71ab34df | 1062 | |
1063 | -nfp | --nfp | --nf) | |
1064 | # Obsolete; use --without-fp. | |
1065 | with_fp=no ;; | |
1066 | ||
1067 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b30fcfae | 1068 | | --no-cr | --no-c | -n) |
71ab34df | 1069 | no_create=yes ;; |
1070 | ||
1071 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1072 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1073 | no_recursion=yes ;; | |
1074 | ||
1075 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1076 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1077 | | --oldin | --oldi | --old | --ol | --o) | |
1078 | ac_prev=oldincludedir ;; | |
1079 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1080 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1081 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b30fcfae | 1082 | oldincludedir=$ac_optarg ;; |
71ab34df | 1083 | |
1084 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1085 | ac_prev=prefix ;; | |
1086 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b30fcfae | 1087 | prefix=$ac_optarg ;; |
71ab34df | 1088 | |
1089 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1090 | | --program-pre | --program-pr | --program-p) | |
1091 | ac_prev=program_prefix ;; | |
1092 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1093 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b30fcfae | 1094 | program_prefix=$ac_optarg ;; |
71ab34df | 1095 | |
1096 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1097 | | --program-suf | --program-su | --program-s) | |
1098 | ac_prev=program_suffix ;; | |
1099 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1100 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b30fcfae | 1101 | program_suffix=$ac_optarg ;; |
71ab34df | 1102 | |
1103 | -program-transform-name | --program-transform-name \ | |
1104 | | --program-transform-nam | --program-transform-na \ | |
1105 | | --program-transform-n | --program-transform- \ | |
1106 | | --program-transform | --program-transfor \ | |
1107 | | --program-transfo | --program-transf \ | |
1108 | | --program-trans | --program-tran \ | |
1109 | | --progr-tra | --program-tr | --program-t) | |
1110 | ac_prev=program_transform_name ;; | |
1111 | -program-transform-name=* | --program-transform-name=* \ | |
1112 | | --program-transform-nam=* | --program-transform-na=* \ | |
1113 | | --program-transform-n=* | --program-transform-=* \ | |
1114 | | --program-transform=* | --program-transfor=* \ | |
1115 | | --program-transfo=* | --program-transf=* \ | |
1116 | | --program-trans=* | --program-tran=* \ | |
1117 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b30fcfae | 1118 | program_transform_name=$ac_optarg ;; |
71ab34df | 1119 | |
cd9a469c | 1120 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1121 | ac_prev=pdfdir ;; | |
1122 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1123 | pdfdir=$ac_optarg ;; | |
1124 | ||
1125 | -psdir | --psdir | --psdi | --psd | --ps) | |
1126 | ac_prev=psdir ;; | |
1127 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1128 | psdir=$ac_optarg ;; | |
1129 | ||
71ab34df | 1130 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1131 | | -silent | --silent | --silen | --sile | --sil) | |
1132 | silent=yes ;; | |
1133 | ||
1134 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1135 | ac_prev=sbindir ;; | |
1136 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1137 | | --sbi=* | --sb=*) | |
b30fcfae | 1138 | sbindir=$ac_optarg ;; |
71ab34df | 1139 | |
1140 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1141 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1142 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1143 | | --sha | --sh) | |
1144 | ac_prev=sharedstatedir ;; | |
1145 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1146 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1147 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1148 | | --sha=* | --sh=*) | |
b30fcfae | 1149 | sharedstatedir=$ac_optarg ;; |
71ab34df | 1150 | |
1151 | -site | --site | --sit) | |
1152 | ac_prev=site ;; | |
1153 | -site=* | --site=* | --sit=*) | |
b30fcfae | 1154 | site=$ac_optarg ;; |
71ab34df | 1155 | |
1156 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1157 | ac_prev=srcdir ;; | |
1158 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b30fcfae | 1159 | srcdir=$ac_optarg ;; |
71ab34df | 1160 | |
1161 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1162 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1163 | ac_prev=sysconfdir ;; | |
1164 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1165 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b30fcfae | 1166 | sysconfdir=$ac_optarg ;; |
71ab34df | 1167 | |
1168 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b30fcfae | 1169 | ac_prev=target_alias ;; |
71ab34df | 1170 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b30fcfae | 1171 | target_alias=$ac_optarg ;; |
71ab34df | 1172 | |
1173 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1174 | verbose=yes ;; | |
1175 | ||
b30fcfae | 1176 | -version | --version | --versio | --versi | --vers | -V) |
1177 | ac_init_version=: ;; | |
71ab34df | 1178 | |
1179 | -with-* | --with-*) | |
cd9a469c | 1180 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
71ab34df | 1181 | # Reject names that are not valid shell variable names. |
cd9a469c | 1182 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1183 | as_fn_error "invalid package name: $ac_useropt" | |
1184 | ac_useropt_orig=$ac_useropt | |
1185 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1186 | case $ac_user_opts in | |
1187 | *" | |
1188 | "with_$ac_useropt" | |
1189 | "*) ;; | |
1190 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1191 | ac_unrecognized_sep=', ';; | |
5084f823 | 1192 | esac |
cd9a469c | 1193 | eval with_$ac_useropt=\$ac_optarg ;; |
71ab34df | 1194 | |
1195 | -without-* | --without-*) | |
cd9a469c | 1196 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
71ab34df | 1197 | # Reject names that are not valid shell variable names. |
cd9a469c | 1198 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1199 | as_fn_error "invalid package name: $ac_useropt" | |
1200 | ac_useropt_orig=$ac_useropt | |
1201 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1202 | case $ac_user_opts in | |
1203 | *" | |
1204 | "with_$ac_useropt" | |
1205 | "*) ;; | |
1206 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1207 | ac_unrecognized_sep=', ';; | |
1208 | esac | |
1209 | eval with_$ac_useropt=no ;; | |
71ab34df | 1210 | |
1211 | --x) | |
1212 | # Obsolete; use --with-x. | |
1213 | with_x=yes ;; | |
1214 | ||
1215 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1216 | | --x-incl | --x-inc | --x-in | --x-i) | |
1217 | ac_prev=x_includes ;; | |
1218 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1219 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b30fcfae | 1220 | x_includes=$ac_optarg ;; |
71ab34df | 1221 | |
1222 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1223 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1224 | ac_prev=x_libraries ;; | |
1225 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1226 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b30fcfae | 1227 | x_libraries=$ac_optarg ;; |
71ab34df | 1228 | |
cd9a469c | 1229 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1230 | Try \`$0 --help' for more information." | |
71ab34df | 1231 | ;; |
1232 | ||
b30fcfae | 1233 | *=*) |
1234 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1235 | # Reject names that are not valid shell variable names. | |
cd9a469c | 1236 | case $ac_envvar in #( |
1237 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1238 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1239 | esac | |
1240 | eval $ac_envvar=\$ac_optarg | |
b30fcfae | 1241 | export $ac_envvar ;; |
1242 | ||
71ab34df | 1243 | *) |
b30fcfae | 1244 | # FIXME: should be removed in autoconf 3.0. |
cd9a469c | 1245 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b30fcfae | 1246 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
cd9a469c | 1247 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b30fcfae | 1248 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
71ab34df | 1249 | ;; |
1250 | ||
1251 | esac | |
1252 | done | |
1253 | ||
1254 | if test -n "$ac_prev"; then | |
b30fcfae | 1255 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
cd9a469c | 1256 | as_fn_error "missing argument to $ac_option" |
ae48753c | 1257 | fi |
ae48753c | 1258 | |
cd9a469c | 1259 | if test -n "$ac_unrecognized_opts"; then |
1260 | case $enable_option_checking in | |
1261 | no) ;; | |
1262 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1263 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
5084f823 | 1264 | esac |
cd9a469c | 1265 | fi |
5084f823 | 1266 | |
cd9a469c | 1267 | # Check all directory arguments for consistency. |
1268 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1269 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1270 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1271 | libdir localedir mandir | |
5084f823 | 1272 | do |
cd9a469c | 1273 | eval ac_val=\$$ac_var |
1274 | # Remove trailing slashes. | |
1275 | case $ac_val in | |
1276 | */ ) | |
1277 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1278 | eval $ac_var=\$ac_val;; | |
1279 | esac | |
1280 | # Be sure to have absolute directory names. | |
5084f823 | 1281 | case $ac_val in |
cd9a469c | 1282 | [\\/$]* | ?:[\\/]* ) continue;; |
1283 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
71ab34df | 1284 | esac |
cd9a469c | 1285 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
71ab34df | 1286 | done |
1287 | ||
b30fcfae | 1288 | # There might be people who depend on the old broken behavior: `$host' |
1289 | # used to hold the argument of --host etc. | |
1290 | # FIXME: To remove some day. | |
1291 | build=$build_alias | |
1292 | host=$host_alias | |
1293 | target=$target_alias | |
a83ffacf | 1294 | |
b30fcfae | 1295 | # FIXME: To remove some day. |
1296 | if test "x$host_alias" != x; then | |
1297 | if test "x$build_alias" = x; then | |
1298 | cross_compiling=maybe | |
cd9a469c | 1299 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
b30fcfae | 1300 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1301 | elif test "x$build_alias" != "x$host_alias"; then | |
1302 | cross_compiling=yes | |
1303 | fi | |
1304 | fi | |
1305 | ||
1306 | ac_tool_prefix= | |
1307 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1308 | ||
1309 | test "$silent" = yes && exec 6>/dev/null | |
71ab34df | 1310 | |
71ab34df | 1311 | |
cd9a469c | 1312 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1313 | ac_ls_di=`ls -di .` && | |
1314 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1315 | as_fn_error "working directory cannot be determined" | |
1316 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1317 | as_fn_error "pwd does not report name of working directory" | |
1318 | ||
1319 | ||
71ab34df | 1320 | # Find the source files, if location was not specified. |
1321 | if test -z "$srcdir"; then | |
1322 | ac_srcdir_defaulted=yes | |
cd9a469c | 1323 | # Try the directory containing this script, then the parent directory. |
1324 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1325 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1326 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1327 | X"$as_myself" : 'X\(//\)$' \| \ | |
1328 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1329 | $as_echo X"$as_myself" | | |
1330 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1331 | s//\1/ | |
1332 | q | |
1333 | } | |
1334 | /^X\(\/\/\)[^/].*/{ | |
1335 | s//\1/ | |
1336 | q | |
1337 | } | |
1338 | /^X\(\/\/\)$/{ | |
1339 | s//\1/ | |
1340 | q | |
1341 | } | |
1342 | /^X\(\/\).*/{ | |
1343 | s//\1/ | |
1344 | q | |
1345 | } | |
1346 | s/.*/./; q'` | |
71ab34df | 1347 | srcdir=$ac_confdir |
cd9a469c | 1348 | if test ! -r "$srcdir/$ac_unique_file"; then |
71ab34df | 1349 | srcdir=.. |
1350 | fi | |
1351 | else | |
1352 | ac_srcdir_defaulted=no | |
1353 | fi | |
cd9a469c | 1354 | if test ! -r "$srcdir/$ac_unique_file"; then |
1355 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1356 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1357 | fi | |
1358 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1359 | ac_abs_confdir=`( | |
1360 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1361 | pwd)` | |
1362 | # When building in place, set srcdir=. | |
1363 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1364 | srcdir=. | |
1365 | fi | |
1366 | # Remove unnecessary trailing slashes from srcdir. | |
1367 | # Double slashes in file names in object file debugging info | |
1368 | # mess up M-x gdb in Emacs. | |
1369 | case $srcdir in | |
1370 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1371 | esac | |
13d2f2b2 | 1372 | case $srcdir in |
1373 | *" "*) | |
1374 | as_fn_error "path to source, $srcdir, contains spaces" | |
1375 | ;; | |
1376 | esac | |
d2d2630b | 1377 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1378 | ||
cd9a469c | 1379 | for ac_var in $ac_precious_vars; do |
1380 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1381 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1382 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1383 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1384 | done | |
b30fcfae | 1385 | |
1386 | # | |
1387 | # Report the --help message. | |
1388 | # | |
1389 | if test "$ac_init_help" = "long"; then | |
1390 | # Omit some internal or obsolete options to make the list less imposing. | |
1391 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1392 | cat <<_ACEOF | |
1393 | \`configure' configures this package to adapt to many kinds of systems. | |
1394 | ||
1395 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1396 | ||
1397 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1398 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1399 | ||
1400 | Defaults for the options are specified in brackets. | |
1401 | ||
1402 | Configuration: | |
1403 | -h, --help display this help and exit | |
1404 | --help=short display options specific to this package | |
1405 | --help=recursive display the short help of all the included packages | |
1406 | -V, --version display version information and exit | |
1407 | -q, --quiet, --silent do not print \`checking...' messages | |
1408 | --cache-file=FILE cache test results in FILE [disabled] | |
1409 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1410 | -n, --no-create do not create output files | |
1411 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1412 | ||
b30fcfae | 1413 | Installation directories: |
1414 | --prefix=PREFIX install architecture-independent files in PREFIX | |
cd9a469c | 1415 | [$ac_default_prefix] |
b30fcfae | 1416 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
cd9a469c | 1417 | [PREFIX] |
b30fcfae | 1418 | |
1419 | By default, \`make install' will install all the files in | |
1420 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1421 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1422 | for instance \`--prefix=\$HOME'. | |
1423 | ||
1424 | For better control, use the options below. | |
1425 | ||
1426 | Fine tuning of the installation directories: | |
cd9a469c | 1427 | --bindir=DIR user executables [EPREFIX/bin] |
1428 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1429 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1430 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1431 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1432 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1433 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1434 | --includedir=DIR C header files [PREFIX/include] | |
1435 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1436 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1437 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1438 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1439 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1440 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1441 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1442 | --htmldir=DIR html documentation [DOCDIR] | |
1443 | --dvidir=DIR dvi documentation [DOCDIR] | |
1444 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1445 | --psdir=DIR ps documentation [DOCDIR] | |
b30fcfae | 1446 | _ACEOF |
1447 | ||
1448 | cat <<\_ACEOF | |
1449 | ||
1450 | Program names: | |
1451 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1452 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1453 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1454 | ||
1455 | System types: | |
1456 | --build=BUILD configure for building on BUILD [guessed] | |
1457 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1458 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1459 | _ACEOF | |
1460 | fi | |
1461 | ||
1462 | if test -n "$ac_init_help"; then | |
1463 | ||
1464 | cat <<\_ACEOF | |
1465 | ||
1466 | Optional Features: | |
cd9a469c | 1467 | --disable-option-checking ignore unrecognized --enable/--with options |
b30fcfae | 1468 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1469 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
a3d93be3 | 1470 | --enable-as-accelerator-for=ARG |
1471 | build as offload target compiler. Specify offload | |
1472 | host triple by ARG | |
1473 | --enable-offload-targets=LIST | |
1474 | enable offloading to devices from comma-separated | |
1475 | LIST of TARGET[=DIR]. Use optional path to find | |
1476 | offload target compiler during the build | |
1e369e5f | 1477 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
8747a938 | 1478 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
325f661b | 1479 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
afb6adb9 | 1480 | Enable compressed debug sections for gas, gold or ld |
1481 | by default | |
d9d975ae | 1482 | --disable-libquadmath do not build libquadmath directory |
1483 | --disable-libquadmath-support | |
1484 | disable libquadmath support for Fortran | |
09c2d953 | 1485 | --enable-libada build libada directory |
1486 | --enable-libssp build libssp directory | |
a3ba808f | 1487 | --disable-libstdcxx do not build libstdc++-v3 directory |
d3a7dd32 | 1488 | --enable-liboffloadmic=ARG |
1489 | build liboffloadmic [ARG={no,host,target}] | |
6c59dfa4 | 1490 | --enable-bootstrap enable bootstrapping [yes if native build] |
87e20041 | 1491 | --disable-isl-version-check |
7458b15a | 1492 | disable check for isl version |
7bfefa9d | 1493 | --enable-lto enable link time optimization support |
1015a063 | 1494 | --enable-linker-plugin-configure-flags=FLAGS |
1495 | additional flags for configuring linker plugins | |
1496 | [none] | |
1497 | --enable-linker-plugin-flags=FLAGS | |
1498 | additional flags for configuring and building linker | |
1499 | plugins [none] | |
8747a938 | 1500 | --enable-stage1-languages[=all] |
1501 | choose additional languages to build during stage1. | |
1502 | Mostly useful for compiler development | |
03869f98 | 1503 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU |
1504 | Objective-C runtime | |
d5f3a33f | 1505 | --enable-vtable-verify Enable vtable verification feature |
09c2d953 | 1506 | --enable-serial-[{host,target,build}-]configure |
8747a938 | 1507 | force sequential configuration of sub-packages for |
1508 | the host, target or build machine, or all | |
1509 | sub-packages | |
1510 | --enable-maintainer-mode | |
1511 | enable make rules and dependencies not useful (and | |
1512 | sometimes confusing) to the casual installer | |
1513 | --enable-stage1-checking[=all] | |
1514 | choose additional checking for stage1 of the | |
1515 | compiler | |
b30fcfae | 1516 | --enable-werror enable -Werror in bootstrap stage2 and later |
2bd17377 | 1517 | --enable-host-shared build host code as shared libraries |
b30fcfae | 1518 | |
1519 | Optional Packages: | |
1520 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1521 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1522 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
6406d366 | 1523 | --with-system-zlib use installed libz |
8747a938 | 1524 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1525 | Equivalent to --with-mpc-include=PATH/include plus | |
1526 | --with-mpc-lib=PATH/lib | |
1527 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1528 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
09c2d953 | 1529 | --with-mpfr-dir=PATH this option has been REMOVED |
1530 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
8747a938 | 1531 | Equivalent to --with-mpfr-include=PATH/include plus |
1532 | --with-mpfr-lib=PATH/lib | |
b30fcfae | 1533 | --with-mpfr-include=PATH |
09c2d953 | 1534 | specify directory for installed MPFR include files |
1535 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1536 | --with-gmp-dir=PATH this option has been REMOVED | |
8747a938 | 1537 | --with-gmp=PATH specify prefix directory for the installed GMP |
1538 | package. Equivalent to | |
1539 | --with-gmp-include=PATH/include plus | |
1540 | --with-gmp-lib=PATH/lib | |
09c2d953 | 1541 | --with-gmp-include=PATH specify directory for installed GMP include files |
1542 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
13687c85 | 1543 | --with-stage1-libs=LIBS libraries for stage1 |
8747a938 | 1544 | --with-stage1-ldflags=FLAGS |
1545 | linker flags for stage1 | |
8747a938 | 1546 | --with-boot-libs=LIBS libraries for stage2 and later |
1547 | --with-boot-ldflags=FLAGS | |
1548 | linker flags for stage2 and later | |
71130ef8 | 1549 | --with-isl=PATH Specify prefix directory for the installed isl |
8747a938 | 1550 | package. Equivalent to |
87e20041 | 1551 | --with-isl-include=PATH/include plus |
1552 | --with-isl-lib=PATH/lib | |
7458b15a | 1553 | --with-isl-include=PATH Specify directory for installed isl include files |
1554 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
baf71228 | 1555 | --with-target-bdw-gc=PATHLIST |
1556 | specify prefix directory for installed bdw-gc | |
1557 | package. Equivalent to | |
1558 | --with-target-bdw-gc-include=PATH/include plus | |
1559 | --with-target-bdw-gc-lib=PATH/lib | |
1560 | --with-target-bdw-gc-include=PATHLIST | |
1561 | specify directories for installed bdw-gc include | |
1562 | files | |
1563 | --with-target-bdw-gc-lib=PATHLIST | |
1564 | specify directories for installed bdw-gc library | |
09c2d953 | 1565 | --with-build-sysroot=SYSROOT |
b30fcfae | 1566 | use sysroot as the system root during the build |
5f1f2de5 | 1567 | --with-debug-prefix-map='A=B C=D ...' |
8747a938 | 1568 | map A to B, C to D ... in debug information |
1569 | --with-build-config='NAME NAME2...' | |
1570 | use config/NAME.mk build configuration | |
09c2d953 | 1571 | --with-build-time-tools=PATH |
b30fcfae | 1572 | use given path to find target tools during the build |
b30fcfae | 1573 | |
1574 | Some influential environment variables: | |
1575 | CC C compiler command | |
1576 | CFLAGS C compiler flags | |
1577 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1578 | nonstandard directory <lib dir> | |
cd9a469c | 1579 | LIBS libraries to pass to the linker, e.g. -l<library> |
1580 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1581 | you have headers in a nonstandard directory <include dir> | |
eae5b2bc | 1582 | CXX C++ compiler command |
1583 | CXXFLAGS C++ compiler flags | |
372a3f1e | 1584 | build_configargs |
1585 | additional configure arguments for build directories | |
1586 | host_configargs | |
1587 | additional configure arguments for host directories | |
1588 | target_configargs | |
1589 | additional configure arguments for target directories | |
95a05732 | 1590 | AR AR for the host |
1591 | AS AS for the host | |
1592 | DLLTOOL DLLTOOL for the host | |
1593 | LD LD for the host | |
1594 | LIPO LIPO for the host | |
1595 | NM NM for the host | |
1596 | RANLIB RANLIB for the host | |
1597 | STRIP STRIP for the host | |
1598 | WINDRES WINDRES for the host | |
75d6a0a9 | 1599 | WINDMC WINDMC for the host |
95a05732 | 1600 | OBJCOPY OBJCOPY for the host |
1601 | OBJDUMP OBJDUMP for the host | |
3f71364d | 1602 | READELF READELF for the host |
95a05732 | 1603 | CC_FOR_TARGET |
1604 | CC for the target | |
1605 | CXX_FOR_TARGET | |
1606 | CXX for the target | |
1607 | GCC_FOR_TARGET | |
1608 | GCC for the target | |
95a05732 | 1609 | GFORTRAN_FOR_TARGET |
1610 | GFORTRAN for the target | |
5ff5b630 | 1611 | GOC_FOR_TARGET |
1612 | GOC for the target | |
95a05732 | 1613 | AR_FOR_TARGET |
1614 | AR for the target | |
1615 | AS_FOR_TARGET | |
1616 | AS for the target | |
1617 | DLLTOOL_FOR_TARGET | |
1618 | DLLTOOL for the target | |
1619 | LD_FOR_TARGET | |
1620 | LD for the target | |
1621 | LIPO_FOR_TARGET | |
1622 | LIPO for the target | |
1623 | NM_FOR_TARGET | |
1624 | NM for the target | |
fc740d70 | 1625 | OBJCOPY_FOR_TARGET |
1626 | OBJCOPY for the target | |
95a05732 | 1627 | OBJDUMP_FOR_TARGET |
1628 | OBJDUMP for the target | |
1629 | RANLIB_FOR_TARGET | |
1630 | RANLIB for the target | |
3f71364d | 1631 | READELF_FOR_TARGET |
1632 | READELF for the target | |
95a05732 | 1633 | STRIP_FOR_TARGET |
1634 | STRIP for the target | |
1635 | WINDRES_FOR_TARGET | |
1636 | WINDRES for the target | |
75d6a0a9 | 1637 | WINDMC_FOR_TARGET |
1638 | WINDMC for the target | |
b30fcfae | 1639 | |
1640 | Use these variables to override the choices made by `configure' or to help | |
1641 | it to find libraries and programs with nonstandard names/locations. | |
1642 | ||
cd9a469c | 1643 | Report bugs to the package provider. |
b30fcfae | 1644 | _ACEOF |
cd9a469c | 1645 | ac_status=$? |
b30fcfae | 1646 | fi |
1647 | ||
1648 | if test "$ac_init_help" = "recursive"; then | |
1649 | # If there are subdirs, report their specific --help. | |
b30fcfae | 1650 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
cd9a469c | 1651 | test -d "$ac_dir" || |
1652 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1653 | continue | |
b30fcfae | 1654 | ac_builddir=. |
1655 | ||
cd9a469c | 1656 | case "$ac_dir" in |
1657 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1658 | *) | |
1659 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1660 | # A ".." for each directory in $ac_dir_suffix. | |
1661 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1662 | case $ac_top_builddir_sub in | |
1663 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1664 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1665 | esac ;; | |
1666 | esac | |
1667 | ac_abs_top_builddir=$ac_pwd | |
1668 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1669 | # for backward compatibility: | |
1670 | ac_top_builddir=$ac_top_build_prefix | |
b30fcfae | 1671 | |
1672 | case $srcdir in | |
cd9a469c | 1673 | .) # We are building in place. |
b30fcfae | 1674 | ac_srcdir=. |
cd9a469c | 1675 | ac_top_srcdir=$ac_top_builddir_sub |
1676 | ac_abs_top_srcdir=$ac_pwd ;; | |
1677 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b30fcfae | 1678 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 1679 | ac_top_srcdir=$srcdir |
1680 | ac_abs_top_srcdir=$srcdir ;; | |
1681 | *) # Relative name. | |
1682 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1683 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1684 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
5084f823 | 1685 | esac |
cd9a469c | 1686 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1687 | ||
1688 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1689 | # Check for guested configure. | |
1690 | if test -f "$ac_srcdir/configure.gnu"; then | |
1691 | echo && | |
1692 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1693 | elif test -f "$ac_srcdir/configure"; then | |
1694 | echo && | |
1695 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b30fcfae | 1696 | else |
cd9a469c | 1697 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1698 | fi || ac_status=$? | |
1699 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b30fcfae | 1700 | done |
1701 | fi | |
1702 | ||
cd9a469c | 1703 | test -n "$ac_init_help" && exit $ac_status |
b30fcfae | 1704 | if $ac_init_version; then |
1705 | cat <<\_ACEOF | |
cd9a469c | 1706 | configure |
1707 | generated by GNU Autoconf 2.64 | |
b30fcfae | 1708 | |
cd9a469c | 1709 | Copyright (C) 2009 Free Software Foundation, Inc. |
b30fcfae | 1710 | This configure script is free software; the Free Software Foundation |
1711 | gives unlimited permission to copy, distribute and modify it. | |
1712 | _ACEOF | |
cd9a469c | 1713 | exit |
a83ffacf | 1714 | fi |
cd9a469c | 1715 | |
1716 | ## ------------------------ ## | |
1717 | ## Autoconf initialization. ## | |
1718 | ## ------------------------ ## | |
1719 | ||
1720 | # ac_fn_c_try_compile LINENO | |
1721 | # -------------------------- | |
1722 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1723 | ac_fn_c_try_compile () | |
1724 | { | |
1725 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1726 | rm -f conftest.$ac_objext | |
1727 | if { { ac_try="$ac_compile" | |
1728 | case "(($ac_try" in | |
1729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1730 | *) ac_try_echo=$ac_try;; | |
1731 | esac | |
1732 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1733 | $as_echo "$ac_try_echo"; } >&5 | |
1734 | (eval "$ac_compile") 2>conftest.err | |
1735 | ac_status=$? | |
1736 | if test -s conftest.err; then | |
1737 | grep -v '^ *+' conftest.err >conftest.er1 | |
1738 | cat conftest.er1 >&5 | |
1739 | mv -f conftest.er1 conftest.err | |
1740 | fi | |
1741 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1742 | test $ac_status = 0; } && { | |
1743 | test -z "$ac_c_werror_flag" || | |
1744 | test ! -s conftest.err | |
1745 | } && test -s conftest.$ac_objext; then : | |
1746 | ac_retval=0 | |
1747 | else | |
1748 | $as_echo "$as_me: failed program was:" >&5 | |
1749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1750 | ||
1751 | ac_retval=1 | |
1752 | fi | |
1753 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1754 | return $ac_retval | |
1755 | ||
1756 | } # ac_fn_c_try_compile | |
1757 | ||
1758 | # ac_fn_cxx_try_compile LINENO | |
1759 | # ---------------------------- | |
1760 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1761 | ac_fn_cxx_try_compile () | |
1762 | { | |
1763 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1764 | rm -f conftest.$ac_objext | |
1765 | if { { ac_try="$ac_compile" | |
1766 | case "(($ac_try" in | |
1767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1768 | *) ac_try_echo=$ac_try;; | |
1769 | esac | |
1770 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1771 | $as_echo "$ac_try_echo"; } >&5 | |
1772 | (eval "$ac_compile") 2>conftest.err | |
1773 | ac_status=$? | |
1774 | if test -s conftest.err; then | |
1775 | grep -v '^ *+' conftest.err >conftest.er1 | |
1776 | cat conftest.er1 >&5 | |
1777 | mv -f conftest.er1 conftest.err | |
1778 | fi | |
1779 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1780 | test $ac_status = 0; } && { | |
1781 | test -z "$ac_cxx_werror_flag" || | |
1782 | test ! -s conftest.err | |
1783 | } && test -s conftest.$ac_objext; then : | |
1784 | ac_retval=0 | |
1785 | else | |
1786 | $as_echo "$as_me: failed program was:" >&5 | |
1787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1788 | ||
1789 | ac_retval=1 | |
1790 | fi | |
1791 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1792 | return $ac_retval | |
1793 | ||
1794 | } # ac_fn_cxx_try_compile | |
1795 | ||
13687c85 | 1796 | # ac_fn_cxx_try_link LINENO |
1797 | # ------------------------- | |
1798 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1799 | ac_fn_cxx_try_link () | |
1800 | { | |
1801 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1802 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1803 | if { { ac_try="$ac_link" | |
1804 | case "(($ac_try" in | |
1805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1806 | *) ac_try_echo=$ac_try;; | |
1807 | esac | |
1808 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1809 | $as_echo "$ac_try_echo"; } >&5 | |
1810 | (eval "$ac_link") 2>conftest.err | |
1811 | ac_status=$? | |
1812 | if test -s conftest.err; then | |
1813 | grep -v '^ *+' conftest.err >conftest.er1 | |
1814 | cat conftest.er1 >&5 | |
1815 | mv -f conftest.er1 conftest.err | |
1816 | fi | |
1817 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1818 | test $ac_status = 0; } && { | |
1819 | test -z "$ac_cxx_werror_flag" || | |
1820 | test ! -s conftest.err | |
1821 | } && test -s conftest$ac_exeext && { | |
1822 | test "$cross_compiling" = yes || | |
1823 | $as_test_x conftest$ac_exeext | |
1824 | }; then : | |
1825 | ac_retval=0 | |
1826 | else | |
1827 | $as_echo "$as_me: failed program was:" >&5 | |
1828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1829 | ||
1830 | ac_retval=1 | |
1831 | fi | |
1832 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1833 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1834 | # interfere with the next link command; also delete a directory that is | |
1835 | # left behind by Apple's compiler. We do this before executing the actions. | |
1836 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1837 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1838 | return $ac_retval | |
1839 | ||
1840 | } # ac_fn_cxx_try_link | |
1841 | ||
cd9a469c | 1842 | # ac_fn_c_try_link LINENO |
1843 | # ----------------------- | |
1844 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1845 | ac_fn_c_try_link () | |
1846 | { | |
1847 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1848 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1849 | if { { ac_try="$ac_link" | |
1850 | case "(($ac_try" in | |
1851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1852 | *) ac_try_echo=$ac_try;; | |
1853 | esac | |
1854 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1855 | $as_echo "$ac_try_echo"; } >&5 | |
1856 | (eval "$ac_link") 2>conftest.err | |
1857 | ac_status=$? | |
1858 | if test -s conftest.err; then | |
1859 | grep -v '^ *+' conftest.err >conftest.er1 | |
1860 | cat conftest.er1 >&5 | |
1861 | mv -f conftest.er1 conftest.err | |
1862 | fi | |
1863 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1864 | test $ac_status = 0; } && { | |
1865 | test -z "$ac_c_werror_flag" || | |
1866 | test ! -s conftest.err | |
1867 | } && test -s conftest$ac_exeext && { | |
1868 | test "$cross_compiling" = yes || | |
1869 | $as_test_x conftest$ac_exeext | |
1870 | }; then : | |
1871 | ac_retval=0 | |
1872 | else | |
1873 | $as_echo "$as_me: failed program was:" >&5 | |
1874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1875 | ||
1876 | ac_retval=1 | |
1877 | fi | |
1878 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1879 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1880 | # interfere with the next link command; also delete a directory that is | |
1881 | # left behind by Apple's compiler. We do this before executing the actions. | |
1882 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1883 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1884 | return $ac_retval | |
1885 | ||
1886 | } # ac_fn_c_try_link | |
1887 | cat >config.log <<_ACEOF | |
b30fcfae | 1888 | This file contains any messages produced by compilers while |
1889 | running configure, to aid debugging if configure makes a mistake. | |
1890 | ||
1891 | It was created by $as_me, which was | |
cd9a469c | 1892 | generated by GNU Autoconf 2.64. Invocation command line was |
b30fcfae | 1893 | |
1894 | $ $0 $@ | |
1895 | ||
1896 | _ACEOF | |
cd9a469c | 1897 | exec 5>>config.log |
b30fcfae | 1898 | { |
1899 | cat <<_ASUNAME | |
1900 | ## --------- ## | |
1901 | ## Platform. ## | |
1902 | ## --------- ## | |
1903 | ||
1904 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1905 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1906 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1907 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1908 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1909 | ||
1910 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1911 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1912 | ||
1913 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1914 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1915 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
cd9a469c | 1916 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
b30fcfae | 1917 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1918 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1919 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1920 | ||
1921 | _ASUNAME | |
1922 | ||
1923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1924 | for as_dir in $PATH | |
1925 | do | |
1926 | IFS=$as_save_IFS | |
1927 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 1928 | $as_echo "PATH: $as_dir" |
1929 | done | |
1930 | IFS=$as_save_IFS | |
b30fcfae | 1931 | |
1932 | } >&5 | |
1933 | ||
1934 | cat >&5 <<_ACEOF | |
1935 | ||
1936 | ||
1937 | ## ----------- ## | |
1938 | ## Core tests. ## | |
1939 | ## ----------- ## | |
1940 | ||
1941 | _ACEOF | |
1942 | ||
1943 | ||
1944 | # Keep a trace of the command line. | |
1945 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1946 | # Strip out --silent because we don't want to record it for future runs. | |
1947 | # Also quote any args containing shell meta-characters. | |
1948 | # Make two passes to allow for proper duplicate-argument suppression. | |
1949 | ac_configure_args= | |
1950 | ac_configure_args0= | |
1951 | ac_configure_args1= | |
b30fcfae | 1952 | ac_must_keep_next=false |
1953 | for ac_pass in 1 2 | |
1954 | do | |
1955 | for ac_arg | |
1956 | do | |
1957 | case $ac_arg in | |
1958 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1959 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1960 | | -silent | --silent | --silen | --sile | --sil) | |
1961 | continue ;; | |
cd9a469c | 1962 | *\'*) |
1963 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b30fcfae | 1964 | esac |
1965 | case $ac_pass in | |
cd9a469c | 1966 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b30fcfae | 1967 | 2) |
cd9a469c | 1968 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b30fcfae | 1969 | if test $ac_must_keep_next = true; then |
1970 | ac_must_keep_next=false # Got value, back to normal. | |
1971 | else | |
1972 | case $ac_arg in | |
1973 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1974 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1975 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1976 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1977 | case "$ac_configure_args0 " in | |
1978 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1979 | esac | |
1980 | ;; | |
1981 | -* ) ac_must_keep_next=true ;; | |
1982 | esac | |
1983 | fi | |
cd9a469c | 1984 | as_fn_append ac_configure_args " '$ac_arg'" |
b30fcfae | 1985 | ;; |
1986 | esac | |
1987 | done | |
1988 | done | |
cd9a469c | 1989 | { ac_configure_args0=; unset ac_configure_args0;} |
1990 | { ac_configure_args1=; unset ac_configure_args1;} | |
b30fcfae | 1991 | |
1992 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1993 | # config.log. We remove comments because anyway the quotes in there | |
1994 | # would cause problems or look ugly. | |
cd9a469c | 1995 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1996 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b30fcfae | 1997 | trap 'exit_status=$? |
1998 | # Save into config.log some information that might help in debugging. | |
1999 | { | |
2000 | echo | |
2001 | ||
2002 | cat <<\_ASBOX | |
2003 | ## ---------------- ## | |
2004 | ## Cache variables. ## | |
2005 | ## ---------------- ## | |
2006 | _ASBOX | |
2007 | echo | |
2008 | # The following way of writing the cache mishandles newlines in values, | |
cd9a469c | 2009 | ( |
2010 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2011 | eval ac_val=\$$ac_var | |
2012 | case $ac_val in #( | |
2013 | *${as_nl}*) | |
2014 | case $ac_var in #( | |
2015 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2016 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2017 | esac | |
2018 | case $ac_var in #( | |
2019 | _ | IFS | as_nl) ;; #( | |
2020 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2021 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2022 | esac ;; | |
2023 | esac | |
2024 | done | |
b30fcfae | 2025 | (set) 2>&1 | |
cd9a469c | 2026 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2027 | *${as_nl}ac_space=\ *) | |
b30fcfae | 2028 | sed -n \ |
cd9a469c | 2029 | "s/'\''/'\''\\\\'\'''\''/g; |
2030 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2031 | ;; #( | |
b30fcfae | 2032 | *) |
cd9a469c | 2033 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b30fcfae | 2034 | ;; |
cd9a469c | 2035 | esac | |
2036 | sort | |
2037 | ) | |
b30fcfae | 2038 | echo |
2039 | ||
2040 | cat <<\_ASBOX | |
2041 | ## ----------------- ## | |
2042 | ## Output variables. ## | |
2043 | ## ----------------- ## | |
2044 | _ASBOX | |
2045 | echo | |
2046 | for ac_var in $ac_subst_vars | |
2047 | do | |
cd9a469c | 2048 | eval ac_val=\$$ac_var |
2049 | case $ac_val in | |
2050 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2051 | esac | |
2052 | $as_echo "$ac_var='\''$ac_val'\''" | |
b30fcfae | 2053 | done | sort |
2054 | echo | |
2055 | ||
2056 | if test -n "$ac_subst_files"; then | |
2057 | cat <<\_ASBOX | |
cd9a469c | 2058 | ## ------------------- ## |
2059 | ## File substitutions. ## | |
2060 | ## ------------------- ## | |
b30fcfae | 2061 | _ASBOX |
2062 | echo | |
2063 | for ac_var in $ac_subst_files | |
2064 | do | |
cd9a469c | 2065 | eval ac_val=\$$ac_var |
2066 | case $ac_val in | |
2067 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2068 | esac | |
2069 | $as_echo "$ac_var='\''$ac_val'\''" | |
b30fcfae | 2070 | done | sort |
2071 | echo | |
2072 | fi | |
2073 | ||
2074 | if test -s confdefs.h; then | |
2075 | cat <<\_ASBOX | |
2076 | ## ----------- ## | |
2077 | ## confdefs.h. ## | |
2078 | ## ----------- ## | |
2079 | _ASBOX | |
2080 | echo | |
cd9a469c | 2081 | cat confdefs.h |
b30fcfae | 2082 | echo |
2083 | fi | |
2084 | test "$ac_signal" != 0 && | |
cd9a469c | 2085 | $as_echo "$as_me: caught signal $ac_signal" |
2086 | $as_echo "$as_me: exit $exit_status" | |
b30fcfae | 2087 | } >&5 |
cd9a469c | 2088 | rm -f core *.core core.conftest.* && |
2089 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b30fcfae | 2090 | exit $exit_status |
cd9a469c | 2091 | ' 0 |
b30fcfae | 2092 | for ac_signal in 1 2 13 15; do |
cd9a469c | 2093 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b30fcfae | 2094 | done |
2095 | ac_signal=0 | |
2096 | ||
2097 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
cd9a469c | 2098 | rm -f -r conftest* confdefs.h |
2099 | ||
2100 | $as_echo "/* confdefs.h */" > confdefs.h | |
b30fcfae | 2101 | |
2102 | # Predefined preprocessor variables. | |
2103 | ||
2104 | cat >>confdefs.h <<_ACEOF | |
2105 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2106 | _ACEOF | |
2107 | ||
b30fcfae | 2108 | cat >>confdefs.h <<_ACEOF |
2109 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2110 | _ACEOF | |
2111 | ||
b30fcfae | 2112 | cat >>confdefs.h <<_ACEOF |
2113 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2114 | _ACEOF | |
a83ffacf | 2115 | |
b30fcfae | 2116 | cat >>confdefs.h <<_ACEOF |
2117 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2118 | _ACEOF | |
2119 | ||
b30fcfae | 2120 | cat >>confdefs.h <<_ACEOF |
2121 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2122 | _ACEOF | |
2123 | ||
cd9a469c | 2124 | cat >>confdefs.h <<_ACEOF |
2125 | #define PACKAGE_URL "$PACKAGE_URL" | |
2126 | _ACEOF | |
2127 | ||
b30fcfae | 2128 | |
2129 | # Let the site file select an alternate cache file if it wants to. | |
cd9a469c | 2130 | # Prefer an explicitly selected file to automatically selected ones. |
2131 | ac_site_file1=NONE | |
2132 | ac_site_file2=NONE | |
2133 | if test -n "$CONFIG_SITE"; then | |
2134 | ac_site_file1=$CONFIG_SITE | |
2135 | elif test "x$prefix" != xNONE; then | |
2136 | ac_site_file1=$prefix/share/config.site | |
2137 | ac_site_file2=$prefix/etc/config.site | |
2138 | else | |
2139 | ac_site_file1=$ac_default_prefix/share/config.site | |
2140 | ac_site_file2=$ac_default_prefix/etc/config.site | |
71ab34df | 2141 | fi |
cd9a469c | 2142 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2143 | do | |
2144 | test "x$ac_site_file" = xNONE && continue | |
71ab34df | 2145 | if test -r "$ac_site_file"; then |
cd9a469c | 2146 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2147 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b30fcfae | 2148 | sed 's/^/| /' "$ac_site_file" >&5 |
71ab34df | 2149 | . "$ac_site_file" |
2150 | fi | |
2151 | done | |
2152 | ||
2153 | if test -r "$cache_file"; then | |
b30fcfae | 2154 | # Some versions of bash will fail to source /dev/null (special |
2155 | # files actually), so we avoid doing that. | |
2156 | if test -f "$cache_file"; then | |
cd9a469c | 2157 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2158 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b30fcfae | 2159 | case $cache_file in |
cd9a469c | 2160 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2161 | *) . "./$cache_file";; | |
b30fcfae | 2162 | esac |
2163 | fi | |
71ab34df | 2164 | else |
cd9a469c | 2165 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2166 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b30fcfae | 2167 | >$cache_file |
2168 | fi | |
2169 | ||
2170 | # Check that the precious variables saved in the cache have kept the same | |
2171 | # value. | |
2172 | ac_cache_corrupted=false | |
cd9a469c | 2173 | for ac_var in $ac_precious_vars; do |
b30fcfae | 2174 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2175 | eval ac_new_set=\$ac_env_${ac_var}_set | |
cd9a469c | 2176 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2177 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b30fcfae | 2178 | case $ac_old_set,$ac_new_set in |
2179 | set,) | |
cd9a469c | 2180 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2181 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b30fcfae | 2182 | ac_cache_corrupted=: ;; |
2183 | ,set) | |
cd9a469c | 2184 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2185 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b30fcfae | 2186 | ac_cache_corrupted=: ;; |
2187 | ,);; | |
2188 | *) | |
2189 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
cd9a469c | 2190 | # differences in whitespace do not lead to failure. |
2191 | ac_old_val_w=`echo x $ac_old_val` | |
2192 | ac_new_val_w=`echo x $ac_new_val` | |
2193 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2194 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2195 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2196 | ac_cache_corrupted=: | |
2197 | else | |
2198 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2199 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2200 | eval $ac_var=\$ac_old_val | |
2201 | fi | |
2202 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2203 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2204 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2205 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b30fcfae | 2206 | fi;; |
2207 | esac | |
2208 | # Pass precious variables to config.status. | |
2209 | if test "$ac_new_set" = set; then | |
2210 | case $ac_new_val in | |
cd9a469c | 2211 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b30fcfae | 2212 | *) ac_arg=$ac_var=$ac_new_val ;; |
2213 | esac | |
2214 | case " $ac_configure_args " in | |
2215 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
cd9a469c | 2216 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b30fcfae | 2217 | esac |
2218 | fi | |
2219 | done | |
2220 | if $ac_cache_corrupted; then | |
cd9a469c | 2221 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2222 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2223 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2224 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2225 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
71ab34df | 2226 | fi |
cd9a469c | 2227 | ## -------------------- ## |
2228 | ## Main body of script. ## | |
2229 | ## -------------------- ## | |
71ab34df | 2230 | |
5084f823 | 2231 | ac_ext=c |
2232 | ac_cpp='$CPP $CPPFLAGS' | |
2233 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2234 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2235 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2236 | ||
b30fcfae | 2237 | |
2238 | ||
2239 | ||
b30fcfae | 2240 | |
2241 | ||
cd2f3773 | 2242 | |
b30fcfae | 2243 | |
4e8a889d | 2244 | |
2245 | progname=$0 | |
2246 | # if PWD already has a value, it is probably wrong. | |
2247 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2248 | ||
2249 | # Export original configure arguments for use by sub-configures. | |
2250 | # Quote arguments with shell meta charatcers. | |
2251 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2252 | set -- "$progname" "$@" | |
2253 | for ac_arg | |
2254 | do | |
2255 | case "$ac_arg" in | |
2256 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2257 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2258 | # if the argument is of the form -foo=baz, quote the baz part only | |
2259 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2260 | *) ;; | |
2261 | esac | |
2262 | # Add the quoted argument to the list. | |
2263 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2264 | done | |
2265 | if test "$silent" = yes; then | |
2266 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2267 | fi | |
2268 | # Remove the initial space we just introduced and, as these will be | |
2269 | # expanded by make, quote '$'. | |
2270 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2271 | ||
b30fcfae | 2272 | |
2273 | # Find the build, host, and target systems. | |
71ab34df | 2274 | ac_aux_dir= |
cd9a469c | 2275 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2276 | for ac_t in install-sh install.sh shtool; do | |
2277 | if test -f "$ac_dir/$ac_t"; then | |
2278 | ac_aux_dir=$ac_dir | |
2279 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2280 | break 2 | |
2281 | fi | |
2282 | done | |
71ab34df | 2283 | done |
2284 | if test -z "$ac_aux_dir"; then | |
cd9a469c | 2285 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
71ab34df | 2286 | fi |
cd9a469c | 2287 | |
2288 | # These three variables are undocumented and unsupported, | |
2289 | # and are intended to be withdrawn in a future Autoconf release. | |
2290 | # They can cause serious problems if a builder's source tree is in a directory | |
2291 | # whose full name contains unusual characters. | |
2292 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2293 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2294 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2295 | ||
71ab34df | 2296 | |
b30fcfae | 2297 | # Make sure we can run config.sub. |
cd9a469c | 2298 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2299 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2300 | ||
2301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2302 | $as_echo_n "checking build system type... " >&6; } | |
2303 | if test "${ac_cv_build+set}" = set; then : | |
2304 | $as_echo_n "(cached) " >&6 | |
2305 | else | |
2306 | ac_build_alias=$build_alias | |
2307 | test "x$ac_build_alias" = x && | |
2308 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2309 | test "x$ac_build_alias" = x && | |
2310 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2311 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2312 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2313 | ||
2314 | fi | |
2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2316 | $as_echo "$ac_cv_build" >&6; } | |
2317 | case $ac_cv_build in | |
2318 | *-*-*) ;; | |
2319 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2320 | esac | |
b30fcfae | 2321 | build=$ac_cv_build |
cd9a469c | 2322 | ac_save_IFS=$IFS; IFS='-' |
2323 | set x $ac_cv_build | |
2324 | shift | |
2325 | build_cpu=$1 | |
2326 | build_vendor=$2 | |
2327 | shift; shift | |
2328 | # Remember, the first character of IFS is used to create $*, | |
2329 | # except with old shells: | |
2330 | build_os=$* | |
2331 | IFS=$ac_save_IFS | |
2332 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
71ab34df | 2333 | |
71ab34df | 2334 | |
b30fcfae | 2335 | case ${build_alias} in |
2336 | "") build_noncanonical=${build} ;; | |
2337 | *) build_noncanonical=${build_alias} ;; | |
ae48753c | 2338 | esac |
2339 | ||
2340 | ||
ae48753c | 2341 | |
b30fcfae | 2342 | case ${host_alias} in |
2343 | "") host_noncanonical=${build_noncanonical} ;; | |
2344 | *) host_noncanonical=${host_alias} ;; | |
ae48753c | 2345 | esac |
2346 | ||
ae48753c | 2347 | |
b30fcfae | 2348 | |
2349 | case ${target_alias} in | |
2350 | "") target_noncanonical=${host_noncanonical} ;; | |
2351 | *) target_noncanonical=${target_alias} ;; | |
ae48753c | 2352 | esac |
2353 | ||
ae48753c | 2354 | |
b30fcfae | 2355 | |
2356 | ||
2357 | test "$host_noncanonical" = "$target_noncanonical" && | |
71ab34df | 2358 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2359 | NONENONEs,x,x, && | |
b30fcfae | 2360 | program_transform_name=s,y,y, |
ae48753c | 2361 | |
cd9a469c | 2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2363 | $as_echo_n "checking host system type... " >&6; } | |
2364 | if test "${ac_cv_host+set}" = set; then : | |
2365 | $as_echo_n "(cached) " >&6 | |
ae48753c | 2366 | else |
cd9a469c | 2367 | if test "x$host_alias" = x; then |
2368 | ac_cv_host=$ac_cv_build | |
2369 | else | |
2370 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2371 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2372 | fi | |
b30fcfae | 2373 | |
ae48753c | 2374 | fi |
cd9a469c | 2375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2376 | $as_echo "$ac_cv_host" >&6; } | |
2377 | case $ac_cv_host in | |
2378 | *-*-*) ;; | |
2379 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2380 | esac | |
b30fcfae | 2381 | host=$ac_cv_host |
cd9a469c | 2382 | ac_save_IFS=$IFS; IFS='-' |
2383 | set x $ac_cv_host | |
2384 | shift | |
2385 | host_cpu=$1 | |
2386 | host_vendor=$2 | |
2387 | shift; shift | |
2388 | # Remember, the first character of IFS is used to create $*, | |
2389 | # except with old shells: | |
2390 | host_os=$* | |
2391 | IFS=$ac_save_IFS | |
2392 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
5084f823 | 2393 | |
2394 | ||
cd9a469c | 2395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2396 | $as_echo_n "checking target system type... " >&6; } | |
2397 | if test "${ac_cv_target+set}" = set; then : | |
2398 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 2399 | else |
cd9a469c | 2400 | if test "x$target_alias" = x; then |
2401 | ac_cv_target=$ac_cv_host | |
2402 | else | |
2403 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2404 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2405 | fi | |
b30fcfae | 2406 | |
2407 | fi | |
cd9a469c | 2408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2409 | $as_echo "$ac_cv_target" >&6; } | |
2410 | case $ac_cv_target in | |
2411 | *-*-*) ;; | |
2412 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2413 | esac | |
b30fcfae | 2414 | target=$ac_cv_target |
cd9a469c | 2415 | ac_save_IFS=$IFS; IFS='-' |
2416 | set x $ac_cv_target | |
2417 | shift | |
2418 | target_cpu=$1 | |
2419 | target_vendor=$2 | |
2420 | shift; shift | |
2421 | # Remember, the first character of IFS is used to create $*, | |
2422 | # except with old shells: | |
2423 | target_os=$* | |
2424 | IFS=$ac_save_IFS | |
2425 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
b30fcfae | 2426 | |
2427 | ||
2428 | # The aliases save the names the user supplied, while $host etc. | |
2429 | # will get canonicalized. | |
2430 | test -n "$target_alias" && | |
2431 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2432 | NONENONEs,x,x, && | |
2433 | program_prefix=${target_alias}- | |
cd9a469c | 2434 | |
71ab34df | 2435 | test "$program_prefix" != NONE && |
cd9a469c | 2436 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
71ab34df | 2437 | # Use a double $ so make ignores it. |
2438 | test "$program_suffix" != NONE && | |
cd9a469c | 2439 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2440 | # Double any \ or $. | |
b30fcfae | 2441 | # By default was `s,x,x', remove it if useless. |
cd9a469c | 2442 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2443 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
ae48753c | 2444 | |
71ab34df | 2445 | |
2446 | ||
450e6c84 | 2447 | # Get 'install' or 'install-sh' and its variants. |
2448 | # Find a good install program. We prefer a C program (faster), | |
2449 | # so one script is as good as another. But avoid the broken or | |
2450 | # incompatible versions: | |
2451 | # SysV /etc/install, /usr/sbin/install | |
2452 | # SunOS /usr/etc/install | |
2453 | # IRIX /sbin/install | |
2454 | # AIX /bin/install | |
b30fcfae | 2455 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
450e6c84 | 2456 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2457 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2458 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
b30fcfae | 2459 | # OS/2's system install, which has a completely different semantic |
450e6c84 | 2460 | # ./install, which can be erroneously created by make from ./install.sh. |
82eaf560 | 2461 | # Reject install programs that cannot install multiple files. |
cd9a469c | 2462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2463 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
450e6c84 | 2464 | if test -z "$INSTALL"; then |
cd9a469c | 2465 | if test "${ac_cv_path_install+set}" = set; then : |
2466 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 2467 | else |
2468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2469 | for as_dir in $PATH | |
2470 | do | |
2471 | IFS=$as_save_IFS | |
2472 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 2473 | # Account for people who put trailing slashes in PATH elements. |
2474 | case $as_dir/ in #(( | |
2475 | ./ | .// | /[cC]/* | \ | |
b30fcfae | 2476 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
cd9a469c | 2477 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
b30fcfae | 2478 | /usr/ucb/* ) ;; |
2479 | *) | |
2480 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2481 | # Don't use installbsd from OSF since it installs stuff as root | |
2482 | # by default. | |
2483 | for ac_prog in ginstall scoinst install; do | |
2484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
cd9a469c | 2485 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
450e6c84 | 2486 | if test $ac_prog = install && |
b30fcfae | 2487 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
450e6c84 | 2488 | # AIX install. It has an incompatible calling convention. |
2489 | : | |
b30fcfae | 2490 | elif test $ac_prog = install && |
2491 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2492 | # program-specific install script used by HP pwplus--don't use. | |
2493 | : | |
450e6c84 | 2494 | else |
82eaf560 | 2495 | rm -rf conftest.one conftest.two conftest.dir |
2496 | echo one > conftest.one | |
2497 | echo two > conftest.two | |
2498 | mkdir conftest.dir | |
2499 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2500 | test -s conftest.one && test -s conftest.two && | |
2501 | test -s conftest.dir/conftest.one && | |
2502 | test -s conftest.dir/conftest.two | |
2503 | then | |
2504 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2505 | break 3 | |
2506 | fi | |
450e6c84 | 2507 | fi |
2508 | fi | |
2509 | done | |
b30fcfae | 2510 | done |
2511 | ;; | |
2512 | esac | |
cd9a469c | 2513 | |
2514 | done | |
2515 | IFS=$as_save_IFS | |
b30fcfae | 2516 | |
82eaf560 | 2517 | rm -rf conftest.one conftest.two conftest.dir |
450e6c84 | 2518 | |
2519 | fi | |
2520 | if test "${ac_cv_path_install+set}" = set; then | |
b30fcfae | 2521 | INSTALL=$ac_cv_path_install |
450e6c84 | 2522 | else |
82eaf560 | 2523 | # As a last resort, use the slow shell script. Don't cache a |
2524 | # value for INSTALL within a source directory, because that will | |
450e6c84 | 2525 | # break other packages using the cache if that directory is |
82eaf560 | 2526 | # removed, or if the value is a relative name. |
b30fcfae | 2527 | INSTALL=$ac_install_sh |
450e6c84 | 2528 | fi |
2529 | fi | |
cd9a469c | 2530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2531 | $as_echo "$INSTALL" >&6; } | |
450e6c84 | 2532 | |
2533 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2534 | # It thinks the first close brace ends the variable substitution. | |
2535 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2536 | ||
b30fcfae | 2537 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
450e6c84 | 2538 | |
2539 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2540 | ||
cd9a469c | 2541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2542 | $as_echo_n "checking whether ln works... " >&6; } | |
2543 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2544 | $as_echo_n "(cached) " >&6 | |
599a3eac | 2545 | else |
2546 | rm -f conftestdata_t | |
2547 | echo >conftestdata_f | |
2548 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2549 | then | |
2550 | acx_cv_prog_LN=ln | |
2551 | else | |
2552 | acx_cv_prog_LN=no | |
2553 | fi | |
2554 | rm -f conftestdata_f conftestdata_t | |
2555 | ||
2556 | fi | |
2557 | if test $acx_cv_prog_LN = no; then | |
2558 | LN="cp" | |
cd9a469c | 2559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2560 | $as_echo "no, using $LN" >&6; } | |
599a3eac | 2561 | else |
2562 | LN="$acx_cv_prog_LN" | |
cd9a469c | 2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2564 | $as_echo "yes" >&6; } | |
599a3eac | 2565 | fi |
2566 | ||
cd9a469c | 2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2568 | $as_echo_n "checking whether ln -s works... " >&6; } | |
b30fcfae | 2569 | LN_S=$as_ln_s |
2570 | if test "$LN_S" = "ln -s"; then | |
cd9a469c | 2571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2572 | $as_echo "yes" >&6; } | |
a4af6a58 | 2573 | else |
cd9a469c | 2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2575 | $as_echo "no, using $LN_S" >&6; } | |
5965d276 | 2576 | fi |
2577 | ||
b181f265 | 2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2579 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2580 | if test "${ac_cv_path_SED+set}" = set; then : | |
2581 | $as_echo_n "(cached) " >&6 | |
2582 | else | |
2583 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2584 | for ac_i in 1 2 3 4 5 6 7; do | |
2585 | ac_script="$ac_script$as_nl$ac_script" | |
2586 | done | |
2587 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2588 | { ac_script=; unset ac_script;} | |
2589 | if test -z "$SED"; then | |
2590 | ac_path_SED_found=false | |
2591 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2593 | for as_dir in $PATH | |
2594 | do | |
2595 | IFS=$as_save_IFS | |
2596 | test -z "$as_dir" && as_dir=. | |
2597 | for ac_prog in sed gsed; do | |
2598 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2599 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2600 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2601 | # Check for GNU ac_path_SED and select it if it is found. | |
2602 | # Check for GNU $ac_path_SED | |
2603 | case `"$ac_path_SED" --version 2>&1` in | |
2604 | *GNU*) | |
2605 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2606 | *) | |
2607 | ac_count=0 | |
2608 | $as_echo_n 0123456789 >"conftest.in" | |
2609 | while : | |
2610 | do | |
2611 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2612 | mv "conftest.tmp" "conftest.in" | |
2613 | cp "conftest.in" "conftest.nl" | |
2614 | $as_echo '' >> "conftest.nl" | |
2615 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2616 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2617 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2618 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2619 | # Best one so far, save it but keep looking for a better one | |
2620 | ac_cv_path_SED="$ac_path_SED" | |
2621 | ac_path_SED_max=$ac_count | |
2622 | fi | |
2623 | # 10*(2^10) chars as input seems more than enough | |
2624 | test $ac_count -gt 10 && break | |
2625 | done | |
2626 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2627 | esac | |
2628 | ||
2629 | $ac_path_SED_found && break 3 | |
2630 | done | |
2631 | done | |
2632 | done | |
2633 | IFS=$as_save_IFS | |
2634 | if test -z "$ac_cv_path_SED"; then | |
2635 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2636 | fi | |
2637 | else | |
2638 | ac_cv_path_SED=$SED | |
2639 | fi | |
2640 | ||
2641 | fi | |
2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2643 | $as_echo "$ac_cv_path_SED" >&6; } | |
2644 | SED="$ac_cv_path_SED" | |
2645 | rm -f conftest.sed | |
2646 | ||
2647 | for ac_prog in gawk mawk nawk awk | |
2648 | do | |
2649 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2650 | set dummy $ac_prog; ac_word=$2 | |
2651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2652 | $as_echo_n "checking for $ac_word... " >&6; } | |
2653 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2654 | $as_echo_n "(cached) " >&6 | |
2655 | else | |
2656 | if test -n "$AWK"; then | |
2657 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2658 | else | |
2659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2660 | for as_dir in $PATH | |
2661 | do | |
2662 | IFS=$as_save_IFS | |
2663 | test -z "$as_dir" && as_dir=. | |
2664 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2665 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2666 | ac_cv_prog_AWK="$ac_prog" | |
2667 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2668 | break 2 | |
2669 | fi | |
2670 | done | |
2671 | done | |
2672 | IFS=$as_save_IFS | |
2673 | ||
2674 | fi | |
2675 | fi | |
2676 | AWK=$ac_cv_prog_AWK | |
2677 | if test -n "$AWK"; then | |
2678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2679 | $as_echo "$AWK" >&6; } | |
2680 | else | |
2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2682 | $as_echo "no" >&6; } | |
2683 | fi | |
2684 | ||
2685 | ||
2686 | test -n "$AWK" && break | |
2687 | done | |
2688 | ||
450e6c84 | 2689 | |
e8eddfdd | 2690 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2691 | ||
2692 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2693 | # a relative path. | |
2694 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2695 | INSTALL="${srcpwd}/install-sh -c" | |
2696 | fi | |
2697 | ||
71ab34df | 2698 | # Set srcdir to "." if that's what it is. |
2699 | # This is important for multilib support. | |
2700 | pwd=`${PWDCMD-pwd}` | |
71ab34df | 2701 | if test "${pwd}" = "${srcpwd}" ; then |
2702 | srcdir=. | |
a8298541 | 2703 | fi |
2704 | ||
71ab34df | 2705 | topsrcdir=$srcpwd |
ed37269d | 2706 | |
71ab34df | 2707 | extra_host_args= |
14ac9144 | 2708 | |
71ab34df | 2709 | ### To add a new directory to the tree, first choose whether it is a target |
2710 | ### or a host dependent tool. Then put it into the appropriate list | |
2711 | ### (library or tools, host or target), doing a dependency sort. | |
a8298541 | 2712 | |
b30fcfae | 2713 | # Subdirs will be configured in the order listed in build_configdirs, |
71ab34df | 2714 | # configdirs, or target_configdirs; see the serialization section below. |
a8298541 | 2715 | |
b30fcfae | 2716 | # Dependency sorting is only needed when *configuration* must be done in |
2717 | # a particular order. In all cases a dependency should be specified in | |
71ab34df | 2718 | # the Makefile, whether or not it's implicitly specified here. |
a8298541 | 2719 | |
71ab34df | 2720 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2721 | # cause circular dependencies and break everything horribly. | |
a8298541 | 2722 | |
2f8725b0 | 2723 | # these library is used by various programs built for the build |
2724 | # environment | |
2725 | # | |
9245d2c5 | 2726 | build_libs="build-libiberty build-libcpp" |
2f8725b0 | 2727 | |
2728 | # these tools are built for the build environment | |
4fc99708 | 2729 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
2f8725b0 | 2730 | |
71ab34df | 2731 | # these libraries are used by various programs built for the host environment |
429cca51 | 2732 | #f |
572cf1f7 | 2733 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv" |
71ab34df | 2734 | |
71ab34df | 2735 | # these tools are built for the host environment |
2736 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2737 | # know that we are building the simulator. | |
2738 | # binutils, gas and ld appear in that order because it makes sense to run | |
2739 | # "make check" in that particular order. | |
af7c5662 | 2740 | # If --enable-gold is used, "gold" may replace "ld". |
dcfe52b6 | 2741 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools" |
71ab34df | 2742 | |
71ab34df | 2743 | # these libraries are built for the target environment, and are built after |
2744 | # the host libraries and the host tools (which may be a cross compiler) | |
5ab7e123 | 2745 | # Note that libiberty is not a target library. |
27bfe7b7 | 2746 | target_libraries="target-libgcc \ |
ecd3459e | 2747 | target-libbacktrace \ |
71ab34df | 2748 | target-libgloss \ |
2749 | target-newlib \ | |
a0191bfe | 2750 | target-libgomp \ |
4710dd51 | 2751 | target-libcilkrts \ |
d3a7dd32 | 2752 | target-liboffloadmic \ |
6db1d2ca | 2753 | target-libatomic \ |
4c0315d0 | 2754 | target-libitm \ |
54d7d5f2 | 2755 | target-libstdc++-v3 \ |
549e2197 | 2756 | target-libsanitizer \ |
b710ec85 | 2757 | target-libvtv \ |
202baac8 | 2758 | target-libmpx \ |
0d55f4d0 | 2759 | target-libssp \ |
87969c8c | 2760 | target-libquadmath \ |
4ee9c684 | 2761 | target-libgfortran \ |
38cf534f | 2762 | target-libffi \ |
93341878 | 2763 | target-libobjc \ |
5ff5b630 | 2764 | target-libada \ |
2765 | target-libgo" | |
71ab34df | 2766 | |
328637e8 | 2767 | # these tools are built using the target libraries, and are intended to |
2768 | # run only in the target environment | |
71ab34df | 2769 | # |
328637e8 | 2770 | # note: any program that *uses* libraries that are in the "target_libraries" |
6c9785b4 | 2771 | # list belongs in this list. |
71ab34df | 2772 | # |
4fc99708 | 2773 | target_tools="target-rda" |
a8298541 | 2774 | |
71ab34df | 2775 | ################################################################################ |
a8298541 | 2776 | |
71ab34df | 2777 | ## All tools belong in one of the four categories, and are assigned above |
2778 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2779 | ## is important because configure will choke if they ever get through. | |
2780 | ## ${configdirs} is directories we build using the host tools. | |
2781 | ## ${target_configdirs} is directories we build using the target tools. | |
71ab34df | 2782 | configdirs=`echo ${host_libs} ${host_tools}` |
328637e8 | 2783 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
2b59cb05 | 2784 | build_configdirs=`echo ${build_libs} ${build_tools}` |
6f4f34a7 | 2785 | |
d2d2630b | 2786 | |
2787 | ||
71ab34df | 2788 | ################################################################################ |
a8298541 | 2789 | |
71ab34df | 2790 | srcname="gnu development package" |
a8298541 | 2791 | |
71ab34df | 2792 | # This gets set non-empty for some net releases of packages. |
2793 | appdirs="" | |
a8298541 | 2794 | |
71ab34df | 2795 | # Define is_cross_compiler to save on calls to 'test'. |
2796 | is_cross_compiler= | |
2797 | if test x"${host}" = x"${target}" ; then | |
2798 | is_cross_compiler=no | |
a8298541 | 2799 | else |
71ab34df | 2800 | is_cross_compiler=yes |
b30fcfae | 2801 | fi |
a8298541 | 2802 | |
2f61b8ca | 2803 | # Find the build and target subdir names. |
6f4f34a7 | 2804 | |
d3e7b04c | 2805 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2806 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2807 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2808 | # However, they still use the build modules, because the corresponding | |
2809 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2810 | # finishes. So: | |
2811 | # - build_subdir is where we find build modules, and never changes. | |
2812 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2813 | ||
2814 | # Prefix 'build-' so this never conflicts with target_subdir. | |
6f4f34a7 | 2815 | build_subdir="build-${build_noncanonical}" |
b30fcfae | 2816 | |
cd9a469c | 2817 | # Check whether --with-build-libsubdir was given. |
2818 | if test "${with_build_libsubdir+set}" = set; then : | |
2819 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
d3e7b04c | 2820 | else |
2821 | build_libsubdir="$build_subdir" | |
cd9a469c | 2822 | fi |
2823 | ||
c1eb9e31 | 2824 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2825 | if ( test $srcdir = . && test -d gcc ) \ | |
2826 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2827 | host_subdir="host-${host_noncanonical}" | |
2828 | else | |
2829 | host_subdir=. | |
2830 | fi | |
6f4f34a7 | 2831 | # No prefix. |
2832 | target_subdir=${target_noncanonical} | |
b30fcfae | 2833 | |
04a2e841 | 2834 | # Be sure to cover against remnants of an in-tree build. |
2835 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2836 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2837 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2838 | fi | |
a8298541 | 2839 | |
71ab34df | 2840 | # Skipdirs are removed silently. |
2841 | skipdirs= | |
2842 | # Noconfigdirs are removed loudly. | |
2843 | noconfigdirs="" | |
a8298541 | 2844 | |
71ab34df | 2845 | use_gnu_ld= |
2846 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2847 | if test x$with_gnu_ld = xno ; then | |
2848 | use_gnu_ld=no | |
3d47fcf5 | 2849 | noconfigdirs="$noconfigdirs ld gold" |
a8298541 | 2850 | fi |
2851 | ||
71ab34df | 2852 | use_gnu_as= |
2853 | # Make sure we don't let GNU as be added if we didn't want it. | |
2854 | if test x$with_gnu_as = xno ; then | |
2855 | use_gnu_as=no | |
2856 | noconfigdirs="$noconfigdirs gas" | |
a8298541 | 2857 | fi |
2858 | ||
7bfefa9d | 2859 | use_included_zlib= |
6406d366 | 2860 | |
2861 | # Check whether --with-system-zlib was given. | |
2862 | if test "${with_system_zlib+set}" = set; then : | |
2863 | withval=$with_system_zlib; | |
2864 | fi | |
2865 | ||
7bfefa9d | 2866 | # Make sure we don't let ZLIB be added if we didn't want it. |
2867 | if test x$with_system_zlib = xyes ; then | |
2868 | use_included_zlib=no | |
2869 | noconfigdirs="$noconfigdirs zlib" | |
2870 | fi | |
2871 | ||
b30fcfae | 2872 | # some tools are so dependent upon X11 that if we're not building with X, |
71ab34df | 2873 | # it's not even worth trying to configure, much less build, that tool. |
a8298541 | 2874 | |
71ab34df | 2875 | case ${with_x} in |
2876 | yes | "") ;; # the default value for this tree is that X11 is available | |
2877 | no) | |
f843f075 | 2878 | skipdirs="${skipdirs} tk itcl libgui" |
71ab34df | 2879 | # We won't be able to build gdbtk without X. |
b30fcfae | 2880 | enable_gdbtk=no |
71ab34df | 2881 | ;; |
2882 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2883 | esac | |
a8298541 | 2884 | |
6c9785b4 | 2885 | # Some are only suitable for cross toolchains. |
71ab34df | 2886 | # Remove these if host=target. |
2887 | cross_only="target-libgloss target-newlib target-opcodes" | |
2888 | ||
2889 | case $is_cross_compiler in | |
2890 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
71ab34df | 2891 | esac |
a8298541 | 2892 | |
71ab34df | 2893 | # If both --with-headers and --with-libs are specified, default to |
2894 | # --without-newlib. | |
e8eddfdd | 2895 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2896 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
71ab34df | 2897 | if test x"${with_newlib}" = x ; then |
2898 | with_newlib=no | |
2899 | fi | |
a8298541 | 2900 | fi |
2901 | ||
71ab34df | 2902 | # Recognize --with-newlib/--without-newlib. |
2903 | case ${with_newlib} in | |
2904 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2905 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2906 | esac | |
a8298541 | 2907 | |
a3d93be3 | 2908 | # Check whether --enable-as-accelerator-for was given. |
2909 | if test "${enable_as_accelerator_for+set}" = set; then : | |
67cedda8 | 2910 | enableval=$enable_as_accelerator_for; |
a3d93be3 | 2911 | fi |
2912 | ||
2913 | ||
2914 | # Check whether --enable-offload-targets was given. | |
2915 | if test "${enable_offload_targets+set}" = set; then : | |
2916 | enableval=$enable_offload_targets; | |
2917 | if test x"$enable_offload_targets" = x; then | |
2918 | as_fn_error "no offload targets specified" "$LINENO" 5 | |
2919 | fi | |
2920 | ||
2921 | else | |
2922 | enable_offload_targets= | |
2923 | fi | |
2924 | ||
2925 | ||
1e369e5f | 2926 | # Handle --enable-gold, --enable-ld. |
2927 | # --disable-gold [--enable-ld] | |
2928 | # Build only ld. Default option. | |
85516948 | 2929 | # --enable-gold [--enable-ld] |
2930 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2931 | # as "ld.bfd" and "ld". | |
2932 | # --enable-gold=default [--enable-ld] | |
1e369e5f | 2933 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2934 | # install ld as "ld.bfd". | |
2935 | # --enable-gold[=default] --disable-ld | |
2936 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2937 | # --enable-gold --enable-ld=default | |
85516948 | 2938 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2939 | # and ld.bfd). | |
1e369e5f | 2940 | # In other words, ld is default |
2941 | # --enable-gold=default --enable-ld=default | |
2942 | # Error. | |
2943 | ||
2944 | default_ld= | |
cd9a469c | 2945 | # Check whether --enable-gold was given. |
2946 | if test "${enable_gold+set}" = set; then : | |
2947 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
3d47fcf5 | 2948 | else |
2949 | ENABLE_GOLD=no | |
cd9a469c | 2950 | fi |
2951 | ||
1e369e5f | 2952 | case "${ENABLE_GOLD}" in |
2953 | yes|default) | |
af7c5662 | 2954 | # Check for ELF target. |
2955 | is_elf=no | |
2956 | case "${target}" in | |
2957 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
e4c33dd2 | 2958 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
e3a1fe08 | 2959 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
9d36d513 | 2960 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
af7c5662 | 2961 | case "${target}" in |
2962 | *-*-linux*aout* | *-*-linux*oldld*) | |
2963 | ;; | |
2964 | *) | |
2965 | is_elf=yes | |
2966 | ;; | |
2967 | esac | |
2968 | esac | |
2969 | ||
2970 | if test "$is_elf" = "yes"; then | |
2971 | # Check for target supported by gold. | |
3d47fcf5 | 2972 | case "${target}" in |
58f62c51 | 2973 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
ca7ff757 | 2974 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
1e369e5f | 2975 | configdirs="$configdirs gold" |
2976 | if test x${ENABLE_GOLD} = xdefault; then | |
2977 | default_ld=gold | |
2978 | fi | |
af7c5662 | 2979 | ENABLE_GOLD=yes |
3d47fcf5 | 2980 | ;; |
2981 | esac | |
af7c5662 | 2982 | fi |
2983 | ;; | |
2984 | no) | |
2985 | ;; | |
2986 | *) | |
2987 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2988 | ;; | |
1e369e5f | 2989 | esac |
2990 | ||
2991 | # Check whether --enable-ld was given. | |
2992 | if test "${enable_ld+set}" = set; then : | |
2993 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2994 | else | |
2995 | ENABLE_LD=yes | |
2996 | fi | |
2997 | ||
2998 | ||
2999 | case "${ENABLE_LD}" in | |
3000 | default) | |
85516948 | 3001 | if test x${default_ld} != x; then |
1e369e5f | 3002 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
3003 | fi | |
3004 | ;; | |
3005 | yes) | |
3006 | ;; | |
3007 | no) | |
3008 | if test x${ENABLE_GOLD} != xyes; then | |
3009 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3010 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3011 | fi | |
3012 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3013 | ;; | |
3014 | *) | |
3015 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
3016 | ;; | |
3017 | esac | |
3d47fcf5 | 3018 | |
afb6adb9 | 3019 | # PR gas/19109 |
3020 | # Decide the default method for compressing debug sections. | |
3021 | # Provide a configure time option to override our default. | |
3022 | # Check whether --enable-compressed_debug_sections was given. | |
3023 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3024 | enableval=$enable_compressed_debug_sections; | |
3025 | if test x"$enable_compressed_debug_sections" = xyes; then | |
3026 | as_fn_error "no program with compressed debug sections specified" "$LINENO" 5 | |
3027 | fi | |
3028 | ||
3029 | else | |
3030 | enable_compressed_debug_sections= | |
3031 | fi | |
3032 | ||
3033 | ||
71ab34df | 3034 | # Configure extra directories which are host specific |
a8298541 | 3035 | |
71ab34df | 3036 | case "${host}" in |
3037 | *-cygwin*) | |
3038 | configdirs="$configdirs libtermcap" ;; | |
3039 | esac | |
a8298541 | 3040 | |
ff7dcf6a | 3041 | # A target can indicate whether a language isn't supported for some reason. |
3042 | # Only spaces may be used in this macro; not newlines or tabs. | |
3043 | unsupported_languages= | |
3044 | ||
b30fcfae | 3045 | # Remove more programs from consideration, based on the host or |
71ab34df | 3046 | # target this usually means that a port of the program doesn't |
3047 | # exist yet. | |
c7879c37 | 3048 | |
71ab34df | 3049 | case "${host}" in |
b2240ff6 | 3050 | i[3456789]86-*-msdosdjgpp*) |
e3a5e6ff | 3051 | noconfigdirs="$noconfigdirs tcl tk itcl" |
71ab34df | 3052 | ;; |
71ab34df | 3053 | esac |
c7879c37 | 3054 | |
4ee9c684 | 3055 | |
d9d975ae | 3056 | # Check whether --enable-libquadmath was given. |
3057 | if test "${enable_libquadmath+set}" = set; then : | |
3058 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3059 | else | |
3060 | ENABLE_LIBQUADMATH=yes | |
3061 | fi | |
3062 | ||
3063 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3064 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3065 | fi | |
3066 | ||
3067 | ||
3068 | # Check whether --enable-libquadmath-support was given. | |
3069 | if test "${enable_libquadmath_support+set}" = set; then : | |
3070 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3071 | else | |
3072 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3073 | fi | |
3074 | ||
3075 | enable_libquadmath_support= | |
3076 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3077 | enable_libquadmath_support=no | |
3078 | fi | |
3079 | ||
3080 | ||
cd9a469c | 3081 | # Check whether --enable-libada was given. |
3082 | if test "${enable_libada+set}" = set; then : | |
3083 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
93341878 | 3084 | else |
3085 | ENABLE_LIBADA=yes | |
cd9a469c | 3086 | fi |
3087 | ||
93341878 | 3088 | if test "${ENABLE_LIBADA}" != "yes" ; then |
a136b23d | 3089 | noconfigdirs="$noconfigdirs gnattools" |
93341878 | 3090 | fi |
3091 | ||
cd9a469c | 3092 | # Check whether --enable-libssp was given. |
3093 | if test "${enable_libssp+set}" = set; then : | |
3094 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
07da5214 | 3095 | else |
3096 | ENABLE_LIBSSP=yes | |
cd9a469c | 3097 | fi |
3098 | ||
07da5214 | 3099 | |
a3ba808f | 3100 | # Check whether --enable-libstdcxx was given. |
3101 | if test "${enable_libstdcxx+set}" = set; then : | |
3102 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3103 | else | |
3104 | ENABLE_LIBSTDCXX=default | |
3105 | fi | |
3106 | ||
3107 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
df148e44 | 3108 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
a3ba808f | 3109 | fi |
3110 | ||
d3a7dd32 | 3111 | # If this is accelerator compiler and its target is intelmic we enable |
3112 | # target liboffloadmic by default. If this is compiler with offloading | |
3113 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3114 | # liboffloadmic is disabled by default. | |
3115 | # Check whether --enable-liboffloadmic was given. | |
3116 | if test "${enable_liboffloadmic+set}" = set; then : | |
3117 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3118 | no | host | target) | |
3119 | enable_liboffloadmic=$enableval ;; | |
3120 | *) | |
3121 | as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; | |
3122 | esac | |
3123 | else | |
67cedda8 | 3124 | if test x"$enable_as_accelerator_for" != x; then |
d3a7dd32 | 3125 | case "${target}" in |
3126 | *-intelmic-* | *-intelmicemul-*) | |
3127 | enable_liboffloadmic=target | |
3128 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3129 | ;; | |
3130 | *) | |
3131 | enable_liboffloadmic=no | |
3132 | ;; | |
3133 | esac | |
3134 | else | |
3135 | case "${enable_offload_targets}" in | |
3136 | *-intelmic-* | *-intelmicemul-*) | |
3137 | enable_liboffloadmic=host | |
3138 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3139 | ;; | |
3140 | *) | |
3141 | enable_liboffloadmic=no | |
3142 | ;; | |
3143 | esac | |
3144 | fi | |
3145 | fi | |
3146 | ||
3147 | ||
3148 | ||
fdcd05c8 | 3149 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
50996fe5 | 3150 | if test x$enable_libgomp = x ; then |
1e8e9920 | 3151 | case "${target}" in |
3bef4012 | 3152 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
1e8e9920 | 3153 | ;; |
e3a1fe08 | 3154 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
1e8e9920 | 3155 | ;; |
5641963c | 3156 | *-*-solaris2* | *-*-hpux11*) |
1e8e9920 | 3157 | ;; |
634efbee | 3158 | *-*-darwin* | *-*-aix*) |
1e8e9920 | 3159 | ;; |
fdcd05c8 | 3160 | nvptx*-*-*) |
3161 | ;; | |
1e8e9920 | 3162 | *) |
3163 | noconfigdirs="$noconfigdirs target-libgomp" | |
3164 | ;; | |
3165 | esac | |
50996fe5 | 3166 | fi |
1e8e9920 | 3167 | |
6db1d2ca | 3168 | # Disable libatomic on unsupported systems. |
3169 | if test -d ${srcdir}/libatomic; then | |
3170 | if test x$enable_libatomic = x; then | |
3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3172 | $as_echo_n "checking for libatomic support... " >&6; } | |
3173 | if (srcdir=${srcdir}/libatomic; \ | |
3174 | . ${srcdir}/configure.tgt; \ | |
3175 | test -n "$UNSUPPORTED") | |
3176 | then | |
3177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3178 | $as_echo "no" >&6; } | |
3179 | noconfigdirs="$noconfigdirs target-libatomic" | |
3180 | else | |
3181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3182 | $as_echo "yes" >&6; } | |
3183 | fi | |
3184 | fi | |
3185 | fi | |
3186 | ||
4710dd51 | 3187 | # Disable libcilkrts on unsupported systems. |
3188 | if test -d ${srcdir}/libcilkrts; then | |
3189 | if test x$enable_libcilkrts = x; then | |
3190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5 | |
3191 | $as_echo_n "checking for libcilkrts support... " >&6; } | |
3192 | if (srcdir=${srcdir}/libcilkrts; \ | |
3193 | . ${srcdir}/configure.tgt; \ | |
3194 | test -n "$UNSUPPORTED") | |
3195 | then | |
3196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3197 | $as_echo "no" >&6; } | |
3198 | noconfigdirs="$noconfigdirs target-libcilkrts" | |
3199 | else | |
3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3201 | $as_echo "yes" >&6; } | |
3202 | fi | |
3203 | fi | |
3204 | fi | |
3205 | ||
d3a7dd32 | 3206 | # Disable liboffloadmic on unsupported systems. |
3207 | if test -d ${srcdir}/liboffloadmic; then | |
3208 | if test x$enable_liboffloadmic != xno; then | |
3209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3210 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3211 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3212 | . ${srcdir}/configure.tgt; \ | |
3213 | test -n "$UNSUPPORTED") | |
3214 | then | |
3215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3216 | $as_echo "no" >&6; } | |
3217 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3218 | else | |
3219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3220 | $as_echo "yes" >&6; } | |
3221 | fi | |
3222 | fi | |
3223 | fi | |
3224 | ||
42b15c81 | 3225 | # Disable libitm on unsupported systems. |
3226 | if test -d ${srcdir}/libitm; then | |
3227 | if test x$enable_libitm = x; then | |
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
298c66d9 | 3229 | $as_echo_n "checking for libitm support... " >&6; } |
42b15c81 | 3230 | if (srcdir=${srcdir}/libitm; \ |
3231 | . ${srcdir}/configure.tgt; \ | |
3232 | test -n "$UNSUPPORTED") | |
3233 | then | |
3234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
298c66d9 | 3235 | $as_echo "no" >&6; } |
42b15c81 | 3236 | noconfigdirs="$noconfigdirs target-libitm" |
3237 | else | |
3238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
298c66d9 | 3239 | $as_echo "yes" >&6; } |
42b15c81 | 3240 | fi |
3241 | fi | |
4c0315d0 | 3242 | fi |
3243 | ||
492e75a7 | 3244 | # Disable libsanitizer on unsupported systems. |
3245 | if test -d ${srcdir}/libsanitizer; then | |
3246 | if test x$enable_libsanitizer = x; then | |
3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3248 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3249 | if (srcdir=${srcdir}/libsanitizer; \ | |
3250 | . ${srcdir}/configure.tgt; \ | |
3251 | test -n "$UNSUPPORTED") | |
3252 | then | |
3253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3254 | $as_echo "no" >&6; } | |
3255 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3256 | else | |
3257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3258 | $as_echo "yes" >&6; } | |
3259 | fi | |
3260 | fi | |
3261 | fi | |
3262 | ||
b710ec85 | 3263 | # Disable libvtv on unsupported systems. |
3264 | if test -d ${srcdir}/libvtv; then | |
3265 | if test x$enable_libvtv = x; then | |
3266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3267 | $as_echo_n "checking for libvtv support... " >&6; } | |
3268 | if (srcdir=${srcdir}/libvtv; \ | |
3269 | . ${srcdir}/configure.tgt; \ | |
6d0992e1 | 3270 | test "$VTV_SUPPORTED" != "yes") |
b710ec85 | 3271 | then |
3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3273 | $as_echo "no" >&6; } | |
3274 | noconfigdirs="$noconfigdirs target-libvtv" | |
3275 | else | |
3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3277 | $as_echo "yes" >&6; } | |
3278 | fi | |
3279 | fi | |
3280 | fi | |
3281 | ||
202baac8 | 3282 | |
3283 | # Enable libmpx on supported systems by request. | |
3284 | if test -d ${srcdir}/libmpx; then | |
067ef0d9 | 3285 | if test x$enable_libmpx = x; then |
202baac8 | 3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5 |
3287 | $as_echo_n "checking for libmpx support... " >&6; } | |
3288 | if (srcdir=${srcdir}/libmpx; \ | |
3289 | . ${srcdir}/configure.tgt; \ | |
3290 | test "$LIBMPX_SUPPORTED" != "yes") | |
3291 | then | |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3293 | $as_echo "no" >&6; } | |
3294 | noconfigdirs="$noconfigdirs target-libmpx" | |
3295 | else | |
3296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3297 | $as_echo "yes" >&6; } | |
3298 | fi | |
202baac8 | 3299 | fi |
3300 | fi | |
3301 | ||
3302 | ||
3303 | ||
62f0972f | 3304 | # Disable libquadmath for some systems. |
3305 | case "${target}" in | |
c36ee471 | 3306 | avr-*-*) |
3307 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3308 | ;; | |
62f0972f | 3309 | # libquadmath is unused on AIX and libquadmath build process use of |
3310 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3311 | powerpc-*-aix* | rs6000-*-aix*) | |
3312 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3313 | ;; | |
3314 | esac | |
3315 | ||
d5831552 | 3316 | # Disable libssp for some systems. |
3317 | case "${target}" in | |
3318 | avr-*-*) | |
76c19016 | 3319 | # No hosted I/O support. |
d5831552 | 3320 | noconfigdirs="$noconfigdirs target-libssp" |
3321 | ;; | |
3322 | powerpc-*-aix* | rs6000-*-aix*) | |
3323 | noconfigdirs="$noconfigdirs target-libssp" | |
78e515f7 | 3324 | ;; |
3325 | rl78-*-*) | |
9d5fd7d0 | 3326 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3327 | # doesn't fault for those - instead, it gives a build-time error | |
3328 | # for explicit misaligned loads. | |
78e515f7 | 3329 | noconfigdirs="$noconfigdirs target-libssp" |
d5831552 | 3330 | ;; |
8992df51 | 3331 | visium-*-*) |
3332 | # No hosted I/O support. | |
3333 | noconfigdirs="$noconfigdirs target-libssp" | |
3334 | ;; | |
d5831552 | 3335 | esac |
3336 | ||
d5831552 | 3337 | # Disable libstdc++-v3 for some systems. |
a3ba808f | 3338 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3339 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3340 | case "${target}" in | |
3341 | *-*-vxworks*) | |
3342 | # VxWorks uses the Dinkumware C++ library. | |
3343 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3344 | ;; | |
3345 | arm*-wince-pe*) | |
3346 | # the C++ libraries don't build on top of CE's C libraries | |
3347 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3348 | ;; | |
3349 | avr-*-*) | |
3350 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3351 | ;; | |
b6616c9c | 3352 | ft32-*-*) |
3353 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3354 | ;; | |
a3ba808f | 3355 | esac |
3356 | fi | |
d5831552 | 3357 | |
3358 | # Disable Fortran for some systems. | |
3359 | case "${target}" in | |
3360 | mmix-*-*) | |
3361 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3362 | unsupported_languages="$unsupported_languages fortran" | |
3363 | ;; | |
3364 | esac | |
3365 | ||
38cf534f | 3366 | # Disable libffi for some systems. |
3367 | case "${target}" in | |
3368 | powerpc-*-darwin*) | |
3369 | ;; | |
3370 | i[3456789]86-*-darwin*) | |
3371 | ;; | |
3372 | x86_64-*-darwin[912]*) | |
3373 | ;; | |
3374 | *-*-darwin*) | |
3375 | noconfigdirs="$noconfigdirs target-libffi" | |
3376 | ;; | |
3377 | *-*-netware*) | |
3378 | noconfigdirs="$noconfigdirs target-libffi" | |
3379 | ;; | |
3380 | *-*-phoenix*) | |
3381 | noconfigdirs="$noconfigdirs target-libffi" | |
3382 | ;; | |
3383 | *-*-rtems*) | |
3384 | noconfigdirs="$noconfigdirs target-libffi" | |
3385 | ;; | |
3386 | *-*-tpf*) | |
3387 | noconfigdirs="$noconfigdirs target-libffi" | |
3388 | ;; | |
3389 | *-*-uclinux*) | |
3390 | noconfigdirs="$noconfigdirs target-libffi" | |
3391 | ;; | |
3392 | *-*-vxworks*) | |
3393 | noconfigdirs="$noconfigdirs target-libffi" | |
3394 | ;; | |
88afddbc | 3395 | aarch64*-*-freebsd*) |
3396 | noconfigdirs="$noconfigdirs target-libffi" | |
3397 | ;; | |
38cf534f | 3398 | alpha*-*-*vms*) |
3399 | noconfigdirs="$noconfigdirs target-libffi" | |
3400 | ;; | |
3401 | arm*-*-freebsd*) | |
3402 | noconfigdirs="$noconfigdirs target-libffi" | |
3403 | ;; | |
3404 | arm-wince-pe) | |
3405 | noconfigdirs="$noconfigdirs target-libffi" | |
3406 | ;; | |
3407 | arm*-*-symbianelf*) | |
3408 | noconfigdirs="$noconfigdirs target-libffi" | |
3409 | ;; | |
3410 | cris-*-* | crisv32-*-*) | |
3411 | case "${target}" in | |
3412 | *-*-linux*) | |
3413 | ;; | |
3414 | *) # See PR46792 regarding target-libffi. | |
3415 | noconfigdirs="$noconfigdirs target-libffi";; | |
3416 | esac | |
3417 | ;; | |
3418 | hppa*64*-*-hpux*) | |
3419 | noconfigdirs="$noconfigdirs target-libffi" | |
3420 | ;; | |
3421 | hppa*-hp-hpux11*) | |
3422 | ;; | |
3423 | hppa*-*-hpux*) | |
3424 | noconfigdirs="$noconfigdirs target-libffi" | |
3425 | ;; | |
3426 | ia64*-*-*vms*) | |
3427 | noconfigdirs="$noconfigdirs target-libffi" | |
3428 | ;; | |
3429 | i[3456789]86-w64-mingw*) | |
3430 | noconfigdirs="$noconfigdirs target-libffi" | |
3431 | ;; | |
3432 | i[3456789]86-*-mingw*) | |
3433 | noconfigdirs="$noconfigdirs target-libffi" | |
3434 | ;; | |
3435 | x86_64-*-mingw*) | |
3436 | noconfigdirs="$noconfigdirs target-libffi" | |
3437 | ;; | |
3438 | mmix-*-*) | |
3439 | noconfigdirs="$noconfigdirs target-libffi" | |
3440 | ;; | |
3441 | powerpc-*-aix*) | |
3442 | # copied from rs6000-*-* entry | |
3443 | noconfigdirs="$noconfigdirs target-libffi" | |
3444 | ;; | |
3445 | rs6000-*-aix*) | |
3446 | noconfigdirs="$noconfigdirs target-libffi" | |
3447 | ;; | |
3448 | ft32-*-*) | |
3449 | noconfigdirs="$noconfigdirs target-libffi" | |
3450 | ;; | |
3451 | *-*-lynxos*) | |
3452 | noconfigdirs="$noconfigdirs target-libffi" | |
3453 | ;; | |
3454 | esac | |
3455 | ||
3456 | # Disable the go frontend on systems where it is known to not work. Please keep | |
3457 | # this in sync with contrib/config-list.mk. | |
3458 | case "${target}" in | |
3459 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) | |
3460 | unsupported_languages="$unsupported_languages go" | |
3461 | ;; | |
3462 | esac | |
3463 | ||
a6999726 | 3464 | # Disable libgo for some systems where it is known to not work. |
3465 | # For testing, you can easily override this with --enable-libgo. | |
3466 | if test x$enable_libgo = x; then | |
3467 | case "${target}" in | |
3468 | *-*-darwin*) | |
3469 | # PR 46986 | |
3470 | noconfigdirs="$noconfigdirs target-libgo" | |
3471 | ;; | |
3472 | *-*-cygwin* | *-*-mingw*) | |
3473 | noconfigdirs="$noconfigdirs target-libgo" | |
3474 | ;; | |
3475 | *-*-aix*) | |
3476 | noconfigdirs="$noconfigdirs target-libgo" | |
3477 | ;; | |
3478 | esac | |
3479 | fi | |
3480 | ||
1c5767f1 | 3481 | # Default libgloss CPU subdirectory. |
3482 | libgloss_dir="$target_cpu" | |
4ee9c684 | 3483 | |
e0942c78 | 3484 | case "${target}" in |
3485 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3486 | libgloss_dir=wince | |
3487 | ;; | |
e26fddfa | 3488 | aarch64*-*-* ) |
3489 | libgloss_dir=aarch64 | |
3490 | ;; | |
e0942c78 | 3491 | arm*-*-*) |
3492 | libgloss_dir=arm | |
3493 | ;; | |
3494 | cris-*-* | crisv32-*-*) | |
3495 | libgloss_dir=cris | |
3496 | ;; | |
3497 | hppa*-*-*) | |
3498 | libgloss_dir=pa | |
3499 | ;; | |
3500 | i[3456789]86-*-*) | |
3501 | libgloss_dir=i386 | |
3502 | ;; | |
3503 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3504 | libgloss_dir=m68hc11 | |
3505 | ;; | |
3506 | m68*-*-* | fido-*-*) | |
3507 | libgloss_dir=m68k | |
3508 | ;; | |
3509 | mips*-*-*) | |
3510 | libgloss_dir=mips | |
3511 | ;; | |
3512 | powerpc*-*-*) | |
3513 | libgloss_dir=rs6000 | |
3514 | ;; | |
3515 | sparc*-*-*) | |
3516 | libgloss_dir=sparc | |
3517 | ;; | |
3518 | esac | |
3519 | ||
d556f192 | 3520 | # Disable newlib and libgloss for various target OSes. |
71ab34df | 3521 | case "${target}" in |
d556f192 | 3522 | alpha*-dec-osf*) |
3523 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3524 | ;; | |
3525 | i[3456789]86-*-linux*) | |
3526 | # This section makes it possible to build newlib natively on linux. | |
3527 | # If we are using a cross compiler then don't configure newlib. | |
3528 | if test x${is_cross_compiler} != xno ; then | |
3529 | noconfigdirs="$noconfigdirs target-newlib" | |
3530 | fi | |
3531 | noconfigdirs="$noconfigdirs target-libgloss" | |
3532 | # If we are not using a cross compiler, do configure newlib. | |
3533 | # Note however, that newlib will only be configured in this situation | |
3534 | # if the --with-newlib option has been given, because otherwise | |
3535 | # 'target-newlib' will appear in skipdirs. | |
3536 | ;; | |
3537 | i[3456789]86-*-rdos*) | |
3538 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3539 | ;; | |
3540 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3541 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3542 | ;; | |
3543 | sparc-*-sunos4*) | |
3544 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3545 | ;; | |
3546 | *-*-aix*) | |
3547 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3548 | ;; | |
3549 | *-*-beos*) | |
3550 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3551 | ;; | |
71ab34df | 3552 | *-*-chorusos) |
71559dce | 3553 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
71ab34df | 3554 | ;; |
d556f192 | 3555 | *-*-dragonfly*) |
3556 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3557 | ;; | |
3558 | *-*-freebsd*) | |
3559 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3560 | ;; | |
3561 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3562 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3563 | ;; | |
3564 | *-*-lynxos*) | |
3565 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3566 | ;; | |
3567 | *-*-mingw*) | |
3568 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3569 | ;; | |
3570 | *-*-netbsd*) | |
3571 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3572 | ;; | |
3573 | *-*-netware*) | |
3574 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3575 | ;; | |
3576 | *-*-tpf*) | |
3577 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3578 | ;; | |
3579 | *-*-uclinux*) | |
3580 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3581 | ;; | |
3582 | *-*-vxworks*) | |
3583 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3584 | ;; | |
3585 | esac | |
3586 | ||
3587 | case "${target}" in | |
3588 | *-*-chorusos) | |
3589 | ;; | |
38f4c967 | 3590 | aarch64-*-darwin*) |
3591 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3592 | noconfigdirs="$noconfigdirs sim target-rda" | |
3593 | ;; | |
3594 | arm-*-darwin*) | |
3595 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3596 | noconfigdirs="$noconfigdirs sim target-rda" | |
3597 | ;; | |
40c500e1 | 3598 | powerpc-*-darwin*) |
dba2c8ea | 3599 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
d28caca4 | 3600 | noconfigdirs="$noconfigdirs sim target-rda" |
0894307c | 3601 | ;; |
ea864ded | 3602 | i[3456789]86-*-darwin*) |
3603 | noconfigdirs="$noconfigdirs ld gprof" | |
3604 | noconfigdirs="$noconfigdirs sim target-rda" | |
3605 | ;; | |
3606 | x86_64-*-darwin[912]*) | |
d9f9f3af | 3607 | noconfigdirs="$noconfigdirs ld gas gprof" |
3608 | noconfigdirs="$noconfigdirs sim target-rda" | |
3609 | ;; | |
fce068fd | 3610 | *-*-darwin*) |
3611 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3612 | noconfigdirs="$noconfigdirs sim target-rda" | |
fce068fd | 3613 | ;; |
e3a1fe08 | 3614 | *-*-dragonfly*) |
e3a1fe08 | 3615 | ;; |
c01dd063 | 3616 | *-*-freebsd*) |
4ee9c684 | 3617 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3618 | && test -f /usr/local/include/gmp.h; then | |
3619 | with_gmp=/usr/local | |
3620 | fi | |
4ee9c684 | 3621 | ;; |
336577be | 3622 | *-*-kaos*) |
3623 | # Remove unsupported stuff on all kaOS configurations. | |
336577be | 3624 | noconfigdirs="$noconfigdirs target-libgloss" |
3625 | ;; | |
71ab34df | 3626 | *-*-netbsd*) |
71ab34df | 3627 | ;; |
634f7a13 | 3628 | *-*-netware*) |
71ab34df | 3629 | ;; |
1d6aa005 | 3630 | *-*-phoenix*) |
3631 | noconfigdirs="$noconfigdirs target-libgloss" | |
3632 | ;; | |
71ab34df | 3633 | *-*-rtems*) |
f24be480 | 3634 | noconfigdirs="$noconfigdirs target-libgloss" |
d781ea5c | 3635 | # this is not caught below because this stanza matches earlier |
3636 | case $target in | |
3637 | or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;; | |
3638 | esac | |
71ab34df | 3639 | ;; |
9f88bc9d | 3640 | # The tpf target doesn't support gdb yet. |
3641 | *-*-tpf*) | |
d556f192 | 3642 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
9f88bc9d | 3643 | ;; |
688429c4 | 3644 | *-*-uclinux*) |
d556f192 | 3645 | noconfigdirs="$noconfigdirs target-rda" |
688429c4 | 3646 | ;; |
71ab34df | 3647 | *-*-vxworks*) |
71ab34df | 3648 | ;; |
3649 | alpha*-dec-osf*) | |
3650 | # ld works, but does not support shared libraries. | |
71ab34df | 3651 | # gas doesn't generate exception information. |
d556f192 | 3652 | noconfigdirs="$noconfigdirs gas ld" |
71ab34df | 3653 | ;; |
3654 | alpha*-*-*vms*) | |
f24be480 | 3655 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
71ab34df | 3656 | ;; |
71ab34df | 3657 | alpha*-*-*) |
3658 | # newlib is not 64 bit ready | |
f24be480 | 3659 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
71ab34df | 3660 | ;; |
71ab34df | 3661 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
f843f075 | 3662 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
71ab34df | 3663 | ;; |
194b906d | 3664 | arc*-*-*) |
3665 | noconfigdirs="$noconfigdirs sim" | |
3666 | ;; | |
71ab34df | 3667 | arm-*-pe*) |
f24be480 | 3668 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3669 | ;; |
71ab34df | 3670 | arm-*-riscix*) |
71559dce | 3671 | noconfigdirs="$noconfigdirs ld target-libgloss" |
71ab34df | 3672 | ;; |
fd28e216 | 3673 | avr-*-*) |
3674 | if test x${with_avrlibc} != xno; then | |
3675 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3676 | fi | |
3677 | ;; | |
71ab34df | 3678 | c4x-*-* | tic4x-*-*) |
71559dce | 3679 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3680 | ;; |
71559dce | 3681 | tic54x-*-*) |
3682 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
71ab34df | 3683 | ;; |
71ab34df | 3684 | d10v-*-*) |
71559dce | 3685 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3686 | ;; |
3687 | d30v-*-*) | |
71559dce | 3688 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3689 | ;; |
3690 | fr30-*-elf*) | |
f24be480 | 3691 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3692 | ;; |
6406d366 | 3693 | ft32-*-*) |
3694 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3695 | ;; | |
ca2751b6 | 3696 | moxie-*-*) |
6406d366 | 3697 | noconfigdirs="$noconfigdirs" |
ca2751b6 | 3698 | ;; |
71ab34df | 3699 | h8300*-*-*) |
f24be480 | 3700 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3701 | ;; |
3702 | h8500-*-*) | |
71559dce | 3703 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3704 | ;; |
e8eddfdd | 3705 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
e8eddfdd | 3706 | ;; |
6406d366 | 3707 | hppa*64*-*-hpux*) |
3708 | noconfigdirs="$noconfigdirs gdb" | |
3709 | ;; | |
3710 | hppa*-*-hpux11*) | |
3711 | noconfigdirs="$noconfigdirs gdb ld" | |
3712 | ;; | |
6bd59761 | 3713 | hppa*64*-*-linux*) |
71ab34df | 3714 | ;; |
99684e84 | 3715 | hppa*-*-linux*) |
08261f02 | 3716 | ;; |
71ab34df | 3717 | hppa*-*-*elf* | \ |
71ab34df | 3718 | hppa*-*-lites* | \ |
3719 | hppa*-*-openbsd* | \ | |
3720 | hppa*64*-*-*) | |
71ab34df | 3721 | ;; |
1c5767f1 | 3722 | hppa*-*-pro*) |
1c5767f1 | 3723 | ;; |
71ab34df | 3724 | hppa*-*-*) |
f24be480 | 3725 | noconfigdirs="$noconfigdirs ld" |
71ab34df | 3726 | ;; |
4a9237fb | 3727 | i960-*-*) |
71559dce | 3728 | noconfigdirs="$noconfigdirs gdb" |
4a9237fb | 3729 | ;; |
71ab34df | 3730 | ia64*-*-elf*) |
3731 | # No gdb support yet. | |
6c9785b4 | 3732 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
71ab34df | 3733 | ;; |
3734 | ia64*-**-hpux*) | |
1aca86a6 | 3735 | # No ld support yet. |
6406d366 | 3736 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
71ab34df | 3737 | ;; |
8408ca00 | 3738 | ia64*-*-*vms*) |
3211401d | 3739 | # No ld support yet. |
3740 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
8408ca00 | 3741 | ;; |
ec2eb8fb | 3742 | i[3456789]86-w64-mingw*) |
ec2eb8fb | 3743 | ;; |
3744 | i[3456789]86-*-mingw*) | |
d6d689df | 3745 | target_configdirs="$target_configdirs target-winsup" |
b30fcfae | 3746 | ;; |
71ab34df | 3747 | *-*-cygwin*) |
3748 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
6c9785b4 | 3749 | noconfigdirs="$noconfigdirs target-libgloss" |
2c10944d | 3750 | # always build newlib if winsup directory is present. |
d6d689df | 3751 | if test -d "$srcdir/winsup/cygwin"; then |
2c10944d | 3752 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
e8eddfdd | 3753 | elif test -d "$srcdir/newlib"; then |
d6d689df | 3754 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
2c10944d | 3755 | fi |
b30fcfae | 3756 | ;; |
f74ea578 | 3757 | i[3456789]86-*-pe) |
17b3d2a8 | 3758 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3759 | ;; |
f74ea578 | 3760 | i[3456789]86-*-sco3.2v5*) |
71ab34df | 3761 | # The linker does not yet know about weak symbols in COFF, |
3762 | # and is not configured to handle mixed ELF and COFF. | |
71559dce | 3763 | noconfigdirs="$noconfigdirs ld target-libgloss" |
71ab34df | 3764 | ;; |
f74ea578 | 3765 | i[3456789]86-*-sco*) |
71559dce | 3766 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
71ab34df | 3767 | ;; |
14f27bc6 | 3768 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
71ab34df | 3769 | noconfigdirs="$noconfigdirs target-libgloss" |
3770 | ;; | |
f74ea578 | 3771 | i[3456789]86-*-sysv4*) |
71559dce | 3772 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3773 | ;; |
f74ea578 | 3774 | i[3456789]86-*-beos*) |
d556f192 | 3775 | noconfigdirs="$noconfigdirs gdb" |
602d002b | 3776 | ;; |
ab0da556 | 3777 | i[3456789]86-*-rdos*) |
d556f192 | 3778 | noconfigdirs="$noconfigdirs gdb" |
1c5767f1 | 3779 | ;; |
71ab34df | 3780 | mmix-*-*) |
f24be480 | 3781 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3782 | ;; |
957985d9 | 3783 | mt-*-*) |
f6fa11cb | 3784 | noconfigdirs="$noconfigdirs sim" |
3785 | ;; | |
71ab34df | 3786 | powerpc-*-aix*) |
3787 | # copied from rs6000-*-* entry | |
d556f192 | 3788 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3789 | ;; |
6bd59761 | 3790 | powerpc*-*-winnt* | powerpc*-*-pe*) |
71ab34df | 3791 | target_configdirs="$target_configdirs target-winsup" |
71559dce | 3792 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
71ab34df | 3793 | # always build newlib. |
3794 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3795 | ;; | |
3796 | # This is temporary until we can link against shared libraries | |
3797 | powerpcle-*-solaris*) | |
71559dce | 3798 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
71ab34df | 3799 | ;; |
3800 | powerpc-*-beos*) | |
d556f192 | 3801 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3802 | ;; |
71ab34df | 3803 | rs6000-*-lynxos*) |
d556f192 | 3804 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3805 | ;; |
3806 | rs6000-*-aix*) | |
d556f192 | 3807 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3808 | ;; |
3809 | rs6000-*-*) | |
f24be480 | 3810 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3811 | ;; |
3812 | m68k-apollo-*) | |
71559dce | 3813 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
71ab34df | 3814 | ;; |
ba2b484f | 3815 | microblaze*) |
f24be480 | 3816 | noconfigdirs="$noconfigdirs gprof" |
ba2b484f | 3817 | ;; |
d781ea5c | 3818 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
68c9bc25 | 3819 | if test x$with_newlib = xyes; then |
3820 | noconfigdirs="$noconfigdirs gprof" | |
3821 | fi | |
68c9bc25 | 3822 | ;; |
71ab34df | 3823 | mips*-*-irix5*) |
71559dce | 3824 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
71ab34df | 3825 | ;; |
3826 | mips*-*-irix6*) | |
f24be480 | 3827 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
71ab34df | 3828 | ;; |
71ab34df | 3829 | mips*-*-bsd*) |
d6449910 | 3830 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
71ab34df | 3831 | ;; |
71ab34df | 3832 | mips*-*-linux*) |
71ab34df | 3833 | ;; |
d6449910 | 3834 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3835 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3836 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3837 | ;; | |
71ab34df | 3838 | mips*-*-*) |
f24be480 | 3839 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3840 | ;; |
8ce80784 | 3841 | nvptx*-*-*) |
8ce80784 | 3842 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3843 | ;; | |
d781ea5c | 3844 | or1k*-*-*) |
3845 | noconfigdirs="$noconfigdirs gdb" | |
3846 | ;; | |
9a9b5abf | 3847 | sh-*-*) |
39f6b116 | 3848 | case "${target}" in |
3849 | sh*-*-elf) | |
f24be480 | 3850 | ;; |
39f6b116 | 3851 | *) |
f24be480 | 3852 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
39f6b116 | 3853 | esac |
71ab34df | 3854 | ;; |
71ab34df | 3855 | sparc-*-sunos4*) |
d556f192 | 3856 | if test x${is_cross_compiler} = xno ; then |
71ab34df | 3857 | use_gnu_ld=no |
3858 | fi | |
3859 | ;; | |
fa0a53e3 | 3860 | tic6x-*-*) |
ccdfa490 | 3861 | noconfigdirs="$noconfigdirs sim" |
fa0a53e3 | 3862 | ;; |
2da35515 | 3863 | tilepro*-*-* | tilegx*-*-*) |
e5fa74b2 | 3864 | noconfigdirs="$noconfigdirs sim" |
3865 | ;; | |
71ab34df | 3866 | v810-*-*) |
71559dce | 3867 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
71ab34df | 3868 | ;; |
3869 | vax-*-*) | |
f24be480 | 3870 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
71ab34df | 3871 | ;; |
71ab34df | 3872 | esac |
a8298541 | 3873 | |
71ab34df | 3874 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3875 | # depends upon some newlib header files. | |
3876 | case "${noconfigdirs}" in | |
3877 | *target-libgloss*) ;; | |
3878 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3879 | esac | |
3880 | ||
71ab34df | 3881 | # Work in distributions that contain no compiler tools, like Autoconf. |
71ab34df | 3882 | host_makefile_frag=/dev/null |
3883 | if test -d ${srcdir}/config ; then | |
3884 | case "${host}" in | |
f74ea578 | 3885 | i[3456789]86-*-msdosdjgpp*) |
71ab34df | 3886 | host_makefile_frag="config/mh-djgpp" |
3887 | ;; | |
3888 | *-cygwin*) | |
45043b2b | 3889 | |
cd9a469c | 3890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3891 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
45043b2b | 3892 | echo a >cygwin-cat-check |
82d97a59 | 3893 | if test `cat cygwin-cat-check` = a ; then |
45043b2b | 3894 | rm cygwin-cat-check |
cd9a469c | 3895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3896 | $as_echo "yes" >&6; } | |
45043b2b | 3897 | else |
3898 | rm cygwin-cat-check | |
cd9a469c | 3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3900 | $as_echo "no" >&6; } | |
3901 | as_fn_error "The cat command does not ignore carriage return characters. | |
45043b2b | 3902 | Please either mount the build directory in binary mode or run the following |
3903 | commands before running any configure script: | |
3904 | set -o igncr | |
3905 | export SHELLOPTS | |
cd9a469c | 3906 | " "$LINENO" 5 |
45043b2b | 3907 | fi |
3908 | ||
71ab34df | 3909 | host_makefile_frag="config/mh-cygwin" |
3910 | ;; | |
5a92bcc2 | 3911 | *-mingw*) |
70d8e49e | 3912 | host_makefile_frag="config/mh-mingw" |
a378fc89 | 3913 | ;; |
bed3355c | 3914 | alpha*-linux*) |
539ded76 | 3915 | host_makefile_frag="config/mh-alpha-linux" |
3916 | ;; | |
d2b94e36 | 3917 | hppa*-hp-hpux10*) |
d2b94e36 | 3918 | host_makefile_frag="config/mh-pa-hpux10" |
71ab34df | 3919 | ;; |
b2240ff6 | 3920 | hppa*-hp-hpux*) |
d2b94e36 | 3921 | host_makefile_frag="config/mh-pa" |
3922 | ;; | |
3923 | hppa*-*) | |
3924 | host_makefile_frag="config/mh-pa" | |
3925 | ;; | |
16463c8d | 3926 | *-*-darwin*) |
3927 | host_makefile_frag="config/mh-darwin" | |
0222d984 | 3928 | ;; |
9d44a802 | 3929 | powerpc-*-aix*) |
3930 | host_makefile_frag="config/mh-ppc-aix" | |
3931 | ;; | |
3932 | rs6000-*-aix*) | |
3933 | host_makefile_frag="config/mh-ppc-aix" | |
3934 | ;; | |
71ab34df | 3935 | esac |
3936 | fi | |
3937 | ||
8e1fea1a | 3938 | if test "${build}" != "${host}" ; then |
93c5e793 | 3939 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3940 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
8e1fea1a | 3941 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
93c5e793 | 3942 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
93c5e793 | 3943 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
5ff5b630 | 3944 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
93c5e793 | 3945 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3946 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3947 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3948 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3949 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3950 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3951 | else | |
3952 | AR_FOR_BUILD="\$(AR)" | |
3953 | AS_FOR_BUILD="\$(AS)" | |
a4af6a58 | 3954 | CC_FOR_BUILD="\$(CC)" |
93c5e793 | 3955 | CXX_FOR_BUILD="\$(CXX)" |
93c5e793 | 3956 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
5ff5b630 | 3957 | GOC_FOR_BUILD="\$(GOC)" |
93c5e793 | 3958 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3959 | LD_FOR_BUILD="\$(LD)" | |
3960 | NM_FOR_BUILD="\$(NM)" | |
3961 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3962 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3963 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
eae5b2bc | 3964 | fi |
3965 | ||
3966 | ac_ext=c | |
b30fcfae | 3967 | ac_cpp='$CPP $CPPFLAGS' |
3968 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3969 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3970 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3971 | if test -n "$ac_tool_prefix"; then | |
3972 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3973 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
cd9a469c | 3974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3975 | $as_echo_n "checking for $ac_word... " >&6; } | |
3976 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3977 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 3978 | else |
3979 | if test -n "$CC"; then | |
3980 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3981 | else | |
3982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3983 | for as_dir in $PATH | |
3984 | do | |
3985 | IFS=$as_save_IFS | |
3986 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3987 | for ac_exec_ext in '' $ac_executable_extensions; do |
3988 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 3989 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
cd9a469c | 3990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 3991 | break 2 |
3992 | fi | |
3993 | done | |
cd9a469c | 3994 | done |
3995 | IFS=$as_save_IFS | |
b30fcfae | 3996 | |
3997 | fi | |
3998 | fi | |
3999 | CC=$ac_cv_prog_CC | |
4000 | if test -n "$CC"; then | |
cd9a469c | 4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4002 | $as_echo "$CC" >&6; } | |
b30fcfae | 4003 | else |
cd9a469c | 4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4005 | $as_echo "no" >&6; } | |
b30fcfae | 4006 | fi |
4007 | ||
cd9a469c | 4008 | |
b30fcfae | 4009 | fi |
4010 | if test -z "$ac_cv_prog_CC"; then | |
4011 | ac_ct_CC=$CC | |
a4af6a58 | 4012 | # Extract the first word of "gcc", so it can be a program name with args. |
4013 | set dummy gcc; ac_word=$2 | |
cd9a469c | 4014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4015 | $as_echo_n "checking for $ac_word... " >&6; } | |
4016 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4017 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 4018 | else |
4019 | if test -n "$ac_ct_CC"; then | |
4020 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4021 | else | |
4022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4023 | for as_dir in $PATH | |
4024 | do | |
4025 | IFS=$as_save_IFS | |
4026 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4027 | for ac_exec_ext in '' $ac_executable_extensions; do |
4028 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4029 | ac_cv_prog_ac_ct_CC="gcc" |
cd9a469c | 4030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4031 | break 2 |
4032 | fi | |
4033 | done | |
cd9a469c | 4034 | done |
4035 | IFS=$as_save_IFS | |
b30fcfae | 4036 | |
4037 | fi | |
4038 | fi | |
4039 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4040 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 4041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4042 | $as_echo "$ac_ct_CC" >&6; } | |
b30fcfae | 4043 | else |
cd9a469c | 4044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4045 | $as_echo "no" >&6; } | |
b30fcfae | 4046 | fi |
4047 | ||
cd9a469c | 4048 | if test "x$ac_ct_CC" = x; then |
4049 | CC="" | |
4050 | else | |
4051 | case $cross_compiling:$ac_tool_warned in | |
4052 | yes:) | |
4053 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4054 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4055 | ac_tool_warned=yes ;; | |
4056 | esac | |
4057 | CC=$ac_ct_CC | |
4058 | fi | |
b30fcfae | 4059 | else |
4060 | CC="$ac_cv_prog_CC" | |
4061 | fi | |
4062 | ||
4063 | if test -z "$CC"; then | |
cd9a469c | 4064 | if test -n "$ac_tool_prefix"; then |
4065 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b30fcfae | 4066 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
cd9a469c | 4067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4068 | $as_echo_n "checking for $ac_word... " >&6; } | |
4069 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4070 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 4071 | else |
4072 | if test -n "$CC"; then | |
4073 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4074 | else | |
b30fcfae | 4075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4076 | for as_dir in $PATH | |
4077 | do | |
4078 | IFS=$as_save_IFS | |
4079 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4080 | for ac_exec_ext in '' $ac_executable_extensions; do |
4081 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4082 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
cd9a469c | 4083 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4084 | break 2 |
4085 | fi | |
4086 | done | |
cd9a469c | 4087 | done |
4088 | IFS=$as_save_IFS | |
b30fcfae | 4089 | |
a83ffacf | 4090 | fi |
a83ffacf | 4091 | fi |
b30fcfae | 4092 | CC=$ac_cv_prog_CC |
ae48753c | 4093 | if test -n "$CC"; then |
cd9a469c | 4094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4095 | $as_echo "$CC" >&6; } | |
5084f823 | 4096 | else |
cd9a469c | 4097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4098 | $as_echo "no" >&6; } | |
5084f823 | 4099 | fi |
4100 | ||
5084f823 | 4101 | |
cd9a469c | 4102 | fi |
b30fcfae | 4103 | fi |
8e1fea1a | 4104 | if test -z "$CC"; then |
4105 | # Extract the first word of "cc", so it can be a program name with args. | |
4106 | set dummy cc; ac_word=$2 | |
cd9a469c | 4107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4108 | $as_echo_n "checking for $ac_word... " >&6; } | |
4109 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4110 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 4111 | else |
4112 | if test -n "$CC"; then | |
4113 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4114 | else | |
a83ffacf | 4115 | ac_prog_rejected=no |
b30fcfae | 4116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4117 | for as_dir in $PATH | |
4118 | do | |
4119 | IFS=$as_save_IFS | |
4120 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4121 | for ac_exec_ext in '' $ac_executable_extensions; do |
4122 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4123 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4124 | ac_prog_rejected=yes | |
4125 | continue | |
4126 | fi | |
4127 | ac_cv_prog_CC="cc" | |
cd9a469c | 4128 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4129 | break 2 |
4130 | fi | |
4131 | done | |
cd9a469c | 4132 | done |
4133 | IFS=$as_save_IFS | |
b30fcfae | 4134 | |
8e1fea1a | 4135 | if test $ac_prog_rejected = yes; then |
4136 | # We found a bogon in the path, so make sure we never use it. | |
4137 | set dummy $ac_cv_prog_CC | |
4138 | shift | |
b30fcfae | 4139 | if test $# != 0; then |
8e1fea1a | 4140 | # We chose a different compiler from the bogus one. |
4141 | # However, it has the same basename, so the bogon will be chosen | |
4142 | # first if we set CC to just the basename; use the full file name. | |
4143 | shift | |
b30fcfae | 4144 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
8e1fea1a | 4145 | fi |
4146 | fi | |
4147 | fi | |
4148 | fi | |
b30fcfae | 4149 | CC=$ac_cv_prog_CC |
8e1fea1a | 4150 | if test -n "$CC"; then |
cd9a469c | 4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4152 | $as_echo "$CC" >&6; } | |
8e1fea1a | 4153 | else |
cd9a469c | 4154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4155 | $as_echo "no" >&6; } | |
8e1fea1a | 4156 | fi |
4157 | ||
cd9a469c | 4158 | |
b30fcfae | 4159 | fi |
4160 | if test -z "$CC"; then | |
4161 | if test -n "$ac_tool_prefix"; then | |
cd9a469c | 4162 | for ac_prog in cl.exe |
b30fcfae | 4163 | do |
4164 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4165 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4167 | $as_echo_n "checking for $ac_word... " >&6; } | |
4168 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4169 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 4170 | else |
4171 | if test -n "$CC"; then | |
4172 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4173 | else | |
b30fcfae | 4174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4175 | for as_dir in $PATH | |
4176 | do | |
4177 | IFS=$as_save_IFS | |
4178 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4179 | for ac_exec_ext in '' $ac_executable_extensions; do |
4180 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4181 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
cd9a469c | 4182 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4183 | break 2 |
4184 | fi | |
4185 | done | |
cd9a469c | 4186 | done |
4187 | IFS=$as_save_IFS | |
b30fcfae | 4188 | |
8e1fea1a | 4189 | fi |
4190 | fi | |
b30fcfae | 4191 | CC=$ac_cv_prog_CC |
8e1fea1a | 4192 | if test -n "$CC"; then |
cd9a469c | 4193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4194 | $as_echo "$CC" >&6; } | |
b1660f25 | 4195 | else |
cd9a469c | 4196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4197 | $as_echo "no" >&6; } | |
a4af6a58 | 4198 | fi |
ae48753c | 4199 | |
cd9a469c | 4200 | |
b30fcfae | 4201 | test -n "$CC" && break |
4202 | done | |
ae48753c | 4203 | fi |
b30fcfae | 4204 | if test -z "$CC"; then |
4205 | ac_ct_CC=$CC | |
cd9a469c | 4206 | for ac_prog in cl.exe |
b30fcfae | 4207 | do |
4208 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4209 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4211 | $as_echo_n "checking for $ac_word... " >&6; } | |
4212 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4213 | $as_echo_n "(cached) " >&6 | |
a83ffacf | 4214 | else |
b30fcfae | 4215 | if test -n "$ac_ct_CC"; then |
4216 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
a83ffacf | 4217 | else |
b30fcfae | 4218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4219 | for as_dir in $PATH | |
4220 | do | |
4221 | IFS=$as_save_IFS | |
4222 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4223 | for ac_exec_ext in '' $ac_executable_extensions; do |
4224 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4225 | ac_cv_prog_ac_ct_CC="$ac_prog" |
cd9a469c | 4226 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4227 | break 2 |
4228 | fi | |
4229 | done | |
cd9a469c | 4230 | done |
4231 | IFS=$as_save_IFS | |
b30fcfae | 4232 | |
ae48753c | 4233 | fi |
4234 | fi | |
b30fcfae | 4235 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4236 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4238 | $as_echo "$ac_ct_CC" >&6; } | |
a4af6a58 | 4239 | else |
cd9a469c | 4240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4241 | $as_echo "no" >&6; } | |
ae48753c | 4242 | fi |
a83ffacf | 4243 | |
cd9a469c | 4244 | |
b30fcfae | 4245 | test -n "$ac_ct_CC" && break |
4246 | done | |
4247 | ||
cd9a469c | 4248 | if test "x$ac_ct_CC" = x; then |
4249 | CC="" | |
4250 | else | |
4251 | case $cross_compiling:$ac_tool_warned in | |
4252 | yes:) | |
4253 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4254 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4255 | ac_tool_warned=yes ;; | |
4256 | esac | |
4257 | CC=$ac_ct_CC | |
4258 | fi | |
b30fcfae | 4259 | fi |
4260 | ||
4261 | fi | |
4262 | ||
4263 | ||
cd9a469c | 4264 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4265 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4266 | as_fn_error "no acceptable C compiler found in \$PATH | |
4267 | See \`config.log' for more details." "$LINENO" 5; } | |
b30fcfae | 4268 | |
4269 | # Provide some information about the compiler. | |
cd9a469c | 4270 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4271 | set X $ac_compile | |
4272 | ac_compiler=$2 | |
4273 | for ac_option in --version -v -V -qversion; do | |
4274 | { { ac_try="$ac_compiler $ac_option >&5" | |
4275 | case "(($ac_try" in | |
4276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4277 | *) ac_try_echo=$ac_try;; | |
4278 | esac | |
4279 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4280 | $as_echo "$ac_try_echo"; } >&5 | |
4281 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b30fcfae | 4282 | ac_status=$? |
cd9a469c | 4283 | if test -s conftest.err; then |
4284 | sed '10a\ | |
4285 | ... rest of stderr output deleted ... | |
4286 | 10q' conftest.err >conftest.er1 | |
4287 | cat conftest.er1 >&5 | |
4288 | rm -f conftest.er1 conftest.err | |
4289 | fi | |
4290 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4291 | test $ac_status = 0; } | |
4292 | done | |
b30fcfae | 4293 | |
cd9a469c | 4294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4295 | /* end confdefs.h. */ |
4296 | ||
4297 | int | |
4298 | main () | |
4299 | { | |
4300 | ||
4301 | ; | |
4302 | return 0; | |
4303 | } | |
4304 | _ACEOF | |
4305 | ac_clean_files_save=$ac_clean_files | |
cd9a469c | 4306 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
b30fcfae | 4307 | # Try to create an executable without -o first, disregard a.out. |
4308 | # It will help us diagnose broken compilers, and finding out an intuition | |
4309 | # of exeext. | |
cd9a469c | 4310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4311 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4312 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4313 | ||
4314 | # The possible output files: | |
4315 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4316 | ||
4317 | ac_rmfiles= | |
4318 | for ac_file in $ac_files | |
4319 | do | |
4320 | case $ac_file in | |
4321 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4322 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4323 | esac | |
4324 | done | |
4325 | rm -f $ac_rmfiles | |
4326 | ||
4327 | if { { ac_try="$ac_link_default" | |
4328 | case "(($ac_try" in | |
4329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4330 | *) ac_try_echo=$ac_try;; | |
4331 | esac | |
4332 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4333 | $as_echo "$ac_try_echo"; } >&5 | |
4334 | (eval "$ac_link_default") 2>&5 | |
b30fcfae | 4335 | ac_status=$? |
cd9a469c | 4336 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4337 | test $ac_status = 0; }; then : | |
4338 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4339 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4340 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4341 | # so that the user can short-circuit this test for compilers unknown to | |
4342 | # Autoconf. | |
4343 | for ac_file in $ac_files '' | |
b30fcfae | 4344 | do |
4345 | test -f "$ac_file" || continue | |
4346 | case $ac_file in | |
cd9a469c | 4347 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b30fcfae | 4348 | ;; |
4349 | [ab].out ) | |
4350 | # We found the default executable, but exeext='' is most | |
4351 | # certainly right. | |
4352 | break;; | |
4353 | *.* ) | |
cd9a469c | 4354 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4355 | then :; else | |
4356 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4357 | fi | |
4358 | # We set ac_cv_exeext here because the later test for it is not | |
4359 | # safe: cross compilers may not add the suffix if given an `-o' | |
4360 | # argument, so we may need to know it at that point already. | |
4361 | # Even if this section looks crufty: it has the advantage of | |
4362 | # actually working. | |
b30fcfae | 4363 | break;; |
4364 | * ) | |
4365 | break;; | |
4366 | esac | |
4367 | done | |
cd9a469c | 4368 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4369 | ||
b30fcfae | 4370 | else |
cd9a469c | 4371 | ac_file='' |
4372 | fi | |
4373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4374 | $as_echo "$ac_file" >&6; } | |
4375 | if test -z "$ac_file"; then : | |
4376 | $as_echo "$as_me: failed program was:" >&5 | |
b30fcfae | 4377 | sed 's/^/| /' conftest.$ac_ext >&5 |
4378 | ||
cd9a469c | 4379 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4380 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4381 | { as_fn_set_status 77 | |
4382 | as_fn_error "C compiler cannot create executables | |
4383 | See \`config.log' for more details." "$LINENO" 5; }; } | |
b30fcfae | 4384 | fi |
b30fcfae | 4385 | ac_exeext=$ac_cv_exeext |
b30fcfae | 4386 | |
cd9a469c | 4387 | # Check that the compiler produces executables we can run. If not, either |
b30fcfae | 4388 | # the compiler is broken, or we cross compile. |
cd9a469c | 4389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4390 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
b30fcfae | 4391 | # If not cross compiling, check that we can run a simple program. |
4392 | if test "$cross_compiling" != yes; then | |
4393 | if { ac_try='./$ac_file' | |
cd9a469c | 4394 | { { case "(($ac_try" in |
4395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4396 | *) ac_try_echo=$ac_try;; | |
4397 | esac | |
4398 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4399 | $as_echo "$ac_try_echo"; } >&5 | |
4400 | (eval "$ac_try") 2>&5 | |
b30fcfae | 4401 | ac_status=$? |
cd9a469c | 4402 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4403 | test $ac_status = 0; }; }; then | |
b30fcfae | 4404 | cross_compiling=no |
4405 | else | |
4406 | if test "$cross_compiling" = maybe; then | |
4407 | cross_compiling=yes | |
4408 | else | |
cd9a469c | 4409 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4410 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4411 | as_fn_error "cannot run C compiled programs. | |
b30fcfae | 4412 | If you meant to cross compile, use \`--host'. |
cd9a469c | 4413 | See \`config.log' for more details." "$LINENO" 5; } |
b30fcfae | 4414 | fi |
4415 | fi | |
4416 | fi | |
cd9a469c | 4417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4418 | $as_echo "yes" >&6; } | |
b30fcfae | 4419 | |
cd9a469c | 4420 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
b30fcfae | 4421 | ac_clean_files=$ac_clean_files_save |
cd9a469c | 4422 | # Check that the compiler produces executables we can run. If not, either |
b30fcfae | 4423 | # the compiler is broken, or we cross compile. |
cd9a469c | 4424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4425 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4427 | $as_echo "$cross_compiling" >&6; } | |
4428 | ||
4429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4430 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4431 | if { { ac_try="$ac_link" | |
4432 | case "(($ac_try" in | |
4433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4434 | *) ac_try_echo=$ac_try;; | |
4435 | esac | |
4436 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4437 | $as_echo "$ac_try_echo"; } >&5 | |
4438 | (eval "$ac_link") 2>&5 | |
b30fcfae | 4439 | ac_status=$? |
cd9a469c | 4440 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4441 | test $ac_status = 0; }; then : | |
b30fcfae | 4442 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4443 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4444 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4445 | # `rm'. | |
4446 | for ac_file in conftest.exe conftest conftest.*; do | |
4447 | test -f "$ac_file" || continue | |
4448 | case $ac_file in | |
cd9a469c | 4449 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b30fcfae | 4450 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b30fcfae | 4451 | break;; |
4452 | * ) break;; | |
4453 | esac | |
4454 | done | |
ae48753c | 4455 | else |
cd9a469c | 4456 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4457 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4458 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4459 | See \`config.log' for more details." "$LINENO" 5; } | |
b30fcfae | 4460 | fi |
b30fcfae | 4461 | rm -f conftest$ac_cv_exeext |
cd9a469c | 4462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4463 | $as_echo "$ac_cv_exeext" >&6; } | |
b30fcfae | 4464 | |
4465 | rm -f conftest.$ac_ext | |
4466 | EXEEXT=$ac_cv_exeext | |
4467 | ac_exeext=$EXEEXT | |
cd9a469c | 4468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4469 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4470 | if test "${ac_cv_objext+set}" = set; then : | |
4471 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 4472 | else |
cd9a469c | 4473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4474 | /* end confdefs.h. */ |
4475 | ||
4476 | int | |
4477 | main () | |
4478 | { | |
4479 | ||
4480 | ; | |
4481 | return 0; | |
4482 | } | |
4483 | _ACEOF | |
4484 | rm -f conftest.o conftest.obj | |
cd9a469c | 4485 | if { { ac_try="$ac_compile" |
4486 | case "(($ac_try" in | |
4487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4488 | *) ac_try_echo=$ac_try;; | |
4489 | esac | |
4490 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4491 | $as_echo "$ac_try_echo"; } >&5 | |
4492 | (eval "$ac_compile") 2>&5 | |
b30fcfae | 4493 | ac_status=$? |
cd9a469c | 4494 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4495 | test $ac_status = 0; }; then : | |
4496 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4497 | test -f "$ac_file" || continue; | |
b30fcfae | 4498 | case $ac_file in |
cd9a469c | 4499 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b30fcfae | 4500 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4501 | break;; | |
4502 | esac | |
4503 | done | |
4504 | else | |
cd9a469c | 4505 | $as_echo "$as_me: failed program was:" >&5 |
b30fcfae | 4506 | sed 's/^/| /' conftest.$ac_ext >&5 |
4507 | ||
cd9a469c | 4508 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4509 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4510 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4511 | See \`config.log' for more details." "$LINENO" 5; } | |
b30fcfae | 4512 | fi |
b30fcfae | 4513 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4514 | fi | |
cd9a469c | 4515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4516 | $as_echo "$ac_cv_objext" >&6; } | |
b30fcfae | 4517 | OBJEXT=$ac_cv_objext |
4518 | ac_objext=$OBJEXT | |
cd9a469c | 4519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4520 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4521 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4522 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 4523 | else |
cd9a469c | 4524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4525 | /* end confdefs.h. */ |
4526 | ||
4527 | int | |
4528 | main () | |
4529 | { | |
4530 | #ifndef __GNUC__ | |
4531 | choke me | |
4532 | #endif | |
4533 | ||
4534 | ; | |
4535 | return 0; | |
4536 | } | |
4537 | _ACEOF | |
cd9a469c | 4538 | if ac_fn_c_try_compile "$LINENO"; then : |
b30fcfae | 4539 | ac_compiler_gnu=yes |
4540 | else | |
cd9a469c | 4541 | ac_compiler_gnu=no |
b30fcfae | 4542 | fi |
cd9a469c | 4543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b30fcfae | 4544 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4545 | ||
4546 | fi | |
cd9a469c | 4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4548 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4549 | if test $ac_compiler_gnu = yes; then | |
4550 | GCC=yes | |
4551 | else | |
4552 | GCC= | |
4553 | fi | |
b30fcfae | 4554 | ac_test_CFLAGS=${CFLAGS+set} |
4555 | ac_save_CFLAGS=$CFLAGS | |
cd9a469c | 4556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4557 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4558 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4559 | $as_echo_n "(cached) " >&6 | |
4560 | else | |
4561 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4562 | ac_c_werror_flag=yes | |
4563 | ac_cv_prog_cc_g=no | |
4564 | CFLAGS="-g" | |
4565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b30fcfae | 4566 | /* end confdefs.h. */ |
4567 | ||
4568 | int | |
4569 | main () | |
4570 | { | |
4571 | ||
4572 | ; | |
4573 | return 0; | |
4574 | } | |
4575 | _ACEOF | |
cd9a469c | 4576 | if ac_fn_c_try_compile "$LINENO"; then : |
8e1fea1a | 4577 | ac_cv_prog_cc_g=yes |
4578 | else | |
cd9a469c | 4579 | CFLAGS="" |
4580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4581 | /* end confdefs.h. */ | |
4582 | ||
4583 | int | |
4584 | main () | |
4585 | { | |
4586 | ||
4587 | ; | |
4588 | return 0; | |
4589 | } | |
4590 | _ACEOF | |
4591 | if ac_fn_c_try_compile "$LINENO"; then : | |
4592 | ||
4593 | else | |
4594 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4595 | CFLAGS="-g" | |
4596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4597 | /* end confdefs.h. */ | |
ae48753c | 4598 | |
cd9a469c | 4599 | int |
4600 | main () | |
4601 | { | |
4602 | ||
4603 | ; | |
4604 | return 0; | |
4605 | } | |
4606 | _ACEOF | |
4607 | if ac_fn_c_try_compile "$LINENO"; then : | |
4608 | ac_cv_prog_cc_g=yes | |
4609 | fi | |
4610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a83ffacf | 4611 | fi |
cd9a469c | 4612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b30fcfae | 4613 | fi |
cd9a469c | 4614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4615 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4616 | fi | |
4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4618 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
8e1fea1a | 4619 | if test "$ac_test_CFLAGS" = set; then |
b30fcfae | 4620 | CFLAGS=$ac_save_CFLAGS |
8e1fea1a | 4621 | elif test $ac_cv_prog_cc_g = yes; then |
4622 | if test "$GCC" = yes; then | |
4623 | CFLAGS="-g -O2" | |
4624 | else | |
4625 | CFLAGS="-g" | |
4626 | fi | |
4627 | else | |
4628 | if test "$GCC" = yes; then | |
4629 | CFLAGS="-O2" | |
4630 | else | |
4631 | CFLAGS= | |
4632 | fi | |
4633 | fi | |
cd9a469c | 4634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4635 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4636 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4637 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 4638 | else |
cd9a469c | 4639 | ac_cv_prog_cc_c89=no |
b30fcfae | 4640 | ac_save_CC=$CC |
cd9a469c | 4641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4642 | /* end confdefs.h. */ |
4643 | #include <stdarg.h> | |
4644 | #include <stdio.h> | |
4645 | #include <sys/types.h> | |
4646 | #include <sys/stat.h> | |
4647 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4648 | struct buf { int x; }; | |
4649 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4650 | static char *e (p, i) | |
4651 | char **p; | |
4652 | int i; | |
4653 | { | |
4654 | return p[i]; | |
4655 | } | |
4656 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4657 | { | |
4658 | char *s; | |
4659 | va_list v; | |
4660 | va_start (v,p); | |
4661 | s = g (p, va_arg (v,int)); | |
4662 | va_end (v); | |
4663 | return s; | |
4664 | } | |
4665 | ||
4666 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4667 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4668 | These don't provoke an error unfortunately, instead are silently treated | |
cd9a469c | 4669 | as 'x'. The following induces an error, until -std is added to get |
b30fcfae | 4670 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4671 | array size at least. It's necessary to write '\x00'==0 to get something | |
cd9a469c | 4672 | that's true only with -std. */ |
b30fcfae | 4673 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4674 | ||
cd9a469c | 4675 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4676 | inside strings and character constants. */ | |
4677 | #define FOO(x) 'x' | |
4678 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4679 | ||
b30fcfae | 4680 | int test (int i, double x); |
4681 | struct s1 {int (*f) (int a);}; | |
4682 | struct s2 {int (*f) (double a);}; | |
4683 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4684 | int argc; | |
4685 | char **argv; | |
4686 | int | |
4687 | main () | |
4688 | { | |
4689 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4690 | ; | |
4691 | return 0; | |
4692 | } | |
4693 | _ACEOF | |
cd9a469c | 4694 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4695 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b30fcfae | 4696 | do |
4697 | CC="$ac_save_CC $ac_arg" | |
cd9a469c | 4698 | if ac_fn_c_try_compile "$LINENO"; then : |
4699 | ac_cv_prog_cc_c89=$ac_arg | |
b30fcfae | 4700 | fi |
cd9a469c | 4701 | rm -f core conftest.err conftest.$ac_objext |
4702 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b30fcfae | 4703 | done |
cd9a469c | 4704 | rm -f conftest.$ac_ext |
b30fcfae | 4705 | CC=$ac_save_CC |
4706 | ||
4707 | fi | |
cd9a469c | 4708 | # AC_CACHE_VAL |
4709 | case "x$ac_cv_prog_cc_c89" in | |
4710 | x) | |
4711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4712 | $as_echo "none needed" >&6; } ;; | |
4713 | xno) | |
4714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4715 | $as_echo "unsupported" >&6; } ;; | |
b30fcfae | 4716 | *) |
cd9a469c | 4717 | CC="$CC $ac_cv_prog_cc_c89" |
4718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4719 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b30fcfae | 4720 | esac |
cd9a469c | 4721 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b30fcfae | 4722 | |
5084f823 | 4723 | fi |
4724 | ||
5084f823 | 4725 | ac_ext=c |
4726 | ac_cpp='$CPP $CPPFLAGS' | |
4727 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4728 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4729 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4730 | ||
cd9a469c | 4731 | ac_ext=cpp |
5084f823 | 4732 | ac_cpp='$CXXCPP $CPPFLAGS' |
4733 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4734 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4735 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
cd9a469c | 4736 | if test -z "$CXX"; then |
4737 | if test -n "$CCC"; then | |
4738 | CXX=$CCC | |
4739 | else | |
4740 | if test -n "$ac_tool_prefix"; then | |
4741 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5084f823 | 4742 | do |
4743 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4744 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 4745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4746 | $as_echo_n "checking for $ac_word... " >&6; } | |
4747 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4748 | $as_echo_n "(cached) " >&6 | |
5084f823 | 4749 | else |
4750 | if test -n "$CXX"; then | |
4751 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4752 | else | |
4753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4754 | for as_dir in $PATH | |
4755 | do | |
4756 | IFS=$as_save_IFS | |
4757 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4758 | for ac_exec_ext in '' $ac_executable_extensions; do |
4759 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5084f823 | 4760 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
cd9a469c | 4761 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5084f823 | 4762 | break 2 |
4763 | fi | |
4764 | done | |
cd9a469c | 4765 | done |
4766 | IFS=$as_save_IFS | |
8e1fea1a | 4767 | |
eae5b2bc | 4768 | fi |
4769 | fi | |
4770 | CXX=$ac_cv_prog_CXX | |
4771 | if test -n "$CXX"; then | |
cd9a469c | 4772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4773 | $as_echo "$CXX" >&6; } | |
eae5b2bc | 4774 | else |
cd9a469c | 4775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4776 | $as_echo "no" >&6; } | |
eae5b2bc | 4777 | fi |
4778 | ||
cd9a469c | 4779 | |
eae5b2bc | 4780 | test -n "$CXX" && break |
4781 | done | |
4782 | fi | |
4783 | if test -z "$CXX"; then | |
4784 | ac_ct_CXX=$CXX | |
cd9a469c | 4785 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
eae5b2bc | 4786 | do |
4787 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4788 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 4789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4790 | $as_echo_n "checking for $ac_word... " >&6; } | |
4791 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4792 | $as_echo_n "(cached) " >&6 | |
eae5b2bc | 4793 | else |
4794 | if test -n "$ac_ct_CXX"; then | |
4795 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4796 | else | |
4797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4798 | for as_dir in $PATH | |
4799 | do | |
4800 | IFS=$as_save_IFS | |
4801 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4802 | for ac_exec_ext in '' $ac_executable_extensions; do |
4803 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
eae5b2bc | 4804 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
cd9a469c | 4805 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
eae5b2bc | 4806 | break 2 |
4807 | fi | |
4808 | done | |
cd9a469c | 4809 | done |
4810 | IFS=$as_save_IFS | |
eae5b2bc | 4811 | |
4812 | fi | |
4813 | fi | |
4814 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4815 | if test -n "$ac_ct_CXX"; then | |
cd9a469c | 4816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4817 | $as_echo "$ac_ct_CXX" >&6; } | |
eae5b2bc | 4818 | else |
cd9a469c | 4819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4820 | $as_echo "no" >&6; } | |
eae5b2bc | 4821 | fi |
4822 | ||
cd9a469c | 4823 | |
eae5b2bc | 4824 | test -n "$ac_ct_CXX" && break |
4825 | done | |
eae5b2bc | 4826 | |
cd9a469c | 4827 | if test "x$ac_ct_CXX" = x; then |
4828 | CXX="g++" | |
4829 | else | |
4830 | case $cross_compiling:$ac_tool_warned in | |
4831 | yes:) | |
4832 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4833 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4834 | ac_tool_warned=yes ;; | |
4835 | esac | |
4836 | CXX=$ac_ct_CXX | |
4837 | fi | |
eae5b2bc | 4838 | fi |
4839 | ||
cd9a469c | 4840 | fi |
4841 | fi | |
eae5b2bc | 4842 | # Provide some information about the compiler. |
cd9a469c | 4843 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4844 | set X $ac_compile | |
4845 | ac_compiler=$2 | |
4846 | for ac_option in --version -v -V -qversion; do | |
4847 | { { ac_try="$ac_compiler $ac_option >&5" | |
4848 | case "(($ac_try" in | |
4849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4850 | *) ac_try_echo=$ac_try;; | |
4851 | esac | |
4852 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4853 | $as_echo "$ac_try_echo"; } >&5 | |
4854 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
eae5b2bc | 4855 | ac_status=$? |
cd9a469c | 4856 | if test -s conftest.err; then |
4857 | sed '10a\ | |
4858 | ... rest of stderr output deleted ... | |
4859 | 10q' conftest.err >conftest.er1 | |
4860 | cat conftest.er1 >&5 | |
4861 | rm -f conftest.er1 conftest.err | |
4862 | fi | |
4863 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4864 | test $ac_status = 0; } | |
4865 | done | |
eae5b2bc | 4866 | |
cd9a469c | 4867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4868 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4869 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4870 | $as_echo_n "(cached) " >&6 | |
eae5b2bc | 4871 | else |
cd9a469c | 4872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eae5b2bc | 4873 | /* end confdefs.h. */ |
4874 | ||
4875 | int | |
4876 | main () | |
4877 | { | |
4878 | #ifndef __GNUC__ | |
4879 | choke me | |
4880 | #endif | |
4881 | ||
4882 | ; | |
4883 | return 0; | |
4884 | } | |
4885 | _ACEOF | |
cd9a469c | 4886 | if ac_fn_cxx_try_compile "$LINENO"; then : |
eae5b2bc | 4887 | ac_compiler_gnu=yes |
4888 | else | |
cd9a469c | 4889 | ac_compiler_gnu=no |
eae5b2bc | 4890 | fi |
cd9a469c | 4891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
eae5b2bc | 4892 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4893 | ||
4894 | fi | |
cd9a469c | 4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4896 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4897 | if test $ac_compiler_gnu = yes; then | |
4898 | GXX=yes | |
4899 | else | |
4900 | GXX= | |
4901 | fi | |
eae5b2bc | 4902 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4903 | ac_save_CXXFLAGS=$CXXFLAGS | |
cd9a469c | 4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4905 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4906 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4907 | $as_echo_n "(cached) " >&6 | |
4908 | else | |
4909 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4910 | ac_cxx_werror_flag=yes | |
4911 | ac_cv_prog_cxx_g=no | |
4912 | CXXFLAGS="-g" | |
4913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eae5b2bc | 4914 | /* end confdefs.h. */ |
4915 | ||
4916 | int | |
4917 | main () | |
4918 | { | |
4919 | ||
4920 | ; | |
4921 | return 0; | |
4922 | } | |
4923 | _ACEOF | |
cd9a469c | 4924 | if ac_fn_cxx_try_compile "$LINENO"; then : |
eae5b2bc | 4925 | ac_cv_prog_cxx_g=yes |
4926 | else | |
cd9a469c | 4927 | CXXFLAGS="" |
4928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eae5b2bc | 4929 | /* end confdefs.h. */ |
cd9a469c | 4930 | |
eae5b2bc | 4931 | int |
4932 | main () | |
4933 | { | |
cd9a469c | 4934 | |
eae5b2bc | 4935 | ; |
4936 | return 0; | |
4937 | } | |
4938 | _ACEOF | |
cd9a469c | 4939 | if ac_fn_cxx_try_compile "$LINENO"; then : |
2f8725b0 | 4940 | |
cd9a469c | 4941 | else |
4942 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4943 | CXXFLAGS="-g" | |
4944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eae5b2bc | 4945 | /* end confdefs.h. */ |
cd9a469c | 4946 | |
eae5b2bc | 4947 | int |
4948 | main () | |
4949 | { | |
cd9a469c | 4950 | |
eae5b2bc | 4951 | ; |
4952 | return 0; | |
4953 | } | |
4954 | _ACEOF | |
cd9a469c | 4955 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4956 | ac_cv_prog_cxx_g=yes | |
570af75a | 4957 | fi |
cd9a469c | 4958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4959 | fi | |
4960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4961 | fi | |
4962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4963 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4964 | fi | |
4965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4966 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4967 | if test "$ac_test_CXXFLAGS" = set; then | |
4968 | CXXFLAGS=$ac_save_CXXFLAGS | |
4969 | elif test $ac_cv_prog_cxx_g = yes; then | |
4970 | if test "$GXX" = yes; then | |
4971 | CXXFLAGS="-g -O2" | |
4972 | else | |
4973 | CXXFLAGS="-g" | |
4974 | fi | |
4975 | else | |
4976 | if test "$GXX" = yes; then | |
4977 | CXXFLAGS="-O2" | |
4978 | else | |
4979 | CXXFLAGS= | |
4980 | fi | |
eae5b2bc | 4981 | fi |
eae5b2bc | 4982 | ac_ext=c |
4983 | ac_cpp='$CPP $CPPFLAGS' | |
4984 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4985 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4986 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4987 | ||
4988 | ||
4989 | # We must set the default linker to the linker used by gcc for the correct | |
4990 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
4991 | # set the LD default to the ld used by gcc. | |
4992 | if test -z "$LD"; then | |
4993 | if test "$GCC" = yes; then | |
4994 | case $build in | |
4995 | *-*-mingw*) | |
4996 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
4997 | *) | |
4998 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
4999 | esac | |
5000 | case $gcc_prog_ld in | |
5001 | # Accept absolute paths. | |
5002 | [\\/]* | [A-Za-z]:[\\/]*) | |
5003 | LD="$gcc_prog_ld" ;; | |
5004 | esac | |
5005 | fi | |
2f8725b0 | 5006 | fi |
5007 | ||
13687c85 | 5008 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5009 | have_static_libs=no | |
5010 | if test "$GCC" = yes; then | |
5011 | saved_LDFLAGS="$LDFLAGS" | |
5012 | ||
5013 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5015 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5016 | ac_ext=cpp | |
5017 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5018 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5019 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5020 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5021 | ||
5022 | ||
5023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5024 | /* end confdefs.h. */ | |
74f1ea54 | 5025 | |
5026 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5027 | #error -static-libstdc++ not implemented | |
5028 | #endif | |
13687c85 | 5029 | int main() {} |
5030 | _ACEOF | |
5031 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5033 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5034 | else | |
5035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5036 | $as_echo "no" >&6; } | |
5037 | fi | |
5038 | rm -f core conftest.err conftest.$ac_objext \ | |
5039 | conftest$ac_exeext conftest.$ac_ext | |
5040 | ac_ext=c | |
5041 | ac_cpp='$CPP $CPPFLAGS' | |
5042 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5043 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5044 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5045 | ||
5046 | ||
5047 | LDFLAGS="$saved_LDFLAGS" | |
5048 | fi | |
5049 | ||
2f8725b0 | 5050 | |
5051 | ||
8e1fea1a | 5052 | |
b30fcfae | 5053 | if test -n "$ac_tool_prefix"; then |
5054 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
8e1fea1a | 5055 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
cd9a469c | 5056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5057 | $as_echo_n "checking for $ac_word... " >&6; } | |
5058 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
5059 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 5060 | else |
5061 | if test -n "$GNATBIND"; then | |
5062 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5063 | else | |
b30fcfae | 5064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5065 | for as_dir in $PATH | |
5066 | do | |
5067 | IFS=$as_save_IFS | |
5068 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5069 | for ac_exec_ext in '' $ac_executable_extensions; do |
5070 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 5071 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
cd9a469c | 5072 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5073 | break 2 |
5074 | fi | |
5075 | done | |
cd9a469c | 5076 | done |
5077 | IFS=$as_save_IFS | |
b30fcfae | 5078 | |
8e1fea1a | 5079 | fi |
5080 | fi | |
b30fcfae | 5081 | GNATBIND=$ac_cv_prog_GNATBIND |
8e1fea1a | 5082 | if test -n "$GNATBIND"; then |
cd9a469c | 5083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5084 | $as_echo "$GNATBIND" >&6; } | |
8e1fea1a | 5085 | else |
cd9a469c | 5086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5087 | $as_echo "no" >&6; } | |
8e1fea1a | 5088 | fi |
5089 | ||
cd9a469c | 5090 | |
b30fcfae | 5091 | fi |
8e1fea1a | 5092 | if test -z "$ac_cv_prog_GNATBIND"; then |
b30fcfae | 5093 | ac_ct_GNATBIND=$GNATBIND |
8e1fea1a | 5094 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5095 | set dummy gnatbind; ac_word=$2 | |
cd9a469c | 5096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5097 | $as_echo_n "checking for $ac_word... " >&6; } | |
5098 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
5099 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 5100 | else |
b30fcfae | 5101 | if test -n "$ac_ct_GNATBIND"; then |
5102 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
8e1fea1a | 5103 | else |
b30fcfae | 5104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5105 | for as_dir in $PATH | |
5106 | do | |
5107 | IFS=$as_save_IFS | |
5108 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5109 | for ac_exec_ext in '' $ac_executable_extensions; do |
5110 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 5111 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
cd9a469c | 5112 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5113 | break 2 |
5114 | fi | |
5115 | done | |
cd9a469c | 5116 | done |
5117 | IFS=$as_save_IFS | |
b30fcfae | 5118 | |
8e1fea1a | 5119 | fi |
5120 | fi | |
b30fcfae | 5121 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5122 | if test -n "$ac_ct_GNATBIND"; then | |
cd9a469c | 5123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5124 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
8e1fea1a | 5125 | else |
cd9a469c | 5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5127 | $as_echo "no" >&6; } | |
8e1fea1a | 5128 | fi |
5129 | ||
cd9a469c | 5130 | if test "x$ac_ct_GNATBIND" = x; then |
5131 | GNATBIND="no" | |
5132 | else | |
5133 | case $cross_compiling:$ac_tool_warned in | |
5134 | yes:) | |
5135 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5136 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5137 | ac_tool_warned=yes ;; | |
5138 | esac | |
5139 | GNATBIND=$ac_ct_GNATBIND | |
5140 | fi | |
8e1fea1a | 5141 | else |
b30fcfae | 5142 | GNATBIND="$ac_cv_prog_GNATBIND" |
8e1fea1a | 5143 | fi |
5144 | ||
b30fcfae | 5145 | if test -n "$ac_tool_prefix"; then |
5146 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
a18b2c54 | 5147 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
cd9a469c | 5148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5149 | $as_echo_n "checking for $ac_word... " >&6; } | |
5150 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
5151 | $as_echo_n "(cached) " >&6 | |
a18b2c54 | 5152 | else |
5153 | if test -n "$GNATMAKE"; then | |
5154 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5155 | else | |
b30fcfae | 5156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5157 | for as_dir in $PATH | |
5158 | do | |
5159 | IFS=$as_save_IFS | |
5160 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5161 | for ac_exec_ext in '' $ac_executable_extensions; do |
5162 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 5163 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
cd9a469c | 5164 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5165 | break 2 |
5166 | fi | |
5167 | done | |
cd9a469c | 5168 | done |
5169 | IFS=$as_save_IFS | |
b30fcfae | 5170 | |
a18b2c54 | 5171 | fi |
5172 | fi | |
b30fcfae | 5173 | GNATMAKE=$ac_cv_prog_GNATMAKE |
a18b2c54 | 5174 | if test -n "$GNATMAKE"; then |
cd9a469c | 5175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5176 | $as_echo "$GNATMAKE" >&6; } | |
a18b2c54 | 5177 | else |
cd9a469c | 5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5179 | $as_echo "no" >&6; } | |
a18b2c54 | 5180 | fi |
5181 | ||
cd9a469c | 5182 | |
b30fcfae | 5183 | fi |
a18b2c54 | 5184 | if test -z "$ac_cv_prog_GNATMAKE"; then |
b30fcfae | 5185 | ac_ct_GNATMAKE=$GNATMAKE |
a18b2c54 | 5186 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5187 | set dummy gnatmake; ac_word=$2 | |
cd9a469c | 5188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5189 | $as_echo_n "checking for $ac_word... " >&6; } | |
5190 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
5191 | $as_echo_n "(cached) " >&6 | |
a18b2c54 | 5192 | else |
b30fcfae | 5193 | if test -n "$ac_ct_GNATMAKE"; then |
5194 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
a18b2c54 | 5195 | else |
b30fcfae | 5196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5197 | for as_dir in $PATH | |
5198 | do | |
5199 | IFS=$as_save_IFS | |
5200 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5201 | for ac_exec_ext in '' $ac_executable_extensions; do |
5202 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 5203 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
cd9a469c | 5204 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5205 | break 2 |
5206 | fi | |
5207 | done | |
cd9a469c | 5208 | done |
5209 | IFS=$as_save_IFS | |
b30fcfae | 5210 | |
a18b2c54 | 5211 | fi |
5212 | fi | |
b30fcfae | 5213 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5214 | if test -n "$ac_ct_GNATMAKE"; then | |
cd9a469c | 5215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5216 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
a18b2c54 | 5217 | else |
cd9a469c | 5218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5219 | $as_echo "no" >&6; } | |
a18b2c54 | 5220 | fi |
5221 | ||
cd9a469c | 5222 | if test "x$ac_ct_GNATMAKE" = x; then |
5223 | GNATMAKE="no" | |
5224 | else | |
5225 | case $cross_compiling:$ac_tool_warned in | |
5226 | yes:) | |
5227 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5228 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5229 | ac_tool_warned=yes ;; | |
5230 | esac | |
5231 | GNATMAKE=$ac_ct_GNATMAKE | |
5232 | fi | |
a18b2c54 | 5233 | else |
b30fcfae | 5234 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
a18b2c54 | 5235 | fi |
5236 | ||
cd9a469c | 5237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5238 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
5239 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
5240 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 5241 | else |
5242 | cat >conftest.adb <<EOF | |
5243 | procedure conftest is begin null; end conftest; | |
5244 | EOF | |
5245 | acx_cv_cc_gcc_supports_ada=no | |
5246 | # There is a bug in old released versions of GCC which causes the | |
5247 | # driver to exit successfully when the appropriate language module | |
5248 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5249 | # Therefore we must check for the error message as well as an | |
5250 | # unsuccessful exit. | |
216de822 | 5251 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5252 | # given a .adb file, but produce no object file. So we must check | |
5253 | # if an object file was really produced to guard against this. | |
8e1fea1a | 5254 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
216de822 | 5255 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
8e1fea1a | 5256 | acx_cv_cc_gcc_supports_ada=yes |
8e1fea1a | 5257 | fi |
5258 | rm -f conftest.* | |
5259 | fi | |
cd9a469c | 5260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5261 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
8e1fea1a | 5262 | |
9d5fd7d0 | 5263 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
8e1fea1a | 5264 | have_gnat=yes |
5265 | else | |
5266 | have_gnat=no | |
5267 | fi | |
5268 | ||
cd9a469c | 5269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5270 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5271 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5272 | $as_echo_n "(cached) " >&6 | |
7bcc3b4a | 5273 | else |
5274 | echo abfoo >t1 | |
5275 | echo cdfoo >t2 | |
efbca99c | 5276 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
697dfd2c | 5277 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5278 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5279 | : | |
5280 | else | |
5281 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5282 | fi | |
5283 | fi | |
7bcc3b4a | 5284 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5285 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
697dfd2c | 5286 | : |
7bcc3b4a | 5287 | else |
5288 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5289 | fi | |
5290 | fi | |
5291 | rm t1 t2 | |
5292 | ||
5293 | fi | |
cd9a469c | 5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5295 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
7bcc3b4a | 5296 | do_compare="$gcc_cv_prog_cmp_skip" |
5297 | ||
5298 | ||
8e1fea1a | 5299 | |
6c59dfa4 | 5300 | # Check whether --enable-bootstrap was given. |
5301 | if test "${enable_bootstrap+set}" = set; then : | |
5302 | enableval=$enable_bootstrap; | |
5303 | else | |
5304 | enable_bootstrap=default | |
5305 | fi | |
5306 | ||
5307 | ||
5308 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
d7c9b4c1 | 5309 | if test -r $srcdir/gcc/configure; then |
5310 | have_compiler=yes | |
5311 | else | |
5312 | have_compiler=no | |
5313 | fi | |
6c59dfa4 | 5314 | |
5315 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5316 | *:*:*:no) ;; | |
5317 | ||
5318 | # Default behavior. Enable bootstrap if we have a compiler | |
5319 | # and we are in a native configuration. | |
5320 | yes:$build:$build:default) | |
5321 | enable_bootstrap=yes ;; | |
5322 | ||
5323 | *:*:*:default) | |
5324 | enable_bootstrap=no ;; | |
5325 | ||
5326 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5327 | yes:$build:$build:yes) | |
5328 | ;; | |
5329 | ||
5330 | # Other configurations, but we have a compiler. Assume the user knows | |
5331 | # what he's doing. | |
5332 | yes:*:*:yes) | |
5333 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5334 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5335 | ;; | |
5336 | ||
5337 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5338 | no:*:*:yes) | |
5339 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5340 | ||
5341 | # Fail if wrong command line | |
5342 | *) | |
5343 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5344 | ;; | |
5345 | esac | |
5346 | ||
27590679 | 5347 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5348 | # C++98 compiler can still start the bootstrap. | |
5349 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
dce53dbc | 5350 | CXX="$CXX -std=gnu++98" |
27590679 | 5351 | fi |
5352 | ||
c3fc6a63 | 5353 | # Used for setting $lt_cv_objdir |
5354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5355 | $as_echo_n "checking for objdir... " >&6; } | |
5356 | if test "${lt_cv_objdir+set}" = set; then : | |
5357 | $as_echo_n "(cached) " >&6 | |
5358 | else | |
5359 | rm -f .libs 2>/dev/null | |
5360 | mkdir .libs 2>/dev/null | |
5361 | if test -d .libs; then | |
5362 | lt_cv_objdir=.libs | |
5363 | else | |
5364 | # MS-DOS does not allow filenames that begin with a dot. | |
5365 | lt_cv_objdir=_libs | |
5366 | fi | |
5367 | rmdir .libs 2>/dev/null | |
5368 | fi | |
5369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5370 | $as_echo "$lt_cv_objdir" >&6; } | |
5371 | objdir=$lt_cv_objdir | |
5372 | ||
5373 | ||
5374 | ||
5375 | ||
5376 | ||
5377 | cat >>confdefs.h <<_ACEOF | |
5378 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5379 | _ACEOF | |
5380 | ||
5381 | ||
5382 | ||
7601a55c | 5383 | # Check for GMP, MPFR and MPC |
16de6a81 | 5384 | gmplibs="-lmpc -lmpfr -lgmp" |
4ee9c684 | 5385 | gmpinc= |
d45318b3 | 5386 | have_gmp=no |
7601a55c | 5387 | |
5388 | # Specify a location for mpc | |
5389 | # check for this first so it ends up on the link line before mpfr. | |
5390 | ||
cd9a469c | 5391 | # Check whether --with-mpc was given. |
5392 | if test "${with_mpc+set}" = set; then : | |
5393 | withval=$with_mpc; | |
5394 | fi | |
7601a55c | 5395 | |
7601a55c | 5396 | |
73f813e1 | 5397 | # Check whether --with-mpc-include was given. |
cd9a469c | 5398 | if test "${with_mpc_include+set}" = set; then : |
5399 | withval=$with_mpc_include; | |
5400 | fi | |
7601a55c | 5401 | |
7601a55c | 5402 | |
73f813e1 | 5403 | # Check whether --with-mpc-lib was given. |
cd9a469c | 5404 | if test "${with_mpc_lib+set}" = set; then : |
5405 | withval=$with_mpc_lib; | |
5406 | fi | |
7601a55c | 5407 | |
7601a55c | 5408 | |
5409 | if test "x$with_mpc" != x; then | |
16de6a81 | 5410 | gmplibs="-L$with_mpc/lib $gmplibs" |
5411 | gmpinc="-I$with_mpc/include $gmpinc" | |
7601a55c | 5412 | fi |
5413 | if test "x$with_mpc_include" != x; then | |
16de6a81 | 5414 | gmpinc="-I$with_mpc_include $gmpinc" |
7601a55c | 5415 | fi |
5416 | if test "x$with_mpc_lib" != x; then | |
16de6a81 | 5417 | gmplibs="-L$with_mpc_lib $gmplibs" |
7601a55c | 5418 | fi |
5419 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
c3fc6a63 | 5420 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
16de6a81 | 5421 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
7601a55c | 5422 | # Do not test the mpc version. Assume that it is sufficient, since |
5423 | # it is in the source tree, and the library has not been built yet | |
5424 | # but it would be included on the link line in the version check below | |
5425 | # hence making the test fail. | |
16de6a81 | 5426 | have_gmp=yes |
7601a55c | 5427 | fi |
d45318b3 | 5428 | |
5ca838b8 | 5429 | # Specify a location for mpfr |
5430 | # check for this first so it ends up on the link line before gmp. | |
b30fcfae | 5431 | |
cd9a469c | 5432 | # Check whether --with-mpfr-dir was given. |
5433 | if test "${with_mpfr_dir+set}" = set; then : | |
5434 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5435 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5436 | fi | |
5437 | ||
5ca838b8 | 5438 | |
5439 | ||
cd9a469c | 5440 | # Check whether --with-mpfr was given. |
5441 | if test "${with_mpfr+set}" = set; then : | |
5442 | withval=$with_mpfr; | |
5443 | fi | |
b30fcfae | 5444 | |
5ca838b8 | 5445 | |
73f813e1 | 5446 | # Check whether --with-mpfr-include was given. |
cd9a469c | 5447 | if test "${with_mpfr_include+set}" = set; then : |
5448 | withval=$with_mpfr_include; | |
5449 | fi | |
b30fcfae | 5450 | |
a5144c1d | 5451 | |
73f813e1 | 5452 | # Check whether --with-mpfr-lib was given. |
cd9a469c | 5453 | if test "${with_mpfr_lib+set}" = set; then : |
5454 | withval=$with_mpfr_lib; | |
5455 | fi | |
a5144c1d | 5456 | |
5ca838b8 | 5457 | |
5458 | if test "x$with_mpfr" != x; then | |
5459 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
16de6a81 | 5460 | gmpinc="-I$with_mpfr/include $gmpinc" |
5ca838b8 | 5461 | fi |
a5144c1d | 5462 | if test "x$with_mpfr_include" != x; then |
16de6a81 | 5463 | gmpinc="-I$with_mpfr_include $gmpinc" |
a5144c1d | 5464 | fi |
5465 | if test "x$with_mpfr_lib" != x; then | |
5466 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5467 | fi | |
d45318b3 | 5468 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
efa1150d | 5469 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
5470 | if ! test -d ${srcdir}/mpfr/src; then | |
5471 | as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 | |
5472 | fi | |
4b2246ef | 5473 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
5474 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5475 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
d45318b3 | 5476 | # Do not test the mpfr version. Assume that it is sufficient, since |
5477 | # it is in the source tree, and the library has not been built yet | |
5478 | # but it would be included on the link line in the version check below | |
5479 | # hence making the test fail. | |
5480 | have_gmp=yes | |
5481 | fi | |
5ca838b8 | 5482 | |
4ee9c684 | 5483 | # Specify a location for gmp |
b30fcfae | 5484 | |
cd9a469c | 5485 | # Check whether --with-gmp-dir was given. |
5486 | if test "${with_gmp_dir+set}" = set; then : | |
5487 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5488 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5489 | fi | |
5490 | ||
4ee9c684 | 5491 | |
4ee9c684 | 5492 | |
cd9a469c | 5493 | # Check whether --with-gmp was given. |
5494 | if test "${with_gmp+set}" = set; then : | |
5495 | withval=$with_gmp; | |
5496 | fi | |
b30fcfae | 5497 | |
4ee9c684 | 5498 | |
73f813e1 | 5499 | # Check whether --with-gmp-include was given. |
cd9a469c | 5500 | if test "${with_gmp_include+set}" = set; then : |
5501 | withval=$with_gmp_include; | |
5502 | fi | |
b30fcfae | 5503 | |
a5144c1d | 5504 | |
73f813e1 | 5505 | # Check whether --with-gmp-lib was given. |
cd9a469c | 5506 | if test "${with_gmp_lib+set}" = set; then : |
5507 | withval=$with_gmp_lib; | |
5508 | fi | |
a5144c1d | 5509 | |
5510 | ||
4ee9c684 | 5511 | |
5ca838b8 | 5512 | if test "x$with_gmp" != x; then |
5513 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5514 | gmpinc="-I$with_gmp/include $gmpinc" | |
4ee9c684 | 5515 | fi |
a5144c1d | 5516 | if test "x$with_gmp_include" != x; then |
5517 | gmpinc="-I$with_gmp_include $gmpinc" | |
5518 | fi | |
5519 | if test "x$with_gmp_lib" != x; then | |
5520 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5521 | fi | |
d45318b3 | 5522 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
c3fc6a63 | 5523 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
d45318b3 | 5524 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
b9a8e4c4 | 5525 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
c3fc6a63 | 5526 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
e4128452 | 5527 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
d45318b3 | 5528 | # Do not test the gmp version. Assume that it is sufficient, since |
5529 | # it is in the source tree, and the library has not been built yet | |
5530 | # but it would be included on the link line in the version check below | |
5531 | # hence making the test fail. | |
5532 | have_gmp=yes | |
5533 | fi | |
4ee9c684 | 5534 | |
16c9b2e3 | 5535 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
d45318b3 | 5536 | have_gmp=yes |
5537 | saved_CFLAGS="$CFLAGS" | |
5538 | CFLAGS="$CFLAGS $gmpinc" | |
17b6993a | 5539 | # Check for the recommended and required versions of GMP. |
5540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5541 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
4fd35f21 | 5542 | |
5543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17b6993a | 5544 | /* end confdefs.h. */ |
5545 | #include "gmp.h" | |
5546 | int | |
5547 | main () | |
5548 | { | |
5549 | ||
5550 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5551 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
f819bb73 | 5552 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
17b6993a | 5553 | choke me |
5554 | #endif | |
5555 | ||
5556 | ; | |
5557 | return 0; | |
5558 | } | |
5559 | _ACEOF | |
5560 | if ac_fn_c_try_compile "$LINENO"; then : | |
4fd35f21 | 5561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 5562 | /* end confdefs.h. */ |
17b6993a | 5563 | #include <gmp.h> |
b30fcfae | 5564 | int |
5565 | main () | |
5566 | { | |
4ee9c684 | 5567 | |
17b6993a | 5568 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5569 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5570 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
d45318b3 | 5571 | choke me |
5572 | #endif | |
b30fcfae | 5573 | |
5574 | ; | |
5575 | return 0; | |
5576 | } | |
5577 | _ACEOF | |
cd9a469c | 5578 | if ac_fn_c_try_compile "$LINENO"; then : |
5579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5580 | $as_echo "yes" >&6; } | |
17b6993a | 5581 | else |
5582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5583 | $as_echo "buggy but acceptable" >&6; } | |
5584 | fi | |
5585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b30fcfae | 5586 | else |
cd9a469c | 5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5588 | $as_echo "no" >&6; }; have_gmp=no | |
b30fcfae | 5589 | fi |
cd9a469c | 5590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4ee9c684 | 5591 | |
7601a55c | 5592 | # If we have GMP, check the MPFR version. |
d45318b3 | 5593 | if test x"$have_gmp" = xyes; then |
17b6993a | 5594 | # Check for the recommended and required versions of MPFR. |
5595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5596 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
cd9a469c | 5597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 5598 | /* end confdefs.h. */ |
6a086156 | 5599 | #include <gmp.h> |
d45318b3 | 5600 | #include <mpfr.h> |
b30fcfae | 5601 | int |
5602 | main () | |
5603 | { | |
112f3d57 | 5604 | |
cb1d9044 | 5605 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
d45318b3 | 5606 | choke me |
5607 | #endif | |
b30fcfae | 5608 | |
5609 | ; | |
5610 | return 0; | |
5611 | } | |
5612 | _ACEOF | |
cd9a469c | 5613 | if ac_fn_c_try_compile "$LINENO"; then : |
5614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b30fcfae | 5615 | /* end confdefs.h. */ |
0157cc75 | 5616 | #include <gmp.h> |
d45318b3 | 5617 | #include <mpfr.h> |
b30fcfae | 5618 | int |
5619 | main () | |
5620 | { | |
0157cc75 | 5621 | |
17b6993a | 5622 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
d45318b3 | 5623 | choke me |
5624 | #endif | |
7601a55c | 5625 | |
5626 | ; | |
5627 | return 0; | |
5628 | } | |
5629 | _ACEOF | |
cd9a469c | 5630 | if ac_fn_c_try_compile "$LINENO"; then : |
5631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5632 | $as_echo "yes" >&6; } | |
7601a55c | 5633 | else |
cd9a469c | 5634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5635 | $as_echo "buggy but acceptable" >&6; } | |
7601a55c | 5636 | fi |
cd9a469c | 5637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7601a55c | 5638 | else |
cd9a469c | 5639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5640 | $as_echo "no" >&6; }; have_gmp=no | |
7601a55c | 5641 | fi |
cd9a469c | 5642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7601a55c | 5643 | fi |
5644 | ||
5645 | # Check for the MPC header version. | |
16de6a81 | 5646 | if test x"$have_gmp" = xyes ; then |
17b6993a | 5647 | # Check for the recommended and required versions of MPC. |
cd9a469c | 5648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5649 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7601a55c | 5651 | /* end confdefs.h. */ |
5652 | #include <mpc.h> | |
5653 | int | |
5654 | main () | |
5655 | { | |
5656 | ||
17b6993a | 5657 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5658 | choke me | |
5659 | #endif | |
5660 | ||
5661 | ; | |
5662 | return 0; | |
5663 | } | |
5664 | _ACEOF | |
5665 | if ac_fn_c_try_compile "$LINENO"; then : | |
5666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5667 | /* end confdefs.h. */ | |
5668 | #include <mpc.h> | |
5669 | int | |
5670 | main () | |
5671 | { | |
5672 | ||
5673 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
7601a55c | 5674 | choke me |
5675 | #endif | |
5676 | ||
5677 | ; | |
5678 | return 0; | |
5679 | } | |
5680 | _ACEOF | |
cd9a469c | 5681 | if ac_fn_c_try_compile "$LINENO"; then : |
5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16de6a81 | 5683 | $as_echo "yes" >&6; } |
17b6993a | 5684 | else |
5685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5686 | $as_echo "buggy but acceptable" >&6; } | |
5687 | fi | |
5688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7601a55c | 5689 | else |
cd9a469c | 5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16de6a81 | 5691 | $as_echo "no" >&6; }; have_gmp=no |
7601a55c | 5692 | fi |
cd9a469c | 5693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7601a55c | 5694 | fi |
5695 | ||
5696 | # Now check the MPFR library. | |
5697 | if test x"$have_gmp" = xyes; then | |
5698 | saved_LIBS="$LIBS" | |
5699 | LIBS="$LIBS $gmplibs" | |
16de6a81 | 5700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5701 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
cd9a469c | 5702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7601a55c | 5703 | /* end confdefs.h. */ |
16de6a81 | 5704 | #include <mpc.h> |
7601a55c | 5705 | int |
5706 | main () | |
5707 | { | |
5708 | ||
5709 | mpfr_t n; | |
5710 | mpfr_t x; | |
16de6a81 | 5711 | mpc_t c; |
7601a55c | 5712 | int t; |
5713 | mpfr_init (n); | |
5714 | mpfr_init (x); | |
5715 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5716 | mpfr_erfc (n, x, GMP_RNDN); | |
5717 | mpfr_subnormalize (x, t, GMP_RNDN); | |
16de6a81 | 5718 | mpfr_clear(n); |
5719 | mpfr_clear(x); | |
5720 | mpc_init2 (c, 53); | |
5721 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5722 | mpc_cosh (c, c, MPC_RNDNN); | |
5723 | mpc_pow (c, c, c, MPC_RNDNN); | |
5724 | mpc_acosh (c, c, MPC_RNDNN); | |
5725 | mpc_clear (c); | |
b30fcfae | 5726 | |
5727 | ; | |
5728 | return 0; | |
5729 | } | |
5730 | _ACEOF | |
cd9a469c | 5731 | if ac_fn_c_try_link "$LINENO"; then : |
5732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5733 | $as_echo "yes" >&6; } | |
b30fcfae | 5734 | else |
cd9a469c | 5735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5736 | $as_echo "no" >&6; }; have_gmp=no | |
b30fcfae | 5737 | fi |
cd9a469c | 5738 | rm -f core conftest.err conftest.$ac_objext \ |
5739 | conftest$ac_exeext conftest.$ac_ext | |
7601a55c | 5740 | LIBS="$saved_LIBS" |
5741 | fi | |
5742 | ||
d45318b3 | 5743 | CFLAGS="$saved_CFLAGS" |
4ee9c684 | 5744 | |
17b6993a | 5745 | # The library versions listed in the error message below should match |
5746 | # the HARD-minimums enforced above. | |
d45318b3 | 5747 | if test x$have_gmp != xyes; then |
cb1d9044 | 5748 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
16de6a81 | 5749 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5750 | their locations. Source code for these libraries can be found at | |
5751 | their respective hosting sites as well as at | |
5752 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5753 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5754 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5755 | make sure that you have installed both the libraries and the header | |
5756 | files. They may be located in separate packages." "$LINENO" 5 | |
d45318b3 | 5757 | fi |
6a086156 | 5758 | fi |
5759 | ||
7601a55c | 5760 | # Flags needed for both GMP, MPFR and/or MPC. |
5761 | ||
5762 | ||
4ee9c684 | 5763 | |
5764 | ||
5765 | ||
bff7ea4a | 5766 | |
e4128452 | 5767 | |
13687c85 | 5768 | # Libraries to use for stage1 or when not bootstrapping. |
7ab76cec | 5769 | |
13687c85 | 5770 | # Check whether --with-stage1-libs was given. |
5771 | if test "${with_stage1_libs+set}" = set; then : | |
5772 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5773 | stage1_libs= | |
7ab76cec | 5774 | else |
13687c85 | 5775 | stage1_libs=$withval |
7ab76cec | 5776 | fi |
5777 | else | |
9d71bbdc | 5778 | stage1_libs= |
cd9a469c | 5779 | fi |
5780 | ||
7ab76cec | 5781 | |
5782 | ||
13687c85 | 5783 | # Linker flags to use for stage1 or when not bootstrapping. |
7ab76cec | 5784 | |
13687c85 | 5785 | # Check whether --with-stage1-ldflags was given. |
5786 | if test "${with_stage1_ldflags+set}" = set; then : | |
5787 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5788 | stage1_ldflags= | |
7ab76cec | 5789 | else |
13687c85 | 5790 | stage1_ldflags=$withval |
7ab76cec | 5791 | fi |
5792 | else | |
13687c85 | 5793 | stage1_ldflags= |
5794 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5795 | # if supported. But if the user explicitly specified the libraries to use, | |
5796 | # trust that they are doing what they want. | |
5797 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5798 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5799 | fi | |
cd9a469c | 5800 | fi |
5801 | ||
7ab76cec | 5802 | |
5803 | ||
9d71bbdc | 5804 | # Libraries to use for stage2 and later builds. |
7ab76cec | 5805 | |
cd9a469c | 5806 | # Check whether --with-boot-libs was given. |
5807 | if test "${with_boot_libs+set}" = set; then : | |
5808 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5110389d | 5809 | poststage1_libs= |
5810 | else | |
5811 | poststage1_libs=$withval | |
5812 | fi | |
5813 | else | |
9d71bbdc | 5814 | poststage1_libs= |
cd9a469c | 5815 | fi |
5816 | ||
7ab76cec | 5817 | |
5818 | ||
d6dfe18a | 5819 | # Linker flags to use for stage2 and later builds. |
5820 | ||
5821 | # Check whether --with-boot-ldflags was given. | |
5822 | if test "${with_boot_ldflags+set}" = set; then : | |
5823 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5824 | poststage1_ldflags= | |
5825 | else | |
5826 | poststage1_ldflags=$withval | |
5827 | fi | |
5828 | else | |
5829 | poststage1_ldflags= | |
7deb2d70 | 5830 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5831 | # statically. But if the user explicitly specified the libraries to | |
5832 | # use, trust that they are doing what they want. | |
5833 | if test "$poststage1_libs" = ""; then | |
d6dfe18a | 5834 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5835 | fi | |
5836 | fi | |
5837 | ||
5838 | ||
5839 | ||
71130ef8 | 5840 | # GCC GRAPHITE dependency isl. |
572cf1f7 | 5841 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
255b6be7 | 5842 | |
5843 | ||
87e20041 | 5844 | # Check whether --with-isl was given. |
5845 | if test "${with_isl+set}" = set; then : | |
5846 | withval=$with_isl; | |
cd9a469c | 5847 | fi |
255b6be7 | 5848 | |
255b6be7 | 5849 | |
429cca51 | 5850 | # Treat --without-isl as a request to disable |
83d54ac4 | 5851 | # GRAPHITE support and skip all following checks. |
429cca51 | 5852 | if test "x$with_isl" != "xno"; then |
71130ef8 | 5853 | # Check for isl |
83d54ac4 | 5854 | |
5855 | ||
87e20041 | 5856 | # Check whether --with-isl-include was given. |
5857 | if test "${with_isl_include+set}" = set; then : | |
5858 | withval=$with_isl_include; | |
cd9a469c | 5859 | fi |
5860 | ||
255b6be7 | 5861 | |
87e20041 | 5862 | # Check whether --with-isl-lib was given. |
5863 | if test "${with_isl_lib+set}" = set; then : | |
5864 | withval=$with_isl_lib; | |
cd9a469c | 5865 | fi |
255b6be7 | 5866 | |
255b6be7 | 5867 | |
87e20041 | 5868 | # Check whether --enable-isl-version-check was given. |
5869 | if test "${enable_isl_version_check+set}" = set; then : | |
5870 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5871 | else | |
5872 | ENABLE_ISL_CHECK=yes | |
062b4a94 | 5873 | fi |
5874 | ||
5875 | ||
87e20041 | 5876 | # Initialize isllibs and islinc. |
5877 | case $with_isl in | |
5878 | no) | |
5879 | isllibs= | |
5880 | islinc= | |
5881 | ;; | |
5882 | "" | yes) | |
5883 | ;; | |
5884 | *) | |
5885 | isllibs="-L$with_isl/lib" | |
5886 | islinc="-I$with_isl/include" | |
5887 | ;; | |
5888 | esac | |
5889 | if test "x${with_isl_include}" != x ; then | |
5890 | islinc="-I$with_isl_include" | |
5891 | fi | |
5892 | if test "x${with_isl_lib}" != x; then | |
5893 | isllibs="-L$with_isl_lib" | |
5894 | fi | |
5895 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5896 | && test -d ${srcdir}/isl; then | |
5897 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5898 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5899 | ENABLE_ISL_CHECK=no | |
7458b15a | 5900 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
5901 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
87e20041 | 5902 | fi |
062b4a94 | 5903 | |
429cca51 | 5904 | isllibs="${isllibs} -lisl" |
5905 | ||
062b4a94 | 5906 | |
062b4a94 | 5907 | |
078393c7 | 5908 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
5909 | _isl_saved_CFLAGS=$CFLAGS | |
5910 | _isl_saved_LDFLAGS=$LDFLAGS | |
5911 | _isl_saved_LIBS=$LIBS | |
5912 | ||
5913 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
07ae8272 | 5914 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
5915 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
078393c7 | 5916 | |
ae5394fd | 5917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5 |
5918 | $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; } | |
b6de67fd | 5919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6ac3b11e | 5920 | /* end confdefs.h. */ |
7458b15a | 5921 | #include <isl/ctx.h> |
6ac3b11e | 5922 | int |
5923 | main () | |
5924 | { | |
7458b15a | 5925 | isl_ctx_get_max_operations (isl_ctx_alloc ()); |
6ac3b11e | 5926 | ; |
5927 | return 0; | |
5928 | } | |
5929 | _ACEOF | |
5930 | if ac_fn_c_try_link "$LINENO"; then : | |
078393c7 | 5931 | gcc_cv_isl=yes |
6ac3b11e | 5932 | else |
5933 | gcc_cv_isl=no | |
5934 | fi | |
5935 | rm -f core conftest.err conftest.$ac_objext \ | |
5936 | conftest$ac_exeext conftest.$ac_ext | |
078393c7 | 5937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
5938 | $as_echo "$gcc_cv_isl" >&6; } | |
5939 | ||
7458b15a | 5940 | if test "${gcc_cv_isl}" = no ; then |
ae5394fd | 5941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5 |
5942 | $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; } | |
7458b15a | 5943 | fi |
5944 | ||
ae5394fd | 5945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5 |
5946 | $as_echo_n "checking for isl 0.16 or 0.15... " >&6; } | |
45fc5243 | 5947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5948 | /* end confdefs.h. */ | |
5949 | #include <isl/schedule.h> | |
5950 | int | |
5951 | main () | |
5952 | { | |
5953 | isl_options_set_schedule_serialize_sccs (NULL, 0); | |
5954 | ; | |
5955 | return 0; | |
5956 | } | |
5957 | _ACEOF | |
5958 | if ac_fn_c_try_link "$LINENO"; then : | |
5959 | ac_has_isl_options_set_schedule_serialize_sccs=yes | |
5960 | else | |
5961 | ac_has_isl_options_set_schedule_serialize_sccs=no | |
5962 | fi | |
5963 | rm -f core conftest.err conftest.$ac_objext \ | |
5964 | conftest$ac_exeext conftest.$ac_ext | |
5965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5 | |
5966 | $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; } | |
5967 | ||
5968 | if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then | |
5969 | islver="0.15" | |
5970 | ||
5971 | fi | |
5972 | ||
078393c7 | 5973 | CFLAGS=$_isl_saved_CFLAGS |
5974 | LDFLAGS=$_isl_saved_LDFLAGS | |
5975 | LIBS=$_isl_saved_LIBS | |
5976 | fi | |
5977 | ||
5978 | ||
255b6be7 | 5979 | |
255b6be7 | 5980 | |
87e20041 | 5981 | |
5982 | ||
87e20041 | 5983 | if test "x${with_isl}" = xno; then |
5984 | graphite_requested=no | |
5985 | elif test "x${with_isl}" != x \ | |
5986 | || test "x${with_isl_include}" != x \ | |
5987 | || test "x${with_isl_lib}" != x ; then | |
5988 | graphite_requested=yes | |
5989 | else | |
5990 | graphite_requested=no | |
062b4a94 | 5991 | fi |
5362e323 | 5992 | |
5362e323 | 5993 | |
5994 | ||
87e20041 | 5995 | if test "${gcc_cv_isl}" = no ; then |
5996 | isllibs= | |
5997 | islinc= | |
5998 | fi | |
5999 | ||
6000 | if test "${graphite_requested}" = yes \ | |
6001 | && test "x${isllibs}" = x \ | |
6002 | && test "x${islinc}" = x ; then | |
255b6be7 | 6003 | |
71130ef8 | 6004 | as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
87e20041 | 6005 | fi |
255b6be7 | 6006 | |
a3c81e03 | 6007 | |
a3c81e03 | 6008 | fi |
6009 | ||
71130ef8 | 6010 | # If the isl check failed, disable builds of in-tree variant of isl |
83d54ac4 | 6011 | if test "x$with_isl" = xno || |
83d54ac4 | 6012 | test "x$gcc_cv_isl" = xno; then |
572cf1f7 | 6013 | noconfigdirs="$noconfigdirs isl" |
83d54ac4 | 6014 | islinc= |
bacb15cb | 6015 | fi |
6016 | ||
83d54ac4 | 6017 | |
6018 | ||
6019 | ||
7bfefa9d | 6020 | # Check for LTO support. |
6021 | # Check whether --enable-lto was given. | |
6022 | if test "${enable_lto+set}" = set; then : | |
6023 | enableval=$enable_lto; enable_lto=$enableval | |
6024 | else | |
6025 | enable_lto=yes; default_enable_lto=yes | |
6026 | fi | |
6027 | ||
6028 | ||
1a4f45ec | 6029 | |
9bdbb0bc | 6030 | |
6031 | ||
6032 | target_elf=no | |
6033 | case $target in | |
6034 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
4d72c922 | 6035 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
0f7d9ee5 | 6036 | alpha*-dec-osf* | hppa[12]*-*-hpux* | \ |
0f769573 | 6037 | nvptx-*-none) |
9bdbb0bc | 6038 | target_elf=no |
6039 | ;; | |
6040 | *) | |
6041 | target_elf=yes | |
6042 | ;; | |
6043 | esac | |
6044 | ||
6045 | if test $target_elf = yes; then : | |
25630dc7 | 6046 | # ELF platforms build the lto-plugin always. |
6047 | build_lto_plugin=yes | |
9bdbb0bc | 6048 | |
9bdbb0bc | 6049 | else |
6050 | if test x"$default_enable_lto" = x"yes" ; then | |
4ae8c98f | 6051 | case $target in |
7aa50266 | 6052 | *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;; |
25630dc7 | 6053 | # On other non-ELF platforms, LTO has yet to be validated. |
4ae8c98f | 6054 | *) enable_lto=no ;; |
6055 | esac | |
9bdbb0bc | 6056 | else |
62932e4d | 6057 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6058 | # It would also be nice to check the binutils support, but we don't | |
9bdbb0bc | 6059 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6060 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6061 | # -flto it won't be needed until after installation anyway. | |
6062 | case $target in | |
7aa50266 | 6063 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
9bdbb0bc | 6064 | *) if test x"$enable_lto" = x"yes"; then |
6065 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6066 | fi | |
6067 | ;; | |
6068 | esac | |
6069 | fi | |
ca42e774 | 6070 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
25630dc7 | 6071 | # Build it unless LTO was explicitly disabled. |
ca42e774 | 6072 | case $target in |
25630dc7 | 6073 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
ca42e774 | 6074 | *) ;; |
6075 | esac | |
25630dc7 | 6076 | |
9bdbb0bc | 6077 | fi |
6078 | ||
7bfefa9d | 6079 | |
1015a063 | 6080 | # Check whether --enable-linker-plugin-configure-flags was given. |
6081 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6082 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6083 | else | |
6084 | extra_linker_plugin_configure_flags= | |
6085 | fi | |
6086 | ||
6087 | ||
6088 | # Check whether --enable-linker-plugin-flags was given. | |
6089 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6090 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6091 | else | |
6092 | extra_linker_plugin_flags= | |
6093 | fi | |
6094 | ||
6095 | ||
6096 | ||
255b6be7 | 6097 | |
2b15d2ba | 6098 | # By default, C and C++ are the only stage 1 languages. |
9c3a0a29 | 6099 | stage1_languages=,c, |
2d64c2fd | 6100 | |
7ab76cec | 6101 | # Target libraries that we bootstrap. |
5c96a839 | 6102 | bootstrap_target_libs=,target-libgcc, |
7ab76cec | 6103 | |
8e1fea1a | 6104 | # Figure out what language subdirectories are present. |
6105 | # Look if the user specified --enable-languages="..."; if not, use | |
6106 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6107 | # go away some day. | |
6108 | # NB: embedded tabs in this IF block -- do not untabify | |
6109 | if test -d ${srcdir}/gcc; then | |
6110 | if test x"${enable_languages+set}" != xset; then | |
6111 | if test x"${LANGUAGES+set}" = xset; then | |
6112 | enable_languages="${LANGUAGES}" | |
e757a6a8 | 6113 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
8e1fea1a | 6114 | else |
6115 | enable_languages=all | |
6116 | fi | |
6117 | else | |
6118 | if test x"${enable_languages}" = x || | |
6119 | test x"${enable_languages}" = xyes; | |
6120 | then | |
e757a6a8 | 6121 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
8e1fea1a | 6122 | exit 1 |
6123 | fi | |
6124 | fi | |
6125 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6126 | ||
2c718da0 | 6127 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6128 | # and make the substitution. | |
6129 | case ,${enable_languages}, in | |
6130 | *,f95,*) | |
e757a6a8 | 6131 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
2c718da0 | 6132 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6133 | ;; | |
6134 | esac | |
6135 | ||
2b15d2ba | 6136 | # If bootstrapping, C++ must be enabled. |
6137 | case ",$enable_languages,:$enable_bootstrap" in | |
6138 | *,c++,*:*) ;; | |
6139 | *:yes) | |
6c59dfa4 | 6140 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6141 | enable_languages="${enable_languages},c++" | |
6142 | else | |
2b15d2ba | 6143 | as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5 |
6c59dfa4 | 6144 | fi |
6145 | ;; | |
6146 | esac | |
6147 | ||
8e1fea1a | 6148 | # First scan to see if an enabled language requires some other language. |
6149 | # We assume that a given config-lang.in will list all the language | |
6150 | # front ends it requires, even if some are required indirectly. | |
6151 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6152 | case ${lang_frag} in | |
6153 | ..) ;; | |
6154 | # The odd quoting in the next line works around | |
6155 | # an apparent bug in bash 1.12 on linux. | |
6156 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6157 | *) | |
101ddbe4 | 6158 | # From the config-lang.in, get $language, $lang_requires, and |
6159 | # $lang_requires_boot_languages. | |
8e1fea1a | 6160 | language= |
6161 | lang_requires= | |
101ddbe4 | 6162 | lang_requires_boot_languages= |
8e1fea1a | 6163 | . ${lang_frag} |
101ddbe4 | 6164 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
8e1fea1a | 6165 | case ,${enable_languages}, in |
6166 | *,$other,*) ;; | |
6167 | *,all,*) ;; | |
6168 | *,$language,*) | |
6169 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6170 | enable_languages="${enable_languages},${other}" | |
6171 | ;; | |
6172 | esac | |
6173 | done | |
101ddbe4 | 6174 | for other in ${lang_requires_boot_languages} ; do |
6175 | if test "$other" != "c"; then | |
6176 | case ,${enable_stage1_languages}, in | |
6177 | *,$other,*) ;; | |
6178 | *,all,*) ;; | |
6179 | *) | |
6180 | case ,${enable_languages}, in | |
6181 | *,$language,*) | |
6182 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6183 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6184 | ;; | |
6185 | esac | |
6186 | ;; | |
6187 | esac | |
6188 | fi | |
6189 | done | |
8e1fea1a | 6190 | ;; |
6191 | esac | |
6192 | done | |
6193 | ||
9c3a0a29 | 6194 | new_enable_languages=,c, |
7bfefa9d | 6195 | |
6196 | # If LTO is enabled, add the LTO front end. | |
7bfefa9d | 6197 | if test "$enable_lto" = "yes" ; then |
d6ef094a | 6198 | case ,${enable_languages}, in |
6199 | *,lto,*) ;; | |
6200 | *) enable_languages="${enable_languages},lto" ;; | |
6201 | esac | |
ca42e774 | 6202 | if test "${build_lto_plugin}" = "yes" ; then |
7bfefa9d | 6203 | configdirs="$configdirs lto-plugin" |
7bfefa9d | 6204 | fi |
6205 | fi | |
6206 | ||
dd87c525 | 6207 | # If we're building an offloading compiler, add the LTO front end. |
6208 | if test x"$enable_as_accelerator_for" != x ; then | |
6209 | case ,${enable_languages}, in | |
6210 | *,lto,*) ;; | |
6211 | *) enable_languages="${enable_languages},lto" ;; | |
6212 | esac | |
6213 | fi | |
6214 | ||
8e1fea1a | 6215 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
9c3a0a29 | 6216 | potential_languages=,c, |
8e1fea1a | 6217 | |
604a285a | 6218 | enabled_target_libs= |
6219 | disabled_target_libs= | |
6220 | ||
8e1fea1a | 6221 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6222 | case ${lang_frag} in | |
6223 | ..) ;; | |
6224 | # The odd quoting in the next line works around | |
6225 | # an apparent bug in bash 1.12 on linux. | |
6226 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6227 | *) | |
b30fcfae | 6228 | # From the config-lang.in, get $language, $target_libs, |
2d64c2fd | 6229 | # $lang_dirs, $boot_language, and $build_by_default |
8e1fea1a | 6230 | language= |
6231 | target_libs= | |
6232 | lang_dirs= | |
5dee13c2 | 6233 | subdir_requires= |
9c3a0a29 | 6234 | boot_language=no |
6235 | build_by_default=yes | |
8e1fea1a | 6236 | . ${lang_frag} |
9c3a0a29 | 6237 | if test x${language} = x; then |
6238 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6239 | exit 1 | |
6240 | fi | |
6241 | ||
ef3c41c7 | 6242 | if test "$language" = "c++"; then |
2b15d2ba | 6243 | boot_language=yes |
7ab76cec | 6244 | fi |
6245 | ||
a2ecd49c | 6246 | add_this_lang=no |
9c3a0a29 | 6247 | case ,${enable_languages}, in |
6248 | *,${language},*) | |
e53d55e7 | 6249 | # Language was explicitly selected; include it |
6250 | # unless it is C, which is enabled by default. | |
6251 | if test "$language" != "c"; then | |
6252 | add_this_lang=yes | |
6253 | fi | |
8e1fea1a | 6254 | ;; |
9c3a0a29 | 6255 | *,all,*) |
6256 | # 'all' was selected, select it if it is a default language | |
a2ecd49c | 6257 | if test "$language" != "c"; then |
6258 | add_this_lang=${build_by_default} | |
6259 | fi | |
8e1fea1a | 6260 | ;; |
6261 | esac | |
4ee9c684 | 6262 | |
5dee13c2 | 6263 | # Disable languages that need other directories if these aren't available. |
9333ae0b | 6264 | for i in $subdir_requires; do |
3891e7d9 | 6265 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
5dee13c2 | 6266 | case ,${enable_languages}, in |
6267 | *,${language},*) | |
6268 | # Specifically requested language; tell them. | |
cd9a469c | 6269 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
5dee13c2 | 6270 | ;; |
6271 | *) | |
6272 | # Silently disable. | |
9c3a0a29 | 6273 | add_this_lang=unsupported |
5dee13c2 | 6274 | ;; |
6275 | esac | |
6276 | done | |
6277 | ||
9c3a0a29 | 6278 | # Disable Ada if no preexisting GNAT is available. |
6279 | case ,${enable_languages},:${language}:${have_gnat} in | |
6280 | *,${language},*:ada:no) | |
6281 | # Specifically requested language; tell them. | |
cd9a469c | 6282 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
9c3a0a29 | 6283 | ;; |
6284 | *:ada:no) | |
6285 | # Silently disable. | |
6286 | add_this_lang=unsupported | |
6287 | ;; | |
6288 | esac | |
6289 | ||
ff7dcf6a | 6290 | # Disable a language that is unsupported by the target. |
6291 | case " $unsupported_languages " in | |
6292 | *" $language "*) | |
9c3a0a29 | 6293 | add_this_lang=unsupported |
ff7dcf6a | 6294 | ;; |
6295 | esac | |
6296 | ||
4ee9c684 | 6297 | case $add_this_lang in |
9c3a0a29 | 6298 | unsupported) |
8e1fea1a | 6299 | # Remove language-dependent dirs. |
604a285a | 6300 | disabled_target_libs="$disabled_target_libs $target_libs" |
6301 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2d64c2fd | 6302 | ;; |
9c3a0a29 | 6303 | no) |
6304 | # Remove language-dependent dirs; still show language as supported. | |
604a285a | 6305 | disabled_target_libs="$disabled_target_libs $target_libs" |
6306 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9c3a0a29 | 6307 | potential_languages="${potential_languages}${language}," |
6308 | ;; | |
6309 | yes) | |
6310 | new_enable_languages="${new_enable_languages}${language}," | |
6311 | potential_languages="${potential_languages}${language}," | |
2d64c2fd | 6312 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
604a285a | 6313 | enabled_target_libs="$enabled_target_libs $target_libs" |
32027446 | 6314 | case "${boot_language}:,$enable_stage1_languages," in |
6315 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
aff6cf7b | 6316 | # Add to (comma-separated) list of stage 1 languages. |
32027446 | 6317 | case ",$stage1_languages," in |
6318 | *,$language,* | ,yes, | ,all,) ;; | |
6319 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6320 | esac | |
7ab76cec | 6321 | # We need to bootstrap any supporting libraries. |
6322 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
2d64c2fd | 6323 | ;; |
6324 | esac | |
6325 | ;; | |
8e1fea1a | 6326 | esac |
6327 | ;; | |
6328 | esac | |
6329 | done | |
6330 | ||
604a285a | 6331 | # Add target libraries which are only needed for disabled languages |
6332 | # to noconfigdirs. | |
6333 | if test -n "$disabled_target_libs"; then | |
6334 | for dir in $disabled_target_libs; do | |
6335 | case " $enabled_target_libs " in | |
6336 | *" ${dir} "*) ;; | |
6337 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6338 | esac | |
6339 | done | |
6340 | fi | |
6341 | ||
cd9a469c | 6342 | # Check whether --enable-stage1-languages was given. |
6343 | if test "${enable_stage1_languages+set}" = set; then : | |
6344 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9c3a0a29 | 6345 | ,no,|,,) |
6346 | # Set it to something that will have no effect in the loop below | |
6347 | enable_stage1_languages=c ;; | |
6348 | ,yes,) | |
6349 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6350 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6351 | *,all,*) | |
6352 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6353 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6354 | esac | |
6355 | ||
6356 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6357 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6358 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6359 | case $potential_languages in | |
6360 | *,$i,*) | |
6361 | case $stage1_languages in | |
6362 | *,$i,*) ;; | |
6363 | *) stage1_languages="$stage1_languages$i," ;; | |
6364 | esac ;; | |
6365 | *) | |
6366 | case $missing_languages in | |
6367 | *,$i,*) ;; | |
6368 | *) missing_languages="$missing_languages$i," ;; | |
6369 | esac ;; | |
6370 | esac | |
6371 | done | |
cd9a469c | 6372 | fi |
6373 | ||
9c3a0a29 | 6374 | |
6375 | # Remove leading/trailing commas that were added for simplicity | |
6376 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
989edd2f | 6377 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9c3a0a29 | 6378 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6379 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6380 | ||
8e1fea1a | 6381 | if test "x$missing_languages" != x; then |
cd9a469c | 6382 | as_fn_error " |
e8bfe1fa | 6383 | The following requested languages could not be built: ${missing_languages} |
cd9a469c | 6384 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
8e1fea1a | 6385 | fi |
8e1fea1a | 6386 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6387 | echo The following languages will be built: ${new_enable_languages} | |
9c3a0a29 | 6388 | enable_languages="$new_enable_languages" |
8e1fea1a | 6389 | fi |
9c3a0a29 | 6390 | |
b30fcfae | 6391 | |
b0e9b581 | 6392 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
8e1fea1a | 6393 | fi |
6394 | ||
50996fe5 | 6395 | # Handle --disable-<component> generically. |
6396 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6397 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
d2d2630b | 6398 | varname=`echo $dirname | sed -e s/+/_/g` |
6399 | if eval test x\${enable_${varname}} "=" xno ; then | |
50996fe5 | 6400 | noconfigdirs="$noconfigdirs $dir" |
6401 | fi | |
6402 | done | |
6403 | ||
03869f98 | 6404 | # Check for Boehm's garbage collector |
6405 | # Check whether --enable-objc-gc was given. | |
6406 | if test "${enable_objc_gc+set}" = set; then : | |
baf71228 | 6407 | enableval=$enable_objc_gc; |
6408 | fi | |
6409 | ||
6410 | ||
6411 | # Check whether --with-target-bdw-gc was given. | |
6412 | if test "${with_target_bdw_gc+set}" = set; then : | |
6413 | withval=$with_target_bdw_gc; | |
6414 | fi | |
6415 | ||
6416 | ||
6417 | # Check whether --with-target-bdw-gc-include was given. | |
6418 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
6419 | withval=$with_target_bdw_gc_include; | |
6420 | fi | |
6421 | ||
6422 | ||
6423 | # Check whether --with-target-bdw-gc-lib was given. | |
6424 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
6425 | withval=$with_target_bdw_gc_lib; | |
6426 | fi | |
6427 | ||
6428 | ||
6429 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
6431 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
6432 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
74dfdbe3 | 6433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 |
6434 | $as_echo "using bdw-gc in default locations" >&6; } | |
baf71228 | 6435 | else |
6436 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
6437 | as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 | |
6438 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then | |
6439 | as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 | |
6440 | else | |
6441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
6442 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
6443 | fi | |
6444 | fi | |
03869f98 | 6445 | esac |
6446 | ||
d3a7dd32 | 6447 | # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
b33ca042 | 6448 | case ,${enable_languages}, in |
df148e44 | 6449 | *,c++,*) |
6450 | # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++ | |
6451 | case "${noconfigdirs}" in | |
6452 | *target-libstdc++-v3*) | |
6453 | noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer" | |
6454 | ;; | |
6455 | *) ;; | |
6456 | esac | |
6457 | ;; | |
b33ca042 | 6458 | *) |
d3a7dd32 | 6459 | noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
b33ca042 | 6460 | ;; |
6461 | esac | |
6462 | ||
e8eddfdd | 6463 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6464 | # $build_configdirs and $target_configdirs. | |
8e1fea1a | 6465 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6466 | ||
6467 | notsupp="" | |
6468 | for dir in . $skipdirs $noconfigdirs ; do | |
e8eddfdd | 6469 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
8e1fea1a | 6470 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6471 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6472 | if test -r $srcdir/$dirname/configure ; then | |
6473 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6474 | true | |
6475 | else | |
6476 | notsupp="$notsupp $dir" | |
6477 | fi | |
6478 | fi | |
6479 | fi | |
e8eddfdd | 6480 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6481 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6482 | if test -r $srcdir/$dirname/configure ; then | |
6483 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6484 | true | |
6485 | else | |
6486 | notsupp="$notsupp $dir" | |
6487 | fi | |
6488 | fi | |
6489 | fi | |
8e1fea1a | 6490 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6491 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6492 | if test -r $srcdir/$dirname/configure ; then | |
6493 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6494 | true | |
6495 | else | |
6496 | notsupp="$notsupp $dir" | |
6497 | fi | |
6498 | fi | |
6499 | fi | |
6500 | done | |
6501 | ||
8e1fea1a | 6502 | # Quietly strip out all directories which aren't configurable in this tree. |
6503 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6504 | # is now the case. | |
2f8725b0 | 6505 | build_configdirs_all="$build_configdirs" |
6506 | build_configdirs= | |
6507 | for i in ${build_configdirs_all} ; do | |
b30fcfae | 6508 | j=`echo $i | sed -e s/build-//g` |
2f8725b0 | 6509 | if test -f ${srcdir}/$j/configure ; then |
6510 | build_configdirs="${build_configdirs} $i" | |
6511 | fi | |
6512 | done | |
6513 | ||
8e1fea1a | 6514 | configdirs_all="$configdirs" |
6515 | configdirs= | |
6516 | for i in ${configdirs_all} ; do | |
6517 | if test -f ${srcdir}/$i/configure ; then | |
6518 | configdirs="${configdirs} $i" | |
6519 | fi | |
6520 | done | |
2f8725b0 | 6521 | |
8e1fea1a | 6522 | target_configdirs_all="$target_configdirs" |
6523 | target_configdirs= | |
6524 | for i in ${target_configdirs_all} ; do | |
b30fcfae | 6525 | j=`echo $i | sed -e s/target-//g` |
8e1fea1a | 6526 | if test -f ${srcdir}/$j/configure ; then |
6527 | target_configdirs="${target_configdirs} $i" | |
6528 | fi | |
6529 | done | |
6530 | ||
1015a063 | 6531 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6532 | # so we have to add it after the preceding checks. | |
6533 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6534 | then | |
6535 | case " $configdirs " in | |
6536 | *" libiberty "*) | |
6537 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6538 | configdirs="$configdirs libiberty-linker-plugin" | |
6539 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6540 | --with-libiberty=../libiberty-linker-plugin";; | |
6541 | *) | |
6542 | as_fn_error "libiberty missing" "$LINENO" 5;; | |
6543 | esac | |
6544 | fi | |
6545 | ||
944792ef | 6546 | # Sometimes we have special requirements for the host libiberty. |
6547 | extra_host_libiberty_configure_flags= | |
c850ece7 | 6548 | extra_host_zlib_configure_flags= |
944792ef | 6549 | case " $configdirs " in |
6550 | *" lto-plugin "* | *" libcc1 "*) | |
6551 | # When these are to be built as shared libraries, the same applies to | |
6552 | # libiberty. | |
6553 | extra_host_libiberty_configure_flags=--enable-shared | |
6554 | ;; | |
c850ece7 | 6555 | *" bfd "*) |
6556 | # When bfd is to be built as a shared library, the same applies to | |
6557 | # zlib. | |
6558 | if test "$enable_shared" = "yes"; then | |
6559 | extra_host_zlib_configure_flags=--enable-host-shared | |
6560 | fi | |
6561 | ;; | |
944792ef | 6562 | esac |
6563 | ||
6564 | ||
c850ece7 | 6565 | |
8e1fea1a | 6566 | # Produce a warning message for the subdirs we can't configure. |
6567 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6568 | # FSF releases, it's important to let people know when their machine isn't | |
6569 | # supported by the one or two programs in a package. | |
6570 | ||
6571 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6572 | # If $appdirs is non-empty, at least one of those directories must still | |
6573 | # be configured, or we error out. (E.g., if the gas release supports a | |
6574 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6575 | # pretend that all is well.) | |
6576 | if test -n "$appdirs" ; then | |
6577 | for dir in $appdirs ; do | |
6578 | if test -r $dir/Makefile.in ; then | |
6579 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6580 | appdirs="" | |
6581 | break | |
6582 | fi | |
2f8725b0 | 6583 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
8e1fea1a | 6584 | appdirs="" |
6585 | break | |
6586 | fi | |
6587 | fi | |
6588 | done | |
6589 | if test -n "$appdirs" ; then | |
6590 | echo "*** This configuration is not supported by this package." 1>&2 | |
6591 | exit 1 | |
6592 | fi | |
6593 | fi | |
6594 | # Okay, some application will build, or we don't care to check. Still | |
6595 | # notify of subdirs not getting built. | |
6596 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6597 | echo " ${notsupp}" 1>&2 | |
6598 | echo " (Any other directories should still work fine.)" 1>&2 | |
6599 | fi | |
6600 | ||
6601 | case "$host" in | |
6602 | *msdosdjgpp*) | |
6603 | enable_gdbtk=no ;; | |
6604 | esac | |
6605 | ||
eae5b2bc | 6606 | # To find our prefix, in gcc_cv_tool_prefix. |
6607 | ||
6608 | # The user is always right. | |
6609 | if test "${PATH_SEPARATOR+set}" != set; then | |
6610 | echo "#! /bin/sh" >conf$$.sh | |
6611 | echo "exit 0" >>conf$$.sh | |
6612 | chmod +x conf$$.sh | |
6613 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6614 | PATH_SEPARATOR=';' | |
6615 | else | |
6616 | PATH_SEPARATOR=: | |
6617 | fi | |
6618 | rm -f conf$$.sh | |
6619 | fi | |
6620 | ||
6621 | ||
6622 | ||
6623 | if test "x$exec_prefix" = xNONE; then | |
6624 | if test "x$prefix" = xNONE; then | |
6625 | gcc_cv_tool_prefix=$ac_default_prefix | |
6626 | else | |
6627 | gcc_cv_tool_prefix=$prefix | |
6628 | fi | |
6629 | else | |
6630 | gcc_cv_tool_prefix=$exec_prefix | |
6631 | fi | |
6632 | ||
6633 | # If there is no compiler in the tree, use the PATH only. In any | |
6634 | # case, if there is no compiler in the tree nobody should use | |
6635 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6636 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6637 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6638 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6639 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6640 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6641 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6642 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6643 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6644 | else | |
6645 | gcc_cv_tool_dirs= | |
6646 | fi | |
6647 | ||
6648 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6649 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6650 | fi | |
6651 | ||
6652 | ||
6653 | ||
8e1fea1a | 6654 | copy_dirs= |
6655 | ||
b30fcfae | 6656 | |
cd9a469c | 6657 | # Check whether --with-build-sysroot was given. |
6658 | if test "${with_build_sysroot+set}" = set; then : | |
6659 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
ffa8502d | 6660 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6661 | fi | |
6662 | else | |
6663 | SYSROOT_CFLAGS_FOR_TARGET= | |
cd9a469c | 6664 | fi |
ffa8502d | 6665 | |
6666 | ||
5f1f2de5 | 6667 | |
cd9a469c | 6668 | |
6669 | # Check whether --with-debug-prefix-map was given. | |
6670 | if test "${with_debug_prefix_map+set}" = set; then : | |
6671 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
5f1f2de5 | 6672 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6673 | for debug_map in $withval; do | |
6674 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6675 | done | |
6676 | fi | |
6677 | else | |
6678 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
cd9a469c | 6679 | fi |
6680 | ||
5f1f2de5 | 6681 | |
6682 | ||
c898f165 | 6683 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6684 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6685 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6686 | # We want to ensure that TARGET libraries (which we know are built with | |
6687 | # gcc) are built with "-O2 -g", so include those options when setting | |
6688 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6689 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
f5fad380 | 6690 | if test "x${is_cross_compiler}" = xyes; then |
6691 | CFLAGS_FOR_TARGET="-g -O2" | |
6692 | else | |
6693 | CFLAGS_FOR_TARGET=$CFLAGS | |
6694 | case " $CFLAGS " in | |
6695 | *" -O2 "*) ;; | |
6696 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6697 | esac | |
6698 | case " $CFLAGS " in | |
6699 | *" -g "* | *" -g3 "*) ;; | |
6700 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6701 | esac | |
6702 | fi | |
c898f165 | 6703 | fi |
6704 | ||
6705 | ||
6706 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
f5fad380 | 6707 | if test "x${is_cross_compiler}" = xyes; then |
6708 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6709 | else | |
6710 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6711 | case " $CXXFLAGS " in | |
6712 | *" -O2 "*) ;; | |
6713 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6714 | esac | |
6715 | case " $CXXFLAGS " in | |
6716 | *" -g "* | *" -g3 "*) ;; | |
6717 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6718 | esac | |
6719 | fi | |
c898f165 | 6720 | fi |
6721 | ||
6722 | ||
ed9516f5 | 6723 | |
6724 | ||
8e1fea1a | 6725 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6726 | # the named directory are copied to $(tooldir)/sys-include. | |
6727 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6728 | if test x${is_cross_compiler} = xno ; then | |
6729 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6730 | exit 1 | |
6731 | fi | |
6732 | if test x"${with_headers}" != xyes ; then | |
eae5b2bc | 6733 | x=${gcc_cv_tool_prefix} |
b30fcfae | 6734 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
8e1fea1a | 6735 | fi |
6736 | fi | |
6737 | ||
6738 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6739 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6740 | # are permitted. | |
6741 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6742 | if test x${is_cross_compiler} = xno ; then | |
6743 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6744 | exit 1 | |
6745 | fi | |
6746 | if test x"${with_libs}" != xyes ; then | |
6747 | # Copy the libraries in reverse order, so that files in the first named | |
6748 | # library override files in subsequent libraries. | |
eae5b2bc | 6749 | x=${gcc_cv_tool_prefix} |
8e1fea1a | 6750 | for l in ${with_libs}; do |
b30fcfae | 6751 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
8e1fea1a | 6752 | done |
6753 | fi | |
6754 | fi | |
6755 | ||
7bfefa9d | 6756 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
c47832b1 | 6757 | # |
6758 | # This is done by determining whether or not the appropriate directory | |
6759 | # is available, and by checking whether or not specific configurations | |
6760 | # have requested that this magic not happen. | |
b30fcfae | 6761 | # |
6762 | # The command line options always override the explicit settings in | |
e757a6a8 | 6763 | # configure.ac, and the settings in configure.ac override this magic. |
c47832b1 | 6764 | # |
b30fcfae | 6765 | # If the default for a toolchain is to use GNU as and ld, and you don't |
c47832b1 | 6766 | # want to do that, then you should use the --without-gnu-as and |
7bfefa9d | 6767 | # --without-gnu-ld options for the configure script. Similarly, if |
6768 | # the default is to use the included zlib and you don't want to do that, | |
6769 | # you should use the --with-system-zlib option for the configure script. | |
c47832b1 | 6770 | |
6771 | if test x${use_gnu_as} = x && | |
6772 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6773 | with_gnu_as=yes | |
6774 | extra_host_args="$extra_host_args --with-gnu-as" | |
6775 | fi | |
6776 | ||
6777 | if test x${use_gnu_ld} = x && | |
3d47fcf5 | 6778 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
c47832b1 | 6779 | with_gnu_ld=yes |
6780 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6781 | fi | |
6782 | ||
7bfefa9d | 6783 | if test x${use_included_zlib} = x && |
6784 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6785 | : | |
6786 | else | |
6787 | with_system_zlib=yes | |
6788 | extra_host_args="$extra_host_args --with-system-zlib" | |
6789 | fi | |
6790 | ||
c47832b1 | 6791 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6792 | # can detect this case. | |
6793 | ||
6794 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6795 | with_newlib=yes | |
6796 | extra_host_args="$extra_host_args --with-newlib" | |
6797 | fi | |
6798 | ||
8e1fea1a | 6799 | # Handle ${copy_dirs} |
6800 | set fnord ${copy_dirs} | |
6801 | shift | |
6802 | while test $# != 0 ; do | |
6803 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6804 | : | |
6805 | else | |
6806 | echo Copying $1 to $2 | |
6807 | ||
6808 | # Use the install script to create the directory and all required | |
6809 | # parent directories. | |
6810 | if test -d $2 ; then | |
6811 | : | |
6812 | else | |
6813 | echo >config.temp | |
6814 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6815 | fi | |
6816 | ||
6817 | # Copy the directory, assuming we have tar. | |
6818 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6819 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6820 | ||
6821 | # It is the responsibility of the user to correctly adjust all | |
6822 | # symlinks. If somebody can figure out how to handle them correctly | |
6823 | # here, feel free to add the code. | |
6824 | ||
6825 | echo $1 > $2/COPIED | |
6826 | fi | |
6827 | shift; shift | |
6828 | done | |
6829 | ||
c47832b1 | 6830 | # Determine a target-dependent exec_prefix that the installed |
6831 | # gcc will search in. Keep this list sorted by triplet, with | |
6832 | # the *-*-osname triplets last. | |
6833 | md_exec_prefix= | |
6834 | case "${target}" in | |
09c2d953 | 6835 | i[34567]86-pc-msdosdjgpp*) |
c47832b1 | 6836 | md_exec_prefix=/dev/env/DJDIR/bin |
6837 | ;; | |
c47832b1 | 6838 | *-*-hpux* | \ |
c47832b1 | 6839 | *-*-nto-qnx* | \ |
93faf308 | 6840 | *-*-solaris2*) |
c47832b1 | 6841 | md_exec_prefix=/usr/ccs/bin |
6842 | ;; | |
6843 | esac | |
6844 | ||
71ab34df | 6845 | extra_arflags_for_target= |
6846 | extra_nmflags_for_target= | |
6847 | extra_ranlibflags_for_target= | |
6848 | target_makefile_frag=/dev/null | |
6849 | case "${target}" in | |
57c7de11 | 6850 | spu-*-*) |
6851 | target_makefile_frag="config/mt-spu" | |
6852 | ;; | |
d781ea5c | 6853 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
f8520ad7 | 6854 | target_makefile_frag="config/mt-sde" |
6855 | ;; | |
3013c2c7 | 6856 | mipsisa*-*-elfoabi*) |
6857 | target_makefile_frag="config/mt-mips-elfoabi" | |
6858 | ;; | |
559b0712 | 6859 | mips*-*-*linux* | mips*-*-gnu*) |
6860 | target_makefile_frag="config/mt-mips-gnu" | |
6861 | ;; | |
2481a2c1 | 6862 | nios2-*-elf*) |
6863 | target_makefile_frag="config/mt-nios2-elf" | |
6864 | ;; | |
3bef4012 | 6865 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
cb8a7007 | 6866 | target_makefile_frag="config/mt-gnu" |
71ab34df | 6867 | ;; |
6868 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
b30fcfae | 6869 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
71ab34df | 6870 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6871 | # harmless if we're using GNU nm or ar. | |
6872 | extra_arflags_for_target=" -X32_64" | |
6873 | extra_nmflags_for_target=" -B -X32_64" | |
6874 | ;; | |
71ab34df | 6875 | esac |
6876 | ||
6877 | alphaieee_frag=/dev/null | |
6878 | case $target in | |
6879 | alpha*-*-*) | |
6880 | # This just makes sure to use the -mieee option to build target libs. | |
6881 | # This should probably be set individually by each library. | |
6882 | alphaieee_frag="config/mt-alphaieee" | |
6883 | ;; | |
6884 | esac | |
6885 | ||
6886 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6887 | # the target libraries, similarly if it is not specified, use -Os | |
6888 | # on selected platforms. | |
6889 | ospace_frag=/dev/null | |
6890 | case "${enable_target_optspace}:${target}" in | |
6891 | yes:*) | |
6892 | ospace_frag="config/mt-ospace" | |
6893 | ;; | |
6894 | :d30v-*) | |
6895 | ospace_frag="config/mt-d30v" | |
6896 | ;; | |
1c26a2ee | 6897 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
71ab34df | 6898 | ospace_frag="config/mt-ospace" |
6899 | ;; | |
6900 | no:* | :*) | |
6901 | ;; | |
6902 | *) | |
6903 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6904 | ;; | |
6905 | esac | |
6906 | ||
71ab34df | 6907 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6908 | # using) don't handle "\$" correctly, so don't use it here. | |
b30fcfae | 6909 | tooldir='${exec_prefix}'/${target_noncanonical} |
71ab34df | 6910 | build_tooldir=${tooldir} |
6911 | ||
71ab34df | 6912 | # Create a .gdbinit file which runs the one in srcdir |
6913 | # and tells GDB to look there for source files. | |
6914 | ||
6915 | if test -r ${srcdir}/.gdbinit ; then | |
6916 | case ${srcdir} in | |
6917 | .) ;; | |
6918 | *) cat > ./.gdbinit <<EOF | |
6919 | # ${NO_EDIT} | |
6920 | dir ${srcdir} | |
6921 | dir . | |
6922 | source ${srcdir}/.gdbinit | |
6923 | EOF | |
6924 | ;; | |
6925 | esac | |
6926 | fi | |
6927 | ||
71ab34df | 6928 | # Make sure that the compiler is able to generate an executable. If it |
6929 | # can't, we are probably in trouble. We don't care whether we can run the | |
6930 | # executable--we might be using a cross compiler--we only care whether it | |
6931 | # can be created. At this point the main configure script has set CC. | |
6932 | we_are_ok=no | |
6933 | echo "int main () { return 0; }" > conftest.c | |
6934 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
6935 | if test $? = 0 ; then | |
6936 | if test -s conftest || test -s conftest.exe ; then | |
6937 | we_are_ok=yes | |
6938 | fi | |
b30fcfae | 6939 | fi |
71ab34df | 6940 | case $we_are_ok in |
6941 | no) | |
6942 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
6943 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
6944 | rm -f conftest* | |
6945 | exit 1 | |
6946 | ;; | |
6947 | esac | |
6948 | rm -f conftest* | |
6949 | ||
7d804f04 | 6950 | # Decide which environment variable is used to find dynamic libraries. |
71ab34df | 6951 | case "${host}" in |
6952 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
b2240ff6 | 6953 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
7d804f04 | 6954 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
71ab34df | 6955 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
6956 | esac | |
6957 | ||
7d804f04 | 6958 | # On systems where the dynamic library environment variable is PATH, |
6959 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
6960 | # built executables to PATH. | |
6961 | if test "$RPATH_ENVVAR" = PATH; then | |
6962 | GCC_SHLIB_SUBDIR=/shlib | |
6963 | else | |
6964 | GCC_SHLIB_SUBDIR= | |
6965 | fi | |
6966 | ||
ee055341 | 6967 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
6968 | case $enable_bootstrap in | |
6969 | yes) | |
6970 | bootstrap_suffix=bootstrap | |
6971 | BUILD_CONFIG=bootstrap-debug | |
6972 | ;; | |
6973 | no) | |
6974 | bootstrap_suffix=no-bootstrap | |
6975 | BUILD_CONFIG= | |
6976 | ;; | |
6977 | esac | |
6978 | ||
6979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
6980 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
6981 | ||
6982 | ||
6983 | # Check whether --with-build-config was given. | |
6984 | if test "${with_build_config+set}" = set; then : | |
6985 | withval=$with_build_config; case $with_build_config in | |
6986 | yes) with_build_config= ;; | |
6987 | no) with_build_config= BUILD_CONFIG= ;; | |
6988 | esac | |
6989 | fi | |
6990 | ||
6991 | ||
6992 | if test "x${with_build_config}" != x; then | |
6993 | BUILD_CONFIG=$with_build_config | |
6994 | else | |
6995 | case $BUILD_CONFIG in | |
6996 | bootstrap-debug) | |
6997 | if echo "int f (void) { return 0; }" > conftest.c && | |
6998 | ${CC} -c conftest.c && | |
6999 | mv conftest.o conftest.o.g0 && | |
7000 | ${CC} -c -g conftest.c && | |
7001 | mv conftest.o conftest.o.g && | |
7002 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7003 | : | |
7004 | else | |
7005 | BUILD_CONFIG= | |
7006 | fi | |
7007 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7008 | ;; | |
7009 | esac | |
7010 | fi | |
7011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7012 | $as_echo "$BUILD_CONFIG" >&6; } | |
7013 | ||
7014 | ||
7015 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7017 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7018 | # Check whether --enable-vtable-verify was given. | |
7019 | if test "${enable_vtable_verify+set}" = set; then : | |
7020 | enableval=$enable_vtable_verify; case "$enableval" in | |
7021 | yes) enable_vtable_verify=yes ;; | |
7022 | no) enable_vtable_verify=no ;; | |
7023 | *) enable_vtable_verify=no;; | |
7024 | esac | |
7025 | else | |
7026 | enable_vtable_verify=no | |
7027 | fi | |
7028 | ||
7029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7030 | $as_echo "$enable_vtable_verify" >&6; } | |
7031 | ||
71ab34df | 7032 | # Record target_configdirs and the configure arguments for target and |
7033 | # build configuration in Makefile. | |
7034 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
2f8725b0 | 7035 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
f4ae1a00 | 7036 | bootstrap_fixincludes=no |
71ab34df | 7037 | |
5c96a839 | 7038 | # If we are building libgomp, bootstrap it. |
7039 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7040 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7041 | fi | |
7042 | ||
ee055341 | 7043 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7044 | # or bootstrap-ubsan, bootstrap it. | |
7045 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7046 | case "$BUILD_CONFIG" in | |
7047 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7048 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
f4ae1a00 | 7049 | bootstrap_fixincludes=yes |
ee055341 | 7050 | ;; |
7051 | esac | |
579abfee | 7052 | fi |
7053 | ||
ee055341 | 7054 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7055 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7056 | test "$enable_vtable_verify" != no; then | |
b710ec85 | 7057 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7058 | fi | |
7059 | ||
202baac8 | 7060 | # If we are building libmpx, bootstrap it. |
7061 | if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then | |
7062 | bootstrap_target_libs=${bootstrap_target_libs}target-libmpx, | |
7063 | fi | |
7064 | ||
71ab34df | 7065 | # Determine whether gdb needs tk/tcl or not. |
7066 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7067 | # and in that case we want gdb to be built without tk. Ugh! | |
7068 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7069 | # so we should be able to put the 'maybe's in unconditionally and | |
7070 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7071 | # 100% sure that that's safe though. | |
8fdaf281 | 7072 | |
f843f075 | 7073 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
71ab34df | 7074 | case "$enable_gdbtk" in |
7075 | no) | |
7076 | GDB_TK="" ;; | |
8fdaf281 | 7077 | yes) |
7078 | GDB_TK="${gdb_tk}" ;; | |
71ab34df | 7079 | *) |
8fdaf281 | 7080 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7081 | # distro. Eventually someone will fix this and move Insight, nee | |
7082 | # gdbtk to a separate directory. | |
7083 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7084 | GDB_TK="${gdb_tk}" | |
7085 | else | |
7086 | GDB_TK="" | |
7087 | fi | |
7088 | ;; | |
71ab34df | 7089 | esac |
415470be | 7090 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7091 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
71ab34df | 7092 | |
01b41571 | 7093 | # Strip out unwanted targets. |
6f4f34a7 | 7094 | |
7095 | # While at that, we remove Makefiles if we were started for recursive | |
7096 | # configuration, so that the top-level Makefile reconfigures them, | |
7097 | # like we used to do when configure itself was recursive. | |
6f4f34a7 | 7098 | |
8bb79148 | 7099 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7100 | # but now we're fixing up the Makefile ourselves with the additional | |
7101 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7102 | # extrasub-{build,host,target} not because there is any reason to split | |
7103 | # the substitutions up that way, but only to remain below the limit of | |
7104 | # 99 commands in a script, for HP-UX sed. | |
7105 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
6f4f34a7 | 7106 | |
7b5fee3e | 7107 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7108 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7109 | yes:yes:*\ gold\ *:*) | |
7110 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
7111 | ;; | |
7112 | esac | |
7113 | ||
8bb79148 | 7114 | extrasub_build= |
2f8725b0 | 7115 | for module in ${build_configdirs} ; do |
93f93279 | 7116 | if test -z "${no_recursion}" \ |
7117 | && test -f ${build_subdir}/${module}/Makefile; then | |
7118 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7119 | rm -f ${build_subdir}/${module}/Makefile | |
7120 | fi | |
8bb79148 | 7121 | extrasub_build="$extrasub_build |
93f93279 | 7122 | /^@if build-$module\$/d |
7123 | /^@endif build-$module\$/d | |
7124 | /^@if build-$module-$bootstrap_suffix\$/d | |
7125 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7126 | done | |
8bb79148 | 7127 | extrasub_host= |
93f93279 | 7128 | for module in ${configdirs} ; do |
9c19a746 | 7129 | if test -z "${no_recursion}"; then |
35d84d10 | 7130 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
9c19a746 | 7131 | if test -f ${file}; then |
7132 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7133 | rm -f ${file} | |
7134 | fi | |
7135 | done | |
93f93279 | 7136 | fi |
f4ae1a00 | 7137 | case ${module},${bootstrap_fixincludes} in |
7138 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7139 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7140 | esac | |
8bb79148 | 7141 | extrasub_host="$extrasub_host |
93f93279 | 7142 | /^@if $module\$/d |
7143 | /^@endif $module\$/d | |
f4ae1a00 | 7144 | /^@if $module-$host_bootstrap_suffix\$/d |
7145 | /^@endif $module-$host_bootstrap_suffix\$/d" | |
93f93279 | 7146 | done |
8bb79148 | 7147 | extrasub_target= |
93f93279 | 7148 | for module in ${target_configdirs} ; do |
7149 | if test -z "${no_recursion}" \ | |
7150 | && test -f ${target_subdir}/${module}/Makefile; then | |
7151 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7152 | rm -f ${target_subdir}/${module}/Makefile | |
7153 | fi | |
7ab76cec | 7154 | |
7155 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7156 | case $bootstrap_target_libs in | |
7157 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7158 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7159 | esac | |
7160 | ||
8bb79148 | 7161 | extrasub_target="$extrasub_target |
93f93279 | 7162 | /^@if target-$module\$/d |
7163 | /^@endif target-$module\$/d | |
7ab76cec | 7164 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7165 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
93f93279 | 7166 | done |
7167 | ||
8bb79148 | 7168 | # Do the final fixup along with target modules. |
7169 | extrasub_target="$extrasub_target | |
01b41571 | 7170 | /^@if /,/^@endif /d" |
71ab34df | 7171 | |
7172 | # Create the serialization dependencies. This uses a temporary file. | |
7173 | ||
cd9a469c | 7174 | # Check whether --enable-serial-configure was given. |
7175 | if test "${enable_serial_configure+set}" = set; then : | |
7176 | enableval=$enable_serial_configure; | |
7177 | fi | |
11d8013a | 7178 | |
7179 | ||
622c1fa9 | 7180 | case ${enable_serial_configure} in |
7181 | yes) | |
7182 | enable_serial_build_configure=yes | |
7183 | enable_serial_host_configure=yes | |
7184 | enable_serial_target_configure=yes | |
7185 | ;; | |
7186 | esac | |
7187 | ||
71ab34df | 7188 | # These force 'configure's to be done one at a time, to avoid problems |
7189 | # with contention over a shared config.cache. | |
7190 | rm -f serdep.tmp | |
11d8013a | 7191 | echo '# serdep.tmp' > serdep.tmp |
71ab34df | 7192 | olditem= |
622c1fa9 | 7193 | test "x${enable_serial_build_configure}" = xyes && |
71ab34df | 7194 | for item in ${build_configdirs} ; do |
7195 | case ${olditem} in | |
7196 | "") ;; | |
11d8013a | 7197 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
71ab34df | 7198 | esac |
7199 | olditem=${item} | |
7200 | done | |
7201 | olditem= | |
622c1fa9 | 7202 | test "x${enable_serial_host_configure}" = xyes && |
71ab34df | 7203 | for item in ${configdirs} ; do |
7204 | case ${olditem} in | |
7205 | "") ;; | |
11d8013a | 7206 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
71ab34df | 7207 | esac |
7208 | olditem=${item} | |
7209 | done | |
7210 | olditem= | |
622c1fa9 | 7211 | test "x${enable_serial_target_configure}" = xyes && |
71ab34df | 7212 | for item in ${target_configdirs} ; do |
7213 | case ${olditem} in | |
7214 | "") ;; | |
11d8013a | 7215 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
71ab34df | 7216 | esac |
7217 | olditem=${item} | |
7218 | done | |
7219 | serialization_dependencies=serdep.tmp | |
7220 | ||
7221 | ||
11d8013a | 7222 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
b30fcfae | 7223 | # target, nonopt, and variable assignments. These are the ones we |
412c2e81 | 7224 | # might not want to pass down to subconfigures. The exception being |
7225 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7226 | # files altogether, and which should be passed on to subconfigures. | |
7227 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7228 | # so that we can pass down a consistent program-transform-name. | |
b30fcfae | 7229 | baseargs= |
0e4d1862 | 7230 | tbaseargs= |
b30fcfae | 7231 | keep_next=no |
7232 | skip_next=no | |
7233 | eval "set -- $ac_configure_args" | |
4ff792a4 | 7234 | for ac_arg |
7235 | do | |
b30fcfae | 7236 | if test X"$skip_next" = X"yes"; then |
7237 | skip_next=no | |
7238 | continue | |
7239 | fi | |
7240 | if test X"$keep_next" = X"yes"; then | |
7241 | case $ac_arg in | |
7242 | *\'*) | |
7243 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7244 | esac | |
7245 | baseargs="$baseargs '$ac_arg'" | |
0e4d1862 | 7246 | tbaseargs="$tbaseargs '$ac_arg'" |
b30fcfae | 7247 | keep_next=no |
7248 | continue | |
7249 | fi | |
7250 | ||
7251 | # Handle separated arguments. Based on the logic generated by | |
7252 | # autoconf 2.59. | |
7253 | case $ac_arg in | |
7254 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7255 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7256 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7257 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7258 | separate_arg=no | |
7259 | ;; | |
7260 | -*) | |
7261 | separate_arg=yes | |
7262 | ;; | |
7263 | *) | |
7264 | separate_arg=no | |
7265 | ;; | |
7266 | esac | |
7267 | ||
0e4d1862 | 7268 | skip_targ=no |
7269 | case $ac_arg in | |
7270 | ||
7271 | --with-* | --without-*) | |
7272 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7273 | ||
7274 | case $libopt in | |
7275 | *[-_]include) | |
7276 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7277 | ;; | |
7278 | *[-_]lib) | |
7279 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7280 | ;; | |
7281 | *) | |
7282 | lib=$libopt | |
7283 | ;; | |
7284 | esac | |
7285 | ||
7286 | ||
7287 | case $lib in | |
572cf1f7 | 7288 | mpc | mpfr | gmp | isl) |
0e4d1862 | 7289 | # If we're processing --with-$lib, --with-$lib-include or |
7290 | # --with-$lib-lib, for one of the libs above, and target is | |
7291 | # different from host, don't pass the current argument to any | |
7292 | # target library's configure. | |
7293 | if test x$is_cross_compiler = xyes; then | |
7294 | skip_targ=yes | |
7295 | fi | |
7296 | ;; | |
7297 | esac | |
7298 | ;; | |
7299 | esac | |
7300 | ||
b30fcfae | 7301 | case "$ac_arg" in |
412c2e81 | 7302 | --cache-file=/dev/null | \ |
7303 | -cache-file=/dev/null ) | |
7304 | # Handled here to avoid the test to skip args below. | |
7305 | baseargs="$baseargs '$ac_arg'" | |
0e4d1862 | 7306 | tbaseargs="$tbaseargs '$ac_arg'" |
412c2e81 | 7307 | # Assert: $separate_arg should always be no. |
7308 | keep_next=$separate_arg | |
7309 | ;; | |
b30fcfae | 7310 | --no*) |
7311 | continue | |
7312 | ;; | |
7313 | --c* | \ | |
7314 | --sr* | \ | |
7315 | --ho* | \ | |
7316 | --bu* | \ | |
7317 | --t* | \ | |
7318 | --program-* | \ | |
7319 | -cache_file* | \ | |
7320 | -srcdir* | \ | |
7321 | -host* | \ | |
7322 | -build* | \ | |
7323 | -target* | \ | |
7324 | -program-prefix* | \ | |
7325 | -program-suffix* | \ | |
7326 | -program-transform-name* ) | |
7327 | skip_next=$separate_arg | |
7328 | continue | |
7329 | ;; | |
7330 | -*) | |
7331 | # An option. Add it. | |
7332 | case $ac_arg in | |
7333 | *\'*) | |
7334 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7335 | esac | |
7336 | baseargs="$baseargs '$ac_arg'" | |
0e4d1862 | 7337 | if test X"$skip_targ" = Xno; then |
7338 | tbaseargs="$tbaseargs '$ac_arg'" | |
7339 | fi | |
b30fcfae | 7340 | keep_next=$separate_arg |
7341 | ;; | |
7342 | *) | |
7343 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7344 | # pass it down; let the Makefile handle this. | |
7345 | continue | |
7346 | ;; | |
7347 | esac | |
7348 | done | |
7349 | # Remove the initial space we just introduced and, as these will be | |
7350 | # expanded by make, quote '$'. | |
7351 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
71ab34df | 7352 | |
fbfea1fa | 7353 | # Add in --program-transform-name, after --program-prefix and |
7354 | # --program-suffix have been applied to it. Autoconf has already | |
7355 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7356 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
b30fcfae | 7357 | # quotes, because this will be expanded first by make and then by the shell. |
fbfea1fa | 7358 | # Also, because we want to override the logic in subdir configure scripts to |
7359 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7360 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7361 | ${program_transform_name} | |
7362 | EOF_SED | |
7363 | gcc_transform_name=`cat conftestsed.out` | |
7364 | rm -f conftestsed.out | |
7365 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
0e4d1862 | 7366 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
af7bb0c0 | 7367 | if test "$silent" = yes; then |
7368 | baseargs="$baseargs --silent" | |
0e4d1862 | 7369 | tbaseargs="$tbaseargs --silent" |
af7bb0c0 | 7370 | fi |
cd2f3773 | 7371 | baseargs="$baseargs --disable-option-checking" |
0e4d1862 | 7372 | tbaseargs="$tbaseargs --disable-option-checking" |
fbfea1fa | 7373 | |
372a3f1e | 7374 | # Record and document user additions to sub configure arguments. |
7375 | ||
7376 | ||
7377 | ||
7378 | ||
71ab34df | 7379 | # For the build-side libraries, we just need to pretend we're native, |
7380 | # and not use the same cache file. Multilibs are neither needed nor | |
b85b703b | 7381 | # desired. We can't even use the same cache file for all build-side |
7382 | # libraries, as they're compiled differently; some with C, some with | |
7383 | # C++ or with different feature-enabling options. | |
7384 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
71ab34df | 7385 | |
7386 | # For host modules, accept cache file option, or specification as blank. | |
7387 | case "${cache_file}" in | |
7388 | "") # empty | |
7389 | cache_file_option="" ;; | |
7390 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7391 | cache_file_option="--cache-file=${cache_file}" ;; | |
7392 | *) # relative path | |
7393 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7394 | esac | |
7395 | ||
ba1081ef | 7396 | # Host dirs don't like to share a cache file either, horribly enough. |
7397 | # This seems to be due to autoconf 2.5x stupidity. | |
372a3f1e | 7398 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
71ab34df | 7399 | |
0e4d1862 | 7400 | target_configargs="$target_configargs ${tbaseargs}" |
71ab34df | 7401 | |
7402 | # Passing a --with-cross-host argument lets the target libraries know | |
7403 | # whether they are being built with a cross-compiler or being built | |
7404 | # native. However, it would be better to use other mechanisms to make the | |
7405 | # sorts of decisions they want to make on this basis. Please consider | |
7406 | # this option to be deprecated. FIXME. | |
7407 | if test x${is_cross_compiler} = xyes ; then | |
b30fcfae | 7408 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
71ab34df | 7409 | fi |
7410 | ||
87ebeb4c | 7411 | # Special user-friendly check for native x86_64-linux build, if |
7412 | # multilib is not explicitly enabled. | |
7413 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7414 | x86_64-*linux*:yes:$build:$build:) | |
6efd9d79 | 7415 | # Make sure we have a development environment that handles 32-bit |
87ebeb4c | 7416 | dev64=no |
7417 | echo "int main () { return 0; }" > conftest.c | |
7418 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7419 | if test $? = 0 ; then | |
7420 | if test -s conftest || test -s conftest.exe ; then | |
7421 | dev64=yes | |
7422 | fi | |
7423 | fi | |
7424 | rm -f conftest* | |
7425 | if test x${dev64} != xyes ; then | |
6efd9d79 | 7426 | as_fn_error "I suspect your system does not have 32-bit development 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 |
87ebeb4c | 7427 | fi |
7428 | ;; | |
7429 | esac | |
7430 | ||
59a40389 | 7431 | # Default to --enable-multilib. |
7432 | if test x${enable_multilib} = x ; then | |
71ab34df | 7433 | target_configargs="--enable-multilib ${target_configargs}" |
59a40389 | 7434 | fi |
71ab34df | 7435 | |
7436 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7437 | # changed from the earlier setting of with_newlib. | |
7438 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7439 | target_configargs="--with-newlib ${target_configargs}" | |
7440 | fi | |
7441 | ||
74fef112 | 7442 | # Different target subdirs use different values of certain variables |
7443 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7444 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7445 | # it doesn't automatically accept command-line overrides of them. | |
7446 | # This means it's not safe for target subdirs to share a cache file, | |
7447 | # which is disgusting, but there you have it. Hopefully this can be | |
7448 | # fixed in future. It's still worthwhile to use a cache file for each | |
7449 | # directory. I think. | |
7450 | ||
a8abbd9d | 7451 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7452 | # We need to pass --target, as newer autoconf's requires consistency | |
7453 | # for target_alias and gcc doesn't manage it consistently. | |
d45318b3 | 7454 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
71ab34df | 7455 | |
71ab34df | 7456 | FLAGS_FOR_TARGET= |
7457 | case " $target_configdirs " in | |
7458 | *" newlib "*) | |
7459 | case " $target_configargs " in | |
7460 | *" --with-newlib "*) | |
7461 | case "$target" in | |
fe284774 | 7462 | *-cygwin*) |
db54564d | 7463 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
fe284774 | 7464 | ;; |
71ab34df | 7465 | esac |
7466 | ||
7467 | # If we're not building GCC, don't discard standard headers. | |
7468 | if test -d ${srcdir}/gcc; then | |
7469 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7470 | ||
7471 | if test "${build}" != "${host}"; then | |
7472 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7473 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7474 | # to it. This is right: we don't want to search that directory | |
7475 | # for binaries, but we want the header files in there, so add | |
7476 | # them explicitly. | |
e619f0a6 | 7477 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
71ab34df | 7478 | |
7479 | # Someone might think of using the pre-installed headers on | |
7480 | # Canadian crosses, in case the installed compiler is not fully | |
7481 | # compatible with the compiler being built. In this case, it | |
7482 | # would be better to flag an error than risking having | |
7483 | # incompatible object files being constructed. We can't | |
7484 | # guarantee that an error will be flagged, but let's hope the | |
7485 | # compiler will do it, when presented with incompatible header | |
7486 | # files. | |
7487 | fi | |
7488 | fi | |
7489 | ||
7490 | case "${target}-${is_cross_compiler}" in | |
f74ea578 | 7491 | i[3456789]86-*-linux*-no) |
71ab34df | 7492 | # Here host == target, so we don't need to build gcc, |
7493 | # so we don't want to discard standard headers. | |
7494 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7495 | ;; | |
7496 | *) | |
7497 | # If we're building newlib, use its generic headers last, but search | |
7498 | # for any libc-related directories first (so make it the last -B | |
7499 | # switch). | |
7500 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
1c5767f1 | 7501 | |
7502 | # If we're building libgloss, find the startup file, simulator library | |
7503 | # and linker script. | |
7504 | case " $target_configdirs " in | |
7505 | *" libgloss "*) | |
7506 | # Look for startup file, simulator library and maybe linker script. | |
7507 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7508 | # Look for libnosys.a in case the target needs it. | |
7509 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7510 | # Most targets have the linker script in the source directory. | |
7511 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7512 | ;; | |
7513 | esac | |
71ab34df | 7514 | ;; |
7515 | esac | |
7516 | ;; | |
7517 | esac | |
7518 | ;; | |
7519 | esac | |
fe284774 | 7520 | |
d6d689df | 7521 | case "$target" in |
fe284774 | 7522 | x86_64-*mingw* | *-w64-mingw*) |
7523 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7524 | # however, use a symlink named 'mingw' in ${prefix} . | |
7525 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7526 | ;; | |
7527 | *-mingw*) | |
7528 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7529 | 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' | |
7530 | ;; | |
d6d689df | 7531 | esac |
71ab34df | 7532 | |
d8e9ea04 | 7533 | # Allow the user to override the flags for |
7534 | # our build compiler if desired. | |
823e8b8d | 7535 | if test x"${build}" = x"${host}" ; then |
7536 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7537 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7538 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7539 | fi | |
d8e9ea04 | 7540 | |
71ab34df | 7541 | # On Canadian crosses, we'll be searching the right directories for |
7542 | # the previously-installed cross compiler, so don't bother to add | |
7543 | # flags for directories within the install tree of the compiler | |
7544 | # being built; programs in there won't even run. | |
7545 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7546 | # Search for pre-installed headers if nothing else fits. | |
5750c7d4 | 7547 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
71ab34df | 7548 | fi |
7549 | ||
7550 | if test "x${use_gnu_ld}" = x && | |
7551 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7552 | # Arrange for us to find uninstalled linker scripts. | |
c1eb9e31 | 7553 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
71ab34df | 7554 | fi |
7555 | ||
24714a39 | 7556 | # Search for other target-specific linker scripts and such. |
7557 | case "${target}" in | |
38d7211b | 7558 | mep*) |
7559 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7560 | ;; | |
24714a39 | 7561 | esac |
7562 | ||
71ab34df | 7563 | # Makefile fragments. |
03c65091 | 7564 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7565 | do | |
7566 | eval fragval=\$$frag | |
7567 | if test $fragval != /dev/null; then | |
7568 | eval $frag=${srcdir}/$fragval | |
7569 | fi | |
7570 | done | |
71ab34df | 7571 | |
7572 | ||
7573 | ||
7574 | ||
7575 | ||
7576 | # Miscellanea: directories, flags, etc. | |
7577 | ||
7578 | ||
7579 | ||
7580 | ||
7581 | ||
7582 | ||
7583 | ||
7d804f04 | 7584 | |
2f8725b0 | 7585 | # Build module lists & subconfigure args. |
71ab34df | 7586 | |
7587 | ||
7588 | ||
f5aebe3e | 7589 | # Host module lists & subconfigure args. |
7590 | ||
7591 | ||
7592 | ||
1fda3360 | 7593 | |
f5aebe3e | 7594 | # Target module lists & subconfigure args. |
7595 | ||
7596 | ||
7597 | ||
7598 | # Build tools. | |
7599 | ||
7600 | ||
7601 | ||
93c5e793 | 7602 | |
7603 | ||
7604 | ||
7605 | ||
7606 | ||
7607 | ||
7608 | ||
7609 | ||
7610 | ||
7611 | ||
7612 | ||
7613 | ||
7614 | ||
f5aebe3e | 7615 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7616 | # on the build machine. These are used if the Makefile can't locate these | |
7617 | # programs in objdir. | |
7618 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7619 | ||
7620 | for ac_prog in 'bison -y' byacc yacc | |
7621 | do | |
b30fcfae | 7622 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7623 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7625 | $as_echo_n "checking for $ac_word... " >&6; } | |
7626 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7627 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7628 | else |
7629 | if test -n "$YACC"; then | |
7630 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7631 | else | |
b30fcfae | 7632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7633 | for as_dir in $PATH | |
7634 | do | |
7635 | IFS=$as_save_IFS | |
7636 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7637 | for ac_exec_ext in '' $ac_executable_extensions; do |
7638 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7639 | ac_cv_prog_YACC="$ac_prog" |
cd9a469c | 7640 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7641 | break 2 |
7642 | fi | |
7643 | done | |
cd9a469c | 7644 | done |
7645 | IFS=$as_save_IFS | |
b30fcfae | 7646 | |
f5aebe3e | 7647 | fi |
7648 | fi | |
b30fcfae | 7649 | YACC=$ac_cv_prog_YACC |
f5aebe3e | 7650 | if test -n "$YACC"; then |
cd9a469c | 7651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7652 | $as_echo "$YACC" >&6; } | |
f5aebe3e | 7653 | else |
cd9a469c | 7654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7655 | $as_echo "no" >&6; } | |
f5aebe3e | 7656 | fi |
7657 | ||
cd9a469c | 7658 | |
b30fcfae | 7659 | test -n "$YACC" && break |
f5aebe3e | 7660 | done |
7661 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7662 | ||
7663 | case " $build_configdirs " in | |
7664 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
f5aebe3e | 7665 | esac |
7666 | ||
7667 | for ac_prog in bison | |
7668 | do | |
b30fcfae | 7669 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7670 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7672 | $as_echo_n "checking for $ac_word... " >&6; } | |
7673 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7674 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7675 | else |
7676 | if test -n "$BISON"; then | |
7677 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7678 | else | |
b30fcfae | 7679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7680 | for as_dir in $PATH | |
7681 | do | |
7682 | IFS=$as_save_IFS | |
7683 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7684 | for ac_exec_ext in '' $ac_executable_extensions; do |
7685 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7686 | ac_cv_prog_BISON="$ac_prog" |
cd9a469c | 7687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7688 | break 2 |
7689 | fi | |
7690 | done | |
cd9a469c | 7691 | done |
7692 | IFS=$as_save_IFS | |
b30fcfae | 7693 | |
f5aebe3e | 7694 | fi |
7695 | fi | |
b30fcfae | 7696 | BISON=$ac_cv_prog_BISON |
f5aebe3e | 7697 | if test -n "$BISON"; then |
cd9a469c | 7698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7699 | $as_echo "$BISON" >&6; } | |
f5aebe3e | 7700 | else |
cd9a469c | 7701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7702 | $as_echo "no" >&6; } | |
f5aebe3e | 7703 | fi |
7704 | ||
cd9a469c | 7705 | |
b30fcfae | 7706 | test -n "$BISON" && break |
f5aebe3e | 7707 | done |
7708 | test -n "$BISON" || BISON="$MISSING bison" | |
7709 | ||
7710 | case " $build_configdirs " in | |
7711 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7712 | esac | |
7713 | ||
7714 | for ac_prog in gm4 gnum4 m4 | |
7715 | do | |
b30fcfae | 7716 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7717 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7719 | $as_echo_n "checking for $ac_word... " >&6; } | |
7720 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7721 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7722 | else |
7723 | if test -n "$M4"; then | |
7724 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7725 | else | |
b30fcfae | 7726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7727 | for as_dir in $PATH | |
7728 | do | |
7729 | IFS=$as_save_IFS | |
7730 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7731 | for ac_exec_ext in '' $ac_executable_extensions; do |
7732 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7733 | ac_cv_prog_M4="$ac_prog" |
cd9a469c | 7734 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7735 | break 2 |
7736 | fi | |
7737 | done | |
cd9a469c | 7738 | done |
7739 | IFS=$as_save_IFS | |
b30fcfae | 7740 | |
f5aebe3e | 7741 | fi |
7742 | fi | |
b30fcfae | 7743 | M4=$ac_cv_prog_M4 |
f5aebe3e | 7744 | if test -n "$M4"; then |
cd9a469c | 7745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7746 | $as_echo "$M4" >&6; } | |
f5aebe3e | 7747 | else |
cd9a469c | 7748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7749 | $as_echo "no" >&6; } | |
f5aebe3e | 7750 | fi |
7751 | ||
cd9a469c | 7752 | |
b30fcfae | 7753 | test -n "$M4" && break |
f5aebe3e | 7754 | done |
7755 | test -n "$M4" || M4="$MISSING m4" | |
7756 | ||
7757 | case " $build_configdirs " in | |
7758 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7759 | esac | |
7760 | ||
7761 | for ac_prog in flex lex | |
7762 | do | |
b30fcfae | 7763 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7764 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7766 | $as_echo_n "checking for $ac_word... " >&6; } | |
7767 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7768 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7769 | else |
7770 | if test -n "$LEX"; then | |
7771 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7772 | else | |
b30fcfae | 7773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7774 | for as_dir in $PATH | |
7775 | do | |
7776 | IFS=$as_save_IFS | |
7777 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7778 | for ac_exec_ext in '' $ac_executable_extensions; do |
7779 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7780 | ac_cv_prog_LEX="$ac_prog" |
cd9a469c | 7781 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7782 | break 2 |
7783 | fi | |
7784 | done | |
cd9a469c | 7785 | done |
7786 | IFS=$as_save_IFS | |
b30fcfae | 7787 | |
f5aebe3e | 7788 | fi |
7789 | fi | |
b30fcfae | 7790 | LEX=$ac_cv_prog_LEX |
f5aebe3e | 7791 | if test -n "$LEX"; then |
cd9a469c | 7792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7793 | $as_echo "$LEX" >&6; } | |
f5aebe3e | 7794 | else |
cd9a469c | 7795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7796 | $as_echo "no" >&6; } | |
f5aebe3e | 7797 | fi |
7798 | ||
cd9a469c | 7799 | |
b30fcfae | 7800 | test -n "$LEX" && break |
f5aebe3e | 7801 | done |
7802 | test -n "$LEX" || LEX="$MISSING flex" | |
7803 | ||
7804 | case " $build_configdirs " in | |
7805 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7806 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7807 | esac | |
7808 | ||
7809 | for ac_prog in flex | |
7810 | do | |
b30fcfae | 7811 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7812 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7814 | $as_echo_n "checking for $ac_word... " >&6; } | |
7815 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7816 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7817 | else |
7818 | if test -n "$FLEX"; then | |
7819 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7820 | else | |
b30fcfae | 7821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7822 | for as_dir in $PATH | |
7823 | do | |
7824 | IFS=$as_save_IFS | |
7825 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7826 | for ac_exec_ext in '' $ac_executable_extensions; do |
7827 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7828 | ac_cv_prog_FLEX="$ac_prog" |
cd9a469c | 7829 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7830 | break 2 |
7831 | fi | |
7832 | done | |
cd9a469c | 7833 | done |
7834 | IFS=$as_save_IFS | |
b30fcfae | 7835 | |
f5aebe3e | 7836 | fi |
7837 | fi | |
b30fcfae | 7838 | FLEX=$ac_cv_prog_FLEX |
f5aebe3e | 7839 | if test -n "$FLEX"; then |
cd9a469c | 7840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7841 | $as_echo "$FLEX" >&6; } | |
f5aebe3e | 7842 | else |
cd9a469c | 7843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7844 | $as_echo "no" >&6; } | |
f5aebe3e | 7845 | fi |
7846 | ||
cd9a469c | 7847 | |
b30fcfae | 7848 | test -n "$FLEX" && break |
f5aebe3e | 7849 | done |
7850 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7851 | ||
7852 | case " $build_configdirs " in | |
7853 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7854 | esac | |
7855 | ||
7856 | for ac_prog in makeinfo | |
7857 | do | |
b30fcfae | 7858 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7859 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7861 | $as_echo_n "checking for $ac_word... " >&6; } | |
7862 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7863 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7864 | else |
7865 | if test -n "$MAKEINFO"; then | |
7866 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7867 | else | |
b30fcfae | 7868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7869 | for as_dir in $PATH | |
7870 | do | |
7871 | IFS=$as_save_IFS | |
7872 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7873 | for ac_exec_ext in '' $ac_executable_extensions; do |
7874 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7875 | ac_cv_prog_MAKEINFO="$ac_prog" |
cd9a469c | 7876 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7877 | break 2 |
7878 | fi | |
7879 | done | |
cd9a469c | 7880 | done |
7881 | IFS=$as_save_IFS | |
b30fcfae | 7882 | |
f5aebe3e | 7883 | fi |
7884 | fi | |
b30fcfae | 7885 | MAKEINFO=$ac_cv_prog_MAKEINFO |
f5aebe3e | 7886 | if test -n "$MAKEINFO"; then |
cd9a469c | 7887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7888 | $as_echo "$MAKEINFO" >&6; } | |
f5aebe3e | 7889 | else |
cd9a469c | 7890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7891 | $as_echo "no" >&6; } | |
f5aebe3e | 7892 | fi |
7893 | ||
cd9a469c | 7894 | |
b30fcfae | 7895 | test -n "$MAKEINFO" && break |
f5aebe3e | 7896 | done |
7897 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7898 | ||
7899 | case " $build_configdirs " in | |
7900 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7901 | *) | |
7902 | ||
03caadda | 7903 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
f5aebe3e | 7904 | # higher, else we use the "missing" dummy. |
7905 | if ${MAKEINFO} --version \ | |
03caadda | 7906 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
f5aebe3e | 7907 | : |
7908 | else | |
7909 | MAKEINFO="$MISSING makeinfo" | |
7910 | fi | |
7911 | ;; | |
7912 | ||
7913 | esac | |
71ab34df | 7914 | |
f5aebe3e | 7915 | # FIXME: expect and dejagnu may become build tools? |
71ab34df | 7916 | |
f5aebe3e | 7917 | for ac_prog in expect |
7918 | do | |
b30fcfae | 7919 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7920 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7922 | $as_echo_n "checking for $ac_word... " >&6; } | |
7923 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7924 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7925 | else |
7926 | if test -n "$EXPECT"; then | |
7927 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7928 | else | |
b30fcfae | 7929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7930 | for as_dir in $PATH | |
7931 | do | |
7932 | IFS=$as_save_IFS | |
7933 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7934 | for ac_exec_ext in '' $ac_executable_extensions; do |
7935 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7936 | ac_cv_prog_EXPECT="$ac_prog" |
cd9a469c | 7937 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7938 | break 2 |
7939 | fi | |
7940 | done | |
cd9a469c | 7941 | done |
7942 | IFS=$as_save_IFS | |
b30fcfae | 7943 | |
f5aebe3e | 7944 | fi |
7945 | fi | |
b30fcfae | 7946 | EXPECT=$ac_cv_prog_EXPECT |
f5aebe3e | 7947 | if test -n "$EXPECT"; then |
cd9a469c | 7948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
7949 | $as_echo "$EXPECT" >&6; } | |
f5aebe3e | 7950 | else |
cd9a469c | 7951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7952 | $as_echo "no" >&6; } | |
f5aebe3e | 7953 | fi |
71ab34df | 7954 | |
cd9a469c | 7955 | |
b30fcfae | 7956 | test -n "$EXPECT" && break |
f5aebe3e | 7957 | done |
7958 | test -n "$EXPECT" || EXPECT="expect" | |
71ab34df | 7959 | |
f5aebe3e | 7960 | case " $configdirs " in |
7961 | *" expect "*) | |
7962 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
7963 | ;; | |
7964 | esac | |
71ab34df | 7965 | |
f5aebe3e | 7966 | for ac_prog in runtest |
7967 | do | |
b30fcfae | 7968 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7969 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7971 | $as_echo_n "checking for $ac_word... " >&6; } | |
7972 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
7973 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7974 | else |
7975 | if test -n "$RUNTEST"; then | |
7976 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
a4af6a58 | 7977 | else |
b30fcfae | 7978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7979 | for as_dir in $PATH | |
7980 | do | |
7981 | IFS=$as_save_IFS | |
7982 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7983 | for ac_exec_ext in '' $ac_executable_extensions; do |
7984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7985 | ac_cv_prog_RUNTEST="$ac_prog" |
cd9a469c | 7986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7987 | break 2 |
7988 | fi | |
7989 | done | |
cd9a469c | 7990 | done |
7991 | IFS=$as_save_IFS | |
b30fcfae | 7992 | |
f5aebe3e | 7993 | fi |
7994 | fi | |
b30fcfae | 7995 | RUNTEST=$ac_cv_prog_RUNTEST |
f5aebe3e | 7996 | if test -n "$RUNTEST"; then |
cd9a469c | 7997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
7998 | $as_echo "$RUNTEST" >&6; } | |
f5aebe3e | 7999 | else |
cd9a469c | 8000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8001 | $as_echo "no" >&6; } | |
f5aebe3e | 8002 | fi |
71ab34df | 8003 | |
cd9a469c | 8004 | |
b30fcfae | 8005 | test -n "$RUNTEST" && break |
f5aebe3e | 8006 | done |
8007 | test -n "$RUNTEST" || RUNTEST="runtest" | |
71ab34df | 8008 | |
f5aebe3e | 8009 | case " $configdirs " in |
8010 | *" dejagnu "*) | |
8d365775 | 8011 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
f5aebe3e | 8012 | ;; |
8013 | esac | |
71ab34df | 8014 | |
8015 | ||
71ab34df | 8016 | # Host tools. |
bb612911 | 8017 | ncn_tool_prefix= |
8018 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8019 | ncn_target_tool_prefix= | |
8020 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8021 | ||
95a05732 | 8022 | |
8023 | ||
8024 | if test -n "$AR"; then | |
8025 | ac_cv_prog_AR=$AR | |
8026 | elif test -n "$ac_cv_prog_AR"; then | |
8027 | AR=$ac_cv_prog_AR | |
8028 | fi | |
8029 | ||
8030 | if test -n "$ac_cv_prog_AR"; then | |
8031 | for ncn_progname in ar; do | |
8032 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8033 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8035 | $as_echo_n "checking for $ac_word... " >&6; } | |
8036 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8037 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8038 | else |
8039 | if test -n "$AR"; then | |
8040 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8041 | else | |
8042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8043 | for as_dir in $PATH | |
8044 | do | |
8045 | IFS=$as_save_IFS | |
8046 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8047 | for ac_exec_ext in '' $ac_executable_extensions; do |
8048 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8049 | ac_cv_prog_AR="${ncn_progname}" |
cd9a469c | 8050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8051 | break 2 |
8052 | fi | |
8053 | done | |
cd9a469c | 8054 | done |
8055 | IFS=$as_save_IFS | |
95a05732 | 8056 | |
8057 | fi | |
8058 | fi | |
8059 | AR=$ac_cv_prog_AR | |
8060 | if test -n "$AR"; then | |
cd9a469c | 8061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8062 | $as_echo "$AR" >&6; } | |
95a05732 | 8063 | else |
cd9a469c | 8064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8065 | $as_echo "no" >&6; } | |
95a05732 | 8066 | fi |
8067 | ||
cd9a469c | 8068 | |
95a05732 | 8069 | done |
8070 | fi | |
8071 | ||
8072 | for ncn_progname in ar; do | |
768691b5 | 8073 | if test -n "$ncn_tool_prefix"; then |
8074 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8075 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8077 | $as_echo_n "checking for $ac_word... " >&6; } | |
8078 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8079 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8080 | else |
8081 | if test -n "$AR"; then | |
8082 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8083 | else | |
b30fcfae | 8084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8085 | for as_dir in $PATH | |
8086 | do | |
8087 | IFS=$as_save_IFS | |
8088 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8089 | for ac_exec_ext in '' $ac_executable_extensions; do |
8090 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8091 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8092 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8093 | break 2 |
8094 | fi | |
8095 | done | |
cd9a469c | 8096 | done |
8097 | IFS=$as_save_IFS | |
b30fcfae | 8098 | |
bb612911 | 8099 | fi |
8100 | fi | |
b30fcfae | 8101 | AR=$ac_cv_prog_AR |
bb612911 | 8102 | if test -n "$AR"; then |
cd9a469c | 8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8104 | $as_echo "$AR" >&6; } | |
bb612911 | 8105 | else |
cd9a469c | 8106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8107 | $as_echo "no" >&6; } | |
bb612911 | 8108 | fi |
8109 | ||
cd9a469c | 8110 | |
768691b5 | 8111 | fi |
8112 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8113 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8114 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8116 | $as_echo_n "checking for $ac_word... " >&6; } | |
8117 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8118 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8119 | else |
768691b5 | 8120 | if test -n "$AR"; then |
ae48753c | 8121 | ac_cv_prog_AR="$AR" # Let the user override the test. |
8122 | else | |
b30fcfae | 8123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8124 | for as_dir in $PATH | |
8125 | do | |
8126 | IFS=$as_save_IFS | |
8127 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8128 | for ac_exec_ext in '' $ac_executable_extensions; do |
8129 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8130 | ac_cv_prog_AR="${ncn_progname}" |
cd9a469c | 8131 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8132 | break 2 |
8133 | fi | |
8134 | done | |
cd9a469c | 8135 | done |
8136 | IFS=$as_save_IFS | |
b30fcfae | 8137 | |
bb612911 | 8138 | fi |
8139 | fi | |
b30fcfae | 8140 | AR=$ac_cv_prog_AR |
768691b5 | 8141 | if test -n "$AR"; then |
cd9a469c | 8142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8143 | $as_echo "$AR" >&6; } | |
bb612911 | 8144 | else |
cd9a469c | 8145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8146 | $as_echo "no" >&6; } | |
bb612911 | 8147 | fi |
b30fcfae | 8148 | |
cd9a469c | 8149 | |
768691b5 | 8150 | fi |
8151 | test -n "$ac_cv_prog_AR" && break | |
8152 | done | |
8153 | ||
8154 | if test -z "$ac_cv_prog_AR" ; then | |
8155 | set dummy ar | |
8156 | if test $build = $host ; then | |
8157 | AR="$2" | |
bb612911 | 8158 | else |
768691b5 | 8159 | AR="${ncn_tool_prefix}$2" |
bb612911 | 8160 | fi |
bb612911 | 8161 | fi |
8162 | ||
95a05732 | 8163 | |
8164 | ||
8165 | if test -n "$AS"; then | |
8166 | ac_cv_prog_AS=$AS | |
8167 | elif test -n "$ac_cv_prog_AS"; then | |
8168 | AS=$ac_cv_prog_AS | |
8169 | fi | |
8170 | ||
8171 | if test -n "$ac_cv_prog_AS"; then | |
8172 | for ncn_progname in as; do | |
8173 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8174 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8176 | $as_echo_n "checking for $ac_word... " >&6; } | |
8177 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8178 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8179 | else |
8180 | if test -n "$AS"; then | |
8181 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8182 | else | |
8183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8184 | for as_dir in $PATH | |
8185 | do | |
8186 | IFS=$as_save_IFS | |
8187 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8188 | for ac_exec_ext in '' $ac_executable_extensions; do |
8189 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8190 | ac_cv_prog_AS="${ncn_progname}" |
cd9a469c | 8191 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8192 | break 2 |
8193 | fi | |
8194 | done | |
cd9a469c | 8195 | done |
8196 | IFS=$as_save_IFS | |
95a05732 | 8197 | |
8198 | fi | |
8199 | fi | |
8200 | AS=$ac_cv_prog_AS | |
8201 | if test -n "$AS"; then | |
cd9a469c | 8202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8203 | $as_echo "$AS" >&6; } | |
95a05732 | 8204 | else |
cd9a469c | 8205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8206 | $as_echo "no" >&6; } | |
95a05732 | 8207 | fi |
8208 | ||
cd9a469c | 8209 | |
95a05732 | 8210 | done |
8211 | fi | |
8212 | ||
8213 | for ncn_progname in as; do | |
768691b5 | 8214 | if test -n "$ncn_tool_prefix"; then |
8215 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8216 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8218 | $as_echo_n "checking for $ac_word... " >&6; } | |
8219 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8220 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8221 | else |
8222 | if test -n "$AS"; then | |
8223 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
a83ffacf | 8224 | else |
b30fcfae | 8225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8226 | for as_dir in $PATH | |
8227 | do | |
8228 | IFS=$as_save_IFS | |
8229 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8230 | for ac_exec_ext in '' $ac_executable_extensions; do |
8231 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8232 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8234 | break 2 |
8235 | fi | |
8236 | done | |
cd9a469c | 8237 | done |
8238 | IFS=$as_save_IFS | |
b30fcfae | 8239 | |
bb612911 | 8240 | fi |
8241 | fi | |
b30fcfae | 8242 | AS=$ac_cv_prog_AS |
bb612911 | 8243 | if test -n "$AS"; then |
cd9a469c | 8244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8245 | $as_echo "$AS" >&6; } | |
bb612911 | 8246 | else |
cd9a469c | 8247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8248 | $as_echo "no" >&6; } | |
bb612911 | 8249 | fi |
8250 | ||
cd9a469c | 8251 | |
768691b5 | 8252 | fi |
8253 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8254 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8255 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8257 | $as_echo_n "checking for $ac_word... " >&6; } | |
8258 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8259 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8260 | else |
768691b5 | 8261 | if test -n "$AS"; then |
8262 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
bb612911 | 8263 | else |
b30fcfae | 8264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8265 | for as_dir in $PATH | |
8266 | do | |
8267 | IFS=$as_save_IFS | |
8268 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8269 | for ac_exec_ext in '' $ac_executable_extensions; do |
8270 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8271 | ac_cv_prog_AS="${ncn_progname}" |
cd9a469c | 8272 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8273 | break 2 |
8274 | fi | |
8275 | done | |
cd9a469c | 8276 | done |
8277 | IFS=$as_save_IFS | |
b30fcfae | 8278 | |
bb612911 | 8279 | fi |
8280 | fi | |
b30fcfae | 8281 | AS=$ac_cv_prog_AS |
768691b5 | 8282 | if test -n "$AS"; then |
cd9a469c | 8283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8284 | $as_echo "$AS" >&6; } | |
bb612911 | 8285 | else |
cd9a469c | 8286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8287 | $as_echo "no" >&6; } | |
bb612911 | 8288 | fi |
b30fcfae | 8289 | |
cd9a469c | 8290 | |
768691b5 | 8291 | fi |
8292 | test -n "$ac_cv_prog_AS" && break | |
8293 | done | |
8294 | ||
8295 | if test -z "$ac_cv_prog_AS" ; then | |
8296 | set dummy as | |
8297 | if test $build = $host ; then | |
8298 | AS="$2" | |
bb612911 | 8299 | else |
768691b5 | 8300 | AS="${ncn_tool_prefix}$2" |
bb612911 | 8301 | fi |
bb612911 | 8302 | fi |
8303 | ||
95a05732 | 8304 | |
8305 | ||
8306 | if test -n "$DLLTOOL"; then | |
8307 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8308 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8309 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8310 | fi | |
8311 | ||
8312 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8313 | for ncn_progname in dlltool; do | |
8314 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8315 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8317 | $as_echo_n "checking for $ac_word... " >&6; } | |
8318 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8319 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8320 | else |
8321 | if test -n "$DLLTOOL"; then | |
8322 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8323 | else | |
8324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8325 | for as_dir in $PATH | |
8326 | do | |
8327 | IFS=$as_save_IFS | |
8328 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8329 | for ac_exec_ext in '' $ac_executable_extensions; do |
8330 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8331 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
cd9a469c | 8332 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8333 | break 2 |
8334 | fi | |
8335 | done | |
cd9a469c | 8336 | done |
8337 | IFS=$as_save_IFS | |
95a05732 | 8338 | |
8339 | fi | |
8340 | fi | |
8341 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8342 | if test -n "$DLLTOOL"; then | |
cd9a469c | 8343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8344 | $as_echo "$DLLTOOL" >&6; } | |
95a05732 | 8345 | else |
cd9a469c | 8346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8347 | $as_echo "no" >&6; } | |
95a05732 | 8348 | fi |
8349 | ||
cd9a469c | 8350 | |
95a05732 | 8351 | done |
8352 | fi | |
8353 | ||
8354 | for ncn_progname in dlltool; do | |
768691b5 | 8355 | if test -n "$ncn_tool_prefix"; then |
8356 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8357 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8359 | $as_echo_n "checking for $ac_word... " >&6; } | |
8360 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8361 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8362 | else |
8363 | if test -n "$DLLTOOL"; then | |
8364 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8365 | else | |
b30fcfae | 8366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8367 | for as_dir in $PATH | |
8368 | do | |
8369 | IFS=$as_save_IFS | |
8370 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8371 | for ac_exec_ext in '' $ac_executable_extensions; do |
8372 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8373 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8375 | break 2 |
8376 | fi | |
8377 | done | |
cd9a469c | 8378 | done |
8379 | IFS=$as_save_IFS | |
b30fcfae | 8380 | |
bb612911 | 8381 | fi |
8382 | fi | |
b30fcfae | 8383 | DLLTOOL=$ac_cv_prog_DLLTOOL |
bb612911 | 8384 | if test -n "$DLLTOOL"; then |
cd9a469c | 8385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8386 | $as_echo "$DLLTOOL" >&6; } | |
bb612911 | 8387 | else |
cd9a469c | 8388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8389 | $as_echo "no" >&6; } | |
bb612911 | 8390 | fi |
8391 | ||
cd9a469c | 8392 | |
768691b5 | 8393 | fi |
8394 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8395 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8396 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8398 | $as_echo_n "checking for $ac_word... " >&6; } | |
8399 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8400 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8401 | else |
768691b5 | 8402 | if test -n "$DLLTOOL"; then |
8403 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
bb612911 | 8404 | else |
b30fcfae | 8405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8406 | for as_dir in $PATH | |
8407 | do | |
8408 | IFS=$as_save_IFS | |
8409 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8410 | for ac_exec_ext in '' $ac_executable_extensions; do |
8411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8412 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
cd9a469c | 8413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8414 | break 2 |
8415 | fi | |
8416 | done | |
cd9a469c | 8417 | done |
8418 | IFS=$as_save_IFS | |
b30fcfae | 8419 | |
bb612911 | 8420 | fi |
8421 | fi | |
b30fcfae | 8422 | DLLTOOL=$ac_cv_prog_DLLTOOL |
768691b5 | 8423 | if test -n "$DLLTOOL"; then |
cd9a469c | 8424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8425 | $as_echo "$DLLTOOL" >&6; } | |
bb612911 | 8426 | else |
cd9a469c | 8427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8428 | $as_echo "no" >&6; } | |
bb612911 | 8429 | fi |
b30fcfae | 8430 | |
cd9a469c | 8431 | |
768691b5 | 8432 | fi |
8433 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8434 | done | |
8435 | ||
8436 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8437 | set dummy dlltool | |
8438 | if test $build = $host ; then | |
8439 | DLLTOOL="$2" | |
bb612911 | 8440 | else |
768691b5 | 8441 | DLLTOOL="${ncn_tool_prefix}$2" |
bb612911 | 8442 | fi |
bb612911 | 8443 | fi |
8444 | ||
95a05732 | 8445 | |
8446 | ||
8447 | if test -n "$LD"; then | |
8448 | ac_cv_prog_LD=$LD | |
8449 | elif test -n "$ac_cv_prog_LD"; then | |
8450 | LD=$ac_cv_prog_LD | |
8451 | fi | |
8452 | ||
8453 | if test -n "$ac_cv_prog_LD"; then | |
8454 | for ncn_progname in ld; do | |
8455 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8456 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8458 | $as_echo_n "checking for $ac_word... " >&6; } | |
8459 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8460 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8461 | else |
8462 | if test -n "$LD"; then | |
8463 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8464 | else | |
8465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8466 | for as_dir in $PATH | |
8467 | do | |
8468 | IFS=$as_save_IFS | |
8469 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8470 | for ac_exec_ext in '' $ac_executable_extensions; do |
8471 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8472 | ac_cv_prog_LD="${ncn_progname}" |
cd9a469c | 8473 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8474 | break 2 |
8475 | fi | |
8476 | done | |
cd9a469c | 8477 | done |
8478 | IFS=$as_save_IFS | |
95a05732 | 8479 | |
8480 | fi | |
8481 | fi | |
8482 | LD=$ac_cv_prog_LD | |
8483 | if test -n "$LD"; then | |
cd9a469c | 8484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8485 | $as_echo "$LD" >&6; } | |
95a05732 | 8486 | else |
cd9a469c | 8487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8488 | $as_echo "no" >&6; } | |
95a05732 | 8489 | fi |
8490 | ||
cd9a469c | 8491 | |
95a05732 | 8492 | done |
8493 | fi | |
8494 | ||
8495 | for ncn_progname in ld; do | |
768691b5 | 8496 | if test -n "$ncn_tool_prefix"; then |
8497 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8498 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8500 | $as_echo_n "checking for $ac_word... " >&6; } | |
8501 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8502 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8503 | else |
8504 | if test -n "$LD"; then | |
8505 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8506 | else | |
b30fcfae | 8507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8508 | for as_dir in $PATH | |
8509 | do | |
8510 | IFS=$as_save_IFS | |
8511 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8512 | for ac_exec_ext in '' $ac_executable_extensions; do |
8513 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8514 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8516 | break 2 |
8517 | fi | |
8518 | done | |
cd9a469c | 8519 | done |
8520 | IFS=$as_save_IFS | |
b30fcfae | 8521 | |
bb612911 | 8522 | fi |
8523 | fi | |
b30fcfae | 8524 | LD=$ac_cv_prog_LD |
bb612911 | 8525 | if test -n "$LD"; then |
cd9a469c | 8526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8527 | $as_echo "$LD" >&6; } | |
bb612911 | 8528 | else |
cd9a469c | 8529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8530 | $as_echo "no" >&6; } | |
bb612911 | 8531 | fi |
8532 | ||
cd9a469c | 8533 | |
768691b5 | 8534 | fi |
8535 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8536 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8537 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8539 | $as_echo_n "checking for $ac_word... " >&6; } | |
8540 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8541 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8542 | else |
768691b5 | 8543 | if test -n "$LD"; then |
8544 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
7172be51 | 8545 | else |
b30fcfae | 8546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8547 | for as_dir in $PATH | |
8548 | do | |
8549 | IFS=$as_save_IFS | |
8550 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8551 | for ac_exec_ext in '' $ac_executable_extensions; do |
8552 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8553 | ac_cv_prog_LD="${ncn_progname}" |
cd9a469c | 8554 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8555 | break 2 |
8556 | fi | |
8557 | done | |
cd9a469c | 8558 | done |
8559 | IFS=$as_save_IFS | |
b30fcfae | 8560 | |
bb612911 | 8561 | fi |
8562 | fi | |
b30fcfae | 8563 | LD=$ac_cv_prog_LD |
768691b5 | 8564 | if test -n "$LD"; then |
cd9a469c | 8565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8566 | $as_echo "$LD" >&6; } | |
bb612911 | 8567 | else |
cd9a469c | 8568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8569 | $as_echo "no" >&6; } | |
bb612911 | 8570 | fi |
b30fcfae | 8571 | |
cd9a469c | 8572 | |
768691b5 | 8573 | fi |
8574 | test -n "$ac_cv_prog_LD" && break | |
8575 | done | |
8576 | ||
8577 | if test -z "$ac_cv_prog_LD" ; then | |
8578 | set dummy ld | |
8579 | if test $build = $host ; then | |
8580 | LD="$2" | |
bb612911 | 8581 | else |
768691b5 | 8582 | LD="${ncn_tool_prefix}$2" |
bb612911 | 8583 | fi |
bb612911 | 8584 | fi |
8585 | ||
95a05732 | 8586 | |
8587 | ||
8588 | if test -n "$LIPO"; then | |
8589 | ac_cv_prog_LIPO=$LIPO | |
8590 | elif test -n "$ac_cv_prog_LIPO"; then | |
8591 | LIPO=$ac_cv_prog_LIPO | |
8592 | fi | |
8593 | ||
8594 | if test -n "$ac_cv_prog_LIPO"; then | |
8595 | for ncn_progname in lipo; do | |
8596 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8597 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8599 | $as_echo_n "checking for $ac_word... " >&6; } | |
8600 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8601 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8602 | else |
8603 | if test -n "$LIPO"; then | |
8604 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8605 | else | |
8606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8607 | for as_dir in $PATH | |
8608 | do | |
8609 | IFS=$as_save_IFS | |
8610 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8611 | for ac_exec_ext in '' $ac_executable_extensions; do |
8612 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8613 | ac_cv_prog_LIPO="${ncn_progname}" |
cd9a469c | 8614 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8615 | break 2 |
8616 | fi | |
8617 | done | |
cd9a469c | 8618 | done |
8619 | IFS=$as_save_IFS | |
95a05732 | 8620 | |
8621 | fi | |
8622 | fi | |
8623 | LIPO=$ac_cv_prog_LIPO | |
8624 | if test -n "$LIPO"; then | |
cd9a469c | 8625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8626 | $as_echo "$LIPO" >&6; } | |
95a05732 | 8627 | else |
cd9a469c | 8628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8629 | $as_echo "no" >&6; } | |
95a05732 | 8630 | fi |
8631 | ||
cd9a469c | 8632 | |
95a05732 | 8633 | done |
8634 | fi | |
8635 | ||
8636 | for ncn_progname in lipo; do | |
f5aebe3e | 8637 | if test -n "$ncn_tool_prefix"; then |
8638 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8639 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8641 | $as_echo_n "checking for $ac_word... " >&6; } | |
8642 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8643 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 8644 | else |
8645 | if test -n "$LIPO"; then | |
8646 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8647 | else | |
b30fcfae | 8648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8649 | for as_dir in $PATH | |
8650 | do | |
8651 | IFS=$as_save_IFS | |
8652 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8653 | for ac_exec_ext in '' $ac_executable_extensions; do |
8654 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8655 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8656 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8657 | break 2 |
8658 | fi | |
8659 | done | |
cd9a469c | 8660 | done |
8661 | IFS=$as_save_IFS | |
b30fcfae | 8662 | |
f5aebe3e | 8663 | fi |
8664 | fi | |
b30fcfae | 8665 | LIPO=$ac_cv_prog_LIPO |
f5aebe3e | 8666 | if test -n "$LIPO"; then |
cd9a469c | 8667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8668 | $as_echo "$LIPO" >&6; } | |
f5aebe3e | 8669 | else |
cd9a469c | 8670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8671 | $as_echo "no" >&6; } | |
f5aebe3e | 8672 | fi |
8673 | ||
cd9a469c | 8674 | |
f5aebe3e | 8675 | fi |
8676 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8677 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8678 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8680 | $as_echo_n "checking for $ac_word... " >&6; } | |
8681 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8682 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 8683 | else |
8684 | if test -n "$LIPO"; then | |
8685 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8686 | else | |
b30fcfae | 8687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8688 | for as_dir in $PATH | |
8689 | do | |
8690 | IFS=$as_save_IFS | |
8691 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8692 | for ac_exec_ext in '' $ac_executable_extensions; do |
8693 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8694 | ac_cv_prog_LIPO="${ncn_progname}" |
cd9a469c | 8695 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8696 | break 2 |
8697 | fi | |
8698 | done | |
cd9a469c | 8699 | done |
8700 | IFS=$as_save_IFS | |
b30fcfae | 8701 | |
f5aebe3e | 8702 | fi |
8703 | fi | |
b30fcfae | 8704 | LIPO=$ac_cv_prog_LIPO |
f5aebe3e | 8705 | if test -n "$LIPO"; then |
cd9a469c | 8706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8707 | $as_echo "$LIPO" >&6; } | |
f5aebe3e | 8708 | else |
cd9a469c | 8709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8710 | $as_echo "no" >&6; } | |
f5aebe3e | 8711 | fi |
b30fcfae | 8712 | |
cd9a469c | 8713 | |
f5aebe3e | 8714 | fi |
8715 | test -n "$ac_cv_prog_LIPO" && break | |
8716 | done | |
8717 | ||
8718 | if test -z "$ac_cv_prog_LIPO" ; then | |
8719 | set dummy lipo | |
8720 | if test $build = $host ; then | |
8721 | LIPO="$2" | |
8722 | else | |
8723 | LIPO="${ncn_tool_prefix}$2" | |
8724 | fi | |
8725 | fi | |
8726 | ||
95a05732 | 8727 | |
8728 | ||
8729 | if test -n "$NM"; then | |
8730 | ac_cv_prog_NM=$NM | |
8731 | elif test -n "$ac_cv_prog_NM"; then | |
8732 | NM=$ac_cv_prog_NM | |
8733 | fi | |
8734 | ||
8735 | if test -n "$ac_cv_prog_NM"; then | |
8736 | for ncn_progname in nm; do | |
8737 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8738 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8740 | $as_echo_n "checking for $ac_word... " >&6; } | |
8741 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8742 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8743 | else |
8744 | if test -n "$NM"; then | |
8745 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8746 | else | |
b30fcfae | 8747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8748 | for as_dir in $PATH | |
8749 | do | |
8750 | IFS=$as_save_IFS | |
8751 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8752 | for ac_exec_ext in '' $ac_executable_extensions; do |
8753 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8754 | ac_cv_prog_NM="${ncn_progname}" |
cd9a469c | 8755 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8756 | break 2 |
8757 | fi | |
8758 | done | |
cd9a469c | 8759 | done |
8760 | IFS=$as_save_IFS | |
b30fcfae | 8761 | |
bb612911 | 8762 | fi |
8763 | fi | |
b30fcfae | 8764 | NM=$ac_cv_prog_NM |
bb612911 | 8765 | if test -n "$NM"; then |
cd9a469c | 8766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8767 | $as_echo "$NM" >&6; } | |
bb612911 | 8768 | else |
cd9a469c | 8769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8770 | $as_echo "no" >&6; } | |
bb612911 | 8771 | fi |
8772 | ||
cd9a469c | 8773 | |
95a05732 | 8774 | done |
8775 | fi | |
8776 | ||
8777 | for ncn_progname in nm; do | |
8778 | if test -n "$ncn_tool_prefix"; then | |
8779 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8780 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8782 | $as_echo_n "checking for $ac_word... " >&6; } | |
8783 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8784 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8785 | else |
768691b5 | 8786 | if test -n "$NM"; then |
8787 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
bb612911 | 8788 | else |
b30fcfae | 8789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8790 | for as_dir in $PATH | |
8791 | do | |
8792 | IFS=$as_save_IFS | |
8793 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8794 | for ac_exec_ext in '' $ac_executable_extensions; do |
8795 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8796 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8797 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8798 | break 2 |
8799 | fi | |
8800 | done | |
cd9a469c | 8801 | done |
8802 | IFS=$as_save_IFS | |
b30fcfae | 8803 | |
bb612911 | 8804 | fi |
8805 | fi | |
b30fcfae | 8806 | NM=$ac_cv_prog_NM |
768691b5 | 8807 | if test -n "$NM"; then |
cd9a469c | 8808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8809 | $as_echo "$NM" >&6; } | |
bb612911 | 8810 | else |
cd9a469c | 8811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8812 | $as_echo "no" >&6; } | |
bb612911 | 8813 | fi |
b30fcfae | 8814 | |
cd9a469c | 8815 | |
768691b5 | 8816 | fi |
95a05732 | 8817 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8818 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8819 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8821 | $as_echo_n "checking for $ac_word... " >&6; } | |
8822 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8823 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8824 | else |
8825 | if test -n "$NM"; then | |
8826 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8827 | else | |
8828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8829 | for as_dir in $PATH | |
8830 | do | |
8831 | IFS=$as_save_IFS | |
8832 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8833 | for ac_exec_ext in '' $ac_executable_extensions; do |
8834 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8835 | ac_cv_prog_NM="${ncn_progname}" |
cd9a469c | 8836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8837 | break 2 |
8838 | fi | |
8839 | done | |
cd9a469c | 8840 | done |
8841 | IFS=$as_save_IFS | |
95a05732 | 8842 | |
8843 | fi | |
8844 | fi | |
8845 | NM=$ac_cv_prog_NM | |
8846 | if test -n "$NM"; then | |
cd9a469c | 8847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8848 | $as_echo "$NM" >&6; } | |
95a05732 | 8849 | else |
cd9a469c | 8850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8851 | $as_echo "no" >&6; } | |
95a05732 | 8852 | fi |
8853 | ||
cd9a469c | 8854 | |
95a05732 | 8855 | fi |
8856 | test -n "$ac_cv_prog_NM" && break | |
8857 | done | |
8858 | ||
8859 | if test -z "$ac_cv_prog_NM" ; then | |
8860 | set dummy nm | |
8861 | if test $build = $host ; then | |
8862 | NM="$2" | |
8863 | else | |
8864 | NM="${ncn_tool_prefix}$2" | |
8865 | fi | |
8866 | fi | |
8867 | ||
8868 | ||
8869 | ||
8870 | if test -n "$RANLIB"; then | |
8871 | ac_cv_prog_RANLIB=$RANLIB | |
8872 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8873 | RANLIB=$ac_cv_prog_RANLIB | |
8874 | fi | |
8875 | ||
8876 | if test -n "$ac_cv_prog_RANLIB"; then | |
8877 | for ncn_progname in ranlib; do | |
8878 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8879 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8881 | $as_echo_n "checking for $ac_word... " >&6; } | |
8882 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8883 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8884 | else |
8885 | if test -n "$RANLIB"; then | |
8886 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8887 | else | |
8888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8889 | for as_dir in $PATH | |
8890 | do | |
8891 | IFS=$as_save_IFS | |
8892 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8893 | for ac_exec_ext in '' $ac_executable_extensions; do |
8894 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8895 | ac_cv_prog_RANLIB="${ncn_progname}" |
cd9a469c | 8896 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8897 | break 2 |
8898 | fi | |
8899 | done | |
cd9a469c | 8900 | done |
8901 | IFS=$as_save_IFS | |
95a05732 | 8902 | |
8903 | fi | |
8904 | fi | |
8905 | RANLIB=$ac_cv_prog_RANLIB | |
8906 | if test -n "$RANLIB"; then | |
cd9a469c | 8907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8908 | $as_echo "$RANLIB" >&6; } | |
95a05732 | 8909 | else |
cd9a469c | 8910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8911 | $as_echo "no" >&6; } | |
95a05732 | 8912 | fi |
8913 | ||
cd9a469c | 8914 | |
95a05732 | 8915 | done |
8916 | fi | |
bb612911 | 8917 | |
95a05732 | 8918 | for ncn_progname in ranlib; do |
768691b5 | 8919 | if test -n "$ncn_tool_prefix"; then |
8920 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8921 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8923 | $as_echo_n "checking for $ac_word... " >&6; } | |
8924 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8925 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8926 | else |
8927 | if test -n "$RANLIB"; then | |
8928 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8929 | else | |
b30fcfae | 8930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8931 | for as_dir in $PATH | |
8932 | do | |
8933 | IFS=$as_save_IFS | |
8934 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8935 | for ac_exec_ext in '' $ac_executable_extensions; do |
8936 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8937 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8939 | break 2 |
8940 | fi | |
8941 | done | |
cd9a469c | 8942 | done |
8943 | IFS=$as_save_IFS | |
b30fcfae | 8944 | |
bb612911 | 8945 | fi |
8946 | fi | |
b30fcfae | 8947 | RANLIB=$ac_cv_prog_RANLIB |
bb612911 | 8948 | if test -n "$RANLIB"; then |
cd9a469c | 8949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8950 | $as_echo "$RANLIB" >&6; } | |
bb612911 | 8951 | else |
cd9a469c | 8952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8953 | $as_echo "no" >&6; } | |
bb612911 | 8954 | fi |
8955 | ||
cd9a469c | 8956 | |
768691b5 | 8957 | fi |
8958 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
8959 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8960 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8962 | $as_echo_n "checking for $ac_word... " >&6; } | |
8963 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8964 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8965 | else |
768691b5 | 8966 | if test -n "$RANLIB"; then |
8967 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
bb612911 | 8968 | else |
b30fcfae | 8969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8970 | for as_dir in $PATH | |
8971 | do | |
8972 | IFS=$as_save_IFS | |
8973 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8974 | for ac_exec_ext in '' $ac_executable_extensions; do |
8975 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8976 | ac_cv_prog_RANLIB="${ncn_progname}" |
cd9a469c | 8977 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8978 | break 2 |
8979 | fi | |
8980 | done | |
cd9a469c | 8981 | done |
8982 | IFS=$as_save_IFS | |
b30fcfae | 8983 | |
bb612911 | 8984 | fi |
8985 | fi | |
b30fcfae | 8986 | RANLIB=$ac_cv_prog_RANLIB |
768691b5 | 8987 | if test -n "$RANLIB"; then |
cd9a469c | 8988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8989 | $as_echo "$RANLIB" >&6; } | |
bb612911 | 8990 | else |
cd9a469c | 8991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8992 | $as_echo "no" >&6; } | |
bb612911 | 8993 | fi |
b30fcfae | 8994 | |
cd9a469c | 8995 | |
bb612911 | 8996 | fi |
768691b5 | 8997 | test -n "$ac_cv_prog_RANLIB" && break |
8998 | done | |
8999 | ||
9000 | if test -z "$ac_cv_prog_RANLIB" ; then | |
68645a6b | 9001 | RANLIB="true" |
bb612911 | 9002 | fi |
9003 | ||
95a05732 | 9004 | |
9005 | ||
9006 | if test -n "$STRIP"; then | |
9007 | ac_cv_prog_STRIP=$STRIP | |
9008 | elif test -n "$ac_cv_prog_STRIP"; then | |
9009 | STRIP=$ac_cv_prog_STRIP | |
9010 | fi | |
9011 | ||
9012 | if test -n "$ac_cv_prog_STRIP"; then | |
9013 | for ncn_progname in strip; do | |
9014 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9015 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9017 | $as_echo_n "checking for $ac_word... " >&6; } | |
9018 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9019 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9020 | else |
9021 | if test -n "$STRIP"; then | |
9022 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9023 | else | |
9024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9025 | for as_dir in $PATH | |
9026 | do | |
9027 | IFS=$as_save_IFS | |
9028 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9029 | for ac_exec_ext in '' $ac_executable_extensions; do |
9030 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9031 | ac_cv_prog_STRIP="${ncn_progname}" |
cd9a469c | 9032 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9033 | break 2 |
9034 | fi | |
9035 | done | |
cd9a469c | 9036 | done |
9037 | IFS=$as_save_IFS | |
95a05732 | 9038 | |
9039 | fi | |
9040 | fi | |
9041 | STRIP=$ac_cv_prog_STRIP | |
9042 | if test -n "$STRIP"; then | |
cd9a469c | 9043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9044 | $as_echo "$STRIP" >&6; } | |
95a05732 | 9045 | else |
cd9a469c | 9046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9047 | $as_echo "no" >&6; } | |
95a05732 | 9048 | fi |
9049 | ||
cd9a469c | 9050 | |
95a05732 | 9051 | done |
9052 | fi | |
9053 | ||
9054 | for ncn_progname in strip; do | |
f5aebe3e | 9055 | if test -n "$ncn_tool_prefix"; then |
9056 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9057 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9059 | $as_echo_n "checking for $ac_word... " >&6; } | |
9060 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9061 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 9062 | else |
9063 | if test -n "$STRIP"; then | |
9064 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9065 | else | |
b30fcfae | 9066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9067 | for as_dir in $PATH | |
9068 | do | |
9069 | IFS=$as_save_IFS | |
9070 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9071 | for ac_exec_ext in '' $ac_executable_extensions; do |
9072 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9073 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9074 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9075 | break 2 |
9076 | fi | |
9077 | done | |
cd9a469c | 9078 | done |
9079 | IFS=$as_save_IFS | |
b30fcfae | 9080 | |
f5aebe3e | 9081 | fi |
9082 | fi | |
b30fcfae | 9083 | STRIP=$ac_cv_prog_STRIP |
f5aebe3e | 9084 | if test -n "$STRIP"; then |
cd9a469c | 9085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9086 | $as_echo "$STRIP" >&6; } | |
f5aebe3e | 9087 | else |
cd9a469c | 9088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9089 | $as_echo "no" >&6; } | |
f5aebe3e | 9090 | fi |
9091 | ||
cd9a469c | 9092 | |
f5aebe3e | 9093 | fi |
9094 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9095 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9096 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9098 | $as_echo_n "checking for $ac_word... " >&6; } | |
9099 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9100 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 9101 | else |
9102 | if test -n "$STRIP"; then | |
9103 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9104 | else | |
b30fcfae | 9105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9106 | for as_dir in $PATH | |
9107 | do | |
9108 | IFS=$as_save_IFS | |
9109 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9110 | for ac_exec_ext in '' $ac_executable_extensions; do |
9111 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9112 | ac_cv_prog_STRIP="${ncn_progname}" |
cd9a469c | 9113 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9114 | break 2 |
9115 | fi | |
9116 | done | |
cd9a469c | 9117 | done |
9118 | IFS=$as_save_IFS | |
b30fcfae | 9119 | |
f5aebe3e | 9120 | fi |
9121 | fi | |
b30fcfae | 9122 | STRIP=$ac_cv_prog_STRIP |
f5aebe3e | 9123 | if test -n "$STRIP"; then |
cd9a469c | 9124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9125 | $as_echo "$STRIP" >&6; } | |
f5aebe3e | 9126 | else |
cd9a469c | 9127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9128 | $as_echo "no" >&6; } | |
f5aebe3e | 9129 | fi |
b30fcfae | 9130 | |
cd9a469c | 9131 | |
f5aebe3e | 9132 | fi |
9133 | test -n "$ac_cv_prog_STRIP" && break | |
9134 | done | |
9135 | ||
9136 | if test -z "$ac_cv_prog_STRIP" ; then | |
68645a6b | 9137 | STRIP="true" |
f5aebe3e | 9138 | fi |
9139 | ||
95a05732 | 9140 | |
9141 | ||
9142 | if test -n "$WINDRES"; then | |
9143 | ac_cv_prog_WINDRES=$WINDRES | |
9144 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9145 | WINDRES=$ac_cv_prog_WINDRES | |
9146 | fi | |
9147 | ||
9148 | if test -n "$ac_cv_prog_WINDRES"; then | |
9149 | for ncn_progname in windres; do | |
9150 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9151 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9153 | $as_echo_n "checking for $ac_word... " >&6; } | |
9154 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9155 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9156 | else |
9157 | if test -n "$WINDRES"; then | |
9158 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9159 | else | |
9160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9161 | for as_dir in $PATH | |
9162 | do | |
9163 | IFS=$as_save_IFS | |
9164 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9165 | for ac_exec_ext in '' $ac_executable_extensions; do |
9166 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9167 | ac_cv_prog_WINDRES="${ncn_progname}" |
cd9a469c | 9168 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9169 | break 2 |
9170 | fi | |
9171 | done | |
cd9a469c | 9172 | done |
9173 | IFS=$as_save_IFS | |
95a05732 | 9174 | |
9175 | fi | |
9176 | fi | |
9177 | WINDRES=$ac_cv_prog_WINDRES | |
9178 | if test -n "$WINDRES"; then | |
cd9a469c | 9179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9180 | $as_echo "$WINDRES" >&6; } | |
95a05732 | 9181 | else |
cd9a469c | 9182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9183 | $as_echo "no" >&6; } | |
95a05732 | 9184 | fi |
9185 | ||
cd9a469c | 9186 | |
95a05732 | 9187 | done |
9188 | fi | |
9189 | ||
9190 | for ncn_progname in windres; do | |
768691b5 | 9191 | if test -n "$ncn_tool_prefix"; then |
9192 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9193 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9195 | $as_echo_n "checking for $ac_word... " >&6; } | |
9196 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9197 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9198 | else |
9199 | if test -n "$WINDRES"; then | |
9200 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9201 | else | |
b30fcfae | 9202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9203 | for as_dir in $PATH | |
9204 | do | |
9205 | IFS=$as_save_IFS | |
9206 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9207 | for ac_exec_ext in '' $ac_executable_extensions; do |
9208 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9209 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9210 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9211 | break 2 |
9212 | fi | |
9213 | done | |
cd9a469c | 9214 | done |
9215 | IFS=$as_save_IFS | |
b30fcfae | 9216 | |
bb612911 | 9217 | fi |
9218 | fi | |
b30fcfae | 9219 | WINDRES=$ac_cv_prog_WINDRES |
bb612911 | 9220 | if test -n "$WINDRES"; then |
cd9a469c | 9221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9222 | $as_echo "$WINDRES" >&6; } | |
bb612911 | 9223 | else |
cd9a469c | 9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9225 | $as_echo "no" >&6; } | |
bb612911 | 9226 | fi |
9227 | ||
cd9a469c | 9228 | |
768691b5 | 9229 | fi |
9230 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9231 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9232 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9234 | $as_echo_n "checking for $ac_word... " >&6; } | |
9235 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9236 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9237 | else |
768691b5 | 9238 | if test -n "$WINDRES"; then |
9239 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
bb612911 | 9240 | else |
b30fcfae | 9241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9242 | for as_dir in $PATH | |
9243 | do | |
9244 | IFS=$as_save_IFS | |
9245 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9246 | for ac_exec_ext in '' $ac_executable_extensions; do |
9247 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9248 | ac_cv_prog_WINDRES="${ncn_progname}" |
cd9a469c | 9249 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9250 | break 2 |
9251 | fi | |
9252 | done | |
cd9a469c | 9253 | done |
9254 | IFS=$as_save_IFS | |
b30fcfae | 9255 | |
bb612911 | 9256 | fi |
9257 | fi | |
b30fcfae | 9258 | WINDRES=$ac_cv_prog_WINDRES |
768691b5 | 9259 | if test -n "$WINDRES"; then |
cd9a469c | 9260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9261 | $as_echo "$WINDRES" >&6; } | |
bb612911 | 9262 | else |
cd9a469c | 9263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9264 | $as_echo "no" >&6; } | |
bb612911 | 9265 | fi |
b30fcfae | 9266 | |
cd9a469c | 9267 | |
768691b5 | 9268 | fi |
9269 | test -n "$ac_cv_prog_WINDRES" && break | |
9270 | done | |
9271 | ||
9272 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9273 | set dummy windres | |
9274 | if test $build = $host ; then | |
9275 | WINDRES="$2" | |
bb612911 | 9276 | else |
768691b5 | 9277 | WINDRES="${ncn_tool_prefix}$2" |
bb612911 | 9278 | fi |
bb612911 | 9279 | fi |
9280 | ||
95a05732 | 9281 | |
9282 | ||
75d6a0a9 | 9283 | if test -n "$WINDMC"; then |
9284 | ac_cv_prog_WINDMC=$WINDMC | |
9285 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9286 | WINDMC=$ac_cv_prog_WINDMC | |
9287 | fi | |
9288 | ||
9289 | if test -n "$ac_cv_prog_WINDMC"; then | |
9290 | for ncn_progname in windmc; do | |
9291 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9292 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9294 | $as_echo_n "checking for $ac_word... " >&6; } | |
9295 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9296 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 9297 | else |
9298 | if test -n "$WINDMC"; then | |
9299 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9300 | else | |
9301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9302 | for as_dir in $PATH | |
9303 | do | |
9304 | IFS=$as_save_IFS | |
9305 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9306 | for ac_exec_ext in '' $ac_executable_extensions; do |
9307 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 9308 | ac_cv_prog_WINDMC="${ncn_progname}" |
cd9a469c | 9309 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 9310 | break 2 |
9311 | fi | |
9312 | done | |
cd9a469c | 9313 | done |
9314 | IFS=$as_save_IFS | |
75d6a0a9 | 9315 | |
9316 | fi | |
9317 | fi | |
9318 | WINDMC=$ac_cv_prog_WINDMC | |
9319 | if test -n "$WINDMC"; then | |
cd9a469c | 9320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9321 | $as_echo "$WINDMC" >&6; } | |
75d6a0a9 | 9322 | else |
cd9a469c | 9323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9324 | $as_echo "no" >&6; } | |
75d6a0a9 | 9325 | fi |
9326 | ||
cd9a469c | 9327 | |
75d6a0a9 | 9328 | done |
9329 | fi | |
9330 | ||
9331 | for ncn_progname in windmc; do | |
9332 | if test -n "$ncn_tool_prefix"; then | |
9333 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9334 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9336 | $as_echo_n "checking for $ac_word... " >&6; } | |
9337 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9338 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 9339 | else |
9340 | if test -n "$WINDMC"; then | |
9341 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9342 | else | |
9343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9344 | for as_dir in $PATH | |
9345 | do | |
9346 | IFS=$as_save_IFS | |
9347 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9348 | for ac_exec_ext in '' $ac_executable_extensions; do |
9349 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 9350 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9351 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 9352 | break 2 |
9353 | fi | |
9354 | done | |
cd9a469c | 9355 | done |
9356 | IFS=$as_save_IFS | |
75d6a0a9 | 9357 | |
9358 | fi | |
9359 | fi | |
9360 | WINDMC=$ac_cv_prog_WINDMC | |
9361 | if test -n "$WINDMC"; then | |
cd9a469c | 9362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9363 | $as_echo "$WINDMC" >&6; } | |
75d6a0a9 | 9364 | else |
cd9a469c | 9365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9366 | $as_echo "no" >&6; } | |
75d6a0a9 | 9367 | fi |
9368 | ||
cd9a469c | 9369 | |
75d6a0a9 | 9370 | fi |
9371 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9372 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9373 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9375 | $as_echo_n "checking for $ac_word... " >&6; } | |
9376 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9377 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 9378 | else |
9379 | if test -n "$WINDMC"; then | |
9380 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9381 | else | |
9382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9383 | for as_dir in $PATH | |
9384 | do | |
9385 | IFS=$as_save_IFS | |
9386 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9387 | for ac_exec_ext in '' $ac_executable_extensions; do |
9388 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 9389 | ac_cv_prog_WINDMC="${ncn_progname}" |
cd9a469c | 9390 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 9391 | break 2 |
9392 | fi | |
9393 | done | |
cd9a469c | 9394 | done |
9395 | IFS=$as_save_IFS | |
75d6a0a9 | 9396 | |
9397 | fi | |
9398 | fi | |
9399 | WINDMC=$ac_cv_prog_WINDMC | |
9400 | if test -n "$WINDMC"; then | |
cd9a469c | 9401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9402 | $as_echo "$WINDMC" >&6; } | |
75d6a0a9 | 9403 | else |
cd9a469c | 9404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9405 | $as_echo "no" >&6; } | |
75d6a0a9 | 9406 | fi |
9407 | ||
cd9a469c | 9408 | |
75d6a0a9 | 9409 | fi |
9410 | test -n "$ac_cv_prog_WINDMC" && break | |
9411 | done | |
9412 | ||
9413 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9414 | set dummy windmc | |
9415 | if test $build = $host ; then | |
9416 | WINDMC="$2" | |
9417 | else | |
9418 | WINDMC="${ncn_tool_prefix}$2" | |
9419 | fi | |
9420 | fi | |
9421 | ||
9422 | ||
9423 | ||
95a05732 | 9424 | if test -n "$OBJCOPY"; then |
9425 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9426 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9427 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9428 | fi | |
9429 | ||
9430 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9431 | for ncn_progname in objcopy; do | |
9432 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9433 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9435 | $as_echo_n "checking for $ac_word... " >&6; } | |
9436 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9437 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9438 | else |
9439 | if test -n "$OBJCOPY"; then | |
9440 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9441 | else | |
9442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9443 | for as_dir in $PATH | |
9444 | do | |
9445 | IFS=$as_save_IFS | |
9446 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9447 | for ac_exec_ext in '' $ac_executable_extensions; do |
9448 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9449 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
cd9a469c | 9450 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9451 | break 2 |
9452 | fi | |
9453 | done | |
cd9a469c | 9454 | done |
9455 | IFS=$as_save_IFS | |
95a05732 | 9456 | |
9457 | fi | |
9458 | fi | |
9459 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9460 | if test -n "$OBJCOPY"; then | |
cd9a469c | 9461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9462 | $as_echo "$OBJCOPY" >&6; } | |
95a05732 | 9463 | else |
cd9a469c | 9464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9465 | $as_echo "no" >&6; } | |
95a05732 | 9466 | fi |
9467 | ||
cd9a469c | 9468 | |
95a05732 | 9469 | done |
9470 | fi | |
9471 | ||
9472 | for ncn_progname in objcopy; do | |
768691b5 | 9473 | if test -n "$ncn_tool_prefix"; then |
9474 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9475 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9477 | $as_echo_n "checking for $ac_word... " >&6; } | |
9478 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9479 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9480 | else |
9481 | if test -n "$OBJCOPY"; then | |
9482 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9483 | else | |
b30fcfae | 9484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9485 | for as_dir in $PATH | |
9486 | do | |
9487 | IFS=$as_save_IFS | |
9488 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9489 | for ac_exec_ext in '' $ac_executable_extensions; do |
9490 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9491 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9493 | break 2 |
9494 | fi | |
9495 | done | |
cd9a469c | 9496 | done |
9497 | IFS=$as_save_IFS | |
b30fcfae | 9498 | |
bb612911 | 9499 | fi |
9500 | fi | |
b30fcfae | 9501 | OBJCOPY=$ac_cv_prog_OBJCOPY |
bb612911 | 9502 | if test -n "$OBJCOPY"; then |
cd9a469c | 9503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9504 | $as_echo "$OBJCOPY" >&6; } | |
bb612911 | 9505 | else |
cd9a469c | 9506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9507 | $as_echo "no" >&6; } | |
bb612911 | 9508 | fi |
9509 | ||
cd9a469c | 9510 | |
768691b5 | 9511 | fi |
9512 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9513 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9514 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9516 | $as_echo_n "checking for $ac_word... " >&6; } | |
9517 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9518 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9519 | else |
768691b5 | 9520 | if test -n "$OBJCOPY"; then |
9521 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
bb612911 | 9522 | else |
b30fcfae | 9523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9524 | for as_dir in $PATH | |
9525 | do | |
9526 | IFS=$as_save_IFS | |
9527 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9528 | for ac_exec_ext in '' $ac_executable_extensions; do |
9529 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9530 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
cd9a469c | 9531 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9532 | break 2 |
9533 | fi | |
9534 | done | |
cd9a469c | 9535 | done |
9536 | IFS=$as_save_IFS | |
b30fcfae | 9537 | |
bb612911 | 9538 | fi |
9539 | fi | |
b30fcfae | 9540 | OBJCOPY=$ac_cv_prog_OBJCOPY |
768691b5 | 9541 | if test -n "$OBJCOPY"; then |
cd9a469c | 9542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9543 | $as_echo "$OBJCOPY" >&6; } | |
bb612911 | 9544 | else |
cd9a469c | 9545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9546 | $as_echo "no" >&6; } | |
bb612911 | 9547 | fi |
b30fcfae | 9548 | |
cd9a469c | 9549 | |
768691b5 | 9550 | fi |
9551 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9552 | done | |
9553 | ||
9554 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9555 | set dummy objcopy | |
9556 | if test $build = $host ; then | |
9557 | OBJCOPY="$2" | |
bb612911 | 9558 | else |
768691b5 | 9559 | OBJCOPY="${ncn_tool_prefix}$2" |
bb612911 | 9560 | fi |
bb612911 | 9561 | fi |
9562 | ||
95a05732 | 9563 | |
9564 | ||
9565 | if test -n "$OBJDUMP"; then | |
9566 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9567 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9568 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9569 | fi | |
9570 | ||
9571 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9572 | for ncn_progname in objdump; do | |
9573 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9574 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9576 | $as_echo_n "checking for $ac_word... " >&6; } | |
9577 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9578 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9579 | else |
9580 | if test -n "$OBJDUMP"; then | |
9581 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9582 | else | |
9583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9584 | for as_dir in $PATH | |
9585 | do | |
9586 | IFS=$as_save_IFS | |
9587 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9588 | for ac_exec_ext in '' $ac_executable_extensions; do |
9589 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9590 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
cd9a469c | 9591 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9592 | break 2 |
9593 | fi | |
9594 | done | |
cd9a469c | 9595 | done |
9596 | IFS=$as_save_IFS | |
95a05732 | 9597 | |
9598 | fi | |
9599 | fi | |
9600 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9601 | if test -n "$OBJDUMP"; then | |
cd9a469c | 9602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9603 | $as_echo "$OBJDUMP" >&6; } | |
95a05732 | 9604 | else |
cd9a469c | 9605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9606 | $as_echo "no" >&6; } | |
95a05732 | 9607 | fi |
9608 | ||
cd9a469c | 9609 | |
95a05732 | 9610 | done |
9611 | fi | |
9612 | ||
9613 | for ncn_progname in objdump; do | |
768691b5 | 9614 | if test -n "$ncn_tool_prefix"; then |
9615 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9616 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9618 | $as_echo_n "checking for $ac_word... " >&6; } | |
9619 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9620 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9621 | else |
9622 | if test -n "$OBJDUMP"; then | |
9623 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9624 | else | |
b30fcfae | 9625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9626 | for as_dir in $PATH | |
9627 | do | |
9628 | IFS=$as_save_IFS | |
9629 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9630 | for ac_exec_ext in '' $ac_executable_extensions; do |
9631 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9632 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9634 | break 2 |
9635 | fi | |
9636 | done | |
cd9a469c | 9637 | done |
9638 | IFS=$as_save_IFS | |
b30fcfae | 9639 | |
bb612911 | 9640 | fi |
9641 | fi | |
b30fcfae | 9642 | OBJDUMP=$ac_cv_prog_OBJDUMP |
bb612911 | 9643 | if test -n "$OBJDUMP"; then |
cd9a469c | 9644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9645 | $as_echo "$OBJDUMP" >&6; } | |
bb612911 | 9646 | else |
cd9a469c | 9647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9648 | $as_echo "no" >&6; } | |
bb612911 | 9649 | fi |
9650 | ||
cd9a469c | 9651 | |
768691b5 | 9652 | fi |
9653 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9654 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9655 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9657 | $as_echo_n "checking for $ac_word... " >&6; } | |
9658 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9659 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9660 | else |
768691b5 | 9661 | if test -n "$OBJDUMP"; then |
9662 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
bb612911 | 9663 | else |
b30fcfae | 9664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9665 | for as_dir in $PATH | |
9666 | do | |
9667 | IFS=$as_save_IFS | |
9668 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9669 | for ac_exec_ext in '' $ac_executable_extensions; do |
9670 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9671 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
cd9a469c | 9672 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9673 | break 2 |
9674 | fi | |
9675 | done | |
cd9a469c | 9676 | done |
9677 | IFS=$as_save_IFS | |
b30fcfae | 9678 | |
bb612911 | 9679 | fi |
9680 | fi | |
b30fcfae | 9681 | OBJDUMP=$ac_cv_prog_OBJDUMP |
768691b5 | 9682 | if test -n "$OBJDUMP"; then |
cd9a469c | 9683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9684 | $as_echo "$OBJDUMP" >&6; } | |
bb612911 | 9685 | else |
cd9a469c | 9686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9687 | $as_echo "no" >&6; } | |
bb612911 | 9688 | fi |
b30fcfae | 9689 | |
cd9a469c | 9690 | |
768691b5 | 9691 | fi |
9692 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9693 | done | |
9694 | ||
9695 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9696 | set dummy objdump | |
9697 | if test $build = $host ; then | |
9698 | OBJDUMP="$2" | |
bb612911 | 9699 | else |
768691b5 | 9700 | OBJDUMP="${ncn_tool_prefix}$2" |
bb612911 | 9701 | fi |
bb612911 | 9702 | fi |
9703 | ||
71ab34df | 9704 | |
9705 | ||
3f71364d | 9706 | if test -n "$READELF"; then |
9707 | ac_cv_prog_READELF=$READELF | |
9708 | elif test -n "$ac_cv_prog_READELF"; then | |
9709 | READELF=$ac_cv_prog_READELF | |
9710 | fi | |
9711 | ||
9712 | if test -n "$ac_cv_prog_READELF"; then | |
9713 | for ncn_progname in readelf; do | |
9714 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9715 | set dummy ${ncn_progname}; ac_word=$2 | |
9716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9717 | $as_echo_n "checking for $ac_word... " >&6; } | |
9718 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9719 | $as_echo_n "(cached) " >&6 | |
9720 | else | |
9721 | if test -n "$READELF"; then | |
9722 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9723 | else | |
9724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9725 | for as_dir in $PATH | |
9726 | do | |
9727 | IFS=$as_save_IFS | |
9728 | test -z "$as_dir" && as_dir=. | |
9729 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9730 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9731 | ac_cv_prog_READELF="${ncn_progname}" | |
9732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9733 | break 2 | |
9734 | fi | |
9735 | done | |
9736 | done | |
9737 | IFS=$as_save_IFS | |
9738 | ||
9739 | fi | |
9740 | fi | |
9741 | READELF=$ac_cv_prog_READELF | |
9742 | if test -n "$READELF"; then | |
9743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9744 | $as_echo "$READELF" >&6; } | |
9745 | else | |
9746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9747 | $as_echo "no" >&6; } | |
9748 | fi | |
9749 | ||
9750 | ||
9751 | done | |
9752 | fi | |
9753 | ||
9754 | for ncn_progname in readelf; do | |
9755 | if test -n "$ncn_tool_prefix"; then | |
9756 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9757 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9759 | $as_echo_n "checking for $ac_word... " >&6; } | |
9760 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9761 | $as_echo_n "(cached) " >&6 | |
9762 | else | |
9763 | if test -n "$READELF"; then | |
9764 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9765 | else | |
9766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9767 | for as_dir in $PATH | |
9768 | do | |
9769 | IFS=$as_save_IFS | |
9770 | test -z "$as_dir" && as_dir=. | |
9771 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9772 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9773 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" | |
9774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9775 | break 2 | |
9776 | fi | |
9777 | done | |
9778 | done | |
9779 | IFS=$as_save_IFS | |
9780 | ||
9781 | fi | |
9782 | fi | |
9783 | READELF=$ac_cv_prog_READELF | |
9784 | if test -n "$READELF"; then | |
9785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9786 | $as_echo "$READELF" >&6; } | |
9787 | else | |
9788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9789 | $as_echo "no" >&6; } | |
9790 | fi | |
9791 | ||
9792 | ||
9793 | fi | |
9794 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9795 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9796 | set dummy ${ncn_progname}; ac_word=$2 | |
9797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9798 | $as_echo_n "checking for $ac_word... " >&6; } | |
9799 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9800 | $as_echo_n "(cached) " >&6 | |
9801 | else | |
9802 | if test -n "$READELF"; then | |
9803 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9804 | else | |
9805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9806 | for as_dir in $PATH | |
9807 | do | |
9808 | IFS=$as_save_IFS | |
9809 | test -z "$as_dir" && as_dir=. | |
9810 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9811 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9812 | ac_cv_prog_READELF="${ncn_progname}" | |
9813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9814 | break 2 | |
9815 | fi | |
9816 | done | |
9817 | done | |
9818 | IFS=$as_save_IFS | |
9819 | ||
9820 | fi | |
9821 | fi | |
9822 | READELF=$ac_cv_prog_READELF | |
9823 | if test -n "$READELF"; then | |
9824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9825 | $as_echo "$READELF" >&6; } | |
9826 | else | |
9827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9828 | $as_echo "no" >&6; } | |
9829 | fi | |
9830 | ||
9831 | ||
9832 | fi | |
9833 | test -n "$ac_cv_prog_READELF" && break | |
9834 | done | |
9835 | ||
9836 | if test -z "$ac_cv_prog_READELF" ; then | |
9837 | set dummy readelf | |
9838 | if test $build = $host ; then | |
9839 | READELF="$2" | |
9840 | else | |
9841 | READELF="${ncn_tool_prefix}$2" | |
9842 | fi | |
9843 | fi | |
9844 | ||
9845 | ||
9846 | ||
71ab34df | 9847 | |
9848 | ||
9849 | ||
f5aebe3e | 9850 | # Target tools. |
b30fcfae | 9851 | |
cd9a469c | 9852 | # Check whether --with-build-time-tools was given. |
9853 | if test "${with_build_time_tools+set}" = set; then : | |
9854 | withval=$with_build_time_tools; case x"$withval" in | |
c47832b1 | 9855 | x/*) ;; |
9856 | *) | |
9857 | with_build_time_tools= | |
cd9a469c | 9858 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9859 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
c47832b1 | 9860 | ;; |
9861 | esac | |
bb612911 | 9862 | else |
c47832b1 | 9863 | with_build_time_tools= |
cd9a469c | 9864 | fi |
9865 | ||
bb612911 | 9866 | |
95a05732 | 9867 | |
9868 | ||
9869 | if test -n "$CC_FOR_TARGET"; then | |
9870 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9871 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9872 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9873 | fi | |
9874 | ||
9875 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9876 | for ncn_progname in cc gcc; do | |
9877 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9878 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9880 | $as_echo_n "checking for $ac_word... " >&6; } | |
9881 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9882 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9883 | else |
9884 | if test -n "$CC_FOR_TARGET"; then | |
9885 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9886 | else | |
9887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9888 | for as_dir in $PATH | |
9889 | do | |
9890 | IFS=$as_save_IFS | |
9891 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9892 | for ac_exec_ext in '' $ac_executable_extensions; do |
9893 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9894 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 9895 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9896 | break 2 |
9897 | fi | |
9898 | done | |
cd9a469c | 9899 | done |
9900 | IFS=$as_save_IFS | |
95a05732 | 9901 | |
9902 | fi | |
9903 | fi | |
9904 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9905 | if test -n "$CC_FOR_TARGET"; then | |
cd9a469c | 9906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9907 | $as_echo "$CC_FOR_TARGET" >&6; } | |
95a05732 | 9908 | else |
cd9a469c | 9909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9910 | $as_echo "no" >&6; } | |
95a05732 | 9911 | fi |
9912 | ||
cd9a469c | 9913 | |
95a05732 | 9914 | done |
9915 | fi | |
9916 | ||
9917 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 9918 | for ncn_progname in cc gcc; do |
cd9a469c | 9919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9920 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 9921 | if test -x $with_build_time_tools/${ncn_progname}; then |
9922 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 9923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9924 | $as_echo "yes" >&6; } | |
9886f3d1 | 9925 | break |
c47832b1 | 9926 | else |
cd9a469c | 9927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9928 | $as_echo "no" >&6; } | |
9886f3d1 | 9929 | fi |
9930 | done | |
ef8184c7 | 9931 | fi |
9932 | ||
c47832b1 | 9933 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
9934 | for ncn_progname in cc gcc; do | |
9935 | if test -n "$ncn_target_tool_prefix"; then | |
9936 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 9937 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 9938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9939 | $as_echo_n "checking for $ac_word... " >&6; } | |
9940 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9941 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 9942 | else |
9943 | if test -n "$CC_FOR_TARGET"; then | |
9944 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9945 | else | |
b30fcfae | 9946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9947 | for as_dir in $PATH | |
9948 | do | |
9949 | IFS=$as_save_IFS | |
9950 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9951 | for ac_exec_ext in '' $ac_executable_extensions; do |
9952 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9953 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 9954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9955 | break 2 |
9956 | fi | |
9957 | done | |
cd9a469c | 9958 | done |
9959 | IFS=$as_save_IFS | |
b30fcfae | 9960 | |
ef8184c7 | 9961 | fi |
9962 | fi | |
b30fcfae | 9963 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
ef8184c7 | 9964 | if test -n "$CC_FOR_TARGET"; then |
cd9a469c | 9965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9966 | $as_echo "$CC_FOR_TARGET" >&6; } | |
ef8184c7 | 9967 | else |
cd9a469c | 9968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9969 | $as_echo "no" >&6; } | |
ef8184c7 | 9970 | fi |
9971 | ||
cd9a469c | 9972 | |
c47832b1 | 9973 | fi |
9974 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
9975 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 9976 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 9977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9978 | $as_echo_n "checking for $ac_word... " >&6; } | |
9979 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9980 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 9981 | else |
768691b5 | 9982 | if test -n "$CC_FOR_TARGET"; then |
9983 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 9984 | else |
b30fcfae | 9985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9986 | for as_dir in $PATH | |
9987 | do | |
9988 | IFS=$as_save_IFS | |
9989 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9990 | for ac_exec_ext in '' $ac_executable_extensions; do |
9991 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9992 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 9993 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9994 | break 2 |
9995 | fi | |
9996 | done | |
cd9a469c | 9997 | done |
9998 | IFS=$as_save_IFS | |
b30fcfae | 9999 | |
ef8184c7 | 10000 | fi |
10001 | fi | |
b30fcfae | 10002 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
768691b5 | 10003 | if test -n "$CC_FOR_TARGET"; then |
cd9a469c | 10004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10005 | $as_echo "$CC_FOR_TARGET" >&6; } | |
ef8184c7 | 10006 | else |
cd9a469c | 10007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10008 | $as_echo "no" >&6; } | |
ef8184c7 | 10009 | fi |
b30fcfae | 10010 | |
cd9a469c | 10011 | |
c47832b1 | 10012 | fi |
10013 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10014 | done | |
10015 | fi | |
b30fcfae | 10016 | |
768691b5 | 10017 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10018 | set dummy cc gcc | |
10019 | if test $build = $target ; then | |
10020 | CC_FOR_TARGET="$2" | |
ef8184c7 | 10021 | else |
768691b5 | 10022 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ef8184c7 | 10023 | fi |
b7ef8464 | 10024 | else |
10025 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
ef8184c7 | 10026 | fi |
10027 | ||
95a05732 | 10028 | |
10029 | ||
10030 | if test -n "$CXX_FOR_TARGET"; then | |
10031 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10032 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10033 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10034 | fi | |
10035 | ||
10036 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10037 | for ncn_progname in c++ g++ cxx gxx; do | |
10038 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10039 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10041 | $as_echo_n "checking for $ac_word... " >&6; } | |
10042 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10043 | $as_echo_n "(cached) " >&6 | |
95a05732 | 10044 | else |
10045 | if test -n "$CXX_FOR_TARGET"; then | |
10046 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10047 | else | |
10048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10049 | for as_dir in $PATH | |
10050 | do | |
10051 | IFS=$as_save_IFS | |
10052 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10053 | for ac_exec_ext in '' $ac_executable_extensions; do |
10054 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10055 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10057 | break 2 |
10058 | fi | |
10059 | done | |
cd9a469c | 10060 | done |
10061 | IFS=$as_save_IFS | |
95a05732 | 10062 | |
10063 | fi | |
10064 | fi | |
10065 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10066 | if test -n "$CXX_FOR_TARGET"; then | |
cd9a469c | 10067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10068 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
95a05732 | 10069 | else |
cd9a469c | 10070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10071 | $as_echo "no" >&6; } | |
95a05732 | 10072 | fi |
10073 | ||
cd9a469c | 10074 | |
95a05732 | 10075 | done |
10076 | fi | |
10077 | ||
10078 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10079 | for ncn_progname in c++ g++ cxx gxx; do |
cd9a469c | 10080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10081 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10082 | if test -x $with_build_time_tools/${ncn_progname}; then |
10083 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10085 | $as_echo "yes" >&6; } | |
c47832b1 | 10086 | break |
10087 | else | |
cd9a469c | 10088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10089 | $as_echo "no" >&6; } | |
c47832b1 | 10090 | fi |
10091 | done | |
10092 | fi | |
10093 | ||
10094 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10095 | for ncn_progname in c++ g++ cxx gxx; do | |
10096 | if test -n "$ncn_target_tool_prefix"; then | |
10097 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10098 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 10099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10100 | $as_echo_n "checking for $ac_word... " >&6; } | |
10101 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10102 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 10103 | else |
10104 | if test -n "$CXX_FOR_TARGET"; then | |
10105 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10106 | else | |
b30fcfae | 10107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10108 | for as_dir in $PATH | |
10109 | do | |
10110 | IFS=$as_save_IFS | |
10111 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10112 | for ac_exec_ext in '' $ac_executable_extensions; do |
10113 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10114 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10116 | break 2 |
10117 | fi | |
10118 | done | |
cd9a469c | 10119 | done |
10120 | IFS=$as_save_IFS | |
b30fcfae | 10121 | |
ef8184c7 | 10122 | fi |
10123 | fi | |
b30fcfae | 10124 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
ef8184c7 | 10125 | if test -n "$CXX_FOR_TARGET"; then |
cd9a469c | 10126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10127 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
ef8184c7 | 10128 | else |
cd9a469c | 10129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10130 | $as_echo "no" >&6; } | |
ef8184c7 | 10131 | fi |
10132 | ||
cd9a469c | 10133 | |
c47832b1 | 10134 | fi |
10135 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10136 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10137 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10139 | $as_echo_n "checking for $ac_word... " >&6; } | |
10140 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10141 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 10142 | else |
768691b5 | 10143 | if test -n "$CXX_FOR_TARGET"; then |
10144 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 10145 | else |
b30fcfae | 10146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10147 | for as_dir in $PATH | |
10148 | do | |
10149 | IFS=$as_save_IFS | |
10150 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10151 | for ac_exec_ext in '' $ac_executable_extensions; do |
10152 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10153 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10154 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10155 | break 2 |
10156 | fi | |
10157 | done | |
cd9a469c | 10158 | done |
10159 | IFS=$as_save_IFS | |
b30fcfae | 10160 | |
ef8184c7 | 10161 | fi |
10162 | fi | |
b30fcfae | 10163 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
768691b5 | 10164 | if test -n "$CXX_FOR_TARGET"; then |
cd9a469c | 10165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10166 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
ef8184c7 | 10167 | else |
cd9a469c | 10168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10169 | $as_echo "no" >&6; } | |
ef8184c7 | 10170 | fi |
b30fcfae | 10171 | |
cd9a469c | 10172 | |
c47832b1 | 10173 | fi |
10174 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10175 | done | |
10176 | fi | |
b30fcfae | 10177 | |
768691b5 | 10178 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10179 | set dummy c++ g++ cxx gxx | |
10180 | if test $build = $target ; then | |
10181 | CXX_FOR_TARGET="$2" | |
ef8184c7 | 10182 | else |
768691b5 | 10183 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ef8184c7 | 10184 | fi |
b7ef8464 | 10185 | else |
10186 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
bb612911 | 10187 | fi |
10188 | ||
95a05732 | 10189 | |
10190 | ||
10191 | if test -n "$GCC_FOR_TARGET"; then | |
10192 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10193 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10194 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10195 | fi | |
10196 | ||
10197 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10198 | for ncn_progname in gcc; do | |
10199 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10200 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10202 | $as_echo_n "checking for $ac_word... " >&6; } | |
10203 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10204 | $as_echo_n "(cached) " >&6 | |
95a05732 | 10205 | else |
10206 | if test -n "$GCC_FOR_TARGET"; then | |
10207 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10208 | else | |
10209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10210 | for as_dir in $PATH | |
10211 | do | |
10212 | IFS=$as_save_IFS | |
10213 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10214 | for ac_exec_ext in '' $ac_executable_extensions; do |
10215 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10216 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10217 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10218 | break 2 |
10219 | fi | |
10220 | done | |
cd9a469c | 10221 | done |
10222 | IFS=$as_save_IFS | |
95a05732 | 10223 | |
10224 | fi | |
10225 | fi | |
10226 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10227 | if test -n "$GCC_FOR_TARGET"; then | |
cd9a469c | 10228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10229 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
95a05732 | 10230 | else |
cd9a469c | 10231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10232 | $as_echo "no" >&6; } | |
95a05732 | 10233 | fi |
10234 | ||
cd9a469c | 10235 | |
95a05732 | 10236 | done |
10237 | fi | |
10238 | ||
10239 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10240 | for ncn_progname in gcc; do |
cd9a469c | 10241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10242 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10243 | if test -x $with_build_time_tools/${ncn_progname}; then |
10244 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10246 | $as_echo "yes" >&6; } | |
c47832b1 | 10247 | break |
10248 | else | |
cd9a469c | 10249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10250 | $as_echo "no" >&6; } | |
c47832b1 | 10251 | fi |
10252 | done | |
10253 | fi | |
10254 | ||
10255 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10256 | for ncn_progname in gcc; do | |
10257 | if test -n "$ncn_target_tool_prefix"; then | |
10258 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10259 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 10260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10261 | $as_echo_n "checking for $ac_word... " >&6; } | |
10262 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10263 | $as_echo_n "(cached) " >&6 | |
bb612911 | 10264 | else |
c47832b1 | 10265 | if test -n "$GCC_FOR_TARGET"; then |
10266 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
bb612911 | 10267 | else |
b30fcfae | 10268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10269 | for as_dir in $PATH | |
10270 | do | |
10271 | IFS=$as_save_IFS | |
10272 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10273 | for ac_exec_ext in '' $ac_executable_extensions; do |
10274 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10275 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10276 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10277 | break 2 |
10278 | fi | |
10279 | done | |
cd9a469c | 10280 | done |
10281 | IFS=$as_save_IFS | |
b30fcfae | 10282 | |
bb612911 | 10283 | fi |
10284 | fi | |
b30fcfae | 10285 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
c47832b1 | 10286 | if test -n "$GCC_FOR_TARGET"; then |
cd9a469c | 10287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10288 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
bb612911 | 10289 | else |
cd9a469c | 10290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10291 | $as_echo "no" >&6; } | |
bb612911 | 10292 | fi |
10293 | ||
cd9a469c | 10294 | |
c47832b1 | 10295 | fi |
10296 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10297 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10298 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10300 | $as_echo_n "checking for $ac_word... " >&6; } | |
10301 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10302 | $as_echo_n "(cached) " >&6 | |
bb612911 | 10303 | else |
c47832b1 | 10304 | if test -n "$GCC_FOR_TARGET"; then |
10305 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
bb612911 | 10306 | else |
b30fcfae | 10307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10308 | for as_dir in $PATH | |
10309 | do | |
10310 | IFS=$as_save_IFS | |
10311 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10312 | for ac_exec_ext in '' $ac_executable_extensions; do |
10313 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10314 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10315 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10316 | break 2 |
10317 | fi | |
10318 | done | |
cd9a469c | 10319 | done |
10320 | IFS=$as_save_IFS | |
b30fcfae | 10321 | |
bb612911 | 10322 | fi |
10323 | fi | |
b30fcfae | 10324 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
c47832b1 | 10325 | if test -n "$GCC_FOR_TARGET"; then |
cd9a469c | 10326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10327 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
bb612911 | 10328 | else |
cd9a469c | 10329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10330 | $as_echo "no" >&6; } | |
bb612911 | 10331 | fi |
b30fcfae | 10332 | |
cd9a469c | 10333 | |
c47832b1 | 10334 | fi |
10335 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10336 | done | |
10337 | fi | |
b30fcfae | 10338 | |
c47832b1 | 10339 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10340 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
b7ef8464 | 10341 | else |
10342 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
c47832b1 | 10343 | fi |
10344 | ||
95a05732 | 10345 | |
10346 | ||
95a05732 | 10347 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10348 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10349 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10350 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
c47832b1 | 10351 | fi |
10352 | ||
95a05732 | 10353 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10354 | for ncn_progname in gfortran; do | |
10355 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
c47832b1 | 10356 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10358 | $as_echo_n "checking for $ac_word... " >&6; } | |
10359 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10360 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10361 | else |
95a05732 | 10362 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10363 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
c47832b1 | 10364 | else |
b30fcfae | 10365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10366 | for as_dir in $PATH | |
10367 | do | |
10368 | IFS=$as_save_IFS | |
10369 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10370 | for ac_exec_ext in '' $ac_executable_extensions; do |
10371 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10372 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10374 | break 2 |
10375 | fi | |
10376 | done | |
cd9a469c | 10377 | done |
10378 | IFS=$as_save_IFS | |
b30fcfae | 10379 | |
c47832b1 | 10380 | fi |
10381 | fi | |
95a05732 | 10382 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10383 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
cd9a469c | 10384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10385 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
c47832b1 | 10386 | else |
cd9a469c | 10387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10388 | $as_echo "no" >&6; } | |
c47832b1 | 10389 | fi |
b30fcfae | 10390 | |
cd9a469c | 10391 | |
c47832b1 | 10392 | done |
10393 | fi | |
b30fcfae | 10394 | |
95a05732 | 10395 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
c47832b1 | 10396 | for ncn_progname in gfortran; do |
cd9a469c | 10397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10398 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10399 | if test -x $with_build_time_tools/${ncn_progname}; then |
10400 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10402 | $as_echo "yes" >&6; } | |
c47832b1 | 10403 | break |
10404 | else | |
cd9a469c | 10405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10406 | $as_echo "no" >&6; } | |
c47832b1 | 10407 | fi |
10408 | done | |
10409 | fi | |
10410 | ||
10411 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10412 | for ncn_progname in gfortran; do | |
10413 | if test -n "$ncn_target_tool_prefix"; then | |
10414 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10415 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 10416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10417 | $as_echo_n "checking for $ac_word... " >&6; } | |
10418 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10419 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10420 | else |
10421 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
b30fcfae | 10422 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10423 | else | |
10424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10425 | for as_dir in $PATH | |
10426 | do | |
10427 | IFS=$as_save_IFS | |
10428 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10429 | for ac_exec_ext in '' $ac_executable_extensions; do |
10430 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10431 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10432 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10433 | break 2 |
10434 | fi | |
10435 | done | |
cd9a469c | 10436 | done |
10437 | IFS=$as_save_IFS | |
b30fcfae | 10438 | |
c47832b1 | 10439 | fi |
10440 | fi | |
b30fcfae | 10441 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
c47832b1 | 10442 | if test -n "$GFORTRAN_FOR_TARGET"; then |
cd9a469c | 10443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10444 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
c47832b1 | 10445 | else |
cd9a469c | 10446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10447 | $as_echo "no" >&6; } | |
c47832b1 | 10448 | fi |
10449 | ||
cd9a469c | 10450 | |
c47832b1 | 10451 | fi |
10452 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10453 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10454 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10456 | $as_echo_n "checking for $ac_word... " >&6; } | |
10457 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10458 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10459 | else |
10460 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10461 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10462 | else | |
b30fcfae | 10463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10464 | for as_dir in $PATH | |
10465 | do | |
10466 | IFS=$as_save_IFS | |
10467 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10468 | for ac_exec_ext in '' $ac_executable_extensions; do |
10469 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10470 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10471 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10472 | break 2 |
10473 | fi | |
10474 | done | |
cd9a469c | 10475 | done |
10476 | IFS=$as_save_IFS | |
b30fcfae | 10477 | |
c47832b1 | 10478 | fi |
10479 | fi | |
b30fcfae | 10480 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
c47832b1 | 10481 | if test -n "$GFORTRAN_FOR_TARGET"; then |
cd9a469c | 10482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10483 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
c47832b1 | 10484 | else |
cd9a469c | 10485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10486 | $as_echo "no" >&6; } | |
c47832b1 | 10487 | fi |
b30fcfae | 10488 | |
cd9a469c | 10489 | |
c47832b1 | 10490 | fi |
10491 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10492 | done | |
10493 | fi | |
b30fcfae | 10494 | |
c47832b1 | 10495 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10496 | set dummy gfortran | |
768691b5 | 10497 | if test $build = $target ; then |
c47832b1 | 10498 | GFORTRAN_FOR_TARGET="$2" |
bb612911 | 10499 | else |
c47832b1 | 10500 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
10501 | fi | |
b7ef8464 | 10502 | else |
10503 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
c47832b1 | 10504 | fi |
10505 | ||
10506 | ||
10507 | ||
5ff5b630 | 10508 | if test -n "$GOC_FOR_TARGET"; then |
10509 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10510 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10511 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10512 | fi | |
10513 | ||
10514 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10515 | for ncn_progname in gccgo; do | |
10516 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10517 | set dummy ${ncn_progname}; ac_word=$2 | |
10518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10519 | $as_echo_n "checking for $ac_word... " >&6; } | |
10520 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10521 | $as_echo_n "(cached) " >&6 | |
10522 | else | |
10523 | if test -n "$GOC_FOR_TARGET"; then | |
10524 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10525 | else | |
10526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10527 | for as_dir in $PATH | |
10528 | do | |
10529 | IFS=$as_save_IFS | |
10530 | test -z "$as_dir" && as_dir=. | |
10531 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10532 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10533 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10534 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10535 | break 2 | |
10536 | fi | |
10537 | done | |
10538 | done | |
10539 | IFS=$as_save_IFS | |
10540 | ||
10541 | fi | |
10542 | fi | |
10543 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10544 | if test -n "$GOC_FOR_TARGET"; then | |
10545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10546 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10547 | else | |
10548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10549 | $as_echo "no" >&6; } | |
10550 | fi | |
10551 | ||
10552 | ||
10553 | done | |
10554 | fi | |
10555 | ||
10556 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10557 | for ncn_progname in gccgo; do | |
10558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10559 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10560 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10561 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10563 | $as_echo "yes" >&6; } | |
10564 | break | |
10565 | else | |
10566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10567 | $as_echo "no" >&6; } | |
10568 | fi | |
10569 | done | |
10570 | fi | |
10571 | ||
10572 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10573 | for ncn_progname in gccgo; do | |
10574 | if test -n "$ncn_target_tool_prefix"; then | |
10575 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10576 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10578 | $as_echo_n "checking for $ac_word... " >&6; } | |
10579 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10580 | $as_echo_n "(cached) " >&6 | |
10581 | else | |
10582 | if test -n "$GOC_FOR_TARGET"; then | |
10583 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10584 | else | |
10585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10586 | for as_dir in $PATH | |
10587 | do | |
10588 | IFS=$as_save_IFS | |
10589 | test -z "$as_dir" && as_dir=. | |
10590 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10591 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10592 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10593 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10594 | break 2 | |
10595 | fi | |
10596 | done | |
10597 | done | |
10598 | IFS=$as_save_IFS | |
10599 | ||
10600 | fi | |
10601 | fi | |
10602 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10603 | if test -n "$GOC_FOR_TARGET"; then | |
10604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10605 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10606 | else | |
10607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10608 | $as_echo "no" >&6; } | |
10609 | fi | |
10610 | ||
10611 | ||
10612 | fi | |
10613 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10614 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10615 | set dummy ${ncn_progname}; ac_word=$2 | |
10616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10617 | $as_echo_n "checking for $ac_word... " >&6; } | |
10618 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10619 | $as_echo_n "(cached) " >&6 | |
10620 | else | |
10621 | if test -n "$GOC_FOR_TARGET"; then | |
10622 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10623 | else | |
10624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10625 | for as_dir in $PATH | |
10626 | do | |
10627 | IFS=$as_save_IFS | |
10628 | test -z "$as_dir" && as_dir=. | |
10629 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10630 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10631 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10632 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10633 | break 2 | |
10634 | fi | |
10635 | done | |
10636 | done | |
10637 | IFS=$as_save_IFS | |
10638 | ||
10639 | fi | |
10640 | fi | |
10641 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10642 | if test -n "$GOC_FOR_TARGET"; then | |
10643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10644 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10645 | else | |
10646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10647 | $as_echo "no" >&6; } | |
10648 | fi | |
10649 | ||
10650 | ||
10651 | fi | |
10652 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10653 | done | |
10654 | fi | |
10655 | ||
10656 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10657 | set dummy gccgo | |
10658 | if test $build = $target ; then | |
10659 | GOC_FOR_TARGET="$2" | |
10660 | else | |
10661 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10662 | fi | |
10663 | else | |
10664 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10665 | fi | |
10666 | ||
10667 | ||
10668 | ||
c47832b1 | 10669 | cat > conftest.c << \EOF |
10670 | #ifdef __GNUC__ | |
10671 | gcc_yay; | |
10672 | #endif | |
10673 | EOF | |
10674 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10675 | have_gcc_for_target=yes | |
10676 | else | |
10677 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
10678 | have_gcc_for_target=no | |
10679 | fi | |
10680 | rm conftest.c | |
10681 | ||
10682 | ||
10683 | ||
10684 | ||
10685 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
10686 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 10687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10688 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
ab0da556 | 10689 | if test -x $with_build_time_tools/ar; then |
10690 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10691 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
cd9a469c | 10692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10693 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
ab0da556 | 10694 | else |
cd9a469c | 10695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10696 | $as_echo "no" >&6; } | |
ab0da556 | 10697 | fi |
c47832b1 | 10698 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10699 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
b7ef8464 | 10700 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10701 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
c47832b1 | 10702 | fi |
10703 | fi | |
38d7211b | 10704 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 10705 | # Extract the first word of "ar", so it can be a program name with args. |
10706 | set dummy ar; ac_word=$2 | |
cd9a469c | 10707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10708 | $as_echo_n "checking for $ac_word... " >&6; } | |
10709 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10710 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10711 | else |
b30fcfae | 10712 | case $AR_FOR_TARGET in |
10713 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 10714 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10715 | ;; | |
c47832b1 | 10716 | *) |
b30fcfae | 10717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10718 | for as_dir in $gcc_cv_tool_dirs | |
10719 | do | |
10720 | IFS=$as_save_IFS | |
10721 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10722 | for ac_exec_ext in '' $ac_executable_extensions; do |
10723 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10724 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 10725 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10726 | break 2 |
10727 | fi | |
10728 | done | |
cd9a469c | 10729 | done |
10730 | IFS=$as_save_IFS | |
b30fcfae | 10731 | |
c47832b1 | 10732 | ;; |
10733 | esac | |
10734 | fi | |
b30fcfae | 10735 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
c47832b1 | 10736 | if test -n "$AR_FOR_TARGET"; then |
cd9a469c | 10737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10738 | $as_echo "$AR_FOR_TARGET" >&6; } | |
c47832b1 | 10739 | else |
cd9a469c | 10740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10741 | $as_echo "no" >&6; } | |
ef8184c7 | 10742 | fi |
10743 | ||
cd9a469c | 10744 | |
c47832b1 | 10745 | fi |
10746 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
95a05732 | 10747 | |
10748 | ||
10749 | if test -n "$AR_FOR_TARGET"; then | |
10750 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10751 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10752 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10753 | fi | |
10754 | ||
10755 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10756 | for ncn_progname in ar; do | |
10757 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10758 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10760 | $as_echo_n "checking for $ac_word... " >&6; } | |
10761 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10762 | $as_echo_n "(cached) " >&6 | |
95a05732 | 10763 | else |
10764 | if test -n "$AR_FOR_TARGET"; then | |
10765 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10766 | else | |
10767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10768 | for as_dir in $PATH | |
10769 | do | |
10770 | IFS=$as_save_IFS | |
10771 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10772 | for ac_exec_ext in '' $ac_executable_extensions; do |
10773 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10774 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10775 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10776 | break 2 |
10777 | fi | |
10778 | done | |
cd9a469c | 10779 | done |
10780 | IFS=$as_save_IFS | |
95a05732 | 10781 | |
10782 | fi | |
10783 | fi | |
10784 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10785 | if test -n "$AR_FOR_TARGET"; then | |
cd9a469c | 10786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10787 | $as_echo "$AR_FOR_TARGET" >&6; } | |
95a05732 | 10788 | else |
cd9a469c | 10789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10790 | $as_echo "no" >&6; } | |
95a05732 | 10791 | fi |
10792 | ||
cd9a469c | 10793 | |
95a05732 | 10794 | done |
10795 | fi | |
10796 | ||
10797 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10798 | for ncn_progname in ar; do |
cd9a469c | 10799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10800 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10801 | if test -x $with_build_time_tools/${ncn_progname}; then |
10802 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10804 | $as_echo "yes" >&6; } | |
c47832b1 | 10805 | break |
10806 | else | |
cd9a469c | 10807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10808 | $as_echo "no" >&6; } | |
c47832b1 | 10809 | fi |
10810 | done | |
10811 | fi | |
10812 | ||
10813 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
10814 | for ncn_progname in ar; do | |
10815 | if test -n "$ncn_target_tool_prefix"; then | |
10816 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10817 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 10818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10819 | $as_echo_n "checking for $ac_word... " >&6; } | |
10820 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10821 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 10822 | else |
c47832b1 | 10823 | if test -n "$AR_FOR_TARGET"; then |
10824 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 10825 | else |
b30fcfae | 10826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10827 | for as_dir in $PATH | |
10828 | do | |
10829 | IFS=$as_save_IFS | |
10830 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10831 | for ac_exec_ext in '' $ac_executable_extensions; do |
10832 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10833 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10834 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10835 | break 2 |
10836 | fi | |
10837 | done | |
cd9a469c | 10838 | done |
10839 | IFS=$as_save_IFS | |
b30fcfae | 10840 | |
ef8184c7 | 10841 | fi |
10842 | fi | |
b30fcfae | 10843 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
c47832b1 | 10844 | if test -n "$AR_FOR_TARGET"; then |
cd9a469c | 10845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10846 | $as_echo "$AR_FOR_TARGET" >&6; } | |
ef8184c7 | 10847 | else |
cd9a469c | 10848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10849 | $as_echo "no" >&6; } | |
ef8184c7 | 10850 | fi |
10851 | ||
cd9a469c | 10852 | |
c47832b1 | 10853 | fi |
10854 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
10855 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10856 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10858 | $as_echo_n "checking for $ac_word... " >&6; } | |
10859 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10860 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10861 | else |
10862 | if test -n "$AR_FOR_TARGET"; then | |
10863 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10864 | else | |
b30fcfae | 10865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10866 | for as_dir in $PATH | |
10867 | do | |
10868 | IFS=$as_save_IFS | |
10869 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10870 | for ac_exec_ext in '' $ac_executable_extensions; do |
10871 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10872 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10874 | break 2 |
10875 | fi | |
10876 | done | |
cd9a469c | 10877 | done |
10878 | IFS=$as_save_IFS | |
b30fcfae | 10879 | |
c47832b1 | 10880 | fi |
10881 | fi | |
b30fcfae | 10882 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
c47832b1 | 10883 | if test -n "$AR_FOR_TARGET"; then |
cd9a469c | 10884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10885 | $as_echo "$AR_FOR_TARGET" >&6; } | |
c47832b1 | 10886 | else |
cd9a469c | 10887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10888 | $as_echo "no" >&6; } | |
c47832b1 | 10889 | fi |
b30fcfae | 10890 | |
cd9a469c | 10891 | |
c47832b1 | 10892 | fi |
10893 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
10894 | done | |
10895 | fi | |
b30fcfae | 10896 | |
c47832b1 | 10897 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
10898 | set dummy ar | |
10899 | if test $build = $target ; then | |
10900 | AR_FOR_TARGET="$2" | |
10901 | else | |
10902 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
768691b5 | 10903 | fi |
b7ef8464 | 10904 | else |
10905 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
c47832b1 | 10906 | fi |
10907 | ||
ab0da556 | 10908 | else |
10909 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
c47832b1 | 10910 | fi |
10911 | ||
10912 | ||
10913 | ||
10914 | ||
10915 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
10916 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 10917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
10918 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
ab0da556 | 10919 | if test -x $with_build_time_tools/as; then |
10920 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
10921 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
cd9a469c | 10922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
10923 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
ab0da556 | 10924 | else |
cd9a469c | 10925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10926 | $as_echo "no" >&6; } | |
ab0da556 | 10927 | fi |
c47832b1 | 10928 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10929 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
b7ef8464 | 10930 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
10931 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
c47832b1 | 10932 | fi |
10933 | fi | |
38d7211b | 10934 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 10935 | # Extract the first word of "as", so it can be a program name with args. |
10936 | set dummy as; ac_word=$2 | |
cd9a469c | 10937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10938 | $as_echo_n "checking for $ac_word... " >&6; } | |
10939 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
10940 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10941 | else |
b30fcfae | 10942 | case $AS_FOR_TARGET in |
10943 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 10944 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
10945 | ;; | |
c47832b1 | 10946 | *) |
b30fcfae | 10947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10948 | for as_dir in $gcc_cv_tool_dirs | |
10949 | do | |
10950 | IFS=$as_save_IFS | |
10951 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10952 | for ac_exec_ext in '' $ac_executable_extensions; do |
10953 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10954 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 10955 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10956 | break 2 |
10957 | fi | |
10958 | done | |
cd9a469c | 10959 | done |
10960 | IFS=$as_save_IFS | |
b30fcfae | 10961 | |
c47832b1 | 10962 | ;; |
10963 | esac | |
10964 | fi | |
b30fcfae | 10965 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
c47832b1 | 10966 | if test -n "$AS_FOR_TARGET"; then |
cd9a469c | 10967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10968 | $as_echo "$AS_FOR_TARGET" >&6; } | |
c47832b1 | 10969 | else |
cd9a469c | 10970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10971 | $as_echo "no" >&6; } | |
c47832b1 | 10972 | fi |
10973 | ||
cd9a469c | 10974 | |
c47832b1 | 10975 | fi |
10976 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
95a05732 | 10977 | |
10978 | ||
10979 | if test -n "$AS_FOR_TARGET"; then | |
10980 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
10981 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10982 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10983 | fi | |
10984 | ||
10985 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10986 | for ncn_progname in as; do | |
10987 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10988 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10990 | $as_echo_n "checking for $ac_word... " >&6; } | |
10991 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10992 | $as_echo_n "(cached) " >&6 | |
95a05732 | 10993 | else |
10994 | if test -n "$AS_FOR_TARGET"; then | |
10995 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10996 | else | |
10997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10998 | for as_dir in $PATH | |
10999 | do | |
11000 | IFS=$as_save_IFS | |
11001 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11002 | for ac_exec_ext in '' $ac_executable_extensions; do |
11003 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11004 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11005 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11006 | break 2 |
11007 | fi | |
11008 | done | |
cd9a469c | 11009 | done |
11010 | IFS=$as_save_IFS | |
95a05732 | 11011 | |
11012 | fi | |
11013 | fi | |
11014 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11015 | if test -n "$AS_FOR_TARGET"; then | |
cd9a469c | 11016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11017 | $as_echo "$AS_FOR_TARGET" >&6; } | |
95a05732 | 11018 | else |
cd9a469c | 11019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11020 | $as_echo "no" >&6; } | |
95a05732 | 11021 | fi |
11022 | ||
cd9a469c | 11023 | |
95a05732 | 11024 | done |
11025 | fi | |
11026 | ||
11027 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11028 | for ncn_progname in as; do |
cd9a469c | 11029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11030 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11031 | if test -x $with_build_time_tools/${ncn_progname}; then |
11032 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11034 | $as_echo "yes" >&6; } | |
c47832b1 | 11035 | break |
11036 | else | |
cd9a469c | 11037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11038 | $as_echo "no" >&6; } | |
c47832b1 | 11039 | fi |
11040 | done | |
11041 | fi | |
11042 | ||
11043 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11044 | for ncn_progname in as; do | |
11045 | if test -n "$ncn_target_tool_prefix"; then | |
11046 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11047 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 11048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11049 | $as_echo_n "checking for $ac_word... " >&6; } | |
11050 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11051 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 11052 | else |
11053 | if test -n "$AS_FOR_TARGET"; then | |
11054 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11055 | else | |
b30fcfae | 11056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11057 | for as_dir in $PATH | |
11058 | do | |
11059 | IFS=$as_save_IFS | |
11060 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11061 | for ac_exec_ext in '' $ac_executable_extensions; do |
11062 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11063 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11065 | break 2 |
11066 | fi | |
11067 | done | |
cd9a469c | 11068 | done |
11069 | IFS=$as_save_IFS | |
b30fcfae | 11070 | |
c47832b1 | 11071 | fi |
11072 | fi | |
b30fcfae | 11073 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
c47832b1 | 11074 | if test -n "$AS_FOR_TARGET"; then |
cd9a469c | 11075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11076 | $as_echo "$AS_FOR_TARGET" >&6; } | |
c47832b1 | 11077 | else |
cd9a469c | 11078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11079 | $as_echo "no" >&6; } | |
c47832b1 | 11080 | fi |
11081 | ||
cd9a469c | 11082 | |
c47832b1 | 11083 | fi |
11084 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11085 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11086 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 11087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11088 | $as_echo_n "checking for $ac_word... " >&6; } | |
11089 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11090 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11091 | else |
c47832b1 | 11092 | if test -n "$AS_FOR_TARGET"; then |
11093 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11094 | else |
b30fcfae | 11095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11096 | for as_dir in $PATH | |
11097 | do | |
11098 | IFS=$as_save_IFS | |
11099 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11100 | for ac_exec_ext in '' $ac_executable_extensions; do |
11101 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11102 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11103 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11104 | break 2 |
11105 | fi | |
11106 | done | |
cd9a469c | 11107 | done |
11108 | IFS=$as_save_IFS | |
b30fcfae | 11109 | |
ef8184c7 | 11110 | fi |
11111 | fi | |
b30fcfae | 11112 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
c47832b1 | 11113 | if test -n "$AS_FOR_TARGET"; then |
cd9a469c | 11114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11115 | $as_echo "$AS_FOR_TARGET" >&6; } | |
ef8184c7 | 11116 | else |
cd9a469c | 11117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11118 | $as_echo "no" >&6; } | |
ef8184c7 | 11119 | fi |
b30fcfae | 11120 | |
cd9a469c | 11121 | |
c47832b1 | 11122 | fi |
11123 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11124 | done | |
11125 | fi | |
b30fcfae | 11126 | |
c47832b1 | 11127 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11128 | set dummy as | |
11129 | if test $build = $target ; then | |
11130 | AS_FOR_TARGET="$2" | |
11131 | else | |
11132 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ef8184c7 | 11133 | fi |
b7ef8464 | 11134 | else |
11135 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
c47832b1 | 11136 | fi |
768691b5 | 11137 | |
ab0da556 | 11138 | else |
11139 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
ef8184c7 | 11140 | fi |
11141 | ||
c47832b1 | 11142 | |
11143 | ||
11144 | ||
11145 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11146 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11148 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
ab0da556 | 11149 | if test -x $with_build_time_tools/dlltool; then |
11150 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11151 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
cd9a469c | 11152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11153 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
ab0da556 | 11154 | else |
cd9a469c | 11155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11156 | $as_echo "no" >&6; } | |
ab0da556 | 11157 | fi |
c47832b1 | 11158 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11159 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
b7ef8464 | 11160 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11161 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
c47832b1 | 11162 | fi |
11163 | fi | |
38d7211b | 11164 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11165 | # Extract the first word of "dlltool", so it can be a program name with args. |
11166 | set dummy dlltool; ac_word=$2 | |
cd9a469c | 11167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11168 | $as_echo_n "checking for $ac_word... " >&6; } | |
11169 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11170 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11171 | else |
b30fcfae | 11172 | case $DLLTOOL_FOR_TARGET in |
11173 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11174 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11175 | ;; | |
c47832b1 | 11176 | *) |
b30fcfae | 11177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11178 | for as_dir in $gcc_cv_tool_dirs | |
11179 | do | |
11180 | IFS=$as_save_IFS | |
11181 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11182 | for ac_exec_ext in '' $ac_executable_extensions; do |
11183 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11184 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11185 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11186 | break 2 |
11187 | fi | |
11188 | done | |
cd9a469c | 11189 | done |
11190 | IFS=$as_save_IFS | |
b30fcfae | 11191 | |
c47832b1 | 11192 | ;; |
11193 | esac | |
ef8184c7 | 11194 | fi |
b30fcfae | 11195 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
c47832b1 | 11196 | if test -n "$DLLTOOL_FOR_TARGET"; then |
cd9a469c | 11197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11198 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
ef8184c7 | 11199 | else |
cd9a469c | 11200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11201 | $as_echo "no" >&6; } | |
ef8184c7 | 11202 | fi |
11203 | ||
cd9a469c | 11204 | |
c47832b1 | 11205 | fi |
11206 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
95a05732 | 11207 | |
11208 | ||
11209 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11210 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11211 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11212 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11213 | fi | |
11214 | ||
11215 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11216 | for ncn_progname in dlltool; do | |
11217 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11218 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11220 | $as_echo_n "checking for $ac_word... " >&6; } | |
11221 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11222 | $as_echo_n "(cached) " >&6 | |
95a05732 | 11223 | else |
11224 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11225 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11226 | else | |
11227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11228 | for as_dir in $PATH | |
11229 | do | |
11230 | IFS=$as_save_IFS | |
11231 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11232 | for ac_exec_ext in '' $ac_executable_extensions; do |
11233 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11234 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11235 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11236 | break 2 |
11237 | fi | |
11238 | done | |
cd9a469c | 11239 | done |
11240 | IFS=$as_save_IFS | |
95a05732 | 11241 | |
11242 | fi | |
11243 | fi | |
11244 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11245 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
cd9a469c | 11246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11247 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
95a05732 | 11248 | else |
cd9a469c | 11249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11250 | $as_echo "no" >&6; } | |
95a05732 | 11251 | fi |
11252 | ||
cd9a469c | 11253 | |
95a05732 | 11254 | done |
11255 | fi | |
11256 | ||
11257 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11258 | for ncn_progname in dlltool; do |
cd9a469c | 11259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11260 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11261 | if test -x $with_build_time_tools/${ncn_progname}; then |
11262 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11264 | $as_echo "yes" >&6; } | |
c47832b1 | 11265 | break |
11266 | else | |
cd9a469c | 11267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11268 | $as_echo "no" >&6; } | |
c47832b1 | 11269 | fi |
11270 | done | |
11271 | fi | |
11272 | ||
11273 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11274 | for ncn_progname in dlltool; do | |
11275 | if test -n "$ncn_target_tool_prefix"; then | |
11276 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11277 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 11278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11279 | $as_echo_n "checking for $ac_word... " >&6; } | |
11280 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11281 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11282 | else |
c47832b1 | 11283 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11284 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11285 | else |
b30fcfae | 11286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11287 | for as_dir in $PATH | |
11288 | do | |
11289 | IFS=$as_save_IFS | |
11290 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11291 | for ac_exec_ext in '' $ac_executable_extensions; do |
11292 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11293 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11294 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11295 | break 2 |
11296 | fi | |
11297 | done | |
cd9a469c | 11298 | done |
11299 | IFS=$as_save_IFS | |
b30fcfae | 11300 | |
ef8184c7 | 11301 | fi |
11302 | fi | |
b30fcfae | 11303 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
c47832b1 | 11304 | if test -n "$DLLTOOL_FOR_TARGET"; then |
cd9a469c | 11305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11306 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
ef8184c7 | 11307 | else |
cd9a469c | 11308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11309 | $as_echo "no" >&6; } | |
ef8184c7 | 11310 | fi |
ef8184c7 | 11311 | |
cd9a469c | 11312 | |
c47832b1 | 11313 | fi |
11314 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11315 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11316 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11318 | $as_echo_n "checking for $ac_word... " >&6; } | |
11319 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11320 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11321 | else |
c47832b1 | 11322 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11323 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11324 | else |
b30fcfae | 11325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11326 | for as_dir in $PATH | |
11327 | do | |
11328 | IFS=$as_save_IFS | |
11329 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11330 | for ac_exec_ext in '' $ac_executable_extensions; do |
11331 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11332 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11333 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11334 | break 2 |
11335 | fi | |
11336 | done | |
cd9a469c | 11337 | done |
11338 | IFS=$as_save_IFS | |
b30fcfae | 11339 | |
ef8184c7 | 11340 | fi |
11341 | fi | |
b30fcfae | 11342 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
c47832b1 | 11343 | if test -n "$DLLTOOL_FOR_TARGET"; then |
cd9a469c | 11344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11345 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
ef8184c7 | 11346 | else |
cd9a469c | 11347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11348 | $as_echo "no" >&6; } | |
ef8184c7 | 11349 | fi |
b30fcfae | 11350 | |
cd9a469c | 11351 | |
c47832b1 | 11352 | fi |
11353 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11354 | done | |
11355 | fi | |
b30fcfae | 11356 | |
c47832b1 | 11357 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11358 | set dummy dlltool | |
11359 | if test $build = $target ; then | |
11360 | DLLTOOL_FOR_TARGET="$2" | |
11361 | else | |
11362 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11363 | fi | |
b7ef8464 | 11364 | else |
11365 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
c47832b1 | 11366 | fi |
11367 | ||
ab0da556 | 11368 | else |
11369 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
c47832b1 | 11370 | fi |
11371 | ||
ef8184c7 | 11372 | |
c47832b1 | 11373 | |
11374 | ||
11375 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11376 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11378 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
ab0da556 | 11379 | if test -x $with_build_time_tools/ld; then |
11380 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11381 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
cd9a469c | 11382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11383 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
ab0da556 | 11384 | else |
cd9a469c | 11385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11386 | $as_echo "no" >&6; } | |
ab0da556 | 11387 | fi |
c47832b1 | 11388 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11389 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
b7ef8464 | 11390 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11391 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
768691b5 | 11392 | fi |
c47832b1 | 11393 | fi |
38d7211b | 11394 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11395 | # Extract the first word of "ld", so it can be a program name with args. |
11396 | set dummy ld; ac_word=$2 | |
cd9a469c | 11397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11398 | $as_echo_n "checking for $ac_word... " >&6; } | |
11399 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11400 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11401 | else |
b30fcfae | 11402 | case $LD_FOR_TARGET in |
11403 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11404 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11405 | ;; | |
c47832b1 | 11406 | *) |
b30fcfae | 11407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11408 | for as_dir in $gcc_cv_tool_dirs | |
11409 | do | |
11410 | IFS=$as_save_IFS | |
11411 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11412 | for ac_exec_ext in '' $ac_executable_extensions; do |
11413 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11414 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11415 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11416 | break 2 |
11417 | fi | |
11418 | done | |
cd9a469c | 11419 | done |
11420 | IFS=$as_save_IFS | |
b30fcfae | 11421 | |
c47832b1 | 11422 | ;; |
11423 | esac | |
ef8184c7 | 11424 | fi |
b30fcfae | 11425 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
c47832b1 | 11426 | if test -n "$LD_FOR_TARGET"; then |
cd9a469c | 11427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11428 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ef8184c7 | 11429 | else |
cd9a469c | 11430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11431 | $as_echo "no" >&6; } | |
ef8184c7 | 11432 | fi |
768691b5 | 11433 | |
cd9a469c | 11434 | |
c47832b1 | 11435 | fi |
11436 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
95a05732 | 11437 | |
11438 | ||
11439 | if test -n "$LD_FOR_TARGET"; then | |
11440 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11441 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11442 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11443 | fi | |
11444 | ||
11445 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11446 | for ncn_progname in ld; do | |
11447 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11448 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11450 | $as_echo_n "checking for $ac_word... " >&6; } | |
11451 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11452 | $as_echo_n "(cached) " >&6 | |
95a05732 | 11453 | else |
11454 | if test -n "$LD_FOR_TARGET"; then | |
11455 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11456 | else | |
11457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11458 | for as_dir in $PATH | |
11459 | do | |
11460 | IFS=$as_save_IFS | |
11461 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11462 | for ac_exec_ext in '' $ac_executable_extensions; do |
11463 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11464 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11465 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11466 | break 2 |
11467 | fi | |
11468 | done | |
cd9a469c | 11469 | done |
11470 | IFS=$as_save_IFS | |
95a05732 | 11471 | |
11472 | fi | |
11473 | fi | |
11474 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11475 | if test -n "$LD_FOR_TARGET"; then | |
cd9a469c | 11476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11477 | $as_echo "$LD_FOR_TARGET" >&6; } | |
95a05732 | 11478 | else |
cd9a469c | 11479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11480 | $as_echo "no" >&6; } | |
95a05732 | 11481 | fi |
11482 | ||
cd9a469c | 11483 | |
95a05732 | 11484 | done |
11485 | fi | |
11486 | ||
11487 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11488 | for ncn_progname in ld; do |
cd9a469c | 11489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11490 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11491 | if test -x $with_build_time_tools/${ncn_progname}; then |
11492 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11494 | $as_echo "yes" >&6; } | |
c47832b1 | 11495 | break |
11496 | else | |
cd9a469c | 11497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11498 | $as_echo "no" >&6; } | |
c47832b1 | 11499 | fi |
11500 | done | |
bb612911 | 11501 | fi |
11502 | ||
c47832b1 | 11503 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
11504 | for ncn_progname in ld; do | |
11505 | if test -n "$ncn_target_tool_prefix"; then | |
11506 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11507 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 11508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11509 | $as_echo_n "checking for $ac_word... " >&6; } | |
11510 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11511 | $as_echo_n "(cached) " >&6 | |
bb612911 | 11512 | else |
ef8184c7 | 11513 | if test -n "$LD_FOR_TARGET"; then |
11514 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
bb612911 | 11515 | else |
b30fcfae | 11516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11517 | for as_dir in $PATH | |
11518 | do | |
11519 | IFS=$as_save_IFS | |
11520 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11521 | for ac_exec_ext in '' $ac_executable_extensions; do |
11522 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11523 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11524 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11525 | break 2 |
11526 | fi | |
11527 | done | |
cd9a469c | 11528 | done |
11529 | IFS=$as_save_IFS | |
b30fcfae | 11530 | |
bb612911 | 11531 | fi |
11532 | fi | |
b30fcfae | 11533 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
ef8184c7 | 11534 | if test -n "$LD_FOR_TARGET"; then |
cd9a469c | 11535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11536 | $as_echo "$LD_FOR_TARGET" >&6; } | |
bb612911 | 11537 | else |
cd9a469c | 11538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11539 | $as_echo "no" >&6; } | |
bb612911 | 11540 | fi |
11541 | ||
cd9a469c | 11542 | |
c47832b1 | 11543 | fi |
11544 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11545 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11546 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 11547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11548 | $as_echo_n "checking for $ac_word... " >&6; } | |
11549 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11550 | $as_echo_n "(cached) " >&6 | |
bb612911 | 11551 | else |
768691b5 | 11552 | if test -n "$LD_FOR_TARGET"; then |
11553 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
bb612911 | 11554 | else |
b30fcfae | 11555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11556 | for as_dir in $PATH | |
11557 | do | |
11558 | IFS=$as_save_IFS | |
11559 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11560 | for ac_exec_ext in '' $ac_executable_extensions; do |
11561 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11562 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11563 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11564 | break 2 |
11565 | fi | |
11566 | done | |
cd9a469c | 11567 | done |
11568 | IFS=$as_save_IFS | |
b30fcfae | 11569 | |
bb612911 | 11570 | fi |
11571 | fi | |
b30fcfae | 11572 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
768691b5 | 11573 | if test -n "$LD_FOR_TARGET"; then |
cd9a469c | 11574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11575 | $as_echo "$LD_FOR_TARGET" >&6; } | |
bb612911 | 11576 | else |
cd9a469c | 11577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11578 | $as_echo "no" >&6; } | |
bb612911 | 11579 | fi |
b30fcfae | 11580 | |
cd9a469c | 11581 | |
c47832b1 | 11582 | fi |
11583 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11584 | done | |
11585 | fi | |
b30fcfae | 11586 | |
768691b5 | 11587 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11588 | set dummy ld | |
11589 | if test $build = $target ; then | |
11590 | LD_FOR_TARGET="$2" | |
bb612911 | 11591 | else |
768691b5 | 11592 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
bb612911 | 11593 | fi |
b7ef8464 | 11594 | else |
11595 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
bb612911 | 11596 | fi |
11597 | ||
ab0da556 | 11598 | else |
11599 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
c47832b1 | 11600 | fi |
11601 | ||
11602 | ||
11603 | ||
11604 | ||
11605 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11606 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11608 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
ab0da556 | 11609 | if test -x $with_build_time_tools/lipo; then |
11610 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11611 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
cd9a469c | 11612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11613 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
ab0da556 | 11614 | else |
cd9a469c | 11615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11616 | $as_echo "no" >&6; } | |
ab0da556 | 11617 | fi |
c47832b1 | 11618 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11619 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
b7ef8464 | 11620 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11621 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
c47832b1 | 11622 | fi |
11623 | fi | |
95a05732 | 11624 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11625 | # Extract the first word of "lipo", so it can be a program name with args. | |
11626 | set dummy lipo; ac_word=$2 | |
cd9a469c | 11627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11628 | $as_echo_n "checking for $ac_word... " >&6; } | |
11629 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11630 | $as_echo_n "(cached) " >&6 | |
95a05732 | 11631 | else |
11632 | case $LIPO_FOR_TARGET in | |
11633 | [\\/]* | ?:[\\/]*) | |
11634 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11635 | ;; | |
11636 | *) | |
11637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11638 | for as_dir in $gcc_cv_tool_dirs | |
11639 | do | |
11640 | IFS=$as_save_IFS | |
11641 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11642 | for ac_exec_ext in '' $ac_executable_extensions; do |
11643 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11644 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11645 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11646 | break 2 |
11647 | fi | |
11648 | done | |
cd9a469c | 11649 | done |
11650 | IFS=$as_save_IFS | |
95a05732 | 11651 | |
11652 | ;; | |
11653 | esac | |
11654 | fi | |
11655 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
95a05732 | 11656 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 11657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11658 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
95a05732 | 11659 | else |
cd9a469c | 11660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11661 | $as_echo "no" >&6; } | |
95a05732 | 11662 | fi |
11663 | ||
cd9a469c | 11664 | |
95a05732 | 11665 | fi |
11666 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11667 | ||
11668 | ||
11669 | if test -n "$LIPO_FOR_TARGET"; then | |
11670 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11671 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11672 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11673 | fi | |
11674 | ||
11675 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11676 | for ncn_progname in lipo; do | |
11677 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11678 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11680 | $as_echo_n "checking for $ac_word... " >&6; } | |
11681 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11682 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 11683 | else |
95a05732 | 11684 | if test -n "$LIPO_FOR_TARGET"; then |
11685 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11686 | else | |
11687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11688 | for as_dir in $PATH | |
b30fcfae | 11689 | do |
11690 | IFS=$as_save_IFS | |
11691 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11692 | for ac_exec_ext in '' $ac_executable_extensions; do |
11693 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11694 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11695 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11696 | break 2 |
11697 | fi | |
11698 | done | |
cd9a469c | 11699 | done |
11700 | IFS=$as_save_IFS | |
b30fcfae | 11701 | |
c47832b1 | 11702 | fi |
95a05732 | 11703 | fi |
11704 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
c47832b1 | 11705 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 11706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11707 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
c47832b1 | 11708 | else |
cd9a469c | 11709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11710 | $as_echo "no" >&6; } | |
c47832b1 | 11711 | fi |
11712 | ||
cd9a469c | 11713 | |
95a05732 | 11714 | done |
c47832b1 | 11715 | fi |
95a05732 | 11716 | |
11717 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11718 | for ncn_progname in lipo; do |
cd9a469c | 11719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11720 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11721 | if test -x $with_build_time_tools/${ncn_progname}; then |
11722 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11724 | $as_echo "yes" >&6; } | |
c47832b1 | 11725 | break |
11726 | else | |
cd9a469c | 11727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11728 | $as_echo "no" >&6; } | |
c47832b1 | 11729 | fi |
11730 | done | |
11731 | fi | |
11732 | ||
11733 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11734 | for ncn_progname in lipo; do | |
11735 | if test -n "$ncn_target_tool_prefix"; then | |
11736 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11737 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 11738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11739 | $as_echo_n "checking for $ac_word... " >&6; } | |
11740 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11741 | $as_echo_n "(cached) " >&6 | |
9fec3fa8 | 11742 | else |
11743 | if test -n "$LIPO_FOR_TARGET"; then | |
11744 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11745 | else | |
b30fcfae | 11746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11747 | for as_dir in $PATH | |
11748 | do | |
11749 | IFS=$as_save_IFS | |
11750 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11751 | for ac_exec_ext in '' $ac_executable_extensions; do |
11752 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11753 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11755 | break 2 |
11756 | fi | |
11757 | done | |
cd9a469c | 11758 | done |
11759 | IFS=$as_save_IFS | |
b30fcfae | 11760 | |
9fec3fa8 | 11761 | fi |
11762 | fi | |
b30fcfae | 11763 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
9fec3fa8 | 11764 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 11765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11766 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9fec3fa8 | 11767 | else |
cd9a469c | 11768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11769 | $as_echo "no" >&6; } | |
9fec3fa8 | 11770 | fi |
11771 | ||
cd9a469c | 11772 | |
c47832b1 | 11773 | fi |
11774 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11775 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 11776 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 11777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11778 | $as_echo_n "checking for $ac_word... " >&6; } | |
11779 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11780 | $as_echo_n "(cached) " >&6 | |
9fec3fa8 | 11781 | else |
11782 | if test -n "$LIPO_FOR_TARGET"; then | |
9886f3d1 | 11783 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
11784 | else | |
b30fcfae | 11785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11786 | for as_dir in $PATH | |
11787 | do | |
11788 | IFS=$as_save_IFS | |
11789 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11790 | for ac_exec_ext in '' $ac_executable_extensions; do |
11791 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11792 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11794 | break 2 |
11795 | fi | |
11796 | done | |
cd9a469c | 11797 | done |
11798 | IFS=$as_save_IFS | |
b30fcfae | 11799 | |
9fec3fa8 | 11800 | fi |
11801 | fi | |
b30fcfae | 11802 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
9fec3fa8 | 11803 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 11804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11805 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9fec3fa8 | 11806 | else |
cd9a469c | 11807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11808 | $as_echo "no" >&6; } | |
9fec3fa8 | 11809 | fi |
b30fcfae | 11810 | |
cd9a469c | 11811 | |
c47832b1 | 11812 | fi |
11813 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
11814 | done | |
11815 | fi | |
b30fcfae | 11816 | |
9fec3fa8 | 11817 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
11818 | set dummy lipo | |
11819 | if test $build = $target ; then | |
11820 | LIPO_FOR_TARGET="$2" | |
11821 | else | |
11822 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11823 | fi | |
b7ef8464 | 11824 | else |
11825 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
9fec3fa8 | 11826 | fi |
11827 | ||
ab0da556 | 11828 | else |
11829 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
c47832b1 | 11830 | fi |
11831 | ||
11832 | ||
11833 | ||
11834 | ||
11835 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11836 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
11838 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
ab0da556 | 11839 | if test -x $with_build_time_tools/nm; then |
11840 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
11841 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
cd9a469c | 11842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
11843 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
ab0da556 | 11844 | else |
cd9a469c | 11845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11846 | $as_echo "no" >&6; } | |
ab0da556 | 11847 | fi |
c47832b1 | 11848 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11849 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
b7ef8464 | 11850 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
11851 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
c47832b1 | 11852 | fi |
11853 | fi | |
38d7211b | 11854 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11855 | # Extract the first word of "nm", so it can be a program name with args. |
11856 | set dummy nm; ac_word=$2 | |
cd9a469c | 11857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11858 | $as_echo_n "checking for $ac_word... " >&6; } | |
11859 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
11860 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 11861 | else |
b30fcfae | 11862 | case $NM_FOR_TARGET in |
11863 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11864 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
11865 | ;; | |
c47832b1 | 11866 | *) |
b30fcfae | 11867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11868 | for as_dir in $gcc_cv_tool_dirs | |
11869 | do | |
11870 | IFS=$as_save_IFS | |
11871 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11872 | for ac_exec_ext in '' $ac_executable_extensions; do |
11873 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11874 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11876 | break 2 |
11877 | fi | |
11878 | done | |
cd9a469c | 11879 | done |
11880 | IFS=$as_save_IFS | |
b30fcfae | 11881 | |
c47832b1 | 11882 | ;; |
11883 | esac | |
11884 | fi | |
b30fcfae | 11885 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
c47832b1 | 11886 | if test -n "$NM_FOR_TARGET"; then |
cd9a469c | 11887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11888 | $as_echo "$NM_FOR_TARGET" >&6; } | |
c47832b1 | 11889 | else |
cd9a469c | 11890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11891 | $as_echo "no" >&6; } | |
c47832b1 | 11892 | fi |
11893 | ||
cd9a469c | 11894 | |
c47832b1 | 11895 | fi |
11896 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
95a05732 | 11897 | |
11898 | ||
11899 | if test -n "$NM_FOR_TARGET"; then | |
11900 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
11901 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11902 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11903 | fi | |
11904 | ||
11905 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11906 | for ncn_progname in nm; do | |
11907 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11908 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11910 | $as_echo_n "checking for $ac_word... " >&6; } | |
11911 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11912 | $as_echo_n "(cached) " >&6 | |
95a05732 | 11913 | else |
11914 | if test -n "$NM_FOR_TARGET"; then | |
11915 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
11916 | else | |
11917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11918 | for as_dir in $PATH | |
11919 | do | |
11920 | IFS=$as_save_IFS | |
11921 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11922 | for ac_exec_ext in '' $ac_executable_extensions; do |
11923 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11924 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11925 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11926 | break 2 |
11927 | fi | |
11928 | done | |
cd9a469c | 11929 | done |
11930 | IFS=$as_save_IFS | |
95a05732 | 11931 | |
11932 | fi | |
11933 | fi | |
11934 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11935 | if test -n "$NM_FOR_TARGET"; then | |
cd9a469c | 11936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11937 | $as_echo "$NM_FOR_TARGET" >&6; } | |
95a05732 | 11938 | else |
cd9a469c | 11939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11940 | $as_echo "no" >&6; } | |
95a05732 | 11941 | fi |
11942 | ||
cd9a469c | 11943 | |
95a05732 | 11944 | done |
11945 | fi | |
11946 | ||
11947 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11948 | for ncn_progname in nm; do |
cd9a469c | 11949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11950 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11951 | if test -x $with_build_time_tools/${ncn_progname}; then |
11952 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11954 | $as_echo "yes" >&6; } | |
c47832b1 | 11955 | break |
11956 | else | |
cd9a469c | 11957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11958 | $as_echo "no" >&6; } | |
c47832b1 | 11959 | fi |
11960 | done | |
11961 | fi | |
11962 | ||
11963 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
11964 | for ncn_progname in nm; do | |
11965 | if test -n "$ncn_target_tool_prefix"; then | |
11966 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 11967 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 11968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11969 | $as_echo_n "checking for $ac_word... " >&6; } | |
11970 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11971 | $as_echo_n "(cached) " >&6 | |
bb612911 | 11972 | else |
ef8184c7 | 11973 | if test -n "$NM_FOR_TARGET"; then |
11974 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
bb612911 | 11975 | else |
b30fcfae | 11976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11977 | for as_dir in $PATH | |
11978 | do | |
11979 | IFS=$as_save_IFS | |
11980 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11981 | for ac_exec_ext in '' $ac_executable_extensions; do |
11982 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11983 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11985 | break 2 |
11986 | fi | |
11987 | done | |
cd9a469c | 11988 | done |
11989 | IFS=$as_save_IFS | |
b30fcfae | 11990 | |
bb612911 | 11991 | fi |
11992 | fi | |
b30fcfae | 11993 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
ef8184c7 | 11994 | if test -n "$NM_FOR_TARGET"; then |
cd9a469c | 11995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11996 | $as_echo "$NM_FOR_TARGET" >&6; } | |
bb612911 | 11997 | else |
cd9a469c | 11998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11999 | $as_echo "no" >&6; } | |
bb612911 | 12000 | fi |
12001 | ||
cd9a469c | 12002 | |
c47832b1 | 12003 | fi |
12004 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12005 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12006 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12008 | $as_echo_n "checking for $ac_word... " >&6; } | |
12009 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12010 | $as_echo_n "(cached) " >&6 | |
bb612911 | 12011 | else |
768691b5 | 12012 | if test -n "$NM_FOR_TARGET"; then |
12013 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12014 | else |
b30fcfae | 12015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12016 | for as_dir in $PATH | |
12017 | do | |
12018 | IFS=$as_save_IFS | |
12019 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12020 | for ac_exec_ext in '' $ac_executable_extensions; do |
12021 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12022 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12024 | break 2 |
12025 | fi | |
12026 | done | |
cd9a469c | 12027 | done |
12028 | IFS=$as_save_IFS | |
b30fcfae | 12029 | |
bb612911 | 12030 | fi |
12031 | fi | |
b30fcfae | 12032 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
768691b5 | 12033 | if test -n "$NM_FOR_TARGET"; then |
cd9a469c | 12034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12035 | $as_echo "$NM_FOR_TARGET" >&6; } | |
bb612911 | 12036 | else |
cd9a469c | 12037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12038 | $as_echo "no" >&6; } | |
bb612911 | 12039 | fi |
b30fcfae | 12040 | |
cd9a469c | 12041 | |
c47832b1 | 12042 | fi |
12043 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12044 | done | |
12045 | fi | |
b30fcfae | 12046 | |
768691b5 | 12047 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12048 | set dummy nm | |
12049 | if test $build = $target ; then | |
12050 | NM_FOR_TARGET="$2" | |
bb612911 | 12051 | else |
768691b5 | 12052 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
bb612911 | 12053 | fi |
b7ef8464 | 12054 | else |
12055 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
bb612911 | 12056 | fi |
12057 | ||
ab0da556 | 12058 | else |
12059 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
c47832b1 | 12060 | fi |
12061 | ||
12062 | ||
12063 | ||
12064 | ||
fc740d70 | 12065 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12066 | if test -n "$with_build_time_tools"; then | |
12067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12068 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12069 | if test -x $with_build_time_tools/objcopy; then | |
12070 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12071 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12073 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12074 | else | |
12075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12076 | $as_echo "no" >&6; } | |
12077 | fi | |
12078 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12079 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12080 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12081 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12082 | fi | |
12083 | fi | |
12084 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12085 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12086 | set dummy objcopy; ac_word=$2 | |
12087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12088 | $as_echo_n "checking for $ac_word... " >&6; } | |
12089 | if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12090 | $as_echo_n "(cached) " >&6 | |
12091 | else | |
12092 | case $OBJCOPY_FOR_TARGET in | |
12093 | [\\/]* | ?:[\\/]*) | |
12094 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12095 | ;; | |
12096 | *) | |
12097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12098 | for as_dir in $gcc_cv_tool_dirs | |
12099 | do | |
12100 | IFS=$as_save_IFS | |
12101 | test -z "$as_dir" && as_dir=. | |
12102 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12103 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12104 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12105 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12106 | break 2 | |
12107 | fi | |
12108 | done | |
12109 | done | |
12110 | IFS=$as_save_IFS | |
12111 | ||
12112 | ;; | |
12113 | esac | |
12114 | fi | |
12115 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12116 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12118 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12119 | else | |
12120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12121 | $as_echo "no" >&6; } | |
12122 | fi | |
12123 | ||
12124 | ||
12125 | fi | |
12126 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12127 | ||
12128 | ||
12129 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12130 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12131 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12132 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12133 | fi | |
12134 | ||
12135 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12136 | for ncn_progname in objcopy; do | |
12137 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12138 | set dummy ${ncn_progname}; ac_word=$2 | |
12139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12140 | $as_echo_n "checking for $ac_word... " >&6; } | |
12141 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12142 | $as_echo_n "(cached) " >&6 | |
12143 | else | |
12144 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12145 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12146 | else | |
12147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12148 | for as_dir in $PATH | |
12149 | do | |
12150 | IFS=$as_save_IFS | |
12151 | test -z "$as_dir" && as_dir=. | |
12152 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12153 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12154 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12156 | break 2 | |
12157 | fi | |
12158 | done | |
12159 | done | |
12160 | IFS=$as_save_IFS | |
12161 | ||
12162 | fi | |
12163 | fi | |
12164 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12165 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12167 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12168 | else | |
12169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12170 | $as_echo "no" >&6; } | |
12171 | fi | |
12172 | ||
12173 | ||
12174 | done | |
12175 | fi | |
12176 | ||
12177 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12178 | for ncn_progname in objcopy; do | |
12179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12180 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12181 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12182 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12184 | $as_echo "yes" >&6; } | |
12185 | break | |
12186 | else | |
12187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12188 | $as_echo "no" >&6; } | |
12189 | fi | |
12190 | done | |
12191 | fi | |
12192 | ||
12193 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12194 | for ncn_progname in objcopy; do | |
12195 | if test -n "$ncn_target_tool_prefix"; then | |
12196 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12197 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12199 | $as_echo_n "checking for $ac_word... " >&6; } | |
12200 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12201 | $as_echo_n "(cached) " >&6 | |
12202 | else | |
12203 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12204 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12205 | else | |
12206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12207 | for as_dir in $PATH | |
12208 | do | |
12209 | IFS=$as_save_IFS | |
12210 | test -z "$as_dir" && as_dir=. | |
12211 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12212 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12213 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12215 | break 2 | |
12216 | fi | |
12217 | done | |
12218 | done | |
12219 | IFS=$as_save_IFS | |
12220 | ||
12221 | fi | |
12222 | fi | |
12223 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12224 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12226 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12227 | else | |
12228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12229 | $as_echo "no" >&6; } | |
12230 | fi | |
12231 | ||
12232 | ||
12233 | fi | |
12234 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12235 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12236 | set dummy ${ncn_progname}; ac_word=$2 | |
12237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12238 | $as_echo_n "checking for $ac_word... " >&6; } | |
12239 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12240 | $as_echo_n "(cached) " >&6 | |
12241 | else | |
12242 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12243 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12244 | else | |
12245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12246 | for as_dir in $PATH | |
12247 | do | |
12248 | IFS=$as_save_IFS | |
12249 | test -z "$as_dir" && as_dir=. | |
12250 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12251 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12252 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12253 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12254 | break 2 | |
12255 | fi | |
12256 | done | |
12257 | done | |
12258 | IFS=$as_save_IFS | |
12259 | ||
12260 | fi | |
12261 | fi | |
12262 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12263 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12265 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12266 | else | |
12267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12268 | $as_echo "no" >&6; } | |
12269 | fi | |
12270 | ||
12271 | ||
12272 | fi | |
12273 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12274 | done | |
12275 | fi | |
12276 | ||
12277 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12278 | set dummy objcopy | |
12279 | if test $build = $target ; then | |
12280 | OBJCOPY_FOR_TARGET="$2" | |
12281 | else | |
12282 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12283 | fi | |
12284 | else | |
12285 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12286 | fi | |
12287 | ||
12288 | else | |
12289 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12290 | fi | |
12291 | ||
12292 | ||
12293 | ||
12294 | ||
c47832b1 | 12295 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12296 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 12297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12298 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
ab0da556 | 12299 | if test -x $with_build_time_tools/objdump; then |
12300 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12301 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
cd9a469c | 12302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12303 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
ab0da556 | 12304 | else |
cd9a469c | 12305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12306 | $as_echo "no" >&6; } | |
ab0da556 | 12307 | fi |
c47832b1 | 12308 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12309 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
b7ef8464 | 12310 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12311 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
c47832b1 | 12312 | fi |
12313 | fi | |
38d7211b | 12314 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 12315 | # Extract the first word of "objdump", so it can be a program name with args. |
12316 | set dummy objdump; ac_word=$2 | |
cd9a469c | 12317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12318 | $as_echo_n "checking for $ac_word... " >&6; } | |
12319 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12320 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 12321 | else |
b30fcfae | 12322 | case $OBJDUMP_FOR_TARGET in |
12323 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 12324 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12325 | ;; | |
c47832b1 | 12326 | *) |
b30fcfae | 12327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12328 | for as_dir in $gcc_cv_tool_dirs | |
12329 | do | |
12330 | IFS=$as_save_IFS | |
12331 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12332 | for ac_exec_ext in '' $ac_executable_extensions; do |
12333 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12334 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 12335 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12336 | break 2 |
12337 | fi | |
12338 | done | |
cd9a469c | 12339 | done |
12340 | IFS=$as_save_IFS | |
b30fcfae | 12341 | |
c47832b1 | 12342 | ;; |
12343 | esac | |
12344 | fi | |
b30fcfae | 12345 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
c47832b1 | 12346 | if test -n "$OBJDUMP_FOR_TARGET"; then |
cd9a469c | 12347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12348 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
c47832b1 | 12349 | else |
cd9a469c | 12350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12351 | $as_echo "no" >&6; } | |
c47832b1 | 12352 | fi |
12353 | ||
cd9a469c | 12354 | |
c47832b1 | 12355 | fi |
12356 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
95a05732 | 12357 | |
12358 | ||
12359 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12360 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12361 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12362 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12363 | fi | |
12364 | ||
12365 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12366 | for ncn_progname in objdump; do | |
12367 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12368 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12370 | $as_echo_n "checking for $ac_word... " >&6; } | |
12371 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12372 | $as_echo_n "(cached) " >&6 | |
95a05732 | 12373 | else |
12374 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12375 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12376 | else | |
12377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12378 | for as_dir in $PATH | |
12379 | do | |
12380 | IFS=$as_save_IFS | |
12381 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12382 | for ac_exec_ext in '' $ac_executable_extensions; do |
12383 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 12384 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12385 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 12386 | break 2 |
12387 | fi | |
12388 | done | |
cd9a469c | 12389 | done |
12390 | IFS=$as_save_IFS | |
95a05732 | 12391 | |
12392 | fi | |
12393 | fi | |
12394 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12395 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
cd9a469c | 12396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12397 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
95a05732 | 12398 | else |
cd9a469c | 12399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12400 | $as_echo "no" >&6; } | |
95a05732 | 12401 | fi |
12402 | ||
cd9a469c | 12403 | |
95a05732 | 12404 | done |
12405 | fi | |
12406 | ||
12407 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12408 | for ncn_progname in objdump; do |
cd9a469c | 12409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12410 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12411 | if test -x $with_build_time_tools/${ncn_progname}; then |
12412 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12414 | $as_echo "yes" >&6; } | |
c47832b1 | 12415 | break |
12416 | else | |
cd9a469c | 12417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12418 | $as_echo "no" >&6; } | |
c47832b1 | 12419 | fi |
12420 | done | |
12421 | fi | |
12422 | ||
12423 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12424 | for ncn_progname in objdump; do | |
12425 | if test -n "$ncn_target_tool_prefix"; then | |
12426 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12427 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 12428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12429 | $as_echo_n "checking for $ac_word... " >&6; } | |
12430 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12431 | $as_echo_n "(cached) " >&6 | |
ae74ffb7 | 12432 | else |
12433 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12434 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12435 | else | |
b30fcfae | 12436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12437 | for as_dir in $PATH | |
12438 | do | |
12439 | IFS=$as_save_IFS | |
12440 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12441 | for ac_exec_ext in '' $ac_executable_extensions; do |
12442 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12443 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12445 | break 2 |
12446 | fi | |
12447 | done | |
cd9a469c | 12448 | done |
12449 | IFS=$as_save_IFS | |
b30fcfae | 12450 | |
ae74ffb7 | 12451 | fi |
12452 | fi | |
b30fcfae | 12453 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
ae74ffb7 | 12454 | if test -n "$OBJDUMP_FOR_TARGET"; then |
cd9a469c | 12455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12456 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
ae74ffb7 | 12457 | else |
cd9a469c | 12458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12459 | $as_echo "no" >&6; } | |
ae74ffb7 | 12460 | fi |
12461 | ||
cd9a469c | 12462 | |
c47832b1 | 12463 | fi |
12464 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12465 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
ae74ffb7 | 12466 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12468 | $as_echo_n "checking for $ac_word... " >&6; } | |
12469 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12470 | $as_echo_n "(cached) " >&6 | |
ae74ffb7 | 12471 | else |
12472 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12473 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12474 | else | |
b30fcfae | 12475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12476 | for as_dir in $PATH | |
12477 | do | |
12478 | IFS=$as_save_IFS | |
12479 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12480 | for ac_exec_ext in '' $ac_executable_extensions; do |
12481 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12482 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12484 | break 2 |
12485 | fi | |
12486 | done | |
cd9a469c | 12487 | done |
12488 | IFS=$as_save_IFS | |
b30fcfae | 12489 | |
ae74ffb7 | 12490 | fi |
12491 | fi | |
b30fcfae | 12492 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
ae74ffb7 | 12493 | if test -n "$OBJDUMP_FOR_TARGET"; then |
cd9a469c | 12494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12495 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
ae74ffb7 | 12496 | else |
cd9a469c | 12497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12498 | $as_echo "no" >&6; } | |
ae74ffb7 | 12499 | fi |
b30fcfae | 12500 | |
cd9a469c | 12501 | |
c47832b1 | 12502 | fi |
12503 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12504 | done | |
12505 | fi | |
b30fcfae | 12506 | |
ae74ffb7 | 12507 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12508 | set dummy objdump | |
12509 | if test $build = $target ; then | |
12510 | OBJDUMP_FOR_TARGET="$2" | |
12511 | else | |
12512 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12513 | fi | |
b7ef8464 | 12514 | else |
12515 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
ae74ffb7 | 12516 | fi |
12517 | ||
ab0da556 | 12518 | else |
12519 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
c47832b1 | 12520 | fi |
12521 | ||
12522 | ||
12523 | ||
12524 | ||
12525 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12526 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 12527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12528 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
ab0da556 | 12529 | if test -x $with_build_time_tools/ranlib; then |
12530 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12531 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
cd9a469c | 12532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12533 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
ab0da556 | 12534 | else |
cd9a469c | 12535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12536 | $as_echo "no" >&6; } | |
ab0da556 | 12537 | fi |
c47832b1 | 12538 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12539 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
b7ef8464 | 12540 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12541 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
c47832b1 | 12542 | fi |
12543 | fi | |
38d7211b | 12544 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 12545 | # Extract the first word of "ranlib", so it can be a program name with args. |
12546 | set dummy ranlib; ac_word=$2 | |
cd9a469c | 12547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12548 | $as_echo_n "checking for $ac_word... " >&6; } | |
12549 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12550 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 12551 | else |
b30fcfae | 12552 | case $RANLIB_FOR_TARGET in |
12553 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 12554 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12555 | ;; | |
c47832b1 | 12556 | *) |
b30fcfae | 12557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12558 | for as_dir in $gcc_cv_tool_dirs | |
12559 | do | |
12560 | IFS=$as_save_IFS | |
12561 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12562 | for ac_exec_ext in '' $ac_executable_extensions; do |
12563 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12564 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 12565 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12566 | break 2 |
12567 | fi | |
12568 | done | |
cd9a469c | 12569 | done |
12570 | IFS=$as_save_IFS | |
b30fcfae | 12571 | |
c47832b1 | 12572 | ;; |
12573 | esac | |
12574 | fi | |
b30fcfae | 12575 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
c47832b1 | 12576 | if test -n "$RANLIB_FOR_TARGET"; then |
cd9a469c | 12577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12578 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
c47832b1 | 12579 | else |
cd9a469c | 12580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12581 | $as_echo "no" >&6; } | |
c47832b1 | 12582 | fi |
12583 | ||
cd9a469c | 12584 | |
c47832b1 | 12585 | fi |
12586 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
95a05732 | 12587 | |
12588 | ||
12589 | if test -n "$RANLIB_FOR_TARGET"; then | |
12590 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12591 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12592 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12593 | fi | |
12594 | ||
12595 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12596 | for ncn_progname in ranlib; do | |
12597 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12598 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12600 | $as_echo_n "checking for $ac_word... " >&6; } | |
12601 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12602 | $as_echo_n "(cached) " >&6 | |
95a05732 | 12603 | else |
12604 | if test -n "$RANLIB_FOR_TARGET"; then | |
12605 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12606 | else | |
12607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12608 | for as_dir in $PATH | |
12609 | do | |
12610 | IFS=$as_save_IFS | |
12611 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12612 | for ac_exec_ext in '' $ac_executable_extensions; do |
12613 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 12614 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12615 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 12616 | break 2 |
12617 | fi | |
12618 | done | |
cd9a469c | 12619 | done |
12620 | IFS=$as_save_IFS | |
95a05732 | 12621 | |
12622 | fi | |
12623 | fi | |
12624 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12625 | if test -n "$RANLIB_FOR_TARGET"; then | |
cd9a469c | 12626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12627 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
95a05732 | 12628 | else |
cd9a469c | 12629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12630 | $as_echo "no" >&6; } | |
95a05732 | 12631 | fi |
12632 | ||
cd9a469c | 12633 | |
95a05732 | 12634 | done |
12635 | fi | |
12636 | ||
12637 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12638 | for ncn_progname in ranlib; do |
cd9a469c | 12639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12640 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12641 | if test -x $with_build_time_tools/${ncn_progname}; then |
12642 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12644 | $as_echo "yes" >&6; } | |
c47832b1 | 12645 | break |
12646 | else | |
cd9a469c | 12647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12648 | $as_echo "no" >&6; } | |
c47832b1 | 12649 | fi |
12650 | done | |
12651 | fi | |
12652 | ||
12653 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12654 | for ncn_progname in ranlib; do | |
12655 | if test -n "$ncn_target_tool_prefix"; then | |
12656 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
ae74ffb7 | 12657 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 12658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12659 | $as_echo_n "checking for $ac_word... " >&6; } | |
12660 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12661 | $as_echo_n "(cached) " >&6 | |
bb612911 | 12662 | else |
ef8184c7 | 12663 | if test -n "$RANLIB_FOR_TARGET"; then |
12664 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12665 | else |
b30fcfae | 12666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12667 | for as_dir in $PATH | |
12668 | do | |
12669 | IFS=$as_save_IFS | |
12670 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12671 | for ac_exec_ext in '' $ac_executable_extensions; do |
12672 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12673 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12674 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12675 | break 2 |
12676 | fi | |
12677 | done | |
cd9a469c | 12678 | done |
12679 | IFS=$as_save_IFS | |
b30fcfae | 12680 | |
bb612911 | 12681 | fi |
12682 | fi | |
b30fcfae | 12683 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
ef8184c7 | 12684 | if test -n "$RANLIB_FOR_TARGET"; then |
cd9a469c | 12685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12686 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
bb612911 | 12687 | else |
cd9a469c | 12688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12689 | $as_echo "no" >&6; } | |
bb612911 | 12690 | fi |
12691 | ||
cd9a469c | 12692 | |
c47832b1 | 12693 | fi |
12694 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12695 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12696 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12698 | $as_echo_n "checking for $ac_word... " >&6; } | |
12699 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12700 | $as_echo_n "(cached) " >&6 | |
bb612911 | 12701 | else |
768691b5 | 12702 | if test -n "$RANLIB_FOR_TARGET"; then |
12703 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12704 | else |
b30fcfae | 12705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12706 | for as_dir in $PATH | |
12707 | do | |
12708 | IFS=$as_save_IFS | |
12709 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12710 | for ac_exec_ext in '' $ac_executable_extensions; do |
12711 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12712 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12713 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12714 | break 2 |
12715 | fi | |
12716 | done | |
cd9a469c | 12717 | done |
12718 | IFS=$as_save_IFS | |
b30fcfae | 12719 | |
bb612911 | 12720 | fi |
12721 | fi | |
b30fcfae | 12722 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
768691b5 | 12723 | if test -n "$RANLIB_FOR_TARGET"; then |
cd9a469c | 12724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12725 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
bb612911 | 12726 | else |
cd9a469c | 12727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12728 | $as_echo "no" >&6; } | |
bb612911 | 12729 | fi |
b30fcfae | 12730 | |
cd9a469c | 12731 | |
c47832b1 | 12732 | fi |
12733 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12734 | done | |
12735 | fi | |
b30fcfae | 12736 | |
c47832b1 | 12737 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12738 | set dummy ranlib | |
12739 | if test $build = $target ; then | |
12740 | RANLIB_FOR_TARGET="$2" | |
12741 | else | |
12742 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
bb612911 | 12743 | fi |
b7ef8464 | 12744 | else |
12745 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
c47832b1 | 12746 | fi |
768691b5 | 12747 | |
ab0da556 | 12748 | else |
12749 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
bb612911 | 12750 | fi |
12751 | ||
c47832b1 | 12752 | |
12753 | ||
12754 | ||
3f71364d | 12755 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
12756 | if test -n "$with_build_time_tools"; then | |
12757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
12758 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
12759 | if test -x $with_build_time_tools/readelf; then | |
12760 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
12761 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
12763 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
12764 | else | |
12765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12766 | $as_echo "no" >&6; } | |
12767 | fi | |
12768 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12769 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
12770 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
12771 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12772 | fi | |
12773 | fi | |
12774 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12775 | # Extract the first word of "readelf", so it can be a program name with args. | |
12776 | set dummy readelf; ac_word=$2 | |
12777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12778 | $as_echo_n "checking for $ac_word... " >&6; } | |
12779 | if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then : | |
12780 | $as_echo_n "(cached) " >&6 | |
12781 | else | |
12782 | case $READELF_FOR_TARGET in | |
12783 | [\\/]* | ?:[\\/]*) | |
12784 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
12785 | ;; | |
12786 | *) | |
12787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12788 | for as_dir in $gcc_cv_tool_dirs | |
12789 | do | |
12790 | IFS=$as_save_IFS | |
12791 | test -z "$as_dir" && as_dir=. | |
12792 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12793 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12794 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12796 | break 2 | |
12797 | fi | |
12798 | done | |
12799 | done | |
12800 | IFS=$as_save_IFS | |
12801 | ||
12802 | ;; | |
12803 | esac | |
12804 | fi | |
12805 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12806 | if test -n "$READELF_FOR_TARGET"; then | |
12807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12808 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12809 | else | |
12810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12811 | $as_echo "no" >&6; } | |
12812 | fi | |
12813 | ||
12814 | ||
12815 | fi | |
12816 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
12817 | ||
12818 | ||
12819 | if test -n "$READELF_FOR_TARGET"; then | |
12820 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12821 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12822 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12823 | fi | |
12824 | ||
12825 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12826 | for ncn_progname in readelf; do | |
12827 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12828 | set dummy ${ncn_progname}; ac_word=$2 | |
12829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12830 | $as_echo_n "checking for $ac_word... " >&6; } | |
12831 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12832 | $as_echo_n "(cached) " >&6 | |
12833 | else | |
12834 | if test -n "$READELF_FOR_TARGET"; then | |
12835 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12836 | else | |
12837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12838 | for as_dir in $PATH | |
12839 | do | |
12840 | IFS=$as_save_IFS | |
12841 | test -z "$as_dir" && as_dir=. | |
12842 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12843 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12844 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12845 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12846 | break 2 | |
12847 | fi | |
12848 | done | |
12849 | done | |
12850 | IFS=$as_save_IFS | |
12851 | ||
12852 | fi | |
12853 | fi | |
12854 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12855 | if test -n "$READELF_FOR_TARGET"; then | |
12856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12857 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12858 | else | |
12859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12860 | $as_echo "no" >&6; } | |
12861 | fi | |
12862 | ||
12863 | ||
12864 | done | |
12865 | fi | |
12866 | ||
12867 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12868 | for ncn_progname in readelf; do | |
12869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12870 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12871 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12872 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12874 | $as_echo "yes" >&6; } | |
12875 | break | |
12876 | else | |
12877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12878 | $as_echo "no" >&6; } | |
12879 | fi | |
12880 | done | |
12881 | fi | |
12882 | ||
12883 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12884 | for ncn_progname in readelf; do | |
12885 | if test -n "$ncn_target_tool_prefix"; then | |
12886 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12887 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12889 | $as_echo_n "checking for $ac_word... " >&6; } | |
12890 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12891 | $as_echo_n "(cached) " >&6 | |
12892 | else | |
12893 | if test -n "$READELF_FOR_TARGET"; then | |
12894 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12895 | else | |
12896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12897 | for as_dir in $PATH | |
12898 | do | |
12899 | IFS=$as_save_IFS | |
12900 | test -z "$as_dir" && as_dir=. | |
12901 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12902 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12903 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12904 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12905 | break 2 | |
12906 | fi | |
12907 | done | |
12908 | done | |
12909 | IFS=$as_save_IFS | |
12910 | ||
12911 | fi | |
12912 | fi | |
12913 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12914 | if test -n "$READELF_FOR_TARGET"; then | |
12915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12916 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12917 | else | |
12918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12919 | $as_echo "no" >&6; } | |
12920 | fi | |
12921 | ||
12922 | ||
12923 | fi | |
12924 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
12925 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12926 | set dummy ${ncn_progname}; ac_word=$2 | |
12927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12928 | $as_echo_n "checking for $ac_word... " >&6; } | |
12929 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12930 | $as_echo_n "(cached) " >&6 | |
12931 | else | |
12932 | if test -n "$READELF_FOR_TARGET"; then | |
12933 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12934 | else | |
12935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12936 | for as_dir in $PATH | |
12937 | do | |
12938 | IFS=$as_save_IFS | |
12939 | test -z "$as_dir" && as_dir=. | |
12940 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12941 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12942 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12943 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12944 | break 2 | |
12945 | fi | |
12946 | done | |
12947 | done | |
12948 | IFS=$as_save_IFS | |
12949 | ||
12950 | fi | |
12951 | fi | |
12952 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12953 | if test -n "$READELF_FOR_TARGET"; then | |
12954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12955 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12956 | else | |
12957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12958 | $as_echo "no" >&6; } | |
12959 | fi | |
12960 | ||
12961 | ||
12962 | fi | |
12963 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
12964 | done | |
12965 | fi | |
12966 | ||
12967 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
12968 | set dummy readelf | |
12969 | if test $build = $target ; then | |
12970 | READELF_FOR_TARGET="$2" | |
12971 | else | |
12972 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12973 | fi | |
12974 | else | |
12975 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
12976 | fi | |
12977 | ||
12978 | else | |
12979 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12980 | fi | |
12981 | ||
12982 | ||
12983 | ||
12984 | ||
c47832b1 | 12985 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
12986 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 12987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
12988 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
ab0da556 | 12989 | if test -x $with_build_time_tools/strip; then |
12990 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
12991 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
cd9a469c | 12992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
12993 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
ab0da556 | 12994 | else |
cd9a469c | 12995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12996 | $as_echo "no" >&6; } | |
ab0da556 | 12997 | fi |
c47832b1 | 12998 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12999 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
b7ef8464 | 13000 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13001 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
c47832b1 | 13002 | fi |
13003 | fi | |
38d7211b | 13004 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 13005 | # Extract the first word of "strip", so it can be a program name with args. |
13006 | set dummy strip; ac_word=$2 | |
cd9a469c | 13007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13008 | $as_echo_n "checking for $ac_word... " >&6; } | |
13009 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
13010 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 13011 | else |
b30fcfae | 13012 | case $STRIP_FOR_TARGET in |
13013 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 13014 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13015 | ;; | |
c47832b1 | 13016 | *) |
b30fcfae | 13017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13018 | for as_dir in $gcc_cv_tool_dirs | |
13019 | do | |
13020 | IFS=$as_save_IFS | |
13021 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13022 | for ac_exec_ext in '' $ac_executable_extensions; do |
13023 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13024 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 13025 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13026 | break 2 |
13027 | fi | |
13028 | done | |
cd9a469c | 13029 | done |
13030 | IFS=$as_save_IFS | |
b30fcfae | 13031 | |
c47832b1 | 13032 | ;; |
13033 | esac | |
13034 | fi | |
b30fcfae | 13035 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
c47832b1 | 13036 | if test -n "$STRIP_FOR_TARGET"; then |
cd9a469c | 13037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13038 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
c47832b1 | 13039 | else |
cd9a469c | 13040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13041 | $as_echo "no" >&6; } | |
c47832b1 | 13042 | fi |
13043 | ||
cd9a469c | 13044 | |
c47832b1 | 13045 | fi |
13046 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
95a05732 | 13047 | |
13048 | ||
13049 | if test -n "$STRIP_FOR_TARGET"; then | |
13050 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13051 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13052 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13053 | fi | |
13054 | ||
13055 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13056 | for ncn_progname in strip; do | |
13057 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13058 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13060 | $as_echo_n "checking for $ac_word... " >&6; } | |
13061 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13062 | $as_echo_n "(cached) " >&6 | |
95a05732 | 13063 | else |
13064 | if test -n "$STRIP_FOR_TARGET"; then | |
13065 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13066 | else | |
13067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13068 | for as_dir in $PATH | |
13069 | do | |
13070 | IFS=$as_save_IFS | |
13071 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13072 | for ac_exec_ext in '' $ac_executable_extensions; do |
13073 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 13074 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13075 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 13076 | break 2 |
13077 | fi | |
13078 | done | |
cd9a469c | 13079 | done |
13080 | IFS=$as_save_IFS | |
95a05732 | 13081 | |
13082 | fi | |
13083 | fi | |
13084 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13085 | if test -n "$STRIP_FOR_TARGET"; then | |
cd9a469c | 13086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13087 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
95a05732 | 13088 | else |
cd9a469c | 13089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13090 | $as_echo "no" >&6; } | |
95a05732 | 13091 | fi |
13092 | ||
cd9a469c | 13093 | |
95a05732 | 13094 | done |
13095 | fi | |
13096 | ||
13097 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 13098 | for ncn_progname in strip; do |
cd9a469c | 13099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13100 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 13101 | if test -x $with_build_time_tools/${ncn_progname}; then |
13102 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 13103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13104 | $as_echo "yes" >&6; } | |
c47832b1 | 13105 | break |
13106 | else | |
cd9a469c | 13107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13108 | $as_echo "no" >&6; } | |
c47832b1 | 13109 | fi |
13110 | done | |
13111 | fi | |
13112 | ||
13113 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13114 | for ncn_progname in strip; do | |
13115 | if test -n "$ncn_target_tool_prefix"; then | |
13116 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 13117 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 13118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13119 | $as_echo_n "checking for $ac_word... " >&6; } | |
13120 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13121 | $as_echo_n "(cached) " >&6 | |
ae48753c | 13122 | else |
13123 | if test -n "$STRIP_FOR_TARGET"; then | |
b30fcfae | 13124 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
13125 | else | |
13126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13127 | for as_dir in $PATH | |
13128 | do | |
13129 | IFS=$as_save_IFS | |
13130 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13131 | for ac_exec_ext in '' $ac_executable_extensions; do |
13132 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13133 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 13134 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13135 | break 2 |
13136 | fi | |
13137 | done | |
cd9a469c | 13138 | done |
13139 | IFS=$as_save_IFS | |
b30fcfae | 13140 | |
9fec3fa8 | 13141 | fi |
13142 | fi | |
b30fcfae | 13143 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
9fec3fa8 | 13144 | if test -n "$STRIP_FOR_TARGET"; then |
cd9a469c | 13145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13146 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9fec3fa8 | 13147 | else |
cd9a469c | 13148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13149 | $as_echo "no" >&6; } | |
9fec3fa8 | 13150 | fi |
13151 | ||
cd9a469c | 13152 | |
c47832b1 | 13153 | fi |
13154 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13155 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 13156 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 13157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13158 | $as_echo_n "checking for $ac_word... " >&6; } | |
13159 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13160 | $as_echo_n "(cached) " >&6 | |
9fec3fa8 | 13161 | else |
13162 | if test -n "$STRIP_FOR_TARGET"; then | |
13163 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13164 | else | |
b30fcfae | 13165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13166 | for as_dir in $PATH | |
13167 | do | |
13168 | IFS=$as_save_IFS | |
13169 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13170 | for ac_exec_ext in '' $ac_executable_extensions; do |
13171 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13172 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13174 | break 2 |
13175 | fi | |
13176 | done | |
cd9a469c | 13177 | done |
13178 | IFS=$as_save_IFS | |
b30fcfae | 13179 | |
9fec3fa8 | 13180 | fi |
13181 | fi | |
b30fcfae | 13182 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
9fec3fa8 | 13183 | if test -n "$STRIP_FOR_TARGET"; then |
cd9a469c | 13184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13185 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9fec3fa8 | 13186 | else |
cd9a469c | 13187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13188 | $as_echo "no" >&6; } | |
9fec3fa8 | 13189 | fi |
b30fcfae | 13190 | |
cd9a469c | 13191 | |
c47832b1 | 13192 | fi |
13193 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13194 | done | |
13195 | fi | |
b30fcfae | 13196 | |
9fec3fa8 | 13197 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13198 | set dummy strip | |
13199 | if test $build = $target ; then | |
13200 | STRIP_FOR_TARGET="$2" | |
13201 | else | |
13202 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13203 | fi | |
b7ef8464 | 13204 | else |
13205 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
9fec3fa8 | 13206 | fi |
13207 | ||
ab0da556 | 13208 | else |
13209 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
c47832b1 | 13210 | fi |
13211 | ||
13212 | ||
13213 | ||
13214 | ||
13215 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13216 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 13217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13218 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
ab0da556 | 13219 | if test -x $with_build_time_tools/windres; then |
13220 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13221 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
cd9a469c | 13222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13223 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
ab0da556 | 13224 | else |
cd9a469c | 13225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13226 | $as_echo "no" >&6; } | |
ab0da556 | 13227 | fi |
c47832b1 | 13228 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13229 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
b7ef8464 | 13230 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13231 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
c47832b1 | 13232 | fi |
13233 | fi | |
38d7211b | 13234 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 13235 | # Extract the first word of "windres", so it can be a program name with args. |
13236 | set dummy windres; ac_word=$2 | |
cd9a469c | 13237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13238 | $as_echo_n "checking for $ac_word... " >&6; } | |
13239 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
13240 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 13241 | else |
b30fcfae | 13242 | case $WINDRES_FOR_TARGET in |
13243 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 13244 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13245 | ;; | |
c47832b1 | 13246 | *) |
b30fcfae | 13247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13248 | for as_dir in $gcc_cv_tool_dirs | |
13249 | do | |
13250 | IFS=$as_save_IFS | |
13251 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13252 | for ac_exec_ext in '' $ac_executable_extensions; do |
13253 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13254 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 13255 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13256 | break 2 |
13257 | fi | |
13258 | done | |
cd9a469c | 13259 | done |
13260 | IFS=$as_save_IFS | |
b30fcfae | 13261 | |
c47832b1 | 13262 | ;; |
13263 | esac | |
13264 | fi | |
b30fcfae | 13265 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
c47832b1 | 13266 | if test -n "$WINDRES_FOR_TARGET"; then |
cd9a469c | 13267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13268 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
c47832b1 | 13269 | else |
cd9a469c | 13270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13271 | $as_echo "no" >&6; } | |
c47832b1 | 13272 | fi |
13273 | ||
cd9a469c | 13274 | |
c47832b1 | 13275 | fi |
13276 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
95a05732 | 13277 | |
13278 | ||
13279 | if test -n "$WINDRES_FOR_TARGET"; then | |
13280 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13281 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13282 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13283 | fi | |
13284 | ||
13285 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13286 | for ncn_progname in windres; do | |
13287 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13288 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13290 | $as_echo_n "checking for $ac_word... " >&6; } | |
13291 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13292 | $as_echo_n "(cached) " >&6 | |
95a05732 | 13293 | else |
13294 | if test -n "$WINDRES_FOR_TARGET"; then | |
13295 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13296 | else | |
13297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13298 | for as_dir in $PATH | |
13299 | do | |
13300 | IFS=$as_save_IFS | |
13301 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13302 | for ac_exec_ext in '' $ac_executable_extensions; do |
13303 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 13304 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13305 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 13306 | break 2 |
13307 | fi | |
13308 | done | |
cd9a469c | 13309 | done |
13310 | IFS=$as_save_IFS | |
95a05732 | 13311 | |
13312 | fi | |
13313 | fi | |
13314 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13315 | if test -n "$WINDRES_FOR_TARGET"; then | |
cd9a469c | 13316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13317 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
95a05732 | 13318 | else |
cd9a469c | 13319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13320 | $as_echo "no" >&6; } | |
95a05732 | 13321 | fi |
13322 | ||
cd9a469c | 13323 | |
95a05732 | 13324 | done |
13325 | fi | |
13326 | ||
13327 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 13328 | for ncn_progname in windres; do |
cd9a469c | 13329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13330 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 13331 | if test -x $with_build_time_tools/${ncn_progname}; then |
13332 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 13333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13334 | $as_echo "yes" >&6; } | |
c47832b1 | 13335 | break |
13336 | else | |
cd9a469c | 13337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13338 | $as_echo "no" >&6; } | |
c47832b1 | 13339 | fi |
13340 | done | |
13341 | fi | |
13342 | ||
13343 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13344 | for ncn_progname in windres; do | |
13345 | if test -n "$ncn_target_tool_prefix"; then | |
13346 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 13347 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 13348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13349 | $as_echo_n "checking for $ac_word... " >&6; } | |
13350 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13351 | $as_echo_n "(cached) " >&6 | |
bb612911 | 13352 | else |
ef8184c7 | 13353 | if test -n "$WINDRES_FOR_TARGET"; then |
13354 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
bb612911 | 13355 | else |
b30fcfae | 13356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13357 | for as_dir in $PATH | |
13358 | do | |
13359 | IFS=$as_save_IFS | |
13360 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13361 | for ac_exec_ext in '' $ac_executable_extensions; do |
13362 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13363 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 13364 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13365 | break 2 |
13366 | fi | |
13367 | done | |
cd9a469c | 13368 | done |
13369 | IFS=$as_save_IFS | |
b30fcfae | 13370 | |
bb612911 | 13371 | fi |
13372 | fi | |
b30fcfae | 13373 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
ef8184c7 | 13374 | if test -n "$WINDRES_FOR_TARGET"; then |
cd9a469c | 13375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13376 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
bb612911 | 13377 | else |
cd9a469c | 13378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13379 | $as_echo "no" >&6; } | |
bb612911 | 13380 | fi |
13381 | ||
cd9a469c | 13382 | |
c47832b1 | 13383 | fi |
13384 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13385 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 13386 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 13387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13388 | $as_echo_n "checking for $ac_word... " >&6; } | |
13389 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13390 | $as_echo_n "(cached) " >&6 | |
bb612911 | 13391 | else |
768691b5 | 13392 | if test -n "$WINDRES_FOR_TARGET"; then |
13393 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
bb612911 | 13394 | else |
b30fcfae | 13395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13396 | for as_dir in $PATH | |
13397 | do | |
13398 | IFS=$as_save_IFS | |
13399 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13400 | for ac_exec_ext in '' $ac_executable_extensions; do |
13401 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13402 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13403 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13404 | break 2 |
13405 | fi | |
13406 | done | |
cd9a469c | 13407 | done |
13408 | IFS=$as_save_IFS | |
b30fcfae | 13409 | |
bb612911 | 13410 | fi |
13411 | fi | |
b30fcfae | 13412 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
768691b5 | 13413 | if test -n "$WINDRES_FOR_TARGET"; then |
cd9a469c | 13414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13415 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
bb612911 | 13416 | else |
cd9a469c | 13417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13418 | $as_echo "no" >&6; } | |
bb612911 | 13419 | fi |
b30fcfae | 13420 | |
cd9a469c | 13421 | |
c47832b1 | 13422 | fi |
13423 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13424 | done | |
13425 | fi | |
b30fcfae | 13426 | |
768691b5 | 13427 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13428 | set dummy windres | |
13429 | if test $build = $target ; then | |
13430 | WINDRES_FOR_TARGET="$2" | |
bb612911 | 13431 | else |
768691b5 | 13432 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
bb612911 | 13433 | fi |
b7ef8464 | 13434 | else |
13435 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
bb612911 | 13436 | fi |
13437 | ||
ab0da556 | 13438 | else |
13439 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
c47832b1 | 13440 | fi |
13441 | ||
805e22b2 | 13442 | |
75d6a0a9 | 13443 | |
13444 | ||
13445 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13446 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 13447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13448 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
75d6a0a9 | 13449 | if test -x $with_build_time_tools/windmc; then |
13450 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13451 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
cd9a469c | 13452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13453 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13454 | else |
cd9a469c | 13455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13456 | $as_echo "no" >&6; } | |
75d6a0a9 | 13457 | fi |
13458 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13459 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
b7ef8464 | 13460 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
13461 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
75d6a0a9 | 13462 | fi |
13463 | fi | |
13464 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13465 | # Extract the first word of "windmc", so it can be a program name with args. | |
13466 | set dummy windmc; ac_word=$2 | |
cd9a469c | 13467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13468 | $as_echo_n "checking for $ac_word... " >&6; } | |
13469 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13470 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 13471 | else |
13472 | case $WINDMC_FOR_TARGET in | |
13473 | [\\/]* | ?:[\\/]*) | |
13474 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13475 | ;; | |
13476 | *) | |
13477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13478 | for as_dir in $gcc_cv_tool_dirs | |
13479 | do | |
13480 | IFS=$as_save_IFS | |
13481 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13482 | for ac_exec_ext in '' $ac_executable_extensions; do |
13483 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 13484 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 13485 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13486 | break 2 |
13487 | fi | |
13488 | done | |
cd9a469c | 13489 | done |
13490 | IFS=$as_save_IFS | |
75d6a0a9 | 13491 | |
13492 | ;; | |
13493 | esac | |
13494 | fi | |
13495 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
75d6a0a9 | 13496 | if test -n "$WINDMC_FOR_TARGET"; then |
cd9a469c | 13497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13498 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13499 | else |
cd9a469c | 13500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13501 | $as_echo "no" >&6; } | |
75d6a0a9 | 13502 | fi |
13503 | ||
cd9a469c | 13504 | |
75d6a0a9 | 13505 | fi |
13506 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13507 | ||
13508 | ||
13509 | if test -n "$WINDMC_FOR_TARGET"; then | |
13510 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13511 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13512 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13513 | fi | |
13514 | ||
13515 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13516 | for ncn_progname in windmc; do | |
13517 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13518 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13520 | $as_echo_n "checking for $ac_word... " >&6; } | |
13521 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13522 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 13523 | else |
13524 | if test -n "$WINDMC_FOR_TARGET"; then | |
13525 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13526 | else | |
13527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13528 | for as_dir in $PATH | |
13529 | do | |
13530 | IFS=$as_save_IFS | |
13531 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13532 | for ac_exec_ext in '' $ac_executable_extensions; do |
13533 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 13534 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13535 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13536 | break 2 |
13537 | fi | |
13538 | done | |
cd9a469c | 13539 | done |
13540 | IFS=$as_save_IFS | |
75d6a0a9 | 13541 | |
13542 | fi | |
13543 | fi | |
13544 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13545 | if test -n "$WINDMC_FOR_TARGET"; then | |
cd9a469c | 13546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13547 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13548 | else |
cd9a469c | 13549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13550 | $as_echo "no" >&6; } | |
75d6a0a9 | 13551 | fi |
13552 | ||
cd9a469c | 13553 | |
75d6a0a9 | 13554 | done |
13555 | fi | |
13556 | ||
13557 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13558 | for ncn_progname in windmc; do | |
cd9a469c | 13559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13560 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
75d6a0a9 | 13561 | if test -x $with_build_time_tools/${ncn_progname}; then |
13562 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 13563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13564 | $as_echo "yes" >&6; } | |
75d6a0a9 | 13565 | break |
13566 | else | |
cd9a469c | 13567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13568 | $as_echo "no" >&6; } | |
75d6a0a9 | 13569 | fi |
13570 | done | |
13571 | fi | |
13572 | ||
13573 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13574 | for ncn_progname in windmc; do | |
13575 | if test -n "$ncn_target_tool_prefix"; then | |
13576 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13577 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 13578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13579 | $as_echo_n "checking for $ac_word... " >&6; } | |
13580 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13581 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 13582 | else |
13583 | if test -n "$WINDMC_FOR_TARGET"; then | |
13584 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13585 | else | |
13586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13587 | for as_dir in $PATH | |
13588 | do | |
13589 | IFS=$as_save_IFS | |
13590 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13591 | for ac_exec_ext in '' $ac_executable_extensions; do |
13592 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 13593 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 13594 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13595 | break 2 |
13596 | fi | |
13597 | done | |
cd9a469c | 13598 | done |
13599 | IFS=$as_save_IFS | |
75d6a0a9 | 13600 | |
13601 | fi | |
13602 | fi | |
13603 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13604 | if test -n "$WINDMC_FOR_TARGET"; then | |
cd9a469c | 13605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13606 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13607 | else |
cd9a469c | 13608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13609 | $as_echo "no" >&6; } | |
75d6a0a9 | 13610 | fi |
13611 | ||
cd9a469c | 13612 | |
75d6a0a9 | 13613 | fi |
13614 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13615 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13616 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13618 | $as_echo_n "checking for $ac_word... " >&6; } | |
13619 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13620 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 13621 | else |
13622 | if test -n "$WINDMC_FOR_TARGET"; then | |
13623 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13624 | else | |
13625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13626 | for as_dir in $PATH | |
13627 | do | |
13628 | IFS=$as_save_IFS | |
13629 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13630 | for ac_exec_ext in '' $ac_executable_extensions; do |
13631 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 13632 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13634 | break 2 |
13635 | fi | |
13636 | done | |
cd9a469c | 13637 | done |
13638 | IFS=$as_save_IFS | |
75d6a0a9 | 13639 | |
13640 | fi | |
13641 | fi | |
13642 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13643 | if test -n "$WINDMC_FOR_TARGET"; then | |
cd9a469c | 13644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13645 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13646 | else |
cd9a469c | 13647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13648 | $as_echo "no" >&6; } | |
75d6a0a9 | 13649 | fi |
13650 | ||
cd9a469c | 13651 | |
75d6a0a9 | 13652 | fi |
13653 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13654 | done | |
13655 | fi | |
13656 | ||
13657 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13658 | set dummy windmc | |
13659 | if test $build = $target ; then | |
13660 | WINDMC_FOR_TARGET="$2" | |
13661 | else | |
13662 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13663 | fi | |
b7ef8464 | 13664 | else |
13665 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
75d6a0a9 | 13666 | fi |
13667 | ||
13668 | else | |
13669 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13670 | fi | |
13671 | ||
13672 | ||
f5aebe3e | 13673 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13674 | ||
cd9a469c | 13675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13676 | $as_echo_n "checking where to find the target ar... " >&6; } | |
f5aebe3e | 13677 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13678 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13679 | # We already found the complete path | |
a6c599b5 | 13680 | ac_dir=`dirname $AR_FOR_TARGET` |
cd9a469c | 13681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13682 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13683 | else |
13684 | # Canadian cross, just use what we found | |
cd9a469c | 13685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13686 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13687 | fi |
f5aebe3e | 13688 | else |
13689 | ok=yes | |
13690 | case " ${configdirs} " in | |
13691 | *" binutils "*) ;; | |
13692 | *) ok=no ;; | |
13693 | esac | |
b30fcfae | 13694 | |
f5aebe3e | 13695 | if test $ok = yes; then |
13696 | # An in-tree tool is available and we can use it | |
13697 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
cd9a469c | 13698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13699 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13700 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13701 | # We already found the complete path | |
a6c599b5 | 13702 | ac_dir=`dirname $AR_FOR_TARGET` |
cd9a469c | 13703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13704 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13705 | elif test "x$target" = "x$host"; then |
13706 | # We can use an host tool | |
13707 | AR_FOR_TARGET='$(AR)' | |
cd9a469c | 13708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13709 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13710 | else |
13711 | # We need a cross tool | |
cd9a469c | 13712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13713 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13714 | fi |
13715 | fi | |
a83ffacf | 13716 | |
cd9a469c | 13717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13718 | $as_echo_n "checking where to find the target as... " >&6; } | |
f5aebe3e | 13719 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13720 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13721 | # We already found the complete path | |
a6c599b5 | 13722 | ac_dir=`dirname $AS_FOR_TARGET` |
cd9a469c | 13723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13724 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13725 | else |
13726 | # Canadian cross, just use what we found | |
cd9a469c | 13727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13728 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13729 | fi |
f5aebe3e | 13730 | else |
13731 | ok=yes | |
13732 | case " ${configdirs} " in | |
13733 | *" gas "*) ;; | |
13734 | *) ok=no ;; | |
13735 | esac | |
b30fcfae | 13736 | |
f5aebe3e | 13737 | if test $ok = yes; then |
13738 | # An in-tree tool is available and we can use it | |
13739 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
cd9a469c | 13740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13741 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13742 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13743 | # We already found the complete path | |
a6c599b5 | 13744 | ac_dir=`dirname $AS_FOR_TARGET` |
cd9a469c | 13745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13746 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13747 | elif test "x$target" = "x$host"; then |
13748 | # We can use an host tool | |
13749 | AS_FOR_TARGET='$(AS)' | |
cd9a469c | 13750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13751 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13752 | else |
13753 | # We need a cross tool | |
cd9a469c | 13754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13755 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13756 | fi |
13757 | fi | |
a83ffacf | 13758 | |
cd9a469c | 13759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13760 | $as_echo_n "checking where to find the target cc... " >&6; } | |
f5aebe3e | 13761 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13762 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13763 | # We already found the complete path | |
a6c599b5 | 13764 | ac_dir=`dirname $CC_FOR_TARGET` |
cd9a469c | 13765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13766 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13767 | else |
13768 | # Canadian cross, just use what we found | |
cd9a469c | 13769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13770 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13771 | fi |
f5aebe3e | 13772 | else |
13773 | ok=yes | |
13774 | case " ${configdirs} " in | |
13775 | *" gcc "*) ;; | |
13776 | *) ok=no ;; | |
13777 | esac | |
b30fcfae | 13778 | |
f5aebe3e | 13779 | if test $ok = yes; then |
13780 | # An in-tree tool is available and we can use it | |
13781 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 13782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13783 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13784 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13785 | # We already found the complete path | |
a6c599b5 | 13786 | ac_dir=`dirname $CC_FOR_TARGET` |
cd9a469c | 13787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13788 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13789 | elif test "x$target" = "x$host"; then |
13790 | # We can use an host tool | |
13791 | CC_FOR_TARGET='$(CC)' | |
cd9a469c | 13792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13793 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13794 | else |
13795 | # We need a cross tool | |
cd9a469c | 13796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13797 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13798 | fi |
13799 | fi | |
a83ffacf | 13800 | |
cd9a469c | 13801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13802 | $as_echo_n "checking where to find the target c++... " >&6; } | |
f5aebe3e | 13803 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13804 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13805 | # We already found the complete path | |
a6c599b5 | 13806 | ac_dir=`dirname $CXX_FOR_TARGET` |
cd9a469c | 13807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13808 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13809 | else |
13810 | # Canadian cross, just use what we found | |
cd9a469c | 13811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13812 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13813 | fi |
f5aebe3e | 13814 | else |
13815 | ok=yes | |
13816 | case " ${configdirs} " in | |
13817 | *" gcc "*) ;; | |
13818 | *) ok=no ;; | |
13819 | esac | |
13820 | case ,${enable_languages}, in | |
13821 | *,c++,*) ;; | |
13822 | *) ok=no ;; | |
13823 | esac | |
13824 | if test $ok = yes; then | |
13825 | # An in-tree tool is available and we can use it | |
b710ec85 | 13826 | 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 | 13827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13828 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13829 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13830 | # We already found the complete path | |
a6c599b5 | 13831 | ac_dir=`dirname $CXX_FOR_TARGET` |
cd9a469c | 13832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13833 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13834 | elif test "x$target" = "x$host"; then |
13835 | # We can use an host tool | |
13836 | CXX_FOR_TARGET='$(CXX)' | |
cd9a469c | 13837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13838 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13839 | else |
13840 | # We need a cross tool | |
cd9a469c | 13841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13842 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13843 | fi |
13844 | fi | |
a83ffacf | 13845 | |
cd9a469c | 13846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13847 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
f5aebe3e | 13848 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13849 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13850 | # We already found the complete path | |
a6c599b5 | 13851 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
cd9a469c | 13852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13853 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13854 | else |
13855 | # Canadian cross, just use what we found | |
cd9a469c | 13856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13857 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13858 | fi |
f5aebe3e | 13859 | else |
13860 | ok=yes | |
13861 | case " ${configdirs} " in | |
13862 | *" gcc "*) ;; | |
13863 | *) ok=no ;; | |
13864 | esac | |
13865 | case ,${enable_languages}, in | |
13866 | *,c++,*) ;; | |
13867 | *) ok=no ;; | |
13868 | esac | |
13869 | if test $ok = yes; then | |
13870 | # An in-tree tool is available and we can use it | |
b710ec85 | 13871 | 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 | 13872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13873 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13874 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13875 | # We already found the complete path | |
a6c599b5 | 13876 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
cd9a469c | 13877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13878 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13879 | elif test "x$target" = "x$host"; then |
13880 | # We can use an host tool | |
13881 | RAW_CXX_FOR_TARGET='$(CXX)' | |
cd9a469c | 13882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13883 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13884 | else |
13885 | # We need a cross tool | |
cd9a469c | 13886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13887 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13888 | fi |
13889 | fi | |
a83ffacf | 13890 | |
cd9a469c | 13891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
13892 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
f5aebe3e | 13893 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13894 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13895 | # We already found the complete path | |
a6c599b5 | 13896 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
cd9a469c | 13897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13898 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13899 | else |
13900 | # Canadian cross, just use what we found | |
cd9a469c | 13901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13902 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13903 | fi |
f5aebe3e | 13904 | else |
13905 | ok=yes | |
13906 | case " ${configdirs} " in | |
13907 | *" binutils "*) ;; | |
13908 | *) ok=no ;; | |
13909 | esac | |
b30fcfae | 13910 | |
f5aebe3e | 13911 | if test $ok = yes; then |
13912 | # An in-tree tool is available and we can use it | |
13913 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
cd9a469c | 13914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13915 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13916 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13917 | # We already found the complete path | |
a6c599b5 | 13918 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
cd9a469c | 13919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13920 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13921 | elif test "x$target" = "x$host"; then |
13922 | # We can use an host tool | |
13923 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
cd9a469c | 13924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13925 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13926 | else |
13927 | # We need a cross tool | |
cd9a469c | 13928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13929 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13930 | fi |
13931 | fi | |
a83ffacf | 13932 | |
cd9a469c | 13933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
13934 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
f5aebe3e | 13935 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13936 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13937 | # We already found the complete path | |
a6c599b5 | 13938 | ac_dir=`dirname $GCC_FOR_TARGET` |
cd9a469c | 13939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13940 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13941 | else |
13942 | # Canadian cross, just use what we found | |
cd9a469c | 13943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13944 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13945 | fi |
f5aebe3e | 13946 | else |
13947 | ok=yes | |
13948 | case " ${configdirs} " in | |
13949 | *" gcc "*) ;; | |
13950 | *) ok=no ;; | |
13951 | esac | |
b30fcfae | 13952 | |
f5aebe3e | 13953 | if test $ok = yes; then |
13954 | # An in-tree tool is available and we can use it | |
13955 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 13956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13957 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13958 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13959 | # We already found the complete path | |
a6c599b5 | 13960 | ac_dir=`dirname $GCC_FOR_TARGET` |
cd9a469c | 13961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13962 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13963 | elif test "x$target" = "x$host"; then |
13964 | # We can use an host tool | |
13965 | GCC_FOR_TARGET='$()' | |
cd9a469c | 13966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13967 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13968 | else |
13969 | # We need a cross tool | |
cd9a469c | 13970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13971 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13972 | fi |
13973 | fi | |
a83ffacf | 13974 | |
cd9a469c | 13975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
13976 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
f5aebe3e | 13977 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13978 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13979 | # We already found the complete path | |
a6c599b5 | 13980 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
cd9a469c | 13981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13982 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13983 | else |
13984 | # Canadian cross, just use what we found | |
cd9a469c | 13985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13986 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13987 | fi |
f5aebe3e | 13988 | else |
13989 | ok=yes | |
13990 | case " ${configdirs} " in | |
13991 | *" gcc "*) ;; | |
13992 | *) ok=no ;; | |
13993 | esac | |
13994 | case ,${enable_languages}, in | |
13995 | *,fortran,*) ;; | |
13996 | *) ok=no ;; | |
13997 | esac | |
13998 | if test $ok = yes; then | |
13999 | # An in-tree tool is available and we can use it | |
14000 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 14001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14002 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14003 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14004 | # We already found the complete path | |
a6c599b5 | 14005 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
cd9a469c | 14006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14007 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14008 | elif test "x$target" = "x$host"; then |
14009 | # We can use an host tool | |
14010 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
cd9a469c | 14011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14012 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14013 | else |
14014 | # We need a cross tool | |
cd9a469c | 14015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14016 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14017 | fi |
14018 | fi | |
a83ffacf | 14019 | |
5ff5b630 | 14020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14021 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14022 | if test "x${build}" != "x${host}" ; then | |
14023 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14024 | # We already found the complete path | |
14025 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14027 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14028 | else | |
14029 | # Canadian cross, just use what we found | |
14030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14031 | $as_echo "pre-installed" >&6; } | |
14032 | fi | |
14033 | else | |
14034 | ok=yes | |
14035 | case " ${configdirs} " in | |
14036 | *" gcc "*) ;; | |
14037 | *) ok=no ;; | |
14038 | esac | |
14039 | case ,${enable_languages}, in | |
14040 | *,go,*) ;; | |
14041 | *) ok=no ;; | |
14042 | esac | |
14043 | if test $ok = yes; then | |
14044 | # An in-tree tool is available and we can use it | |
14045 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14047 | $as_echo "just compiled" >&6; } | |
14048 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14049 | # We already found the complete path | |
14050 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14052 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14053 | elif test "x$target" = "x$host"; then | |
14054 | # We can use an host tool | |
14055 | GOC_FOR_TARGET='$(GOC)' | |
14056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14057 | $as_echo "host tool" >&6; } | |
14058 | else | |
14059 | # We need a cross tool | |
14060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14061 | $as_echo "pre-installed" >&6; } | |
14062 | fi | |
14063 | fi | |
14064 | ||
cd9a469c | 14065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14066 | $as_echo_n "checking where to find the target ld... " >&6; } | |
f5aebe3e | 14067 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14068 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14069 | # We already found the complete path | |
a6c599b5 | 14070 | ac_dir=`dirname $LD_FOR_TARGET` |
cd9a469c | 14071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14072 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14073 | else |
14074 | # Canadian cross, just use what we found | |
cd9a469c | 14075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14076 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14077 | fi |
f5aebe3e | 14078 | else |
14079 | ok=yes | |
14080 | case " ${configdirs} " in | |
14081 | *" ld "*) ;; | |
14082 | *) ok=no ;; | |
14083 | esac | |
b30fcfae | 14084 | |
f5aebe3e | 14085 | if test $ok = yes; then |
14086 | # An in-tree tool is available and we can use it | |
14087 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
cd9a469c | 14088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14089 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14090 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14091 | # We already found the complete path | |
a6c599b5 | 14092 | ac_dir=`dirname $LD_FOR_TARGET` |
cd9a469c | 14093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14094 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14095 | elif test "x$target" = "x$host"; then |
14096 | # We can use an host tool | |
14097 | LD_FOR_TARGET='$(LD)' | |
cd9a469c | 14098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14099 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14100 | else |
14101 | # We need a cross tool | |
cd9a469c | 14102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14103 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14104 | fi |
14105 | fi | |
a83ffacf | 14106 | |
cd9a469c | 14107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14108 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
f5aebe3e | 14109 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14110 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14111 | # We already found the complete path | |
a6c599b5 | 14112 | ac_dir=`dirname $LIPO_FOR_TARGET` |
cd9a469c | 14113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14114 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14115 | else |
14116 | # Canadian cross, just use what we found | |
cd9a469c | 14117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14118 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14119 | fi |
f5aebe3e | 14120 | else |
c47832b1 | 14121 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14122 | # We already found the complete path | |
a6c599b5 | 14123 | ac_dir=`dirname $LIPO_FOR_TARGET` |
cd9a469c | 14124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14125 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14126 | elif test "x$target" = "x$host"; then |
f5aebe3e | 14127 | # We can use an host tool |
14128 | LIPO_FOR_TARGET='$(LIPO)' | |
cd9a469c | 14129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14130 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14131 | else |
14132 | # We need a cross tool | |
cd9a469c | 14133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14134 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14135 | fi |
14136 | fi | |
a83ffacf | 14137 | |
cd9a469c | 14138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14139 | $as_echo_n "checking where to find the target nm... " >&6; } | |
f5aebe3e | 14140 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14141 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14142 | # We already found the complete path | |
a6c599b5 | 14143 | ac_dir=`dirname $NM_FOR_TARGET` |
cd9a469c | 14144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14145 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14146 | else |
14147 | # Canadian cross, just use what we found | |
cd9a469c | 14148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14149 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14150 | fi |
f5aebe3e | 14151 | else |
14152 | ok=yes | |
14153 | case " ${configdirs} " in | |
14154 | *" binutils "*) ;; | |
14155 | *) ok=no ;; | |
14156 | esac | |
b30fcfae | 14157 | |
f5aebe3e | 14158 | if test $ok = yes; then |
14159 | # An in-tree tool is available and we can use it | |
14160 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
cd9a469c | 14161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14162 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14163 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14164 | # We already found the complete path | |
a6c599b5 | 14165 | ac_dir=`dirname $NM_FOR_TARGET` |
cd9a469c | 14166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14167 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14168 | elif test "x$target" = "x$host"; then |
14169 | # We can use an host tool | |
14170 | NM_FOR_TARGET='$(NM)' | |
cd9a469c | 14171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14172 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14173 | else |
14174 | # We need a cross tool | |
cd9a469c | 14175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14176 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14177 | fi |
14178 | fi | |
a83ffacf | 14179 | |
fc740d70 | 14180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14181 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14182 | if test "x${build}" != "x${host}" ; then | |
14183 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14184 | # We already found the complete path | |
14185 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14187 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14188 | else | |
14189 | # Canadian cross, just use what we found | |
14190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14191 | $as_echo "pre-installed" >&6; } | |
14192 | fi | |
14193 | else | |
14194 | ok=yes | |
14195 | case " ${configdirs} " in | |
14196 | *" binutils "*) ;; | |
14197 | *) ok=no ;; | |
14198 | esac | |
14199 | ||
14200 | if test $ok = yes; then | |
14201 | # An in-tree tool is available and we can use it | |
14202 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14204 | $as_echo "just compiled" >&6; } | |
14205 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14206 | # We already found the complete path | |
14207 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14209 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14210 | elif test "x$target" = "x$host"; then | |
14211 | # We can use an host tool | |
9b31ae9c | 14212 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
fc740d70 | 14213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14214 | $as_echo "host tool" >&6; } | |
14215 | else | |
14216 | # We need a cross tool | |
14217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14218 | $as_echo "pre-installed" >&6; } | |
14219 | fi | |
14220 | fi | |
14221 | ||
cd9a469c | 14222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14223 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
f5aebe3e | 14224 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14225 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14226 | # We already found the complete path | |
a6c599b5 | 14227 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
cd9a469c | 14228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14229 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14230 | else |
14231 | # Canadian cross, just use what we found | |
cd9a469c | 14232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14233 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14234 | fi |
f5aebe3e | 14235 | else |
14236 | ok=yes | |
14237 | case " ${configdirs} " in | |
14238 | *" binutils "*) ;; | |
14239 | *) ok=no ;; | |
14240 | esac | |
b30fcfae | 14241 | |
f5aebe3e | 14242 | if test $ok = yes; then |
14243 | # An in-tree tool is available and we can use it | |
14244 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
cd9a469c | 14245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14246 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14247 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14248 | # We already found the complete path | |
a6c599b5 | 14249 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
cd9a469c | 14250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14251 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14252 | elif test "x$target" = "x$host"; then |
14253 | # We can use an host tool | |
14254 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
cd9a469c | 14255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14256 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14257 | else |
14258 | # We need a cross tool | |
cd9a469c | 14259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14260 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14261 | fi |
14262 | fi | |
a83ffacf | 14263 | |
cd9a469c | 14264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14265 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
f5aebe3e | 14266 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14267 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14268 | # We already found the complete path | |
a6c599b5 | 14269 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
cd9a469c | 14270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14271 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14272 | else |
14273 | # Canadian cross, just use what we found | |
cd9a469c | 14274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14275 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14276 | fi |
f5aebe3e | 14277 | else |
14278 | ok=yes | |
14279 | case " ${configdirs} " in | |
14280 | *" binutils "*) ;; | |
14281 | *) ok=no ;; | |
14282 | esac | |
b30fcfae | 14283 | |
f5aebe3e | 14284 | if test $ok = yes; then |
14285 | # An in-tree tool is available and we can use it | |
14286 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
cd9a469c | 14287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14288 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14289 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14290 | # We already found the complete path | |
a6c599b5 | 14291 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
cd9a469c | 14292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14293 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14294 | elif test "x$target" = "x$host"; then |
14295 | # We can use an host tool | |
14296 | RANLIB_FOR_TARGET='$(RANLIB)' | |
cd9a469c | 14297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14298 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14299 | else |
14300 | # We need a cross tool | |
cd9a469c | 14301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14302 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14303 | fi |
14304 | fi | |
a83ffacf | 14305 | |
3f71364d | 14306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14307 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14308 | if test "x${build}" != "x${host}" ; then | |
14309 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14310 | # We already found the complete path | |
14311 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14313 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14314 | else | |
14315 | # Canadian cross, just use what we found | |
14316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14317 | $as_echo "pre-installed" >&6; } | |
14318 | fi | |
14319 | else | |
14320 | ok=yes | |
14321 | case " ${configdirs} " in | |
14322 | *" binutils "*) ;; | |
14323 | *) ok=no ;; | |
14324 | esac | |
14325 | ||
14326 | if test $ok = yes; then | |
14327 | # An in-tree tool is available and we can use it | |
14328 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14330 | $as_echo "just compiled" >&6; } | |
14331 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14332 | # We already found the complete path | |
14333 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14335 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14336 | elif test "x$target" = "x$host"; then | |
14337 | # We can use an host tool | |
14338 | READELF_FOR_TARGET='$(READELF)' | |
14339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14340 | $as_echo "host tool" >&6; } | |
14341 | else | |
14342 | # We need a cross tool | |
14343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14344 | $as_echo "pre-installed" >&6; } | |
14345 | fi | |
14346 | fi | |
14347 | ||
cd9a469c | 14348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14349 | $as_echo_n "checking where to find the target strip... " >&6; } | |
f5aebe3e | 14350 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14351 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14352 | # We already found the complete path | |
a6c599b5 | 14353 | ac_dir=`dirname $STRIP_FOR_TARGET` |
cd9a469c | 14354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14355 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14356 | else |
14357 | # Canadian cross, just use what we found | |
cd9a469c | 14358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14359 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14360 | fi |
f5aebe3e | 14361 | else |
14362 | ok=yes | |
14363 | case " ${configdirs} " in | |
14364 | *" binutils "*) ;; | |
14365 | *) ok=no ;; | |
14366 | esac | |
b30fcfae | 14367 | |
f5aebe3e | 14368 | if test $ok = yes; then |
14369 | # An in-tree tool is available and we can use it | |
2b7a4d59 | 14370 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
cd9a469c | 14371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14372 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14373 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14374 | # We already found the complete path | |
a6c599b5 | 14375 | ac_dir=`dirname $STRIP_FOR_TARGET` |
cd9a469c | 14376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14377 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14378 | elif test "x$target" = "x$host"; then |
14379 | # We can use an host tool | |
14380 | STRIP_FOR_TARGET='$(STRIP)' | |
cd9a469c | 14381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14382 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14383 | else |
14384 | # We need a cross tool | |
cd9a469c | 14385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14386 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14387 | fi |
14388 | fi | |
a83ffacf | 14389 | |
cd9a469c | 14390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14391 | $as_echo_n "checking where to find the target windres... " >&6; } | |
f5aebe3e | 14392 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14393 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14394 | # We already found the complete path | |
a6c599b5 | 14395 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
cd9a469c | 14396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14397 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14398 | else |
14399 | # Canadian cross, just use what we found | |
cd9a469c | 14400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14401 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14402 | fi |
f5aebe3e | 14403 | else |
14404 | ok=yes | |
14405 | case " ${configdirs} " in | |
14406 | *" binutils "*) ;; | |
14407 | *) ok=no ;; | |
14408 | esac | |
b30fcfae | 14409 | |
f5aebe3e | 14410 | if test $ok = yes; then |
14411 | # An in-tree tool is available and we can use it | |
14412 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
cd9a469c | 14413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14414 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14415 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14416 | # We already found the complete path | |
a6c599b5 | 14417 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
cd9a469c | 14418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14419 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14420 | elif test "x$target" = "x$host"; then |
14421 | # We can use an host tool | |
14422 | WINDRES_FOR_TARGET='$(WINDRES)' | |
cd9a469c | 14423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14424 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14425 | else |
14426 | # We need a cross tool | |
cd9a469c | 14427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14428 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14429 | fi |
71ab34df | 14430 | fi |
49aae208 | 14431 | |
cd9a469c | 14432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14433 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
75d6a0a9 | 14434 | if test "x${build}" != "x${host}" ; then |
14435 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14436 | # We already found the complete path | |
14437 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
cd9a469c | 14438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14439 | $as_echo "pre-installed in $ac_dir" >&6; } | |
75d6a0a9 | 14440 | else |
14441 | # Canadian cross, just use what we found | |
cd9a469c | 14442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14443 | $as_echo "pre-installed" >&6; } | |
75d6a0a9 | 14444 | fi |
14445 | else | |
14446 | ok=yes | |
14447 | case " ${configdirs} " in | |
14448 | *" binutils "*) ;; | |
14449 | *) ok=no ;; | |
14450 | esac | |
14451 | ||
14452 | if test $ok = yes; then | |
14453 | # An in-tree tool is available and we can use it | |
14454 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
cd9a469c | 14455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14456 | $as_echo "just compiled" >&6; } | |
75d6a0a9 | 14457 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14458 | # We already found the complete path | |
14459 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
cd9a469c | 14460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14461 | $as_echo "pre-installed in $ac_dir" >&6; } | |
75d6a0a9 | 14462 | elif test "x$target" = "x$host"; then |
14463 | # We can use an host tool | |
14464 | WINDMC_FOR_TARGET='$(WINDMC)' | |
cd9a469c | 14465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14466 | $as_echo "host tool" >&6; } | |
75d6a0a9 | 14467 | else |
14468 | # We need a cross tool | |
cd9a469c | 14469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14470 | $as_echo "pre-installed" >&6; } | |
75d6a0a9 | 14471 | fi |
14472 | fi | |
14473 | ||
49aae208 | 14474 | |
14475 | ||
f5aebe3e | 14476 | |
a83ffacf | 14477 | |
71ab34df | 14478 | # Certain tools may need extra flags. |
14479 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14480 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14481 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14482 | ||
f5aebe3e | 14483 | # When building target libraries, except in a Canadian cross, we use |
14484 | # the same toolchain as the compiler we just built. | |
14485 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14486 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14487 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14488 | if test $host = $build; then | |
14489 | case " $configdirs " in | |
14490 | *" gcc "*) | |
14491 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14492 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14493 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14494 | ;; | |
14495 | esac | |
14496 | fi | |
14497 | ||
14498 | ||
14499 | ||
14500 | ||
14501 | ||
cd9a469c | 14502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14503 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14504 | # Check whether --enable-maintainer-mode was given. | |
14505 | if test "${enable_maintainer_mode+set}" = set; then : | |
14506 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3290c0cf | 14507 | else |
14508 | USE_MAINTAINER_MODE=no | |
cd9a469c | 14509 | fi |
14510 | ||
14511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14512 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3290c0cf | 14513 | |
14514 | ||
14515 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14516 | MAINTAINER_MODE_TRUE= | |
14517 | MAINTAINER_MODE_FALSE='#' | |
14518 | else | |
14519 | MAINTAINER_MODE_TRUE='#' | |
14520 | MAINTAINER_MODE_FALSE= | |
b30fcfae | 14521 | fi |
3290c0cf | 14522 | MAINT=$MAINTAINER_MODE_TRUE |
14523 | ||
2d64c2fd | 14524 | # --------------------- |
14525 | # GCC bootstrap support | |
14526 | # --------------------- | |
14527 | ||
14528 | # Stage specific cflags for build. | |
14529 | stage1_cflags="-g" | |
14530 | case $build in | |
14531 | vax-*-*) | |
14532 | case ${GCC} in | |
14533 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14534 | *) stage1_cflags="-g -J" ;; | |
14535 | esac ;; | |
2d64c2fd | 14536 | esac |
14537 | ||
f508ba97 | 14538 | |
2d64c2fd | 14539 | |
39f34cfc | 14540 | # Enable --enable-checking in stage1 of the compiler. |
cd9a469c | 14541 | # Check whether --enable-stage1-checking was given. |
14542 | if test "${enable_stage1_checking+set}" = set; then : | |
14543 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
39f34cfc | 14544 | else |
f6be6a96 | 14545 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
868af6b6 | 14546 | # For --disable-checking or implicit --enable-checking=release, avoid |
14547 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
14548 | # bootstraps. See PR62077. | |
868af6b6 | 14549 | case $BUILD_CONFIG in |
14550 | *lto*) | |
c05979a1 | 14551 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
14552 | *) | |
14553 | stage1_checking=--enable-checking=yes,types;; | |
868af6b6 | 14554 | esac |
c05979a1 | 14555 | if test "x$enable_checking" = x && \ |
14556 | test -d ${srcdir}/gcc && \ | |
14557 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
bee4f5e5 | 14558 | stage1_checking=--enable-checking=yes,types,extra |
c05979a1 | 14559 | fi |
39f34cfc | 14560 | else |
f6be6a96 | 14561 | stage1_checking=--enable-checking=$enable_checking,types |
39f34cfc | 14562 | fi |
cd9a469c | 14563 | fi |
39f34cfc | 14564 | |
14565 | ||
5084f823 | 14566 | |
cd9a469c | 14567 | # Enable -Werror in bootstrap stage2 and later. |
14568 | # Check whether --enable-werror was given. | |
14569 | if test "${enable_werror+set}" = set; then : | |
14570 | enableval=$enable_werror; | |
2d64c2fd | 14571 | else |
dd979235 | 14572 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
2d64c2fd | 14573 | enable_werror=yes |
dc914c6d | 14574 | else |
14575 | enable_werror=no | |
14576 | fi | |
cd9a469c | 14577 | fi |
14578 | ||
c0c5068d | 14579 | case ${enable_werror} in |
14580 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14581 | *) stage2_werror_flag="" ;; | |
2d64c2fd | 14582 | esac |
14583 | ||
14584 | ||
2bd17377 | 14585 | # Enable --enable-host-shared. |
14586 | # Check whether --enable-host-shared was given. | |
14587 | if test "${enable_host_shared+set}" = set; then : | |
14588 | enableval=$enable_host_shared; host_shared=$enableval | |
14589 | else | |
14590 | host_shared=no | |
14591 | fi | |
14592 | ||
14593 | ||
14594 | ||
5c524c74 | 14595 | # PR jit/64780: Require the user to explicitly specify |
14596 | # --enable-host-shared if the jit is enabled, hinting | |
14597 | # that they might want to do a separate configure/build of | |
14598 | # the jit, to avoid users from slowing down the rest of the | |
14599 | # compiler by enabling the jit. | |
14600 | if test ${host_shared} = "no" ; then | |
14601 | case "${enable_languages}" in | |
14602 | *jit*) | |
14603 | as_fn_error " | |
14604 | Enabling language \"jit\" requires --enable-host-shared. | |
14605 | ||
14606 | --enable-host-shared typically slows the rest of the compiler down by | |
14607 | a few %, so you must explicitly enable it. | |
14608 | ||
14609 | If you want to build both the jit and the regular compiler, it is often | |
14610 | best to do this via two separate configure/builds, in separate | |
14611 | directories, to avoid imposing the performance cost of | |
14612 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
14613 | ;; | |
14614 | *) | |
14615 | ;; | |
14616 | esac | |
14617 | fi | |
14618 | ||
6fe86052 | 14619 | # Specify what files to not compare during bootstrap. |
14620 | ||
14621 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14622 | case "$target" in | |
14623 | hppa*64*-*-hpux*) ;; | |
14624 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
62f0972f | 14625 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
6fe86052 | 14626 | esac |
14627 | ||
14628 | ||
cd9a469c | 14629 | ac_config_files="$ac_config_files Makefile" |
14630 | ||
b30fcfae | 14631 | cat >confcache <<\_ACEOF |
71ab34df | 14632 | # This file is a shell script that caches the results of configure |
14633 | # tests run on this system so they can be shared between configure | |
b30fcfae | 14634 | # scripts and configure runs, see configure's option --config-cache. |
14635 | # It is not useful on other systems. If it contains results you don't | |
14636 | # want to keep, you may remove or edit it. | |
71ab34df | 14637 | # |
b30fcfae | 14638 | # config.status only pays attention to the cache file if you give it |
14639 | # the --recheck option to rerun configure. | |
71ab34df | 14640 | # |
b30fcfae | 14641 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14642 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14643 | # following values. | |
14644 | ||
14645 | _ACEOF | |
14646 | ||
71ab34df | 14647 | # The following way of writing the cache mishandles newlines in values, |
14648 | # but we know of no workaround that is simple, portable, and efficient. | |
cd9a469c | 14649 | # So, we kill variables containing newlines. |
71ab34df | 14650 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14651 | # and sets the high bit in the cache file unless we assign to the vars. | |
cd9a469c | 14652 | ( |
14653 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14654 | eval ac_val=\$$ac_var | |
14655 | case $ac_val in #( | |
14656 | *${as_nl}*) | |
14657 | case $ac_var in #( | |
14658 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14659 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14660 | esac | |
14661 | case $ac_var in #( | |
14662 | _ | IFS | as_nl) ;; #( | |
14663 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14664 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14665 | esac ;; | |
14666 | esac | |
14667 | done | |
14668 | ||
b30fcfae | 14669 | (set) 2>&1 | |
cd9a469c | 14670 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14671 | *${as_nl}ac_space=\ *) | |
14672 | # `set' does not quote correctly, so add quotes: double-quote | |
14673 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b30fcfae | 14674 | sed -n \ |
14675 | "s/'/'\\\\''/g; | |
14676 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
cd9a469c | 14677 | ;; #( |
b30fcfae | 14678 | *) |
14679 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
cd9a469c | 14680 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b30fcfae | 14681 | ;; |
cd9a469c | 14682 | esac | |
14683 | sort | |
14684 | ) | | |
b30fcfae | 14685 | sed ' |
cd9a469c | 14686 | /^ac_cv_env_/b end |
b30fcfae | 14687 | t clear |
cd9a469c | 14688 | :clear |
b30fcfae | 14689 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14690 | t end | |
cd9a469c | 14691 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14692 | :end' >>confcache | |
14693 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14694 | if test -w "$cache_file"; then | |
14695 | test "x$cache_file" != "x/dev/null" && | |
14696 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14697 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
b30fcfae | 14698 | cat confcache >$cache_file |
71ab34df | 14699 | else |
cd9a469c | 14700 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14701 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
71ab34df | 14702 | fi |
805e22b2 | 14703 | fi |
71ab34df | 14704 | rm -f confcache |
a8298541 | 14705 | |
71ab34df | 14706 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14707 | # Let make expand exec_prefix. | |
14708 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
92424a17 | 14709 | |
71ab34df | 14710 | # Transform confdefs.h into DEFS. |
14711 | # Protect against shell expansion while executing Makefile rules. | |
14712 | # Protect against Makefile macro expansion. | |
b30fcfae | 14713 | # |
14714 | # If the first sed substitution is executed (which looks for macros that | |
cd9a469c | 14715 | # take arguments), then branch to the quote section. Otherwise, |
b30fcfae | 14716 | # look for a macro that doesn't take arguments. |
cd9a469c | 14717 | ac_script=' |
14718 | :mline | |
14719 | /\\$/{ | |
14720 | N | |
14721 | s,\\\n,, | |
14722 | b mline | |
14723 | } | |
b30fcfae | 14724 | t clear |
cd9a469c | 14725 | :clear |
14726 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
b30fcfae | 14727 | t quote |
cd9a469c | 14728 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
b30fcfae | 14729 | t quote |
cd9a469c | 14730 | b any |
14731 | :quote | |
14732 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14733 | s/\[/\\&/g | |
14734 | s/\]/\\&/g | |
14735 | s/\$/$$/g | |
14736 | H | |
14737 | :any | |
14738 | ${ | |
14739 | g | |
14740 | s/^\n// | |
14741 | s/\n/ /g | |
14742 | p | |
14743 | } | |
14744 | ' | |
14745 | DEFS=`sed -n "$ac_script" confdefs.h` | |
b30fcfae | 14746 | |
14747 | ||
14748 | ac_libobjs= | |
14749 | ac_ltlibobjs= | |
14750 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14751 | # 1. Remove the extension, and $U if already installed. | |
cd9a469c | 14752 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14753 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14754 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14755 | # will be set to the directory where LIBOBJS objects are built. | |
14756 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14757 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b30fcfae | 14758 | done |
14759 | LIBOBJS=$ac_libobjs | |
a4af6a58 | 14760 | |
b30fcfae | 14761 | LTLIBOBJS=$ac_ltlibobjs |
a83ffacf | 14762 | |
ae48753c | 14763 | |
b30fcfae | 14764 | |
14765 | : ${CONFIG_STATUS=./config.status} | |
cd9a469c | 14766 | ac_write_fail=0 |
b30fcfae | 14767 | ac_clean_files_save=$ac_clean_files |
14768 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
cd9a469c | 14769 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14770 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14771 | as_write_fail=0 | |
14772 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b30fcfae | 14773 | #! $SHELL |
14774 | # Generated by $as_me. | |
71ab34df | 14775 | # Run this file to recreate the current configuration. |
71ab34df | 14776 | # Compiler output produced by configure, useful for debugging |
b30fcfae | 14777 | # configure, is in config.log if it exists. |
a83ffacf | 14778 | |
b30fcfae | 14779 | debug=false |
14780 | ac_cs_recheck=false | |
14781 | ac_cs_silent=false | |
b30fcfae | 14782 | |
cd9a469c | 14783 | SHELL=\${CONFIG_SHELL-$SHELL} |
14784 | export SHELL | |
14785 | _ASEOF | |
14786 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14787 | ## -------------------- ## | |
14788 | ## M4sh Initialization. ## | |
14789 | ## -------------------- ## | |
14790 | ||
14791 | # Be more Bourne compatible | |
14792 | DUALCASE=1; export DUALCASE # for MKS sh | |
14793 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b30fcfae | 14794 | emulate sh |
14795 | NULLCMD=: | |
cd9a469c | 14796 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b30fcfae | 14797 | # is contrary to our usage. Disable this feature. |
14798 | alias -g '${1+"$@"}'='"$@"' | |
cd9a469c | 14799 | setopt NO_GLOB_SUBST |
14800 | else | |
14801 | case `(set -o) 2>/dev/null` in #( | |
14802 | *posix*) : | |
14803 | set -o posix ;; #( | |
14804 | *) : | |
14805 | ;; | |
14806 | esac | |
b30fcfae | 14807 | fi |
b30fcfae | 14808 | |
cd9a469c | 14809 | |
14810 | as_nl=' | |
14811 | ' | |
14812 | export as_nl | |
14813 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14814 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14815 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14816 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14817 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14818 | # but without wasting forks for bash or zsh. | |
14819 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14820 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14821 | as_echo='print -r --' | |
14822 | as_echo_n='print -rn --' | |
14823 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14824 | as_echo='printf %s\n' | |
14825 | as_echo_n='printf %s' | |
14826 | else | |
14827 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14828 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14829 | as_echo_n='/usr/ucb/echo -n' | |
14830 | else | |
14831 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14832 | as_echo_n_body='eval | |
14833 | arg=$1; | |
14834 | case $arg in #( | |
14835 | *"$as_nl"*) | |
14836 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14837 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14838 | esac; | |
14839 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14840 | ' | |
14841 | export as_echo_n_body | |
14842 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14843 | fi | |
14844 | export as_echo_body | |
14845 | as_echo='sh -c $as_echo_body as_echo' | |
b30fcfae | 14846 | fi |
14847 | ||
cd9a469c | 14848 | # The user is always right. |
14849 | if test "${PATH_SEPARATOR+set}" != set; then | |
14850 | PATH_SEPARATOR=: | |
14851 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14852 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14853 | PATH_SEPARATOR=';' | |
14854 | } | |
14855 | fi | |
14856 | ||
14857 | ||
14858 | # IFS | |
14859 | # We need space, tab and new line, in precisely that order. Quoting is | |
14860 | # there to prevent editors from complaining about space-tab. | |
14861 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14862 | # splitting by setting IFS to empty value.) | |
14863 | IFS=" "" $as_nl" | |
14864 | ||
14865 | # Find who we are. Look in the path if we contain no directory separator. | |
14866 | case $0 in #(( | |
14867 | *[\\/]* ) as_myself=$0 ;; | |
14868 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14869 | for as_dir in $PATH | |
14870 | do | |
14871 | IFS=$as_save_IFS | |
14872 | test -z "$as_dir" && as_dir=. | |
14873 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14874 | done | |
14875 | IFS=$as_save_IFS | |
14876 | ||
14877 | ;; | |
14878 | esac | |
14879 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14880 | # in which case we are not to be found in the path. | |
14881 | if test "x$as_myself" = x; then | |
14882 | as_myself=$0 | |
14883 | fi | |
14884 | if test ! -f "$as_myself"; then | |
14885 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14886 | exit 1 | |
14887 | fi | |
b30fcfae | 14888 | |
cd9a469c | 14889 | # Unset variables that we do not need and which cause bugs (e.g. in |
14890 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14891 | # suppresses any "Segmentation fault" message there. '((' could | |
14892 | # trigger a bug in pdksh 5.2.14. | |
14893 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14894 | do eval test x\${$as_var+set} = xset \ | |
14895 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14896 | done | |
b30fcfae | 14897 | PS1='$ ' |
14898 | PS2='> ' | |
14899 | PS4='+ ' | |
14900 | ||
14901 | # NLS nuisances. | |
cd9a469c | 14902 | LC_ALL=C |
14903 | export LC_ALL | |
14904 | LANGUAGE=C | |
14905 | export LANGUAGE | |
14906 | ||
14907 | # CDPATH. | |
14908 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14909 | ||
14910 | ||
14911 | # as_fn_error ERROR [LINENO LOG_FD] | |
14912 | # --------------------------------- | |
14913 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14914 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14915 | # script with status $?, using 1 if that was 0. | |
14916 | as_fn_error () | |
14917 | { | |
14918 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14919 | if test "$3"; then | |
14920 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14921 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
b30fcfae | 14922 | fi |
cd9a469c | 14923 | $as_echo "$as_me: error: $1" >&2 |
14924 | as_fn_exit $as_status | |
14925 | } # as_fn_error | |
14926 | ||
14927 | ||
14928 | # as_fn_set_status STATUS | |
14929 | # ----------------------- | |
14930 | # Set $? to STATUS, without forking. | |
14931 | as_fn_set_status () | |
14932 | { | |
14933 | return $1 | |
14934 | } # as_fn_set_status | |
14935 | ||
14936 | # as_fn_exit STATUS | |
14937 | # ----------------- | |
14938 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14939 | as_fn_exit () | |
14940 | { | |
14941 | set +e | |
14942 | as_fn_set_status $1 | |
14943 | exit $1 | |
14944 | } # as_fn_exit | |
14945 | ||
14946 | # as_fn_unset VAR | |
14947 | # --------------- | |
14948 | # Portably unset VAR. | |
14949 | as_fn_unset () | |
14950 | { | |
14951 | { eval $1=; unset $1;} | |
14952 | } | |
14953 | as_unset=as_fn_unset | |
14954 | # as_fn_append VAR VALUE | |
14955 | # ---------------------- | |
14956 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14957 | # advantage of any shell optimizations that allow amortized linear growth over | |
14958 | # repeated appends, instead of the typical quadratic growth present in naive | |
14959 | # implementations. | |
14960 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14961 | eval 'as_fn_append () | |
14962 | { | |
14963 | eval $1+=\$2 | |
14964 | }' | |
14965 | else | |
14966 | as_fn_append () | |
14967 | { | |
14968 | eval $1=\$$1\$2 | |
14969 | } | |
14970 | fi # as_fn_append | |
14971 | ||
14972 | # as_fn_arith ARG... | |
14973 | # ------------------ | |
14974 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14975 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14976 | # must be portable across $(()) and expr. | |
14977 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14978 | eval 'as_fn_arith () | |
14979 | { | |
14980 | as_val=$(( $* )) | |
14981 | }' | |
14982 | else | |
14983 | as_fn_arith () | |
14984 | { | |
14985 | as_val=`expr "$@" || test $? -eq 1` | |
14986 | } | |
14987 | fi # as_fn_arith | |
14988 | ||
b30fcfae | 14989 | |
cd9a469c | 14990 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14991 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b30fcfae | 14992 | as_expr=expr |
14993 | else | |
14994 | as_expr=false | |
14995 | fi | |
14996 | ||
cd9a469c | 14997 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b30fcfae | 14998 | as_basename=basename |
14999 | else | |
15000 | as_basename=false | |
15001 | fi | |
15002 | ||
cd9a469c | 15003 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15004 | as_dirname=dirname | |
15005 | else | |
15006 | as_dirname=false | |
15007 | fi | |
b30fcfae | 15008 | |
cd9a469c | 15009 | as_me=`$as_basename -- "$0" || |
b30fcfae | 15010 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15011 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 15012 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15013 | $as_echo X/"$0" | | |
15014 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15015 | s//\1/ | |
15016 | q | |
15017 | } | |
15018 | /^X\/\(\/\/\)$/{ | |
15019 | s//\1/ | |
15020 | q | |
15021 | } | |
15022 | /^X\/\(\/\).*/{ | |
15023 | s//\1/ | |
15024 | q | |
15025 | } | |
15026 | s/.*/./; q'` | |
5084f823 | 15027 | |
5084f823 | 15028 | # Avoid depending upon Character Ranges. |
15029 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15030 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15031 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15032 | as_cr_digits='0123456789' | |
15033 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15034 | ||
cd9a469c | 15035 | ECHO_C= ECHO_N= ECHO_T= |
15036 | case `echo -n x` in #((((( | |
15037 | -n*) | |
15038 | case `echo 'xy\c'` in | |
15039 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15040 | xy) ECHO_C='\c';; | |
15041 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15042 | ECHO_T=' ';; | |
15043 | esac;; | |
15044 | *) | |
15045 | ECHO_N='-n';; | |
b30fcfae | 15046 | esac |
15047 | ||
cd9a469c | 15048 | rm -f conf$$ conf$$.exe conf$$.file |
15049 | if test -d conf$$.dir; then | |
15050 | rm -f conf$$.dir/conf$$.file | |
b30fcfae | 15051 | else |
cd9a469c | 15052 | rm -f conf$$.dir |
15053 | mkdir conf$$.dir 2>/dev/null | |
b30fcfae | 15054 | fi |
cd9a469c | 15055 | if (echo >conf$$.file) 2>/dev/null; then |
15056 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
5084f823 | 15057 | as_ln_s='ln -s' |
cd9a469c | 15058 | # ... but there are two gotchas: |
15059 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15060 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15061 | # In both cases, we have to default to `cp -p'. | |
15062 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15063 | as_ln_s='cp -p' | |
15064 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15065 | as_ln_s=ln | |
15066 | else | |
15067 | as_ln_s='cp -p' | |
5084f823 | 15068 | fi |
b30fcfae | 15069 | else |
15070 | as_ln_s='cp -p' | |
15071 | fi | |
cd9a469c | 15072 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15073 | rmdir conf$$.dir 2>/dev/null | |
15074 | ||
15075 | ||
15076 | # as_fn_mkdir_p | |
15077 | # ------------- | |
15078 | # Create "$as_dir" as a directory, including parents if necessary. | |
15079 | as_fn_mkdir_p () | |
15080 | { | |
15081 | ||
15082 | case $as_dir in #( | |
15083 | -*) as_dir=./$as_dir;; | |
15084 | esac | |
15085 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15086 | as_dirs= | |
15087 | while :; do | |
15088 | case $as_dir in #( | |
15089 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15090 | *) as_qdir=$as_dir;; | |
15091 | esac | |
15092 | as_dirs="'$as_qdir' $as_dirs" | |
15093 | as_dir=`$as_dirname -- "$as_dir" || | |
15094 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15095 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15096 | X"$as_dir" : 'X\(//\)$' \| \ | |
15097 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15098 | $as_echo X"$as_dir" | | |
15099 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15100 | s//\1/ | |
15101 | q | |
15102 | } | |
15103 | /^X\(\/\/\)[^/].*/{ | |
15104 | s//\1/ | |
15105 | q | |
15106 | } | |
15107 | /^X\(\/\/\)$/{ | |
15108 | s//\1/ | |
15109 | q | |
15110 | } | |
15111 | /^X\(\/\).*/{ | |
15112 | s//\1/ | |
15113 | q | |
15114 | } | |
15115 | s/.*/./; q'` | |
15116 | test -d "$as_dir" && break | |
15117 | done | |
15118 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15119 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
15120 | ||
b30fcfae | 15121 | |
cd9a469c | 15122 | } # as_fn_mkdir_p |
b30fcfae | 15123 | if mkdir -p . 2>/dev/null; then |
cd9a469c | 15124 | as_mkdir_p='mkdir -p "$as_dir"' |
b30fcfae | 15125 | else |
15126 | test -d ./-p && rmdir ./-p | |
15127 | as_mkdir_p=false | |
15128 | fi | |
15129 | ||
cd9a469c | 15130 | if test -x / >/dev/null 2>&1; then |
15131 | as_test_x='test -x' | |
15132 | else | |
15133 | if ls -dL / >/dev/null 2>&1; then | |
15134 | as_ls_L_option=L | |
15135 | else | |
15136 | as_ls_L_option= | |
15137 | fi | |
15138 | as_test_x=' | |
15139 | eval sh -c '\'' | |
15140 | if test -d "$1"; then | |
15141 | test -d "$1/."; | |
15142 | else | |
15143 | case $1 in #( | |
15144 | -*)set "./$1";; | |
15145 | esac; | |
15146 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
15147 | ???[sx]*):;;*)false;;esac;fi | |
15148 | '\'' sh | |
15149 | ' | |
15150 | fi | |
15151 | as_executable_p=$as_test_x | |
b30fcfae | 15152 | |
15153 | # Sed expression to map a string onto a valid CPP name. | |
15154 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15155 | ||
15156 | # Sed expression to map a string onto a valid variable name. | |
15157 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15158 | ||
15159 | ||
b30fcfae | 15160 | exec 6>&1 |
cd9a469c | 15161 | ## ----------------------------------- ## |
15162 | ## Main body of $CONFIG_STATUS script. ## | |
15163 | ## ----------------------------------- ## | |
15164 | _ASEOF | |
15165 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15166 | ||
15167 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15168 | # Save the log message, to keep $0 and so on meaningful, and to | |
b30fcfae | 15169 | # report actual input values of CONFIG_FILES etc. instead of their |
cd9a469c | 15170 | # values after options handling. |
15171 | ac_log=" | |
b30fcfae | 15172 | This file was extended by $as_me, which was |
cd9a469c | 15173 | generated by GNU Autoconf 2.64. Invocation command line was |
b30fcfae | 15174 | |
15175 | CONFIG_FILES = $CONFIG_FILES | |
15176 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15177 | CONFIG_LINKS = $CONFIG_LINKS | |
15178 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15179 | $ $0 $@ | |
15180 | ||
cd9a469c | 15181 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15182 | " | |
15183 | ||
b30fcfae | 15184 | _ACEOF |
15185 | ||
cd9a469c | 15186 | case $ac_config_files in *" |
15187 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15188 | esac | |
b30fcfae | 15189 | |
5084f823 | 15190 | |
5084f823 | 15191 | |
cd9a469c | 15192 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15193 | # Files that config.status was made for. | |
15194 | config_files="$ac_config_files" | |
b30fcfae | 15195 | |
cd9a469c | 15196 | _ACEOF |
5084f823 | 15197 | |
cd9a469c | 15198 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b30fcfae | 15199 | ac_cs_usage="\ |
cd9a469c | 15200 | \`$as_me' instantiates files and other configuration actions |
15201 | from templates according to the current configuration. Unless the files | |
15202 | and actions are specified as TAGs, all are instantiated by default. | |
b30fcfae | 15203 | |
cd9a469c | 15204 | Usage: $0 [OPTION]... [TAG]... |
b30fcfae | 15205 | |
15206 | -h, --help print this help, then exit | |
cd9a469c | 15207 | -V, --version print version number and configuration settings, then exit |
15208 | -q, --quiet, --silent | |
15209 | do not print progress messages | |
b30fcfae | 15210 | -d, --debug don't remove temporary files |
15211 | --recheck update $as_me by reconfiguring in the same conditions | |
cd9a469c | 15212 | --file=FILE[:TEMPLATE] |
15213 | instantiate the configuration file FILE | |
b30fcfae | 15214 | |
15215 | Configuration files: | |
15216 | $config_files | |
15217 | ||
cd9a469c | 15218 | Report bugs to the package provider." |
5084f823 | 15219 | |
cd9a469c | 15220 | _ACEOF |
15221 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b30fcfae | 15222 | ac_cs_version="\\ |
15223 | config.status | |
cd9a469c | 15224 | configured by $0, generated by GNU Autoconf 2.64, |
15225 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
b30fcfae | 15226 | |
cd9a469c | 15227 | Copyright (C) 2009 Free Software Foundation, Inc. |
b30fcfae | 15228 | This config.status script is free software; the Free Software Foundation |
15229 | gives unlimited permission to copy, distribute and modify it." | |
cd9a469c | 15230 | |
15231 | ac_pwd='$ac_pwd' | |
15232 | srcdir='$srcdir' | |
15233 | INSTALL='$INSTALL' | |
b181f265 | 15234 | AWK='$AWK' |
cd9a469c | 15235 | test -n "\$AWK" || AWK=awk |
b30fcfae | 15236 | _ACEOF |
15237 | ||
cd9a469c | 15238 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15239 | # The default lists apply if the user does not specify any file. | |
b30fcfae | 15240 | ac_need_defaults=: |
15241 | while test $# != 0 | |
b1660f25 | 15242 | do |
b30fcfae | 15243 | case $1 in |
15244 | --*=*) | |
cd9a469c | 15245 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15246 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b30fcfae | 15247 | ac_shift=: |
15248 | ;; | |
cd9a469c | 15249 | *) |
b30fcfae | 15250 | ac_option=$1 |
15251 | ac_optarg=$2 | |
15252 | ac_shift=shift | |
15253 | ;; | |
b30fcfae | 15254 | esac |
15255 | ||
15256 | case $ac_option in | |
15257 | # Handling of the options. | |
71ab34df | 15258 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
b30fcfae | 15259 | ac_cs_recheck=: ;; |
cd9a469c | 15260 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15261 | $as_echo "$ac_cs_version"; exit ;; | |
15262 | --debug | --debu | --deb | --de | --d | -d ) | |
b30fcfae | 15263 | debug=: ;; |
15264 | --file | --fil | --fi | --f ) | |
15265 | $ac_shift | |
cd9a469c | 15266 | case $ac_optarg in |
15267 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15268 | esac | |
15269 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
5084f823 | 15270 | ac_need_defaults=false;; |
cd9a469c | 15271 | --he | --h | --help | --hel | -h ) |
15272 | $as_echo "$ac_cs_usage"; exit ;; | |
b30fcfae | 15273 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15274 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15275 | ac_cs_silent=: ;; | |
15276 | ||
15277 | # This is an error. | |
cd9a469c | 15278 | -*) as_fn_error "unrecognized option: \`$1' |
15279 | Try \`$0 --help' for more information." ;; | |
b30fcfae | 15280 | |
cd9a469c | 15281 | *) as_fn_append ac_config_targets " $1" |
15282 | ac_need_defaults=false ;; | |
b30fcfae | 15283 | |
a83ffacf | 15284 | esac |
b30fcfae | 15285 | shift |
a83ffacf | 15286 | done |
15287 | ||
b30fcfae | 15288 | ac_configure_extra_args= |
a83ffacf | 15289 | |
b30fcfae | 15290 | if $ac_cs_silent; then |
15291 | exec 6>/dev/null | |
15292 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15293 | fi | |
a83ffacf | 15294 | |
b30fcfae | 15295 | _ACEOF |
cd9a469c | 15296 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b30fcfae | 15297 | if \$ac_cs_recheck; then |
cd9a469c | 15298 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15299 | shift | |
15300 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15301 | CONFIG_SHELL='$SHELL' | |
15302 | export CONFIG_SHELL | |
15303 | exec "\$@" | |
b30fcfae | 15304 | fi |
15305 | ||
15306 | _ACEOF | |
cd9a469c | 15307 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15308 | exec 5>>config.log | |
15309 | { | |
15310 | echo | |
15311 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15312 | ## Running $as_me. ## | |
15313 | _ASBOX | |
15314 | $as_echo "$ac_log" | |
15315 | } >&5 | |
b30fcfae | 15316 | |
cd9a469c | 15317 | _ACEOF |
15318 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8bb79148 | 15319 | # |
15320 | # INIT-COMMANDS | |
15321 | # | |
15322 | extrasub_build="$extrasub_build" | |
15323 | extrasub_host="$extrasub_host" | |
15324 | extrasub_target="$extrasub_target" | |
15325 | ||
cd9a469c | 15326 | _ACEOF |
b30fcfae | 15327 | |
cd9a469c | 15328 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
570af75a | 15329 | |
cd9a469c | 15330 | # Handling of arguments. |
b30fcfae | 15331 | for ac_config_target in $ac_config_targets |
15332 | do | |
cd9a469c | 15333 | case $ac_config_target in |
15334 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15335 | ||
15336 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
b30fcfae | 15337 | esac |
15338 | done | |
15339 | ||
cd9a469c | 15340 | |
b30fcfae | 15341 | # If the user did not use the arguments to specify the items to instantiate, |
15342 | # then the envvar interface is used. Set only those that are not. | |
15343 | # We use the long form for the default assignment because of an extremely | |
15344 | # bizarre bug on SunOS 4.1.3. | |
15345 | if $ac_need_defaults; then | |
15346 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15347 | fi | |
15348 | ||
15349 | # Have a temporary directory for convenience. Make it in the build tree | |
cd9a469c | 15350 | # simply because there is no reason against having it here, and in addition, |
b30fcfae | 15351 | # creating and moving files from /tmp can sometimes cause problems. |
cd9a469c | 15352 | # Hook for its removal unless debugging. |
15353 | # Note that there is a small window in which the directory will not be cleaned: | |
15354 | # after its creation but before its name has been assigned to `$tmp'. | |
b30fcfae | 15355 | $debug || |
15356 | { | |
cd9a469c | 15357 | tmp= |
15358 | trap 'exit_status=$? | |
15359 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15360 | ' 0 | |
15361 | trap 'as_fn_exit 1' 1 2 13 15 | |
b30fcfae | 15362 | } |
b30fcfae | 15363 | # Create a (secure) tmp directory for tmp files. |
15364 | ||
15365 | { | |
cd9a469c | 15366 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b30fcfae | 15367 | test -n "$tmp" && test -d "$tmp" |
15368 | } || | |
15369 | { | |
cd9a469c | 15370 | tmp=./conf$$-$RANDOM |
15371 | (umask 077 && mkdir "$tmp") | |
15372 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
15373 | ||
15374 | # Set up the scripts for CONFIG_FILES section. | |
15375 | # No need to generate them if there are no CONFIG_FILES. | |
15376 | # This happens for instance with `./config.status config.h'. | |
15377 | if test -n "$CONFIG_FILES"; then | |
15378 | ||
15379 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15380 | ac_cs_awk_getline=: | |
15381 | ac_cs_awk_pipe_init= | |
15382 | ac_cs_awk_read_file=' | |
15383 | while ((getline aline < (F[key])) > 0) | |
15384 | print(aline) | |
15385 | close(F[key])' | |
15386 | ac_cs_awk_pipe_fini= | |
15387 | else | |
15388 | ac_cs_awk_getline=false | |
15389 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15390 | ac_cs_awk_read_file=' | |
15391 | print "|#_!!_#|" | |
15392 | print "cat " F[key] " &&" | |
15393 | '$ac_cs_awk_pipe_init | |
15394 | # The final `:' finishes the AND list. | |
15395 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15396 | fi | |
15397 | ac_cr=`echo X | tr X '\015'` | |
15398 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15399 | # But we know of no other shell where ac_cr would be empty at this | |
15400 | # point, so we can use a bashism as a fallback. | |
15401 | if test "x$ac_cr" = x; then | |
15402 | eval ac_cr=\$\'\\r\' | |
15403 | fi | |
15404 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15405 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15406 | ac_cs_awk_cr='\r' | |
15407 | else | |
15408 | ac_cs_awk_cr=$ac_cr | |
15409 | fi | |
15410 | ||
15411 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15412 | _ACEOF | |
15413 | ||
15414 | # Create commands to substitute file output variables. | |
b30fcfae | 15415 | { |
cd9a469c | 15416 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
15417 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
15418 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
15419 | echo "_ACAWK" && | |
15420 | echo "_ACEOF" | |
15421 | } >conf$$files.sh && | |
15422 | . ./conf$$files.sh || | |
15423 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15424 | rm -f conf$$files.sh | |
b30fcfae | 15425 | |
cd9a469c | 15426 | { |
15427 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15428 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15429 | echo "_ACEOF" | |
15430 | } >conf$$subs.sh || | |
15431 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15432 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15433 | ac_delim='%!_!# ' | |
15434 | for ac_last_try in false false false false false :; do | |
15435 | . ./conf$$subs.sh || | |
15436 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15437 | ||
15438 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15439 | if test $ac_delim_n = $ac_delim_num; then | |
15440 | break | |
15441 | elif $ac_last_try; then | |
15442 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15443 | else | |
15444 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15445 | fi | |
15446 | done | |
15447 | rm -f conf$$subs.sh | |
15448 | ||
15449 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15450 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
5084f823 | 15451 | _ACEOF |
cd9a469c | 15452 | sed -n ' |
15453 | h | |
15454 | s/^/S["/; s/!.*/"]=/ | |
15455 | p | |
15456 | g | |
15457 | s/^[^!]*!// | |
15458 | :repl | |
15459 | t repl | |
15460 | s/'"$ac_delim"'$// | |
15461 | t delim | |
15462 | :nl | |
15463 | h | |
15464 | s/\(.\{148\}\).*/\1/ | |
15465 | t more1 | |
15466 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15467 | p | |
15468 | n | |
15469 | b repl | |
15470 | :more1 | |
15471 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15472 | p | |
15473 | g | |
15474 | s/.\{148\}// | |
15475 | t nl | |
15476 | :delim | |
15477 | h | |
15478 | s/\(.\{148\}\).*/\1/ | |
15479 | t more2 | |
15480 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15481 | p | |
15482 | b | |
15483 | :more2 | |
15484 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15485 | p | |
15486 | g | |
15487 | s/.\{148\}// | |
15488 | t delim | |
15489 | ' <conf$$subs.awk | sed ' | |
15490 | /^[^""]/{ | |
15491 | N | |
15492 | s/\n// | |
15493 | } | |
15494 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15495 | rm -f conf$$subs.awk | |
15496 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15497 | _ACAWK | |
15498 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15499 | for (key in S) S_is_set[key] = 1 | |
15500 | FS = "\a" | |
15501 | \$ac_cs_awk_pipe_init | |
15502 | } | |
15503 | { | |
15504 | line = $ 0 | |
15505 | nfields = split(line, field, "@") | |
15506 | substed = 0 | |
15507 | len = length(field[1]) | |
15508 | for (i = 2; i < nfields; i++) { | |
15509 | key = field[i] | |
15510 | keylen = length(key) | |
15511 | if (S_is_set[key]) { | |
15512 | value = S[key] | |
15513 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15514 | len += length(value) + length(field[++i]) | |
15515 | substed = 1 | |
15516 | } else | |
15517 | len += 1 + keylen | |
15518 | } | |
15519 | if (nfields == 3 && !substed) { | |
15520 | key = field[2] | |
15521 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15522 | \$ac_cs_awk_read_file | |
15523 | next | |
15524 | } | |
15525 | } | |
15526 | print line | |
15527 | } | |
15528 | \$ac_cs_awk_pipe_fini | |
15529 | _ACAWK | |
15530 | _ACEOF | |
15531 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15532 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15533 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15534 | else | |
15535 | cat | |
15536 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15537 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15538 | _ACEOF | |
15539 | ||
15540 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15541 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15542 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15543 | # (actually we leave an empty line to preserve line numbers). | |
15544 | if test "x$srcdir" = x.; then | |
15545 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15546 | s/:*\$(srcdir):*/:/ | |
15547 | s/:*\${srcdir}:*/:/ | |
15548 | s/:*@srcdir@:*/:/ | |
15549 | s/^\([^=]*=[ ]*\):*/\1/ | |
15550 | s/:*$// | |
15551 | s/^[^=]*=[ ]*$// | |
15552 | }' | |
15553 | fi | |
5084f823 | 15554 | |
cd9a469c | 15555 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15556 | fi # test -n "$CONFIG_FILES" | |
5084f823 | 15557 | |
b30fcfae | 15558 | |
cd9a469c | 15559 | eval set X " :F $CONFIG_FILES " |
15560 | shift | |
15561 | for ac_tag | |
15562 | do | |
15563 | case $ac_tag in | |
15564 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15565 | esac | |
15566 | case $ac_mode$ac_tag in | |
15567 | :[FHL]*:*);; | |
15568 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15569 | :[FH]-) ac_tag=-:-;; | |
15570 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15571 | esac | |
15572 | ac_save_IFS=$IFS | |
15573 | IFS=: | |
15574 | set x $ac_tag | |
15575 | IFS=$ac_save_IFS | |
15576 | shift | |
15577 | ac_file=$1 | |
15578 | shift | |
a8298541 | 15579 | |
cd9a469c | 15580 | case $ac_mode in |
15581 | :L) ac_source=$1;; | |
15582 | :[FH]) | |
15583 | ac_file_inputs= | |
15584 | for ac_f | |
15585 | do | |
15586 | case $ac_f in | |
15587 | -) ac_f="$tmp/stdin";; | |
15588 | *) # Look for the file first in the build tree, then in the source tree | |
15589 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15590 | # because $ac_f cannot contain `:'. | |
15591 | test -f "$ac_f" || | |
15592 | case $ac_f in | |
15593 | [\\/$]*) false;; | |
15594 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15595 | esac || | |
15596 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15597 | esac | |
15598 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15599 | as_fn_append ac_file_inputs " '$ac_f'" | |
15600 | done | |
b30fcfae | 15601 | |
cd9a469c | 15602 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15603 | # use $as_me), people would be surprised to read: | |
15604 | # /* config.h. Generated by config.status. */ | |
15605 | configure_input='Generated from '` | |
15606 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15607 | `' by configure.' | |
15608 | if test x"$ac_file" != x-; then | |
15609 | configure_input="$ac_file. $configure_input" | |
15610 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15611 | $as_echo "$as_me: creating $ac_file" >&6;} | |
5084f823 | 15612 | fi |
cd9a469c | 15613 | # Neutralize special characters interpreted by sed in replacement strings. |
15614 | case $configure_input in #( | |
15615 | *\&* | *\|* | *\\* ) | |
15616 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15617 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15618 | *) ac_sed_conf_input=$configure_input;; | |
15619 | esac | |
570af75a | 15620 | |
cd9a469c | 15621 | case $ac_tag in |
15622 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15623 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15624 | esac | |
15625 | ;; | |
570af75a | 15626 | esac |
15627 | ||
cd9a469c | 15628 | ac_dir=`$as_dirname -- "$ac_file" || |
b30fcfae | 15629 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15630 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15631 | X"$ac_file" : 'X\(//\)$' \| \ | |
cd9a469c | 15632 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15633 | $as_echo X"$ac_file" | | |
15634 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15635 | s//\1/ | |
15636 | q | |
15637 | } | |
15638 | /^X\(\/\/\)[^/].*/{ | |
15639 | s//\1/ | |
15640 | q | |
15641 | } | |
15642 | /^X\(\/\/\)$/{ | |
15643 | s//\1/ | |
15644 | q | |
15645 | } | |
15646 | /^X\(\/\).*/{ | |
15647 | s//\1/ | |
15648 | q | |
15649 | } | |
15650 | s/.*/./; q'` | |
15651 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b30fcfae | 15652 | ac_builddir=. |
a83ffacf | 15653 | |
cd9a469c | 15654 | case "$ac_dir" in |
15655 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15656 | *) | |
15657 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15658 | # A ".." for each directory in $ac_dir_suffix. | |
15659 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15660 | case $ac_top_builddir_sub in | |
15661 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15662 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15663 | esac ;; | |
15664 | esac | |
15665 | ac_abs_top_builddir=$ac_pwd | |
15666 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15667 | # for backward compatibility: | |
15668 | ac_top_builddir=$ac_top_build_prefix | |
b30fcfae | 15669 | |
15670 | case $srcdir in | |
cd9a469c | 15671 | .) # We are building in place. |
b30fcfae | 15672 | ac_srcdir=. |
cd9a469c | 15673 | ac_top_srcdir=$ac_top_builddir_sub |
15674 | ac_abs_top_srcdir=$ac_pwd ;; | |
15675 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b30fcfae | 15676 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 15677 | ac_top_srcdir=$srcdir |
15678 | ac_abs_top_srcdir=$srcdir ;; | |
15679 | *) # Relative name. | |
15680 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15681 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15682 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b30fcfae | 15683 | esac |
cd9a469c | 15684 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b1660f25 | 15685 | |
a83ffacf | 15686 | |
cd9a469c | 15687 | case $ac_mode in |
15688 | :F) | |
15689 | # | |
15690 | # CONFIG_FILE | |
15691 | # | |
b30fcfae | 15692 | |
15693 | case $INSTALL in | |
15694 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
cd9a469c | 15695 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
71ab34df | 15696 | esac |
cd9a469c | 15697 | _ACEOF |
570af75a | 15698 | |
cd9a469c | 15699 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15700 | # If the template does not know about datarootdir, expand it. | |
15701 | # FIXME: This hack should be removed a few years after 2.60. | |
15702 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15703 | ac_sed_dataroot=' | |
15704 | /datarootdir/ { | |
15705 | p | |
15706 | q | |
15707 | } | |
15708 | /@datadir@/p | |
15709 | /@docdir@/p | |
15710 | /@infodir@/p | |
15711 | /@localedir@/p | |
15712 | /@mandir@/p' | |
15713 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15714 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15715 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15716 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15717 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
570af75a | 15718 | _ACEOF |
cd9a469c | 15719 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15720 | ac_datarootdir_hack=' | |
15721 | s&@datadir@&$datadir&g | |
15722 | s&@docdir@&$docdir&g | |
15723 | s&@infodir@&$infodir&g | |
15724 | s&@localedir@&$localedir&g | |
15725 | s&@mandir@&$mandir&g | |
15726 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15727 | esac | |
15728 | _ACEOF | |
15729 | ||
15730 | # Neutralize VPATH when `$srcdir' = `.'. | |
15731 | # Shell code in configure.ac might set extrasub. | |
15732 | # FIXME: do we really want to maintain this feature? | |
15733 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15734 | ac_sed_extra="$ac_vpsub | |
b30fcfae | 15735 | $extrasub |
15736 | _ACEOF | |
cd9a469c | 15737 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b30fcfae | 15738 | :t |
15739 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
cd9a469c | 15740 | s|@configure_input@|$ac_sed_conf_input|;t t |
15741 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15742 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15743 | s&@srcdir@&$ac_srcdir&;t t | |
15744 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15745 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15746 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15747 | s&@builddir@&$ac_builddir&;t t | |
15748 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15749 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15750 | s&@INSTALL@&$ac_INSTALL&;t t | |
15751 | $ac_datarootdir_hack | |
15752 | " | |
15753 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15754 | if $ac_cs_awk_getline; then | |
15755 | $AWK -f "$tmp/subs.awk" | |
15756 | else | |
15757 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15758 | fi >$tmp/out \ | |
15759 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15760 | ||
15761 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15762 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15763 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15764 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15765 | which seems to be undefined. Please make sure it is defined." >&5 | |
15766 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15767 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15768 | ||
15769 | rm -f "$tmp/stdin" | |
15770 | case $ac_file in | |
15771 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
15772 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15773 | esac \ | |
15774 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15775 | ;; | |
570af75a | 15776 | |
570af75a | 15777 | |
a8298541 | 15778 | |
cd9a469c | 15779 | esac |
15780 | ||
8bb79148 | 15781 | |
15782 | case $ac_file$ac_mode in | |
15783 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15784 | sed "$extrasub_host" | | |
15785 | sed "$extrasub_target" > mf$$ | |
15786 | mv -f mf$$ Makefile ;; | |
15787 | ||
15788 | esac | |
cd9a469c | 15789 | done # for ac_tag |
15790 | ||
15791 | ||
15792 | as_fn_exit 0 | |
b30fcfae | 15793 | _ACEOF |
b30fcfae | 15794 | ac_clean_files=$ac_clean_files_save |
15795 | ||
cd9a469c | 15796 | test $ac_write_fail = 0 || |
15797 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15798 | ||
b30fcfae | 15799 | |
15800 | # configure is writing to config.log, and then calls config.status. | |
15801 | # config.status does its own redirection, appending to config.log. | |
15802 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15803 | # by configure, so config.status won't be able to write to it; its | |
15804 | # output is simply discarded. So we exec the FD to /dev/null, | |
15805 | # effectively closing config.log, so it can be properly (re)opened and | |
15806 | # appended to by config.status. When coming back to configure, we | |
15807 | # need to make the FD available again. | |
15808 | if test "$no_create" != yes; then | |
15809 | ac_cs_success=: | |
15810 | ac_config_status_args= | |
15811 | test "$silent" = yes && | |
15812 | ac_config_status_args="$ac_config_status_args --quiet" | |
15813 | exec 5>/dev/null | |
15814 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15815 | exec 5>>config.log | |
15816 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15817 | # would make configure fail if this is the last instruction. | |
cd9a469c | 15818 | $ac_cs_success || as_fn_exit $? |
15819 | fi | |
15820 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15821 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15822 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
b30fcfae | 15823 | fi |
a8298541 | 15824 |