]>
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 |
586 | GCJ_FOR_TARGET | |
587 | GCC_FOR_TARGET | |
588 | CXX_FOR_TARGET | |
589 | CC_FOR_TARGET | |
3f71364d | 590 | READELF |
cd9a469c | 591 | OBJDUMP |
592 | OBJCOPY | |
593 | WINDMC | |
594 | WINDRES | |
595 | STRIP | |
596 | RANLIB | |
597 | NM | |
598 | LIPO | |
599 | LD | |
600 | DLLTOOL | |
601 | AS | |
602 | AR | |
603 | RUNTEST | |
604 | EXPECT | |
605 | MAKEINFO | |
606 | FLEX | |
607 | LEX | |
608 | M4 | |
609 | BISON | |
610 | YACC | |
cd9a469c | 611 | WINDRES_FOR_BUILD |
612 | WINDMC_FOR_BUILD | |
613 | RANLIB_FOR_BUILD | |
614 | NM_FOR_BUILD | |
615 | LD_FOR_BUILD | |
616 | LDFLAGS_FOR_BUILD | |
5ff5b630 | 617 | GOC_FOR_BUILD |
cd9a469c | 618 | GFORTRAN_FOR_BUILD |
619 | GCJ_FOR_BUILD | |
620 | DLLTOOL_FOR_BUILD | |
621 | CXX_FOR_BUILD | |
622 | CXXFLAGS_FOR_BUILD | |
623 | CFLAGS_FOR_BUILD | |
624 | CC_FOR_BUILD | |
625 | AS_FOR_BUILD | |
626 | AR_FOR_BUILD | |
1fda3360 | 627 | target_configdirs |
cd9a469c | 628 | configdirs |
cd9a469c | 629 | build_configdirs |
cd9a469c | 630 | INSTALL_GDB_TK |
631 | GDB_TK | |
632 | CONFIGURE_GDB_TK | |
633 | build_tooldir | |
634 | tooldir | |
635 | GCC_SHLIB_SUBDIR | |
636 | RPATH_ENVVAR | |
372a3f1e | 637 | target_configargs |
638 | host_configargs | |
639 | build_configargs | |
719faf1c | 640 | BUILD_CONFIG |
ed9516f5 | 641 | LDFLAGS_FOR_TARGET |
cd9a469c | 642 | CXXFLAGS_FOR_TARGET |
643 | CFLAGS_FOR_TARGET | |
644 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
645 | SYSROOT_CFLAGS_FOR_TARGET | |
c850ece7 | 646 | extra_host_zlib_configure_flags |
7bfefa9d | 647 | extra_host_libiberty_configure_flags |
944792ef | 648 | stage1_languages |
1015a063 | 649 | extra_linker_plugin_flags |
650 | extra_linker_plugin_configure_flags | |
87e20041 | 651 | islinc |
429cca51 | 652 | isllibs |
cd9a469c | 653 | poststage1_ldflags |
d6dfe18a | 654 | poststage1_libs |
cd9a469c | 655 | stage1_ldflags |
13687c85 | 656 | stage1_libs |
e4128452 | 657 | extra_isl_gmp_configure_flags |
cd9a469c | 658 | extra_mpc_mpfr_configure_flags |
659 | extra_mpc_gmp_configure_flags | |
660 | extra_mpfr_configure_flags | |
661 | gmpinc | |
662 | gmplibs | |
663 | do_compare | |
664 | GNATMAKE | |
665 | GNATBIND | |
666 | ac_ct_CXX | |
667 | CXXFLAGS | |
668 | CXX | |
669 | OBJEXT | |
670 | EXEEXT | |
671 | ac_ct_CC | |
672 | CPPFLAGS | |
673 | LDFLAGS | |
674 | CFLAGS | |
675 | CC | |
d7e52ac9 | 676 | EXTRA_CONFIGARGS_LIBJAVA |
d3a7dd32 | 677 | extra_liboffloadmic_configure_flags |
cd9a469c | 678 | target_subdir |
679 | host_subdir | |
680 | build_subdir | |
681 | build_libsubdir | |
b181f265 | 682 | AWK |
683 | SED | |
cd9a469c | 684 | LN_S |
685 | LN | |
686 | INSTALL_DATA | |
687 | INSTALL_SCRIPT | |
688 | INSTALL_PROGRAM | |
689 | target_os | |
690 | target_vendor | |
691 | target_cpu | |
692 | target | |
693 | host_os | |
694 | host_vendor | |
695 | host_cpu | |
696 | host | |
697 | target_noncanonical | |
698 | host_noncanonical | |
699 | build_noncanonical | |
700 | build_os | |
701 | build_vendor | |
702 | build_cpu | |
703 | build | |
704 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
705 | target_alias | |
706 | host_alias | |
707 | build_alias | |
708 | LIBS | |
709 | ECHO_T | |
710 | ECHO_N | |
711 | ECHO_C | |
712 | DEFS | |
713 | mandir | |
714 | localedir | |
715 | libdir | |
716 | psdir | |
717 | pdfdir | |
718 | dvidir | |
719 | htmldir | |
720 | infodir | |
721 | docdir | |
722 | oldincludedir | |
723 | includedir | |
724 | localstatedir | |
725 | sharedstatedir | |
726 | sysconfdir | |
727 | datadir | |
728 | datarootdir | |
729 | libexecdir | |
730 | sbindir | |
731 | bindir | |
732 | program_transform_name | |
733 | prefix | |
734 | exec_prefix | |
735 | PACKAGE_URL | |
736 | PACKAGE_BUGREPORT | |
737 | PACKAGE_STRING | |
738 | PACKAGE_VERSION | |
739 | PACKAGE_TARNAME | |
740 | PACKAGE_NAME | |
741 | PATH_SEPARATOR | |
742 | SHELL' | |
743 | ac_subst_files='serialization_dependencies | |
744 | host_makefile_frag | |
745 | target_makefile_frag | |
746 | alphaieee_frag | |
747 | ospace_frag' | |
748 | ac_user_opts=' | |
749 | enable_option_checking | |
750 | with_build_libsubdir | |
6406d366 | 751 | with_system_zlib |
a3d93be3 | 752 | enable_as_accelerator_for |
753 | enable_offload_targets | |
cd9a469c | 754 | enable_gold |
1e369e5f | 755 | enable_ld |
d9d975ae | 756 | enable_libquadmath |
757 | enable_libquadmath_support | |
cd9a469c | 758 | enable_libada |
759 | enable_libssp | |
a3ba808f | 760 | enable_libstdcxx |
d3a7dd32 | 761 | enable_liboffloadmic |
d7e52ac9 | 762 | enable_static_libjava |
6c59dfa4 | 763 | enable_bootstrap |
cd9a469c | 764 | with_mpc |
765 | with_mpc_include | |
766 | with_mpc_lib | |
767 | with_mpfr_dir | |
768 | with_mpfr | |
769 | with_mpfr_include | |
770 | with_mpfr_lib | |
771 | with_gmp_dir | |
772 | with_gmp | |
773 | with_gmp_include | |
774 | with_gmp_lib | |
775 | with_host_libstdcxx | |
cd9a469c | 776 | with_stage1_libs |
13687c85 | 777 | with_stage1_ldflags |
cd9a469c | 778 | with_boot_libs |
d6dfe18a | 779 | with_boot_ldflags |
87e20041 | 780 | with_isl |
781 | with_isl_include | |
782 | with_isl_lib | |
783 | enable_isl_version_check | |
7bfefa9d | 784 | enable_lto |
1015a063 | 785 | enable_linker_plugin_configure_flags |
786 | enable_linker_plugin_flags | |
cd9a469c | 787 | enable_stage1_languages |
788 | enable_objc_gc | |
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 | |
830 | GCJ_FOR_TARGET | |
831 | GFORTRAN_FOR_TARGET | |
5ff5b630 | 832 | GOC_FOR_TARGET |
cd9a469c | 833 | AR_FOR_TARGET |
834 | AS_FOR_TARGET | |
835 | DLLTOOL_FOR_TARGET | |
836 | LD_FOR_TARGET | |
837 | LIPO_FOR_TARGET | |
838 | NM_FOR_TARGET | |
fc740d70 | 839 | OBJCOPY_FOR_TARGET |
cd9a469c | 840 | OBJDUMP_FOR_TARGET |
841 | RANLIB_FOR_TARGET | |
3f71364d | 842 | READELF_FOR_TARGET |
cd9a469c | 843 | STRIP_FOR_TARGET |
844 | WINDRES_FOR_TARGET | |
845 | WINDMC_FOR_TARGET' | |
846 | ||
71ab34df | 847 | |
848 | # Initialize some variables set by options. | |
b30fcfae | 849 | ac_init_help= |
850 | ac_init_version=false | |
cd9a469c | 851 | ac_unrecognized_opts= |
852 | ac_unrecognized_sep= | |
71ab34df | 853 | # The variables have the same names as the options, with |
854 | # dashes changed to underlines. | |
b30fcfae | 855 | cache_file=/dev/null |
71ab34df | 856 | exec_prefix=NONE |
71ab34df | 857 | no_create= |
71ab34df | 858 | no_recursion= |
859 | prefix=NONE | |
860 | program_prefix=NONE | |
861 | program_suffix=NONE | |
862 | program_transform_name=s,x,x, | |
863 | silent= | |
864 | site= | |
865 | srcdir= | |
71ab34df | 866 | verbose= |
867 | x_includes=NONE | |
868 | x_libraries=NONE | |
b30fcfae | 869 | |
870 | # Installation directory options. | |
871 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
872 | # and all the variables that are supposed to be based on exec_prefix | |
873 | # by default will actually change. | |
874 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
cd9a469c | 875 | # (The list follows the same order as the GNU Coding Standards.) |
71ab34df | 876 | bindir='${exec_prefix}/bin' |
877 | sbindir='${exec_prefix}/sbin' | |
878 | libexecdir='${exec_prefix}/libexec' | |
cd9a469c | 879 | datarootdir='${prefix}/share' |
880 | datadir='${datarootdir}' | |
71ab34df | 881 | sysconfdir='${prefix}/etc' |
882 | sharedstatedir='${prefix}/com' | |
883 | localstatedir='${prefix}/var' | |
71ab34df | 884 | includedir='${prefix}/include' |
885 | oldincludedir='/usr/include' | |
cd9a469c | 886 | docdir='${datarootdir}/doc/${PACKAGE}' |
887 | infodir='${datarootdir}/info' | |
888 | htmldir='${docdir}' | |
889 | dvidir='${docdir}' | |
890 | pdfdir='${docdir}' | |
891 | psdir='${docdir}' | |
892 | libdir='${exec_prefix}/lib' | |
893 | localedir='${datarootdir}/locale' | |
894 | mandir='${datarootdir}/man' | |
a8298541 | 895 | |
71ab34df | 896 | ac_prev= |
cd9a469c | 897 | ac_dashdash= |
71ab34df | 898 | for ac_option |
899 | do | |
71ab34df | 900 | # If the previous option needs an argument, assign it. |
901 | if test -n "$ac_prev"; then | |
cd9a469c | 902 | eval $ac_prev=\$ac_option |
71ab34df | 903 | ac_prev= |
904 | continue | |
905 | fi | |
a8298541 | 906 | |
cd9a469c | 907 | case $ac_option in |
908 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
909 | *) ac_optarg=yes ;; | |
910 | esac | |
71ab34df | 911 | |
912 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
913 | ||
cd9a469c | 914 | case $ac_dashdash$ac_option in |
915 | --) | |
916 | ac_dashdash=yes ;; | |
71ab34df | 917 | |
918 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
919 | ac_prev=bindir ;; | |
920 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b30fcfae | 921 | bindir=$ac_optarg ;; |
71ab34df | 922 | |
923 | -build | --build | --buil | --bui | --bu) | |
b30fcfae | 924 | ac_prev=build_alias ;; |
71ab34df | 925 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b30fcfae | 926 | build_alias=$ac_optarg ;; |
71ab34df | 927 | |
928 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
929 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
930 | ac_prev=cache_file ;; | |
931 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
932 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b30fcfae | 933 | cache_file=$ac_optarg ;; |
934 | ||
935 | --config-cache | -C) | |
936 | cache_file=config.cache ;; | |
71ab34df | 937 | |
cd9a469c | 938 | -datadir | --datadir | --datadi | --datad) |
71ab34df | 939 | ac_prev=datadir ;; |
cd9a469c | 940 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b30fcfae | 941 | datadir=$ac_optarg ;; |
71ab34df | 942 | |
cd9a469c | 943 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
944 | | --dataroo | --dataro | --datar) | |
945 | ac_prev=datarootdir ;; | |
946 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
947 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
948 | datarootdir=$ac_optarg ;; | |
949 | ||
71ab34df | 950 | -disable-* | --disable-*) |
cd9a469c | 951 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
71ab34df | 952 | # Reject names that are not valid shell variable names. |
cd9a469c | 953 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
954 | as_fn_error "invalid feature name: $ac_useropt" | |
955 | ac_useropt_orig=$ac_useropt | |
956 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
957 | case $ac_user_opts in | |
958 | *" | |
959 | "enable_$ac_useropt" | |
960 | "*) ;; | |
961 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
962 | ac_unrecognized_sep=', ';; | |
963 | esac | |
964 | eval enable_$ac_useropt=no ;; | |
965 | ||
966 | -docdir | --docdir | --docdi | --doc | --do) | |
967 | ac_prev=docdir ;; | |
968 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
969 | docdir=$ac_optarg ;; | |
970 | ||
971 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
972 | ac_prev=dvidir ;; | |
973 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
974 | dvidir=$ac_optarg ;; | |
71ab34df | 975 | |
976 | -enable-* | --enable-*) | |
cd9a469c | 977 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
71ab34df | 978 | # Reject names that are not valid shell variable names. |
cd9a469c | 979 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
980 | as_fn_error "invalid feature name: $ac_useropt" | |
981 | ac_useropt_orig=$ac_useropt | |
982 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
983 | case $ac_user_opts in | |
984 | *" | |
985 | "enable_$ac_useropt" | |
986 | "*) ;; | |
987 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
988 | ac_unrecognized_sep=', ';; | |
5084f823 | 989 | esac |
cd9a469c | 990 | eval enable_$ac_useropt=\$ac_optarg ;; |
71ab34df | 991 | |
992 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
993 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
994 | | --exec | --exe | --ex) | |
995 | ac_prev=exec_prefix ;; | |
996 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
997 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
998 | | --exec=* | --exe=* | --ex=*) | |
b30fcfae | 999 | exec_prefix=$ac_optarg ;; |
71ab34df | 1000 | |
1001 | -gas | --gas | --ga | --g) | |
1002 | # Obsolete; use --with-gas. | |
1003 | with_gas=yes ;; | |
1004 | ||
b30fcfae | 1005 | -help | --help | --hel | --he | -h) |
1006 | ac_init_help=long ;; | |
1007 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1008 | ac_init_help=recursive ;; | |
1009 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1010 | ac_init_help=short ;; | |
71ab34df | 1011 | |
1012 | -host | --host | --hos | --ho) | |
b30fcfae | 1013 | ac_prev=host_alias ;; |
71ab34df | 1014 | -host=* | --host=* | --hos=* | --ho=*) |
b30fcfae | 1015 | host_alias=$ac_optarg ;; |
71ab34df | 1016 | |
cd9a469c | 1017 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1018 | ac_prev=htmldir ;; | |
1019 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1020 | | --ht=*) | |
1021 | htmldir=$ac_optarg ;; | |
1022 | ||
71ab34df | 1023 | -includedir | --includedir | --includedi | --included | --include \ |
1024 | | --includ | --inclu | --incl | --inc) | |
1025 | ac_prev=includedir ;; | |
1026 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1027 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b30fcfae | 1028 | includedir=$ac_optarg ;; |
71ab34df | 1029 | |
1030 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1031 | ac_prev=infodir ;; | |
1032 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b30fcfae | 1033 | infodir=$ac_optarg ;; |
71ab34df | 1034 | |
1035 | -libdir | --libdir | --libdi | --libd) | |
1036 | ac_prev=libdir ;; | |
1037 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b30fcfae | 1038 | libdir=$ac_optarg ;; |
71ab34df | 1039 | |
1040 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1041 | | --libexe | --libex | --libe) | |
1042 | ac_prev=libexecdir ;; | |
1043 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1044 | | --libexe=* | --libex=* | --libe=*) | |
b30fcfae | 1045 | libexecdir=$ac_optarg ;; |
71ab34df | 1046 | |
cd9a469c | 1047 | -localedir | --localedir | --localedi | --localed | --locale) |
1048 | ac_prev=localedir ;; | |
1049 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1050 | localedir=$ac_optarg ;; | |
1051 | ||
71ab34df | 1052 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
cd9a469c | 1053 | | --localstate | --localstat | --localsta | --localst | --locals) |
71ab34df | 1054 | ac_prev=localstatedir ;; |
1055 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
cd9a469c | 1056 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b30fcfae | 1057 | localstatedir=$ac_optarg ;; |
71ab34df | 1058 | |
1059 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1060 | ac_prev=mandir ;; | |
1061 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b30fcfae | 1062 | mandir=$ac_optarg ;; |
71ab34df | 1063 | |
1064 | -nfp | --nfp | --nf) | |
1065 | # Obsolete; use --without-fp. | |
1066 | with_fp=no ;; | |
1067 | ||
1068 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b30fcfae | 1069 | | --no-cr | --no-c | -n) |
71ab34df | 1070 | no_create=yes ;; |
1071 | ||
1072 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1073 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1074 | no_recursion=yes ;; | |
1075 | ||
1076 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1077 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1078 | | --oldin | --oldi | --old | --ol | --o) | |
1079 | ac_prev=oldincludedir ;; | |
1080 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1081 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1082 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b30fcfae | 1083 | oldincludedir=$ac_optarg ;; |
71ab34df | 1084 | |
1085 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1086 | ac_prev=prefix ;; | |
1087 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b30fcfae | 1088 | prefix=$ac_optarg ;; |
71ab34df | 1089 | |
1090 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1091 | | --program-pre | --program-pr | --program-p) | |
1092 | ac_prev=program_prefix ;; | |
1093 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1094 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b30fcfae | 1095 | program_prefix=$ac_optarg ;; |
71ab34df | 1096 | |
1097 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1098 | | --program-suf | --program-su | --program-s) | |
1099 | ac_prev=program_suffix ;; | |
1100 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1101 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b30fcfae | 1102 | program_suffix=$ac_optarg ;; |
71ab34df | 1103 | |
1104 | -program-transform-name | --program-transform-name \ | |
1105 | | --program-transform-nam | --program-transform-na \ | |
1106 | | --program-transform-n | --program-transform- \ | |
1107 | | --program-transform | --program-transfor \ | |
1108 | | --program-transfo | --program-transf \ | |
1109 | | --program-trans | --program-tran \ | |
1110 | | --progr-tra | --program-tr | --program-t) | |
1111 | ac_prev=program_transform_name ;; | |
1112 | -program-transform-name=* | --program-transform-name=* \ | |
1113 | | --program-transform-nam=* | --program-transform-na=* \ | |
1114 | | --program-transform-n=* | --program-transform-=* \ | |
1115 | | --program-transform=* | --program-transfor=* \ | |
1116 | | --program-transfo=* | --program-transf=* \ | |
1117 | | --program-trans=* | --program-tran=* \ | |
1118 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b30fcfae | 1119 | program_transform_name=$ac_optarg ;; |
71ab34df | 1120 | |
cd9a469c | 1121 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1122 | ac_prev=pdfdir ;; | |
1123 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1124 | pdfdir=$ac_optarg ;; | |
1125 | ||
1126 | -psdir | --psdir | --psdi | --psd | --ps) | |
1127 | ac_prev=psdir ;; | |
1128 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1129 | psdir=$ac_optarg ;; | |
1130 | ||
71ab34df | 1131 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1132 | | -silent | --silent | --silen | --sile | --sil) | |
1133 | silent=yes ;; | |
1134 | ||
1135 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1136 | ac_prev=sbindir ;; | |
1137 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1138 | | --sbi=* | --sb=*) | |
b30fcfae | 1139 | sbindir=$ac_optarg ;; |
71ab34df | 1140 | |
1141 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1142 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1143 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1144 | | --sha | --sh) | |
1145 | ac_prev=sharedstatedir ;; | |
1146 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1147 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1148 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1149 | | --sha=* | --sh=*) | |
b30fcfae | 1150 | sharedstatedir=$ac_optarg ;; |
71ab34df | 1151 | |
1152 | -site | --site | --sit) | |
1153 | ac_prev=site ;; | |
1154 | -site=* | --site=* | --sit=*) | |
b30fcfae | 1155 | site=$ac_optarg ;; |
71ab34df | 1156 | |
1157 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1158 | ac_prev=srcdir ;; | |
1159 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b30fcfae | 1160 | srcdir=$ac_optarg ;; |
71ab34df | 1161 | |
1162 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1163 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1164 | ac_prev=sysconfdir ;; | |
1165 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1166 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b30fcfae | 1167 | sysconfdir=$ac_optarg ;; |
71ab34df | 1168 | |
1169 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b30fcfae | 1170 | ac_prev=target_alias ;; |
71ab34df | 1171 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b30fcfae | 1172 | target_alias=$ac_optarg ;; |
71ab34df | 1173 | |
1174 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1175 | verbose=yes ;; | |
1176 | ||
b30fcfae | 1177 | -version | --version | --versio | --versi | --vers | -V) |
1178 | ac_init_version=: ;; | |
71ab34df | 1179 | |
1180 | -with-* | --with-*) | |
cd9a469c | 1181 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
71ab34df | 1182 | # Reject names that are not valid shell variable names. |
cd9a469c | 1183 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1184 | as_fn_error "invalid package name: $ac_useropt" | |
1185 | ac_useropt_orig=$ac_useropt | |
1186 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1187 | case $ac_user_opts in | |
1188 | *" | |
1189 | "with_$ac_useropt" | |
1190 | "*) ;; | |
1191 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1192 | ac_unrecognized_sep=', ';; | |
5084f823 | 1193 | esac |
cd9a469c | 1194 | eval with_$ac_useropt=\$ac_optarg ;; |
71ab34df | 1195 | |
1196 | -without-* | --without-*) | |
cd9a469c | 1197 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
71ab34df | 1198 | # Reject names that are not valid shell variable names. |
cd9a469c | 1199 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1200 | as_fn_error "invalid package name: $ac_useropt" | |
1201 | ac_useropt_orig=$ac_useropt | |
1202 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1203 | case $ac_user_opts in | |
1204 | *" | |
1205 | "with_$ac_useropt" | |
1206 | "*) ;; | |
1207 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1208 | ac_unrecognized_sep=', ';; | |
1209 | esac | |
1210 | eval with_$ac_useropt=no ;; | |
71ab34df | 1211 | |
1212 | --x) | |
1213 | # Obsolete; use --with-x. | |
1214 | with_x=yes ;; | |
1215 | ||
1216 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1217 | | --x-incl | --x-inc | --x-in | --x-i) | |
1218 | ac_prev=x_includes ;; | |
1219 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1220 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b30fcfae | 1221 | x_includes=$ac_optarg ;; |
71ab34df | 1222 | |
1223 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1224 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1225 | ac_prev=x_libraries ;; | |
1226 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1227 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b30fcfae | 1228 | x_libraries=$ac_optarg ;; |
71ab34df | 1229 | |
cd9a469c | 1230 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1231 | Try \`$0 --help' for more information." | |
71ab34df | 1232 | ;; |
1233 | ||
b30fcfae | 1234 | *=*) |
1235 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1236 | # Reject names that are not valid shell variable names. | |
cd9a469c | 1237 | case $ac_envvar in #( |
1238 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1239 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1240 | esac | |
1241 | eval $ac_envvar=\$ac_optarg | |
b30fcfae | 1242 | export $ac_envvar ;; |
1243 | ||
71ab34df | 1244 | *) |
b30fcfae | 1245 | # FIXME: should be removed in autoconf 3.0. |
cd9a469c | 1246 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b30fcfae | 1247 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
cd9a469c | 1248 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b30fcfae | 1249 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
71ab34df | 1250 | ;; |
1251 | ||
1252 | esac | |
1253 | done | |
1254 | ||
1255 | if test -n "$ac_prev"; then | |
b30fcfae | 1256 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
cd9a469c | 1257 | as_fn_error "missing argument to $ac_option" |
ae48753c | 1258 | fi |
ae48753c | 1259 | |
cd9a469c | 1260 | if test -n "$ac_unrecognized_opts"; then |
1261 | case $enable_option_checking in | |
1262 | no) ;; | |
1263 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1264 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
5084f823 | 1265 | esac |
cd9a469c | 1266 | fi |
5084f823 | 1267 | |
cd9a469c | 1268 | # Check all directory arguments for consistency. |
1269 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1270 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1271 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1272 | libdir localedir mandir | |
5084f823 | 1273 | do |
cd9a469c | 1274 | eval ac_val=\$$ac_var |
1275 | # Remove trailing slashes. | |
1276 | case $ac_val in | |
1277 | */ ) | |
1278 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1279 | eval $ac_var=\$ac_val;; | |
1280 | esac | |
1281 | # Be sure to have absolute directory names. | |
5084f823 | 1282 | case $ac_val in |
cd9a469c | 1283 | [\\/$]* | ?:[\\/]* ) continue;; |
1284 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
71ab34df | 1285 | esac |
cd9a469c | 1286 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
71ab34df | 1287 | done |
1288 | ||
b30fcfae | 1289 | # There might be people who depend on the old broken behavior: `$host' |
1290 | # used to hold the argument of --host etc. | |
1291 | # FIXME: To remove some day. | |
1292 | build=$build_alias | |
1293 | host=$host_alias | |
1294 | target=$target_alias | |
a83ffacf | 1295 | |
b30fcfae | 1296 | # FIXME: To remove some day. |
1297 | if test "x$host_alias" != x; then | |
1298 | if test "x$build_alias" = x; then | |
1299 | cross_compiling=maybe | |
cd9a469c | 1300 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
b30fcfae | 1301 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1302 | elif test "x$build_alias" != "x$host_alias"; then | |
1303 | cross_compiling=yes | |
1304 | fi | |
1305 | fi | |
1306 | ||
1307 | ac_tool_prefix= | |
1308 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1309 | ||
1310 | test "$silent" = yes && exec 6>/dev/null | |
71ab34df | 1311 | |
71ab34df | 1312 | |
cd9a469c | 1313 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1314 | ac_ls_di=`ls -di .` && | |
1315 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1316 | as_fn_error "working directory cannot be determined" | |
1317 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1318 | as_fn_error "pwd does not report name of working directory" | |
1319 | ||
1320 | ||
71ab34df | 1321 | # Find the source files, if location was not specified. |
1322 | if test -z "$srcdir"; then | |
1323 | ac_srcdir_defaulted=yes | |
cd9a469c | 1324 | # Try the directory containing this script, then the parent directory. |
1325 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1326 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1327 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1328 | X"$as_myself" : 'X\(//\)$' \| \ | |
1329 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1330 | $as_echo X"$as_myself" | | |
1331 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1332 | s//\1/ | |
1333 | q | |
1334 | } | |
1335 | /^X\(\/\/\)[^/].*/{ | |
1336 | s//\1/ | |
1337 | q | |
1338 | } | |
1339 | /^X\(\/\/\)$/{ | |
1340 | s//\1/ | |
1341 | q | |
1342 | } | |
1343 | /^X\(\/\).*/{ | |
1344 | s//\1/ | |
1345 | q | |
1346 | } | |
1347 | s/.*/./; q'` | |
71ab34df | 1348 | srcdir=$ac_confdir |
cd9a469c | 1349 | if test ! -r "$srcdir/$ac_unique_file"; then |
71ab34df | 1350 | srcdir=.. |
1351 | fi | |
1352 | else | |
1353 | ac_srcdir_defaulted=no | |
1354 | fi | |
cd9a469c | 1355 | if test ! -r "$srcdir/$ac_unique_file"; then |
1356 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1357 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1358 | fi | |
1359 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1360 | ac_abs_confdir=`( | |
1361 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1362 | pwd)` | |
1363 | # When building in place, set srcdir=. | |
1364 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1365 | srcdir=. | |
1366 | fi | |
1367 | # Remove unnecessary trailing slashes from srcdir. | |
1368 | # Double slashes in file names in object file debugging info | |
1369 | # mess up M-x gdb in Emacs. | |
1370 | case $srcdir in | |
1371 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1372 | esac | |
13d2f2b2 | 1373 | case $srcdir in |
1374 | *" "*) | |
1375 | as_fn_error "path to source, $srcdir, contains spaces" | |
1376 | ;; | |
1377 | esac | |
d2d2630b | 1378 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1379 | ||
cd9a469c | 1380 | for ac_var in $ac_precious_vars; do |
1381 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1382 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1383 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1384 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1385 | done | |
b30fcfae | 1386 | |
1387 | # | |
1388 | # Report the --help message. | |
1389 | # | |
1390 | if test "$ac_init_help" = "long"; then | |
1391 | # Omit some internal or obsolete options to make the list less imposing. | |
1392 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1393 | cat <<_ACEOF | |
1394 | \`configure' configures this package to adapt to many kinds of systems. | |
1395 | ||
1396 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1397 | ||
1398 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1399 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1400 | ||
1401 | Defaults for the options are specified in brackets. | |
1402 | ||
1403 | Configuration: | |
1404 | -h, --help display this help and exit | |
1405 | --help=short display options specific to this package | |
1406 | --help=recursive display the short help of all the included packages | |
1407 | -V, --version display version information and exit | |
1408 | -q, --quiet, --silent do not print \`checking...' messages | |
1409 | --cache-file=FILE cache test results in FILE [disabled] | |
1410 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1411 | -n, --no-create do not create output files | |
1412 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1413 | ||
b30fcfae | 1414 | Installation directories: |
1415 | --prefix=PREFIX install architecture-independent files in PREFIX | |
cd9a469c | 1416 | [$ac_default_prefix] |
b30fcfae | 1417 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
cd9a469c | 1418 | [PREFIX] |
b30fcfae | 1419 | |
1420 | By default, \`make install' will install all the files in | |
1421 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1422 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1423 | for instance \`--prefix=\$HOME'. | |
1424 | ||
1425 | For better control, use the options below. | |
1426 | ||
1427 | Fine tuning of the installation directories: | |
cd9a469c | 1428 | --bindir=DIR user executables [EPREFIX/bin] |
1429 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1430 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1431 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1432 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1433 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1434 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1435 | --includedir=DIR C header files [PREFIX/include] | |
1436 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1437 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1438 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1439 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1440 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1441 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1442 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1443 | --htmldir=DIR html documentation [DOCDIR] | |
1444 | --dvidir=DIR dvi documentation [DOCDIR] | |
1445 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1446 | --psdir=DIR ps documentation [DOCDIR] | |
b30fcfae | 1447 | _ACEOF |
1448 | ||
1449 | cat <<\_ACEOF | |
1450 | ||
1451 | Program names: | |
1452 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1453 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1454 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1455 | ||
1456 | System types: | |
1457 | --build=BUILD configure for building on BUILD [guessed] | |
1458 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1459 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1460 | _ACEOF | |
1461 | fi | |
1462 | ||
1463 | if test -n "$ac_init_help"; then | |
1464 | ||
1465 | cat <<\_ACEOF | |
1466 | ||
1467 | Optional Features: | |
cd9a469c | 1468 | --disable-option-checking ignore unrecognized --enable/--with options |
b30fcfae | 1469 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1470 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
a3d93be3 | 1471 | --enable-as-accelerator-for=ARG |
1472 | build as offload target compiler. Specify offload | |
1473 | host triple by ARG | |
1474 | --enable-offload-targets=LIST | |
1475 | enable offloading to devices from comma-separated | |
1476 | LIST of TARGET[=DIR]. Use optional path to find | |
1477 | offload target compiler during the build | |
1e369e5f | 1478 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
8747a938 | 1479 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
d9d975ae | 1480 | --disable-libquadmath do not build libquadmath directory |
1481 | --disable-libquadmath-support | |
1482 | disable libquadmath support for Fortran | |
09c2d953 | 1483 | --enable-libada build libada directory |
1484 | --enable-libssp build libssp directory | |
a3ba808f | 1485 | --disable-libstdcxx do not build libstdc++-v3 directory |
d3a7dd32 | 1486 | --enable-liboffloadmic=ARG |
1487 | build liboffloadmic [ARG={no,host,target}] | |
d7e52ac9 | 1488 | --enable-static-libjava[=ARG] |
1489 | build static libjava [default=no] | |
6c59dfa4 | 1490 | --enable-bootstrap enable bootstrapping [yes if native build] |
87e20041 | 1491 | --disable-isl-version-check |
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 | |
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 | |
8747a938 | 1543 | --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when |
1544 | linking with PPL | |
13687c85 | 1545 | --with-stage1-libs=LIBS libraries for stage1 |
8747a938 | 1546 | --with-stage1-ldflags=FLAGS |
1547 | linker flags for stage1 | |
8747a938 | 1548 | --with-boot-libs=LIBS libraries for stage2 and later |
1549 | --with-boot-ldflags=FLAGS | |
1550 | linker flags for stage2 and later | |
87e20041 | 1551 | --with-isl=PATH Specify prefix directory for the installed ISL |
8747a938 | 1552 | package. Equivalent to |
87e20041 | 1553 | --with-isl-include=PATH/include plus |
1554 | --with-isl-lib=PATH/lib | |
1555 | --with-isl-include=PATH Specify directory for installed ISL include files | |
1556 | --with-isl-lib=PATH Specify the directory for the installed ISL library | |
09c2d953 | 1557 | --with-build-sysroot=SYSROOT |
b30fcfae | 1558 | use sysroot as the system root during the build |
5f1f2de5 | 1559 | --with-debug-prefix-map='A=B C=D ...' |
8747a938 | 1560 | map A to B, C to D ... in debug information |
1561 | --with-build-config='NAME NAME2...' | |
1562 | use config/NAME.mk build configuration | |
09c2d953 | 1563 | --with-build-time-tools=PATH |
b30fcfae | 1564 | use given path to find target tools during the build |
b30fcfae | 1565 | |
1566 | Some influential environment variables: | |
1567 | CC C compiler command | |
1568 | CFLAGS C compiler flags | |
1569 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1570 | nonstandard directory <lib dir> | |
cd9a469c | 1571 | LIBS libraries to pass to the linker, e.g. -l<library> |
1572 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1573 | you have headers in a nonstandard directory <include dir> | |
eae5b2bc | 1574 | CXX C++ compiler command |
1575 | CXXFLAGS C++ compiler flags | |
372a3f1e | 1576 | build_configargs |
1577 | additional configure arguments for build directories | |
1578 | host_configargs | |
1579 | additional configure arguments for host directories | |
1580 | target_configargs | |
1581 | additional configure arguments for target directories | |
95a05732 | 1582 | AR AR for the host |
1583 | AS AS for the host | |
1584 | DLLTOOL DLLTOOL for the host | |
1585 | LD LD for the host | |
1586 | LIPO LIPO for the host | |
1587 | NM NM for the host | |
1588 | RANLIB RANLIB for the host | |
1589 | STRIP STRIP for the host | |
1590 | WINDRES WINDRES for the host | |
75d6a0a9 | 1591 | WINDMC WINDMC for the host |
95a05732 | 1592 | OBJCOPY OBJCOPY for the host |
1593 | OBJDUMP OBJDUMP for the host | |
3f71364d | 1594 | READELF READELF for the host |
95a05732 | 1595 | CC_FOR_TARGET |
1596 | CC for the target | |
1597 | CXX_FOR_TARGET | |
1598 | CXX for the target | |
1599 | GCC_FOR_TARGET | |
1600 | GCC for the target | |
1601 | GCJ_FOR_TARGET | |
1602 | GCJ for the target | |
1603 | GFORTRAN_FOR_TARGET | |
1604 | GFORTRAN for the target | |
5ff5b630 | 1605 | GOC_FOR_TARGET |
1606 | GOC for the target | |
95a05732 | 1607 | AR_FOR_TARGET |
1608 | AR for the target | |
1609 | AS_FOR_TARGET | |
1610 | AS for the target | |
1611 | DLLTOOL_FOR_TARGET | |
1612 | DLLTOOL for the target | |
1613 | LD_FOR_TARGET | |
1614 | LD for the target | |
1615 | LIPO_FOR_TARGET | |
1616 | LIPO for the target | |
1617 | NM_FOR_TARGET | |
1618 | NM for the target | |
fc740d70 | 1619 | OBJCOPY_FOR_TARGET |
1620 | OBJCOPY for the target | |
95a05732 | 1621 | OBJDUMP_FOR_TARGET |
1622 | OBJDUMP for the target | |
1623 | RANLIB_FOR_TARGET | |
1624 | RANLIB for the target | |
3f71364d | 1625 | READELF_FOR_TARGET |
1626 | READELF for the target | |
95a05732 | 1627 | STRIP_FOR_TARGET |
1628 | STRIP for the target | |
1629 | WINDRES_FOR_TARGET | |
1630 | WINDRES for the target | |
75d6a0a9 | 1631 | WINDMC_FOR_TARGET |
1632 | WINDMC for the target | |
b30fcfae | 1633 | |
1634 | Use these variables to override the choices made by `configure' or to help | |
1635 | it to find libraries and programs with nonstandard names/locations. | |
1636 | ||
cd9a469c | 1637 | Report bugs to the package provider. |
b30fcfae | 1638 | _ACEOF |
cd9a469c | 1639 | ac_status=$? |
b30fcfae | 1640 | fi |
1641 | ||
1642 | if test "$ac_init_help" = "recursive"; then | |
1643 | # If there are subdirs, report their specific --help. | |
b30fcfae | 1644 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
cd9a469c | 1645 | test -d "$ac_dir" || |
1646 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1647 | continue | |
b30fcfae | 1648 | ac_builddir=. |
1649 | ||
cd9a469c | 1650 | case "$ac_dir" in |
1651 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1652 | *) | |
1653 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1654 | # A ".." for each directory in $ac_dir_suffix. | |
1655 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1656 | case $ac_top_builddir_sub in | |
1657 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1658 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1659 | esac ;; | |
1660 | esac | |
1661 | ac_abs_top_builddir=$ac_pwd | |
1662 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1663 | # for backward compatibility: | |
1664 | ac_top_builddir=$ac_top_build_prefix | |
b30fcfae | 1665 | |
1666 | case $srcdir in | |
cd9a469c | 1667 | .) # We are building in place. |
b30fcfae | 1668 | ac_srcdir=. |
cd9a469c | 1669 | ac_top_srcdir=$ac_top_builddir_sub |
1670 | ac_abs_top_srcdir=$ac_pwd ;; | |
1671 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b30fcfae | 1672 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 1673 | ac_top_srcdir=$srcdir |
1674 | ac_abs_top_srcdir=$srcdir ;; | |
1675 | *) # Relative name. | |
1676 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1677 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1678 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
5084f823 | 1679 | esac |
cd9a469c | 1680 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1681 | ||
1682 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1683 | # Check for guested configure. | |
1684 | if test -f "$ac_srcdir/configure.gnu"; then | |
1685 | echo && | |
1686 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1687 | elif test -f "$ac_srcdir/configure"; then | |
1688 | echo && | |
1689 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b30fcfae | 1690 | else |
cd9a469c | 1691 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1692 | fi || ac_status=$? | |
1693 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b30fcfae | 1694 | done |
1695 | fi | |
1696 | ||
cd9a469c | 1697 | test -n "$ac_init_help" && exit $ac_status |
b30fcfae | 1698 | if $ac_init_version; then |
1699 | cat <<\_ACEOF | |
cd9a469c | 1700 | configure |
1701 | generated by GNU Autoconf 2.64 | |
b30fcfae | 1702 | |
cd9a469c | 1703 | Copyright (C) 2009 Free Software Foundation, Inc. |
b30fcfae | 1704 | This configure script is free software; the Free Software Foundation |
1705 | gives unlimited permission to copy, distribute and modify it. | |
1706 | _ACEOF | |
cd9a469c | 1707 | exit |
a83ffacf | 1708 | fi |
cd9a469c | 1709 | |
1710 | ## ------------------------ ## | |
1711 | ## Autoconf initialization. ## | |
1712 | ## ------------------------ ## | |
1713 | ||
1714 | # ac_fn_c_try_compile LINENO | |
1715 | # -------------------------- | |
1716 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1717 | ac_fn_c_try_compile () | |
1718 | { | |
1719 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1720 | rm -f conftest.$ac_objext | |
1721 | if { { ac_try="$ac_compile" | |
1722 | case "(($ac_try" in | |
1723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1724 | *) ac_try_echo=$ac_try;; | |
1725 | esac | |
1726 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1727 | $as_echo "$ac_try_echo"; } >&5 | |
1728 | (eval "$ac_compile") 2>conftest.err | |
1729 | ac_status=$? | |
1730 | if test -s conftest.err; then | |
1731 | grep -v '^ *+' conftest.err >conftest.er1 | |
1732 | cat conftest.er1 >&5 | |
1733 | mv -f conftest.er1 conftest.err | |
1734 | fi | |
1735 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1736 | test $ac_status = 0; } && { | |
1737 | test -z "$ac_c_werror_flag" || | |
1738 | test ! -s conftest.err | |
1739 | } && test -s conftest.$ac_objext; then : | |
1740 | ac_retval=0 | |
1741 | else | |
1742 | $as_echo "$as_me: failed program was:" >&5 | |
1743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1744 | ||
1745 | ac_retval=1 | |
1746 | fi | |
1747 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1748 | return $ac_retval | |
1749 | ||
1750 | } # ac_fn_c_try_compile | |
1751 | ||
1752 | # ac_fn_cxx_try_compile LINENO | |
1753 | # ---------------------------- | |
1754 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1755 | ac_fn_cxx_try_compile () | |
1756 | { | |
1757 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1758 | rm -f conftest.$ac_objext | |
1759 | if { { ac_try="$ac_compile" | |
1760 | case "(($ac_try" in | |
1761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1762 | *) ac_try_echo=$ac_try;; | |
1763 | esac | |
1764 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1765 | $as_echo "$ac_try_echo"; } >&5 | |
1766 | (eval "$ac_compile") 2>conftest.err | |
1767 | ac_status=$? | |
1768 | if test -s conftest.err; then | |
1769 | grep -v '^ *+' conftest.err >conftest.er1 | |
1770 | cat conftest.er1 >&5 | |
1771 | mv -f conftest.er1 conftest.err | |
1772 | fi | |
1773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1774 | test $ac_status = 0; } && { | |
1775 | test -z "$ac_cxx_werror_flag" || | |
1776 | test ! -s conftest.err | |
1777 | } && test -s conftest.$ac_objext; then : | |
1778 | ac_retval=0 | |
1779 | else | |
1780 | $as_echo "$as_me: failed program was:" >&5 | |
1781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1782 | ||
1783 | ac_retval=1 | |
1784 | fi | |
1785 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1786 | return $ac_retval | |
1787 | ||
1788 | } # ac_fn_cxx_try_compile | |
1789 | ||
13687c85 | 1790 | # ac_fn_cxx_try_link LINENO |
1791 | # ------------------------- | |
1792 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1793 | ac_fn_cxx_try_link () | |
1794 | { | |
1795 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1796 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1797 | if { { ac_try="$ac_link" | |
1798 | case "(($ac_try" in | |
1799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1800 | *) ac_try_echo=$ac_try;; | |
1801 | esac | |
1802 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1803 | $as_echo "$ac_try_echo"; } >&5 | |
1804 | (eval "$ac_link") 2>conftest.err | |
1805 | ac_status=$? | |
1806 | if test -s conftest.err; then | |
1807 | grep -v '^ *+' conftest.err >conftest.er1 | |
1808 | cat conftest.er1 >&5 | |
1809 | mv -f conftest.er1 conftest.err | |
1810 | fi | |
1811 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1812 | test $ac_status = 0; } && { | |
1813 | test -z "$ac_cxx_werror_flag" || | |
1814 | test ! -s conftest.err | |
1815 | } && test -s conftest$ac_exeext && { | |
1816 | test "$cross_compiling" = yes || | |
1817 | $as_test_x conftest$ac_exeext | |
1818 | }; then : | |
1819 | ac_retval=0 | |
1820 | else | |
1821 | $as_echo "$as_me: failed program was:" >&5 | |
1822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1823 | ||
1824 | ac_retval=1 | |
1825 | fi | |
1826 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1827 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1828 | # interfere with the next link command; also delete a directory that is | |
1829 | # left behind by Apple's compiler. We do this before executing the actions. | |
1830 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1831 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1832 | return $ac_retval | |
1833 | ||
1834 | } # ac_fn_cxx_try_link | |
1835 | ||
cd9a469c | 1836 | # ac_fn_c_try_link LINENO |
1837 | # ----------------------- | |
1838 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1839 | ac_fn_c_try_link () | |
1840 | { | |
1841 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1842 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1843 | if { { ac_try="$ac_link" | |
1844 | case "(($ac_try" in | |
1845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1846 | *) ac_try_echo=$ac_try;; | |
1847 | esac | |
1848 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1849 | $as_echo "$ac_try_echo"; } >&5 | |
1850 | (eval "$ac_link") 2>conftest.err | |
1851 | ac_status=$? | |
1852 | if test -s conftest.err; then | |
1853 | grep -v '^ *+' conftest.err >conftest.er1 | |
1854 | cat conftest.er1 >&5 | |
1855 | mv -f conftest.er1 conftest.err | |
1856 | fi | |
1857 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1858 | test $ac_status = 0; } && { | |
1859 | test -z "$ac_c_werror_flag" || | |
1860 | test ! -s conftest.err | |
1861 | } && test -s conftest$ac_exeext && { | |
1862 | test "$cross_compiling" = yes || | |
1863 | $as_test_x conftest$ac_exeext | |
1864 | }; then : | |
1865 | ac_retval=0 | |
1866 | else | |
1867 | $as_echo "$as_me: failed program was:" >&5 | |
1868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1869 | ||
1870 | ac_retval=1 | |
1871 | fi | |
1872 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1873 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1874 | # interfere with the next link command; also delete a directory that is | |
1875 | # left behind by Apple's compiler. We do this before executing the actions. | |
1876 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1877 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1878 | return $ac_retval | |
1879 | ||
1880 | } # ac_fn_c_try_link | |
1881 | cat >config.log <<_ACEOF | |
b30fcfae | 1882 | This file contains any messages produced by compilers while |
1883 | running configure, to aid debugging if configure makes a mistake. | |
1884 | ||
1885 | It was created by $as_me, which was | |
cd9a469c | 1886 | generated by GNU Autoconf 2.64. Invocation command line was |
b30fcfae | 1887 | |
1888 | $ $0 $@ | |
1889 | ||
1890 | _ACEOF | |
cd9a469c | 1891 | exec 5>>config.log |
b30fcfae | 1892 | { |
1893 | cat <<_ASUNAME | |
1894 | ## --------- ## | |
1895 | ## Platform. ## | |
1896 | ## --------- ## | |
1897 | ||
1898 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1899 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1900 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1901 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1902 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1903 | ||
1904 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1905 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1906 | ||
1907 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1908 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1909 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
cd9a469c | 1910 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
b30fcfae | 1911 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1912 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1913 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1914 | ||
1915 | _ASUNAME | |
1916 | ||
1917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1918 | for as_dir in $PATH | |
1919 | do | |
1920 | IFS=$as_save_IFS | |
1921 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 1922 | $as_echo "PATH: $as_dir" |
1923 | done | |
1924 | IFS=$as_save_IFS | |
b30fcfae | 1925 | |
1926 | } >&5 | |
1927 | ||
1928 | cat >&5 <<_ACEOF | |
1929 | ||
1930 | ||
1931 | ## ----------- ## | |
1932 | ## Core tests. ## | |
1933 | ## ----------- ## | |
1934 | ||
1935 | _ACEOF | |
1936 | ||
1937 | ||
1938 | # Keep a trace of the command line. | |
1939 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1940 | # Strip out --silent because we don't want to record it for future runs. | |
1941 | # Also quote any args containing shell meta-characters. | |
1942 | # Make two passes to allow for proper duplicate-argument suppression. | |
1943 | ac_configure_args= | |
1944 | ac_configure_args0= | |
1945 | ac_configure_args1= | |
b30fcfae | 1946 | ac_must_keep_next=false |
1947 | for ac_pass in 1 2 | |
1948 | do | |
1949 | for ac_arg | |
1950 | do | |
1951 | case $ac_arg in | |
1952 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1953 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1954 | | -silent | --silent | --silen | --sile | --sil) | |
1955 | continue ;; | |
cd9a469c | 1956 | *\'*) |
1957 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b30fcfae | 1958 | esac |
1959 | case $ac_pass in | |
cd9a469c | 1960 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b30fcfae | 1961 | 2) |
cd9a469c | 1962 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b30fcfae | 1963 | if test $ac_must_keep_next = true; then |
1964 | ac_must_keep_next=false # Got value, back to normal. | |
1965 | else | |
1966 | case $ac_arg in | |
1967 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1968 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1969 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1970 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1971 | case "$ac_configure_args0 " in | |
1972 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1973 | esac | |
1974 | ;; | |
1975 | -* ) ac_must_keep_next=true ;; | |
1976 | esac | |
1977 | fi | |
cd9a469c | 1978 | as_fn_append ac_configure_args " '$ac_arg'" |
b30fcfae | 1979 | ;; |
1980 | esac | |
1981 | done | |
1982 | done | |
cd9a469c | 1983 | { ac_configure_args0=; unset ac_configure_args0;} |
1984 | { ac_configure_args1=; unset ac_configure_args1;} | |
b30fcfae | 1985 | |
1986 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1987 | # config.log. We remove comments because anyway the quotes in there | |
1988 | # would cause problems or look ugly. | |
cd9a469c | 1989 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1990 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b30fcfae | 1991 | trap 'exit_status=$? |
1992 | # Save into config.log some information that might help in debugging. | |
1993 | { | |
1994 | echo | |
1995 | ||
1996 | cat <<\_ASBOX | |
1997 | ## ---------------- ## | |
1998 | ## Cache variables. ## | |
1999 | ## ---------------- ## | |
2000 | _ASBOX | |
2001 | echo | |
2002 | # The following way of writing the cache mishandles newlines in values, | |
cd9a469c | 2003 | ( |
2004 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2005 | eval ac_val=\$$ac_var | |
2006 | case $ac_val in #( | |
2007 | *${as_nl}*) | |
2008 | case $ac_var in #( | |
2009 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2010 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2011 | esac | |
2012 | case $ac_var in #( | |
2013 | _ | IFS | as_nl) ;; #( | |
2014 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2015 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2016 | esac ;; | |
2017 | esac | |
2018 | done | |
b30fcfae | 2019 | (set) 2>&1 | |
cd9a469c | 2020 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2021 | *${as_nl}ac_space=\ *) | |
b30fcfae | 2022 | sed -n \ |
cd9a469c | 2023 | "s/'\''/'\''\\\\'\'''\''/g; |
2024 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2025 | ;; #( | |
b30fcfae | 2026 | *) |
cd9a469c | 2027 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b30fcfae | 2028 | ;; |
cd9a469c | 2029 | esac | |
2030 | sort | |
2031 | ) | |
b30fcfae | 2032 | echo |
2033 | ||
2034 | cat <<\_ASBOX | |
2035 | ## ----------------- ## | |
2036 | ## Output variables. ## | |
2037 | ## ----------------- ## | |
2038 | _ASBOX | |
2039 | echo | |
2040 | for ac_var in $ac_subst_vars | |
2041 | do | |
cd9a469c | 2042 | eval ac_val=\$$ac_var |
2043 | case $ac_val in | |
2044 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2045 | esac | |
2046 | $as_echo "$ac_var='\''$ac_val'\''" | |
b30fcfae | 2047 | done | sort |
2048 | echo | |
2049 | ||
2050 | if test -n "$ac_subst_files"; then | |
2051 | cat <<\_ASBOX | |
cd9a469c | 2052 | ## ------------------- ## |
2053 | ## File substitutions. ## | |
2054 | ## ------------------- ## | |
b30fcfae | 2055 | _ASBOX |
2056 | echo | |
2057 | for ac_var in $ac_subst_files | |
2058 | do | |
cd9a469c | 2059 | eval ac_val=\$$ac_var |
2060 | case $ac_val in | |
2061 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2062 | esac | |
2063 | $as_echo "$ac_var='\''$ac_val'\''" | |
b30fcfae | 2064 | done | sort |
2065 | echo | |
2066 | fi | |
2067 | ||
2068 | if test -s confdefs.h; then | |
2069 | cat <<\_ASBOX | |
2070 | ## ----------- ## | |
2071 | ## confdefs.h. ## | |
2072 | ## ----------- ## | |
2073 | _ASBOX | |
2074 | echo | |
cd9a469c | 2075 | cat confdefs.h |
b30fcfae | 2076 | echo |
2077 | fi | |
2078 | test "$ac_signal" != 0 && | |
cd9a469c | 2079 | $as_echo "$as_me: caught signal $ac_signal" |
2080 | $as_echo "$as_me: exit $exit_status" | |
b30fcfae | 2081 | } >&5 |
cd9a469c | 2082 | rm -f core *.core core.conftest.* && |
2083 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b30fcfae | 2084 | exit $exit_status |
cd9a469c | 2085 | ' 0 |
b30fcfae | 2086 | for ac_signal in 1 2 13 15; do |
cd9a469c | 2087 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b30fcfae | 2088 | done |
2089 | ac_signal=0 | |
2090 | ||
2091 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
cd9a469c | 2092 | rm -f -r conftest* confdefs.h |
2093 | ||
2094 | $as_echo "/* confdefs.h */" > confdefs.h | |
b30fcfae | 2095 | |
2096 | # Predefined preprocessor variables. | |
2097 | ||
2098 | cat >>confdefs.h <<_ACEOF | |
2099 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2100 | _ACEOF | |
2101 | ||
b30fcfae | 2102 | cat >>confdefs.h <<_ACEOF |
2103 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2104 | _ACEOF | |
2105 | ||
b30fcfae | 2106 | cat >>confdefs.h <<_ACEOF |
2107 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2108 | _ACEOF | |
a83ffacf | 2109 | |
b30fcfae | 2110 | cat >>confdefs.h <<_ACEOF |
2111 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2112 | _ACEOF | |
2113 | ||
b30fcfae | 2114 | cat >>confdefs.h <<_ACEOF |
2115 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2116 | _ACEOF | |
2117 | ||
cd9a469c | 2118 | cat >>confdefs.h <<_ACEOF |
2119 | #define PACKAGE_URL "$PACKAGE_URL" | |
2120 | _ACEOF | |
2121 | ||
b30fcfae | 2122 | |
2123 | # Let the site file select an alternate cache file if it wants to. | |
cd9a469c | 2124 | # Prefer an explicitly selected file to automatically selected ones. |
2125 | ac_site_file1=NONE | |
2126 | ac_site_file2=NONE | |
2127 | if test -n "$CONFIG_SITE"; then | |
2128 | ac_site_file1=$CONFIG_SITE | |
2129 | elif test "x$prefix" != xNONE; then | |
2130 | ac_site_file1=$prefix/share/config.site | |
2131 | ac_site_file2=$prefix/etc/config.site | |
2132 | else | |
2133 | ac_site_file1=$ac_default_prefix/share/config.site | |
2134 | ac_site_file2=$ac_default_prefix/etc/config.site | |
71ab34df | 2135 | fi |
cd9a469c | 2136 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2137 | do | |
2138 | test "x$ac_site_file" = xNONE && continue | |
71ab34df | 2139 | if test -r "$ac_site_file"; then |
cd9a469c | 2140 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2141 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b30fcfae | 2142 | sed 's/^/| /' "$ac_site_file" >&5 |
71ab34df | 2143 | . "$ac_site_file" |
2144 | fi | |
2145 | done | |
2146 | ||
2147 | if test -r "$cache_file"; then | |
b30fcfae | 2148 | # Some versions of bash will fail to source /dev/null (special |
2149 | # files actually), so we avoid doing that. | |
2150 | if test -f "$cache_file"; then | |
cd9a469c | 2151 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2152 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b30fcfae | 2153 | case $cache_file in |
cd9a469c | 2154 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2155 | *) . "./$cache_file";; | |
b30fcfae | 2156 | esac |
2157 | fi | |
71ab34df | 2158 | else |
cd9a469c | 2159 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2160 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b30fcfae | 2161 | >$cache_file |
2162 | fi | |
2163 | ||
2164 | # Check that the precious variables saved in the cache have kept the same | |
2165 | # value. | |
2166 | ac_cache_corrupted=false | |
cd9a469c | 2167 | for ac_var in $ac_precious_vars; do |
b30fcfae | 2168 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2169 | eval ac_new_set=\$ac_env_${ac_var}_set | |
cd9a469c | 2170 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2171 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b30fcfae | 2172 | case $ac_old_set,$ac_new_set in |
2173 | set,) | |
cd9a469c | 2174 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2175 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b30fcfae | 2176 | ac_cache_corrupted=: ;; |
2177 | ,set) | |
cd9a469c | 2178 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2179 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b30fcfae | 2180 | ac_cache_corrupted=: ;; |
2181 | ,);; | |
2182 | *) | |
2183 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
cd9a469c | 2184 | # differences in whitespace do not lead to failure. |
2185 | ac_old_val_w=`echo x $ac_old_val` | |
2186 | ac_new_val_w=`echo x $ac_new_val` | |
2187 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2188 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2189 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2190 | ac_cache_corrupted=: | |
2191 | else | |
2192 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2193 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2194 | eval $ac_var=\$ac_old_val | |
2195 | fi | |
2196 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2197 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2198 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2199 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b30fcfae | 2200 | fi;; |
2201 | esac | |
2202 | # Pass precious variables to config.status. | |
2203 | if test "$ac_new_set" = set; then | |
2204 | case $ac_new_val in | |
cd9a469c | 2205 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b30fcfae | 2206 | *) ac_arg=$ac_var=$ac_new_val ;; |
2207 | esac | |
2208 | case " $ac_configure_args " in | |
2209 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
cd9a469c | 2210 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b30fcfae | 2211 | esac |
2212 | fi | |
2213 | done | |
2214 | if $ac_cache_corrupted; then | |
cd9a469c | 2215 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2216 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2217 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2218 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2219 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
71ab34df | 2220 | fi |
cd9a469c | 2221 | ## -------------------- ## |
2222 | ## Main body of script. ## | |
2223 | ## -------------------- ## | |
71ab34df | 2224 | |
5084f823 | 2225 | ac_ext=c |
2226 | ac_cpp='$CPP $CPPFLAGS' | |
2227 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2228 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2229 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2230 | ||
b30fcfae | 2231 | |
2232 | ||
2233 | ||
b30fcfae | 2234 | |
2235 | ||
cd2f3773 | 2236 | |
b30fcfae | 2237 | |
4e8a889d | 2238 | |
2239 | progname=$0 | |
2240 | # if PWD already has a value, it is probably wrong. | |
2241 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2242 | ||
2243 | # Export original configure arguments for use by sub-configures. | |
2244 | # Quote arguments with shell meta charatcers. | |
2245 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2246 | set -- "$progname" "$@" | |
2247 | for ac_arg | |
2248 | do | |
2249 | case "$ac_arg" in | |
2250 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2251 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2252 | # if the argument is of the form -foo=baz, quote the baz part only | |
2253 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2254 | *) ;; | |
2255 | esac | |
2256 | # Add the quoted argument to the list. | |
2257 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2258 | done | |
2259 | if test "$silent" = yes; then | |
2260 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2261 | fi | |
2262 | # Remove the initial space we just introduced and, as these will be | |
2263 | # expanded by make, quote '$'. | |
2264 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2265 | ||
b30fcfae | 2266 | |
2267 | # Find the build, host, and target systems. | |
71ab34df | 2268 | ac_aux_dir= |
cd9a469c | 2269 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2270 | for ac_t in install-sh install.sh shtool; do | |
2271 | if test -f "$ac_dir/$ac_t"; then | |
2272 | ac_aux_dir=$ac_dir | |
2273 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2274 | break 2 | |
2275 | fi | |
2276 | done | |
71ab34df | 2277 | done |
2278 | if test -z "$ac_aux_dir"; then | |
cd9a469c | 2279 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
71ab34df | 2280 | fi |
cd9a469c | 2281 | |
2282 | # These three variables are undocumented and unsupported, | |
2283 | # and are intended to be withdrawn in a future Autoconf release. | |
2284 | # They can cause serious problems if a builder's source tree is in a directory | |
2285 | # whose full name contains unusual characters. | |
2286 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2287 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2288 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2289 | ||
71ab34df | 2290 | |
b30fcfae | 2291 | # Make sure we can run config.sub. |
cd9a469c | 2292 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2293 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2294 | ||
2295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2296 | $as_echo_n "checking build system type... " >&6; } | |
2297 | if test "${ac_cv_build+set}" = set; then : | |
2298 | $as_echo_n "(cached) " >&6 | |
2299 | else | |
2300 | ac_build_alias=$build_alias | |
2301 | test "x$ac_build_alias" = x && | |
2302 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2303 | test "x$ac_build_alias" = x && | |
2304 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2305 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2306 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2307 | ||
2308 | fi | |
2309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2310 | $as_echo "$ac_cv_build" >&6; } | |
2311 | case $ac_cv_build in | |
2312 | *-*-*) ;; | |
2313 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2314 | esac | |
b30fcfae | 2315 | build=$ac_cv_build |
cd9a469c | 2316 | ac_save_IFS=$IFS; IFS='-' |
2317 | set x $ac_cv_build | |
2318 | shift | |
2319 | build_cpu=$1 | |
2320 | build_vendor=$2 | |
2321 | shift; shift | |
2322 | # Remember, the first character of IFS is used to create $*, | |
2323 | # except with old shells: | |
2324 | build_os=$* | |
2325 | IFS=$ac_save_IFS | |
2326 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
71ab34df | 2327 | |
71ab34df | 2328 | |
b30fcfae | 2329 | case ${build_alias} in |
2330 | "") build_noncanonical=${build} ;; | |
2331 | *) build_noncanonical=${build_alias} ;; | |
ae48753c | 2332 | esac |
2333 | ||
2334 | ||
ae48753c | 2335 | |
b30fcfae | 2336 | case ${host_alias} in |
2337 | "") host_noncanonical=${build_noncanonical} ;; | |
2338 | *) host_noncanonical=${host_alias} ;; | |
ae48753c | 2339 | esac |
2340 | ||
ae48753c | 2341 | |
b30fcfae | 2342 | |
2343 | case ${target_alias} in | |
2344 | "") target_noncanonical=${host_noncanonical} ;; | |
2345 | *) target_noncanonical=${target_alias} ;; | |
ae48753c | 2346 | esac |
2347 | ||
ae48753c | 2348 | |
b30fcfae | 2349 | |
2350 | ||
2351 | test "$host_noncanonical" = "$target_noncanonical" && | |
71ab34df | 2352 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2353 | NONENONEs,x,x, && | |
b30fcfae | 2354 | program_transform_name=s,y,y, |
ae48753c | 2355 | |
cd9a469c | 2356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2357 | $as_echo_n "checking host system type... " >&6; } | |
2358 | if test "${ac_cv_host+set}" = set; then : | |
2359 | $as_echo_n "(cached) " >&6 | |
ae48753c | 2360 | else |
cd9a469c | 2361 | if test "x$host_alias" = x; then |
2362 | ac_cv_host=$ac_cv_build | |
2363 | else | |
2364 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2365 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2366 | fi | |
b30fcfae | 2367 | |
ae48753c | 2368 | fi |
cd9a469c | 2369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2370 | $as_echo "$ac_cv_host" >&6; } | |
2371 | case $ac_cv_host in | |
2372 | *-*-*) ;; | |
2373 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2374 | esac | |
b30fcfae | 2375 | host=$ac_cv_host |
cd9a469c | 2376 | ac_save_IFS=$IFS; IFS='-' |
2377 | set x $ac_cv_host | |
2378 | shift | |
2379 | host_cpu=$1 | |
2380 | host_vendor=$2 | |
2381 | shift; shift | |
2382 | # Remember, the first character of IFS is used to create $*, | |
2383 | # except with old shells: | |
2384 | host_os=$* | |
2385 | IFS=$ac_save_IFS | |
2386 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
5084f823 | 2387 | |
2388 | ||
cd9a469c | 2389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2390 | $as_echo_n "checking target system type... " >&6; } | |
2391 | if test "${ac_cv_target+set}" = set; then : | |
2392 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 2393 | else |
cd9a469c | 2394 | if test "x$target_alias" = x; then |
2395 | ac_cv_target=$ac_cv_host | |
2396 | else | |
2397 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2398 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2399 | fi | |
b30fcfae | 2400 | |
2401 | fi | |
cd9a469c | 2402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2403 | $as_echo "$ac_cv_target" >&6; } | |
2404 | case $ac_cv_target in | |
2405 | *-*-*) ;; | |
2406 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2407 | esac | |
b30fcfae | 2408 | target=$ac_cv_target |
cd9a469c | 2409 | ac_save_IFS=$IFS; IFS='-' |
2410 | set x $ac_cv_target | |
2411 | shift | |
2412 | target_cpu=$1 | |
2413 | target_vendor=$2 | |
2414 | shift; shift | |
2415 | # Remember, the first character of IFS is used to create $*, | |
2416 | # except with old shells: | |
2417 | target_os=$* | |
2418 | IFS=$ac_save_IFS | |
2419 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
b30fcfae | 2420 | |
2421 | ||
2422 | # The aliases save the names the user supplied, while $host etc. | |
2423 | # will get canonicalized. | |
2424 | test -n "$target_alias" && | |
2425 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2426 | NONENONEs,x,x, && | |
2427 | program_prefix=${target_alias}- | |
cd9a469c | 2428 | |
71ab34df | 2429 | test "$program_prefix" != NONE && |
cd9a469c | 2430 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
71ab34df | 2431 | # Use a double $ so make ignores it. |
2432 | test "$program_suffix" != NONE && | |
cd9a469c | 2433 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2434 | # Double any \ or $. | |
b30fcfae | 2435 | # By default was `s,x,x', remove it if useless. |
cd9a469c | 2436 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2437 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
ae48753c | 2438 | |
71ab34df | 2439 | |
2440 | ||
450e6c84 | 2441 | # Get 'install' or 'install-sh' and its variants. |
2442 | # Find a good install program. We prefer a C program (faster), | |
2443 | # so one script is as good as another. But avoid the broken or | |
2444 | # incompatible versions: | |
2445 | # SysV /etc/install, /usr/sbin/install | |
2446 | # SunOS /usr/etc/install | |
2447 | # IRIX /sbin/install | |
2448 | # AIX /bin/install | |
b30fcfae | 2449 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
450e6c84 | 2450 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2451 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2452 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
b30fcfae | 2453 | # OS/2's system install, which has a completely different semantic |
450e6c84 | 2454 | # ./install, which can be erroneously created by make from ./install.sh. |
82eaf560 | 2455 | # Reject install programs that cannot install multiple files. |
cd9a469c | 2456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2457 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
450e6c84 | 2458 | if test -z "$INSTALL"; then |
cd9a469c | 2459 | if test "${ac_cv_path_install+set}" = set; then : |
2460 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 2461 | else |
2462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2463 | for as_dir in $PATH | |
2464 | do | |
2465 | IFS=$as_save_IFS | |
2466 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 2467 | # Account for people who put trailing slashes in PATH elements. |
2468 | case $as_dir/ in #(( | |
2469 | ./ | .// | /[cC]/* | \ | |
b30fcfae | 2470 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
cd9a469c | 2471 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
b30fcfae | 2472 | /usr/ucb/* ) ;; |
2473 | *) | |
2474 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2475 | # Don't use installbsd from OSF since it installs stuff as root | |
2476 | # by default. | |
2477 | for ac_prog in ginstall scoinst install; do | |
2478 | for ac_exec_ext in '' $ac_executable_extensions; do | |
cd9a469c | 2479 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
450e6c84 | 2480 | if test $ac_prog = install && |
b30fcfae | 2481 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
450e6c84 | 2482 | # AIX install. It has an incompatible calling convention. |
2483 | : | |
b30fcfae | 2484 | elif test $ac_prog = install && |
2485 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2486 | # program-specific install script used by HP pwplus--don't use. | |
2487 | : | |
450e6c84 | 2488 | else |
82eaf560 | 2489 | rm -rf conftest.one conftest.two conftest.dir |
2490 | echo one > conftest.one | |
2491 | echo two > conftest.two | |
2492 | mkdir conftest.dir | |
2493 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2494 | test -s conftest.one && test -s conftest.two && | |
2495 | test -s conftest.dir/conftest.one && | |
2496 | test -s conftest.dir/conftest.two | |
2497 | then | |
2498 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2499 | break 3 | |
2500 | fi | |
450e6c84 | 2501 | fi |
2502 | fi | |
2503 | done | |
b30fcfae | 2504 | done |
2505 | ;; | |
2506 | esac | |
cd9a469c | 2507 | |
2508 | done | |
2509 | IFS=$as_save_IFS | |
b30fcfae | 2510 | |
82eaf560 | 2511 | rm -rf conftest.one conftest.two conftest.dir |
450e6c84 | 2512 | |
2513 | fi | |
2514 | if test "${ac_cv_path_install+set}" = set; then | |
b30fcfae | 2515 | INSTALL=$ac_cv_path_install |
450e6c84 | 2516 | else |
82eaf560 | 2517 | # As a last resort, use the slow shell script. Don't cache a |
2518 | # value for INSTALL within a source directory, because that will | |
450e6c84 | 2519 | # break other packages using the cache if that directory is |
82eaf560 | 2520 | # removed, or if the value is a relative name. |
b30fcfae | 2521 | INSTALL=$ac_install_sh |
450e6c84 | 2522 | fi |
2523 | fi | |
cd9a469c | 2524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2525 | $as_echo "$INSTALL" >&6; } | |
450e6c84 | 2526 | |
2527 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2528 | # It thinks the first close brace ends the variable substitution. | |
2529 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2530 | ||
b30fcfae | 2531 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
450e6c84 | 2532 | |
2533 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2534 | ||
cd9a469c | 2535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2536 | $as_echo_n "checking whether ln works... " >&6; } | |
2537 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2538 | $as_echo_n "(cached) " >&6 | |
599a3eac | 2539 | else |
2540 | rm -f conftestdata_t | |
2541 | echo >conftestdata_f | |
2542 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2543 | then | |
2544 | acx_cv_prog_LN=ln | |
2545 | else | |
2546 | acx_cv_prog_LN=no | |
2547 | fi | |
2548 | rm -f conftestdata_f conftestdata_t | |
2549 | ||
2550 | fi | |
2551 | if test $acx_cv_prog_LN = no; then | |
2552 | LN="cp" | |
cd9a469c | 2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2554 | $as_echo "no, using $LN" >&6; } | |
599a3eac | 2555 | else |
2556 | LN="$acx_cv_prog_LN" | |
cd9a469c | 2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2558 | $as_echo "yes" >&6; } | |
599a3eac | 2559 | fi |
2560 | ||
cd9a469c | 2561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2562 | $as_echo_n "checking whether ln -s works... " >&6; } | |
b30fcfae | 2563 | LN_S=$as_ln_s |
2564 | if test "$LN_S" = "ln -s"; then | |
cd9a469c | 2565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2566 | $as_echo "yes" >&6; } | |
a4af6a58 | 2567 | else |
cd9a469c | 2568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2569 | $as_echo "no, using $LN_S" >&6; } | |
5965d276 | 2570 | fi |
2571 | ||
b181f265 | 2572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2573 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2574 | if test "${ac_cv_path_SED+set}" = set; then : | |
2575 | $as_echo_n "(cached) " >&6 | |
2576 | else | |
2577 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2578 | for ac_i in 1 2 3 4 5 6 7; do | |
2579 | ac_script="$ac_script$as_nl$ac_script" | |
2580 | done | |
2581 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2582 | { ac_script=; unset ac_script;} | |
2583 | if test -z "$SED"; then | |
2584 | ac_path_SED_found=false | |
2585 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2587 | for as_dir in $PATH | |
2588 | do | |
2589 | IFS=$as_save_IFS | |
2590 | test -z "$as_dir" && as_dir=. | |
2591 | for ac_prog in sed gsed; do | |
2592 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2593 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2594 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2595 | # Check for GNU ac_path_SED and select it if it is found. | |
2596 | # Check for GNU $ac_path_SED | |
2597 | case `"$ac_path_SED" --version 2>&1` in | |
2598 | *GNU*) | |
2599 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2600 | *) | |
2601 | ac_count=0 | |
2602 | $as_echo_n 0123456789 >"conftest.in" | |
2603 | while : | |
2604 | do | |
2605 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2606 | mv "conftest.tmp" "conftest.in" | |
2607 | cp "conftest.in" "conftest.nl" | |
2608 | $as_echo '' >> "conftest.nl" | |
2609 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2610 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2611 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2612 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2613 | # Best one so far, save it but keep looking for a better one | |
2614 | ac_cv_path_SED="$ac_path_SED" | |
2615 | ac_path_SED_max=$ac_count | |
2616 | fi | |
2617 | # 10*(2^10) chars as input seems more than enough | |
2618 | test $ac_count -gt 10 && break | |
2619 | done | |
2620 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2621 | esac | |
2622 | ||
2623 | $ac_path_SED_found && break 3 | |
2624 | done | |
2625 | done | |
2626 | done | |
2627 | IFS=$as_save_IFS | |
2628 | if test -z "$ac_cv_path_SED"; then | |
2629 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2630 | fi | |
2631 | else | |
2632 | ac_cv_path_SED=$SED | |
2633 | fi | |
2634 | ||
2635 | fi | |
2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2637 | $as_echo "$ac_cv_path_SED" >&6; } | |
2638 | SED="$ac_cv_path_SED" | |
2639 | rm -f conftest.sed | |
2640 | ||
2641 | for ac_prog in gawk mawk nawk awk | |
2642 | do | |
2643 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2644 | set dummy $ac_prog; ac_word=$2 | |
2645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2646 | $as_echo_n "checking for $ac_word... " >&6; } | |
2647 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2648 | $as_echo_n "(cached) " >&6 | |
2649 | else | |
2650 | if test -n "$AWK"; then | |
2651 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2652 | else | |
2653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2654 | for as_dir in $PATH | |
2655 | do | |
2656 | IFS=$as_save_IFS | |
2657 | test -z "$as_dir" && as_dir=. | |
2658 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2659 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2660 | ac_cv_prog_AWK="$ac_prog" | |
2661 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2662 | break 2 | |
2663 | fi | |
2664 | done | |
2665 | done | |
2666 | IFS=$as_save_IFS | |
2667 | ||
2668 | fi | |
2669 | fi | |
2670 | AWK=$ac_cv_prog_AWK | |
2671 | if test -n "$AWK"; then | |
2672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2673 | $as_echo "$AWK" >&6; } | |
2674 | else | |
2675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2676 | $as_echo "no" >&6; } | |
2677 | fi | |
2678 | ||
2679 | ||
2680 | test -n "$AWK" && break | |
2681 | done | |
2682 | ||
450e6c84 | 2683 | |
e8eddfdd | 2684 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2685 | ||
2686 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2687 | # a relative path. | |
2688 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2689 | INSTALL="${srcpwd}/install-sh -c" | |
2690 | fi | |
2691 | ||
71ab34df | 2692 | # Set srcdir to "." if that's what it is. |
2693 | # This is important for multilib support. | |
2694 | pwd=`${PWDCMD-pwd}` | |
71ab34df | 2695 | if test "${pwd}" = "${srcpwd}" ; then |
2696 | srcdir=. | |
a8298541 | 2697 | fi |
2698 | ||
71ab34df | 2699 | topsrcdir=$srcpwd |
ed37269d | 2700 | |
71ab34df | 2701 | extra_host_args= |
14ac9144 | 2702 | |
71ab34df | 2703 | ### To add a new directory to the tree, first choose whether it is a target |
2704 | ### or a host dependent tool. Then put it into the appropriate list | |
2705 | ### (library or tools, host or target), doing a dependency sort. | |
a8298541 | 2706 | |
b30fcfae | 2707 | # Subdirs will be configured in the order listed in build_configdirs, |
71ab34df | 2708 | # configdirs, or target_configdirs; see the serialization section below. |
a8298541 | 2709 | |
b30fcfae | 2710 | # Dependency sorting is only needed when *configuration* must be done in |
2711 | # a particular order. In all cases a dependency should be specified in | |
71ab34df | 2712 | # the Makefile, whether or not it's implicitly specified here. |
a8298541 | 2713 | |
71ab34df | 2714 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2715 | # cause circular dependencies and break everything horribly. | |
a8298541 | 2716 | |
2f8725b0 | 2717 | # these library is used by various programs built for the build |
2718 | # environment | |
2719 | # | |
9245d2c5 | 2720 | build_libs="build-libiberty build-libcpp" |
2f8725b0 | 2721 | |
2722 | # these tools are built for the build environment | |
4fc99708 | 2723 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
2f8725b0 | 2724 | |
71ab34df | 2725 | # these libraries are used by various programs built for the host environment |
429cca51 | 2726 | #f |
572cf1f7 | 2727 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv" |
71ab34df | 2728 | |
71ab34df | 2729 | # these tools are built for the host environment |
2730 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2731 | # know that we are building the simulator. | |
2732 | # binutils, gas and ld appear in that order because it makes sense to run | |
2733 | # "make check" in that particular order. | |
af7c5662 | 2734 | # If --enable-gold is used, "gold" may replace "ld". |
dcfe52b6 | 2735 | 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 | 2736 | |
2737 | # libgcj represents the runtime libraries only used by gcj. | |
2738 | libgcj="target-libffi \ | |
71ab34df | 2739 | target-zlib \ |
71ab34df | 2740 | target-libjava" |
2741 | ||
2742 | # these libraries are built for the target environment, and are built after | |
2743 | # the host libraries and the host tools (which may be a cross compiler) | |
5ab7e123 | 2744 | # Note that libiberty is not a target library. |
27bfe7b7 | 2745 | target_libraries="target-libgcc \ |
ecd3459e | 2746 | target-libbacktrace \ |
71ab34df | 2747 | target-libgloss \ |
2748 | target-newlib \ | |
a0191bfe | 2749 | target-libgomp \ |
4710dd51 | 2750 | target-libcilkrts \ |
d3a7dd32 | 2751 | target-liboffloadmic \ |
6db1d2ca | 2752 | target-libatomic \ |
4c0315d0 | 2753 | target-libitm \ |
54d7d5f2 | 2754 | target-libstdc++-v3 \ |
549e2197 | 2755 | target-libsanitizer \ |
b710ec85 | 2756 | target-libvtv \ |
202baac8 | 2757 | target-libmpx \ |
0d55f4d0 | 2758 | target-libssp \ |
87969c8c | 2759 | target-libquadmath \ |
4ee9c684 | 2760 | target-libgfortran \ |
dd6d3a67 | 2761 | target-boehm-gc \ |
cdfc500e | 2762 | ${libgcj} \ |
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*-*-* \ |
2974 | | aarch64*-*-* | tilegx*-*-*) | |
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 | |
71ab34df | 3019 | # Configure extra directories which are host specific |
a8298541 | 3020 | |
71ab34df | 3021 | case "${host}" in |
3022 | *-cygwin*) | |
3023 | configdirs="$configdirs libtermcap" ;; | |
3024 | esac | |
a8298541 | 3025 | |
ff7dcf6a | 3026 | # A target can indicate whether a language isn't supported for some reason. |
3027 | # Only spaces may be used in this macro; not newlines or tabs. | |
3028 | unsupported_languages= | |
3029 | ||
b30fcfae | 3030 | # Remove more programs from consideration, based on the host or |
71ab34df | 3031 | # target this usually means that a port of the program doesn't |
3032 | # exist yet. | |
c7879c37 | 3033 | |
71ab34df | 3034 | case "${host}" in |
b2240ff6 | 3035 | i[3456789]86-*-msdosdjgpp*) |
e3a5e6ff | 3036 | noconfigdirs="$noconfigdirs tcl tk itcl" |
71ab34df | 3037 | ;; |
71ab34df | 3038 | esac |
c7879c37 | 3039 | |
4ee9c684 | 3040 | |
d9d975ae | 3041 | # Check whether --enable-libquadmath was given. |
3042 | if test "${enable_libquadmath+set}" = set; then : | |
3043 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3044 | else | |
3045 | ENABLE_LIBQUADMATH=yes | |
3046 | fi | |
3047 | ||
3048 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3049 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3050 | fi | |
3051 | ||
3052 | ||
3053 | # Check whether --enable-libquadmath-support was given. | |
3054 | if test "${enable_libquadmath_support+set}" = set; then : | |
3055 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3056 | else | |
3057 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3058 | fi | |
3059 | ||
3060 | enable_libquadmath_support= | |
3061 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3062 | enable_libquadmath_support=no | |
3063 | fi | |
3064 | ||
3065 | ||
cd9a469c | 3066 | # Check whether --enable-libada was given. |
3067 | if test "${enable_libada+set}" = set; then : | |
3068 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
93341878 | 3069 | else |
3070 | ENABLE_LIBADA=yes | |
cd9a469c | 3071 | fi |
3072 | ||
93341878 | 3073 | if test "${ENABLE_LIBADA}" != "yes" ; then |
a136b23d | 3074 | noconfigdirs="$noconfigdirs gnattools" |
93341878 | 3075 | fi |
3076 | ||
cd9a469c | 3077 | # Check whether --enable-libssp was given. |
3078 | if test "${enable_libssp+set}" = set; then : | |
3079 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
07da5214 | 3080 | else |
3081 | ENABLE_LIBSSP=yes | |
cd9a469c | 3082 | fi |
3083 | ||
07da5214 | 3084 | |
a3ba808f | 3085 | # Check whether --enable-libstdcxx was given. |
3086 | if test "${enable_libstdcxx+set}" = set; then : | |
3087 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3088 | else | |
3089 | ENABLE_LIBSTDCXX=default | |
3090 | fi | |
3091 | ||
3092 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
df148e44 | 3093 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
a3ba808f | 3094 | fi |
3095 | ||
d3a7dd32 | 3096 | # If this is accelerator compiler and its target is intelmic we enable |
3097 | # target liboffloadmic by default. If this is compiler with offloading | |
3098 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3099 | # liboffloadmic is disabled by default. | |
3100 | # Check whether --enable-liboffloadmic was given. | |
3101 | if test "${enable_liboffloadmic+set}" = set; then : | |
3102 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3103 | no | host | target) | |
3104 | enable_liboffloadmic=$enableval ;; | |
3105 | *) | |
3106 | as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; | |
3107 | esac | |
3108 | else | |
67cedda8 | 3109 | if test x"$enable_as_accelerator_for" != x; then |
d3a7dd32 | 3110 | case "${target}" in |
3111 | *-intelmic-* | *-intelmicemul-*) | |
3112 | enable_liboffloadmic=target | |
3113 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3114 | ;; | |
3115 | *) | |
3116 | enable_liboffloadmic=no | |
3117 | ;; | |
3118 | esac | |
3119 | else | |
3120 | case "${enable_offload_targets}" in | |
3121 | *-intelmic-* | *-intelmicemul-*) | |
3122 | enable_liboffloadmic=host | |
3123 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3124 | ;; | |
3125 | *) | |
3126 | enable_liboffloadmic=no | |
3127 | ;; | |
3128 | esac | |
3129 | fi | |
3130 | fi | |
3131 | ||
3132 | ||
3133 | ||
71ab34df | 3134 | # Save it here so that, even in case of --enable-libgcj, if the Java |
3135 | # front-end isn't enabled, we still get libgcj disabled. | |
3136 | libgcj_saved=$libgcj | |
3137 | case $enable_libgcj in | |
3138 | yes) | |
3139 | # If we reset it here, it won't get added to noconfigdirs in the | |
3140 | # target-specific build rules, so it will be forcibly enabled | |
3141 | # (unless the Java language itself isn't enabled). | |
3142 | libgcj= | |
3143 | ;; | |
3144 | no) | |
3145 | # Make sure we get it printed in the list of not supported target libs. | |
604a285a | 3146 | # Don't disable libffi, though, other languages use it. |
3147 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
8593ce89 | 3148 | # Clear libgcj_saved so that even if java is enabled libffi won't be |
3149 | # built. | |
3150 | libgcj_saved= | |
71ab34df | 3151 | ;; |
3152 | esac | |
c7879c37 | 3153 | |
d7e52ac9 | 3154 | # Check whether --enable-static-libjava was given. |
3155 | if test "${enable_static_libjava+set}" = set; then : | |
3156 | enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval | |
3157 | else | |
3158 | ENABLE_STATIC_LIBJAVA=no | |
3159 | fi | |
3160 | ||
3161 | enable_static_libjava= | |
3162 | if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then | |
3163 | enable_static_libjava=yes | |
3164 | fi | |
3165 | ||
3166 | if test x$enable_static_libjava != xyes ; then | |
3167 | EXTRA_CONFIGARGS_LIBJAVA=--disable-static | |
3168 | fi | |
3169 | ||
4ee9c684 | 3170 | |
fdcd05c8 | 3171 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
50996fe5 | 3172 | if test x$enable_libgomp = x ; then |
1e8e9920 | 3173 | case "${target}" in |
3bef4012 | 3174 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
1e8e9920 | 3175 | ;; |
e3a1fe08 | 3176 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
1e8e9920 | 3177 | ;; |
5641963c | 3178 | *-*-solaris2* | *-*-hpux11*) |
1e8e9920 | 3179 | ;; |
634efbee | 3180 | *-*-darwin* | *-*-aix*) |
1e8e9920 | 3181 | ;; |
fdcd05c8 | 3182 | nvptx*-*-*) |
3183 | ;; | |
1e8e9920 | 3184 | *) |
3185 | noconfigdirs="$noconfigdirs target-libgomp" | |
3186 | ;; | |
3187 | esac | |
50996fe5 | 3188 | fi |
1e8e9920 | 3189 | |
6db1d2ca | 3190 | # Disable libatomic on unsupported systems. |
3191 | if test -d ${srcdir}/libatomic; then | |
3192 | if test x$enable_libatomic = x; then | |
3193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3194 | $as_echo_n "checking for libatomic support... " >&6; } | |
3195 | if (srcdir=${srcdir}/libatomic; \ | |
3196 | . ${srcdir}/configure.tgt; \ | |
3197 | test -n "$UNSUPPORTED") | |
3198 | then | |
3199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3200 | $as_echo "no" >&6; } | |
3201 | noconfigdirs="$noconfigdirs target-libatomic" | |
3202 | else | |
3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3204 | $as_echo "yes" >&6; } | |
3205 | fi | |
3206 | fi | |
3207 | fi | |
3208 | ||
4710dd51 | 3209 | # Disable libcilkrts on unsupported systems. |
3210 | if test -d ${srcdir}/libcilkrts; then | |
3211 | if test x$enable_libcilkrts = x; then | |
3212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5 | |
3213 | $as_echo_n "checking for libcilkrts support... " >&6; } | |
3214 | if (srcdir=${srcdir}/libcilkrts; \ | |
3215 | . ${srcdir}/configure.tgt; \ | |
3216 | test -n "$UNSUPPORTED") | |
3217 | then | |
3218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3219 | $as_echo "no" >&6; } | |
3220 | noconfigdirs="$noconfigdirs target-libcilkrts" | |
3221 | else | |
3222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3223 | $as_echo "yes" >&6; } | |
3224 | fi | |
3225 | fi | |
3226 | fi | |
3227 | ||
d3a7dd32 | 3228 | # Disable liboffloadmic on unsupported systems. |
3229 | if test -d ${srcdir}/liboffloadmic; then | |
3230 | if test x$enable_liboffloadmic != xno; then | |
3231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3232 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3233 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3234 | . ${srcdir}/configure.tgt; \ | |
3235 | test -n "$UNSUPPORTED") | |
3236 | then | |
3237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3238 | $as_echo "no" >&6; } | |
3239 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3240 | else | |
3241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3242 | $as_echo "yes" >&6; } | |
3243 | fi | |
3244 | fi | |
3245 | fi | |
3246 | ||
42b15c81 | 3247 | # Disable libitm on unsupported systems. |
3248 | if test -d ${srcdir}/libitm; then | |
3249 | if test x$enable_libitm = x; then | |
3250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
298c66d9 | 3251 | $as_echo_n "checking for libitm support... " >&6; } |
42b15c81 | 3252 | if (srcdir=${srcdir}/libitm; \ |
3253 | . ${srcdir}/configure.tgt; \ | |
3254 | test -n "$UNSUPPORTED") | |
3255 | then | |
3256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
298c66d9 | 3257 | $as_echo "no" >&6; } |
42b15c81 | 3258 | noconfigdirs="$noconfigdirs target-libitm" |
3259 | else | |
3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
298c66d9 | 3261 | $as_echo "yes" >&6; } |
42b15c81 | 3262 | fi |
3263 | fi | |
4c0315d0 | 3264 | fi |
3265 | ||
492e75a7 | 3266 | # Disable libsanitizer on unsupported systems. |
3267 | if test -d ${srcdir}/libsanitizer; then | |
3268 | if test x$enable_libsanitizer = x; then | |
3269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3270 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3271 | if (srcdir=${srcdir}/libsanitizer; \ | |
3272 | . ${srcdir}/configure.tgt; \ | |
3273 | test -n "$UNSUPPORTED") | |
3274 | then | |
3275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3276 | $as_echo "no" >&6; } | |
3277 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3278 | else | |
3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3280 | $as_echo "yes" >&6; } | |
3281 | fi | |
3282 | fi | |
3283 | fi | |
3284 | ||
b710ec85 | 3285 | # Disable libvtv on unsupported systems. |
3286 | if test -d ${srcdir}/libvtv; then | |
3287 | if test x$enable_libvtv = x; then | |
3288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3289 | $as_echo_n "checking for libvtv support... " >&6; } | |
3290 | if (srcdir=${srcdir}/libvtv; \ | |
3291 | . ${srcdir}/configure.tgt; \ | |
6d0992e1 | 3292 | test "$VTV_SUPPORTED" != "yes") |
b710ec85 | 3293 | then |
3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3295 | $as_echo "no" >&6; } | |
3296 | noconfigdirs="$noconfigdirs target-libvtv" | |
3297 | else | |
3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3299 | $as_echo "yes" >&6; } | |
3300 | fi | |
3301 | fi | |
3302 | fi | |
3303 | ||
202baac8 | 3304 | |
3305 | # Enable libmpx on supported systems by request. | |
3306 | if test -d ${srcdir}/libmpx; then | |
3307 | if test x$enable_libmpx = xyes; then | |
3308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5 | |
3309 | $as_echo_n "checking for libmpx support... " >&6; } | |
3310 | if (srcdir=${srcdir}/libmpx; \ | |
3311 | . ${srcdir}/configure.tgt; \ | |
3312 | test "$LIBMPX_SUPPORTED" != "yes") | |
3313 | then | |
3314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3315 | $as_echo "no" >&6; } | |
3316 | noconfigdirs="$noconfigdirs target-libmpx" | |
3317 | else | |
3318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3319 | $as_echo "yes" >&6; } | |
3320 | fi | |
3321 | else | |
3322 | noconfigdirs="$noconfigdirs target-libmpx" | |
3323 | fi | |
3324 | fi | |
3325 | ||
3326 | ||
3327 | ||
62f0972f | 3328 | # Disable libquadmath for some systems. |
3329 | case "${target}" in | |
c36ee471 | 3330 | avr-*-*) |
3331 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3332 | ;; | |
62f0972f | 3333 | # libquadmath is unused on AIX and libquadmath build process use of |
3334 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3335 | powerpc-*-aix* | rs6000-*-aix*) | |
3336 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3337 | ;; | |
3338 | esac | |
3339 | ||
d5831552 | 3340 | # Disable libssp for some systems. |
3341 | case "${target}" in | |
3342 | avr-*-*) | |
76c19016 | 3343 | # No hosted I/O support. |
d5831552 | 3344 | noconfigdirs="$noconfigdirs target-libssp" |
3345 | ;; | |
3346 | powerpc-*-aix* | rs6000-*-aix*) | |
3347 | noconfigdirs="$noconfigdirs target-libssp" | |
78e515f7 | 3348 | ;; |
3349 | rl78-*-*) | |
9d5fd7d0 | 3350 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3351 | # doesn't fault for those - instead, it gives a build-time error | |
3352 | # for explicit misaligned loads. | |
78e515f7 | 3353 | noconfigdirs="$noconfigdirs target-libssp" |
d5831552 | 3354 | ;; |
8992df51 | 3355 | visium-*-*) |
3356 | # No hosted I/O support. | |
3357 | noconfigdirs="$noconfigdirs target-libssp" | |
3358 | ;; | |
d5831552 | 3359 | esac |
3360 | ||
d5831552 | 3361 | # Disable libstdc++-v3 for some systems. |
a3ba808f | 3362 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3363 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3364 | case "${target}" in | |
3365 | *-*-vxworks*) | |
3366 | # VxWorks uses the Dinkumware C++ library. | |
3367 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3368 | ;; | |
3369 | arm*-wince-pe*) | |
3370 | # the C++ libraries don't build on top of CE's C libraries | |
3371 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3372 | ;; | |
3373 | avr-*-*) | |
3374 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3375 | ;; | |
b6616c9c | 3376 | ft32-*-*) |
3377 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3378 | ;; | |
a3ba808f | 3379 | esac |
3380 | fi | |
d5831552 | 3381 | |
3382 | # Disable Fortran for some systems. | |
3383 | case "${target}" in | |
3384 | mmix-*-*) | |
3385 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3386 | unsupported_languages="$unsupported_languages fortran" | |
3387 | ;; | |
3388 | esac | |
3389 | ||
91b5b6ec | 3390 | # Disable Java if libffi is not supported. |
f24be480 | 3391 | case "${target}" in |
45e22a2e | 3392 | aarch64-*-*) |
3393 | ;; | |
91b5b6ec | 3394 | alpha*-*-*) |
3395 | ;; | |
3396 | arm*-*-*) | |
3397 | ;; | |
3398 | cris-*-*) | |
3399 | ;; | |
3400 | frv-*-*) | |
3401 | ;; | |
3402 | hppa*-*-linux*) | |
3403 | ;; | |
3404 | hppa*-*-hpux*) | |
3405 | ;; | |
3406 | i?86-*-*) | |
3407 | ;; | |
3408 | ia64*-*-*) | |
3409 | ;; | |
3410 | m32r*-*-*) | |
3411 | ;; | |
3412 | m68k-*-*) | |
3413 | ;; | |
5641963c | 3414 | mips*-*-rtems*) |
91b5b6ec | 3415 | ;; |
3416 | mips*-*-linux*) | |
3417 | ;; | |
3418 | powerpc*-*-linux*) | |
3419 | ;; | |
3420 | powerpc-*-darwin*) | |
3421 | ;; | |
3422 | powerpc-*-aix* | rs6000-*-aix*) | |
3423 | ;; | |
3424 | powerpc-*-freebsd*) | |
3425 | ;; | |
3426 | powerpc64-*-freebsd*) | |
3427 | ;; | |
3428 | powerpc*-*-rtems*) | |
f24be480 | 3429 | ;; |
91b5b6ec | 3430 | s390-*-* | s390x-*-*) |
3431 | ;; | |
3432 | sh-*-* | sh[34]*-*-*) | |
3433 | ;; | |
3434 | sh64-*-* | sh5*-*-*) | |
3435 | ;; | |
3436 | sparc*-*-*) | |
3437 | ;; | |
3438 | x86_64-*-*) | |
3439 | ;; | |
3440 | *-*-*) | |
3441 | unsupported_languages="$unsupported_languages java" | |
3442 | ;; | |
3443 | esac | |
3444 | ||
3445 | # Disable Java, libgcj or related libraries for some systems. | |
3446 | case "${target}" in | |
f24be480 | 3447 | powerpc-*-darwin*) |
3448 | ;; | |
3449 | i[3456789]86-*-darwin*) | |
3450 | ;; | |
3451 | x86_64-*-darwin[912]*) | |
3452 | ;; | |
3453 | *-*-darwin*) | |
3454 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3455 | ;; | |
f24be480 | 3456 | *-*-netware*) |
3457 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3458 | ;; | |
3459 | *-*-rtems*) | |
3460 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3461 | ;; | |
3462 | *-*-tpf*) | |
3463 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3464 | ;; | |
3465 | *-*-uclinux*) | |
3466 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3467 | ;; | |
3468 | *-*-vxworks*) | |
3469 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3470 | ;; | |
f24be480 | 3471 | alpha*-*-*vms*) |
3472 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3473 | ;; | |
275d0a7c | 3474 | arm*-*-freebsd*) |
3475 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3476 | ;; | |
91b5b6ec | 3477 | arm-wince-pe) |
f24be480 | 3478 | noconfigdirs="$noconfigdirs ${libgcj}" |
3479 | ;; | |
f24be480 | 3480 | arm*-*-symbianelf*) |
3481 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3482 | ;; | |
f24be480 | 3483 | bfin-*-*) |
f24be480 | 3484 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3485 | ;; | |
f24be480 | 3486 | cris-*-* | crisv32-*-*) |
3487 | unsupported_languages="$unsupported_languages java" | |
3488 | case "${target}" in | |
3489 | *-*-linux*) | |
3490 | ;; | |
3491 | *) # See PR46792 regarding target-libffi. | |
3492 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3493 | esac | |
3494 | ;; | |
f24be480 | 3495 | hppa*64*-*-linux*) |
3496 | # In this case, it's because the hppa64-linux target is for | |
3497 | # the kernel only at this point and has no libc, and thus no | |
3498 | # headers, crt*.o, etc., all of which are needed by these. | |
a7e330e9 | 3499 | unsupported_languages="$unsupported_languages java" |
f24be480 | 3500 | ;; |
a7e330e9 | 3501 | hppa*64*-*-hpux*) |
f24be480 | 3502 | noconfigdirs="$noconfigdirs ${libgcj}" |
3503 | ;; | |
3504 | hppa*-hp-hpux11*) | |
3505 | ;; | |
a7e330e9 | 3506 | hppa*-*-hpux*) |
f24be480 | 3507 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't |
3508 | # build on HP-UX 10.20. | |
3509 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3510 | ;; | |
f24be480 | 3511 | ia64*-*-*vms*) |
3512 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3513 | ;; | |
f24be480 | 3514 | i[3456789]86-w64-mingw*) |
3515 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3516 | ;; | |
3517 | i[3456789]86-*-mingw*) | |
3518 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3519 | ;; | |
3520 | x86_64-*-mingw*) | |
3521 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3522 | ;; | |
f24be480 | 3523 | mmix-*-*) |
3524 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
f24be480 | 3525 | ;; |
3526 | powerpc-*-aix*) | |
3527 | # copied from rs6000-*-* entry | |
3528 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3529 | ;; | |
f24be480 | 3530 | rs6000-*-aix*) |
3531 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3532 | ;; | |
6406d366 | 3533 | ft32-*-*) |
3534 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3535 | ;; | |
f24be480 | 3536 | *-*-lynxos*) |
3537 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3538 | ;; | |
f24be480 | 3539 | esac |
3540 | ||
10e64fba | 3541 | # Disable the go frontend on systems where it is known to not work. Please keep |
3542 | # this in sync with contrib/config-list.mk. | |
56242c27 | 3543 | case "${target}" in |
3544 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) | |
3545 | unsupported_languages="$unsupported_languages go" | |
3546 | ;; | |
3547 | esac | |
3548 | ||
a6999726 | 3549 | # Disable libgo for some systems where it is known to not work. |
3550 | # For testing, you can easily override this with --enable-libgo. | |
3551 | if test x$enable_libgo = x; then | |
3552 | case "${target}" in | |
3553 | *-*-darwin*) | |
3554 | # PR 46986 | |
3555 | noconfigdirs="$noconfigdirs target-libgo" | |
3556 | ;; | |
3557 | *-*-cygwin* | *-*-mingw*) | |
3558 | noconfigdirs="$noconfigdirs target-libgo" | |
3559 | ;; | |
3560 | *-*-aix*) | |
3561 | noconfigdirs="$noconfigdirs target-libgo" | |
3562 | ;; | |
3563 | esac | |
3564 | fi | |
3565 | ||
1c5767f1 | 3566 | # Default libgloss CPU subdirectory. |
3567 | libgloss_dir="$target_cpu" | |
4ee9c684 | 3568 | |
e0942c78 | 3569 | case "${target}" in |
3570 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3571 | libgloss_dir=wince | |
3572 | ;; | |
e26fddfa | 3573 | aarch64*-*-* ) |
3574 | libgloss_dir=aarch64 | |
3575 | ;; | |
e0942c78 | 3576 | arm*-*-*) |
3577 | libgloss_dir=arm | |
3578 | ;; | |
3579 | cris-*-* | crisv32-*-*) | |
3580 | libgloss_dir=cris | |
3581 | ;; | |
3582 | hppa*-*-*) | |
3583 | libgloss_dir=pa | |
3584 | ;; | |
3585 | i[3456789]86-*-*) | |
3586 | libgloss_dir=i386 | |
3587 | ;; | |
3588 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3589 | libgloss_dir=m68hc11 | |
3590 | ;; | |
3591 | m68*-*-* | fido-*-*) | |
3592 | libgloss_dir=m68k | |
3593 | ;; | |
3594 | mips*-*-*) | |
3595 | libgloss_dir=mips | |
3596 | ;; | |
3597 | powerpc*-*-*) | |
3598 | libgloss_dir=rs6000 | |
3599 | ;; | |
3600 | sparc*-*-*) | |
3601 | libgloss_dir=sparc | |
3602 | ;; | |
3603 | esac | |
3604 | ||
d556f192 | 3605 | # Disable newlib and libgloss for various target OSes. |
71ab34df | 3606 | case "${target}" in |
d556f192 | 3607 | alpha*-dec-osf*) |
3608 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3609 | ;; | |
3610 | i[3456789]86-*-linux*) | |
3611 | # This section makes it possible to build newlib natively on linux. | |
3612 | # If we are using a cross compiler then don't configure newlib. | |
3613 | if test x${is_cross_compiler} != xno ; then | |
3614 | noconfigdirs="$noconfigdirs target-newlib" | |
3615 | fi | |
3616 | noconfigdirs="$noconfigdirs target-libgloss" | |
3617 | # If we are not using a cross compiler, do configure newlib. | |
3618 | # Note however, that newlib will only be configured in this situation | |
3619 | # if the --with-newlib option has been given, because otherwise | |
3620 | # 'target-newlib' will appear in skipdirs. | |
3621 | ;; | |
3622 | i[3456789]86-*-rdos*) | |
3623 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3624 | ;; | |
3625 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3626 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3627 | ;; | |
3628 | sparc-*-sunos4*) | |
3629 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3630 | ;; | |
3631 | *-*-aix*) | |
3632 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3633 | ;; | |
3634 | *-*-beos*) | |
3635 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3636 | ;; | |
71ab34df | 3637 | *-*-chorusos) |
71559dce | 3638 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
71ab34df | 3639 | ;; |
d556f192 | 3640 | *-*-dragonfly*) |
3641 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3642 | ;; | |
3643 | *-*-freebsd*) | |
3644 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3645 | ;; | |
3646 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3647 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3648 | ;; | |
3649 | *-*-lynxos*) | |
3650 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3651 | ;; | |
3652 | *-*-mingw*) | |
3653 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3654 | ;; | |
3655 | *-*-netbsd*) | |
3656 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3657 | ;; | |
3658 | *-*-netware*) | |
3659 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3660 | ;; | |
3661 | *-*-tpf*) | |
3662 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3663 | ;; | |
3664 | *-*-uclinux*) | |
3665 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3666 | ;; | |
3667 | *-*-vxworks*) | |
3668 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3669 | ;; | |
3670 | esac | |
3671 | ||
3672 | case "${target}" in | |
3673 | *-*-chorusos) | |
3674 | ;; | |
40c500e1 | 3675 | powerpc-*-darwin*) |
dba2c8ea | 3676 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
d28caca4 | 3677 | noconfigdirs="$noconfigdirs sim target-rda" |
0894307c | 3678 | ;; |
ea864ded | 3679 | i[3456789]86-*-darwin*) |
3680 | noconfigdirs="$noconfigdirs ld gprof" | |
3681 | noconfigdirs="$noconfigdirs sim target-rda" | |
3682 | ;; | |
3683 | x86_64-*-darwin[912]*) | |
d9f9f3af | 3684 | noconfigdirs="$noconfigdirs ld gas gprof" |
3685 | noconfigdirs="$noconfigdirs sim target-rda" | |
3686 | ;; | |
fce068fd | 3687 | *-*-darwin*) |
3688 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3689 | noconfigdirs="$noconfigdirs sim target-rda" | |
fce068fd | 3690 | ;; |
e3a1fe08 | 3691 | *-*-dragonfly*) |
e3a1fe08 | 3692 | ;; |
c01dd063 | 3693 | *-*-freebsd*) |
4ee9c684 | 3694 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3695 | && test -f /usr/local/include/gmp.h; then | |
3696 | with_gmp=/usr/local | |
3697 | fi | |
4ee9c684 | 3698 | ;; |
336577be | 3699 | *-*-kaos*) |
3700 | # Remove unsupported stuff on all kaOS configurations. | |
336577be | 3701 | noconfigdirs="$noconfigdirs target-libgloss" |
3702 | ;; | |
71ab34df | 3703 | *-*-netbsd*) |
71ab34df | 3704 | ;; |
634f7a13 | 3705 | *-*-netware*) |
71ab34df | 3706 | ;; |
3707 | *-*-rtems*) | |
f24be480 | 3708 | noconfigdirs="$noconfigdirs target-libgloss" |
d781ea5c | 3709 | # this is not caught below because this stanza matches earlier |
3710 | case $target in | |
3711 | or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;; | |
3712 | esac | |
71ab34df | 3713 | ;; |
9f88bc9d | 3714 | # The tpf target doesn't support gdb yet. |
3715 | *-*-tpf*) | |
d556f192 | 3716 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
9f88bc9d | 3717 | ;; |
688429c4 | 3718 | *-*-uclinux*) |
d556f192 | 3719 | noconfigdirs="$noconfigdirs target-rda" |
688429c4 | 3720 | ;; |
71ab34df | 3721 | *-*-vxworks*) |
71ab34df | 3722 | ;; |
3723 | alpha*-dec-osf*) | |
3724 | # ld works, but does not support shared libraries. | |
71ab34df | 3725 | # gas doesn't generate exception information. |
d556f192 | 3726 | noconfigdirs="$noconfigdirs gas ld" |
71ab34df | 3727 | ;; |
3728 | alpha*-*-*vms*) | |
f24be480 | 3729 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
71ab34df | 3730 | ;; |
71ab34df | 3731 | alpha*-*-*) |
3732 | # newlib is not 64 bit ready | |
f24be480 | 3733 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
71ab34df | 3734 | ;; |
71ab34df | 3735 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
f843f075 | 3736 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
71ab34df | 3737 | ;; |
3c867e46 | 3738 | arc-*-*|arceb-*-*) |
17b3d2a8 | 3739 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3740 | ;; |
71ab34df | 3741 | arm-*-pe*) |
f24be480 | 3742 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3743 | ;; |
71ab34df | 3744 | arm-*-riscix*) |
71559dce | 3745 | noconfigdirs="$noconfigdirs ld target-libgloss" |
71ab34df | 3746 | ;; |
fd28e216 | 3747 | avr-*-rtems*) |
3748 | ;; | |
3749 | avr-*-*) | |
3750 | if test x${with_avrlibc} != xno; then | |
3751 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3752 | fi | |
3753 | ;; | |
71ab34df | 3754 | c4x-*-* | tic4x-*-*) |
71559dce | 3755 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3756 | ;; |
71559dce | 3757 | tic54x-*-*) |
3758 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
71ab34df | 3759 | ;; |
71ab34df | 3760 | d10v-*-*) |
71559dce | 3761 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3762 | ;; |
3763 | d30v-*-*) | |
71559dce | 3764 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3765 | ;; |
3766 | fr30-*-elf*) | |
f24be480 | 3767 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3768 | ;; |
6406d366 | 3769 | ft32-*-*) |
3770 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3771 | ;; | |
ca2751b6 | 3772 | moxie-*-*) |
6406d366 | 3773 | noconfigdirs="$noconfigdirs" |
ca2751b6 | 3774 | ;; |
71ab34df | 3775 | h8300*-*-*) |
f24be480 | 3776 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3777 | ;; |
3778 | h8500-*-*) | |
71559dce | 3779 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3780 | ;; |
e8eddfdd | 3781 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
e8eddfdd | 3782 | ;; |
6406d366 | 3783 | hppa*64*-*-hpux*) |
3784 | noconfigdirs="$noconfigdirs gdb" | |
3785 | ;; | |
3786 | hppa*-*-hpux11*) | |
3787 | noconfigdirs="$noconfigdirs gdb ld" | |
3788 | ;; | |
6bd59761 | 3789 | hppa*64*-*-linux*) |
71ab34df | 3790 | ;; |
99684e84 | 3791 | hppa*-*-linux*) |
08261f02 | 3792 | ;; |
71ab34df | 3793 | hppa*-*-*elf* | \ |
71ab34df | 3794 | hppa*-*-lites* | \ |
3795 | hppa*-*-openbsd* | \ | |
3796 | hppa*64*-*-*) | |
71ab34df | 3797 | ;; |
1c5767f1 | 3798 | hppa*-*-pro*) |
1c5767f1 | 3799 | ;; |
71ab34df | 3800 | hppa*-*-*) |
f24be480 | 3801 | noconfigdirs="$noconfigdirs ld" |
71ab34df | 3802 | ;; |
4a9237fb | 3803 | i960-*-*) |
71559dce | 3804 | noconfigdirs="$noconfigdirs gdb" |
4a9237fb | 3805 | ;; |
71ab34df | 3806 | ia64*-*-elf*) |
3807 | # No gdb support yet. | |
6c9785b4 | 3808 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
71ab34df | 3809 | ;; |
3810 | ia64*-**-hpux*) | |
1aca86a6 | 3811 | # No ld support yet. |
6406d366 | 3812 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
71ab34df | 3813 | ;; |
8408ca00 | 3814 | ia64*-*-*vms*) |
3211401d | 3815 | # No ld support yet. |
3816 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
8408ca00 | 3817 | ;; |
ec2eb8fb | 3818 | i[3456789]86-w64-mingw*) |
ec2eb8fb | 3819 | ;; |
3820 | i[3456789]86-*-mingw*) | |
d6d689df | 3821 | target_configdirs="$target_configdirs target-winsup" |
b30fcfae | 3822 | ;; |
71ab34df | 3823 | *-*-cygwin*) |
3824 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
6c9785b4 | 3825 | noconfigdirs="$noconfigdirs target-libgloss" |
2c10944d | 3826 | # always build newlib if winsup directory is present. |
d6d689df | 3827 | if test -d "$srcdir/winsup/cygwin"; then |
2c10944d | 3828 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
e8eddfdd | 3829 | elif test -d "$srcdir/newlib"; then |
d6d689df | 3830 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
2c10944d | 3831 | fi |
b30fcfae | 3832 | ;; |
f74ea578 | 3833 | i[3456789]86-*-pe) |
17b3d2a8 | 3834 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3835 | ;; |
f74ea578 | 3836 | i[3456789]86-*-sco3.2v5*) |
71ab34df | 3837 | # The linker does not yet know about weak symbols in COFF, |
3838 | # and is not configured to handle mixed ELF and COFF. | |
71559dce | 3839 | noconfigdirs="$noconfigdirs ld target-libgloss" |
71ab34df | 3840 | ;; |
f74ea578 | 3841 | i[3456789]86-*-sco*) |
71559dce | 3842 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
71ab34df | 3843 | ;; |
14f27bc6 | 3844 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
71ab34df | 3845 | noconfigdirs="$noconfigdirs target-libgloss" |
3846 | ;; | |
f74ea578 | 3847 | i[3456789]86-*-sysv4*) |
71559dce | 3848 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3849 | ;; |
f74ea578 | 3850 | i[3456789]86-*-beos*) |
d556f192 | 3851 | noconfigdirs="$noconfigdirs gdb" |
602d002b | 3852 | ;; |
ab0da556 | 3853 | i[3456789]86-*-rdos*) |
d556f192 | 3854 | noconfigdirs="$noconfigdirs gdb" |
1c5767f1 | 3855 | ;; |
71ab34df | 3856 | mmix-*-*) |
f24be480 | 3857 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3858 | ;; |
957985d9 | 3859 | mt-*-*) |
f6fa11cb | 3860 | noconfigdirs="$noconfigdirs sim" |
3861 | ;; | |
71ab34df | 3862 | powerpc-*-aix*) |
3863 | # copied from rs6000-*-* entry | |
d556f192 | 3864 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3865 | ;; |
6bd59761 | 3866 | powerpc*-*-winnt* | powerpc*-*-pe*) |
71ab34df | 3867 | target_configdirs="$target_configdirs target-winsup" |
71559dce | 3868 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
71ab34df | 3869 | # always build newlib. |
3870 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3871 | ;; | |
3872 | # This is temporary until we can link against shared libraries | |
3873 | powerpcle-*-solaris*) | |
71559dce | 3874 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
71ab34df | 3875 | ;; |
3876 | powerpc-*-beos*) | |
d556f192 | 3877 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3878 | ;; |
71ab34df | 3879 | rs6000-*-lynxos*) |
d556f192 | 3880 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3881 | ;; |
3882 | rs6000-*-aix*) | |
d556f192 | 3883 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3884 | ;; |
3885 | rs6000-*-*) | |
f24be480 | 3886 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3887 | ;; |
3888 | m68k-apollo-*) | |
71559dce | 3889 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
71ab34df | 3890 | ;; |
ba2b484f | 3891 | microblaze*) |
f24be480 | 3892 | noconfigdirs="$noconfigdirs gprof" |
ba2b484f | 3893 | ;; |
d781ea5c | 3894 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
68c9bc25 | 3895 | if test x$with_newlib = xyes; then |
3896 | noconfigdirs="$noconfigdirs gprof" | |
3897 | fi | |
68c9bc25 | 3898 | ;; |
71ab34df | 3899 | mips*-*-irix5*) |
71559dce | 3900 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
71ab34df | 3901 | ;; |
3902 | mips*-*-irix6*) | |
f24be480 | 3903 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
71ab34df | 3904 | ;; |
71ab34df | 3905 | mips*-*-bsd*) |
d6449910 | 3906 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
71ab34df | 3907 | ;; |
71ab34df | 3908 | mips*-*-linux*) |
71ab34df | 3909 | ;; |
d6449910 | 3910 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3911 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3912 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3913 | ;; | |
71ab34df | 3914 | mips*-*-*) |
f24be480 | 3915 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3916 | ;; |
d781ea5c | 3917 | nds32*-*-*) |
3918 | noconfigdirs="$noconfigdirs gdb" | |
3919 | ;; | |
8ce80784 | 3920 | nvptx*-*-*) |
8ce80784 | 3921 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3922 | ;; | |
d781ea5c | 3923 | or1k*-*-*) |
3924 | noconfigdirs="$noconfigdirs gdb" | |
3925 | ;; | |
33974778 | 3926 | sh-*-* | sh64-*-*) |
39f6b116 | 3927 | case "${target}" in |
3928 | sh*-*-elf) | |
f24be480 | 3929 | ;; |
39f6b116 | 3930 | *) |
f24be480 | 3931 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
39f6b116 | 3932 | esac |
71ab34df | 3933 | ;; |
71ab34df | 3934 | sparc-*-sunos4*) |
d556f192 | 3935 | if test x${is_cross_compiler} = xno ; then |
71ab34df | 3936 | use_gnu_ld=no |
3937 | fi | |
3938 | ;; | |
fa0a53e3 | 3939 | tic6x-*-*) |
ccdfa490 | 3940 | noconfigdirs="$noconfigdirs sim" |
fa0a53e3 | 3941 | ;; |
2da35515 | 3942 | tilepro*-*-* | tilegx*-*-*) |
e5fa74b2 | 3943 | noconfigdirs="$noconfigdirs sim" |
3944 | ;; | |
71ab34df | 3945 | v810-*-*) |
71559dce | 3946 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
71ab34df | 3947 | ;; |
3948 | vax-*-*) | |
f24be480 | 3949 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
71ab34df | 3950 | ;; |
71ab34df | 3951 | esac |
a8298541 | 3952 | |
71ab34df | 3953 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3954 | # depends upon some newlib header files. | |
3955 | case "${noconfigdirs}" in | |
3956 | *target-libgloss*) ;; | |
3957 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3958 | esac | |
3959 | ||
71ab34df | 3960 | # Work in distributions that contain no compiler tools, like Autoconf. |
71ab34df | 3961 | host_makefile_frag=/dev/null |
3962 | if test -d ${srcdir}/config ; then | |
3963 | case "${host}" in | |
f74ea578 | 3964 | i[3456789]86-*-msdosdjgpp*) |
71ab34df | 3965 | host_makefile_frag="config/mh-djgpp" |
3966 | ;; | |
3967 | *-cygwin*) | |
45043b2b | 3968 | |
cd9a469c | 3969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3970 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
45043b2b | 3971 | echo a >cygwin-cat-check |
82d97a59 | 3972 | if test `cat cygwin-cat-check` = a ; then |
45043b2b | 3973 | rm cygwin-cat-check |
cd9a469c | 3974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3975 | $as_echo "yes" >&6; } | |
45043b2b | 3976 | else |
3977 | rm cygwin-cat-check | |
cd9a469c | 3978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3979 | $as_echo "no" >&6; } | |
3980 | as_fn_error "The cat command does not ignore carriage return characters. | |
45043b2b | 3981 | Please either mount the build directory in binary mode or run the following |
3982 | commands before running any configure script: | |
3983 | set -o igncr | |
3984 | export SHELLOPTS | |
cd9a469c | 3985 | " "$LINENO" 5 |
45043b2b | 3986 | fi |
3987 | ||
71ab34df | 3988 | host_makefile_frag="config/mh-cygwin" |
3989 | ;; | |
5a92bcc2 | 3990 | *-mingw*) |
70d8e49e | 3991 | host_makefile_frag="config/mh-mingw" |
a378fc89 | 3992 | ;; |
bed3355c | 3993 | alpha*-linux*) |
539ded76 | 3994 | host_makefile_frag="config/mh-alpha-linux" |
3995 | ;; | |
d2b94e36 | 3996 | hppa*-hp-hpux10*) |
d2b94e36 | 3997 | host_makefile_frag="config/mh-pa-hpux10" |
71ab34df | 3998 | ;; |
b2240ff6 | 3999 | hppa*-hp-hpux*) |
d2b94e36 | 4000 | host_makefile_frag="config/mh-pa" |
4001 | ;; | |
4002 | hppa*-*) | |
4003 | host_makefile_frag="config/mh-pa" | |
4004 | ;; | |
16463c8d | 4005 | *-*-darwin*) |
4006 | host_makefile_frag="config/mh-darwin" | |
0222d984 | 4007 | ;; |
9d44a802 | 4008 | powerpc-*-aix*) |
4009 | host_makefile_frag="config/mh-ppc-aix" | |
4010 | ;; | |
4011 | rs6000-*-aix*) | |
4012 | host_makefile_frag="config/mh-ppc-aix" | |
4013 | ;; | |
71ab34df | 4014 | esac |
4015 | fi | |
4016 | ||
8e1fea1a | 4017 | if test "${build}" != "${host}" ; then |
93c5e793 | 4018 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4019 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
8e1fea1a | 4020 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
93c5e793 | 4021 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
4022 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
4023 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
5ff5b630 | 4024 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
93c5e793 | 4025 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4026 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4027 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4028 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4029 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4030 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4031 | else | |
4032 | AR_FOR_BUILD="\$(AR)" | |
4033 | AS_FOR_BUILD="\$(AS)" | |
a4af6a58 | 4034 | CC_FOR_BUILD="\$(CC)" |
93c5e793 | 4035 | CXX_FOR_BUILD="\$(CXX)" |
4036 | GCJ_FOR_BUILD="\$(GCJ)" | |
4037 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
5ff5b630 | 4038 | GOC_FOR_BUILD="\$(GOC)" |
93c5e793 | 4039 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4040 | LD_FOR_BUILD="\$(LD)" | |
4041 | NM_FOR_BUILD="\$(NM)" | |
4042 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4043 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4044 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
eae5b2bc | 4045 | fi |
4046 | ||
4047 | ac_ext=c | |
b30fcfae | 4048 | ac_cpp='$CPP $CPPFLAGS' |
4049 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4050 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4051 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4052 | if test -n "$ac_tool_prefix"; then | |
4053 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4054 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
cd9a469c | 4055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4056 | $as_echo_n "checking for $ac_word... " >&6; } | |
4057 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4058 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 4059 | else |
4060 | if test -n "$CC"; then | |
4061 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4062 | else | |
4063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4064 | for as_dir in $PATH | |
4065 | do | |
4066 | IFS=$as_save_IFS | |
4067 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4068 | for ac_exec_ext in '' $ac_executable_extensions; do |
4069 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4070 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
cd9a469c | 4071 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4072 | break 2 |
4073 | fi | |
4074 | done | |
cd9a469c | 4075 | done |
4076 | IFS=$as_save_IFS | |
b30fcfae | 4077 | |
4078 | fi | |
4079 | fi | |
4080 | CC=$ac_cv_prog_CC | |
4081 | if test -n "$CC"; then | |
cd9a469c | 4082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4083 | $as_echo "$CC" >&6; } | |
b30fcfae | 4084 | else |
cd9a469c | 4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4086 | $as_echo "no" >&6; } | |
b30fcfae | 4087 | fi |
4088 | ||
cd9a469c | 4089 | |
b30fcfae | 4090 | fi |
4091 | if test -z "$ac_cv_prog_CC"; then | |
4092 | ac_ct_CC=$CC | |
a4af6a58 | 4093 | # Extract the first word of "gcc", so it can be a program name with args. |
4094 | set dummy gcc; ac_word=$2 | |
cd9a469c | 4095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4096 | $as_echo_n "checking for $ac_word... " >&6; } | |
4097 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4098 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 4099 | else |
4100 | if test -n "$ac_ct_CC"; then | |
4101 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4102 | else | |
4103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4104 | for as_dir in $PATH | |
4105 | do | |
4106 | IFS=$as_save_IFS | |
4107 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4108 | for ac_exec_ext in '' $ac_executable_extensions; do |
4109 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4110 | ac_cv_prog_ac_ct_CC="gcc" |
cd9a469c | 4111 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4112 | break 2 |
4113 | fi | |
4114 | done | |
cd9a469c | 4115 | done |
4116 | IFS=$as_save_IFS | |
b30fcfae | 4117 | |
4118 | fi | |
4119 | fi | |
4120 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4121 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 4122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4123 | $as_echo "$ac_ct_CC" >&6; } | |
b30fcfae | 4124 | else |
cd9a469c | 4125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4126 | $as_echo "no" >&6; } | |
b30fcfae | 4127 | fi |
4128 | ||
cd9a469c | 4129 | if test "x$ac_ct_CC" = x; then |
4130 | CC="" | |
4131 | else | |
4132 | case $cross_compiling:$ac_tool_warned in | |
4133 | yes:) | |
4134 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4135 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4136 | ac_tool_warned=yes ;; | |
4137 | esac | |
4138 | CC=$ac_ct_CC | |
4139 | fi | |
b30fcfae | 4140 | else |
4141 | CC="$ac_cv_prog_CC" | |
4142 | fi | |
4143 | ||
4144 | if test -z "$CC"; then | |
cd9a469c | 4145 | if test -n "$ac_tool_prefix"; then |
4146 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b30fcfae | 4147 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
cd9a469c | 4148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4149 | $as_echo_n "checking for $ac_word... " >&6; } | |
4150 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4151 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 4152 | else |
4153 | if test -n "$CC"; then | |
4154 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4155 | else | |
b30fcfae | 4156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4157 | for as_dir in $PATH | |
4158 | do | |
4159 | IFS=$as_save_IFS | |
4160 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4161 | for ac_exec_ext in '' $ac_executable_extensions; do |
4162 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4163 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
cd9a469c | 4164 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4165 | break 2 |
4166 | fi | |
4167 | done | |
cd9a469c | 4168 | done |
4169 | IFS=$as_save_IFS | |
b30fcfae | 4170 | |
a83ffacf | 4171 | fi |
a83ffacf | 4172 | fi |
b30fcfae | 4173 | CC=$ac_cv_prog_CC |
ae48753c | 4174 | if test -n "$CC"; then |
cd9a469c | 4175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4176 | $as_echo "$CC" >&6; } | |
5084f823 | 4177 | else |
cd9a469c | 4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4179 | $as_echo "no" >&6; } | |
5084f823 | 4180 | fi |
4181 | ||
5084f823 | 4182 | |
cd9a469c | 4183 | fi |
b30fcfae | 4184 | fi |
8e1fea1a | 4185 | if test -z "$CC"; then |
4186 | # Extract the first word of "cc", so it can be a program name with args. | |
4187 | set dummy cc; ac_word=$2 | |
cd9a469c | 4188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4189 | $as_echo_n "checking for $ac_word... " >&6; } | |
4190 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4191 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 4192 | else |
4193 | if test -n "$CC"; then | |
4194 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4195 | else | |
a83ffacf | 4196 | ac_prog_rejected=no |
b30fcfae | 4197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4198 | for as_dir in $PATH | |
4199 | do | |
4200 | IFS=$as_save_IFS | |
4201 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4202 | for ac_exec_ext in '' $ac_executable_extensions; do |
4203 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4204 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4205 | ac_prog_rejected=yes | |
4206 | continue | |
4207 | fi | |
4208 | ac_cv_prog_CC="cc" | |
cd9a469c | 4209 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4210 | break 2 |
4211 | fi | |
4212 | done | |
cd9a469c | 4213 | done |
4214 | IFS=$as_save_IFS | |
b30fcfae | 4215 | |
8e1fea1a | 4216 | if test $ac_prog_rejected = yes; then |
4217 | # We found a bogon in the path, so make sure we never use it. | |
4218 | set dummy $ac_cv_prog_CC | |
4219 | shift | |
b30fcfae | 4220 | if test $# != 0; then |
8e1fea1a | 4221 | # We chose a different compiler from the bogus one. |
4222 | # However, it has the same basename, so the bogon will be chosen | |
4223 | # first if we set CC to just the basename; use the full file name. | |
4224 | shift | |
b30fcfae | 4225 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
8e1fea1a | 4226 | fi |
4227 | fi | |
4228 | fi | |
4229 | fi | |
b30fcfae | 4230 | CC=$ac_cv_prog_CC |
8e1fea1a | 4231 | if test -n "$CC"; then |
cd9a469c | 4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4233 | $as_echo "$CC" >&6; } | |
8e1fea1a | 4234 | else |
cd9a469c | 4235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4236 | $as_echo "no" >&6; } | |
8e1fea1a | 4237 | fi |
4238 | ||
cd9a469c | 4239 | |
b30fcfae | 4240 | fi |
4241 | if test -z "$CC"; then | |
4242 | if test -n "$ac_tool_prefix"; then | |
cd9a469c | 4243 | for ac_prog in cl.exe |
b30fcfae | 4244 | do |
4245 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4246 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 4247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4248 | $as_echo_n "checking for $ac_word... " >&6; } | |
4249 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4250 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 4251 | else |
4252 | if test -n "$CC"; then | |
4253 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4254 | else | |
b30fcfae | 4255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4256 | for as_dir in $PATH | |
4257 | do | |
4258 | IFS=$as_save_IFS | |
4259 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4260 | for ac_exec_ext in '' $ac_executable_extensions; do |
4261 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4262 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
cd9a469c | 4263 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4264 | break 2 |
4265 | fi | |
4266 | done | |
cd9a469c | 4267 | done |
4268 | IFS=$as_save_IFS | |
b30fcfae | 4269 | |
8e1fea1a | 4270 | fi |
4271 | fi | |
b30fcfae | 4272 | CC=$ac_cv_prog_CC |
8e1fea1a | 4273 | if test -n "$CC"; then |
cd9a469c | 4274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4275 | $as_echo "$CC" >&6; } | |
b1660f25 | 4276 | else |
cd9a469c | 4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4278 | $as_echo "no" >&6; } | |
a4af6a58 | 4279 | fi |
ae48753c | 4280 | |
cd9a469c | 4281 | |
b30fcfae | 4282 | test -n "$CC" && break |
4283 | done | |
ae48753c | 4284 | fi |
b30fcfae | 4285 | if test -z "$CC"; then |
4286 | ac_ct_CC=$CC | |
cd9a469c | 4287 | for ac_prog in cl.exe |
b30fcfae | 4288 | do |
4289 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4290 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 4291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4292 | $as_echo_n "checking for $ac_word... " >&6; } | |
4293 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4294 | $as_echo_n "(cached) " >&6 | |
a83ffacf | 4295 | else |
b30fcfae | 4296 | if test -n "$ac_ct_CC"; then |
4297 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
a83ffacf | 4298 | else |
b30fcfae | 4299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4300 | for as_dir in $PATH | |
4301 | do | |
4302 | IFS=$as_save_IFS | |
4303 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4304 | for ac_exec_ext in '' $ac_executable_extensions; do |
4305 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4306 | ac_cv_prog_ac_ct_CC="$ac_prog" |
cd9a469c | 4307 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4308 | break 2 |
4309 | fi | |
4310 | done | |
cd9a469c | 4311 | done |
4312 | IFS=$as_save_IFS | |
b30fcfae | 4313 | |
ae48753c | 4314 | fi |
4315 | fi | |
b30fcfae | 4316 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4317 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 4318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4319 | $as_echo "$ac_ct_CC" >&6; } | |
a4af6a58 | 4320 | else |
cd9a469c | 4321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4322 | $as_echo "no" >&6; } | |
ae48753c | 4323 | fi |
a83ffacf | 4324 | |
cd9a469c | 4325 | |
b30fcfae | 4326 | test -n "$ac_ct_CC" && break |
4327 | done | |
4328 | ||
cd9a469c | 4329 | if test "x$ac_ct_CC" = x; then |
4330 | CC="" | |
4331 | else | |
4332 | case $cross_compiling:$ac_tool_warned in | |
4333 | yes:) | |
4334 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4335 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4336 | ac_tool_warned=yes ;; | |
4337 | esac | |
4338 | CC=$ac_ct_CC | |
4339 | fi | |
b30fcfae | 4340 | fi |
4341 | ||
4342 | fi | |
4343 | ||
4344 | ||
cd9a469c | 4345 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4346 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4347 | as_fn_error "no acceptable C compiler found in \$PATH | |
4348 | See \`config.log' for more details." "$LINENO" 5; } | |
b30fcfae | 4349 | |
4350 | # Provide some information about the compiler. | |
cd9a469c | 4351 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4352 | set X $ac_compile | |
4353 | ac_compiler=$2 | |
4354 | for ac_option in --version -v -V -qversion; do | |
4355 | { { ac_try="$ac_compiler $ac_option >&5" | |
4356 | case "(($ac_try" in | |
4357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4358 | *) ac_try_echo=$ac_try;; | |
4359 | esac | |
4360 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4361 | $as_echo "$ac_try_echo"; } >&5 | |
4362 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b30fcfae | 4363 | ac_status=$? |
cd9a469c | 4364 | if test -s conftest.err; then |
4365 | sed '10a\ | |
4366 | ... rest of stderr output deleted ... | |
4367 | 10q' conftest.err >conftest.er1 | |
4368 | cat conftest.er1 >&5 | |
4369 | rm -f conftest.er1 conftest.err | |
4370 | fi | |
4371 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4372 | test $ac_status = 0; } | |
4373 | done | |
b30fcfae | 4374 | |
cd9a469c | 4375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4376 | /* end confdefs.h. */ |
4377 | ||
4378 | int | |
4379 | main () | |
4380 | { | |
4381 | ||
4382 | ; | |
4383 | return 0; | |
4384 | } | |
4385 | _ACEOF | |
4386 | ac_clean_files_save=$ac_clean_files | |
cd9a469c | 4387 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
b30fcfae | 4388 | # Try to create an executable without -o first, disregard a.out. |
4389 | # It will help us diagnose broken compilers, and finding out an intuition | |
4390 | # of exeext. | |
cd9a469c | 4391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4392 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4393 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4394 | ||
4395 | # The possible output files: | |
4396 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4397 | ||
4398 | ac_rmfiles= | |
4399 | for ac_file in $ac_files | |
4400 | do | |
4401 | case $ac_file in | |
4402 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4403 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4404 | esac | |
4405 | done | |
4406 | rm -f $ac_rmfiles | |
4407 | ||
4408 | if { { ac_try="$ac_link_default" | |
4409 | case "(($ac_try" in | |
4410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4411 | *) ac_try_echo=$ac_try;; | |
4412 | esac | |
4413 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4414 | $as_echo "$ac_try_echo"; } >&5 | |
4415 | (eval "$ac_link_default") 2>&5 | |
b30fcfae | 4416 | ac_status=$? |
cd9a469c | 4417 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4418 | test $ac_status = 0; }; then : | |
4419 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4420 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4421 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4422 | # so that the user can short-circuit this test for compilers unknown to | |
4423 | # Autoconf. | |
4424 | for ac_file in $ac_files '' | |
b30fcfae | 4425 | do |
4426 | test -f "$ac_file" || continue | |
4427 | case $ac_file in | |
cd9a469c | 4428 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b30fcfae | 4429 | ;; |
4430 | [ab].out ) | |
4431 | # We found the default executable, but exeext='' is most | |
4432 | # certainly right. | |
4433 | break;; | |
4434 | *.* ) | |
cd9a469c | 4435 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4436 | then :; else | |
4437 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4438 | fi | |
4439 | # We set ac_cv_exeext here because the later test for it is not | |
4440 | # safe: cross compilers may not add the suffix if given an `-o' | |
4441 | # argument, so we may need to know it at that point already. | |
4442 | # Even if this section looks crufty: it has the advantage of | |
4443 | # actually working. | |
b30fcfae | 4444 | break;; |
4445 | * ) | |
4446 | break;; | |
4447 | esac | |
4448 | done | |
cd9a469c | 4449 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4450 | ||
b30fcfae | 4451 | else |
cd9a469c | 4452 | ac_file='' |
4453 | fi | |
4454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4455 | $as_echo "$ac_file" >&6; } | |
4456 | if test -z "$ac_file"; then : | |
4457 | $as_echo "$as_me: failed program was:" >&5 | |
b30fcfae | 4458 | sed 's/^/| /' conftest.$ac_ext >&5 |
4459 | ||
cd9a469c | 4460 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4461 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4462 | { as_fn_set_status 77 | |
4463 | as_fn_error "C compiler cannot create executables | |
4464 | See \`config.log' for more details." "$LINENO" 5; }; } | |
b30fcfae | 4465 | fi |
b30fcfae | 4466 | ac_exeext=$ac_cv_exeext |
b30fcfae | 4467 | |
cd9a469c | 4468 | # Check that the compiler produces executables we can run. If not, either |
b30fcfae | 4469 | # the compiler is broken, or we cross compile. |
cd9a469c | 4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4471 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
b30fcfae | 4472 | # If not cross compiling, check that we can run a simple program. |
4473 | if test "$cross_compiling" != yes; then | |
4474 | if { ac_try='./$ac_file' | |
cd9a469c | 4475 | { { case "(($ac_try" in |
4476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4477 | *) ac_try_echo=$ac_try;; | |
4478 | esac | |
4479 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4480 | $as_echo "$ac_try_echo"; } >&5 | |
4481 | (eval "$ac_try") 2>&5 | |
b30fcfae | 4482 | ac_status=$? |
cd9a469c | 4483 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4484 | test $ac_status = 0; }; }; then | |
b30fcfae | 4485 | cross_compiling=no |
4486 | else | |
4487 | if test "$cross_compiling" = maybe; then | |
4488 | cross_compiling=yes | |
4489 | else | |
cd9a469c | 4490 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4491 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4492 | as_fn_error "cannot run C compiled programs. | |
b30fcfae | 4493 | If you meant to cross compile, use \`--host'. |
cd9a469c | 4494 | See \`config.log' for more details." "$LINENO" 5; } |
b30fcfae | 4495 | fi |
4496 | fi | |
4497 | fi | |
cd9a469c | 4498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4499 | $as_echo "yes" >&6; } | |
b30fcfae | 4500 | |
cd9a469c | 4501 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
b30fcfae | 4502 | ac_clean_files=$ac_clean_files_save |
cd9a469c | 4503 | # Check that the compiler produces executables we can run. If not, either |
b30fcfae | 4504 | # the compiler is broken, or we cross compile. |
cd9a469c | 4505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4506 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4508 | $as_echo "$cross_compiling" >&6; } | |
4509 | ||
4510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4511 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4512 | if { { ac_try="$ac_link" | |
4513 | case "(($ac_try" in | |
4514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4515 | *) ac_try_echo=$ac_try;; | |
4516 | esac | |
4517 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4518 | $as_echo "$ac_try_echo"; } >&5 | |
4519 | (eval "$ac_link") 2>&5 | |
b30fcfae | 4520 | ac_status=$? |
cd9a469c | 4521 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4522 | test $ac_status = 0; }; then : | |
b30fcfae | 4523 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4524 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4525 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4526 | # `rm'. | |
4527 | for ac_file in conftest.exe conftest conftest.*; do | |
4528 | test -f "$ac_file" || continue | |
4529 | case $ac_file in | |
cd9a469c | 4530 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b30fcfae | 4531 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b30fcfae | 4532 | break;; |
4533 | * ) break;; | |
4534 | esac | |
4535 | done | |
ae48753c | 4536 | else |
cd9a469c | 4537 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4538 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4539 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4540 | See \`config.log' for more details." "$LINENO" 5; } | |
b30fcfae | 4541 | fi |
b30fcfae | 4542 | rm -f conftest$ac_cv_exeext |
cd9a469c | 4543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4544 | $as_echo "$ac_cv_exeext" >&6; } | |
b30fcfae | 4545 | |
4546 | rm -f conftest.$ac_ext | |
4547 | EXEEXT=$ac_cv_exeext | |
4548 | ac_exeext=$EXEEXT | |
cd9a469c | 4549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4550 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4551 | if test "${ac_cv_objext+set}" = set; then : | |
4552 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 4553 | else |
cd9a469c | 4554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4555 | /* end confdefs.h. */ |
4556 | ||
4557 | int | |
4558 | main () | |
4559 | { | |
4560 | ||
4561 | ; | |
4562 | return 0; | |
4563 | } | |
4564 | _ACEOF | |
4565 | rm -f conftest.o conftest.obj | |
cd9a469c | 4566 | if { { ac_try="$ac_compile" |
4567 | case "(($ac_try" in | |
4568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4569 | *) ac_try_echo=$ac_try;; | |
4570 | esac | |
4571 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4572 | $as_echo "$ac_try_echo"; } >&5 | |
4573 | (eval "$ac_compile") 2>&5 | |
b30fcfae | 4574 | ac_status=$? |
cd9a469c | 4575 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4576 | test $ac_status = 0; }; then : | |
4577 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4578 | test -f "$ac_file" || continue; | |
b30fcfae | 4579 | case $ac_file in |
cd9a469c | 4580 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b30fcfae | 4581 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4582 | break;; | |
4583 | esac | |
4584 | done | |
4585 | else | |
cd9a469c | 4586 | $as_echo "$as_me: failed program was:" >&5 |
b30fcfae | 4587 | sed 's/^/| /' conftest.$ac_ext >&5 |
4588 | ||
cd9a469c | 4589 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4590 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4591 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4592 | See \`config.log' for more details." "$LINENO" 5; } | |
b30fcfae | 4593 | fi |
b30fcfae | 4594 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4595 | fi | |
cd9a469c | 4596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4597 | $as_echo "$ac_cv_objext" >&6; } | |
b30fcfae | 4598 | OBJEXT=$ac_cv_objext |
4599 | ac_objext=$OBJEXT | |
cd9a469c | 4600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4601 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4602 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4603 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 4604 | else |
cd9a469c | 4605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4606 | /* end confdefs.h. */ |
4607 | ||
4608 | int | |
4609 | main () | |
4610 | { | |
4611 | #ifndef __GNUC__ | |
4612 | choke me | |
4613 | #endif | |
4614 | ||
4615 | ; | |
4616 | return 0; | |
4617 | } | |
4618 | _ACEOF | |
cd9a469c | 4619 | if ac_fn_c_try_compile "$LINENO"; then : |
b30fcfae | 4620 | ac_compiler_gnu=yes |
4621 | else | |
cd9a469c | 4622 | ac_compiler_gnu=no |
b30fcfae | 4623 | fi |
cd9a469c | 4624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b30fcfae | 4625 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4626 | ||
4627 | fi | |
cd9a469c | 4628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4629 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4630 | if test $ac_compiler_gnu = yes; then | |
4631 | GCC=yes | |
4632 | else | |
4633 | GCC= | |
4634 | fi | |
b30fcfae | 4635 | ac_test_CFLAGS=${CFLAGS+set} |
4636 | ac_save_CFLAGS=$CFLAGS | |
cd9a469c | 4637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4638 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4639 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4640 | $as_echo_n "(cached) " >&6 | |
4641 | else | |
4642 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4643 | ac_c_werror_flag=yes | |
4644 | ac_cv_prog_cc_g=no | |
4645 | CFLAGS="-g" | |
4646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b30fcfae | 4647 | /* end confdefs.h. */ |
4648 | ||
4649 | int | |
4650 | main () | |
4651 | { | |
4652 | ||
4653 | ; | |
4654 | return 0; | |
4655 | } | |
4656 | _ACEOF | |
cd9a469c | 4657 | if ac_fn_c_try_compile "$LINENO"; then : |
8e1fea1a | 4658 | ac_cv_prog_cc_g=yes |
4659 | else | |
cd9a469c | 4660 | CFLAGS="" |
4661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4662 | /* end confdefs.h. */ | |
4663 | ||
4664 | int | |
4665 | main () | |
4666 | { | |
4667 | ||
4668 | ; | |
4669 | return 0; | |
4670 | } | |
4671 | _ACEOF | |
4672 | if ac_fn_c_try_compile "$LINENO"; then : | |
4673 | ||
4674 | else | |
4675 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4676 | CFLAGS="-g" | |
4677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4678 | /* end confdefs.h. */ | |
ae48753c | 4679 | |
cd9a469c | 4680 | int |
4681 | main () | |
4682 | { | |
4683 | ||
4684 | ; | |
4685 | return 0; | |
4686 | } | |
4687 | _ACEOF | |
4688 | if ac_fn_c_try_compile "$LINENO"; then : | |
4689 | ac_cv_prog_cc_g=yes | |
4690 | fi | |
4691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a83ffacf | 4692 | fi |
cd9a469c | 4693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b30fcfae | 4694 | fi |
cd9a469c | 4695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4696 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4697 | fi | |
4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4699 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
8e1fea1a | 4700 | if test "$ac_test_CFLAGS" = set; then |
b30fcfae | 4701 | CFLAGS=$ac_save_CFLAGS |
8e1fea1a | 4702 | elif test $ac_cv_prog_cc_g = yes; then |
4703 | if test "$GCC" = yes; then | |
4704 | CFLAGS="-g -O2" | |
4705 | else | |
4706 | CFLAGS="-g" | |
4707 | fi | |
4708 | else | |
4709 | if test "$GCC" = yes; then | |
4710 | CFLAGS="-O2" | |
4711 | else | |
4712 | CFLAGS= | |
4713 | fi | |
4714 | fi | |
cd9a469c | 4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4716 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4717 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4718 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 4719 | else |
cd9a469c | 4720 | ac_cv_prog_cc_c89=no |
b30fcfae | 4721 | ac_save_CC=$CC |
cd9a469c | 4722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4723 | /* end confdefs.h. */ |
4724 | #include <stdarg.h> | |
4725 | #include <stdio.h> | |
4726 | #include <sys/types.h> | |
4727 | #include <sys/stat.h> | |
4728 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4729 | struct buf { int x; }; | |
4730 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4731 | static char *e (p, i) | |
4732 | char **p; | |
4733 | int i; | |
4734 | { | |
4735 | return p[i]; | |
4736 | } | |
4737 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4738 | { | |
4739 | char *s; | |
4740 | va_list v; | |
4741 | va_start (v,p); | |
4742 | s = g (p, va_arg (v,int)); | |
4743 | va_end (v); | |
4744 | return s; | |
4745 | } | |
4746 | ||
4747 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4748 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4749 | These don't provoke an error unfortunately, instead are silently treated | |
cd9a469c | 4750 | as 'x'. The following induces an error, until -std is added to get |
b30fcfae | 4751 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4752 | array size at least. It's necessary to write '\x00'==0 to get something | |
cd9a469c | 4753 | that's true only with -std. */ |
b30fcfae | 4754 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4755 | ||
cd9a469c | 4756 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4757 | inside strings and character constants. */ | |
4758 | #define FOO(x) 'x' | |
4759 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4760 | ||
b30fcfae | 4761 | int test (int i, double x); |
4762 | struct s1 {int (*f) (int a);}; | |
4763 | struct s2 {int (*f) (double a);}; | |
4764 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4765 | int argc; | |
4766 | char **argv; | |
4767 | int | |
4768 | main () | |
4769 | { | |
4770 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4771 | ; | |
4772 | return 0; | |
4773 | } | |
4774 | _ACEOF | |
cd9a469c | 4775 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4776 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b30fcfae | 4777 | do |
4778 | CC="$ac_save_CC $ac_arg" | |
cd9a469c | 4779 | if ac_fn_c_try_compile "$LINENO"; then : |
4780 | ac_cv_prog_cc_c89=$ac_arg | |
b30fcfae | 4781 | fi |
cd9a469c | 4782 | rm -f core conftest.err conftest.$ac_objext |
4783 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b30fcfae | 4784 | done |
cd9a469c | 4785 | rm -f conftest.$ac_ext |
b30fcfae | 4786 | CC=$ac_save_CC |
4787 | ||
4788 | fi | |
cd9a469c | 4789 | # AC_CACHE_VAL |
4790 | case "x$ac_cv_prog_cc_c89" in | |
4791 | x) | |
4792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4793 | $as_echo "none needed" >&6; } ;; | |
4794 | xno) | |
4795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4796 | $as_echo "unsupported" >&6; } ;; | |
b30fcfae | 4797 | *) |
cd9a469c | 4798 | CC="$CC $ac_cv_prog_cc_c89" |
4799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4800 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b30fcfae | 4801 | esac |
cd9a469c | 4802 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b30fcfae | 4803 | |
5084f823 | 4804 | fi |
4805 | ||
5084f823 | 4806 | ac_ext=c |
4807 | ac_cpp='$CPP $CPPFLAGS' | |
4808 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4809 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4810 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4811 | ||
cd9a469c | 4812 | ac_ext=cpp |
5084f823 | 4813 | ac_cpp='$CXXCPP $CPPFLAGS' |
4814 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4815 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4816 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
cd9a469c | 4817 | if test -z "$CXX"; then |
4818 | if test -n "$CCC"; then | |
4819 | CXX=$CCC | |
4820 | else | |
4821 | if test -n "$ac_tool_prefix"; then | |
4822 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5084f823 | 4823 | do |
4824 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4825 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 4826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4827 | $as_echo_n "checking for $ac_word... " >&6; } | |
4828 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4829 | $as_echo_n "(cached) " >&6 | |
5084f823 | 4830 | else |
4831 | if test -n "$CXX"; then | |
4832 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4833 | else | |
4834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4835 | for as_dir in $PATH | |
4836 | do | |
4837 | IFS=$as_save_IFS | |
4838 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4839 | for ac_exec_ext in '' $ac_executable_extensions; do |
4840 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5084f823 | 4841 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
cd9a469c | 4842 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5084f823 | 4843 | break 2 |
4844 | fi | |
4845 | done | |
cd9a469c | 4846 | done |
4847 | IFS=$as_save_IFS | |
8e1fea1a | 4848 | |
eae5b2bc | 4849 | fi |
4850 | fi | |
4851 | CXX=$ac_cv_prog_CXX | |
4852 | if test -n "$CXX"; then | |
cd9a469c | 4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4854 | $as_echo "$CXX" >&6; } | |
eae5b2bc | 4855 | else |
cd9a469c | 4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4857 | $as_echo "no" >&6; } | |
eae5b2bc | 4858 | fi |
4859 | ||
cd9a469c | 4860 | |
eae5b2bc | 4861 | test -n "$CXX" && break |
4862 | done | |
4863 | fi | |
4864 | if test -z "$CXX"; then | |
4865 | ac_ct_CXX=$CXX | |
cd9a469c | 4866 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
eae5b2bc | 4867 | do |
4868 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4869 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 4870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4871 | $as_echo_n "checking for $ac_word... " >&6; } | |
4872 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4873 | $as_echo_n "(cached) " >&6 | |
eae5b2bc | 4874 | else |
4875 | if test -n "$ac_ct_CXX"; then | |
4876 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4877 | else | |
4878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4879 | for as_dir in $PATH | |
4880 | do | |
4881 | IFS=$as_save_IFS | |
4882 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4883 | for ac_exec_ext in '' $ac_executable_extensions; do |
4884 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
eae5b2bc | 4885 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
cd9a469c | 4886 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
eae5b2bc | 4887 | break 2 |
4888 | fi | |
4889 | done | |
cd9a469c | 4890 | done |
4891 | IFS=$as_save_IFS | |
eae5b2bc | 4892 | |
4893 | fi | |
4894 | fi | |
4895 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4896 | if test -n "$ac_ct_CXX"; then | |
cd9a469c | 4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4898 | $as_echo "$ac_ct_CXX" >&6; } | |
eae5b2bc | 4899 | else |
cd9a469c | 4900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4901 | $as_echo "no" >&6; } | |
eae5b2bc | 4902 | fi |
4903 | ||
cd9a469c | 4904 | |
eae5b2bc | 4905 | test -n "$ac_ct_CXX" && break |
4906 | done | |
eae5b2bc | 4907 | |
cd9a469c | 4908 | if test "x$ac_ct_CXX" = x; then |
4909 | CXX="g++" | |
4910 | else | |
4911 | case $cross_compiling:$ac_tool_warned in | |
4912 | yes:) | |
4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4914 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4915 | ac_tool_warned=yes ;; | |
4916 | esac | |
4917 | CXX=$ac_ct_CXX | |
4918 | fi | |
eae5b2bc | 4919 | fi |
4920 | ||
cd9a469c | 4921 | fi |
4922 | fi | |
eae5b2bc | 4923 | # Provide some information about the compiler. |
cd9a469c | 4924 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4925 | set X $ac_compile | |
4926 | ac_compiler=$2 | |
4927 | for ac_option in --version -v -V -qversion; do | |
4928 | { { ac_try="$ac_compiler $ac_option >&5" | |
4929 | case "(($ac_try" in | |
4930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4931 | *) ac_try_echo=$ac_try;; | |
4932 | esac | |
4933 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4934 | $as_echo "$ac_try_echo"; } >&5 | |
4935 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
eae5b2bc | 4936 | ac_status=$? |
cd9a469c | 4937 | if test -s conftest.err; then |
4938 | sed '10a\ | |
4939 | ... rest of stderr output deleted ... | |
4940 | 10q' conftest.err >conftest.er1 | |
4941 | cat conftest.er1 >&5 | |
4942 | rm -f conftest.er1 conftest.err | |
4943 | fi | |
4944 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4945 | test $ac_status = 0; } | |
4946 | done | |
eae5b2bc | 4947 | |
cd9a469c | 4948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4949 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4950 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4951 | $as_echo_n "(cached) " >&6 | |
eae5b2bc | 4952 | else |
cd9a469c | 4953 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eae5b2bc | 4954 | /* end confdefs.h. */ |
4955 | ||
4956 | int | |
4957 | main () | |
4958 | { | |
4959 | #ifndef __GNUC__ | |
4960 | choke me | |
4961 | #endif | |
4962 | ||
4963 | ; | |
4964 | return 0; | |
4965 | } | |
4966 | _ACEOF | |
cd9a469c | 4967 | if ac_fn_cxx_try_compile "$LINENO"; then : |
eae5b2bc | 4968 | ac_compiler_gnu=yes |
4969 | else | |
cd9a469c | 4970 | ac_compiler_gnu=no |
eae5b2bc | 4971 | fi |
cd9a469c | 4972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
eae5b2bc | 4973 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4974 | ||
4975 | fi | |
cd9a469c | 4976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4977 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4978 | if test $ac_compiler_gnu = yes; then | |
4979 | GXX=yes | |
4980 | else | |
4981 | GXX= | |
4982 | fi | |
eae5b2bc | 4983 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4984 | ac_save_CXXFLAGS=$CXXFLAGS | |
cd9a469c | 4985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4986 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4987 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4988 | $as_echo_n "(cached) " >&6 | |
4989 | else | |
4990 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4991 | ac_cxx_werror_flag=yes | |
4992 | ac_cv_prog_cxx_g=no | |
4993 | CXXFLAGS="-g" | |
4994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eae5b2bc | 4995 | /* end confdefs.h. */ |
4996 | ||
4997 | int | |
4998 | main () | |
4999 | { | |
5000 | ||
5001 | ; | |
5002 | return 0; | |
5003 | } | |
5004 | _ACEOF | |
cd9a469c | 5005 | if ac_fn_cxx_try_compile "$LINENO"; then : |
eae5b2bc | 5006 | ac_cv_prog_cxx_g=yes |
5007 | else | |
cd9a469c | 5008 | CXXFLAGS="" |
5009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eae5b2bc | 5010 | /* end confdefs.h. */ |
cd9a469c | 5011 | |
eae5b2bc | 5012 | int |
5013 | main () | |
5014 | { | |
cd9a469c | 5015 | |
eae5b2bc | 5016 | ; |
5017 | return 0; | |
5018 | } | |
5019 | _ACEOF | |
cd9a469c | 5020 | if ac_fn_cxx_try_compile "$LINENO"; then : |
2f8725b0 | 5021 | |
cd9a469c | 5022 | else |
5023 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5024 | CXXFLAGS="-g" | |
5025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eae5b2bc | 5026 | /* end confdefs.h. */ |
cd9a469c | 5027 | |
eae5b2bc | 5028 | int |
5029 | main () | |
5030 | { | |
cd9a469c | 5031 | |
eae5b2bc | 5032 | ; |
5033 | return 0; | |
5034 | } | |
5035 | _ACEOF | |
cd9a469c | 5036 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5037 | ac_cv_prog_cxx_g=yes | |
570af75a | 5038 | fi |
cd9a469c | 5039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5040 | fi | |
5041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5042 | fi | |
5043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5044 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5045 | fi | |
5046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5047 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5048 | if test "$ac_test_CXXFLAGS" = set; then | |
5049 | CXXFLAGS=$ac_save_CXXFLAGS | |
5050 | elif test $ac_cv_prog_cxx_g = yes; then | |
5051 | if test "$GXX" = yes; then | |
5052 | CXXFLAGS="-g -O2" | |
5053 | else | |
5054 | CXXFLAGS="-g" | |
5055 | fi | |
5056 | else | |
5057 | if test "$GXX" = yes; then | |
5058 | CXXFLAGS="-O2" | |
5059 | else | |
5060 | CXXFLAGS= | |
5061 | fi | |
eae5b2bc | 5062 | fi |
eae5b2bc | 5063 | ac_ext=c |
5064 | ac_cpp='$CPP $CPPFLAGS' | |
5065 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5066 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5067 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5068 | ||
5069 | ||
5070 | # We must set the default linker to the linker used by gcc for the correct | |
5071 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5072 | # set the LD default to the ld used by gcc. | |
5073 | if test -z "$LD"; then | |
5074 | if test "$GCC" = yes; then | |
5075 | case $build in | |
5076 | *-*-mingw*) | |
5077 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5078 | *) | |
5079 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5080 | esac | |
5081 | case $gcc_prog_ld in | |
5082 | # Accept absolute paths. | |
5083 | [\\/]* | [A-Za-z]:[\\/]*) | |
5084 | LD="$gcc_prog_ld" ;; | |
5085 | esac | |
5086 | fi | |
2f8725b0 | 5087 | fi |
5088 | ||
13687c85 | 5089 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5090 | have_static_libs=no | |
5091 | if test "$GCC" = yes; then | |
5092 | saved_LDFLAGS="$LDFLAGS" | |
5093 | ||
5094 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5096 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5097 | ac_ext=cpp | |
5098 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5099 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5100 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5101 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5102 | ||
5103 | ||
5104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5105 | /* end confdefs.h. */ | |
74f1ea54 | 5106 | |
5107 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5108 | #error -static-libstdc++ not implemented | |
5109 | #endif | |
13687c85 | 5110 | int main() {} |
5111 | _ACEOF | |
5112 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5114 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5115 | else | |
5116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5117 | $as_echo "no" >&6; } | |
5118 | fi | |
5119 | rm -f core conftest.err conftest.$ac_objext \ | |
5120 | conftest$ac_exeext conftest.$ac_ext | |
5121 | ac_ext=c | |
5122 | ac_cpp='$CPP $CPPFLAGS' | |
5123 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5124 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5125 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5126 | ||
5127 | ||
5128 | LDFLAGS="$saved_LDFLAGS" | |
5129 | fi | |
5130 | ||
2f8725b0 | 5131 | |
5132 | ||
8e1fea1a | 5133 | |
b30fcfae | 5134 | if test -n "$ac_tool_prefix"; then |
5135 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
8e1fea1a | 5136 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
cd9a469c | 5137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5138 | $as_echo_n "checking for $ac_word... " >&6; } | |
5139 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
5140 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 5141 | else |
5142 | if test -n "$GNATBIND"; then | |
5143 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5144 | else | |
b30fcfae | 5145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5146 | for as_dir in $PATH | |
5147 | do | |
5148 | IFS=$as_save_IFS | |
5149 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5150 | for ac_exec_ext in '' $ac_executable_extensions; do |
5151 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 5152 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
cd9a469c | 5153 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5154 | break 2 |
5155 | fi | |
5156 | done | |
cd9a469c | 5157 | done |
5158 | IFS=$as_save_IFS | |
b30fcfae | 5159 | |
8e1fea1a | 5160 | fi |
5161 | fi | |
b30fcfae | 5162 | GNATBIND=$ac_cv_prog_GNATBIND |
8e1fea1a | 5163 | if test -n "$GNATBIND"; then |
cd9a469c | 5164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5165 | $as_echo "$GNATBIND" >&6; } | |
8e1fea1a | 5166 | else |
cd9a469c | 5167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5168 | $as_echo "no" >&6; } | |
8e1fea1a | 5169 | fi |
5170 | ||
cd9a469c | 5171 | |
b30fcfae | 5172 | fi |
8e1fea1a | 5173 | if test -z "$ac_cv_prog_GNATBIND"; then |
b30fcfae | 5174 | ac_ct_GNATBIND=$GNATBIND |
8e1fea1a | 5175 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5176 | set dummy gnatbind; ac_word=$2 | |
cd9a469c | 5177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5178 | $as_echo_n "checking for $ac_word... " >&6; } | |
5179 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
5180 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 5181 | else |
b30fcfae | 5182 | if test -n "$ac_ct_GNATBIND"; then |
5183 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
8e1fea1a | 5184 | else |
b30fcfae | 5185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5186 | for as_dir in $PATH | |
5187 | do | |
5188 | IFS=$as_save_IFS | |
5189 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5190 | for ac_exec_ext in '' $ac_executable_extensions; do |
5191 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 5192 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
cd9a469c | 5193 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5194 | break 2 |
5195 | fi | |
5196 | done | |
cd9a469c | 5197 | done |
5198 | IFS=$as_save_IFS | |
b30fcfae | 5199 | |
8e1fea1a | 5200 | fi |
5201 | fi | |
b30fcfae | 5202 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5203 | if test -n "$ac_ct_GNATBIND"; then | |
cd9a469c | 5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5205 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
8e1fea1a | 5206 | else |
cd9a469c | 5207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5208 | $as_echo "no" >&6; } | |
8e1fea1a | 5209 | fi |
5210 | ||
cd9a469c | 5211 | if test "x$ac_ct_GNATBIND" = x; then |
5212 | GNATBIND="no" | |
5213 | else | |
5214 | case $cross_compiling:$ac_tool_warned in | |
5215 | yes:) | |
5216 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5217 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5218 | ac_tool_warned=yes ;; | |
5219 | esac | |
5220 | GNATBIND=$ac_ct_GNATBIND | |
5221 | fi | |
8e1fea1a | 5222 | else |
b30fcfae | 5223 | GNATBIND="$ac_cv_prog_GNATBIND" |
8e1fea1a | 5224 | fi |
5225 | ||
b30fcfae | 5226 | if test -n "$ac_tool_prefix"; then |
5227 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
a18b2c54 | 5228 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
cd9a469c | 5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5230 | $as_echo_n "checking for $ac_word... " >&6; } | |
5231 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
5232 | $as_echo_n "(cached) " >&6 | |
a18b2c54 | 5233 | else |
5234 | if test -n "$GNATMAKE"; then | |
5235 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5236 | else | |
b30fcfae | 5237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5238 | for as_dir in $PATH | |
5239 | do | |
5240 | IFS=$as_save_IFS | |
5241 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5242 | for ac_exec_ext in '' $ac_executable_extensions; do |
5243 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 5244 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
cd9a469c | 5245 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5246 | break 2 |
5247 | fi | |
5248 | done | |
cd9a469c | 5249 | done |
5250 | IFS=$as_save_IFS | |
b30fcfae | 5251 | |
a18b2c54 | 5252 | fi |
5253 | fi | |
b30fcfae | 5254 | GNATMAKE=$ac_cv_prog_GNATMAKE |
a18b2c54 | 5255 | if test -n "$GNATMAKE"; then |
cd9a469c | 5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5257 | $as_echo "$GNATMAKE" >&6; } | |
a18b2c54 | 5258 | else |
cd9a469c | 5259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5260 | $as_echo "no" >&6; } | |
a18b2c54 | 5261 | fi |
5262 | ||
cd9a469c | 5263 | |
b30fcfae | 5264 | fi |
a18b2c54 | 5265 | if test -z "$ac_cv_prog_GNATMAKE"; then |
b30fcfae | 5266 | ac_ct_GNATMAKE=$GNATMAKE |
a18b2c54 | 5267 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5268 | set dummy gnatmake; ac_word=$2 | |
cd9a469c | 5269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5270 | $as_echo_n "checking for $ac_word... " >&6; } | |
5271 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
5272 | $as_echo_n "(cached) " >&6 | |
a18b2c54 | 5273 | else |
b30fcfae | 5274 | if test -n "$ac_ct_GNATMAKE"; then |
5275 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
a18b2c54 | 5276 | else |
b30fcfae | 5277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5278 | for as_dir in $PATH | |
5279 | do | |
5280 | IFS=$as_save_IFS | |
5281 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5282 | for ac_exec_ext in '' $ac_executable_extensions; do |
5283 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 5284 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
cd9a469c | 5285 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5286 | break 2 |
5287 | fi | |
5288 | done | |
cd9a469c | 5289 | done |
5290 | IFS=$as_save_IFS | |
b30fcfae | 5291 | |
a18b2c54 | 5292 | fi |
5293 | fi | |
b30fcfae | 5294 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5295 | if test -n "$ac_ct_GNATMAKE"; then | |
cd9a469c | 5296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5297 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
a18b2c54 | 5298 | else |
cd9a469c | 5299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5300 | $as_echo "no" >&6; } | |
a18b2c54 | 5301 | fi |
5302 | ||
cd9a469c | 5303 | if test "x$ac_ct_GNATMAKE" = x; then |
5304 | GNATMAKE="no" | |
5305 | else | |
5306 | case $cross_compiling:$ac_tool_warned in | |
5307 | yes:) | |
5308 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5309 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5310 | ac_tool_warned=yes ;; | |
5311 | esac | |
5312 | GNATMAKE=$ac_ct_GNATMAKE | |
5313 | fi | |
a18b2c54 | 5314 | else |
b30fcfae | 5315 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
a18b2c54 | 5316 | fi |
5317 | ||
cd9a469c | 5318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5319 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
5320 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
5321 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 5322 | else |
5323 | cat >conftest.adb <<EOF | |
5324 | procedure conftest is begin null; end conftest; | |
5325 | EOF | |
5326 | acx_cv_cc_gcc_supports_ada=no | |
5327 | # There is a bug in old released versions of GCC which causes the | |
5328 | # driver to exit successfully when the appropriate language module | |
5329 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5330 | # Therefore we must check for the error message as well as an | |
5331 | # unsuccessful exit. | |
216de822 | 5332 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5333 | # given a .adb file, but produce no object file. So we must check | |
5334 | # if an object file was really produced to guard against this. | |
8e1fea1a | 5335 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
216de822 | 5336 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
8e1fea1a | 5337 | acx_cv_cc_gcc_supports_ada=yes |
8e1fea1a | 5338 | fi |
5339 | rm -f conftest.* | |
5340 | fi | |
cd9a469c | 5341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5342 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
8e1fea1a | 5343 | |
9d5fd7d0 | 5344 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
8e1fea1a | 5345 | have_gnat=yes |
5346 | else | |
5347 | have_gnat=no | |
5348 | fi | |
5349 | ||
cd9a469c | 5350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5351 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5352 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5353 | $as_echo_n "(cached) " >&6 | |
7bcc3b4a | 5354 | else |
5355 | echo abfoo >t1 | |
5356 | echo cdfoo >t2 | |
5357 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
697dfd2c | 5358 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5359 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5360 | : | |
5361 | else | |
5362 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5363 | fi | |
5364 | fi | |
7bcc3b4a | 5365 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5366 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
697dfd2c | 5367 | : |
7bcc3b4a | 5368 | else |
5369 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5370 | fi | |
5371 | fi | |
5372 | rm t1 t2 | |
5373 | ||
5374 | fi | |
cd9a469c | 5375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5376 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
7bcc3b4a | 5377 | do_compare="$gcc_cv_prog_cmp_skip" |
5378 | ||
5379 | ||
8e1fea1a | 5380 | |
6c59dfa4 | 5381 | # Check whether --enable-bootstrap was given. |
5382 | if test "${enable_bootstrap+set}" = set; then : | |
5383 | enableval=$enable_bootstrap; | |
5384 | else | |
5385 | enable_bootstrap=default | |
5386 | fi | |
5387 | ||
5388 | ||
5389 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
d7c9b4c1 | 5390 | if test -r $srcdir/gcc/configure; then |
5391 | have_compiler=yes | |
5392 | else | |
5393 | have_compiler=no | |
5394 | fi | |
6c59dfa4 | 5395 | |
5396 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5397 | *:*:*:no) ;; | |
5398 | ||
5399 | # Default behavior. Enable bootstrap if we have a compiler | |
5400 | # and we are in a native configuration. | |
5401 | yes:$build:$build:default) | |
5402 | enable_bootstrap=yes ;; | |
5403 | ||
5404 | *:*:*:default) | |
5405 | enable_bootstrap=no ;; | |
5406 | ||
5407 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5408 | yes:$build:$build:yes) | |
5409 | ;; | |
5410 | ||
5411 | # Other configurations, but we have a compiler. Assume the user knows | |
5412 | # what he's doing. | |
5413 | yes:*:*:yes) | |
5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5415 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5416 | ;; | |
5417 | ||
5418 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5419 | no:*:*:yes) | |
5420 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5421 | ||
5422 | # Fail if wrong command line | |
5423 | *) | |
5424 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5425 | ;; | |
5426 | esac | |
5427 | ||
27590679 | 5428 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5429 | # C++98 compiler can still start the bootstrap. | |
5430 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
dce53dbc | 5431 | CXX="$CXX -std=gnu++98" |
27590679 | 5432 | fi |
5433 | ||
c3fc6a63 | 5434 | # Used for setting $lt_cv_objdir |
5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5436 | $as_echo_n "checking for objdir... " >&6; } | |
5437 | if test "${lt_cv_objdir+set}" = set; then : | |
5438 | $as_echo_n "(cached) " >&6 | |
5439 | else | |
5440 | rm -f .libs 2>/dev/null | |
5441 | mkdir .libs 2>/dev/null | |
5442 | if test -d .libs; then | |
5443 | lt_cv_objdir=.libs | |
5444 | else | |
5445 | # MS-DOS does not allow filenames that begin with a dot. | |
5446 | lt_cv_objdir=_libs | |
5447 | fi | |
5448 | rmdir .libs 2>/dev/null | |
5449 | fi | |
5450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5451 | $as_echo "$lt_cv_objdir" >&6; } | |
5452 | objdir=$lt_cv_objdir | |
5453 | ||
5454 | ||
5455 | ||
5456 | ||
5457 | ||
5458 | cat >>confdefs.h <<_ACEOF | |
5459 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5460 | _ACEOF | |
5461 | ||
5462 | ||
5463 | ||
7601a55c | 5464 | # Check for GMP, MPFR and MPC |
16de6a81 | 5465 | gmplibs="-lmpc -lmpfr -lgmp" |
4ee9c684 | 5466 | gmpinc= |
d45318b3 | 5467 | have_gmp=no |
7601a55c | 5468 | |
5469 | # Specify a location for mpc | |
5470 | # check for this first so it ends up on the link line before mpfr. | |
5471 | ||
cd9a469c | 5472 | # Check whether --with-mpc was given. |
5473 | if test "${with_mpc+set}" = set; then : | |
5474 | withval=$with_mpc; | |
5475 | fi | |
7601a55c | 5476 | |
7601a55c | 5477 | |
73f813e1 | 5478 | # Check whether --with-mpc-include was given. |
cd9a469c | 5479 | if test "${with_mpc_include+set}" = set; then : |
5480 | withval=$with_mpc_include; | |
5481 | fi | |
7601a55c | 5482 | |
7601a55c | 5483 | |
73f813e1 | 5484 | # Check whether --with-mpc-lib was given. |
cd9a469c | 5485 | if test "${with_mpc_lib+set}" = set; then : |
5486 | withval=$with_mpc_lib; | |
5487 | fi | |
7601a55c | 5488 | |
7601a55c | 5489 | |
5490 | if test "x$with_mpc" != x; then | |
16de6a81 | 5491 | gmplibs="-L$with_mpc/lib $gmplibs" |
5492 | gmpinc="-I$with_mpc/include $gmpinc" | |
7601a55c | 5493 | fi |
5494 | if test "x$with_mpc_include" != x; then | |
16de6a81 | 5495 | gmpinc="-I$with_mpc_include $gmpinc" |
7601a55c | 5496 | fi |
5497 | if test "x$with_mpc_lib" != x; then | |
16de6a81 | 5498 | gmplibs="-L$with_mpc_lib $gmplibs" |
7601a55c | 5499 | fi |
5500 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
c3fc6a63 | 5501 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
16de6a81 | 5502 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
7601a55c | 5503 | # Do not test the mpc version. Assume that it is sufficient, since |
5504 | # it is in the source tree, and the library has not been built yet | |
5505 | # but it would be included on the link line in the version check below | |
5506 | # hence making the test fail. | |
16de6a81 | 5507 | have_gmp=yes |
7601a55c | 5508 | fi |
d45318b3 | 5509 | |
5ca838b8 | 5510 | # Specify a location for mpfr |
5511 | # check for this first so it ends up on the link line before gmp. | |
b30fcfae | 5512 | |
cd9a469c | 5513 | # Check whether --with-mpfr-dir was given. |
5514 | if test "${with_mpfr_dir+set}" = set; then : | |
5515 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5516 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5517 | fi | |
5518 | ||
5ca838b8 | 5519 | |
5520 | ||
cd9a469c | 5521 | # Check whether --with-mpfr was given. |
5522 | if test "${with_mpfr+set}" = set; then : | |
5523 | withval=$with_mpfr; | |
5524 | fi | |
b30fcfae | 5525 | |
5ca838b8 | 5526 | |
73f813e1 | 5527 | # Check whether --with-mpfr-include was given. |
cd9a469c | 5528 | if test "${with_mpfr_include+set}" = set; then : |
5529 | withval=$with_mpfr_include; | |
5530 | fi | |
b30fcfae | 5531 | |
a5144c1d | 5532 | |
73f813e1 | 5533 | # Check whether --with-mpfr-lib was given. |
cd9a469c | 5534 | if test "${with_mpfr_lib+set}" = set; then : |
5535 | withval=$with_mpfr_lib; | |
5536 | fi | |
a5144c1d | 5537 | |
5ca838b8 | 5538 | |
5539 | if test "x$with_mpfr" != x; then | |
5540 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
16de6a81 | 5541 | gmpinc="-I$with_mpfr/include $gmpinc" |
5ca838b8 | 5542 | fi |
a5144c1d | 5543 | if test "x$with_mpfr_include" != x; then |
16de6a81 | 5544 | gmpinc="-I$with_mpfr_include $gmpinc" |
a5144c1d | 5545 | fi |
5546 | if test "x$with_mpfr_lib" != x; then | |
5547 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5548 | fi | |
d45318b3 | 5549 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
37ca4325 | 5550 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
5551 | if test -d ${srcdir}/mpfr/src; then | |
5552 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" | |
5553 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5554 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
5555 | else | |
5556 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" | |
5557 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" | |
5558 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" | |
5559 | fi | |
d45318b3 | 5560 | # Do not test the mpfr version. Assume that it is sufficient, since |
5561 | # it is in the source tree, and the library has not been built yet | |
5562 | # but it would be included on the link line in the version check below | |
5563 | # hence making the test fail. | |
5564 | have_gmp=yes | |
5565 | fi | |
5ca838b8 | 5566 | |
4ee9c684 | 5567 | # Specify a location for gmp |
b30fcfae | 5568 | |
cd9a469c | 5569 | # Check whether --with-gmp-dir was given. |
5570 | if test "${with_gmp_dir+set}" = set; then : | |
5571 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5572 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5573 | fi | |
5574 | ||
4ee9c684 | 5575 | |
4ee9c684 | 5576 | |
cd9a469c | 5577 | # Check whether --with-gmp was given. |
5578 | if test "${with_gmp+set}" = set; then : | |
5579 | withval=$with_gmp; | |
5580 | fi | |
b30fcfae | 5581 | |
4ee9c684 | 5582 | |
73f813e1 | 5583 | # Check whether --with-gmp-include was given. |
cd9a469c | 5584 | if test "${with_gmp_include+set}" = set; then : |
5585 | withval=$with_gmp_include; | |
5586 | fi | |
b30fcfae | 5587 | |
a5144c1d | 5588 | |
73f813e1 | 5589 | # Check whether --with-gmp-lib was given. |
cd9a469c | 5590 | if test "${with_gmp_lib+set}" = set; then : |
5591 | withval=$with_gmp_lib; | |
5592 | fi | |
a5144c1d | 5593 | |
5594 | ||
4ee9c684 | 5595 | |
5ca838b8 | 5596 | if test "x$with_gmp" != x; then |
5597 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5598 | gmpinc="-I$with_gmp/include $gmpinc" | |
4ee9c684 | 5599 | fi |
a5144c1d | 5600 | if test "x$with_gmp_include" != x; then |
5601 | gmpinc="-I$with_gmp_include $gmpinc" | |
5602 | fi | |
5603 | if test "x$with_gmp_lib" != x; then | |
5604 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5605 | fi | |
d45318b3 | 5606 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
c3fc6a63 | 5607 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
d45318b3 | 5608 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
b9a8e4c4 | 5609 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
c3fc6a63 | 5610 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
e4128452 | 5611 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
d45318b3 | 5612 | # Do not test the gmp version. Assume that it is sufficient, since |
5613 | # it is in the source tree, and the library has not been built yet | |
5614 | # but it would be included on the link line in the version check below | |
5615 | # hence making the test fail. | |
5616 | have_gmp=yes | |
5617 | fi | |
4ee9c684 | 5618 | |
16c9b2e3 | 5619 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
d45318b3 | 5620 | have_gmp=yes |
5621 | saved_CFLAGS="$CFLAGS" | |
5622 | CFLAGS="$CFLAGS $gmpinc" | |
17b6993a | 5623 | # Check for the recommended and required versions of GMP. |
5624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5625 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
4fd35f21 | 5626 | |
5627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17b6993a | 5628 | /* end confdefs.h. */ |
5629 | #include "gmp.h" | |
5630 | int | |
5631 | main () | |
5632 | { | |
5633 | ||
5634 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5635 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
f819bb73 | 5636 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
17b6993a | 5637 | choke me |
5638 | #endif | |
5639 | ||
5640 | ; | |
5641 | return 0; | |
5642 | } | |
5643 | _ACEOF | |
5644 | if ac_fn_c_try_compile "$LINENO"; then : | |
4fd35f21 | 5645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 5646 | /* end confdefs.h. */ |
17b6993a | 5647 | #include <gmp.h> |
b30fcfae | 5648 | int |
5649 | main () | |
5650 | { | |
4ee9c684 | 5651 | |
17b6993a | 5652 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5653 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5654 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
d45318b3 | 5655 | choke me |
5656 | #endif | |
b30fcfae | 5657 | |
5658 | ; | |
5659 | return 0; | |
5660 | } | |
5661 | _ACEOF | |
cd9a469c | 5662 | if ac_fn_c_try_compile "$LINENO"; then : |
5663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5664 | $as_echo "yes" >&6; } | |
17b6993a | 5665 | else |
5666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5667 | $as_echo "buggy but acceptable" >&6; } | |
5668 | fi | |
5669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b30fcfae | 5670 | else |
cd9a469c | 5671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5672 | $as_echo "no" >&6; }; have_gmp=no | |
b30fcfae | 5673 | fi |
cd9a469c | 5674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4ee9c684 | 5675 | |
7601a55c | 5676 | # If we have GMP, check the MPFR version. |
d45318b3 | 5677 | if test x"$have_gmp" = xyes; then |
17b6993a | 5678 | # Check for the recommended and required versions of MPFR. |
5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5680 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
cd9a469c | 5681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 5682 | /* end confdefs.h. */ |
6a086156 | 5683 | #include <gmp.h> |
d45318b3 | 5684 | #include <mpfr.h> |
b30fcfae | 5685 | int |
5686 | main () | |
5687 | { | |
112f3d57 | 5688 | |
cb1d9044 | 5689 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
d45318b3 | 5690 | choke me |
5691 | #endif | |
b30fcfae | 5692 | |
5693 | ; | |
5694 | return 0; | |
5695 | } | |
5696 | _ACEOF | |
cd9a469c | 5697 | if ac_fn_c_try_compile "$LINENO"; then : |
5698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b30fcfae | 5699 | /* end confdefs.h. */ |
0157cc75 | 5700 | #include <gmp.h> |
d45318b3 | 5701 | #include <mpfr.h> |
b30fcfae | 5702 | int |
5703 | main () | |
5704 | { | |
0157cc75 | 5705 | |
17b6993a | 5706 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
d45318b3 | 5707 | choke me |
5708 | #endif | |
7601a55c | 5709 | |
5710 | ; | |
5711 | return 0; | |
5712 | } | |
5713 | _ACEOF | |
cd9a469c | 5714 | if ac_fn_c_try_compile "$LINENO"; then : |
5715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5716 | $as_echo "yes" >&6; } | |
7601a55c | 5717 | else |
cd9a469c | 5718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5719 | $as_echo "buggy but acceptable" >&6; } | |
7601a55c | 5720 | fi |
cd9a469c | 5721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7601a55c | 5722 | else |
cd9a469c | 5723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5724 | $as_echo "no" >&6; }; have_gmp=no | |
7601a55c | 5725 | fi |
cd9a469c | 5726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7601a55c | 5727 | fi |
5728 | ||
5729 | # Check for the MPC header version. | |
16de6a81 | 5730 | if test x"$have_gmp" = xyes ; then |
17b6993a | 5731 | # Check for the recommended and required versions of MPC. |
cd9a469c | 5732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5733 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7601a55c | 5735 | /* end confdefs.h. */ |
5736 | #include <mpc.h> | |
5737 | int | |
5738 | main () | |
5739 | { | |
5740 | ||
17b6993a | 5741 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5742 | choke me | |
5743 | #endif | |
5744 | ||
5745 | ; | |
5746 | return 0; | |
5747 | } | |
5748 | _ACEOF | |
5749 | if ac_fn_c_try_compile "$LINENO"; then : | |
5750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5751 | /* end confdefs.h. */ | |
5752 | #include <mpc.h> | |
5753 | int | |
5754 | main () | |
5755 | { | |
5756 | ||
5757 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
7601a55c | 5758 | choke me |
5759 | #endif | |
5760 | ||
5761 | ; | |
5762 | return 0; | |
5763 | } | |
5764 | _ACEOF | |
cd9a469c | 5765 | if ac_fn_c_try_compile "$LINENO"; then : |
5766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16de6a81 | 5767 | $as_echo "yes" >&6; } |
17b6993a | 5768 | else |
5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5770 | $as_echo "buggy but acceptable" >&6; } | |
5771 | fi | |
5772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7601a55c | 5773 | else |
cd9a469c | 5774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16de6a81 | 5775 | $as_echo "no" >&6; }; have_gmp=no |
7601a55c | 5776 | fi |
cd9a469c | 5777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7601a55c | 5778 | fi |
5779 | ||
5780 | # Now check the MPFR library. | |
5781 | if test x"$have_gmp" = xyes; then | |
5782 | saved_LIBS="$LIBS" | |
5783 | LIBS="$LIBS $gmplibs" | |
16de6a81 | 5784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5785 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
cd9a469c | 5786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7601a55c | 5787 | /* end confdefs.h. */ |
16de6a81 | 5788 | #include <mpc.h> |
7601a55c | 5789 | int |
5790 | main () | |
5791 | { | |
5792 | ||
5793 | mpfr_t n; | |
5794 | mpfr_t x; | |
16de6a81 | 5795 | mpc_t c; |
7601a55c | 5796 | int t; |
5797 | mpfr_init (n); | |
5798 | mpfr_init (x); | |
5799 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5800 | mpfr_erfc (n, x, GMP_RNDN); | |
5801 | mpfr_subnormalize (x, t, GMP_RNDN); | |
16de6a81 | 5802 | mpfr_clear(n); |
5803 | mpfr_clear(x); | |
5804 | mpc_init2 (c, 53); | |
5805 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5806 | mpc_cosh (c, c, MPC_RNDNN); | |
5807 | mpc_pow (c, c, c, MPC_RNDNN); | |
5808 | mpc_acosh (c, c, MPC_RNDNN); | |
5809 | mpc_clear (c); | |
b30fcfae | 5810 | |
5811 | ; | |
5812 | return 0; | |
5813 | } | |
5814 | _ACEOF | |
cd9a469c | 5815 | if ac_fn_c_try_link "$LINENO"; then : |
5816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5817 | $as_echo "yes" >&6; } | |
b30fcfae | 5818 | else |
cd9a469c | 5819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5820 | $as_echo "no" >&6; }; have_gmp=no | |
b30fcfae | 5821 | fi |
cd9a469c | 5822 | rm -f core conftest.err conftest.$ac_objext \ |
5823 | conftest$ac_exeext conftest.$ac_ext | |
7601a55c | 5824 | LIBS="$saved_LIBS" |
5825 | fi | |
5826 | ||
d45318b3 | 5827 | CFLAGS="$saved_CFLAGS" |
4ee9c684 | 5828 | |
17b6993a | 5829 | # The library versions listed in the error message below should match |
5830 | # the HARD-minimums enforced above. | |
d45318b3 | 5831 | if test x$have_gmp != xyes; then |
cb1d9044 | 5832 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
16de6a81 | 5833 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5834 | their locations. Source code for these libraries can be found at | |
5835 | their respective hosting sites as well as at | |
5836 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5837 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5838 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5839 | make sure that you have installed both the libraries and the header | |
5840 | files. They may be located in separate packages." "$LINENO" 5 | |
d45318b3 | 5841 | fi |
6a086156 | 5842 | fi |
5843 | ||
7601a55c | 5844 | # Flags needed for both GMP, MPFR and/or MPC. |
5845 | ||
5846 | ||
4ee9c684 | 5847 | |
5848 | ||
5849 | ||
bff7ea4a | 5850 | |
e4128452 | 5851 | |
5bc96548 | 5852 | # Allow host libstdc++ to be specified for static linking with PPL. |
5853 | ||
cd9a469c | 5854 | # Check whether --with-host-libstdcxx was given. |
5855 | if test "${with_host_libstdcxx+set}" = set; then : | |
5856 | withval=$with_host_libstdcxx; | |
5857 | fi | |
5bc96548 | 5858 | |
5bc96548 | 5859 | |
5860 | case $with_host_libstdcxx in | |
5861 | no|yes) | |
cd9a469c | 5862 | as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5 |
5bc96548 | 5863 | ;; |
5864 | esac | |
255b6be7 | 5865 | |
13687c85 | 5866 | # Libraries to use for stage1 or when not bootstrapping. |
7ab76cec | 5867 | |
13687c85 | 5868 | # Check whether --with-stage1-libs was given. |
5869 | if test "${with_stage1_libs+set}" = set; then : | |
5870 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5871 | stage1_libs= | |
7ab76cec | 5872 | else |
13687c85 | 5873 | stage1_libs=$withval |
7ab76cec | 5874 | fi |
5875 | else | |
13687c85 | 5876 | stage1_libs=$with_host_libstdcxx |
cd9a469c | 5877 | fi |
5878 | ||
7ab76cec | 5879 | |
5880 | ||
13687c85 | 5881 | # Linker flags to use for stage1 or when not bootstrapping. |
7ab76cec | 5882 | |
13687c85 | 5883 | # Check whether --with-stage1-ldflags was given. |
5884 | if test "${with_stage1_ldflags+set}" = set; then : | |
5885 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5886 | stage1_ldflags= | |
7ab76cec | 5887 | else |
13687c85 | 5888 | stage1_ldflags=$withval |
7ab76cec | 5889 | fi |
5890 | else | |
13687c85 | 5891 | stage1_ldflags= |
5892 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5893 | # if supported. But if the user explicitly specified the libraries to use, | |
5894 | # trust that they are doing what they want. | |
5895 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5896 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5897 | fi | |
cd9a469c | 5898 | fi |
5899 | ||
7ab76cec | 5900 | |
5901 | ||
7ab76cec | 5902 | # Libraries to use for stage2 and later builds. This defaults to the |
5903 | # argument passed to --with-host-libstdcxx. | |
5904 | ||
cd9a469c | 5905 | # Check whether --with-boot-libs was given. |
5906 | if test "${with_boot_libs+set}" = set; then : | |
5907 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5110389d | 5908 | poststage1_libs= |
5909 | else | |
5910 | poststage1_libs=$withval | |
5911 | fi | |
5912 | else | |
7ab76cec | 5913 | poststage1_libs=$with_host_libstdcxx |
cd9a469c | 5914 | fi |
5915 | ||
7ab76cec | 5916 | |
5917 | ||
d6dfe18a | 5918 | # Linker flags to use for stage2 and later builds. |
5919 | ||
5920 | # Check whether --with-boot-ldflags was given. | |
5921 | if test "${with_boot_ldflags+set}" = set; then : | |
5922 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5923 | poststage1_ldflags= | |
5924 | else | |
5925 | poststage1_ldflags=$withval | |
5926 | fi | |
5927 | else | |
5928 | poststage1_ldflags= | |
7deb2d70 | 5929 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5930 | # statically. But if the user explicitly specified the libraries to | |
5931 | # use, trust that they are doing what they want. | |
5932 | if test "$poststage1_libs" = ""; then | |
d6dfe18a | 5933 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5934 | fi | |
5935 | fi | |
5936 | ||
5937 | ||
5938 | ||
572cf1f7 | 5939 | # GCC GRAPHITE dependency ISL. |
5940 | # Basic setup is inlined here, actual checks are in config/isl.m4 | |
255b6be7 | 5941 | |
5942 | ||
87e20041 | 5943 | # Check whether --with-isl was given. |
5944 | if test "${with_isl+set}" = set; then : | |
5945 | withval=$with_isl; | |
cd9a469c | 5946 | fi |
255b6be7 | 5947 | |
255b6be7 | 5948 | |
429cca51 | 5949 | # Treat --without-isl as a request to disable |
83d54ac4 | 5950 | # GRAPHITE support and skip all following checks. |
429cca51 | 5951 | if test "x$with_isl" != "xno"; then |
83d54ac4 | 5952 | # Check for ISL |
5953 | ||
5954 | ||
87e20041 | 5955 | # Check whether --with-isl-include was given. |
5956 | if test "${with_isl_include+set}" = set; then : | |
5957 | withval=$with_isl_include; | |
cd9a469c | 5958 | fi |
5959 | ||
255b6be7 | 5960 | |
87e20041 | 5961 | # Check whether --with-isl-lib was given. |
5962 | if test "${with_isl_lib+set}" = set; then : | |
5963 | withval=$with_isl_lib; | |
cd9a469c | 5964 | fi |
255b6be7 | 5965 | |
255b6be7 | 5966 | |
87e20041 | 5967 | # Check whether --enable-isl-version-check was given. |
5968 | if test "${enable_isl_version_check+set}" = set; then : | |
5969 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5970 | else | |
5971 | ENABLE_ISL_CHECK=yes | |
062b4a94 | 5972 | fi |
5973 | ||
5974 | ||
87e20041 | 5975 | # Initialize isllibs and islinc. |
5976 | case $with_isl in | |
5977 | no) | |
5978 | isllibs= | |
5979 | islinc= | |
5980 | ;; | |
5981 | "" | yes) | |
5982 | ;; | |
5983 | *) | |
5984 | isllibs="-L$with_isl/lib" | |
5985 | islinc="-I$with_isl/include" | |
5986 | ;; | |
5987 | esac | |
5988 | if test "x${with_isl_include}" != x ; then | |
5989 | islinc="-I$with_isl_include" | |
5990 | fi | |
5991 | if test "x${with_isl_lib}" != x; then | |
5992 | isllibs="-L$with_isl_lib" | |
5993 | fi | |
5994 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5995 | && test -d ${srcdir}/isl; then | |
5996 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5997 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5998 | ENABLE_ISL_CHECK=no | |
5b0131d5 | 5999 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5 |
6000 | $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;} | |
87e20041 | 6001 | fi |
062b4a94 | 6002 | |
429cca51 | 6003 | isllibs="${isllibs} -lisl" |
6004 | ||
062b4a94 | 6005 | |
062b4a94 | 6006 | |
078393c7 | 6007 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
6008 | _isl_saved_CFLAGS=$CFLAGS | |
6009 | _isl_saved_LDFLAGS=$LDFLAGS | |
6010 | _isl_saved_LIBS=$LIBS | |
6011 | ||
6012 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
6013 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}" | |
6014 | LIBS="${_isl_saved_LIBS} -lisl" | |
6015 | ||
b6de67fd | 6016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5 |
6017 | $as_echo_n "checking for compatible ISL... " >&6; } | |
6018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6ac3b11e | 6019 | /* end confdefs.h. */ |
b6de67fd | 6020 | #include <isl/val.h> |
6ac3b11e | 6021 | int |
6022 | main () | |
6023 | { | |
b6de67fd | 6024 | ; |
6ac3b11e | 6025 | ; |
6026 | return 0; | |
6027 | } | |
6028 | _ACEOF | |
6029 | if ac_fn_c_try_link "$LINENO"; then : | |
078393c7 | 6030 | gcc_cv_isl=yes |
6ac3b11e | 6031 | else |
6032 | gcc_cv_isl=no | |
6033 | fi | |
6034 | rm -f core conftest.err conftest.$ac_objext \ | |
6035 | conftest$ac_exeext conftest.$ac_ext | |
078393c7 | 6036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
6037 | $as_echo "$gcc_cv_isl" >&6; } | |
6038 | ||
6039 | CFLAGS=$_isl_saved_CFLAGS | |
6040 | LDFLAGS=$_isl_saved_LDFLAGS | |
6041 | LIBS=$_isl_saved_LIBS | |
6042 | fi | |
6043 | ||
6044 | ||
255b6be7 | 6045 | |
255b6be7 | 6046 | |
87e20041 | 6047 | |
6048 | ||
87e20041 | 6049 | if test "x${with_isl}" = xno; then |
6050 | graphite_requested=no | |
6051 | elif test "x${with_isl}" != x \ | |
6052 | || test "x${with_isl_include}" != x \ | |
6053 | || test "x${with_isl_lib}" != x ; then | |
6054 | graphite_requested=yes | |
6055 | else | |
6056 | graphite_requested=no | |
062b4a94 | 6057 | fi |
5362e323 | 6058 | |
5362e323 | 6059 | |
6060 | ||
87e20041 | 6061 | if test "${gcc_cv_isl}" = no ; then |
6062 | isllibs= | |
6063 | islinc= | |
6064 | fi | |
6065 | ||
6066 | if test "${graphite_requested}" = yes \ | |
6067 | && test "x${isllibs}" = x \ | |
6068 | && test "x${islinc}" = x ; then | |
255b6be7 | 6069 | |
87e20041 | 6070 | as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5 |
6071 | fi | |
255b6be7 | 6072 | |
a3c81e03 | 6073 | |
a3c81e03 | 6074 | fi |
6075 | ||
572cf1f7 | 6076 | # If the ISL check failed, disable builds of in-tree variant of ISL |
83d54ac4 | 6077 | if test "x$with_isl" = xno || |
83d54ac4 | 6078 | test "x$gcc_cv_isl" = xno; then |
572cf1f7 | 6079 | noconfigdirs="$noconfigdirs isl" |
83d54ac4 | 6080 | islinc= |
bacb15cb | 6081 | fi |
6082 | ||
83d54ac4 | 6083 | |
6084 | ||
6085 | ||
7bfefa9d | 6086 | # Check for LTO support. |
6087 | # Check whether --enable-lto was given. | |
6088 | if test "${enable_lto+set}" = set; then : | |
6089 | enableval=$enable_lto; enable_lto=$enableval | |
6090 | else | |
6091 | enable_lto=yes; default_enable_lto=yes | |
6092 | fi | |
6093 | ||
6094 | ||
1a4f45ec | 6095 | |
9bdbb0bc | 6096 | |
6097 | ||
6098 | target_elf=no | |
6099 | case $target in | |
6100 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
4d72c922 | 6101 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
0f769573 | 6102 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
6103 | nvptx-*-none) | |
9bdbb0bc | 6104 | target_elf=no |
6105 | ;; | |
6106 | *) | |
6107 | target_elf=yes | |
6108 | ;; | |
6109 | esac | |
6110 | ||
6111 | if test $target_elf = yes; then : | |
25630dc7 | 6112 | # ELF platforms build the lto-plugin always. |
6113 | build_lto_plugin=yes | |
9bdbb0bc | 6114 | |
9bdbb0bc | 6115 | else |
6116 | if test x"$default_enable_lto" = x"yes" ; then | |
4ae8c98f | 6117 | case $target in |
b990d06f | 6118 | *-apple-darwin9* | *-cygwin* | *-mingw*) ;; |
25630dc7 | 6119 | # On other non-ELF platforms, LTO has yet to be validated. |
4ae8c98f | 6120 | *) enable_lto=no ;; |
6121 | esac | |
9bdbb0bc | 6122 | else |
62932e4d | 6123 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6124 | # It would also be nice to check the binutils support, but we don't | |
9bdbb0bc | 6125 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6126 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6127 | # -flto it won't be needed until after installation anyway. | |
6128 | case $target in | |
ca42e774 | 6129 | *-cygwin* | *-mingw* | *-apple-darwin*) ;; |
9bdbb0bc | 6130 | *) if test x"$enable_lto" = x"yes"; then |
6131 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6132 | fi | |
6133 | ;; | |
6134 | esac | |
6135 | fi | |
ca42e774 | 6136 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
25630dc7 | 6137 | # Build it unless LTO was explicitly disabled. |
ca42e774 | 6138 | case $target in |
25630dc7 | 6139 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
ca42e774 | 6140 | *) ;; |
6141 | esac | |
25630dc7 | 6142 | |
9bdbb0bc | 6143 | fi |
6144 | ||
7bfefa9d | 6145 | |
1015a063 | 6146 | # Check whether --enable-linker-plugin-configure-flags was given. |
6147 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6148 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6149 | else | |
6150 | extra_linker_plugin_configure_flags= | |
6151 | fi | |
6152 | ||
6153 | ||
6154 | # Check whether --enable-linker-plugin-flags was given. | |
6155 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6156 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6157 | else | |
6158 | extra_linker_plugin_flags= | |
6159 | fi | |
6160 | ||
6161 | ||
6162 | ||
255b6be7 | 6163 | |
2b15d2ba | 6164 | # By default, C and C++ are the only stage 1 languages. |
9c3a0a29 | 6165 | stage1_languages=,c, |
2d64c2fd | 6166 | |
7ab76cec | 6167 | # Target libraries that we bootstrap. |
5c96a839 | 6168 | bootstrap_target_libs=,target-libgcc, |
7ab76cec | 6169 | |
8e1fea1a | 6170 | # Figure out what language subdirectories are present. |
6171 | # Look if the user specified --enable-languages="..."; if not, use | |
6172 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6173 | # go away some day. | |
6174 | # NB: embedded tabs in this IF block -- do not untabify | |
6175 | if test -d ${srcdir}/gcc; then | |
6176 | if test x"${enable_languages+set}" != xset; then | |
6177 | if test x"${LANGUAGES+set}" = xset; then | |
6178 | enable_languages="${LANGUAGES}" | |
e757a6a8 | 6179 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
8e1fea1a | 6180 | else |
6181 | enable_languages=all | |
6182 | fi | |
6183 | else | |
6184 | if test x"${enable_languages}" = x || | |
6185 | test x"${enable_languages}" = xyes; | |
6186 | then | |
e757a6a8 | 6187 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
8e1fea1a | 6188 | exit 1 |
6189 | fi | |
6190 | fi | |
6191 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6192 | ||
2c718da0 | 6193 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6194 | # and make the substitution. | |
6195 | case ,${enable_languages}, in | |
6196 | *,f95,*) | |
e757a6a8 | 6197 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
2c718da0 | 6198 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6199 | ;; | |
6200 | esac | |
6201 | ||
2b15d2ba | 6202 | # If bootstrapping, C++ must be enabled. |
6203 | case ",$enable_languages,:$enable_bootstrap" in | |
6204 | *,c++,*:*) ;; | |
6205 | *:yes) | |
6c59dfa4 | 6206 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6207 | enable_languages="${enable_languages},c++" | |
6208 | else | |
2b15d2ba | 6209 | as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5 |
6c59dfa4 | 6210 | fi |
6211 | ;; | |
6212 | esac | |
6213 | ||
8e1fea1a | 6214 | # First scan to see if an enabled language requires some other language. |
6215 | # We assume that a given config-lang.in will list all the language | |
6216 | # front ends it requires, even if some are required indirectly. | |
6217 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6218 | case ${lang_frag} in | |
6219 | ..) ;; | |
6220 | # The odd quoting in the next line works around | |
6221 | # an apparent bug in bash 1.12 on linux. | |
6222 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6223 | *) | |
101ddbe4 | 6224 | # From the config-lang.in, get $language, $lang_requires, and |
6225 | # $lang_requires_boot_languages. | |
8e1fea1a | 6226 | language= |
6227 | lang_requires= | |
101ddbe4 | 6228 | lang_requires_boot_languages= |
8e1fea1a | 6229 | . ${lang_frag} |
101ddbe4 | 6230 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
8e1fea1a | 6231 | case ,${enable_languages}, in |
6232 | *,$other,*) ;; | |
6233 | *,all,*) ;; | |
6234 | *,$language,*) | |
6235 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6236 | enable_languages="${enable_languages},${other}" | |
6237 | ;; | |
6238 | esac | |
6239 | done | |
101ddbe4 | 6240 | for other in ${lang_requires_boot_languages} ; do |
6241 | if test "$other" != "c"; then | |
6242 | case ,${enable_stage1_languages}, in | |
6243 | *,$other,*) ;; | |
6244 | *,all,*) ;; | |
6245 | *) | |
6246 | case ,${enable_languages}, in | |
6247 | *,$language,*) | |
6248 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6249 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6250 | ;; | |
6251 | esac | |
6252 | ;; | |
6253 | esac | |
6254 | fi | |
6255 | done | |
8e1fea1a | 6256 | ;; |
6257 | esac | |
6258 | done | |
6259 | ||
9c3a0a29 | 6260 | new_enable_languages=,c, |
7bfefa9d | 6261 | |
6262 | # If LTO is enabled, add the LTO front end. | |
7bfefa9d | 6263 | if test "$enable_lto" = "yes" ; then |
d6ef094a | 6264 | case ,${enable_languages}, in |
6265 | *,lto,*) ;; | |
6266 | *) enable_languages="${enable_languages},lto" ;; | |
6267 | esac | |
ca42e774 | 6268 | if test "${build_lto_plugin}" = "yes" ; then |
7bfefa9d | 6269 | configdirs="$configdirs lto-plugin" |
7bfefa9d | 6270 | fi |
6271 | fi | |
6272 | ||
dd87c525 | 6273 | # If we're building an offloading compiler, add the LTO front end. |
6274 | if test x"$enable_as_accelerator_for" != x ; then | |
6275 | case ,${enable_languages}, in | |
6276 | *,lto,*) ;; | |
6277 | *) enable_languages="${enable_languages},lto" ;; | |
6278 | esac | |
6279 | fi | |
6280 | ||
8e1fea1a | 6281 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
9c3a0a29 | 6282 | potential_languages=,c, |
8e1fea1a | 6283 | |
604a285a | 6284 | enabled_target_libs= |
6285 | disabled_target_libs= | |
6286 | ||
8e1fea1a | 6287 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6288 | case ${lang_frag} in | |
6289 | ..) ;; | |
6290 | # The odd quoting in the next line works around | |
6291 | # an apparent bug in bash 1.12 on linux. | |
6292 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6293 | *) | |
b30fcfae | 6294 | # From the config-lang.in, get $language, $target_libs, |
2d64c2fd | 6295 | # $lang_dirs, $boot_language, and $build_by_default |
8e1fea1a | 6296 | language= |
6297 | target_libs= | |
6298 | lang_dirs= | |
5dee13c2 | 6299 | subdir_requires= |
9c3a0a29 | 6300 | boot_language=no |
6301 | build_by_default=yes | |
8e1fea1a | 6302 | . ${lang_frag} |
9c3a0a29 | 6303 | if test x${language} = x; then |
6304 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6305 | exit 1 | |
6306 | fi | |
6307 | ||
ef3c41c7 | 6308 | if test "$language" = "c++"; then |
2b15d2ba | 6309 | boot_language=yes |
7ab76cec | 6310 | fi |
6311 | ||
a2ecd49c | 6312 | add_this_lang=no |
9c3a0a29 | 6313 | case ,${enable_languages}, in |
6314 | *,${language},*) | |
e53d55e7 | 6315 | # Language was explicitly selected; include it |
6316 | # unless it is C, which is enabled by default. | |
6317 | if test "$language" != "c"; then | |
6318 | add_this_lang=yes | |
6319 | fi | |
8e1fea1a | 6320 | ;; |
9c3a0a29 | 6321 | *,all,*) |
6322 | # 'all' was selected, select it if it is a default language | |
a2ecd49c | 6323 | if test "$language" != "c"; then |
6324 | add_this_lang=${build_by_default} | |
6325 | fi | |
8e1fea1a | 6326 | ;; |
6327 | esac | |
4ee9c684 | 6328 | |
5dee13c2 | 6329 | # Disable languages that need other directories if these aren't available. |
9333ae0b | 6330 | for i in $subdir_requires; do |
3891e7d9 | 6331 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
5dee13c2 | 6332 | case ,${enable_languages}, in |
6333 | *,${language},*) | |
6334 | # Specifically requested language; tell them. | |
cd9a469c | 6335 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
5dee13c2 | 6336 | ;; |
6337 | *) | |
6338 | # Silently disable. | |
9c3a0a29 | 6339 | add_this_lang=unsupported |
5dee13c2 | 6340 | ;; |
6341 | esac | |
6342 | done | |
6343 | ||
9c3a0a29 | 6344 | # Disable Ada if no preexisting GNAT is available. |
6345 | case ,${enable_languages},:${language}:${have_gnat} in | |
6346 | *,${language},*:ada:no) | |
6347 | # Specifically requested language; tell them. | |
cd9a469c | 6348 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
9c3a0a29 | 6349 | ;; |
6350 | *:ada:no) | |
6351 | # Silently disable. | |
6352 | add_this_lang=unsupported | |
6353 | ;; | |
6354 | esac | |
6355 | ||
ff7dcf6a | 6356 | # Disable a language that is unsupported by the target. |
6357 | case " $unsupported_languages " in | |
6358 | *" $language "*) | |
9c3a0a29 | 6359 | add_this_lang=unsupported |
ff7dcf6a | 6360 | ;; |
6361 | esac | |
6362 | ||
4ee9c684 | 6363 | case $add_this_lang in |
9c3a0a29 | 6364 | unsupported) |
8e1fea1a | 6365 | # Remove language-dependent dirs. |
604a285a | 6366 | disabled_target_libs="$disabled_target_libs $target_libs" |
6367 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2d64c2fd | 6368 | ;; |
9c3a0a29 | 6369 | no) |
6370 | # Remove language-dependent dirs; still show language as supported. | |
604a285a | 6371 | disabled_target_libs="$disabled_target_libs $target_libs" |
6372 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9c3a0a29 | 6373 | potential_languages="${potential_languages}${language}," |
6374 | ;; | |
6375 | yes) | |
6376 | new_enable_languages="${new_enable_languages}${language}," | |
6377 | potential_languages="${potential_languages}${language}," | |
2d64c2fd | 6378 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
604a285a | 6379 | enabled_target_libs="$enabled_target_libs $target_libs" |
32027446 | 6380 | case "${boot_language}:,$enable_stage1_languages," in |
6381 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
aff6cf7b | 6382 | # Add to (comma-separated) list of stage 1 languages. |
32027446 | 6383 | case ",$stage1_languages," in |
6384 | *,$language,* | ,yes, | ,all,) ;; | |
6385 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6386 | esac | |
7ab76cec | 6387 | # We need to bootstrap any supporting libraries. |
6388 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
2d64c2fd | 6389 | ;; |
6390 | esac | |
6391 | ;; | |
8e1fea1a | 6392 | esac |
6393 | ;; | |
6394 | esac | |
6395 | done | |
6396 | ||
604a285a | 6397 | # Add target libraries which are only needed for disabled languages |
6398 | # to noconfigdirs. | |
6399 | if test -n "$disabled_target_libs"; then | |
6400 | for dir in $disabled_target_libs; do | |
6401 | case " $enabled_target_libs " in | |
6402 | *" ${dir} "*) ;; | |
6403 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6404 | esac | |
6405 | done | |
6406 | fi | |
6407 | ||
cd9a469c | 6408 | # Check whether --enable-stage1-languages was given. |
6409 | if test "${enable_stage1_languages+set}" = set; then : | |
6410 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9c3a0a29 | 6411 | ,no,|,,) |
6412 | # Set it to something that will have no effect in the loop below | |
6413 | enable_stage1_languages=c ;; | |
6414 | ,yes,) | |
6415 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6416 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6417 | *,all,*) | |
6418 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6419 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6420 | esac | |
6421 | ||
6422 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6423 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6424 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6425 | case $potential_languages in | |
6426 | *,$i,*) | |
6427 | case $stage1_languages in | |
6428 | *,$i,*) ;; | |
6429 | *) stage1_languages="$stage1_languages$i," ;; | |
6430 | esac ;; | |
6431 | *) | |
6432 | case $missing_languages in | |
6433 | *,$i,*) ;; | |
6434 | *) missing_languages="$missing_languages$i," ;; | |
6435 | esac ;; | |
6436 | esac | |
6437 | done | |
cd9a469c | 6438 | fi |
6439 | ||
9c3a0a29 | 6440 | |
6441 | # Remove leading/trailing commas that were added for simplicity | |
6442 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
989edd2f | 6443 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9c3a0a29 | 6444 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6445 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6446 | ||
8e1fea1a | 6447 | if test "x$missing_languages" != x; then |
cd9a469c | 6448 | as_fn_error " |
e8bfe1fa | 6449 | The following requested languages could not be built: ${missing_languages} |
cd9a469c | 6450 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
8e1fea1a | 6451 | fi |
8e1fea1a | 6452 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6453 | echo The following languages will be built: ${new_enable_languages} | |
9c3a0a29 | 6454 | enable_languages="$new_enable_languages" |
8e1fea1a | 6455 | fi |
9c3a0a29 | 6456 | |
b30fcfae | 6457 | |
b0e9b581 | 6458 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
8e1fea1a | 6459 | fi |
6460 | ||
50996fe5 | 6461 | # Handle --disable-<component> generically. |
6462 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6463 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
d2d2630b | 6464 | varname=`echo $dirname | sed -e s/+/_/g` |
6465 | if eval test x\${enable_${varname}} "=" xno ; then | |
50996fe5 | 6466 | noconfigdirs="$noconfigdirs $dir" |
6467 | fi | |
6468 | done | |
6469 | ||
dd6d3a67 | 6470 | # Check for Boehm's garbage collector |
cd9a469c | 6471 | # Check whether --enable-objc-gc was given. |
6472 | if test "${enable_objc_gc+set}" = set; then : | |
6473 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
dd6d3a67 | 6474 | *,objc,*:*:yes:*target-boehm-gc*) |
cd9a469c | 6475 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
dd6d3a67 | 6476 | ;; |
6477 | esac | |
cd9a469c | 6478 | fi |
6479 | ||
dd6d3a67 | 6480 | |
6481 | # Make sure we only build Boehm's garbage collector if required. | |
f1716c67 | 6482 | case ,${enable_languages},:${enable_objc_gc} in |
6483 | *,objc,*:yes) | |
dd6d3a67 | 6484 | # Keep target-boehm-gc if requested for Objective-C. |
6485 | ;; | |
dd6d3a67 | 6486 | *) |
f1716c67 | 6487 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6488 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6489 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6490 | fi | |
dd6d3a67 | 6491 | ;; |
6492 | esac | |
6493 | ||
d3a7dd32 | 6494 | # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
b33ca042 | 6495 | case ,${enable_languages}, in |
df148e44 | 6496 | *,c++,*) |
6497 | # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++ | |
6498 | case "${noconfigdirs}" in | |
6499 | *target-libstdc++-v3*) | |
6500 | noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer" | |
6501 | ;; | |
6502 | *) ;; | |
6503 | esac | |
6504 | ;; | |
b33ca042 | 6505 | *) |
d3a7dd32 | 6506 | noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
b33ca042 | 6507 | ;; |
6508 | esac | |
6509 | ||
e8eddfdd | 6510 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6511 | # $build_configdirs and $target_configdirs. | |
8e1fea1a | 6512 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6513 | ||
6514 | notsupp="" | |
6515 | for dir in . $skipdirs $noconfigdirs ; do | |
e8eddfdd | 6516 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
8e1fea1a | 6517 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6518 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6519 | if test -r $srcdir/$dirname/configure ; then | |
6520 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6521 | true | |
6522 | else | |
6523 | notsupp="$notsupp $dir" | |
6524 | fi | |
6525 | fi | |
6526 | fi | |
e8eddfdd | 6527 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6528 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6529 | if test -r $srcdir/$dirname/configure ; then | |
6530 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6531 | true | |
6532 | else | |
6533 | notsupp="$notsupp $dir" | |
6534 | fi | |
6535 | fi | |
6536 | fi | |
8e1fea1a | 6537 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6538 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6539 | if test -r $srcdir/$dirname/configure ; then | |
6540 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6541 | true | |
6542 | else | |
6543 | notsupp="$notsupp $dir" | |
6544 | fi | |
6545 | fi | |
6546 | fi | |
6547 | done | |
6548 | ||
8e1fea1a | 6549 | # Quietly strip out all directories which aren't configurable in this tree. |
6550 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6551 | # is now the case. | |
2f8725b0 | 6552 | build_configdirs_all="$build_configdirs" |
6553 | build_configdirs= | |
6554 | for i in ${build_configdirs_all} ; do | |
b30fcfae | 6555 | j=`echo $i | sed -e s/build-//g` |
2f8725b0 | 6556 | if test -f ${srcdir}/$j/configure ; then |
6557 | build_configdirs="${build_configdirs} $i" | |
6558 | fi | |
6559 | done | |
6560 | ||
8e1fea1a | 6561 | configdirs_all="$configdirs" |
6562 | configdirs= | |
6563 | for i in ${configdirs_all} ; do | |
6564 | if test -f ${srcdir}/$i/configure ; then | |
6565 | configdirs="${configdirs} $i" | |
6566 | fi | |
6567 | done | |
2f8725b0 | 6568 | |
8e1fea1a | 6569 | target_configdirs_all="$target_configdirs" |
6570 | target_configdirs= | |
6571 | for i in ${target_configdirs_all} ; do | |
b30fcfae | 6572 | j=`echo $i | sed -e s/target-//g` |
8e1fea1a | 6573 | if test -f ${srcdir}/$j/configure ; then |
6574 | target_configdirs="${target_configdirs} $i" | |
6575 | fi | |
6576 | done | |
6577 | ||
8a6ab6a0 | 6578 | # Exclude target-zlib if target-libjava isn't built. |
6579 | case ${target_configdirs} in | |
6580 | *target-libjava*) | |
6581 | ;; | |
6582 | *) | |
6583 | target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`" | |
6584 | ;; | |
6585 | esac | |
6586 | ||
1015a063 | 6587 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6588 | # so we have to add it after the preceding checks. | |
6589 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6590 | then | |
6591 | case " $configdirs " in | |
6592 | *" libiberty "*) | |
6593 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6594 | configdirs="$configdirs libiberty-linker-plugin" | |
6595 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6596 | --with-libiberty=../libiberty-linker-plugin";; | |
6597 | *) | |
6598 | as_fn_error "libiberty missing" "$LINENO" 5;; | |
6599 | esac | |
6600 | fi | |
6601 | ||
944792ef | 6602 | # Sometimes we have special requirements for the host libiberty. |
6603 | extra_host_libiberty_configure_flags= | |
c850ece7 | 6604 | extra_host_zlib_configure_flags= |
944792ef | 6605 | case " $configdirs " in |
6606 | *" lto-plugin "* | *" libcc1 "*) | |
6607 | # When these are to be built as shared libraries, the same applies to | |
6608 | # libiberty. | |
6609 | extra_host_libiberty_configure_flags=--enable-shared | |
6610 | ;; | |
c850ece7 | 6611 | *" bfd "*) |
6612 | # When bfd is to be built as a shared library, the same applies to | |
6613 | # zlib. | |
6614 | if test "$enable_shared" = "yes"; then | |
6615 | extra_host_zlib_configure_flags=--enable-host-shared | |
6616 | fi | |
6617 | ;; | |
944792ef | 6618 | esac |
6619 | ||
6620 | ||
c850ece7 | 6621 | |
8e1fea1a | 6622 | # Produce a warning message for the subdirs we can't configure. |
6623 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6624 | # FSF releases, it's important to let people know when their machine isn't | |
6625 | # supported by the one or two programs in a package. | |
6626 | ||
6627 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6628 | # If $appdirs is non-empty, at least one of those directories must still | |
6629 | # be configured, or we error out. (E.g., if the gas release supports a | |
6630 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6631 | # pretend that all is well.) | |
6632 | if test -n "$appdirs" ; then | |
6633 | for dir in $appdirs ; do | |
6634 | if test -r $dir/Makefile.in ; then | |
6635 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6636 | appdirs="" | |
6637 | break | |
6638 | fi | |
2f8725b0 | 6639 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
8e1fea1a | 6640 | appdirs="" |
6641 | break | |
6642 | fi | |
6643 | fi | |
6644 | done | |
6645 | if test -n "$appdirs" ; then | |
6646 | echo "*** This configuration is not supported by this package." 1>&2 | |
6647 | exit 1 | |
6648 | fi | |
6649 | fi | |
6650 | # Okay, some application will build, or we don't care to check. Still | |
6651 | # notify of subdirs not getting built. | |
6652 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6653 | echo " ${notsupp}" 1>&2 | |
6654 | echo " (Any other directories should still work fine.)" 1>&2 | |
6655 | fi | |
6656 | ||
6657 | case "$host" in | |
6658 | *msdosdjgpp*) | |
6659 | enable_gdbtk=no ;; | |
6660 | esac | |
6661 | ||
eae5b2bc | 6662 | # To find our prefix, in gcc_cv_tool_prefix. |
6663 | ||
6664 | # The user is always right. | |
6665 | if test "${PATH_SEPARATOR+set}" != set; then | |
6666 | echo "#! /bin/sh" >conf$$.sh | |
6667 | echo "exit 0" >>conf$$.sh | |
6668 | chmod +x conf$$.sh | |
6669 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6670 | PATH_SEPARATOR=';' | |
6671 | else | |
6672 | PATH_SEPARATOR=: | |
6673 | fi | |
6674 | rm -f conf$$.sh | |
6675 | fi | |
6676 | ||
6677 | ||
6678 | ||
6679 | if test "x$exec_prefix" = xNONE; then | |
6680 | if test "x$prefix" = xNONE; then | |
6681 | gcc_cv_tool_prefix=$ac_default_prefix | |
6682 | else | |
6683 | gcc_cv_tool_prefix=$prefix | |
6684 | fi | |
6685 | else | |
6686 | gcc_cv_tool_prefix=$exec_prefix | |
6687 | fi | |
6688 | ||
6689 | # If there is no compiler in the tree, use the PATH only. In any | |
6690 | # case, if there is no compiler in the tree nobody should use | |
6691 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6692 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6693 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6694 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6695 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6696 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6697 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6698 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6699 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6700 | else | |
6701 | gcc_cv_tool_dirs= | |
6702 | fi | |
6703 | ||
6704 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6705 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6706 | fi | |
6707 | ||
6708 | ||
6709 | ||
8e1fea1a | 6710 | copy_dirs= |
6711 | ||
b30fcfae | 6712 | |
cd9a469c | 6713 | # Check whether --with-build-sysroot was given. |
6714 | if test "${with_build_sysroot+set}" = set; then : | |
6715 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
ffa8502d | 6716 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6717 | fi | |
6718 | else | |
6719 | SYSROOT_CFLAGS_FOR_TARGET= | |
cd9a469c | 6720 | fi |
ffa8502d | 6721 | |
6722 | ||
5f1f2de5 | 6723 | |
cd9a469c | 6724 | |
6725 | # Check whether --with-debug-prefix-map was given. | |
6726 | if test "${with_debug_prefix_map+set}" = set; then : | |
6727 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
5f1f2de5 | 6728 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6729 | for debug_map in $withval; do | |
6730 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6731 | done | |
6732 | fi | |
6733 | else | |
6734 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
cd9a469c | 6735 | fi |
6736 | ||
5f1f2de5 | 6737 | |
6738 | ||
c898f165 | 6739 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6740 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6741 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6742 | # We want to ensure that TARGET libraries (which we know are built with | |
6743 | # gcc) are built with "-O2 -g", so include those options when setting | |
6744 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6745 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
f5fad380 | 6746 | if test "x${is_cross_compiler}" = xyes; then |
6747 | CFLAGS_FOR_TARGET="-g -O2" | |
6748 | else | |
6749 | CFLAGS_FOR_TARGET=$CFLAGS | |
6750 | case " $CFLAGS " in | |
6751 | *" -O2 "*) ;; | |
6752 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6753 | esac | |
6754 | case " $CFLAGS " in | |
6755 | *" -g "* | *" -g3 "*) ;; | |
6756 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6757 | esac | |
6758 | fi | |
c898f165 | 6759 | fi |
6760 | ||
6761 | ||
6762 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
f5fad380 | 6763 | if test "x${is_cross_compiler}" = xyes; then |
6764 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6765 | else | |
6766 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6767 | case " $CXXFLAGS " in | |
6768 | *" -O2 "*) ;; | |
6769 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6770 | esac | |
6771 | case " $CXXFLAGS " in | |
6772 | *" -g "* | *" -g3 "*) ;; | |
6773 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6774 | esac | |
6775 | fi | |
c898f165 | 6776 | fi |
6777 | ||
6778 | ||
ed9516f5 | 6779 | |
6780 | ||
8e1fea1a | 6781 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6782 | # the named directory are copied to $(tooldir)/sys-include. | |
6783 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6784 | if test x${is_cross_compiler} = xno ; then | |
6785 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6786 | exit 1 | |
6787 | fi | |
6788 | if test x"${with_headers}" != xyes ; then | |
eae5b2bc | 6789 | x=${gcc_cv_tool_prefix} |
b30fcfae | 6790 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
8e1fea1a | 6791 | fi |
6792 | fi | |
6793 | ||
6794 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6795 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6796 | # are permitted. | |
6797 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6798 | if test x${is_cross_compiler} = xno ; then | |
6799 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6800 | exit 1 | |
6801 | fi | |
6802 | if test x"${with_libs}" != xyes ; then | |
6803 | # Copy the libraries in reverse order, so that files in the first named | |
6804 | # library override files in subsequent libraries. | |
eae5b2bc | 6805 | x=${gcc_cv_tool_prefix} |
8e1fea1a | 6806 | for l in ${with_libs}; do |
b30fcfae | 6807 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
8e1fea1a | 6808 | done |
6809 | fi | |
6810 | fi | |
6811 | ||
7bfefa9d | 6812 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
c47832b1 | 6813 | # |
6814 | # This is done by determining whether or not the appropriate directory | |
6815 | # is available, and by checking whether or not specific configurations | |
6816 | # have requested that this magic not happen. | |
b30fcfae | 6817 | # |
6818 | # The command line options always override the explicit settings in | |
e757a6a8 | 6819 | # configure.ac, and the settings in configure.ac override this magic. |
c47832b1 | 6820 | # |
b30fcfae | 6821 | # If the default for a toolchain is to use GNU as and ld, and you don't |
c47832b1 | 6822 | # want to do that, then you should use the --without-gnu-as and |
7bfefa9d | 6823 | # --without-gnu-ld options for the configure script. Similarly, if |
6824 | # the default is to use the included zlib and you don't want to do that, | |
6825 | # you should use the --with-system-zlib option for the configure script. | |
c47832b1 | 6826 | |
6827 | if test x${use_gnu_as} = x && | |
6828 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6829 | with_gnu_as=yes | |
6830 | extra_host_args="$extra_host_args --with-gnu-as" | |
6831 | fi | |
6832 | ||
6833 | if test x${use_gnu_ld} = x && | |
3d47fcf5 | 6834 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
c47832b1 | 6835 | with_gnu_ld=yes |
6836 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6837 | fi | |
6838 | ||
7bfefa9d | 6839 | if test x${use_included_zlib} = x && |
6840 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6841 | : | |
6842 | else | |
6843 | with_system_zlib=yes | |
6844 | extra_host_args="$extra_host_args --with-system-zlib" | |
6845 | fi | |
6846 | ||
c47832b1 | 6847 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6848 | # can detect this case. | |
6849 | ||
6850 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6851 | with_newlib=yes | |
6852 | extra_host_args="$extra_host_args --with-newlib" | |
6853 | fi | |
6854 | ||
8e1fea1a | 6855 | # Handle ${copy_dirs} |
6856 | set fnord ${copy_dirs} | |
6857 | shift | |
6858 | while test $# != 0 ; do | |
6859 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6860 | : | |
6861 | else | |
6862 | echo Copying $1 to $2 | |
6863 | ||
6864 | # Use the install script to create the directory and all required | |
6865 | # parent directories. | |
6866 | if test -d $2 ; then | |
6867 | : | |
6868 | else | |
6869 | echo >config.temp | |
6870 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6871 | fi | |
6872 | ||
6873 | # Copy the directory, assuming we have tar. | |
6874 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6875 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6876 | ||
6877 | # It is the responsibility of the user to correctly adjust all | |
6878 | # symlinks. If somebody can figure out how to handle them correctly | |
6879 | # here, feel free to add the code. | |
6880 | ||
6881 | echo $1 > $2/COPIED | |
6882 | fi | |
6883 | shift; shift | |
6884 | done | |
6885 | ||
c47832b1 | 6886 | # Determine a target-dependent exec_prefix that the installed |
6887 | # gcc will search in. Keep this list sorted by triplet, with | |
6888 | # the *-*-osname triplets last. | |
6889 | md_exec_prefix= | |
6890 | case "${target}" in | |
09c2d953 | 6891 | i[34567]86-pc-msdosdjgpp*) |
c47832b1 | 6892 | md_exec_prefix=/dev/env/DJDIR/bin |
6893 | ;; | |
c47832b1 | 6894 | *-*-hpux* | \ |
c47832b1 | 6895 | *-*-nto-qnx* | \ |
93faf308 | 6896 | *-*-solaris2*) |
c47832b1 | 6897 | md_exec_prefix=/usr/ccs/bin |
6898 | ;; | |
6899 | esac | |
6900 | ||
71ab34df | 6901 | extra_arflags_for_target= |
6902 | extra_nmflags_for_target= | |
6903 | extra_ranlibflags_for_target= | |
6904 | target_makefile_frag=/dev/null | |
6905 | case "${target}" in | |
57c7de11 | 6906 | spu-*-*) |
6907 | target_makefile_frag="config/mt-spu" | |
6908 | ;; | |
d781ea5c | 6909 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
f8520ad7 | 6910 | target_makefile_frag="config/mt-sde" |
6911 | ;; | |
3013c2c7 | 6912 | mipsisa*-*-elfoabi*) |
6913 | target_makefile_frag="config/mt-mips-elfoabi" | |
6914 | ;; | |
559b0712 | 6915 | mips*-*-*linux* | mips*-*-gnu*) |
6916 | target_makefile_frag="config/mt-mips-gnu" | |
6917 | ;; | |
2481a2c1 | 6918 | nios2-*-elf*) |
6919 | target_makefile_frag="config/mt-nios2-elf" | |
6920 | ;; | |
3bef4012 | 6921 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
cb8a7007 | 6922 | target_makefile_frag="config/mt-gnu" |
71ab34df | 6923 | ;; |
6924 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
b30fcfae | 6925 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
71ab34df | 6926 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6927 | # harmless if we're using GNU nm or ar. | |
6928 | extra_arflags_for_target=" -X32_64" | |
6929 | extra_nmflags_for_target=" -B -X32_64" | |
6930 | ;; | |
71ab34df | 6931 | esac |
6932 | ||
6933 | alphaieee_frag=/dev/null | |
6934 | case $target in | |
6935 | alpha*-*-*) | |
6936 | # This just makes sure to use the -mieee option to build target libs. | |
6937 | # This should probably be set individually by each library. | |
6938 | alphaieee_frag="config/mt-alphaieee" | |
6939 | ;; | |
6940 | esac | |
6941 | ||
6942 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6943 | # the target libraries, similarly if it is not specified, use -Os | |
6944 | # on selected platforms. | |
6945 | ospace_frag=/dev/null | |
6946 | case "${enable_target_optspace}:${target}" in | |
6947 | yes:*) | |
6948 | ospace_frag="config/mt-ospace" | |
6949 | ;; | |
6950 | :d30v-*) | |
6951 | ospace_frag="config/mt-d30v" | |
6952 | ;; | |
1c26a2ee | 6953 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
71ab34df | 6954 | ospace_frag="config/mt-ospace" |
6955 | ;; | |
6956 | no:* | :*) | |
6957 | ;; | |
6958 | *) | |
6959 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6960 | ;; | |
6961 | esac | |
6962 | ||
71ab34df | 6963 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6964 | # using) don't handle "\$" correctly, so don't use it here. | |
b30fcfae | 6965 | tooldir='${exec_prefix}'/${target_noncanonical} |
71ab34df | 6966 | build_tooldir=${tooldir} |
6967 | ||
71ab34df | 6968 | # Create a .gdbinit file which runs the one in srcdir |
6969 | # and tells GDB to look there for source files. | |
6970 | ||
6971 | if test -r ${srcdir}/.gdbinit ; then | |
6972 | case ${srcdir} in | |
6973 | .) ;; | |
6974 | *) cat > ./.gdbinit <<EOF | |
6975 | # ${NO_EDIT} | |
6976 | dir ${srcdir} | |
6977 | dir . | |
6978 | source ${srcdir}/.gdbinit | |
6979 | EOF | |
6980 | ;; | |
6981 | esac | |
6982 | fi | |
6983 | ||
71ab34df | 6984 | # Make sure that the compiler is able to generate an executable. If it |
6985 | # can't, we are probably in trouble. We don't care whether we can run the | |
6986 | # executable--we might be using a cross compiler--we only care whether it | |
6987 | # can be created. At this point the main configure script has set CC. | |
6988 | we_are_ok=no | |
6989 | echo "int main () { return 0; }" > conftest.c | |
6990 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
6991 | if test $? = 0 ; then | |
6992 | if test -s conftest || test -s conftest.exe ; then | |
6993 | we_are_ok=yes | |
6994 | fi | |
b30fcfae | 6995 | fi |
71ab34df | 6996 | case $we_are_ok in |
6997 | no) | |
6998 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
6999 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
7000 | rm -f conftest* | |
7001 | exit 1 | |
7002 | ;; | |
7003 | esac | |
7004 | rm -f conftest* | |
7005 | ||
7d804f04 | 7006 | # Decide which environment variable is used to find dynamic libraries. |
71ab34df | 7007 | case "${host}" in |
7008 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
b2240ff6 | 7009 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
7d804f04 | 7010 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
71ab34df | 7011 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
7012 | esac | |
7013 | ||
7d804f04 | 7014 | # On systems where the dynamic library environment variable is PATH, |
7015 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
7016 | # built executables to PATH. | |
7017 | if test "$RPATH_ENVVAR" = PATH; then | |
7018 | GCC_SHLIB_SUBDIR=/shlib | |
7019 | else | |
7020 | GCC_SHLIB_SUBDIR= | |
7021 | fi | |
7022 | ||
ee055341 | 7023 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
7024 | case $enable_bootstrap in | |
7025 | yes) | |
7026 | bootstrap_suffix=bootstrap | |
7027 | BUILD_CONFIG=bootstrap-debug | |
7028 | ;; | |
7029 | no) | |
7030 | bootstrap_suffix=no-bootstrap | |
7031 | BUILD_CONFIG= | |
7032 | ;; | |
7033 | esac | |
7034 | ||
7035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
7036 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7037 | ||
7038 | ||
7039 | # Check whether --with-build-config was given. | |
7040 | if test "${with_build_config+set}" = set; then : | |
7041 | withval=$with_build_config; case $with_build_config in | |
7042 | yes) with_build_config= ;; | |
7043 | no) with_build_config= BUILD_CONFIG= ;; | |
7044 | esac | |
7045 | fi | |
7046 | ||
7047 | ||
7048 | if test "x${with_build_config}" != x; then | |
7049 | BUILD_CONFIG=$with_build_config | |
7050 | else | |
7051 | case $BUILD_CONFIG in | |
7052 | bootstrap-debug) | |
7053 | if echo "int f (void) { return 0; }" > conftest.c && | |
7054 | ${CC} -c conftest.c && | |
7055 | mv conftest.o conftest.o.g0 && | |
7056 | ${CC} -c -g conftest.c && | |
7057 | mv conftest.o conftest.o.g && | |
7058 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7059 | : | |
7060 | else | |
7061 | BUILD_CONFIG= | |
7062 | fi | |
7063 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7064 | ;; | |
7065 | esac | |
7066 | fi | |
7067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7068 | $as_echo "$BUILD_CONFIG" >&6; } | |
7069 | ||
7070 | ||
7071 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7073 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7074 | # Check whether --enable-vtable-verify was given. | |
7075 | if test "${enable_vtable_verify+set}" = set; then : | |
7076 | enableval=$enable_vtable_verify; case "$enableval" in | |
7077 | yes) enable_vtable_verify=yes ;; | |
7078 | no) enable_vtable_verify=no ;; | |
7079 | *) enable_vtable_verify=no;; | |
7080 | esac | |
7081 | else | |
7082 | enable_vtable_verify=no | |
7083 | fi | |
7084 | ||
7085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7086 | $as_echo "$enable_vtable_verify" >&6; } | |
7087 | ||
71ab34df | 7088 | # Record target_configdirs and the configure arguments for target and |
7089 | # build configuration in Makefile. | |
7090 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
2f8725b0 | 7091 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
f4ae1a00 | 7092 | bootstrap_fixincludes=no |
71ab34df | 7093 | |
5c96a839 | 7094 | # If we are building libgomp, bootstrap it. |
7095 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7096 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7097 | fi | |
7098 | ||
ee055341 | 7099 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7100 | # or bootstrap-ubsan, bootstrap it. | |
7101 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7102 | case "$BUILD_CONFIG" in | |
7103 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7104 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
f4ae1a00 | 7105 | bootstrap_fixincludes=yes |
ee055341 | 7106 | ;; |
7107 | esac | |
579abfee | 7108 | fi |
7109 | ||
ee055341 | 7110 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7111 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7112 | test "$enable_vtable_verify" != no; then | |
b710ec85 | 7113 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7114 | fi | |
7115 | ||
202baac8 | 7116 | # If we are building libmpx, bootstrap it. |
7117 | if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then | |
7118 | bootstrap_target_libs=${bootstrap_target_libs}target-libmpx, | |
7119 | fi | |
7120 | ||
71ab34df | 7121 | # Determine whether gdb needs tk/tcl or not. |
7122 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7123 | # and in that case we want gdb to be built without tk. Ugh! | |
7124 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7125 | # so we should be able to put the 'maybe's in unconditionally and | |
7126 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7127 | # 100% sure that that's safe though. | |
8fdaf281 | 7128 | |
f843f075 | 7129 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
71ab34df | 7130 | case "$enable_gdbtk" in |
7131 | no) | |
7132 | GDB_TK="" ;; | |
8fdaf281 | 7133 | yes) |
7134 | GDB_TK="${gdb_tk}" ;; | |
71ab34df | 7135 | *) |
8fdaf281 | 7136 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7137 | # distro. Eventually someone will fix this and move Insight, nee | |
7138 | # gdbtk to a separate directory. | |
7139 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7140 | GDB_TK="${gdb_tk}" | |
7141 | else | |
7142 | GDB_TK="" | |
7143 | fi | |
7144 | ;; | |
71ab34df | 7145 | esac |
415470be | 7146 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7147 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
71ab34df | 7148 | |
01b41571 | 7149 | # Strip out unwanted targets. |
6f4f34a7 | 7150 | |
7151 | # While at that, we remove Makefiles if we were started for recursive | |
7152 | # configuration, so that the top-level Makefile reconfigures them, | |
7153 | # like we used to do when configure itself was recursive. | |
6f4f34a7 | 7154 | |
8bb79148 | 7155 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7156 | # but now we're fixing up the Makefile ourselves with the additional | |
7157 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7158 | # extrasub-{build,host,target} not because there is any reason to split | |
7159 | # the substitutions up that way, but only to remain below the limit of | |
7160 | # 99 commands in a script, for HP-UX sed. | |
7161 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
6f4f34a7 | 7162 | |
7b5fee3e | 7163 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7164 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7165 | yes:yes:*\ gold\ *:*) | |
7166 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
7167 | ;; | |
7168 | esac | |
7169 | ||
8bb79148 | 7170 | extrasub_build= |
2f8725b0 | 7171 | for module in ${build_configdirs} ; do |
93f93279 | 7172 | if test -z "${no_recursion}" \ |
7173 | && test -f ${build_subdir}/${module}/Makefile; then | |
7174 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7175 | rm -f ${build_subdir}/${module}/Makefile | |
7176 | fi | |
8bb79148 | 7177 | extrasub_build="$extrasub_build |
93f93279 | 7178 | /^@if build-$module\$/d |
7179 | /^@endif build-$module\$/d | |
7180 | /^@if build-$module-$bootstrap_suffix\$/d | |
7181 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7182 | done | |
8bb79148 | 7183 | extrasub_host= |
93f93279 | 7184 | for module in ${configdirs} ; do |
9c19a746 | 7185 | if test -z "${no_recursion}"; then |
35d84d10 | 7186 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
9c19a746 | 7187 | if test -f ${file}; then |
7188 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7189 | rm -f ${file} | |
7190 | fi | |
7191 | done | |
93f93279 | 7192 | fi |
f4ae1a00 | 7193 | case ${module},${bootstrap_fixincludes} in |
7194 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7195 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7196 | esac | |
8bb79148 | 7197 | extrasub_host="$extrasub_host |
93f93279 | 7198 | /^@if $module\$/d |
7199 | /^@endif $module\$/d | |
f4ae1a00 | 7200 | /^@if $module-$host_bootstrap_suffix\$/d |
7201 | /^@endif $module-$host_bootstrap_suffix\$/d" | |
93f93279 | 7202 | done |
8bb79148 | 7203 | extrasub_target= |
93f93279 | 7204 | for module in ${target_configdirs} ; do |
7205 | if test -z "${no_recursion}" \ | |
7206 | && test -f ${target_subdir}/${module}/Makefile; then | |
7207 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7208 | rm -f ${target_subdir}/${module}/Makefile | |
7209 | fi | |
7ab76cec | 7210 | |
7211 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7212 | case $bootstrap_target_libs in | |
7213 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7214 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7215 | esac | |
7216 | ||
8bb79148 | 7217 | extrasub_target="$extrasub_target |
93f93279 | 7218 | /^@if target-$module\$/d |
7219 | /^@endif target-$module\$/d | |
7ab76cec | 7220 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7221 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
93f93279 | 7222 | done |
7223 | ||
8bb79148 | 7224 | # Do the final fixup along with target modules. |
7225 | extrasub_target="$extrasub_target | |
01b41571 | 7226 | /^@if /,/^@endif /d" |
71ab34df | 7227 | |
7228 | # Create the serialization dependencies. This uses a temporary file. | |
7229 | ||
cd9a469c | 7230 | # Check whether --enable-serial-configure was given. |
7231 | if test "${enable_serial_configure+set}" = set; then : | |
7232 | enableval=$enable_serial_configure; | |
7233 | fi | |
11d8013a | 7234 | |
7235 | ||
622c1fa9 | 7236 | case ${enable_serial_configure} in |
7237 | yes) | |
7238 | enable_serial_build_configure=yes | |
7239 | enable_serial_host_configure=yes | |
7240 | enable_serial_target_configure=yes | |
7241 | ;; | |
7242 | esac | |
7243 | ||
71ab34df | 7244 | # These force 'configure's to be done one at a time, to avoid problems |
7245 | # with contention over a shared config.cache. | |
7246 | rm -f serdep.tmp | |
11d8013a | 7247 | echo '# serdep.tmp' > serdep.tmp |
71ab34df | 7248 | olditem= |
622c1fa9 | 7249 | test "x${enable_serial_build_configure}" = xyes && |
71ab34df | 7250 | for item in ${build_configdirs} ; do |
7251 | case ${olditem} in | |
7252 | "") ;; | |
11d8013a | 7253 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
71ab34df | 7254 | esac |
7255 | olditem=${item} | |
7256 | done | |
7257 | olditem= | |
622c1fa9 | 7258 | test "x${enable_serial_host_configure}" = xyes && |
71ab34df | 7259 | for item in ${configdirs} ; do |
7260 | case ${olditem} in | |
7261 | "") ;; | |
11d8013a | 7262 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
71ab34df | 7263 | esac |
7264 | olditem=${item} | |
7265 | done | |
7266 | olditem= | |
622c1fa9 | 7267 | test "x${enable_serial_target_configure}" = xyes && |
71ab34df | 7268 | for item in ${target_configdirs} ; do |
7269 | case ${olditem} in | |
7270 | "") ;; | |
11d8013a | 7271 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
71ab34df | 7272 | esac |
7273 | olditem=${item} | |
7274 | done | |
7275 | serialization_dependencies=serdep.tmp | |
7276 | ||
7277 | ||
11d8013a | 7278 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
b30fcfae | 7279 | # target, nonopt, and variable assignments. These are the ones we |
412c2e81 | 7280 | # might not want to pass down to subconfigures. The exception being |
7281 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7282 | # files altogether, and which should be passed on to subconfigures. | |
7283 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7284 | # so that we can pass down a consistent program-transform-name. | |
b30fcfae | 7285 | baseargs= |
0e4d1862 | 7286 | tbaseargs= |
b30fcfae | 7287 | keep_next=no |
7288 | skip_next=no | |
7289 | eval "set -- $ac_configure_args" | |
4ff792a4 | 7290 | for ac_arg |
7291 | do | |
b30fcfae | 7292 | if test X"$skip_next" = X"yes"; then |
7293 | skip_next=no | |
7294 | continue | |
7295 | fi | |
7296 | if test X"$keep_next" = X"yes"; then | |
7297 | case $ac_arg in | |
7298 | *\'*) | |
7299 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7300 | esac | |
7301 | baseargs="$baseargs '$ac_arg'" | |
0e4d1862 | 7302 | tbaseargs="$tbaseargs '$ac_arg'" |
b30fcfae | 7303 | keep_next=no |
7304 | continue | |
7305 | fi | |
7306 | ||
7307 | # Handle separated arguments. Based on the logic generated by | |
7308 | # autoconf 2.59. | |
7309 | case $ac_arg in | |
7310 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7311 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7312 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7313 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7314 | separate_arg=no | |
7315 | ;; | |
7316 | -*) | |
7317 | separate_arg=yes | |
7318 | ;; | |
7319 | *) | |
7320 | separate_arg=no | |
7321 | ;; | |
7322 | esac | |
7323 | ||
0e4d1862 | 7324 | skip_targ=no |
7325 | case $ac_arg in | |
7326 | ||
7327 | --with-* | --without-*) | |
7328 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7329 | ||
7330 | case $libopt in | |
7331 | *[-_]include) | |
7332 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7333 | ;; | |
7334 | *[-_]lib) | |
7335 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7336 | ;; | |
7337 | *) | |
7338 | lib=$libopt | |
7339 | ;; | |
7340 | esac | |
7341 | ||
7342 | ||
7343 | case $lib in | |
572cf1f7 | 7344 | mpc | mpfr | gmp | isl) |
0e4d1862 | 7345 | # If we're processing --with-$lib, --with-$lib-include or |
7346 | # --with-$lib-lib, for one of the libs above, and target is | |
7347 | # different from host, don't pass the current argument to any | |
7348 | # target library's configure. | |
7349 | if test x$is_cross_compiler = xyes; then | |
7350 | skip_targ=yes | |
7351 | fi | |
7352 | ;; | |
7353 | esac | |
7354 | ;; | |
7355 | esac | |
7356 | ||
b30fcfae | 7357 | case "$ac_arg" in |
412c2e81 | 7358 | --cache-file=/dev/null | \ |
7359 | -cache-file=/dev/null ) | |
7360 | # Handled here to avoid the test to skip args below. | |
7361 | baseargs="$baseargs '$ac_arg'" | |
0e4d1862 | 7362 | tbaseargs="$tbaseargs '$ac_arg'" |
412c2e81 | 7363 | # Assert: $separate_arg should always be no. |
7364 | keep_next=$separate_arg | |
7365 | ;; | |
b30fcfae | 7366 | --no*) |
7367 | continue | |
7368 | ;; | |
7369 | --c* | \ | |
7370 | --sr* | \ | |
7371 | --ho* | \ | |
7372 | --bu* | \ | |
7373 | --t* | \ | |
7374 | --program-* | \ | |
7375 | -cache_file* | \ | |
7376 | -srcdir* | \ | |
7377 | -host* | \ | |
7378 | -build* | \ | |
7379 | -target* | \ | |
7380 | -program-prefix* | \ | |
7381 | -program-suffix* | \ | |
7382 | -program-transform-name* ) | |
7383 | skip_next=$separate_arg | |
7384 | continue | |
7385 | ;; | |
7386 | -*) | |
7387 | # An option. Add it. | |
7388 | case $ac_arg in | |
7389 | *\'*) | |
7390 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7391 | esac | |
7392 | baseargs="$baseargs '$ac_arg'" | |
0e4d1862 | 7393 | if test X"$skip_targ" = Xno; then |
7394 | tbaseargs="$tbaseargs '$ac_arg'" | |
7395 | fi | |
b30fcfae | 7396 | keep_next=$separate_arg |
7397 | ;; | |
7398 | *) | |
7399 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7400 | # pass it down; let the Makefile handle this. | |
7401 | continue | |
7402 | ;; | |
7403 | esac | |
7404 | done | |
7405 | # Remove the initial space we just introduced and, as these will be | |
7406 | # expanded by make, quote '$'. | |
7407 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
71ab34df | 7408 | |
fbfea1fa | 7409 | # Add in --program-transform-name, after --program-prefix and |
7410 | # --program-suffix have been applied to it. Autoconf has already | |
7411 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7412 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
b30fcfae | 7413 | # quotes, because this will be expanded first by make and then by the shell. |
fbfea1fa | 7414 | # Also, because we want to override the logic in subdir configure scripts to |
7415 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7416 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7417 | ${program_transform_name} | |
7418 | EOF_SED | |
7419 | gcc_transform_name=`cat conftestsed.out` | |
7420 | rm -f conftestsed.out | |
7421 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
0e4d1862 | 7422 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
af7bb0c0 | 7423 | if test "$silent" = yes; then |
7424 | baseargs="$baseargs --silent" | |
0e4d1862 | 7425 | tbaseargs="$tbaseargs --silent" |
af7bb0c0 | 7426 | fi |
cd2f3773 | 7427 | baseargs="$baseargs --disable-option-checking" |
0e4d1862 | 7428 | tbaseargs="$tbaseargs --disable-option-checking" |
fbfea1fa | 7429 | |
372a3f1e | 7430 | # Record and document user additions to sub configure arguments. |
7431 | ||
7432 | ||
7433 | ||
7434 | ||
71ab34df | 7435 | # For the build-side libraries, we just need to pretend we're native, |
7436 | # and not use the same cache file. Multilibs are neither needed nor | |
b85b703b | 7437 | # desired. We can't even use the same cache file for all build-side |
7438 | # libraries, as they're compiled differently; some with C, some with | |
7439 | # C++ or with different feature-enabling options. | |
7440 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
71ab34df | 7441 | |
7442 | # For host modules, accept cache file option, or specification as blank. | |
7443 | case "${cache_file}" in | |
7444 | "") # empty | |
7445 | cache_file_option="" ;; | |
7446 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7447 | cache_file_option="--cache-file=${cache_file}" ;; | |
7448 | *) # relative path | |
7449 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7450 | esac | |
7451 | ||
ba1081ef | 7452 | # Host dirs don't like to share a cache file either, horribly enough. |
7453 | # This seems to be due to autoconf 2.5x stupidity. | |
372a3f1e | 7454 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
71ab34df | 7455 | |
0e4d1862 | 7456 | target_configargs="$target_configargs ${tbaseargs}" |
71ab34df | 7457 | |
7458 | # Passing a --with-cross-host argument lets the target libraries know | |
7459 | # whether they are being built with a cross-compiler or being built | |
7460 | # native. However, it would be better to use other mechanisms to make the | |
7461 | # sorts of decisions they want to make on this basis. Please consider | |
7462 | # this option to be deprecated. FIXME. | |
7463 | if test x${is_cross_compiler} = xyes ; then | |
b30fcfae | 7464 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
71ab34df | 7465 | fi |
7466 | ||
87ebeb4c | 7467 | # Special user-friendly check for native x86_64-linux build, if |
7468 | # multilib is not explicitly enabled. | |
7469 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7470 | x86_64-*linux*:yes:$build:$build:) | |
6efd9d79 | 7471 | # Make sure we have a development environment that handles 32-bit |
87ebeb4c | 7472 | dev64=no |
7473 | echo "int main () { return 0; }" > conftest.c | |
7474 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7475 | if test $? = 0 ; then | |
7476 | if test -s conftest || test -s conftest.exe ; then | |
7477 | dev64=yes | |
7478 | fi | |
7479 | fi | |
7480 | rm -f conftest* | |
7481 | if test x${dev64} != xyes ; then | |
6efd9d79 | 7482 | 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 | 7483 | fi |
7484 | ;; | |
7485 | esac | |
7486 | ||
59a40389 | 7487 | # Default to --enable-multilib. |
7488 | if test x${enable_multilib} = x ; then | |
71ab34df | 7489 | target_configargs="--enable-multilib ${target_configargs}" |
59a40389 | 7490 | fi |
71ab34df | 7491 | |
7492 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7493 | # changed from the earlier setting of with_newlib. | |
7494 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7495 | target_configargs="--with-newlib ${target_configargs}" | |
7496 | fi | |
7497 | ||
74fef112 | 7498 | # Different target subdirs use different values of certain variables |
7499 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7500 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7501 | # it doesn't automatically accept command-line overrides of them. | |
7502 | # This means it's not safe for target subdirs to share a cache file, | |
7503 | # which is disgusting, but there you have it. Hopefully this can be | |
7504 | # fixed in future. It's still worthwhile to use a cache file for each | |
7505 | # directory. I think. | |
7506 | ||
a8abbd9d | 7507 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7508 | # We need to pass --target, as newer autoconf's requires consistency | |
7509 | # for target_alias and gcc doesn't manage it consistently. | |
d45318b3 | 7510 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
71ab34df | 7511 | |
71ab34df | 7512 | FLAGS_FOR_TARGET= |
7513 | case " $target_configdirs " in | |
7514 | *" newlib "*) | |
7515 | case " $target_configargs " in | |
7516 | *" --with-newlib "*) | |
7517 | case "$target" in | |
fe284774 | 7518 | *-cygwin*) |
db54564d | 7519 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
fe284774 | 7520 | ;; |
71ab34df | 7521 | esac |
7522 | ||
7523 | # If we're not building GCC, don't discard standard headers. | |
7524 | if test -d ${srcdir}/gcc; then | |
7525 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7526 | ||
7527 | if test "${build}" != "${host}"; then | |
7528 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7529 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7530 | # to it. This is right: we don't want to search that directory | |
7531 | # for binaries, but we want the header files in there, so add | |
7532 | # them explicitly. | |
e619f0a6 | 7533 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
71ab34df | 7534 | |
7535 | # Someone might think of using the pre-installed headers on | |
7536 | # Canadian crosses, in case the installed compiler is not fully | |
7537 | # compatible with the compiler being built. In this case, it | |
7538 | # would be better to flag an error than risking having | |
7539 | # incompatible object files being constructed. We can't | |
7540 | # guarantee that an error will be flagged, but let's hope the | |
7541 | # compiler will do it, when presented with incompatible header | |
7542 | # files. | |
7543 | fi | |
7544 | fi | |
7545 | ||
7546 | case "${target}-${is_cross_compiler}" in | |
f74ea578 | 7547 | i[3456789]86-*-linux*-no) |
71ab34df | 7548 | # Here host == target, so we don't need to build gcc, |
7549 | # so we don't want to discard standard headers. | |
7550 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7551 | ;; | |
7552 | *) | |
7553 | # If we're building newlib, use its generic headers last, but search | |
7554 | # for any libc-related directories first (so make it the last -B | |
7555 | # switch). | |
7556 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
1c5767f1 | 7557 | |
7558 | # If we're building libgloss, find the startup file, simulator library | |
7559 | # and linker script. | |
7560 | case " $target_configdirs " in | |
7561 | *" libgloss "*) | |
7562 | # Look for startup file, simulator library and maybe linker script. | |
7563 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7564 | # Look for libnosys.a in case the target needs it. | |
7565 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7566 | # Most targets have the linker script in the source directory. | |
7567 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7568 | ;; | |
7569 | esac | |
71ab34df | 7570 | ;; |
7571 | esac | |
7572 | ;; | |
7573 | esac | |
7574 | ;; | |
7575 | esac | |
fe284774 | 7576 | |
d6d689df | 7577 | case "$target" in |
fe284774 | 7578 | x86_64-*mingw* | *-w64-mingw*) |
7579 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7580 | # however, use a symlink named 'mingw' in ${prefix} . | |
7581 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7582 | ;; | |
7583 | *-mingw*) | |
7584 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7585 | 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' | |
7586 | ;; | |
d6d689df | 7587 | esac |
71ab34df | 7588 | |
d8e9ea04 | 7589 | # Allow the user to override the flags for |
7590 | # our build compiler if desired. | |
823e8b8d | 7591 | if test x"${build}" = x"${host}" ; then |
7592 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7593 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7594 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7595 | fi | |
d8e9ea04 | 7596 | |
71ab34df | 7597 | # On Canadian crosses, we'll be searching the right directories for |
7598 | # the previously-installed cross compiler, so don't bother to add | |
7599 | # flags for directories within the install tree of the compiler | |
7600 | # being built; programs in there won't even run. | |
7601 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7602 | # Search for pre-installed headers if nothing else fits. | |
5750c7d4 | 7603 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
71ab34df | 7604 | fi |
7605 | ||
7606 | if test "x${use_gnu_ld}" = x && | |
7607 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7608 | # Arrange for us to find uninstalled linker scripts. | |
c1eb9e31 | 7609 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
71ab34df | 7610 | fi |
7611 | ||
24714a39 | 7612 | # Search for other target-specific linker scripts and such. |
7613 | case "${target}" in | |
38d7211b | 7614 | mep*) |
7615 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7616 | ;; | |
24714a39 | 7617 | esac |
7618 | ||
71ab34df | 7619 | # Makefile fragments. |
03c65091 | 7620 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7621 | do | |
7622 | eval fragval=\$$frag | |
7623 | if test $fragval != /dev/null; then | |
7624 | eval $frag=${srcdir}/$fragval | |
7625 | fi | |
7626 | done | |
71ab34df | 7627 | |
7628 | ||
7629 | ||
7630 | ||
7631 | ||
7632 | # Miscellanea: directories, flags, etc. | |
7633 | ||
7634 | ||
7635 | ||
7636 | ||
7637 | ||
7638 | ||
7639 | ||
7d804f04 | 7640 | |
2f8725b0 | 7641 | # Build module lists & subconfigure args. |
71ab34df | 7642 | |
7643 | ||
7644 | ||
f5aebe3e | 7645 | # Host module lists & subconfigure args. |
7646 | ||
7647 | ||
7648 | ||
1fda3360 | 7649 | |
f5aebe3e | 7650 | # Target module lists & subconfigure args. |
7651 | ||
7652 | ||
7653 | ||
7654 | # Build tools. | |
7655 | ||
7656 | ||
7657 | ||
93c5e793 | 7658 | |
7659 | ||
7660 | ||
7661 | ||
7662 | ||
7663 | ||
7664 | ||
7665 | ||
7666 | ||
7667 | ||
7668 | ||
7669 | ||
7670 | ||
7671 | ||
f5aebe3e | 7672 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7673 | # on the build machine. These are used if the Makefile can't locate these | |
7674 | # programs in objdir. | |
7675 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7676 | ||
7677 | for ac_prog in 'bison -y' byacc yacc | |
7678 | do | |
b30fcfae | 7679 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7680 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7682 | $as_echo_n "checking for $ac_word... " >&6; } | |
7683 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7684 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7685 | else |
7686 | if test -n "$YACC"; then | |
7687 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7688 | else | |
b30fcfae | 7689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7690 | for as_dir in $PATH | |
7691 | do | |
7692 | IFS=$as_save_IFS | |
7693 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7694 | for ac_exec_ext in '' $ac_executable_extensions; do |
7695 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7696 | ac_cv_prog_YACC="$ac_prog" |
cd9a469c | 7697 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7698 | break 2 |
7699 | fi | |
7700 | done | |
cd9a469c | 7701 | done |
7702 | IFS=$as_save_IFS | |
b30fcfae | 7703 | |
f5aebe3e | 7704 | fi |
7705 | fi | |
b30fcfae | 7706 | YACC=$ac_cv_prog_YACC |
f5aebe3e | 7707 | if test -n "$YACC"; then |
cd9a469c | 7708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7709 | $as_echo "$YACC" >&6; } | |
f5aebe3e | 7710 | else |
cd9a469c | 7711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7712 | $as_echo "no" >&6; } | |
f5aebe3e | 7713 | fi |
7714 | ||
cd9a469c | 7715 | |
b30fcfae | 7716 | test -n "$YACC" && break |
f5aebe3e | 7717 | done |
7718 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7719 | ||
7720 | case " $build_configdirs " in | |
7721 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
f5aebe3e | 7722 | esac |
7723 | ||
7724 | for ac_prog in bison | |
7725 | do | |
b30fcfae | 7726 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7727 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7729 | $as_echo_n "checking for $ac_word... " >&6; } | |
7730 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7731 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7732 | else |
7733 | if test -n "$BISON"; then | |
7734 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7735 | else | |
b30fcfae | 7736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7737 | for as_dir in $PATH | |
7738 | do | |
7739 | IFS=$as_save_IFS | |
7740 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7741 | for ac_exec_ext in '' $ac_executable_extensions; do |
7742 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7743 | ac_cv_prog_BISON="$ac_prog" |
cd9a469c | 7744 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7745 | break 2 |
7746 | fi | |
7747 | done | |
cd9a469c | 7748 | done |
7749 | IFS=$as_save_IFS | |
b30fcfae | 7750 | |
f5aebe3e | 7751 | fi |
7752 | fi | |
b30fcfae | 7753 | BISON=$ac_cv_prog_BISON |
f5aebe3e | 7754 | if test -n "$BISON"; then |
cd9a469c | 7755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7756 | $as_echo "$BISON" >&6; } | |
f5aebe3e | 7757 | else |
cd9a469c | 7758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7759 | $as_echo "no" >&6; } | |
f5aebe3e | 7760 | fi |
7761 | ||
cd9a469c | 7762 | |
b30fcfae | 7763 | test -n "$BISON" && break |
f5aebe3e | 7764 | done |
7765 | test -n "$BISON" || BISON="$MISSING bison" | |
7766 | ||
7767 | case " $build_configdirs " in | |
7768 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7769 | esac | |
7770 | ||
7771 | for ac_prog in gm4 gnum4 m4 | |
7772 | do | |
b30fcfae | 7773 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7774 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7776 | $as_echo_n "checking for $ac_word... " >&6; } | |
7777 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7778 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7779 | else |
7780 | if test -n "$M4"; then | |
7781 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7782 | else | |
b30fcfae | 7783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7784 | for as_dir in $PATH | |
7785 | do | |
7786 | IFS=$as_save_IFS | |
7787 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7788 | for ac_exec_ext in '' $ac_executable_extensions; do |
7789 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7790 | ac_cv_prog_M4="$ac_prog" |
cd9a469c | 7791 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7792 | break 2 |
7793 | fi | |
7794 | done | |
cd9a469c | 7795 | done |
7796 | IFS=$as_save_IFS | |
b30fcfae | 7797 | |
f5aebe3e | 7798 | fi |
7799 | fi | |
b30fcfae | 7800 | M4=$ac_cv_prog_M4 |
f5aebe3e | 7801 | if test -n "$M4"; then |
cd9a469c | 7802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7803 | $as_echo "$M4" >&6; } | |
f5aebe3e | 7804 | else |
cd9a469c | 7805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7806 | $as_echo "no" >&6; } | |
f5aebe3e | 7807 | fi |
7808 | ||
cd9a469c | 7809 | |
b30fcfae | 7810 | test -n "$M4" && break |
f5aebe3e | 7811 | done |
7812 | test -n "$M4" || M4="$MISSING m4" | |
7813 | ||
7814 | case " $build_configdirs " in | |
7815 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7816 | esac | |
7817 | ||
7818 | for ac_prog in flex lex | |
7819 | do | |
b30fcfae | 7820 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7821 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7823 | $as_echo_n "checking for $ac_word... " >&6; } | |
7824 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7825 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7826 | else |
7827 | if test -n "$LEX"; then | |
7828 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7829 | else | |
b30fcfae | 7830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7831 | for as_dir in $PATH | |
7832 | do | |
7833 | IFS=$as_save_IFS | |
7834 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7835 | for ac_exec_ext in '' $ac_executable_extensions; do |
7836 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7837 | ac_cv_prog_LEX="$ac_prog" |
cd9a469c | 7838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7839 | break 2 |
7840 | fi | |
7841 | done | |
cd9a469c | 7842 | done |
7843 | IFS=$as_save_IFS | |
b30fcfae | 7844 | |
f5aebe3e | 7845 | fi |
7846 | fi | |
b30fcfae | 7847 | LEX=$ac_cv_prog_LEX |
f5aebe3e | 7848 | if test -n "$LEX"; then |
cd9a469c | 7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7850 | $as_echo "$LEX" >&6; } | |
f5aebe3e | 7851 | else |
cd9a469c | 7852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7853 | $as_echo "no" >&6; } | |
f5aebe3e | 7854 | fi |
7855 | ||
cd9a469c | 7856 | |
b30fcfae | 7857 | test -n "$LEX" && break |
f5aebe3e | 7858 | done |
7859 | test -n "$LEX" || LEX="$MISSING flex" | |
7860 | ||
7861 | case " $build_configdirs " in | |
7862 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7863 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7864 | esac | |
7865 | ||
7866 | for ac_prog in flex | |
7867 | do | |
b30fcfae | 7868 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7869 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7871 | $as_echo_n "checking for $ac_word... " >&6; } | |
7872 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7873 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7874 | else |
7875 | if test -n "$FLEX"; then | |
7876 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7877 | else | |
b30fcfae | 7878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7879 | for as_dir in $PATH | |
7880 | do | |
7881 | IFS=$as_save_IFS | |
7882 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7883 | for ac_exec_ext in '' $ac_executable_extensions; do |
7884 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7885 | ac_cv_prog_FLEX="$ac_prog" |
cd9a469c | 7886 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7887 | break 2 |
7888 | fi | |
7889 | done | |
cd9a469c | 7890 | done |
7891 | IFS=$as_save_IFS | |
b30fcfae | 7892 | |
f5aebe3e | 7893 | fi |
7894 | fi | |
b30fcfae | 7895 | FLEX=$ac_cv_prog_FLEX |
f5aebe3e | 7896 | if test -n "$FLEX"; then |
cd9a469c | 7897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7898 | $as_echo "$FLEX" >&6; } | |
f5aebe3e | 7899 | else |
cd9a469c | 7900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7901 | $as_echo "no" >&6; } | |
f5aebe3e | 7902 | fi |
7903 | ||
cd9a469c | 7904 | |
b30fcfae | 7905 | test -n "$FLEX" && break |
f5aebe3e | 7906 | done |
7907 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7908 | ||
7909 | case " $build_configdirs " in | |
7910 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7911 | esac | |
7912 | ||
7913 | for ac_prog in makeinfo | |
7914 | do | |
b30fcfae | 7915 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7916 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7918 | $as_echo_n "checking for $ac_word... " >&6; } | |
7919 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7920 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7921 | else |
7922 | if test -n "$MAKEINFO"; then | |
7923 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7924 | else | |
b30fcfae | 7925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7926 | for as_dir in $PATH | |
7927 | do | |
7928 | IFS=$as_save_IFS | |
7929 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7930 | for ac_exec_ext in '' $ac_executable_extensions; do |
7931 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7932 | ac_cv_prog_MAKEINFO="$ac_prog" |
cd9a469c | 7933 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7934 | break 2 |
7935 | fi | |
7936 | done | |
cd9a469c | 7937 | done |
7938 | IFS=$as_save_IFS | |
b30fcfae | 7939 | |
f5aebe3e | 7940 | fi |
7941 | fi | |
b30fcfae | 7942 | MAKEINFO=$ac_cv_prog_MAKEINFO |
f5aebe3e | 7943 | if test -n "$MAKEINFO"; then |
cd9a469c | 7944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7945 | $as_echo "$MAKEINFO" >&6; } | |
f5aebe3e | 7946 | else |
cd9a469c | 7947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7948 | $as_echo "no" >&6; } | |
f5aebe3e | 7949 | fi |
7950 | ||
cd9a469c | 7951 | |
b30fcfae | 7952 | test -n "$MAKEINFO" && break |
f5aebe3e | 7953 | done |
7954 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7955 | ||
7956 | case " $build_configdirs " in | |
7957 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7958 | *) | |
7959 | ||
03caadda | 7960 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
f5aebe3e | 7961 | # higher, else we use the "missing" dummy. |
7962 | if ${MAKEINFO} --version \ | |
03caadda | 7963 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
f5aebe3e | 7964 | : |
7965 | else | |
7966 | MAKEINFO="$MISSING makeinfo" | |
7967 | fi | |
7968 | ;; | |
7969 | ||
7970 | esac | |
71ab34df | 7971 | |
f5aebe3e | 7972 | # FIXME: expect and dejagnu may become build tools? |
71ab34df | 7973 | |
f5aebe3e | 7974 | for ac_prog in expect |
7975 | do | |
b30fcfae | 7976 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7977 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7979 | $as_echo_n "checking for $ac_word... " >&6; } | |
7980 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7981 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7982 | else |
7983 | if test -n "$EXPECT"; then | |
7984 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7985 | else | |
b30fcfae | 7986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7987 | for as_dir in $PATH | |
7988 | do | |
7989 | IFS=$as_save_IFS | |
7990 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7991 | for ac_exec_ext in '' $ac_executable_extensions; do |
7992 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7993 | ac_cv_prog_EXPECT="$ac_prog" |
cd9a469c | 7994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7995 | break 2 |
7996 | fi | |
7997 | done | |
cd9a469c | 7998 | done |
7999 | IFS=$as_save_IFS | |
b30fcfae | 8000 | |
f5aebe3e | 8001 | fi |
8002 | fi | |
b30fcfae | 8003 | EXPECT=$ac_cv_prog_EXPECT |
f5aebe3e | 8004 | if test -n "$EXPECT"; then |
cd9a469c | 8005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8006 | $as_echo "$EXPECT" >&6; } | |
f5aebe3e | 8007 | else |
cd9a469c | 8008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8009 | $as_echo "no" >&6; } | |
f5aebe3e | 8010 | fi |
71ab34df | 8011 | |
cd9a469c | 8012 | |
b30fcfae | 8013 | test -n "$EXPECT" && break |
f5aebe3e | 8014 | done |
8015 | test -n "$EXPECT" || EXPECT="expect" | |
71ab34df | 8016 | |
f5aebe3e | 8017 | case " $configdirs " in |
8018 | *" expect "*) | |
8019 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8020 | ;; | |
8021 | esac | |
71ab34df | 8022 | |
f5aebe3e | 8023 | for ac_prog in runtest |
8024 | do | |
b30fcfae | 8025 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 8026 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 8027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8028 | $as_echo_n "checking for $ac_word... " >&6; } | |
8029 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
8030 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 8031 | else |
8032 | if test -n "$RUNTEST"; then | |
8033 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
a4af6a58 | 8034 | else |
b30fcfae | 8035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8036 | for as_dir in $PATH | |
8037 | do | |
8038 | IFS=$as_save_IFS | |
8039 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8040 | for ac_exec_ext in '' $ac_executable_extensions; do |
8041 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8042 | ac_cv_prog_RUNTEST="$ac_prog" |
cd9a469c | 8043 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8044 | break 2 |
8045 | fi | |
8046 | done | |
cd9a469c | 8047 | done |
8048 | IFS=$as_save_IFS | |
b30fcfae | 8049 | |
f5aebe3e | 8050 | fi |
8051 | fi | |
b30fcfae | 8052 | RUNTEST=$ac_cv_prog_RUNTEST |
f5aebe3e | 8053 | if test -n "$RUNTEST"; then |
cd9a469c | 8054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8055 | $as_echo "$RUNTEST" >&6; } | |
f5aebe3e | 8056 | else |
cd9a469c | 8057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8058 | $as_echo "no" >&6; } | |
f5aebe3e | 8059 | fi |
71ab34df | 8060 | |
cd9a469c | 8061 | |
b30fcfae | 8062 | test -n "$RUNTEST" && break |
f5aebe3e | 8063 | done |
8064 | test -n "$RUNTEST" || RUNTEST="runtest" | |
71ab34df | 8065 | |
f5aebe3e | 8066 | case " $configdirs " in |
8067 | *" dejagnu "*) | |
8d365775 | 8068 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
f5aebe3e | 8069 | ;; |
8070 | esac | |
71ab34df | 8071 | |
8072 | ||
71ab34df | 8073 | # Host tools. |
bb612911 | 8074 | ncn_tool_prefix= |
8075 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8076 | ncn_target_tool_prefix= | |
8077 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8078 | ||
95a05732 | 8079 | |
8080 | ||
8081 | if test -n "$AR"; then | |
8082 | ac_cv_prog_AR=$AR | |
8083 | elif test -n "$ac_cv_prog_AR"; then | |
8084 | AR=$ac_cv_prog_AR | |
8085 | fi | |
8086 | ||
8087 | if test -n "$ac_cv_prog_AR"; then | |
8088 | for ncn_progname in ar; do | |
8089 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8090 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8092 | $as_echo_n "checking for $ac_word... " >&6; } | |
8093 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8094 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8095 | else |
8096 | if test -n "$AR"; then | |
8097 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8098 | else | |
8099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8100 | for as_dir in $PATH | |
8101 | do | |
8102 | IFS=$as_save_IFS | |
8103 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8104 | for ac_exec_ext in '' $ac_executable_extensions; do |
8105 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8106 | ac_cv_prog_AR="${ncn_progname}" |
cd9a469c | 8107 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8108 | break 2 |
8109 | fi | |
8110 | done | |
cd9a469c | 8111 | done |
8112 | IFS=$as_save_IFS | |
95a05732 | 8113 | |
8114 | fi | |
8115 | fi | |
8116 | AR=$ac_cv_prog_AR | |
8117 | if test -n "$AR"; then | |
cd9a469c | 8118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8119 | $as_echo "$AR" >&6; } | |
95a05732 | 8120 | else |
cd9a469c | 8121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8122 | $as_echo "no" >&6; } | |
95a05732 | 8123 | fi |
8124 | ||
cd9a469c | 8125 | |
95a05732 | 8126 | done |
8127 | fi | |
8128 | ||
8129 | for ncn_progname in ar; do | |
768691b5 | 8130 | if test -n "$ncn_tool_prefix"; then |
8131 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8132 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8134 | $as_echo_n "checking for $ac_word... " >&6; } | |
8135 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8136 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8137 | else |
8138 | if test -n "$AR"; then | |
8139 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8140 | else | |
b30fcfae | 8141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8142 | for as_dir in $PATH | |
8143 | do | |
8144 | IFS=$as_save_IFS | |
8145 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8146 | for ac_exec_ext in '' $ac_executable_extensions; do |
8147 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8148 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8149 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8150 | break 2 |
8151 | fi | |
8152 | done | |
cd9a469c | 8153 | done |
8154 | IFS=$as_save_IFS | |
b30fcfae | 8155 | |
bb612911 | 8156 | fi |
8157 | fi | |
b30fcfae | 8158 | AR=$ac_cv_prog_AR |
bb612911 | 8159 | if test -n "$AR"; then |
cd9a469c | 8160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8161 | $as_echo "$AR" >&6; } | |
bb612911 | 8162 | else |
cd9a469c | 8163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8164 | $as_echo "no" >&6; } | |
bb612911 | 8165 | fi |
8166 | ||
cd9a469c | 8167 | |
768691b5 | 8168 | fi |
8169 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8170 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8171 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8173 | $as_echo_n "checking for $ac_word... " >&6; } | |
8174 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8175 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8176 | else |
768691b5 | 8177 | if test -n "$AR"; then |
ae48753c | 8178 | ac_cv_prog_AR="$AR" # Let the user override the test. |
8179 | else | |
b30fcfae | 8180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8181 | for as_dir in $PATH | |
8182 | do | |
8183 | IFS=$as_save_IFS | |
8184 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8185 | for ac_exec_ext in '' $ac_executable_extensions; do |
8186 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8187 | ac_cv_prog_AR="${ncn_progname}" |
cd9a469c | 8188 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8189 | break 2 |
8190 | fi | |
8191 | done | |
cd9a469c | 8192 | done |
8193 | IFS=$as_save_IFS | |
b30fcfae | 8194 | |
bb612911 | 8195 | fi |
8196 | fi | |
b30fcfae | 8197 | AR=$ac_cv_prog_AR |
768691b5 | 8198 | if test -n "$AR"; then |
cd9a469c | 8199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8200 | $as_echo "$AR" >&6; } | |
bb612911 | 8201 | else |
cd9a469c | 8202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8203 | $as_echo "no" >&6; } | |
bb612911 | 8204 | fi |
b30fcfae | 8205 | |
cd9a469c | 8206 | |
768691b5 | 8207 | fi |
8208 | test -n "$ac_cv_prog_AR" && break | |
8209 | done | |
8210 | ||
8211 | if test -z "$ac_cv_prog_AR" ; then | |
8212 | set dummy ar | |
8213 | if test $build = $host ; then | |
8214 | AR="$2" | |
bb612911 | 8215 | else |
768691b5 | 8216 | AR="${ncn_tool_prefix}$2" |
bb612911 | 8217 | fi |
bb612911 | 8218 | fi |
8219 | ||
95a05732 | 8220 | |
8221 | ||
8222 | if test -n "$AS"; then | |
8223 | ac_cv_prog_AS=$AS | |
8224 | elif test -n "$ac_cv_prog_AS"; then | |
8225 | AS=$ac_cv_prog_AS | |
8226 | fi | |
8227 | ||
8228 | if test -n "$ac_cv_prog_AS"; then | |
8229 | for ncn_progname in as; do | |
8230 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8231 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8233 | $as_echo_n "checking for $ac_word... " >&6; } | |
8234 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8235 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8236 | else |
8237 | if test -n "$AS"; then | |
8238 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8239 | else | |
8240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8241 | for as_dir in $PATH | |
8242 | do | |
8243 | IFS=$as_save_IFS | |
8244 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8245 | for ac_exec_ext in '' $ac_executable_extensions; do |
8246 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8247 | ac_cv_prog_AS="${ncn_progname}" |
cd9a469c | 8248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8249 | break 2 |
8250 | fi | |
8251 | done | |
cd9a469c | 8252 | done |
8253 | IFS=$as_save_IFS | |
95a05732 | 8254 | |
8255 | fi | |
8256 | fi | |
8257 | AS=$ac_cv_prog_AS | |
8258 | if test -n "$AS"; then | |
cd9a469c | 8259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8260 | $as_echo "$AS" >&6; } | |
95a05732 | 8261 | else |
cd9a469c | 8262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8263 | $as_echo "no" >&6; } | |
95a05732 | 8264 | fi |
8265 | ||
cd9a469c | 8266 | |
95a05732 | 8267 | done |
8268 | fi | |
8269 | ||
8270 | for ncn_progname in as; do | |
768691b5 | 8271 | if test -n "$ncn_tool_prefix"; then |
8272 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8273 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8275 | $as_echo_n "checking for $ac_word... " >&6; } | |
8276 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8277 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8278 | else |
8279 | if test -n "$AS"; then | |
8280 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
a83ffacf | 8281 | else |
b30fcfae | 8282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8283 | for as_dir in $PATH | |
8284 | do | |
8285 | IFS=$as_save_IFS | |
8286 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8287 | for ac_exec_ext in '' $ac_executable_extensions; do |
8288 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8289 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8290 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8291 | break 2 |
8292 | fi | |
8293 | done | |
cd9a469c | 8294 | done |
8295 | IFS=$as_save_IFS | |
b30fcfae | 8296 | |
bb612911 | 8297 | fi |
8298 | fi | |
b30fcfae | 8299 | AS=$ac_cv_prog_AS |
bb612911 | 8300 | if test -n "$AS"; then |
cd9a469c | 8301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8302 | $as_echo "$AS" >&6; } | |
bb612911 | 8303 | else |
cd9a469c | 8304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8305 | $as_echo "no" >&6; } | |
bb612911 | 8306 | fi |
8307 | ||
cd9a469c | 8308 | |
768691b5 | 8309 | fi |
8310 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8311 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8312 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8314 | $as_echo_n "checking for $ac_word... " >&6; } | |
8315 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8316 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8317 | else |
768691b5 | 8318 | if test -n "$AS"; then |
8319 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
bb612911 | 8320 | else |
b30fcfae | 8321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8322 | for as_dir in $PATH | |
8323 | do | |
8324 | IFS=$as_save_IFS | |
8325 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8326 | for ac_exec_ext in '' $ac_executable_extensions; do |
8327 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8328 | ac_cv_prog_AS="${ncn_progname}" |
cd9a469c | 8329 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8330 | break 2 |
8331 | fi | |
8332 | done | |
cd9a469c | 8333 | done |
8334 | IFS=$as_save_IFS | |
b30fcfae | 8335 | |
bb612911 | 8336 | fi |
8337 | fi | |
b30fcfae | 8338 | AS=$ac_cv_prog_AS |
768691b5 | 8339 | if test -n "$AS"; then |
cd9a469c | 8340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8341 | $as_echo "$AS" >&6; } | |
bb612911 | 8342 | else |
cd9a469c | 8343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8344 | $as_echo "no" >&6; } | |
bb612911 | 8345 | fi |
b30fcfae | 8346 | |
cd9a469c | 8347 | |
768691b5 | 8348 | fi |
8349 | test -n "$ac_cv_prog_AS" && break | |
8350 | done | |
8351 | ||
8352 | if test -z "$ac_cv_prog_AS" ; then | |
8353 | set dummy as | |
8354 | if test $build = $host ; then | |
8355 | AS="$2" | |
bb612911 | 8356 | else |
768691b5 | 8357 | AS="${ncn_tool_prefix}$2" |
bb612911 | 8358 | fi |
bb612911 | 8359 | fi |
8360 | ||
95a05732 | 8361 | |
8362 | ||
8363 | if test -n "$DLLTOOL"; then | |
8364 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8365 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8366 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8367 | fi | |
8368 | ||
8369 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8370 | for ncn_progname in dlltool; do | |
8371 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8372 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8374 | $as_echo_n "checking for $ac_word... " >&6; } | |
8375 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8376 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8377 | else |
8378 | if test -n "$DLLTOOL"; then | |
8379 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8380 | else | |
8381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8382 | for as_dir in $PATH | |
8383 | do | |
8384 | IFS=$as_save_IFS | |
8385 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8386 | for ac_exec_ext in '' $ac_executable_extensions; do |
8387 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8388 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
cd9a469c | 8389 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8390 | break 2 |
8391 | fi | |
8392 | done | |
cd9a469c | 8393 | done |
8394 | IFS=$as_save_IFS | |
95a05732 | 8395 | |
8396 | fi | |
8397 | fi | |
8398 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8399 | if test -n "$DLLTOOL"; then | |
cd9a469c | 8400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8401 | $as_echo "$DLLTOOL" >&6; } | |
95a05732 | 8402 | else |
cd9a469c | 8403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8404 | $as_echo "no" >&6; } | |
95a05732 | 8405 | fi |
8406 | ||
cd9a469c | 8407 | |
95a05732 | 8408 | done |
8409 | fi | |
8410 | ||
8411 | for ncn_progname in dlltool; do | |
768691b5 | 8412 | if test -n "$ncn_tool_prefix"; then |
8413 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8414 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8416 | $as_echo_n "checking for $ac_word... " >&6; } | |
8417 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8418 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8419 | else |
8420 | if test -n "$DLLTOOL"; then | |
8421 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8422 | else | |
b30fcfae | 8423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8424 | for as_dir in $PATH | |
8425 | do | |
8426 | IFS=$as_save_IFS | |
8427 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8428 | for ac_exec_ext in '' $ac_executable_extensions; do |
8429 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8430 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8431 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8432 | break 2 |
8433 | fi | |
8434 | done | |
cd9a469c | 8435 | done |
8436 | IFS=$as_save_IFS | |
b30fcfae | 8437 | |
bb612911 | 8438 | fi |
8439 | fi | |
b30fcfae | 8440 | DLLTOOL=$ac_cv_prog_DLLTOOL |
bb612911 | 8441 | if test -n "$DLLTOOL"; then |
cd9a469c | 8442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8443 | $as_echo "$DLLTOOL" >&6; } | |
bb612911 | 8444 | else |
cd9a469c | 8445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8446 | $as_echo "no" >&6; } | |
bb612911 | 8447 | fi |
8448 | ||
cd9a469c | 8449 | |
768691b5 | 8450 | fi |
8451 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8452 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8453 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8455 | $as_echo_n "checking for $ac_word... " >&6; } | |
8456 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8457 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8458 | else |
768691b5 | 8459 | if test -n "$DLLTOOL"; then |
8460 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
bb612911 | 8461 | else |
b30fcfae | 8462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8463 | for as_dir in $PATH | |
8464 | do | |
8465 | IFS=$as_save_IFS | |
8466 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8467 | for ac_exec_ext in '' $ac_executable_extensions; do |
8468 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8469 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
cd9a469c | 8470 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8471 | break 2 |
8472 | fi | |
8473 | done | |
cd9a469c | 8474 | done |
8475 | IFS=$as_save_IFS | |
b30fcfae | 8476 | |
bb612911 | 8477 | fi |
8478 | fi | |
b30fcfae | 8479 | DLLTOOL=$ac_cv_prog_DLLTOOL |
768691b5 | 8480 | if test -n "$DLLTOOL"; then |
cd9a469c | 8481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8482 | $as_echo "$DLLTOOL" >&6; } | |
bb612911 | 8483 | else |
cd9a469c | 8484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8485 | $as_echo "no" >&6; } | |
bb612911 | 8486 | fi |
b30fcfae | 8487 | |
cd9a469c | 8488 | |
768691b5 | 8489 | fi |
8490 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8491 | done | |
8492 | ||
8493 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8494 | set dummy dlltool | |
8495 | if test $build = $host ; then | |
8496 | DLLTOOL="$2" | |
bb612911 | 8497 | else |
768691b5 | 8498 | DLLTOOL="${ncn_tool_prefix}$2" |
bb612911 | 8499 | fi |
bb612911 | 8500 | fi |
8501 | ||
95a05732 | 8502 | |
8503 | ||
8504 | if test -n "$LD"; then | |
8505 | ac_cv_prog_LD=$LD | |
8506 | elif test -n "$ac_cv_prog_LD"; then | |
8507 | LD=$ac_cv_prog_LD | |
8508 | fi | |
8509 | ||
8510 | if test -n "$ac_cv_prog_LD"; then | |
8511 | for ncn_progname in ld; do | |
8512 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8513 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8515 | $as_echo_n "checking for $ac_word... " >&6; } | |
8516 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8517 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8518 | else |
8519 | if test -n "$LD"; then | |
8520 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8521 | else | |
8522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8523 | for as_dir in $PATH | |
8524 | do | |
8525 | IFS=$as_save_IFS | |
8526 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8527 | for ac_exec_ext in '' $ac_executable_extensions; do |
8528 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8529 | ac_cv_prog_LD="${ncn_progname}" |
cd9a469c | 8530 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8531 | break 2 |
8532 | fi | |
8533 | done | |
cd9a469c | 8534 | done |
8535 | IFS=$as_save_IFS | |
95a05732 | 8536 | |
8537 | fi | |
8538 | fi | |
8539 | LD=$ac_cv_prog_LD | |
8540 | if test -n "$LD"; then | |
cd9a469c | 8541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8542 | $as_echo "$LD" >&6; } | |
95a05732 | 8543 | else |
cd9a469c | 8544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8545 | $as_echo "no" >&6; } | |
95a05732 | 8546 | fi |
8547 | ||
cd9a469c | 8548 | |
95a05732 | 8549 | done |
8550 | fi | |
8551 | ||
8552 | for ncn_progname in ld; do | |
768691b5 | 8553 | if test -n "$ncn_tool_prefix"; then |
8554 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8555 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8557 | $as_echo_n "checking for $ac_word... " >&6; } | |
8558 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8559 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8560 | else |
8561 | if test -n "$LD"; then | |
8562 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8563 | else | |
b30fcfae | 8564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8565 | for as_dir in $PATH | |
8566 | do | |
8567 | IFS=$as_save_IFS | |
8568 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8569 | for ac_exec_ext in '' $ac_executable_extensions; do |
8570 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8571 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8572 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8573 | break 2 |
8574 | fi | |
8575 | done | |
cd9a469c | 8576 | done |
8577 | IFS=$as_save_IFS | |
b30fcfae | 8578 | |
bb612911 | 8579 | fi |
8580 | fi | |
b30fcfae | 8581 | LD=$ac_cv_prog_LD |
bb612911 | 8582 | if test -n "$LD"; then |
cd9a469c | 8583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8584 | $as_echo "$LD" >&6; } | |
bb612911 | 8585 | else |
cd9a469c | 8586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8587 | $as_echo "no" >&6; } | |
bb612911 | 8588 | fi |
8589 | ||
cd9a469c | 8590 | |
768691b5 | 8591 | fi |
8592 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8593 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8594 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8596 | $as_echo_n "checking for $ac_word... " >&6; } | |
8597 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8598 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8599 | else |
768691b5 | 8600 | if test -n "$LD"; then |
8601 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
7172be51 | 8602 | else |
b30fcfae | 8603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8604 | for as_dir in $PATH | |
8605 | do | |
8606 | IFS=$as_save_IFS | |
8607 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8608 | for ac_exec_ext in '' $ac_executable_extensions; do |
8609 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8610 | ac_cv_prog_LD="${ncn_progname}" |
cd9a469c | 8611 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8612 | break 2 |
8613 | fi | |
8614 | done | |
cd9a469c | 8615 | done |
8616 | IFS=$as_save_IFS | |
b30fcfae | 8617 | |
bb612911 | 8618 | fi |
8619 | fi | |
b30fcfae | 8620 | LD=$ac_cv_prog_LD |
768691b5 | 8621 | if test -n "$LD"; then |
cd9a469c | 8622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8623 | $as_echo "$LD" >&6; } | |
bb612911 | 8624 | else |
cd9a469c | 8625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8626 | $as_echo "no" >&6; } | |
bb612911 | 8627 | fi |
b30fcfae | 8628 | |
cd9a469c | 8629 | |
768691b5 | 8630 | fi |
8631 | test -n "$ac_cv_prog_LD" && break | |
8632 | done | |
8633 | ||
8634 | if test -z "$ac_cv_prog_LD" ; then | |
8635 | set dummy ld | |
8636 | if test $build = $host ; then | |
8637 | LD="$2" | |
bb612911 | 8638 | else |
768691b5 | 8639 | LD="${ncn_tool_prefix}$2" |
bb612911 | 8640 | fi |
bb612911 | 8641 | fi |
8642 | ||
95a05732 | 8643 | |
8644 | ||
8645 | if test -n "$LIPO"; then | |
8646 | ac_cv_prog_LIPO=$LIPO | |
8647 | elif test -n "$ac_cv_prog_LIPO"; then | |
8648 | LIPO=$ac_cv_prog_LIPO | |
8649 | fi | |
8650 | ||
8651 | if test -n "$ac_cv_prog_LIPO"; then | |
8652 | for ncn_progname in lipo; do | |
8653 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8654 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8656 | $as_echo_n "checking for $ac_word... " >&6; } | |
8657 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8658 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8659 | else |
8660 | if test -n "$LIPO"; then | |
8661 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8662 | else | |
8663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8664 | for as_dir in $PATH | |
8665 | do | |
8666 | IFS=$as_save_IFS | |
8667 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8668 | for ac_exec_ext in '' $ac_executable_extensions; do |
8669 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8670 | ac_cv_prog_LIPO="${ncn_progname}" |
cd9a469c | 8671 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8672 | break 2 |
8673 | fi | |
8674 | done | |
cd9a469c | 8675 | done |
8676 | IFS=$as_save_IFS | |
95a05732 | 8677 | |
8678 | fi | |
8679 | fi | |
8680 | LIPO=$ac_cv_prog_LIPO | |
8681 | if test -n "$LIPO"; then | |
cd9a469c | 8682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8683 | $as_echo "$LIPO" >&6; } | |
95a05732 | 8684 | else |
cd9a469c | 8685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8686 | $as_echo "no" >&6; } | |
95a05732 | 8687 | fi |
8688 | ||
cd9a469c | 8689 | |
95a05732 | 8690 | done |
8691 | fi | |
8692 | ||
8693 | for ncn_progname in lipo; do | |
f5aebe3e | 8694 | if test -n "$ncn_tool_prefix"; then |
8695 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8696 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8698 | $as_echo_n "checking for $ac_word... " >&6; } | |
8699 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8700 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 8701 | else |
8702 | if test -n "$LIPO"; then | |
8703 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8704 | else | |
b30fcfae | 8705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8706 | for as_dir in $PATH | |
8707 | do | |
8708 | IFS=$as_save_IFS | |
8709 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8710 | for ac_exec_ext in '' $ac_executable_extensions; do |
8711 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8712 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8713 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8714 | break 2 |
8715 | fi | |
8716 | done | |
cd9a469c | 8717 | done |
8718 | IFS=$as_save_IFS | |
b30fcfae | 8719 | |
f5aebe3e | 8720 | fi |
8721 | fi | |
b30fcfae | 8722 | LIPO=$ac_cv_prog_LIPO |
f5aebe3e | 8723 | if test -n "$LIPO"; then |
cd9a469c | 8724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8725 | $as_echo "$LIPO" >&6; } | |
f5aebe3e | 8726 | else |
cd9a469c | 8727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8728 | $as_echo "no" >&6; } | |
f5aebe3e | 8729 | fi |
8730 | ||
cd9a469c | 8731 | |
f5aebe3e | 8732 | fi |
8733 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8734 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8735 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8737 | $as_echo_n "checking for $ac_word... " >&6; } | |
8738 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8739 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 8740 | else |
8741 | if test -n "$LIPO"; then | |
8742 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8743 | else | |
b30fcfae | 8744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8745 | for as_dir in $PATH | |
8746 | do | |
8747 | IFS=$as_save_IFS | |
8748 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8749 | for ac_exec_ext in '' $ac_executable_extensions; do |
8750 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8751 | ac_cv_prog_LIPO="${ncn_progname}" |
cd9a469c | 8752 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8753 | break 2 |
8754 | fi | |
8755 | done | |
cd9a469c | 8756 | done |
8757 | IFS=$as_save_IFS | |
b30fcfae | 8758 | |
f5aebe3e | 8759 | fi |
8760 | fi | |
b30fcfae | 8761 | LIPO=$ac_cv_prog_LIPO |
f5aebe3e | 8762 | if test -n "$LIPO"; then |
cd9a469c | 8763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8764 | $as_echo "$LIPO" >&6; } | |
f5aebe3e | 8765 | else |
cd9a469c | 8766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8767 | $as_echo "no" >&6; } | |
f5aebe3e | 8768 | fi |
b30fcfae | 8769 | |
cd9a469c | 8770 | |
f5aebe3e | 8771 | fi |
8772 | test -n "$ac_cv_prog_LIPO" && break | |
8773 | done | |
8774 | ||
8775 | if test -z "$ac_cv_prog_LIPO" ; then | |
8776 | set dummy lipo | |
8777 | if test $build = $host ; then | |
8778 | LIPO="$2" | |
8779 | else | |
8780 | LIPO="${ncn_tool_prefix}$2" | |
8781 | fi | |
8782 | fi | |
8783 | ||
95a05732 | 8784 | |
8785 | ||
8786 | if test -n "$NM"; then | |
8787 | ac_cv_prog_NM=$NM | |
8788 | elif test -n "$ac_cv_prog_NM"; then | |
8789 | NM=$ac_cv_prog_NM | |
8790 | fi | |
8791 | ||
8792 | if test -n "$ac_cv_prog_NM"; then | |
8793 | for ncn_progname in nm; do | |
8794 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8795 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8797 | $as_echo_n "checking for $ac_word... " >&6; } | |
8798 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8799 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8800 | else |
8801 | if test -n "$NM"; then | |
8802 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8803 | else | |
b30fcfae | 8804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8805 | for as_dir in $PATH | |
8806 | do | |
8807 | IFS=$as_save_IFS | |
8808 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8809 | for ac_exec_ext in '' $ac_executable_extensions; do |
8810 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8811 | ac_cv_prog_NM="${ncn_progname}" |
cd9a469c | 8812 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8813 | break 2 |
8814 | fi | |
8815 | done | |
cd9a469c | 8816 | done |
8817 | IFS=$as_save_IFS | |
b30fcfae | 8818 | |
bb612911 | 8819 | fi |
8820 | fi | |
b30fcfae | 8821 | NM=$ac_cv_prog_NM |
bb612911 | 8822 | if test -n "$NM"; then |
cd9a469c | 8823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8824 | $as_echo "$NM" >&6; } | |
bb612911 | 8825 | else |
cd9a469c | 8826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8827 | $as_echo "no" >&6; } | |
bb612911 | 8828 | fi |
8829 | ||
cd9a469c | 8830 | |
95a05732 | 8831 | done |
8832 | fi | |
8833 | ||
8834 | for ncn_progname in nm; do | |
8835 | if test -n "$ncn_tool_prefix"; then | |
8836 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8837 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8839 | $as_echo_n "checking for $ac_word... " >&6; } | |
8840 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8841 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8842 | else |
768691b5 | 8843 | if test -n "$NM"; then |
8844 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
bb612911 | 8845 | else |
b30fcfae | 8846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8847 | for as_dir in $PATH | |
8848 | do | |
8849 | IFS=$as_save_IFS | |
8850 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8851 | for ac_exec_ext in '' $ac_executable_extensions; do |
8852 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8853 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8854 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8855 | break 2 |
8856 | fi | |
8857 | done | |
cd9a469c | 8858 | done |
8859 | IFS=$as_save_IFS | |
b30fcfae | 8860 | |
bb612911 | 8861 | fi |
8862 | fi | |
b30fcfae | 8863 | NM=$ac_cv_prog_NM |
768691b5 | 8864 | if test -n "$NM"; then |
cd9a469c | 8865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8866 | $as_echo "$NM" >&6; } | |
bb612911 | 8867 | else |
cd9a469c | 8868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8869 | $as_echo "no" >&6; } | |
bb612911 | 8870 | fi |
b30fcfae | 8871 | |
cd9a469c | 8872 | |
768691b5 | 8873 | fi |
95a05732 | 8874 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8875 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8876 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8878 | $as_echo_n "checking for $ac_word... " >&6; } | |
8879 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8880 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8881 | else |
8882 | if test -n "$NM"; then | |
8883 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8884 | else | |
8885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8886 | for as_dir in $PATH | |
8887 | do | |
8888 | IFS=$as_save_IFS | |
8889 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8890 | for ac_exec_ext in '' $ac_executable_extensions; do |
8891 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8892 | ac_cv_prog_NM="${ncn_progname}" |
cd9a469c | 8893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8894 | break 2 |
8895 | fi | |
8896 | done | |
cd9a469c | 8897 | done |
8898 | IFS=$as_save_IFS | |
95a05732 | 8899 | |
8900 | fi | |
8901 | fi | |
8902 | NM=$ac_cv_prog_NM | |
8903 | if test -n "$NM"; then | |
cd9a469c | 8904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8905 | $as_echo "$NM" >&6; } | |
95a05732 | 8906 | else |
cd9a469c | 8907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8908 | $as_echo "no" >&6; } | |
95a05732 | 8909 | fi |
8910 | ||
cd9a469c | 8911 | |
95a05732 | 8912 | fi |
8913 | test -n "$ac_cv_prog_NM" && break | |
8914 | done | |
8915 | ||
8916 | if test -z "$ac_cv_prog_NM" ; then | |
8917 | set dummy nm | |
8918 | if test $build = $host ; then | |
8919 | NM="$2" | |
8920 | else | |
8921 | NM="${ncn_tool_prefix}$2" | |
8922 | fi | |
8923 | fi | |
8924 | ||
8925 | ||
8926 | ||
8927 | if test -n "$RANLIB"; then | |
8928 | ac_cv_prog_RANLIB=$RANLIB | |
8929 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8930 | RANLIB=$ac_cv_prog_RANLIB | |
8931 | fi | |
8932 | ||
8933 | if test -n "$ac_cv_prog_RANLIB"; then | |
8934 | for ncn_progname in ranlib; do | |
8935 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8936 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8938 | $as_echo_n "checking for $ac_word... " >&6; } | |
8939 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8940 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8941 | else |
8942 | if test -n "$RANLIB"; then | |
8943 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8944 | else | |
8945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8946 | for as_dir in $PATH | |
8947 | do | |
8948 | IFS=$as_save_IFS | |
8949 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8950 | for ac_exec_ext in '' $ac_executable_extensions; do |
8951 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8952 | ac_cv_prog_RANLIB="${ncn_progname}" |
cd9a469c | 8953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8954 | break 2 |
8955 | fi | |
8956 | done | |
cd9a469c | 8957 | done |
8958 | IFS=$as_save_IFS | |
95a05732 | 8959 | |
8960 | fi | |
8961 | fi | |
8962 | RANLIB=$ac_cv_prog_RANLIB | |
8963 | if test -n "$RANLIB"; then | |
cd9a469c | 8964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8965 | $as_echo "$RANLIB" >&6; } | |
95a05732 | 8966 | else |
cd9a469c | 8967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8968 | $as_echo "no" >&6; } | |
95a05732 | 8969 | fi |
8970 | ||
cd9a469c | 8971 | |
95a05732 | 8972 | done |
8973 | fi | |
bb612911 | 8974 | |
95a05732 | 8975 | for ncn_progname in ranlib; do |
768691b5 | 8976 | if test -n "$ncn_tool_prefix"; then |
8977 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8978 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8980 | $as_echo_n "checking for $ac_word... " >&6; } | |
8981 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8982 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8983 | else |
8984 | if test -n "$RANLIB"; then | |
8985 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8986 | else | |
b30fcfae | 8987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8988 | for as_dir in $PATH | |
8989 | do | |
8990 | IFS=$as_save_IFS | |
8991 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8992 | for ac_exec_ext in '' $ac_executable_extensions; do |
8993 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8994 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8995 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8996 | break 2 |
8997 | fi | |
8998 | done | |
cd9a469c | 8999 | done |
9000 | IFS=$as_save_IFS | |
b30fcfae | 9001 | |
bb612911 | 9002 | fi |
9003 | fi | |
b30fcfae | 9004 | RANLIB=$ac_cv_prog_RANLIB |
bb612911 | 9005 | if test -n "$RANLIB"; then |
cd9a469c | 9006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9007 | $as_echo "$RANLIB" >&6; } | |
bb612911 | 9008 | else |
cd9a469c | 9009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9010 | $as_echo "no" >&6; } | |
bb612911 | 9011 | fi |
9012 | ||
cd9a469c | 9013 | |
768691b5 | 9014 | fi |
9015 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
9016 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9017 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9019 | $as_echo_n "checking for $ac_word... " >&6; } | |
9020 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
9021 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9022 | else |
768691b5 | 9023 | if test -n "$RANLIB"; then |
9024 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
bb612911 | 9025 | else |
b30fcfae | 9026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9027 | for as_dir in $PATH | |
9028 | do | |
9029 | IFS=$as_save_IFS | |
9030 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9031 | for ac_exec_ext in '' $ac_executable_extensions; do |
9032 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9033 | ac_cv_prog_RANLIB="${ncn_progname}" |
cd9a469c | 9034 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9035 | break 2 |
9036 | fi | |
9037 | done | |
cd9a469c | 9038 | done |
9039 | IFS=$as_save_IFS | |
b30fcfae | 9040 | |
bb612911 | 9041 | fi |
9042 | fi | |
b30fcfae | 9043 | RANLIB=$ac_cv_prog_RANLIB |
768691b5 | 9044 | if test -n "$RANLIB"; then |
cd9a469c | 9045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9046 | $as_echo "$RANLIB" >&6; } | |
bb612911 | 9047 | else |
cd9a469c | 9048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9049 | $as_echo "no" >&6; } | |
bb612911 | 9050 | fi |
b30fcfae | 9051 | |
cd9a469c | 9052 | |
bb612911 | 9053 | fi |
768691b5 | 9054 | test -n "$ac_cv_prog_RANLIB" && break |
9055 | done | |
9056 | ||
9057 | if test -z "$ac_cv_prog_RANLIB" ; then | |
68645a6b | 9058 | RANLIB="true" |
bb612911 | 9059 | fi |
9060 | ||
95a05732 | 9061 | |
9062 | ||
9063 | if test -n "$STRIP"; then | |
9064 | ac_cv_prog_STRIP=$STRIP | |
9065 | elif test -n "$ac_cv_prog_STRIP"; then | |
9066 | STRIP=$ac_cv_prog_STRIP | |
9067 | fi | |
9068 | ||
9069 | if test -n "$ac_cv_prog_STRIP"; then | |
9070 | for ncn_progname in strip; do | |
9071 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9072 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9074 | $as_echo_n "checking for $ac_word... " >&6; } | |
9075 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9076 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9077 | else |
9078 | if test -n "$STRIP"; then | |
9079 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9080 | else | |
9081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9082 | for as_dir in $PATH | |
9083 | do | |
9084 | IFS=$as_save_IFS | |
9085 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9086 | for ac_exec_ext in '' $ac_executable_extensions; do |
9087 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9088 | ac_cv_prog_STRIP="${ncn_progname}" |
cd9a469c | 9089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9090 | break 2 |
9091 | fi | |
9092 | done | |
cd9a469c | 9093 | done |
9094 | IFS=$as_save_IFS | |
95a05732 | 9095 | |
9096 | fi | |
9097 | fi | |
9098 | STRIP=$ac_cv_prog_STRIP | |
9099 | if test -n "$STRIP"; then | |
cd9a469c | 9100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9101 | $as_echo "$STRIP" >&6; } | |
95a05732 | 9102 | else |
cd9a469c | 9103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9104 | $as_echo "no" >&6; } | |
95a05732 | 9105 | fi |
9106 | ||
cd9a469c | 9107 | |
95a05732 | 9108 | done |
9109 | fi | |
9110 | ||
9111 | for ncn_progname in strip; do | |
f5aebe3e | 9112 | if test -n "$ncn_tool_prefix"; then |
9113 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9114 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9116 | $as_echo_n "checking for $ac_word... " >&6; } | |
9117 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9118 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 9119 | else |
9120 | if test -n "$STRIP"; then | |
9121 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9122 | else | |
b30fcfae | 9123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9124 | for as_dir in $PATH | |
9125 | do | |
9126 | IFS=$as_save_IFS | |
9127 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9128 | for ac_exec_ext in '' $ac_executable_extensions; do |
9129 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9130 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9131 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9132 | break 2 |
9133 | fi | |
9134 | done | |
cd9a469c | 9135 | done |
9136 | IFS=$as_save_IFS | |
b30fcfae | 9137 | |
f5aebe3e | 9138 | fi |
9139 | fi | |
b30fcfae | 9140 | STRIP=$ac_cv_prog_STRIP |
f5aebe3e | 9141 | if test -n "$STRIP"; then |
cd9a469c | 9142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9143 | $as_echo "$STRIP" >&6; } | |
f5aebe3e | 9144 | else |
cd9a469c | 9145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9146 | $as_echo "no" >&6; } | |
f5aebe3e | 9147 | fi |
9148 | ||
cd9a469c | 9149 | |
f5aebe3e | 9150 | fi |
9151 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9152 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9153 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9155 | $as_echo_n "checking for $ac_word... " >&6; } | |
9156 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9157 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 9158 | else |
9159 | if test -n "$STRIP"; then | |
9160 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9161 | else | |
b30fcfae | 9162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9163 | for as_dir in $PATH | |
9164 | do | |
9165 | IFS=$as_save_IFS | |
9166 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9167 | for ac_exec_ext in '' $ac_executable_extensions; do |
9168 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9169 | ac_cv_prog_STRIP="${ncn_progname}" |
cd9a469c | 9170 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9171 | break 2 |
9172 | fi | |
9173 | done | |
cd9a469c | 9174 | done |
9175 | IFS=$as_save_IFS | |
b30fcfae | 9176 | |
f5aebe3e | 9177 | fi |
9178 | fi | |
b30fcfae | 9179 | STRIP=$ac_cv_prog_STRIP |
f5aebe3e | 9180 | if test -n "$STRIP"; then |
cd9a469c | 9181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9182 | $as_echo "$STRIP" >&6; } | |
f5aebe3e | 9183 | else |
cd9a469c | 9184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9185 | $as_echo "no" >&6; } | |
f5aebe3e | 9186 | fi |
b30fcfae | 9187 | |
cd9a469c | 9188 | |
f5aebe3e | 9189 | fi |
9190 | test -n "$ac_cv_prog_STRIP" && break | |
9191 | done | |
9192 | ||
9193 | if test -z "$ac_cv_prog_STRIP" ; then | |
68645a6b | 9194 | STRIP="true" |
f5aebe3e | 9195 | fi |
9196 | ||
95a05732 | 9197 | |
9198 | ||
9199 | if test -n "$WINDRES"; then | |
9200 | ac_cv_prog_WINDRES=$WINDRES | |
9201 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9202 | WINDRES=$ac_cv_prog_WINDRES | |
9203 | fi | |
9204 | ||
9205 | if test -n "$ac_cv_prog_WINDRES"; then | |
9206 | for ncn_progname in windres; do | |
9207 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9208 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9210 | $as_echo_n "checking for $ac_word... " >&6; } | |
9211 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9212 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9213 | else |
9214 | if test -n "$WINDRES"; then | |
9215 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9216 | else | |
9217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9218 | for as_dir in $PATH | |
9219 | do | |
9220 | IFS=$as_save_IFS | |
9221 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9222 | for ac_exec_ext in '' $ac_executable_extensions; do |
9223 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9224 | ac_cv_prog_WINDRES="${ncn_progname}" |
cd9a469c | 9225 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9226 | break 2 |
9227 | fi | |
9228 | done | |
cd9a469c | 9229 | done |
9230 | IFS=$as_save_IFS | |
95a05732 | 9231 | |
9232 | fi | |
9233 | fi | |
9234 | WINDRES=$ac_cv_prog_WINDRES | |
9235 | if test -n "$WINDRES"; then | |
cd9a469c | 9236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9237 | $as_echo "$WINDRES" >&6; } | |
95a05732 | 9238 | else |
cd9a469c | 9239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9240 | $as_echo "no" >&6; } | |
95a05732 | 9241 | fi |
9242 | ||
cd9a469c | 9243 | |
95a05732 | 9244 | done |
9245 | fi | |
9246 | ||
9247 | for ncn_progname in windres; do | |
768691b5 | 9248 | if test -n "$ncn_tool_prefix"; then |
9249 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9250 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9252 | $as_echo_n "checking for $ac_word... " >&6; } | |
9253 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9254 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9255 | else |
9256 | if test -n "$WINDRES"; then | |
9257 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9258 | else | |
b30fcfae | 9259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9260 | for as_dir in $PATH | |
9261 | do | |
9262 | IFS=$as_save_IFS | |
9263 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9264 | for ac_exec_ext in '' $ac_executable_extensions; do |
9265 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9266 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9267 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9268 | break 2 |
9269 | fi | |
9270 | done | |
cd9a469c | 9271 | done |
9272 | IFS=$as_save_IFS | |
b30fcfae | 9273 | |
bb612911 | 9274 | fi |
9275 | fi | |
b30fcfae | 9276 | WINDRES=$ac_cv_prog_WINDRES |
bb612911 | 9277 | if test -n "$WINDRES"; then |
cd9a469c | 9278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9279 | $as_echo "$WINDRES" >&6; } | |
bb612911 | 9280 | else |
cd9a469c | 9281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9282 | $as_echo "no" >&6; } | |
bb612911 | 9283 | fi |
9284 | ||
cd9a469c | 9285 | |
768691b5 | 9286 | fi |
9287 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9288 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9289 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9291 | $as_echo_n "checking for $ac_word... " >&6; } | |
9292 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9293 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9294 | else |
768691b5 | 9295 | if test -n "$WINDRES"; then |
9296 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
bb612911 | 9297 | else |
b30fcfae | 9298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9299 | for as_dir in $PATH | |
9300 | do | |
9301 | IFS=$as_save_IFS | |
9302 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9303 | for ac_exec_ext in '' $ac_executable_extensions; do |
9304 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9305 | ac_cv_prog_WINDRES="${ncn_progname}" |
cd9a469c | 9306 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9307 | break 2 |
9308 | fi | |
9309 | done | |
cd9a469c | 9310 | done |
9311 | IFS=$as_save_IFS | |
b30fcfae | 9312 | |
bb612911 | 9313 | fi |
9314 | fi | |
b30fcfae | 9315 | WINDRES=$ac_cv_prog_WINDRES |
768691b5 | 9316 | if test -n "$WINDRES"; then |
cd9a469c | 9317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9318 | $as_echo "$WINDRES" >&6; } | |
bb612911 | 9319 | else |
cd9a469c | 9320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9321 | $as_echo "no" >&6; } | |
bb612911 | 9322 | fi |
b30fcfae | 9323 | |
cd9a469c | 9324 | |
768691b5 | 9325 | fi |
9326 | test -n "$ac_cv_prog_WINDRES" && break | |
9327 | done | |
9328 | ||
9329 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9330 | set dummy windres | |
9331 | if test $build = $host ; then | |
9332 | WINDRES="$2" | |
bb612911 | 9333 | else |
768691b5 | 9334 | WINDRES="${ncn_tool_prefix}$2" |
bb612911 | 9335 | fi |
bb612911 | 9336 | fi |
9337 | ||
95a05732 | 9338 | |
9339 | ||
75d6a0a9 | 9340 | if test -n "$WINDMC"; then |
9341 | ac_cv_prog_WINDMC=$WINDMC | |
9342 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9343 | WINDMC=$ac_cv_prog_WINDMC | |
9344 | fi | |
9345 | ||
9346 | if test -n "$ac_cv_prog_WINDMC"; then | |
9347 | for ncn_progname in windmc; do | |
9348 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9349 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9351 | $as_echo_n "checking for $ac_word... " >&6; } | |
9352 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9353 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 9354 | else |
9355 | if test -n "$WINDMC"; then | |
9356 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9357 | else | |
9358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9359 | for as_dir in $PATH | |
9360 | do | |
9361 | IFS=$as_save_IFS | |
9362 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9363 | for ac_exec_ext in '' $ac_executable_extensions; do |
9364 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 9365 | ac_cv_prog_WINDMC="${ncn_progname}" |
cd9a469c | 9366 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 9367 | break 2 |
9368 | fi | |
9369 | done | |
cd9a469c | 9370 | done |
9371 | IFS=$as_save_IFS | |
75d6a0a9 | 9372 | |
9373 | fi | |
9374 | fi | |
9375 | WINDMC=$ac_cv_prog_WINDMC | |
9376 | if test -n "$WINDMC"; then | |
cd9a469c | 9377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9378 | $as_echo "$WINDMC" >&6; } | |
75d6a0a9 | 9379 | else |
cd9a469c | 9380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9381 | $as_echo "no" >&6; } | |
75d6a0a9 | 9382 | fi |
9383 | ||
cd9a469c | 9384 | |
75d6a0a9 | 9385 | done |
9386 | fi | |
9387 | ||
9388 | for ncn_progname in windmc; do | |
9389 | if test -n "$ncn_tool_prefix"; then | |
9390 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9391 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9393 | $as_echo_n "checking for $ac_word... " >&6; } | |
9394 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9395 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 9396 | else |
9397 | if test -n "$WINDMC"; then | |
9398 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9399 | else | |
9400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9401 | for as_dir in $PATH | |
9402 | do | |
9403 | IFS=$as_save_IFS | |
9404 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9405 | for ac_exec_ext in '' $ac_executable_extensions; do |
9406 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 9407 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9408 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 9409 | break 2 |
9410 | fi | |
9411 | done | |
cd9a469c | 9412 | done |
9413 | IFS=$as_save_IFS | |
75d6a0a9 | 9414 | |
9415 | fi | |
9416 | fi | |
9417 | WINDMC=$ac_cv_prog_WINDMC | |
9418 | if test -n "$WINDMC"; then | |
cd9a469c | 9419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9420 | $as_echo "$WINDMC" >&6; } | |
75d6a0a9 | 9421 | else |
cd9a469c | 9422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9423 | $as_echo "no" >&6; } | |
75d6a0a9 | 9424 | fi |
9425 | ||
cd9a469c | 9426 | |
75d6a0a9 | 9427 | fi |
9428 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9429 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9430 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9432 | $as_echo_n "checking for $ac_word... " >&6; } | |
9433 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9434 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 9435 | else |
9436 | if test -n "$WINDMC"; then | |
9437 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9438 | else | |
9439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9440 | for as_dir in $PATH | |
9441 | do | |
9442 | IFS=$as_save_IFS | |
9443 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9444 | for ac_exec_ext in '' $ac_executable_extensions; do |
9445 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 9446 | ac_cv_prog_WINDMC="${ncn_progname}" |
cd9a469c | 9447 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 9448 | break 2 |
9449 | fi | |
9450 | done | |
cd9a469c | 9451 | done |
9452 | IFS=$as_save_IFS | |
75d6a0a9 | 9453 | |
9454 | fi | |
9455 | fi | |
9456 | WINDMC=$ac_cv_prog_WINDMC | |
9457 | if test -n "$WINDMC"; then | |
cd9a469c | 9458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9459 | $as_echo "$WINDMC" >&6; } | |
75d6a0a9 | 9460 | else |
cd9a469c | 9461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9462 | $as_echo "no" >&6; } | |
75d6a0a9 | 9463 | fi |
9464 | ||
cd9a469c | 9465 | |
75d6a0a9 | 9466 | fi |
9467 | test -n "$ac_cv_prog_WINDMC" && break | |
9468 | done | |
9469 | ||
9470 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9471 | set dummy windmc | |
9472 | if test $build = $host ; then | |
9473 | WINDMC="$2" | |
9474 | else | |
9475 | WINDMC="${ncn_tool_prefix}$2" | |
9476 | fi | |
9477 | fi | |
9478 | ||
9479 | ||
9480 | ||
95a05732 | 9481 | if test -n "$OBJCOPY"; then |
9482 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9483 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9484 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9485 | fi | |
9486 | ||
9487 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9488 | for ncn_progname in objcopy; do | |
9489 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9490 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9492 | $as_echo_n "checking for $ac_word... " >&6; } | |
9493 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9494 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9495 | else |
9496 | if test -n "$OBJCOPY"; then | |
9497 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9498 | else | |
9499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9500 | for as_dir in $PATH | |
9501 | do | |
9502 | IFS=$as_save_IFS | |
9503 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9504 | for ac_exec_ext in '' $ac_executable_extensions; do |
9505 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9506 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
cd9a469c | 9507 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9508 | break 2 |
9509 | fi | |
9510 | done | |
cd9a469c | 9511 | done |
9512 | IFS=$as_save_IFS | |
95a05732 | 9513 | |
9514 | fi | |
9515 | fi | |
9516 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9517 | if test -n "$OBJCOPY"; then | |
cd9a469c | 9518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9519 | $as_echo "$OBJCOPY" >&6; } | |
95a05732 | 9520 | else |
cd9a469c | 9521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9522 | $as_echo "no" >&6; } | |
95a05732 | 9523 | fi |
9524 | ||
cd9a469c | 9525 | |
95a05732 | 9526 | done |
9527 | fi | |
9528 | ||
9529 | for ncn_progname in objcopy; do | |
768691b5 | 9530 | if test -n "$ncn_tool_prefix"; then |
9531 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9532 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9534 | $as_echo_n "checking for $ac_word... " >&6; } | |
9535 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9536 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9537 | else |
9538 | if test -n "$OBJCOPY"; then | |
9539 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9540 | else | |
b30fcfae | 9541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9542 | for as_dir in $PATH | |
9543 | do | |
9544 | IFS=$as_save_IFS | |
9545 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9546 | for ac_exec_ext in '' $ac_executable_extensions; do |
9547 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9548 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9549 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9550 | break 2 |
9551 | fi | |
9552 | done | |
cd9a469c | 9553 | done |
9554 | IFS=$as_save_IFS | |
b30fcfae | 9555 | |
bb612911 | 9556 | fi |
9557 | fi | |
b30fcfae | 9558 | OBJCOPY=$ac_cv_prog_OBJCOPY |
bb612911 | 9559 | if test -n "$OBJCOPY"; then |
cd9a469c | 9560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9561 | $as_echo "$OBJCOPY" >&6; } | |
bb612911 | 9562 | else |
cd9a469c | 9563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9564 | $as_echo "no" >&6; } | |
bb612911 | 9565 | fi |
9566 | ||
cd9a469c | 9567 | |
768691b5 | 9568 | fi |
9569 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9570 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9571 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9573 | $as_echo_n "checking for $ac_word... " >&6; } | |
9574 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9575 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9576 | else |
768691b5 | 9577 | if test -n "$OBJCOPY"; then |
9578 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
bb612911 | 9579 | else |
b30fcfae | 9580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9581 | for as_dir in $PATH | |
9582 | do | |
9583 | IFS=$as_save_IFS | |
9584 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9585 | for ac_exec_ext in '' $ac_executable_extensions; do |
9586 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9587 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
cd9a469c | 9588 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9589 | break 2 |
9590 | fi | |
9591 | done | |
cd9a469c | 9592 | done |
9593 | IFS=$as_save_IFS | |
b30fcfae | 9594 | |
bb612911 | 9595 | fi |
9596 | fi | |
b30fcfae | 9597 | OBJCOPY=$ac_cv_prog_OBJCOPY |
768691b5 | 9598 | if test -n "$OBJCOPY"; then |
cd9a469c | 9599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9600 | $as_echo "$OBJCOPY" >&6; } | |
bb612911 | 9601 | else |
cd9a469c | 9602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9603 | $as_echo "no" >&6; } | |
bb612911 | 9604 | fi |
b30fcfae | 9605 | |
cd9a469c | 9606 | |
768691b5 | 9607 | fi |
9608 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9609 | done | |
9610 | ||
9611 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9612 | set dummy objcopy | |
9613 | if test $build = $host ; then | |
9614 | OBJCOPY="$2" | |
bb612911 | 9615 | else |
768691b5 | 9616 | OBJCOPY="${ncn_tool_prefix}$2" |
bb612911 | 9617 | fi |
bb612911 | 9618 | fi |
9619 | ||
95a05732 | 9620 | |
9621 | ||
9622 | if test -n "$OBJDUMP"; then | |
9623 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9624 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9625 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9626 | fi | |
9627 | ||
9628 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9629 | for ncn_progname in objdump; do | |
9630 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9631 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9633 | $as_echo_n "checking for $ac_word... " >&6; } | |
9634 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9635 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9636 | else |
9637 | if test -n "$OBJDUMP"; then | |
9638 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9639 | else | |
9640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9641 | for as_dir in $PATH | |
9642 | do | |
9643 | IFS=$as_save_IFS | |
9644 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9645 | for ac_exec_ext in '' $ac_executable_extensions; do |
9646 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9647 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
cd9a469c | 9648 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9649 | break 2 |
9650 | fi | |
9651 | done | |
cd9a469c | 9652 | done |
9653 | IFS=$as_save_IFS | |
95a05732 | 9654 | |
9655 | fi | |
9656 | fi | |
9657 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9658 | if test -n "$OBJDUMP"; then | |
cd9a469c | 9659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9660 | $as_echo "$OBJDUMP" >&6; } | |
95a05732 | 9661 | else |
cd9a469c | 9662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9663 | $as_echo "no" >&6; } | |
95a05732 | 9664 | fi |
9665 | ||
cd9a469c | 9666 | |
95a05732 | 9667 | done |
9668 | fi | |
9669 | ||
9670 | for ncn_progname in objdump; do | |
768691b5 | 9671 | if test -n "$ncn_tool_prefix"; then |
9672 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9673 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9675 | $as_echo_n "checking for $ac_word... " >&6; } | |
9676 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9677 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9678 | else |
9679 | if test -n "$OBJDUMP"; then | |
9680 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9681 | else | |
b30fcfae | 9682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9683 | for as_dir in $PATH | |
9684 | do | |
9685 | IFS=$as_save_IFS | |
9686 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9687 | for ac_exec_ext in '' $ac_executable_extensions; do |
9688 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9689 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9690 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9691 | break 2 |
9692 | fi | |
9693 | done | |
cd9a469c | 9694 | done |
9695 | IFS=$as_save_IFS | |
b30fcfae | 9696 | |
bb612911 | 9697 | fi |
9698 | fi | |
b30fcfae | 9699 | OBJDUMP=$ac_cv_prog_OBJDUMP |
bb612911 | 9700 | if test -n "$OBJDUMP"; then |
cd9a469c | 9701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9702 | $as_echo "$OBJDUMP" >&6; } | |
bb612911 | 9703 | else |
cd9a469c | 9704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9705 | $as_echo "no" >&6; } | |
bb612911 | 9706 | fi |
9707 | ||
cd9a469c | 9708 | |
768691b5 | 9709 | fi |
9710 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9711 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9712 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9714 | $as_echo_n "checking for $ac_word... " >&6; } | |
9715 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9716 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9717 | else |
768691b5 | 9718 | if test -n "$OBJDUMP"; then |
9719 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
bb612911 | 9720 | else |
b30fcfae | 9721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9722 | for as_dir in $PATH | |
9723 | do | |
9724 | IFS=$as_save_IFS | |
9725 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9726 | for ac_exec_ext in '' $ac_executable_extensions; do |
9727 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9728 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
cd9a469c | 9729 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9730 | break 2 |
9731 | fi | |
9732 | done | |
cd9a469c | 9733 | done |
9734 | IFS=$as_save_IFS | |
b30fcfae | 9735 | |
bb612911 | 9736 | fi |
9737 | fi | |
b30fcfae | 9738 | OBJDUMP=$ac_cv_prog_OBJDUMP |
768691b5 | 9739 | if test -n "$OBJDUMP"; then |
cd9a469c | 9740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9741 | $as_echo "$OBJDUMP" >&6; } | |
bb612911 | 9742 | else |
cd9a469c | 9743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9744 | $as_echo "no" >&6; } | |
bb612911 | 9745 | fi |
b30fcfae | 9746 | |
cd9a469c | 9747 | |
768691b5 | 9748 | fi |
9749 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9750 | done | |
9751 | ||
9752 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9753 | set dummy objdump | |
9754 | if test $build = $host ; then | |
9755 | OBJDUMP="$2" | |
bb612911 | 9756 | else |
768691b5 | 9757 | OBJDUMP="${ncn_tool_prefix}$2" |
bb612911 | 9758 | fi |
bb612911 | 9759 | fi |
9760 | ||
71ab34df | 9761 | |
9762 | ||
3f71364d | 9763 | if test -n "$READELF"; then |
9764 | ac_cv_prog_READELF=$READELF | |
9765 | elif test -n "$ac_cv_prog_READELF"; then | |
9766 | READELF=$ac_cv_prog_READELF | |
9767 | fi | |
9768 | ||
9769 | if test -n "$ac_cv_prog_READELF"; then | |
9770 | for ncn_progname in readelf; do | |
9771 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9772 | set dummy ${ncn_progname}; ac_word=$2 | |
9773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9774 | $as_echo_n "checking for $ac_word... " >&6; } | |
9775 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9776 | $as_echo_n "(cached) " >&6 | |
9777 | else | |
9778 | if test -n "$READELF"; then | |
9779 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9780 | else | |
9781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9782 | for as_dir in $PATH | |
9783 | do | |
9784 | IFS=$as_save_IFS | |
9785 | test -z "$as_dir" && as_dir=. | |
9786 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9787 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9788 | ac_cv_prog_READELF="${ncn_progname}" | |
9789 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9790 | break 2 | |
9791 | fi | |
9792 | done | |
9793 | done | |
9794 | IFS=$as_save_IFS | |
9795 | ||
9796 | fi | |
9797 | fi | |
9798 | READELF=$ac_cv_prog_READELF | |
9799 | if test -n "$READELF"; then | |
9800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9801 | $as_echo "$READELF" >&6; } | |
9802 | else | |
9803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9804 | $as_echo "no" >&6; } | |
9805 | fi | |
9806 | ||
9807 | ||
9808 | done | |
9809 | fi | |
9810 | ||
9811 | for ncn_progname in readelf; do | |
9812 | if test -n "$ncn_tool_prefix"; then | |
9813 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9814 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9816 | $as_echo_n "checking for $ac_word... " >&6; } | |
9817 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9818 | $as_echo_n "(cached) " >&6 | |
9819 | else | |
9820 | if test -n "$READELF"; then | |
9821 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9822 | else | |
9823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9824 | for as_dir in $PATH | |
9825 | do | |
9826 | IFS=$as_save_IFS | |
9827 | test -z "$as_dir" && as_dir=. | |
9828 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9829 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9830 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" | |
9831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9832 | break 2 | |
9833 | fi | |
9834 | done | |
9835 | done | |
9836 | IFS=$as_save_IFS | |
9837 | ||
9838 | fi | |
9839 | fi | |
9840 | READELF=$ac_cv_prog_READELF | |
9841 | if test -n "$READELF"; then | |
9842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9843 | $as_echo "$READELF" >&6; } | |
9844 | else | |
9845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9846 | $as_echo "no" >&6; } | |
9847 | fi | |
9848 | ||
9849 | ||
9850 | fi | |
9851 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9852 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9853 | set dummy ${ncn_progname}; ac_word=$2 | |
9854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9855 | $as_echo_n "checking for $ac_word... " >&6; } | |
9856 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9857 | $as_echo_n "(cached) " >&6 | |
9858 | else | |
9859 | if test -n "$READELF"; then | |
9860 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9861 | else | |
9862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9863 | for as_dir in $PATH | |
9864 | do | |
9865 | IFS=$as_save_IFS | |
9866 | test -z "$as_dir" && as_dir=. | |
9867 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9868 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9869 | ac_cv_prog_READELF="${ncn_progname}" | |
9870 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9871 | break 2 | |
9872 | fi | |
9873 | done | |
9874 | done | |
9875 | IFS=$as_save_IFS | |
9876 | ||
9877 | fi | |
9878 | fi | |
9879 | READELF=$ac_cv_prog_READELF | |
9880 | if test -n "$READELF"; then | |
9881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9882 | $as_echo "$READELF" >&6; } | |
9883 | else | |
9884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9885 | $as_echo "no" >&6; } | |
9886 | fi | |
9887 | ||
9888 | ||
9889 | fi | |
9890 | test -n "$ac_cv_prog_READELF" && break | |
9891 | done | |
9892 | ||
9893 | if test -z "$ac_cv_prog_READELF" ; then | |
9894 | set dummy readelf | |
9895 | if test $build = $host ; then | |
9896 | READELF="$2" | |
9897 | else | |
9898 | READELF="${ncn_tool_prefix}$2" | |
9899 | fi | |
9900 | fi | |
9901 | ||
9902 | ||
9903 | ||
71ab34df | 9904 | |
9905 | ||
9906 | ||
f5aebe3e | 9907 | # Target tools. |
b30fcfae | 9908 | |
cd9a469c | 9909 | # Check whether --with-build-time-tools was given. |
9910 | if test "${with_build_time_tools+set}" = set; then : | |
9911 | withval=$with_build_time_tools; case x"$withval" in | |
c47832b1 | 9912 | x/*) ;; |
9913 | *) | |
9914 | with_build_time_tools= | |
cd9a469c | 9915 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9916 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
c47832b1 | 9917 | ;; |
9918 | esac | |
bb612911 | 9919 | else |
c47832b1 | 9920 | with_build_time_tools= |
cd9a469c | 9921 | fi |
9922 | ||
bb612911 | 9923 | |
95a05732 | 9924 | |
9925 | ||
9926 | if test -n "$CC_FOR_TARGET"; then | |
9927 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9928 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9929 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9930 | fi | |
9931 | ||
9932 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9933 | for ncn_progname in cc gcc; do | |
9934 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9935 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9937 | $as_echo_n "checking for $ac_word... " >&6; } | |
9938 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9939 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9940 | else |
9941 | if test -n "$CC_FOR_TARGET"; then | |
9942 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9943 | else | |
9944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9945 | for as_dir in $PATH | |
9946 | do | |
9947 | IFS=$as_save_IFS | |
9948 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9949 | for ac_exec_ext in '' $ac_executable_extensions; do |
9950 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9951 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 9952 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9953 | break 2 |
9954 | fi | |
9955 | done | |
cd9a469c | 9956 | done |
9957 | IFS=$as_save_IFS | |
95a05732 | 9958 | |
9959 | fi | |
9960 | fi | |
9961 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9962 | if test -n "$CC_FOR_TARGET"; then | |
cd9a469c | 9963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9964 | $as_echo "$CC_FOR_TARGET" >&6; } | |
95a05732 | 9965 | else |
cd9a469c | 9966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9967 | $as_echo "no" >&6; } | |
95a05732 | 9968 | fi |
9969 | ||
cd9a469c | 9970 | |
95a05732 | 9971 | done |
9972 | fi | |
9973 | ||
9974 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 9975 | for ncn_progname in cc gcc; do |
cd9a469c | 9976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9977 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 9978 | if test -x $with_build_time_tools/${ncn_progname}; then |
9979 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 9980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9981 | $as_echo "yes" >&6; } | |
9886f3d1 | 9982 | break |
c47832b1 | 9983 | else |
cd9a469c | 9984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9985 | $as_echo "no" >&6; } | |
9886f3d1 | 9986 | fi |
9987 | done | |
ef8184c7 | 9988 | fi |
9989 | ||
c47832b1 | 9990 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
9991 | for ncn_progname in cc gcc; do | |
9992 | if test -n "$ncn_target_tool_prefix"; then | |
9993 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 9994 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 9995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9996 | $as_echo_n "checking for $ac_word... " >&6; } | |
9997 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9998 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 9999 | else |
10000 | if test -n "$CC_FOR_TARGET"; then | |
10001 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10002 | else | |
b30fcfae | 10003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10004 | for as_dir in $PATH | |
10005 | do | |
10006 | IFS=$as_save_IFS | |
10007 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10008 | for ac_exec_ext in '' $ac_executable_extensions; do |
10009 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10010 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10011 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10012 | break 2 |
10013 | fi | |
10014 | done | |
cd9a469c | 10015 | done |
10016 | IFS=$as_save_IFS | |
b30fcfae | 10017 | |
ef8184c7 | 10018 | fi |
10019 | fi | |
b30fcfae | 10020 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
ef8184c7 | 10021 | if test -n "$CC_FOR_TARGET"; then |
cd9a469c | 10022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10023 | $as_echo "$CC_FOR_TARGET" >&6; } | |
ef8184c7 | 10024 | else |
cd9a469c | 10025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10026 | $as_echo "no" >&6; } | |
ef8184c7 | 10027 | fi |
10028 | ||
cd9a469c | 10029 | |
c47832b1 | 10030 | fi |
10031 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10032 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10033 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10035 | $as_echo_n "checking for $ac_word... " >&6; } | |
10036 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
10037 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 10038 | else |
768691b5 | 10039 | if test -n "$CC_FOR_TARGET"; then |
10040 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 10041 | else |
b30fcfae | 10042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10043 | for as_dir in $PATH | |
10044 | do | |
10045 | IFS=$as_save_IFS | |
10046 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10047 | for ac_exec_ext in '' $ac_executable_extensions; do |
10048 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10049 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10051 | break 2 |
10052 | fi | |
10053 | done | |
cd9a469c | 10054 | done |
10055 | IFS=$as_save_IFS | |
b30fcfae | 10056 | |
ef8184c7 | 10057 | fi |
10058 | fi | |
b30fcfae | 10059 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
768691b5 | 10060 | if test -n "$CC_FOR_TARGET"; then |
cd9a469c | 10061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10062 | $as_echo "$CC_FOR_TARGET" >&6; } | |
ef8184c7 | 10063 | else |
cd9a469c | 10064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10065 | $as_echo "no" >&6; } | |
ef8184c7 | 10066 | fi |
b30fcfae | 10067 | |
cd9a469c | 10068 | |
c47832b1 | 10069 | fi |
10070 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10071 | done | |
10072 | fi | |
b30fcfae | 10073 | |
768691b5 | 10074 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10075 | set dummy cc gcc | |
10076 | if test $build = $target ; then | |
10077 | CC_FOR_TARGET="$2" | |
ef8184c7 | 10078 | else |
768691b5 | 10079 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ef8184c7 | 10080 | fi |
b7ef8464 | 10081 | else |
10082 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
ef8184c7 | 10083 | fi |
10084 | ||
95a05732 | 10085 | |
10086 | ||
10087 | if test -n "$CXX_FOR_TARGET"; then | |
10088 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10089 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10090 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10091 | fi | |
10092 | ||
10093 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10094 | for ncn_progname in c++ g++ cxx gxx; do | |
10095 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10096 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10098 | $as_echo_n "checking for $ac_word... " >&6; } | |
10099 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10100 | $as_echo_n "(cached) " >&6 | |
95a05732 | 10101 | else |
10102 | if test -n "$CXX_FOR_TARGET"; then | |
10103 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10104 | else | |
10105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10106 | for as_dir in $PATH | |
10107 | do | |
10108 | IFS=$as_save_IFS | |
10109 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10110 | for ac_exec_ext in '' $ac_executable_extensions; do |
10111 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10112 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10113 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10114 | break 2 |
10115 | fi | |
10116 | done | |
cd9a469c | 10117 | done |
10118 | IFS=$as_save_IFS | |
95a05732 | 10119 | |
10120 | fi | |
10121 | fi | |
10122 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10123 | if test -n "$CXX_FOR_TARGET"; then | |
cd9a469c | 10124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10125 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
95a05732 | 10126 | else |
cd9a469c | 10127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10128 | $as_echo "no" >&6; } | |
95a05732 | 10129 | fi |
10130 | ||
cd9a469c | 10131 | |
95a05732 | 10132 | done |
10133 | fi | |
10134 | ||
10135 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10136 | for ncn_progname in c++ g++ cxx gxx; do |
cd9a469c | 10137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10138 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10139 | if test -x $with_build_time_tools/${ncn_progname}; then |
10140 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10142 | $as_echo "yes" >&6; } | |
c47832b1 | 10143 | break |
10144 | else | |
cd9a469c | 10145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10146 | $as_echo "no" >&6; } | |
c47832b1 | 10147 | fi |
10148 | done | |
10149 | fi | |
10150 | ||
10151 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10152 | for ncn_progname in c++ g++ cxx gxx; do | |
10153 | if test -n "$ncn_target_tool_prefix"; then | |
10154 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10155 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 10156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10157 | $as_echo_n "checking for $ac_word... " >&6; } | |
10158 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10159 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 10160 | else |
10161 | if test -n "$CXX_FOR_TARGET"; then | |
10162 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10163 | else | |
b30fcfae | 10164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10165 | for as_dir in $PATH | |
10166 | do | |
10167 | IFS=$as_save_IFS | |
10168 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10169 | for ac_exec_ext in '' $ac_executable_extensions; do |
10170 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10171 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10172 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10173 | break 2 |
10174 | fi | |
10175 | done | |
cd9a469c | 10176 | done |
10177 | IFS=$as_save_IFS | |
b30fcfae | 10178 | |
ef8184c7 | 10179 | fi |
10180 | fi | |
b30fcfae | 10181 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
ef8184c7 | 10182 | if test -n "$CXX_FOR_TARGET"; then |
cd9a469c | 10183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10184 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
ef8184c7 | 10185 | else |
cd9a469c | 10186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10187 | $as_echo "no" >&6; } | |
ef8184c7 | 10188 | fi |
10189 | ||
cd9a469c | 10190 | |
c47832b1 | 10191 | fi |
10192 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10193 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10194 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10196 | $as_echo_n "checking for $ac_word... " >&6; } | |
10197 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10198 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 10199 | else |
768691b5 | 10200 | if test -n "$CXX_FOR_TARGET"; then |
10201 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 10202 | else |
b30fcfae | 10203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10204 | for as_dir in $PATH | |
10205 | do | |
10206 | IFS=$as_save_IFS | |
10207 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10208 | for ac_exec_ext in '' $ac_executable_extensions; do |
10209 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10210 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10211 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10212 | break 2 |
10213 | fi | |
10214 | done | |
cd9a469c | 10215 | done |
10216 | IFS=$as_save_IFS | |
b30fcfae | 10217 | |
ef8184c7 | 10218 | fi |
10219 | fi | |
b30fcfae | 10220 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
768691b5 | 10221 | if test -n "$CXX_FOR_TARGET"; then |
cd9a469c | 10222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10223 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
ef8184c7 | 10224 | else |
cd9a469c | 10225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10226 | $as_echo "no" >&6; } | |
ef8184c7 | 10227 | fi |
b30fcfae | 10228 | |
cd9a469c | 10229 | |
c47832b1 | 10230 | fi |
10231 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10232 | done | |
10233 | fi | |
b30fcfae | 10234 | |
768691b5 | 10235 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10236 | set dummy c++ g++ cxx gxx | |
10237 | if test $build = $target ; then | |
10238 | CXX_FOR_TARGET="$2" | |
ef8184c7 | 10239 | else |
768691b5 | 10240 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ef8184c7 | 10241 | fi |
b7ef8464 | 10242 | else |
10243 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
bb612911 | 10244 | fi |
10245 | ||
95a05732 | 10246 | |
10247 | ||
10248 | if test -n "$GCC_FOR_TARGET"; then | |
10249 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10250 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10251 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10252 | fi | |
10253 | ||
10254 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10255 | for ncn_progname in gcc; do | |
10256 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10257 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10259 | $as_echo_n "checking for $ac_word... " >&6; } | |
10260 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10261 | $as_echo_n "(cached) " >&6 | |
95a05732 | 10262 | else |
10263 | if test -n "$GCC_FOR_TARGET"; then | |
10264 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10265 | else | |
10266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10267 | for as_dir in $PATH | |
10268 | do | |
10269 | IFS=$as_save_IFS | |
10270 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10271 | for ac_exec_ext in '' $ac_executable_extensions; do |
10272 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10273 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10274 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10275 | break 2 |
10276 | fi | |
10277 | done | |
cd9a469c | 10278 | done |
10279 | IFS=$as_save_IFS | |
95a05732 | 10280 | |
10281 | fi | |
10282 | fi | |
10283 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10284 | if test -n "$GCC_FOR_TARGET"; then | |
cd9a469c | 10285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10286 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
95a05732 | 10287 | else |
cd9a469c | 10288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10289 | $as_echo "no" >&6; } | |
95a05732 | 10290 | fi |
10291 | ||
cd9a469c | 10292 | |
95a05732 | 10293 | done |
10294 | fi | |
10295 | ||
10296 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10297 | for ncn_progname in gcc; do |
cd9a469c | 10298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10299 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10300 | if test -x $with_build_time_tools/${ncn_progname}; then |
10301 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10303 | $as_echo "yes" >&6; } | |
c47832b1 | 10304 | break |
10305 | else | |
cd9a469c | 10306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10307 | $as_echo "no" >&6; } | |
c47832b1 | 10308 | fi |
10309 | done | |
10310 | fi | |
10311 | ||
10312 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10313 | for ncn_progname in gcc; do | |
10314 | if test -n "$ncn_target_tool_prefix"; then | |
10315 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10316 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 10317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10318 | $as_echo_n "checking for $ac_word... " >&6; } | |
10319 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10320 | $as_echo_n "(cached) " >&6 | |
bb612911 | 10321 | else |
c47832b1 | 10322 | if test -n "$GCC_FOR_TARGET"; then |
10323 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
bb612911 | 10324 | else |
b30fcfae | 10325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10326 | for as_dir in $PATH | |
10327 | do | |
10328 | IFS=$as_save_IFS | |
10329 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10330 | for ac_exec_ext in '' $ac_executable_extensions; do |
10331 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10332 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10333 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10334 | break 2 |
10335 | fi | |
10336 | done | |
cd9a469c | 10337 | done |
10338 | IFS=$as_save_IFS | |
b30fcfae | 10339 | |
bb612911 | 10340 | fi |
10341 | fi | |
b30fcfae | 10342 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
c47832b1 | 10343 | if test -n "$GCC_FOR_TARGET"; then |
cd9a469c | 10344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10345 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
bb612911 | 10346 | else |
cd9a469c | 10347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10348 | $as_echo "no" >&6; } | |
bb612911 | 10349 | fi |
10350 | ||
cd9a469c | 10351 | |
c47832b1 | 10352 | fi |
10353 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10354 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10355 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10357 | $as_echo_n "checking for $ac_word... " >&6; } | |
10358 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10359 | $as_echo_n "(cached) " >&6 | |
bb612911 | 10360 | else |
c47832b1 | 10361 | if test -n "$GCC_FOR_TARGET"; then |
10362 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
bb612911 | 10363 | else |
b30fcfae | 10364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10365 | for as_dir in $PATH | |
10366 | do | |
10367 | IFS=$as_save_IFS | |
10368 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10369 | for ac_exec_ext in '' $ac_executable_extensions; do |
10370 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10371 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10372 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10373 | break 2 |
10374 | fi | |
10375 | done | |
cd9a469c | 10376 | done |
10377 | IFS=$as_save_IFS | |
b30fcfae | 10378 | |
bb612911 | 10379 | fi |
10380 | fi | |
b30fcfae | 10381 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
c47832b1 | 10382 | if test -n "$GCC_FOR_TARGET"; then |
cd9a469c | 10383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10384 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
bb612911 | 10385 | else |
cd9a469c | 10386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10387 | $as_echo "no" >&6; } | |
bb612911 | 10388 | fi |
b30fcfae | 10389 | |
cd9a469c | 10390 | |
c47832b1 | 10391 | fi |
10392 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10393 | done | |
10394 | fi | |
b30fcfae | 10395 | |
c47832b1 | 10396 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10397 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
b7ef8464 | 10398 | else |
10399 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
c47832b1 | 10400 | fi |
10401 | ||
95a05732 | 10402 | |
10403 | ||
10404 | if test -n "$GCJ_FOR_TARGET"; then | |
10405 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10406 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10407 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10408 | fi | |
10409 | ||
10410 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10411 | for ncn_progname in gcj; do | |
10412 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10413 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10415 | $as_echo_n "checking for $ac_word... " >&6; } | |
10416 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10417 | $as_echo_n "(cached) " >&6 | |
95a05732 | 10418 | else |
10419 | if test -n "$GCJ_FOR_TARGET"; then | |
10420 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10421 | else | |
10422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10423 | for as_dir in $PATH | |
10424 | do | |
10425 | IFS=$as_save_IFS | |
10426 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10427 | for ac_exec_ext in '' $ac_executable_extensions; do |
10428 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10429 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10430 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10431 | break 2 |
10432 | fi | |
10433 | done | |
cd9a469c | 10434 | done |
10435 | IFS=$as_save_IFS | |
95a05732 | 10436 | |
10437 | fi | |
10438 | fi | |
10439 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10440 | if test -n "$GCJ_FOR_TARGET"; then | |
cd9a469c | 10441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10442 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
95a05732 | 10443 | else |
cd9a469c | 10444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10445 | $as_echo "no" >&6; } | |
95a05732 | 10446 | fi |
10447 | ||
cd9a469c | 10448 | |
95a05732 | 10449 | done |
10450 | fi | |
10451 | ||
10452 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10453 | for ncn_progname in gcj; do |
cd9a469c | 10454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10455 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10456 | if test -x $with_build_time_tools/${ncn_progname}; then |
10457 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10459 | $as_echo "yes" >&6; } | |
c47832b1 | 10460 | break |
10461 | else | |
cd9a469c | 10462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10463 | $as_echo "no" >&6; } | |
c47832b1 | 10464 | fi |
10465 | done | |
10466 | fi | |
10467 | ||
10468 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10469 | for ncn_progname in gcj; do | |
10470 | if test -n "$ncn_target_tool_prefix"; then | |
10471 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10472 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 10473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10474 | $as_echo_n "checking for $ac_word... " >&6; } | |
10475 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10476 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10477 | else |
a4af6a58 | 10478 | if test -n "$GCJ_FOR_TARGET"; then |
10479 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10480 | else | |
b30fcfae | 10481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10482 | for as_dir in $PATH | |
10483 | do | |
10484 | IFS=$as_save_IFS | |
10485 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10486 | for ac_exec_ext in '' $ac_executable_extensions; do |
10487 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10488 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10489 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10490 | break 2 |
10491 | fi | |
10492 | done | |
cd9a469c | 10493 | done |
10494 | IFS=$as_save_IFS | |
b30fcfae | 10495 | |
c47832b1 | 10496 | fi |
10497 | fi | |
95a05732 | 10498 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10499 | if test -n "$GCJ_FOR_TARGET"; then | |
cd9a469c | 10500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10501 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
95a05732 | 10502 | else |
cd9a469c | 10503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10504 | $as_echo "no" >&6; } | |
95a05732 | 10505 | fi |
10506 | ||
cd9a469c | 10507 | |
95a05732 | 10508 | fi |
10509 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10510 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10511 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10513 | $as_echo_n "checking for $ac_word... " >&6; } | |
10514 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10515 | $as_echo_n "(cached) " >&6 | |
95a05732 | 10516 | else |
10517 | if test -n "$GCJ_FOR_TARGET"; then | |
10518 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10519 | else | |
10520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10521 | for as_dir in $PATH | |
10522 | do | |
10523 | IFS=$as_save_IFS | |
10524 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10525 | for ac_exec_ext in '' $ac_executable_extensions; do |
10526 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10527 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10528 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10529 | break 2 |
10530 | fi | |
10531 | done | |
cd9a469c | 10532 | done |
10533 | IFS=$as_save_IFS | |
95a05732 | 10534 | |
10535 | fi | |
10536 | fi | |
10537 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10538 | if test -n "$GCJ_FOR_TARGET"; then | |
cd9a469c | 10539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10540 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
95a05732 | 10541 | else |
cd9a469c | 10542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10543 | $as_echo "no" >&6; } | |
95a05732 | 10544 | fi |
10545 | ||
cd9a469c | 10546 | |
95a05732 | 10547 | fi |
10548 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10549 | done | |
10550 | fi | |
10551 | ||
10552 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10553 | set dummy gcj | |
10554 | if test $build = $target ; then | |
10555 | GCJ_FOR_TARGET="$2" | |
10556 | else | |
10557 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10558 | fi | |
b7ef8464 | 10559 | else |
10560 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
95a05732 | 10561 | fi |
10562 | ||
10563 | ||
10564 | ||
10565 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10566 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10567 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10568 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
c47832b1 | 10569 | fi |
10570 | ||
95a05732 | 10571 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10572 | for ncn_progname in gfortran; do | |
10573 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
c47832b1 | 10574 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10576 | $as_echo_n "checking for $ac_word... " >&6; } | |
10577 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10578 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10579 | else |
95a05732 | 10580 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10581 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
c47832b1 | 10582 | else |
b30fcfae | 10583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10584 | for as_dir in $PATH | |
10585 | do | |
10586 | IFS=$as_save_IFS | |
10587 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10588 | for ac_exec_ext in '' $ac_executable_extensions; do |
10589 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10590 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10591 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10592 | break 2 |
10593 | fi | |
10594 | done | |
cd9a469c | 10595 | done |
10596 | IFS=$as_save_IFS | |
b30fcfae | 10597 | |
c47832b1 | 10598 | fi |
10599 | fi | |
95a05732 | 10600 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10601 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
cd9a469c | 10602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10603 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
c47832b1 | 10604 | else |
cd9a469c | 10605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10606 | $as_echo "no" >&6; } | |
c47832b1 | 10607 | fi |
b30fcfae | 10608 | |
cd9a469c | 10609 | |
c47832b1 | 10610 | done |
10611 | fi | |
b30fcfae | 10612 | |
95a05732 | 10613 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
c47832b1 | 10614 | for ncn_progname in gfortran; do |
cd9a469c | 10615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10616 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10617 | if test -x $with_build_time_tools/${ncn_progname}; then |
10618 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10620 | $as_echo "yes" >&6; } | |
c47832b1 | 10621 | break |
10622 | else | |
cd9a469c | 10623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10624 | $as_echo "no" >&6; } | |
c47832b1 | 10625 | fi |
10626 | done | |
10627 | fi | |
10628 | ||
10629 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10630 | for ncn_progname in gfortran; do | |
10631 | if test -n "$ncn_target_tool_prefix"; then | |
10632 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10633 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 10634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10635 | $as_echo_n "checking for $ac_word... " >&6; } | |
10636 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10637 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10638 | else |
10639 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
b30fcfae | 10640 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10641 | else | |
10642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10643 | for as_dir in $PATH | |
10644 | do | |
10645 | IFS=$as_save_IFS | |
10646 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10647 | for ac_exec_ext in '' $ac_executable_extensions; do |
10648 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10649 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10650 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10651 | break 2 |
10652 | fi | |
10653 | done | |
cd9a469c | 10654 | done |
10655 | IFS=$as_save_IFS | |
b30fcfae | 10656 | |
c47832b1 | 10657 | fi |
10658 | fi | |
b30fcfae | 10659 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
c47832b1 | 10660 | if test -n "$GFORTRAN_FOR_TARGET"; then |
cd9a469c | 10661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10662 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
c47832b1 | 10663 | else |
cd9a469c | 10664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10665 | $as_echo "no" >&6; } | |
c47832b1 | 10666 | fi |
10667 | ||
cd9a469c | 10668 | |
c47832b1 | 10669 | fi |
10670 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10671 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10672 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10674 | $as_echo_n "checking for $ac_word... " >&6; } | |
10675 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10676 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10677 | else |
10678 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10679 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10680 | else | |
b30fcfae | 10681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10682 | for as_dir in $PATH | |
10683 | do | |
10684 | IFS=$as_save_IFS | |
10685 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10686 | for ac_exec_ext in '' $ac_executable_extensions; do |
10687 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10688 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10689 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10690 | break 2 |
10691 | fi | |
10692 | done | |
cd9a469c | 10693 | done |
10694 | IFS=$as_save_IFS | |
b30fcfae | 10695 | |
c47832b1 | 10696 | fi |
10697 | fi | |
b30fcfae | 10698 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
c47832b1 | 10699 | if test -n "$GFORTRAN_FOR_TARGET"; then |
cd9a469c | 10700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10701 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
c47832b1 | 10702 | else |
cd9a469c | 10703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10704 | $as_echo "no" >&6; } | |
c47832b1 | 10705 | fi |
b30fcfae | 10706 | |
cd9a469c | 10707 | |
c47832b1 | 10708 | fi |
10709 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10710 | done | |
10711 | fi | |
b30fcfae | 10712 | |
c47832b1 | 10713 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10714 | set dummy gfortran | |
768691b5 | 10715 | if test $build = $target ; then |
c47832b1 | 10716 | GFORTRAN_FOR_TARGET="$2" |
bb612911 | 10717 | else |
c47832b1 | 10718 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
10719 | fi | |
b7ef8464 | 10720 | else |
10721 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
c47832b1 | 10722 | fi |
10723 | ||
10724 | ||
10725 | ||
5ff5b630 | 10726 | if test -n "$GOC_FOR_TARGET"; then |
10727 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10728 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10729 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10730 | fi | |
10731 | ||
10732 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10733 | for ncn_progname in gccgo; do | |
10734 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10735 | set dummy ${ncn_progname}; ac_word=$2 | |
10736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10737 | $as_echo_n "checking for $ac_word... " >&6; } | |
10738 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10739 | $as_echo_n "(cached) " >&6 | |
10740 | else | |
10741 | if test -n "$GOC_FOR_TARGET"; then | |
10742 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10743 | else | |
10744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10745 | for as_dir in $PATH | |
10746 | do | |
10747 | IFS=$as_save_IFS | |
10748 | test -z "$as_dir" && as_dir=. | |
10749 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10750 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10751 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10752 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10753 | break 2 | |
10754 | fi | |
10755 | done | |
10756 | done | |
10757 | IFS=$as_save_IFS | |
10758 | ||
10759 | fi | |
10760 | fi | |
10761 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10762 | if test -n "$GOC_FOR_TARGET"; then | |
10763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10764 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10765 | else | |
10766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10767 | $as_echo "no" >&6; } | |
10768 | fi | |
10769 | ||
10770 | ||
10771 | done | |
10772 | fi | |
10773 | ||
10774 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10775 | for ncn_progname in gccgo; do | |
10776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10777 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10778 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10779 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10781 | $as_echo "yes" >&6; } | |
10782 | break | |
10783 | else | |
10784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10785 | $as_echo "no" >&6; } | |
10786 | fi | |
10787 | done | |
10788 | fi | |
10789 | ||
10790 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10791 | for ncn_progname in gccgo; do | |
10792 | if test -n "$ncn_target_tool_prefix"; then | |
10793 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10794 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10796 | $as_echo_n "checking for $ac_word... " >&6; } | |
10797 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10798 | $as_echo_n "(cached) " >&6 | |
10799 | else | |
10800 | if test -n "$GOC_FOR_TARGET"; then | |
10801 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10802 | else | |
10803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10804 | for as_dir in $PATH | |
10805 | do | |
10806 | IFS=$as_save_IFS | |
10807 | test -z "$as_dir" && as_dir=. | |
10808 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10809 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10810 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10811 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10812 | break 2 | |
10813 | fi | |
10814 | done | |
10815 | done | |
10816 | IFS=$as_save_IFS | |
10817 | ||
10818 | fi | |
10819 | fi | |
10820 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10821 | if test -n "$GOC_FOR_TARGET"; then | |
10822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10823 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10824 | else | |
10825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10826 | $as_echo "no" >&6; } | |
10827 | fi | |
10828 | ||
10829 | ||
10830 | fi | |
10831 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10832 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10833 | set dummy ${ncn_progname}; ac_word=$2 | |
10834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10835 | $as_echo_n "checking for $ac_word... " >&6; } | |
10836 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10837 | $as_echo_n "(cached) " >&6 | |
10838 | else | |
10839 | if test -n "$GOC_FOR_TARGET"; then | |
10840 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10841 | else | |
10842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10843 | for as_dir in $PATH | |
10844 | do | |
10845 | IFS=$as_save_IFS | |
10846 | test -z "$as_dir" && as_dir=. | |
10847 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10848 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10849 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10850 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10851 | break 2 | |
10852 | fi | |
10853 | done | |
10854 | done | |
10855 | IFS=$as_save_IFS | |
10856 | ||
10857 | fi | |
10858 | fi | |
10859 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10860 | if test -n "$GOC_FOR_TARGET"; then | |
10861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10862 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10863 | else | |
10864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10865 | $as_echo "no" >&6; } | |
10866 | fi | |
10867 | ||
10868 | ||
10869 | fi | |
10870 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10871 | done | |
10872 | fi | |
10873 | ||
10874 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10875 | set dummy gccgo | |
10876 | if test $build = $target ; then | |
10877 | GOC_FOR_TARGET="$2" | |
10878 | else | |
10879 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10880 | fi | |
10881 | else | |
10882 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10883 | fi | |
10884 | ||
10885 | ||
10886 | ||
c47832b1 | 10887 | cat > conftest.c << \EOF |
10888 | #ifdef __GNUC__ | |
10889 | gcc_yay; | |
10890 | #endif | |
10891 | EOF | |
10892 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10893 | have_gcc_for_target=yes | |
10894 | else | |
10895 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
10896 | have_gcc_for_target=no | |
10897 | fi | |
10898 | rm conftest.c | |
10899 | ||
10900 | ||
10901 | ||
10902 | ||
10903 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
10904 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 10905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10906 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
ab0da556 | 10907 | if test -x $with_build_time_tools/ar; then |
10908 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10909 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
cd9a469c | 10910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10911 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
ab0da556 | 10912 | else |
cd9a469c | 10913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10914 | $as_echo "no" >&6; } | |
ab0da556 | 10915 | fi |
c47832b1 | 10916 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10917 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
b7ef8464 | 10918 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10919 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
c47832b1 | 10920 | fi |
10921 | fi | |
38d7211b | 10922 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 10923 | # Extract the first word of "ar", so it can be a program name with args. |
10924 | set dummy ar; ac_word=$2 | |
cd9a469c | 10925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10926 | $as_echo_n "checking for $ac_word... " >&6; } | |
10927 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10928 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10929 | else |
b30fcfae | 10930 | case $AR_FOR_TARGET in |
10931 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 10932 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10933 | ;; | |
c47832b1 | 10934 | *) |
b30fcfae | 10935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10936 | for as_dir in $gcc_cv_tool_dirs | |
10937 | do | |
10938 | IFS=$as_save_IFS | |
10939 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10940 | for ac_exec_ext in '' $ac_executable_extensions; do |
10941 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10942 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 10943 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10944 | break 2 |
10945 | fi | |
10946 | done | |
cd9a469c | 10947 | done |
10948 | IFS=$as_save_IFS | |
b30fcfae | 10949 | |
c47832b1 | 10950 | ;; |
10951 | esac | |
10952 | fi | |
b30fcfae | 10953 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
c47832b1 | 10954 | if test -n "$AR_FOR_TARGET"; then |
cd9a469c | 10955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10956 | $as_echo "$AR_FOR_TARGET" >&6; } | |
c47832b1 | 10957 | else |
cd9a469c | 10958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10959 | $as_echo "no" >&6; } | |
ef8184c7 | 10960 | fi |
10961 | ||
cd9a469c | 10962 | |
c47832b1 | 10963 | fi |
10964 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
95a05732 | 10965 | |
10966 | ||
10967 | if test -n "$AR_FOR_TARGET"; then | |
10968 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10969 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10970 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10971 | fi | |
10972 | ||
10973 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10974 | for ncn_progname in ar; do | |
10975 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10976 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10978 | $as_echo_n "checking for $ac_word... " >&6; } | |
10979 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10980 | $as_echo_n "(cached) " >&6 | |
95a05732 | 10981 | else |
10982 | if test -n "$AR_FOR_TARGET"; then | |
10983 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10984 | else | |
10985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10986 | for as_dir in $PATH | |
10987 | do | |
10988 | IFS=$as_save_IFS | |
10989 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10990 | for ac_exec_ext in '' $ac_executable_extensions; do |
10991 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10992 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10993 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10994 | break 2 |
10995 | fi | |
10996 | done | |
cd9a469c | 10997 | done |
10998 | IFS=$as_save_IFS | |
95a05732 | 10999 | |
11000 | fi | |
11001 | fi | |
11002 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11003 | if test -n "$AR_FOR_TARGET"; then | |
cd9a469c | 11004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11005 | $as_echo "$AR_FOR_TARGET" >&6; } | |
95a05732 | 11006 | else |
cd9a469c | 11007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11008 | $as_echo "no" >&6; } | |
95a05732 | 11009 | fi |
11010 | ||
cd9a469c | 11011 | |
95a05732 | 11012 | done |
11013 | fi | |
11014 | ||
11015 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11016 | for ncn_progname in ar; do |
cd9a469c | 11017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11018 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11019 | if test -x $with_build_time_tools/${ncn_progname}; then |
11020 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11022 | $as_echo "yes" >&6; } | |
c47832b1 | 11023 | break |
11024 | else | |
cd9a469c | 11025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11026 | $as_echo "no" >&6; } | |
c47832b1 | 11027 | fi |
11028 | done | |
11029 | fi | |
11030 | ||
11031 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
11032 | for ncn_progname in ar; do | |
11033 | if test -n "$ncn_target_tool_prefix"; then | |
11034 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11035 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 11036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11037 | $as_echo_n "checking for $ac_word... " >&6; } | |
11038 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11039 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11040 | else |
c47832b1 | 11041 | if test -n "$AR_FOR_TARGET"; then |
11042 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11043 | else |
b30fcfae | 11044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11045 | for as_dir in $PATH | |
11046 | do | |
11047 | IFS=$as_save_IFS | |
11048 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11049 | for ac_exec_ext in '' $ac_executable_extensions; do |
11050 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11051 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11053 | break 2 |
11054 | fi | |
11055 | done | |
cd9a469c | 11056 | done |
11057 | IFS=$as_save_IFS | |
b30fcfae | 11058 | |
ef8184c7 | 11059 | fi |
11060 | fi | |
b30fcfae | 11061 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
c47832b1 | 11062 | if test -n "$AR_FOR_TARGET"; then |
cd9a469c | 11063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11064 | $as_echo "$AR_FOR_TARGET" >&6; } | |
ef8184c7 | 11065 | else |
cd9a469c | 11066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11067 | $as_echo "no" >&6; } | |
ef8184c7 | 11068 | fi |
11069 | ||
cd9a469c | 11070 | |
c47832b1 | 11071 | fi |
11072 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
11073 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11074 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11076 | $as_echo_n "checking for $ac_word... " >&6; } | |
11077 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11078 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 11079 | else |
11080 | if test -n "$AR_FOR_TARGET"; then | |
11081 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11082 | else | |
b30fcfae | 11083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11084 | for as_dir in $PATH | |
11085 | do | |
11086 | IFS=$as_save_IFS | |
11087 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11088 | for ac_exec_ext in '' $ac_executable_extensions; do |
11089 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11090 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11092 | break 2 |
11093 | fi | |
11094 | done | |
cd9a469c | 11095 | done |
11096 | IFS=$as_save_IFS | |
b30fcfae | 11097 | |
c47832b1 | 11098 | fi |
11099 | fi | |
b30fcfae | 11100 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
c47832b1 | 11101 | if test -n "$AR_FOR_TARGET"; then |
cd9a469c | 11102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11103 | $as_echo "$AR_FOR_TARGET" >&6; } | |
c47832b1 | 11104 | else |
cd9a469c | 11105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11106 | $as_echo "no" >&6; } | |
c47832b1 | 11107 | fi |
b30fcfae | 11108 | |
cd9a469c | 11109 | |
c47832b1 | 11110 | fi |
11111 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11112 | done | |
11113 | fi | |
b30fcfae | 11114 | |
c47832b1 | 11115 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11116 | set dummy ar | |
11117 | if test $build = $target ; then | |
11118 | AR_FOR_TARGET="$2" | |
11119 | else | |
11120 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
768691b5 | 11121 | fi |
b7ef8464 | 11122 | else |
11123 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
c47832b1 | 11124 | fi |
11125 | ||
ab0da556 | 11126 | else |
11127 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
c47832b1 | 11128 | fi |
11129 | ||
11130 | ||
11131 | ||
11132 | ||
11133 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11134 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11136 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
ab0da556 | 11137 | if test -x $with_build_time_tools/as; then |
11138 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11139 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
cd9a469c | 11140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11141 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
ab0da556 | 11142 | else |
cd9a469c | 11143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11144 | $as_echo "no" >&6; } | |
ab0da556 | 11145 | fi |
c47832b1 | 11146 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11147 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
b7ef8464 | 11148 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11149 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
c47832b1 | 11150 | fi |
11151 | fi | |
38d7211b | 11152 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11153 | # Extract the first word of "as", so it can be a program name with args. |
11154 | set dummy as; ac_word=$2 | |
cd9a469c | 11155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11156 | $as_echo_n "checking for $ac_word... " >&6; } | |
11157 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
11158 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 11159 | else |
b30fcfae | 11160 | case $AS_FOR_TARGET in |
11161 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11162 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11163 | ;; | |
c47832b1 | 11164 | *) |
b30fcfae | 11165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11166 | for as_dir in $gcc_cv_tool_dirs | |
11167 | do | |
11168 | IFS=$as_save_IFS | |
11169 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11170 | for ac_exec_ext in '' $ac_executable_extensions; do |
11171 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11172 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11174 | break 2 |
11175 | fi | |
11176 | done | |
cd9a469c | 11177 | done |
11178 | IFS=$as_save_IFS | |
b30fcfae | 11179 | |
c47832b1 | 11180 | ;; |
11181 | esac | |
11182 | fi | |
b30fcfae | 11183 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
c47832b1 | 11184 | if test -n "$AS_FOR_TARGET"; then |
cd9a469c | 11185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11186 | $as_echo "$AS_FOR_TARGET" >&6; } | |
c47832b1 | 11187 | else |
cd9a469c | 11188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11189 | $as_echo "no" >&6; } | |
c47832b1 | 11190 | fi |
11191 | ||
cd9a469c | 11192 | |
c47832b1 | 11193 | fi |
11194 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
95a05732 | 11195 | |
11196 | ||
11197 | if test -n "$AS_FOR_TARGET"; then | |
11198 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11199 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11200 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11201 | fi | |
11202 | ||
11203 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11204 | for ncn_progname in as; do | |
11205 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11206 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11208 | $as_echo_n "checking for $ac_word... " >&6; } | |
11209 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11210 | $as_echo_n "(cached) " >&6 | |
95a05732 | 11211 | else |
11212 | if test -n "$AS_FOR_TARGET"; then | |
11213 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11214 | else | |
11215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11216 | for as_dir in $PATH | |
11217 | do | |
11218 | IFS=$as_save_IFS | |
11219 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11220 | for ac_exec_ext in '' $ac_executable_extensions; do |
11221 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11222 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11223 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11224 | break 2 |
11225 | fi | |
11226 | done | |
cd9a469c | 11227 | done |
11228 | IFS=$as_save_IFS | |
95a05732 | 11229 | |
11230 | fi | |
11231 | fi | |
11232 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11233 | if test -n "$AS_FOR_TARGET"; then | |
cd9a469c | 11234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11235 | $as_echo "$AS_FOR_TARGET" >&6; } | |
95a05732 | 11236 | else |
cd9a469c | 11237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11238 | $as_echo "no" >&6; } | |
95a05732 | 11239 | fi |
11240 | ||
cd9a469c | 11241 | |
95a05732 | 11242 | done |
11243 | fi | |
11244 | ||
11245 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11246 | for ncn_progname in as; do |
cd9a469c | 11247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11248 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11249 | if test -x $with_build_time_tools/${ncn_progname}; then |
11250 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11252 | $as_echo "yes" >&6; } | |
c47832b1 | 11253 | break |
11254 | else | |
cd9a469c | 11255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11256 | $as_echo "no" >&6; } | |
c47832b1 | 11257 | fi |
11258 | done | |
11259 | fi | |
11260 | ||
11261 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11262 | for ncn_progname in as; do | |
11263 | if test -n "$ncn_target_tool_prefix"; then | |
11264 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11265 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 11266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11267 | $as_echo_n "checking for $ac_word... " >&6; } | |
11268 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11269 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 11270 | else |
11271 | if test -n "$AS_FOR_TARGET"; then | |
11272 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11273 | else | |
b30fcfae | 11274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11275 | for as_dir in $PATH | |
11276 | do | |
11277 | IFS=$as_save_IFS | |
11278 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11279 | for ac_exec_ext in '' $ac_executable_extensions; do |
11280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11281 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11283 | break 2 |
11284 | fi | |
11285 | done | |
cd9a469c | 11286 | done |
11287 | IFS=$as_save_IFS | |
b30fcfae | 11288 | |
c47832b1 | 11289 | fi |
11290 | fi | |
b30fcfae | 11291 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
c47832b1 | 11292 | if test -n "$AS_FOR_TARGET"; then |
cd9a469c | 11293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11294 | $as_echo "$AS_FOR_TARGET" >&6; } | |
c47832b1 | 11295 | else |
cd9a469c | 11296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11297 | $as_echo "no" >&6; } | |
c47832b1 | 11298 | fi |
11299 | ||
cd9a469c | 11300 | |
c47832b1 | 11301 | fi |
11302 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11303 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11304 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 11305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11306 | $as_echo_n "checking for $ac_word... " >&6; } | |
11307 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11308 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11309 | else |
c47832b1 | 11310 | if test -n "$AS_FOR_TARGET"; then |
11311 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11312 | else |
b30fcfae | 11313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11314 | for as_dir in $PATH | |
11315 | do | |
11316 | IFS=$as_save_IFS | |
11317 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11318 | for ac_exec_ext in '' $ac_executable_extensions; do |
11319 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11320 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11322 | break 2 |
11323 | fi | |
11324 | done | |
cd9a469c | 11325 | done |
11326 | IFS=$as_save_IFS | |
b30fcfae | 11327 | |
ef8184c7 | 11328 | fi |
11329 | fi | |
b30fcfae | 11330 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
c47832b1 | 11331 | if test -n "$AS_FOR_TARGET"; then |
cd9a469c | 11332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11333 | $as_echo "$AS_FOR_TARGET" >&6; } | |
ef8184c7 | 11334 | else |
cd9a469c | 11335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11336 | $as_echo "no" >&6; } | |
ef8184c7 | 11337 | fi |
b30fcfae | 11338 | |
cd9a469c | 11339 | |
c47832b1 | 11340 | fi |
11341 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11342 | done | |
11343 | fi | |
b30fcfae | 11344 | |
c47832b1 | 11345 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11346 | set dummy as | |
11347 | if test $build = $target ; then | |
11348 | AS_FOR_TARGET="$2" | |
11349 | else | |
11350 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ef8184c7 | 11351 | fi |
b7ef8464 | 11352 | else |
11353 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
c47832b1 | 11354 | fi |
768691b5 | 11355 | |
ab0da556 | 11356 | else |
11357 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
ef8184c7 | 11358 | fi |
11359 | ||
c47832b1 | 11360 | |
11361 | ||
11362 | ||
11363 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11364 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11366 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
ab0da556 | 11367 | if test -x $with_build_time_tools/dlltool; then |
11368 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11369 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
cd9a469c | 11370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11371 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
ab0da556 | 11372 | else |
cd9a469c | 11373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11374 | $as_echo "no" >&6; } | |
ab0da556 | 11375 | fi |
c47832b1 | 11376 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11377 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
b7ef8464 | 11378 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11379 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
c47832b1 | 11380 | fi |
11381 | fi | |
38d7211b | 11382 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11383 | # Extract the first word of "dlltool", so it can be a program name with args. |
11384 | set dummy dlltool; ac_word=$2 | |
cd9a469c | 11385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11386 | $as_echo_n "checking for $ac_word... " >&6; } | |
11387 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11388 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11389 | else |
b30fcfae | 11390 | case $DLLTOOL_FOR_TARGET in |
11391 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11392 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11393 | ;; | |
c47832b1 | 11394 | *) |
b30fcfae | 11395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11396 | for as_dir in $gcc_cv_tool_dirs | |
11397 | do | |
11398 | IFS=$as_save_IFS | |
11399 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11400 | for ac_exec_ext in '' $ac_executable_extensions; do |
11401 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11402 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11403 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11404 | break 2 |
11405 | fi | |
11406 | done | |
cd9a469c | 11407 | done |
11408 | IFS=$as_save_IFS | |
b30fcfae | 11409 | |
c47832b1 | 11410 | ;; |
11411 | esac | |
ef8184c7 | 11412 | fi |
b30fcfae | 11413 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
c47832b1 | 11414 | if test -n "$DLLTOOL_FOR_TARGET"; then |
cd9a469c | 11415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11416 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
ef8184c7 | 11417 | else |
cd9a469c | 11418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11419 | $as_echo "no" >&6; } | |
ef8184c7 | 11420 | fi |
11421 | ||
cd9a469c | 11422 | |
c47832b1 | 11423 | fi |
11424 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
95a05732 | 11425 | |
11426 | ||
11427 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11428 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11429 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11430 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11431 | fi | |
11432 | ||
11433 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11434 | for ncn_progname in dlltool; do | |
11435 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11436 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11438 | $as_echo_n "checking for $ac_word... " >&6; } | |
11439 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11440 | $as_echo_n "(cached) " >&6 | |
95a05732 | 11441 | else |
11442 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11443 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11444 | else | |
11445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11446 | for as_dir in $PATH | |
11447 | do | |
11448 | IFS=$as_save_IFS | |
11449 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11450 | for ac_exec_ext in '' $ac_executable_extensions; do |
11451 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11452 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11453 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11454 | break 2 |
11455 | fi | |
11456 | done | |
cd9a469c | 11457 | done |
11458 | IFS=$as_save_IFS | |
95a05732 | 11459 | |
11460 | fi | |
11461 | fi | |
11462 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11463 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
cd9a469c | 11464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11465 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
95a05732 | 11466 | else |
cd9a469c | 11467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11468 | $as_echo "no" >&6; } | |
95a05732 | 11469 | fi |
11470 | ||
cd9a469c | 11471 | |
95a05732 | 11472 | done |
11473 | fi | |
11474 | ||
11475 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11476 | for ncn_progname in dlltool; do |
cd9a469c | 11477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11478 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11479 | if test -x $with_build_time_tools/${ncn_progname}; then |
11480 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11482 | $as_echo "yes" >&6; } | |
c47832b1 | 11483 | break |
11484 | else | |
cd9a469c | 11485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11486 | $as_echo "no" >&6; } | |
c47832b1 | 11487 | fi |
11488 | done | |
11489 | fi | |
11490 | ||
11491 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11492 | for ncn_progname in dlltool; do | |
11493 | if test -n "$ncn_target_tool_prefix"; then | |
11494 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11495 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 11496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11497 | $as_echo_n "checking for $ac_word... " >&6; } | |
11498 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11499 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11500 | else |
c47832b1 | 11501 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11502 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11503 | else |
b30fcfae | 11504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11505 | for as_dir in $PATH | |
11506 | do | |
11507 | IFS=$as_save_IFS | |
11508 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11509 | for ac_exec_ext in '' $ac_executable_extensions; do |
11510 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11511 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11512 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11513 | break 2 |
11514 | fi | |
11515 | done | |
cd9a469c | 11516 | done |
11517 | IFS=$as_save_IFS | |
b30fcfae | 11518 | |
ef8184c7 | 11519 | fi |
11520 | fi | |
b30fcfae | 11521 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
c47832b1 | 11522 | if test -n "$DLLTOOL_FOR_TARGET"; then |
cd9a469c | 11523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11524 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
ef8184c7 | 11525 | else |
cd9a469c | 11526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11527 | $as_echo "no" >&6; } | |
ef8184c7 | 11528 | fi |
ef8184c7 | 11529 | |
cd9a469c | 11530 | |
c47832b1 | 11531 | fi |
11532 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11533 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11534 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11536 | $as_echo_n "checking for $ac_word... " >&6; } | |
11537 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11538 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11539 | else |
c47832b1 | 11540 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11541 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11542 | else |
b30fcfae | 11543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11544 | for as_dir in $PATH | |
11545 | do | |
11546 | IFS=$as_save_IFS | |
11547 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11548 | for ac_exec_ext in '' $ac_executable_extensions; do |
11549 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11550 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11551 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11552 | break 2 |
11553 | fi | |
11554 | done | |
cd9a469c | 11555 | done |
11556 | IFS=$as_save_IFS | |
b30fcfae | 11557 | |
ef8184c7 | 11558 | fi |
11559 | fi | |
b30fcfae | 11560 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
c47832b1 | 11561 | if test -n "$DLLTOOL_FOR_TARGET"; then |
cd9a469c | 11562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11563 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
ef8184c7 | 11564 | else |
cd9a469c | 11565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11566 | $as_echo "no" >&6; } | |
ef8184c7 | 11567 | fi |
b30fcfae | 11568 | |
cd9a469c | 11569 | |
c47832b1 | 11570 | fi |
11571 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11572 | done | |
11573 | fi | |
b30fcfae | 11574 | |
c47832b1 | 11575 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11576 | set dummy dlltool | |
11577 | if test $build = $target ; then | |
11578 | DLLTOOL_FOR_TARGET="$2" | |
11579 | else | |
11580 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11581 | fi | |
b7ef8464 | 11582 | else |
11583 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
c47832b1 | 11584 | fi |
11585 | ||
ab0da556 | 11586 | else |
11587 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
c47832b1 | 11588 | fi |
11589 | ||
ef8184c7 | 11590 | |
c47832b1 | 11591 | |
11592 | ||
11593 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11594 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11596 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
ab0da556 | 11597 | if test -x $with_build_time_tools/ld; then |
11598 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11599 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
cd9a469c | 11600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11601 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
ab0da556 | 11602 | else |
cd9a469c | 11603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11604 | $as_echo "no" >&6; } | |
ab0da556 | 11605 | fi |
c47832b1 | 11606 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11607 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
b7ef8464 | 11608 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11609 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
768691b5 | 11610 | fi |
c47832b1 | 11611 | fi |
38d7211b | 11612 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11613 | # Extract the first word of "ld", so it can be a program name with args. |
11614 | set dummy ld; ac_word=$2 | |
cd9a469c | 11615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11616 | $as_echo_n "checking for $ac_word... " >&6; } | |
11617 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11618 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11619 | else |
b30fcfae | 11620 | case $LD_FOR_TARGET in |
11621 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11622 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11623 | ;; | |
c47832b1 | 11624 | *) |
b30fcfae | 11625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11626 | for as_dir in $gcc_cv_tool_dirs | |
11627 | do | |
11628 | IFS=$as_save_IFS | |
11629 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11630 | for ac_exec_ext in '' $ac_executable_extensions; do |
11631 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11632 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11634 | break 2 |
11635 | fi | |
11636 | done | |
cd9a469c | 11637 | done |
11638 | IFS=$as_save_IFS | |
b30fcfae | 11639 | |
c47832b1 | 11640 | ;; |
11641 | esac | |
ef8184c7 | 11642 | fi |
b30fcfae | 11643 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
c47832b1 | 11644 | if test -n "$LD_FOR_TARGET"; then |
cd9a469c | 11645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11646 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ef8184c7 | 11647 | else |
cd9a469c | 11648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11649 | $as_echo "no" >&6; } | |
ef8184c7 | 11650 | fi |
768691b5 | 11651 | |
cd9a469c | 11652 | |
c47832b1 | 11653 | fi |
11654 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
95a05732 | 11655 | |
11656 | ||
11657 | if test -n "$LD_FOR_TARGET"; then | |
11658 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11659 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11660 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11661 | fi | |
11662 | ||
11663 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11664 | for ncn_progname in ld; do | |
11665 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11666 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11668 | $as_echo_n "checking for $ac_word... " >&6; } | |
11669 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11670 | $as_echo_n "(cached) " >&6 | |
95a05732 | 11671 | else |
11672 | if test -n "$LD_FOR_TARGET"; then | |
11673 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11674 | else | |
11675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11676 | for as_dir in $PATH | |
11677 | do | |
11678 | IFS=$as_save_IFS | |
11679 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11680 | for ac_exec_ext in '' $ac_executable_extensions; do |
11681 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11682 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11683 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11684 | break 2 |
11685 | fi | |
11686 | done | |
cd9a469c | 11687 | done |
11688 | IFS=$as_save_IFS | |
95a05732 | 11689 | |
11690 | fi | |
11691 | fi | |
11692 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11693 | if test -n "$LD_FOR_TARGET"; then | |
cd9a469c | 11694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11695 | $as_echo "$LD_FOR_TARGET" >&6; } | |
95a05732 | 11696 | else |
cd9a469c | 11697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11698 | $as_echo "no" >&6; } | |
95a05732 | 11699 | fi |
11700 | ||
cd9a469c | 11701 | |
95a05732 | 11702 | done |
11703 | fi | |
11704 | ||
11705 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11706 | for ncn_progname in ld; do |
cd9a469c | 11707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11708 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11709 | if test -x $with_build_time_tools/${ncn_progname}; then |
11710 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11712 | $as_echo "yes" >&6; } | |
c47832b1 | 11713 | break |
11714 | else | |
cd9a469c | 11715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11716 | $as_echo "no" >&6; } | |
c47832b1 | 11717 | fi |
11718 | done | |
bb612911 | 11719 | fi |
11720 | ||
c47832b1 | 11721 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
11722 | for ncn_progname in ld; do | |
11723 | if test -n "$ncn_target_tool_prefix"; then | |
11724 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11725 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 11726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11727 | $as_echo_n "checking for $ac_word... " >&6; } | |
11728 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11729 | $as_echo_n "(cached) " >&6 | |
bb612911 | 11730 | else |
ef8184c7 | 11731 | if test -n "$LD_FOR_TARGET"; then |
11732 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
bb612911 | 11733 | else |
b30fcfae | 11734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11735 | for as_dir in $PATH | |
11736 | do | |
11737 | IFS=$as_save_IFS | |
11738 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11739 | for ac_exec_ext in '' $ac_executable_extensions; do |
11740 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11741 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11742 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11743 | break 2 |
11744 | fi | |
11745 | done | |
cd9a469c | 11746 | done |
11747 | IFS=$as_save_IFS | |
b30fcfae | 11748 | |
bb612911 | 11749 | fi |
11750 | fi | |
b30fcfae | 11751 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
ef8184c7 | 11752 | if test -n "$LD_FOR_TARGET"; then |
cd9a469c | 11753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11754 | $as_echo "$LD_FOR_TARGET" >&6; } | |
bb612911 | 11755 | else |
cd9a469c | 11756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11757 | $as_echo "no" >&6; } | |
bb612911 | 11758 | fi |
11759 | ||
cd9a469c | 11760 | |
c47832b1 | 11761 | fi |
11762 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11763 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11764 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 11765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11766 | $as_echo_n "checking for $ac_word... " >&6; } | |
11767 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11768 | $as_echo_n "(cached) " >&6 | |
bb612911 | 11769 | else |
768691b5 | 11770 | if test -n "$LD_FOR_TARGET"; then |
11771 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
bb612911 | 11772 | else |
b30fcfae | 11773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11774 | for as_dir in $PATH | |
11775 | do | |
11776 | IFS=$as_save_IFS | |
11777 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11778 | for ac_exec_ext in '' $ac_executable_extensions; do |
11779 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11780 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11781 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11782 | break 2 |
11783 | fi | |
11784 | done | |
cd9a469c | 11785 | done |
11786 | IFS=$as_save_IFS | |
b30fcfae | 11787 | |
bb612911 | 11788 | fi |
11789 | fi | |
b30fcfae | 11790 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
768691b5 | 11791 | if test -n "$LD_FOR_TARGET"; then |
cd9a469c | 11792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11793 | $as_echo "$LD_FOR_TARGET" >&6; } | |
bb612911 | 11794 | else |
cd9a469c | 11795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11796 | $as_echo "no" >&6; } | |
bb612911 | 11797 | fi |
b30fcfae | 11798 | |
cd9a469c | 11799 | |
c47832b1 | 11800 | fi |
11801 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11802 | done | |
11803 | fi | |
b30fcfae | 11804 | |
768691b5 | 11805 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11806 | set dummy ld | |
11807 | if test $build = $target ; then | |
11808 | LD_FOR_TARGET="$2" | |
bb612911 | 11809 | else |
768691b5 | 11810 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
bb612911 | 11811 | fi |
b7ef8464 | 11812 | else |
11813 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
bb612911 | 11814 | fi |
11815 | ||
ab0da556 | 11816 | else |
11817 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
c47832b1 | 11818 | fi |
11819 | ||
11820 | ||
11821 | ||
11822 | ||
11823 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11824 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11826 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
ab0da556 | 11827 | if test -x $with_build_time_tools/lipo; then |
11828 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11829 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
cd9a469c | 11830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11831 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
ab0da556 | 11832 | else |
cd9a469c | 11833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11834 | $as_echo "no" >&6; } | |
ab0da556 | 11835 | fi |
c47832b1 | 11836 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11837 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
b7ef8464 | 11838 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11839 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
c47832b1 | 11840 | fi |
11841 | fi | |
95a05732 | 11842 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11843 | # Extract the first word of "lipo", so it can be a program name with args. | |
11844 | set dummy lipo; ac_word=$2 | |
cd9a469c | 11845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11846 | $as_echo_n "checking for $ac_word... " >&6; } | |
11847 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11848 | $as_echo_n "(cached) " >&6 | |
95a05732 | 11849 | else |
11850 | case $LIPO_FOR_TARGET in | |
11851 | [\\/]* | ?:[\\/]*) | |
11852 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11853 | ;; | |
11854 | *) | |
11855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11856 | for as_dir in $gcc_cv_tool_dirs | |
11857 | do | |
11858 | IFS=$as_save_IFS | |
11859 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11860 | for ac_exec_ext in '' $ac_executable_extensions; do |
11861 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11862 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11863 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11864 | break 2 |
11865 | fi | |
11866 | done | |
cd9a469c | 11867 | done |
11868 | IFS=$as_save_IFS | |
95a05732 | 11869 | |
11870 | ;; | |
11871 | esac | |
11872 | fi | |
11873 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
95a05732 | 11874 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 11875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11876 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
95a05732 | 11877 | else |
cd9a469c | 11878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11879 | $as_echo "no" >&6; } | |
95a05732 | 11880 | fi |
11881 | ||
cd9a469c | 11882 | |
95a05732 | 11883 | fi |
11884 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11885 | ||
11886 | ||
11887 | if test -n "$LIPO_FOR_TARGET"; then | |
11888 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11889 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11890 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11891 | fi | |
11892 | ||
11893 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11894 | for ncn_progname in lipo; do | |
11895 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11896 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11898 | $as_echo_n "checking for $ac_word... " >&6; } | |
11899 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11900 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 11901 | else |
95a05732 | 11902 | if test -n "$LIPO_FOR_TARGET"; then |
11903 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11904 | else | |
11905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11906 | for as_dir in $PATH | |
b30fcfae | 11907 | do |
11908 | IFS=$as_save_IFS | |
11909 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11910 | for ac_exec_ext in '' $ac_executable_extensions; do |
11911 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11912 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11913 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11914 | break 2 |
11915 | fi | |
11916 | done | |
cd9a469c | 11917 | done |
11918 | IFS=$as_save_IFS | |
b30fcfae | 11919 | |
c47832b1 | 11920 | fi |
95a05732 | 11921 | fi |
11922 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
c47832b1 | 11923 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 11924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11925 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
c47832b1 | 11926 | else |
cd9a469c | 11927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11928 | $as_echo "no" >&6; } | |
c47832b1 | 11929 | fi |
11930 | ||
cd9a469c | 11931 | |
95a05732 | 11932 | done |
c47832b1 | 11933 | fi |
95a05732 | 11934 | |
11935 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11936 | for ncn_progname in lipo; do |
cd9a469c | 11937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11938 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11939 | if test -x $with_build_time_tools/${ncn_progname}; then |
11940 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11942 | $as_echo "yes" >&6; } | |
c47832b1 | 11943 | break |
11944 | else | |
cd9a469c | 11945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11946 | $as_echo "no" >&6; } | |
c47832b1 | 11947 | fi |
11948 | done | |
11949 | fi | |
11950 | ||
11951 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11952 | for ncn_progname in lipo; do | |
11953 | if test -n "$ncn_target_tool_prefix"; then | |
11954 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11955 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 11956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11957 | $as_echo_n "checking for $ac_word... " >&6; } | |
11958 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11959 | $as_echo_n "(cached) " >&6 | |
9fec3fa8 | 11960 | else |
11961 | if test -n "$LIPO_FOR_TARGET"; then | |
11962 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11963 | else | |
b30fcfae | 11964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11965 | for as_dir in $PATH | |
11966 | do | |
11967 | IFS=$as_save_IFS | |
11968 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11969 | for ac_exec_ext in '' $ac_executable_extensions; do |
11970 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11971 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11972 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11973 | break 2 |
11974 | fi | |
11975 | done | |
cd9a469c | 11976 | done |
11977 | IFS=$as_save_IFS | |
b30fcfae | 11978 | |
9fec3fa8 | 11979 | fi |
11980 | fi | |
b30fcfae | 11981 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
9fec3fa8 | 11982 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 11983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11984 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9fec3fa8 | 11985 | else |
cd9a469c | 11986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11987 | $as_echo "no" >&6; } | |
9fec3fa8 | 11988 | fi |
11989 | ||
cd9a469c | 11990 | |
c47832b1 | 11991 | fi |
11992 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11993 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 11994 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 11995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11996 | $as_echo_n "checking for $ac_word... " >&6; } | |
11997 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11998 | $as_echo_n "(cached) " >&6 | |
9fec3fa8 | 11999 | else |
12000 | if test -n "$LIPO_FOR_TARGET"; then | |
9886f3d1 | 12001 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
12002 | else | |
b30fcfae | 12003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12004 | for as_dir in $PATH | |
12005 | do | |
12006 | IFS=$as_save_IFS | |
12007 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12008 | for ac_exec_ext in '' $ac_executable_extensions; do |
12009 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12010 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12011 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12012 | break 2 |
12013 | fi | |
12014 | done | |
cd9a469c | 12015 | done |
12016 | IFS=$as_save_IFS | |
b30fcfae | 12017 | |
9fec3fa8 | 12018 | fi |
12019 | fi | |
b30fcfae | 12020 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
9fec3fa8 | 12021 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 12022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12023 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9fec3fa8 | 12024 | else |
cd9a469c | 12025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12026 | $as_echo "no" >&6; } | |
9fec3fa8 | 12027 | fi |
b30fcfae | 12028 | |
cd9a469c | 12029 | |
c47832b1 | 12030 | fi |
12031 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
12032 | done | |
12033 | fi | |
b30fcfae | 12034 | |
9fec3fa8 | 12035 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
12036 | set dummy lipo | |
12037 | if test $build = $target ; then | |
12038 | LIPO_FOR_TARGET="$2" | |
12039 | else | |
12040 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12041 | fi | |
b7ef8464 | 12042 | else |
12043 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
9fec3fa8 | 12044 | fi |
12045 | ||
ab0da556 | 12046 | else |
12047 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
c47832b1 | 12048 | fi |
12049 | ||
12050 | ||
12051 | ||
12052 | ||
12053 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
12054 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 12055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
12056 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
ab0da556 | 12057 | if test -x $with_build_time_tools/nm; then |
12058 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
12059 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
cd9a469c | 12060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
12061 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
ab0da556 | 12062 | else |
cd9a469c | 12063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12064 | $as_echo "no" >&6; } | |
ab0da556 | 12065 | fi |
c47832b1 | 12066 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12067 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
b7ef8464 | 12068 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
12069 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
c47832b1 | 12070 | fi |
12071 | fi | |
38d7211b | 12072 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 12073 | # Extract the first word of "nm", so it can be a program name with args. |
12074 | set dummy nm; ac_word=$2 | |
cd9a469c | 12075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12076 | $as_echo_n "checking for $ac_word... " >&6; } | |
12077 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
12078 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 12079 | else |
b30fcfae | 12080 | case $NM_FOR_TARGET in |
12081 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 12082 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
12083 | ;; | |
c47832b1 | 12084 | *) |
b30fcfae | 12085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12086 | for as_dir in $gcc_cv_tool_dirs | |
12087 | do | |
12088 | IFS=$as_save_IFS | |
12089 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12090 | for ac_exec_ext in '' $ac_executable_extensions; do |
12091 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12092 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 12093 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12094 | break 2 |
12095 | fi | |
12096 | done | |
cd9a469c | 12097 | done |
12098 | IFS=$as_save_IFS | |
b30fcfae | 12099 | |
c47832b1 | 12100 | ;; |
12101 | esac | |
12102 | fi | |
b30fcfae | 12103 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
c47832b1 | 12104 | if test -n "$NM_FOR_TARGET"; then |
cd9a469c | 12105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12106 | $as_echo "$NM_FOR_TARGET" >&6; } | |
c47832b1 | 12107 | else |
cd9a469c | 12108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12109 | $as_echo "no" >&6; } | |
c47832b1 | 12110 | fi |
12111 | ||
cd9a469c | 12112 | |
c47832b1 | 12113 | fi |
12114 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
95a05732 | 12115 | |
12116 | ||
12117 | if test -n "$NM_FOR_TARGET"; then | |
12118 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12119 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12120 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12121 | fi | |
12122 | ||
12123 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12124 | for ncn_progname in nm; do | |
12125 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12126 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12128 | $as_echo_n "checking for $ac_word... " >&6; } | |
12129 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12130 | $as_echo_n "(cached) " >&6 | |
95a05732 | 12131 | else |
12132 | if test -n "$NM_FOR_TARGET"; then | |
12133 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12134 | else | |
12135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12136 | for as_dir in $PATH | |
12137 | do | |
12138 | IFS=$as_save_IFS | |
12139 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12140 | for ac_exec_ext in '' $ac_executable_extensions; do |
12141 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 12142 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12143 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 12144 | break 2 |
12145 | fi | |
12146 | done | |
cd9a469c | 12147 | done |
12148 | IFS=$as_save_IFS | |
95a05732 | 12149 | |
12150 | fi | |
12151 | fi | |
12152 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12153 | if test -n "$NM_FOR_TARGET"; then | |
cd9a469c | 12154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12155 | $as_echo "$NM_FOR_TARGET" >&6; } | |
95a05732 | 12156 | else |
cd9a469c | 12157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12158 | $as_echo "no" >&6; } | |
95a05732 | 12159 | fi |
12160 | ||
cd9a469c | 12161 | |
95a05732 | 12162 | done |
12163 | fi | |
12164 | ||
12165 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12166 | for ncn_progname in nm; do |
cd9a469c | 12167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12168 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12169 | if test -x $with_build_time_tools/${ncn_progname}; then |
12170 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12172 | $as_echo "yes" >&6; } | |
c47832b1 | 12173 | break |
12174 | else | |
cd9a469c | 12175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12176 | $as_echo "no" >&6; } | |
c47832b1 | 12177 | fi |
12178 | done | |
12179 | fi | |
12180 | ||
12181 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12182 | for ncn_progname in nm; do | |
12183 | if test -n "$ncn_target_tool_prefix"; then | |
12184 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 12185 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 12186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12187 | $as_echo_n "checking for $ac_word... " >&6; } | |
12188 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12189 | $as_echo_n "(cached) " >&6 | |
bb612911 | 12190 | else |
ef8184c7 | 12191 | if test -n "$NM_FOR_TARGET"; then |
12192 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12193 | else |
b30fcfae | 12194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12195 | for as_dir in $PATH | |
12196 | do | |
12197 | IFS=$as_save_IFS | |
12198 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12199 | for ac_exec_ext in '' $ac_executable_extensions; do |
12200 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12201 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12202 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12203 | break 2 |
12204 | fi | |
12205 | done | |
cd9a469c | 12206 | done |
12207 | IFS=$as_save_IFS | |
b30fcfae | 12208 | |
bb612911 | 12209 | fi |
12210 | fi | |
b30fcfae | 12211 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
ef8184c7 | 12212 | if test -n "$NM_FOR_TARGET"; then |
cd9a469c | 12213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12214 | $as_echo "$NM_FOR_TARGET" >&6; } | |
bb612911 | 12215 | else |
cd9a469c | 12216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12217 | $as_echo "no" >&6; } | |
bb612911 | 12218 | fi |
12219 | ||
cd9a469c | 12220 | |
c47832b1 | 12221 | fi |
12222 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12223 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12224 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12226 | $as_echo_n "checking for $ac_word... " >&6; } | |
12227 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12228 | $as_echo_n "(cached) " >&6 | |
bb612911 | 12229 | else |
768691b5 | 12230 | if test -n "$NM_FOR_TARGET"; then |
12231 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12232 | else |
b30fcfae | 12233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12234 | for as_dir in $PATH | |
12235 | do | |
12236 | IFS=$as_save_IFS | |
12237 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12238 | for ac_exec_ext in '' $ac_executable_extensions; do |
12239 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12240 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12241 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12242 | break 2 |
12243 | fi | |
12244 | done | |
cd9a469c | 12245 | done |
12246 | IFS=$as_save_IFS | |
b30fcfae | 12247 | |
bb612911 | 12248 | fi |
12249 | fi | |
b30fcfae | 12250 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
768691b5 | 12251 | if test -n "$NM_FOR_TARGET"; then |
cd9a469c | 12252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12253 | $as_echo "$NM_FOR_TARGET" >&6; } | |
bb612911 | 12254 | else |
cd9a469c | 12255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12256 | $as_echo "no" >&6; } | |
bb612911 | 12257 | fi |
b30fcfae | 12258 | |
cd9a469c | 12259 | |
c47832b1 | 12260 | fi |
12261 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12262 | done | |
12263 | fi | |
b30fcfae | 12264 | |
768691b5 | 12265 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12266 | set dummy nm | |
12267 | if test $build = $target ; then | |
12268 | NM_FOR_TARGET="$2" | |
bb612911 | 12269 | else |
768691b5 | 12270 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
bb612911 | 12271 | fi |
b7ef8464 | 12272 | else |
12273 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
bb612911 | 12274 | fi |
12275 | ||
ab0da556 | 12276 | else |
12277 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
c47832b1 | 12278 | fi |
12279 | ||
12280 | ||
12281 | ||
12282 | ||
fc740d70 | 12283 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12284 | if test -n "$with_build_time_tools"; then | |
12285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12286 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12287 | if test -x $with_build_time_tools/objcopy; then | |
12288 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12289 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12291 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12292 | else | |
12293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12294 | $as_echo "no" >&6; } | |
12295 | fi | |
12296 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12297 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12298 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12299 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12300 | fi | |
12301 | fi | |
12302 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12303 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12304 | set dummy objcopy; ac_word=$2 | |
12305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12306 | $as_echo_n "checking for $ac_word... " >&6; } | |
12307 | if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12308 | $as_echo_n "(cached) " >&6 | |
12309 | else | |
12310 | case $OBJCOPY_FOR_TARGET in | |
12311 | [\\/]* | ?:[\\/]*) | |
12312 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12313 | ;; | |
12314 | *) | |
12315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12316 | for as_dir in $gcc_cv_tool_dirs | |
12317 | do | |
12318 | IFS=$as_save_IFS | |
12319 | test -z "$as_dir" && as_dir=. | |
12320 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12321 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12322 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12324 | break 2 | |
12325 | fi | |
12326 | done | |
12327 | done | |
12328 | IFS=$as_save_IFS | |
12329 | ||
12330 | ;; | |
12331 | esac | |
12332 | fi | |
12333 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12334 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12336 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12337 | else | |
12338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12339 | $as_echo "no" >&6; } | |
12340 | fi | |
12341 | ||
12342 | ||
12343 | fi | |
12344 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12345 | ||
12346 | ||
12347 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12348 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12349 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12350 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12351 | fi | |
12352 | ||
12353 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12354 | for ncn_progname in objcopy; do | |
12355 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12356 | set dummy ${ncn_progname}; ac_word=$2 | |
12357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12358 | $as_echo_n "checking for $ac_word... " >&6; } | |
12359 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12360 | $as_echo_n "(cached) " >&6 | |
12361 | else | |
12362 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12363 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12364 | else | |
12365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12366 | for as_dir in $PATH | |
12367 | do | |
12368 | IFS=$as_save_IFS | |
12369 | test -z "$as_dir" && as_dir=. | |
12370 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12371 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12372 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12374 | break 2 | |
12375 | fi | |
12376 | done | |
12377 | done | |
12378 | IFS=$as_save_IFS | |
12379 | ||
12380 | fi | |
12381 | fi | |
12382 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12383 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12385 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12386 | else | |
12387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12388 | $as_echo "no" >&6; } | |
12389 | fi | |
12390 | ||
12391 | ||
12392 | done | |
12393 | fi | |
12394 | ||
12395 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12396 | for ncn_progname in objcopy; do | |
12397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12398 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12399 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12400 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12402 | $as_echo "yes" >&6; } | |
12403 | break | |
12404 | else | |
12405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12406 | $as_echo "no" >&6; } | |
12407 | fi | |
12408 | done | |
12409 | fi | |
12410 | ||
12411 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12412 | for ncn_progname in objcopy; do | |
12413 | if test -n "$ncn_target_tool_prefix"; then | |
12414 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12415 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12417 | $as_echo_n "checking for $ac_word... " >&6; } | |
12418 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12419 | $as_echo_n "(cached) " >&6 | |
12420 | else | |
12421 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12422 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12423 | else | |
12424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12425 | for as_dir in $PATH | |
12426 | do | |
12427 | IFS=$as_save_IFS | |
12428 | test -z "$as_dir" && as_dir=. | |
12429 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12430 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12431 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12432 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12433 | break 2 | |
12434 | fi | |
12435 | done | |
12436 | done | |
12437 | IFS=$as_save_IFS | |
12438 | ||
12439 | fi | |
12440 | fi | |
12441 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12442 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12444 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12445 | else | |
12446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12447 | $as_echo "no" >&6; } | |
12448 | fi | |
12449 | ||
12450 | ||
12451 | fi | |
12452 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12453 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12454 | set dummy ${ncn_progname}; ac_word=$2 | |
12455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12456 | $as_echo_n "checking for $ac_word... " >&6; } | |
12457 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12458 | $as_echo_n "(cached) " >&6 | |
12459 | else | |
12460 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12461 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12462 | else | |
12463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12464 | for as_dir in $PATH | |
12465 | do | |
12466 | IFS=$as_save_IFS | |
12467 | test -z "$as_dir" && as_dir=. | |
12468 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12469 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12470 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12471 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12472 | break 2 | |
12473 | fi | |
12474 | done | |
12475 | done | |
12476 | IFS=$as_save_IFS | |
12477 | ||
12478 | fi | |
12479 | fi | |
12480 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12481 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12483 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12484 | else | |
12485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12486 | $as_echo "no" >&6; } | |
12487 | fi | |
12488 | ||
12489 | ||
12490 | fi | |
12491 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12492 | done | |
12493 | fi | |
12494 | ||
12495 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12496 | set dummy objcopy | |
12497 | if test $build = $target ; then | |
12498 | OBJCOPY_FOR_TARGET="$2" | |
12499 | else | |
12500 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12501 | fi | |
12502 | else | |
12503 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12504 | fi | |
12505 | ||
12506 | else | |
12507 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12508 | fi | |
12509 | ||
12510 | ||
12511 | ||
12512 | ||
c47832b1 | 12513 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12514 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 12515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12516 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
ab0da556 | 12517 | if test -x $with_build_time_tools/objdump; then |
12518 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12519 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
cd9a469c | 12520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12521 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
ab0da556 | 12522 | else |
cd9a469c | 12523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12524 | $as_echo "no" >&6; } | |
ab0da556 | 12525 | fi |
c47832b1 | 12526 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12527 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
b7ef8464 | 12528 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12529 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
c47832b1 | 12530 | fi |
12531 | fi | |
38d7211b | 12532 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 12533 | # Extract the first word of "objdump", so it can be a program name with args. |
12534 | set dummy objdump; ac_word=$2 | |
cd9a469c | 12535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12536 | $as_echo_n "checking for $ac_word... " >&6; } | |
12537 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12538 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 12539 | else |
b30fcfae | 12540 | case $OBJDUMP_FOR_TARGET in |
12541 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 12542 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12543 | ;; | |
c47832b1 | 12544 | *) |
b30fcfae | 12545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12546 | for as_dir in $gcc_cv_tool_dirs | |
12547 | do | |
12548 | IFS=$as_save_IFS | |
12549 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12550 | for ac_exec_ext in '' $ac_executable_extensions; do |
12551 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12552 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 12553 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12554 | break 2 |
12555 | fi | |
12556 | done | |
cd9a469c | 12557 | done |
12558 | IFS=$as_save_IFS | |
b30fcfae | 12559 | |
c47832b1 | 12560 | ;; |
12561 | esac | |
12562 | fi | |
b30fcfae | 12563 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
c47832b1 | 12564 | if test -n "$OBJDUMP_FOR_TARGET"; then |
cd9a469c | 12565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12566 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
c47832b1 | 12567 | else |
cd9a469c | 12568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12569 | $as_echo "no" >&6; } | |
c47832b1 | 12570 | fi |
12571 | ||
cd9a469c | 12572 | |
c47832b1 | 12573 | fi |
12574 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
95a05732 | 12575 | |
12576 | ||
12577 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12578 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12579 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12580 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12581 | fi | |
12582 | ||
12583 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12584 | for ncn_progname in objdump; do | |
12585 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12586 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12588 | $as_echo_n "checking for $ac_word... " >&6; } | |
12589 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12590 | $as_echo_n "(cached) " >&6 | |
95a05732 | 12591 | else |
12592 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12593 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12594 | else | |
12595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12596 | for as_dir in $PATH | |
12597 | do | |
12598 | IFS=$as_save_IFS | |
12599 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12600 | for ac_exec_ext in '' $ac_executable_extensions; do |
12601 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 12602 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12603 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 12604 | break 2 |
12605 | fi | |
12606 | done | |
cd9a469c | 12607 | done |
12608 | IFS=$as_save_IFS | |
95a05732 | 12609 | |
12610 | fi | |
12611 | fi | |
12612 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12613 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
cd9a469c | 12614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12615 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
95a05732 | 12616 | else |
cd9a469c | 12617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12618 | $as_echo "no" >&6; } | |
95a05732 | 12619 | fi |
12620 | ||
cd9a469c | 12621 | |
95a05732 | 12622 | done |
12623 | fi | |
12624 | ||
12625 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12626 | for ncn_progname in objdump; do |
cd9a469c | 12627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12628 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12629 | if test -x $with_build_time_tools/${ncn_progname}; then |
12630 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12632 | $as_echo "yes" >&6; } | |
c47832b1 | 12633 | break |
12634 | else | |
cd9a469c | 12635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12636 | $as_echo "no" >&6; } | |
c47832b1 | 12637 | fi |
12638 | done | |
12639 | fi | |
12640 | ||
12641 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12642 | for ncn_progname in objdump; do | |
12643 | if test -n "$ncn_target_tool_prefix"; then | |
12644 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12645 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 12646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12647 | $as_echo_n "checking for $ac_word... " >&6; } | |
12648 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12649 | $as_echo_n "(cached) " >&6 | |
ae74ffb7 | 12650 | else |
12651 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12652 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12653 | else | |
b30fcfae | 12654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12655 | for as_dir in $PATH | |
12656 | do | |
12657 | IFS=$as_save_IFS | |
12658 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12659 | for ac_exec_ext in '' $ac_executable_extensions; do |
12660 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12661 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12662 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12663 | break 2 |
12664 | fi | |
12665 | done | |
cd9a469c | 12666 | done |
12667 | IFS=$as_save_IFS | |
b30fcfae | 12668 | |
ae74ffb7 | 12669 | fi |
12670 | fi | |
b30fcfae | 12671 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
ae74ffb7 | 12672 | if test -n "$OBJDUMP_FOR_TARGET"; then |
cd9a469c | 12673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12674 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
ae74ffb7 | 12675 | else |
cd9a469c | 12676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12677 | $as_echo "no" >&6; } | |
ae74ffb7 | 12678 | fi |
12679 | ||
cd9a469c | 12680 | |
c47832b1 | 12681 | fi |
12682 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12683 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
ae74ffb7 | 12684 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12686 | $as_echo_n "checking for $ac_word... " >&6; } | |
12687 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12688 | $as_echo_n "(cached) " >&6 | |
ae74ffb7 | 12689 | else |
12690 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12691 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12692 | else | |
b30fcfae | 12693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12694 | for as_dir in $PATH | |
12695 | do | |
12696 | IFS=$as_save_IFS | |
12697 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12698 | for ac_exec_ext in '' $ac_executable_extensions; do |
12699 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12700 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12701 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12702 | break 2 |
12703 | fi | |
12704 | done | |
cd9a469c | 12705 | done |
12706 | IFS=$as_save_IFS | |
b30fcfae | 12707 | |
ae74ffb7 | 12708 | fi |
12709 | fi | |
b30fcfae | 12710 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
ae74ffb7 | 12711 | if test -n "$OBJDUMP_FOR_TARGET"; then |
cd9a469c | 12712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12713 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
ae74ffb7 | 12714 | else |
cd9a469c | 12715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12716 | $as_echo "no" >&6; } | |
ae74ffb7 | 12717 | fi |
b30fcfae | 12718 | |
cd9a469c | 12719 | |
c47832b1 | 12720 | fi |
12721 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12722 | done | |
12723 | fi | |
b30fcfae | 12724 | |
ae74ffb7 | 12725 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12726 | set dummy objdump | |
12727 | if test $build = $target ; then | |
12728 | OBJDUMP_FOR_TARGET="$2" | |
12729 | else | |
12730 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12731 | fi | |
b7ef8464 | 12732 | else |
12733 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
ae74ffb7 | 12734 | fi |
12735 | ||
ab0da556 | 12736 | else |
12737 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
c47832b1 | 12738 | fi |
12739 | ||
12740 | ||
12741 | ||
12742 | ||
12743 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12744 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 12745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12746 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
ab0da556 | 12747 | if test -x $with_build_time_tools/ranlib; then |
12748 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12749 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
cd9a469c | 12750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12751 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
ab0da556 | 12752 | else |
cd9a469c | 12753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12754 | $as_echo "no" >&6; } | |
ab0da556 | 12755 | fi |
c47832b1 | 12756 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12757 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
b7ef8464 | 12758 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12759 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
c47832b1 | 12760 | fi |
12761 | fi | |
38d7211b | 12762 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 12763 | # Extract the first word of "ranlib", so it can be a program name with args. |
12764 | set dummy ranlib; ac_word=$2 | |
cd9a469c | 12765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12766 | $as_echo_n "checking for $ac_word... " >&6; } | |
12767 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12768 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 12769 | else |
b30fcfae | 12770 | case $RANLIB_FOR_TARGET in |
12771 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 12772 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12773 | ;; | |
c47832b1 | 12774 | *) |
b30fcfae | 12775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12776 | for as_dir in $gcc_cv_tool_dirs | |
12777 | do | |
12778 | IFS=$as_save_IFS | |
12779 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12780 | for ac_exec_ext in '' $ac_executable_extensions; do |
12781 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12782 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 12783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12784 | break 2 |
12785 | fi | |
12786 | done | |
cd9a469c | 12787 | done |
12788 | IFS=$as_save_IFS | |
b30fcfae | 12789 | |
c47832b1 | 12790 | ;; |
12791 | esac | |
12792 | fi | |
b30fcfae | 12793 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
c47832b1 | 12794 | if test -n "$RANLIB_FOR_TARGET"; then |
cd9a469c | 12795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12796 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
c47832b1 | 12797 | else |
cd9a469c | 12798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12799 | $as_echo "no" >&6; } | |
c47832b1 | 12800 | fi |
12801 | ||
cd9a469c | 12802 | |
c47832b1 | 12803 | fi |
12804 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
95a05732 | 12805 | |
12806 | ||
12807 | if test -n "$RANLIB_FOR_TARGET"; then | |
12808 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12809 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12810 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12811 | fi | |
12812 | ||
12813 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12814 | for ncn_progname in ranlib; do | |
12815 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12816 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12818 | $as_echo_n "checking for $ac_word... " >&6; } | |
12819 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12820 | $as_echo_n "(cached) " >&6 | |
95a05732 | 12821 | else |
12822 | if test -n "$RANLIB_FOR_TARGET"; then | |
12823 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12824 | else | |
12825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12826 | for as_dir in $PATH | |
12827 | do | |
12828 | IFS=$as_save_IFS | |
12829 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12830 | for ac_exec_ext in '' $ac_executable_extensions; do |
12831 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 12832 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12833 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 12834 | break 2 |
12835 | fi | |
12836 | done | |
cd9a469c | 12837 | done |
12838 | IFS=$as_save_IFS | |
95a05732 | 12839 | |
12840 | fi | |
12841 | fi | |
12842 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12843 | if test -n "$RANLIB_FOR_TARGET"; then | |
cd9a469c | 12844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12845 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
95a05732 | 12846 | else |
cd9a469c | 12847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12848 | $as_echo "no" >&6; } | |
95a05732 | 12849 | fi |
12850 | ||
cd9a469c | 12851 | |
95a05732 | 12852 | done |
12853 | fi | |
12854 | ||
12855 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12856 | for ncn_progname in ranlib; do |
cd9a469c | 12857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12858 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12859 | if test -x $with_build_time_tools/${ncn_progname}; then |
12860 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12862 | $as_echo "yes" >&6; } | |
c47832b1 | 12863 | break |
12864 | else | |
cd9a469c | 12865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12866 | $as_echo "no" >&6; } | |
c47832b1 | 12867 | fi |
12868 | done | |
12869 | fi | |
12870 | ||
12871 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12872 | for ncn_progname in ranlib; do | |
12873 | if test -n "$ncn_target_tool_prefix"; then | |
12874 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
ae74ffb7 | 12875 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 12876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12877 | $as_echo_n "checking for $ac_word... " >&6; } | |
12878 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12879 | $as_echo_n "(cached) " >&6 | |
bb612911 | 12880 | else |
ef8184c7 | 12881 | if test -n "$RANLIB_FOR_TARGET"; then |
12882 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12883 | else |
b30fcfae | 12884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12885 | for as_dir in $PATH | |
12886 | do | |
12887 | IFS=$as_save_IFS | |
12888 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12889 | for ac_exec_ext in '' $ac_executable_extensions; do |
12890 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12891 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12892 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12893 | break 2 |
12894 | fi | |
12895 | done | |
cd9a469c | 12896 | done |
12897 | IFS=$as_save_IFS | |
b30fcfae | 12898 | |
bb612911 | 12899 | fi |
12900 | fi | |
b30fcfae | 12901 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
ef8184c7 | 12902 | if test -n "$RANLIB_FOR_TARGET"; then |
cd9a469c | 12903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12904 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
bb612911 | 12905 | else |
cd9a469c | 12906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12907 | $as_echo "no" >&6; } | |
bb612911 | 12908 | fi |
12909 | ||
cd9a469c | 12910 | |
c47832b1 | 12911 | fi |
12912 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12913 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12914 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12916 | $as_echo_n "checking for $ac_word... " >&6; } | |
12917 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12918 | $as_echo_n "(cached) " >&6 | |
bb612911 | 12919 | else |
768691b5 | 12920 | if test -n "$RANLIB_FOR_TARGET"; then |
12921 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12922 | else |
b30fcfae | 12923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12924 | for as_dir in $PATH | |
12925 | do | |
12926 | IFS=$as_save_IFS | |
12927 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12928 | for ac_exec_ext in '' $ac_executable_extensions; do |
12929 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12930 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12931 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12932 | break 2 |
12933 | fi | |
12934 | done | |
cd9a469c | 12935 | done |
12936 | IFS=$as_save_IFS | |
b30fcfae | 12937 | |
bb612911 | 12938 | fi |
12939 | fi | |
b30fcfae | 12940 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
768691b5 | 12941 | if test -n "$RANLIB_FOR_TARGET"; then |
cd9a469c | 12942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12943 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
bb612911 | 12944 | else |
cd9a469c | 12945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12946 | $as_echo "no" >&6; } | |
bb612911 | 12947 | fi |
b30fcfae | 12948 | |
cd9a469c | 12949 | |
c47832b1 | 12950 | fi |
12951 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12952 | done | |
12953 | fi | |
b30fcfae | 12954 | |
c47832b1 | 12955 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12956 | set dummy ranlib | |
12957 | if test $build = $target ; then | |
12958 | RANLIB_FOR_TARGET="$2" | |
12959 | else | |
12960 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
bb612911 | 12961 | fi |
b7ef8464 | 12962 | else |
12963 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
c47832b1 | 12964 | fi |
768691b5 | 12965 | |
ab0da556 | 12966 | else |
12967 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
bb612911 | 12968 | fi |
12969 | ||
c47832b1 | 12970 | |
12971 | ||
12972 | ||
3f71364d | 12973 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
12974 | if test -n "$with_build_time_tools"; then | |
12975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
12976 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
12977 | if test -x $with_build_time_tools/readelf; then | |
12978 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
12979 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
12981 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
12982 | else | |
12983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12984 | $as_echo "no" >&6; } | |
12985 | fi | |
12986 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12987 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
12988 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
12989 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12990 | fi | |
12991 | fi | |
12992 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12993 | # Extract the first word of "readelf", so it can be a program name with args. | |
12994 | set dummy readelf; ac_word=$2 | |
12995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12996 | $as_echo_n "checking for $ac_word... " >&6; } | |
12997 | if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then : | |
12998 | $as_echo_n "(cached) " >&6 | |
12999 | else | |
13000 | case $READELF_FOR_TARGET in | |
13001 | [\\/]* | ?:[\\/]*) | |
13002 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
13003 | ;; | |
13004 | *) | |
13005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13006 | for as_dir in $gcc_cv_tool_dirs | |
13007 | do | |
13008 | IFS=$as_save_IFS | |
13009 | test -z "$as_dir" && as_dir=. | |
13010 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13011 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13012 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
13013 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13014 | break 2 | |
13015 | fi | |
13016 | done | |
13017 | done | |
13018 | IFS=$as_save_IFS | |
13019 | ||
13020 | ;; | |
13021 | esac | |
13022 | fi | |
13023 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13024 | if test -n "$READELF_FOR_TARGET"; then | |
13025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13026 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13027 | else | |
13028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13029 | $as_echo "no" >&6; } | |
13030 | fi | |
13031 | ||
13032 | ||
13033 | fi | |
13034 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
13035 | ||
13036 | ||
13037 | if test -n "$READELF_FOR_TARGET"; then | |
13038 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13039 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13040 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13041 | fi | |
13042 | ||
13043 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13044 | for ncn_progname in readelf; do | |
13045 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13046 | set dummy ${ncn_progname}; ac_word=$2 | |
13047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13048 | $as_echo_n "checking for $ac_word... " >&6; } | |
13049 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13050 | $as_echo_n "(cached) " >&6 | |
13051 | else | |
13052 | if test -n "$READELF_FOR_TARGET"; then | |
13053 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13054 | else | |
13055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13056 | for as_dir in $PATH | |
13057 | do | |
13058 | IFS=$as_save_IFS | |
13059 | test -z "$as_dir" && as_dir=. | |
13060 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13061 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13062 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
13063 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13064 | break 2 | |
13065 | fi | |
13066 | done | |
13067 | done | |
13068 | IFS=$as_save_IFS | |
13069 | ||
13070 | fi | |
13071 | fi | |
13072 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13073 | if test -n "$READELF_FOR_TARGET"; then | |
13074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13075 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13076 | else | |
13077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13078 | $as_echo "no" >&6; } | |
13079 | fi | |
13080 | ||
13081 | ||
13082 | done | |
13083 | fi | |
13084 | ||
13085 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13086 | for ncn_progname in readelf; do | |
13087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13088 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13089 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13090 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13092 | $as_echo "yes" >&6; } | |
13093 | break | |
13094 | else | |
13095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13096 | $as_echo "no" >&6; } | |
13097 | fi | |
13098 | done | |
13099 | fi | |
13100 | ||
13101 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13102 | for ncn_progname in readelf; do | |
13103 | if test -n "$ncn_target_tool_prefix"; then | |
13104 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13105 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13107 | $as_echo_n "checking for $ac_word... " >&6; } | |
13108 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13109 | $as_echo_n "(cached) " >&6 | |
13110 | else | |
13111 | if test -n "$READELF_FOR_TARGET"; then | |
13112 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13113 | else | |
13114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13115 | for as_dir in $PATH | |
13116 | do | |
13117 | IFS=$as_save_IFS | |
13118 | test -z "$as_dir" && as_dir=. | |
13119 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13120 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13121 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
13122 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13123 | break 2 | |
13124 | fi | |
13125 | done | |
13126 | done | |
13127 | IFS=$as_save_IFS | |
13128 | ||
13129 | fi | |
13130 | fi | |
13131 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13132 | if test -n "$READELF_FOR_TARGET"; then | |
13133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13134 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13135 | else | |
13136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13137 | $as_echo "no" >&6; } | |
13138 | fi | |
13139 | ||
13140 | ||
13141 | fi | |
13142 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
13143 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13144 | set dummy ${ncn_progname}; ac_word=$2 | |
13145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13146 | $as_echo_n "checking for $ac_word... " >&6; } | |
13147 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13148 | $as_echo_n "(cached) " >&6 | |
13149 | else | |
13150 | if test -n "$READELF_FOR_TARGET"; then | |
13151 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13152 | else | |
13153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13154 | for as_dir in $PATH | |
13155 | do | |
13156 | IFS=$as_save_IFS | |
13157 | test -z "$as_dir" && as_dir=. | |
13158 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13159 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13160 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
13161 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13162 | break 2 | |
13163 | fi | |
13164 | done | |
13165 | done | |
13166 | IFS=$as_save_IFS | |
13167 | ||
13168 | fi | |
13169 | fi | |
13170 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13171 | if test -n "$READELF_FOR_TARGET"; then | |
13172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13173 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13174 | else | |
13175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13176 | $as_echo "no" >&6; } | |
13177 | fi | |
13178 | ||
13179 | ||
13180 | fi | |
13181 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
13182 | done | |
13183 | fi | |
13184 | ||
13185 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
13186 | set dummy readelf | |
13187 | if test $build = $target ; then | |
13188 | READELF_FOR_TARGET="$2" | |
13189 | else | |
13190 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13191 | fi | |
13192 | else | |
13193 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13194 | fi | |
13195 | ||
13196 | else | |
13197 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13198 | fi | |
13199 | ||
13200 | ||
13201 | ||
13202 | ||
c47832b1 | 13203 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13204 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 13205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13206 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
ab0da556 | 13207 | if test -x $with_build_time_tools/strip; then |
13208 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13209 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
cd9a469c | 13210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13211 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
ab0da556 | 13212 | else |
cd9a469c | 13213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13214 | $as_echo "no" >&6; } | |
ab0da556 | 13215 | fi |
c47832b1 | 13216 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13217 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
b7ef8464 | 13218 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13219 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
c47832b1 | 13220 | fi |
13221 | fi | |
38d7211b | 13222 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 13223 | # Extract the first word of "strip", so it can be a program name with args. |
13224 | set dummy strip; ac_word=$2 | |
cd9a469c | 13225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13226 | $as_echo_n "checking for $ac_word... " >&6; } | |
13227 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
13228 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 13229 | else |
b30fcfae | 13230 | case $STRIP_FOR_TARGET in |
13231 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 13232 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13233 | ;; | |
c47832b1 | 13234 | *) |
b30fcfae | 13235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13236 | for as_dir in $gcc_cv_tool_dirs | |
13237 | do | |
13238 | IFS=$as_save_IFS | |
13239 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13240 | for ac_exec_ext in '' $ac_executable_extensions; do |
13241 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13242 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 13243 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13244 | break 2 |
13245 | fi | |
13246 | done | |
cd9a469c | 13247 | done |
13248 | IFS=$as_save_IFS | |
b30fcfae | 13249 | |
c47832b1 | 13250 | ;; |
13251 | esac | |
13252 | fi | |
b30fcfae | 13253 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
c47832b1 | 13254 | if test -n "$STRIP_FOR_TARGET"; then |
cd9a469c | 13255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13256 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
c47832b1 | 13257 | else |
cd9a469c | 13258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13259 | $as_echo "no" >&6; } | |
c47832b1 | 13260 | fi |
13261 | ||
cd9a469c | 13262 | |
c47832b1 | 13263 | fi |
13264 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
95a05732 | 13265 | |
13266 | ||
13267 | if test -n "$STRIP_FOR_TARGET"; then | |
13268 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13269 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13270 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13271 | fi | |
13272 | ||
13273 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13274 | for ncn_progname in strip; do | |
13275 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13276 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13278 | $as_echo_n "checking for $ac_word... " >&6; } | |
13279 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13280 | $as_echo_n "(cached) " >&6 | |
95a05732 | 13281 | else |
13282 | if test -n "$STRIP_FOR_TARGET"; then | |
13283 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13284 | else | |
13285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13286 | for as_dir in $PATH | |
13287 | do | |
13288 | IFS=$as_save_IFS | |
13289 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13290 | for ac_exec_ext in '' $ac_executable_extensions; do |
13291 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 13292 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13293 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 13294 | break 2 |
13295 | fi | |
13296 | done | |
cd9a469c | 13297 | done |
13298 | IFS=$as_save_IFS | |
95a05732 | 13299 | |
13300 | fi | |
13301 | fi | |
13302 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13303 | if test -n "$STRIP_FOR_TARGET"; then | |
cd9a469c | 13304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13305 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
95a05732 | 13306 | else |
cd9a469c | 13307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13308 | $as_echo "no" >&6; } | |
95a05732 | 13309 | fi |
13310 | ||
cd9a469c | 13311 | |
95a05732 | 13312 | done |
13313 | fi | |
13314 | ||
13315 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 13316 | for ncn_progname in strip; do |
cd9a469c | 13317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13318 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 13319 | if test -x $with_build_time_tools/${ncn_progname}; then |
13320 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 13321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13322 | $as_echo "yes" >&6; } | |
c47832b1 | 13323 | break |
13324 | else | |
cd9a469c | 13325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13326 | $as_echo "no" >&6; } | |
c47832b1 | 13327 | fi |
13328 | done | |
13329 | fi | |
13330 | ||
13331 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13332 | for ncn_progname in strip; do | |
13333 | if test -n "$ncn_target_tool_prefix"; then | |
13334 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 13335 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 13336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13337 | $as_echo_n "checking for $ac_word... " >&6; } | |
13338 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13339 | $as_echo_n "(cached) " >&6 | |
ae48753c | 13340 | else |
13341 | if test -n "$STRIP_FOR_TARGET"; then | |
b30fcfae | 13342 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
13343 | else | |
13344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13345 | for as_dir in $PATH | |
13346 | do | |
13347 | IFS=$as_save_IFS | |
13348 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13349 | for ac_exec_ext in '' $ac_executable_extensions; do |
13350 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13351 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 13352 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13353 | break 2 |
13354 | fi | |
13355 | done | |
cd9a469c | 13356 | done |
13357 | IFS=$as_save_IFS | |
b30fcfae | 13358 | |
9fec3fa8 | 13359 | fi |
13360 | fi | |
b30fcfae | 13361 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
9fec3fa8 | 13362 | if test -n "$STRIP_FOR_TARGET"; then |
cd9a469c | 13363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13364 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9fec3fa8 | 13365 | else |
cd9a469c | 13366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13367 | $as_echo "no" >&6; } | |
9fec3fa8 | 13368 | fi |
13369 | ||
cd9a469c | 13370 | |
c47832b1 | 13371 | fi |
13372 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13373 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 13374 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 13375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13376 | $as_echo_n "checking for $ac_word... " >&6; } | |
13377 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13378 | $as_echo_n "(cached) " >&6 | |
9fec3fa8 | 13379 | else |
13380 | if test -n "$STRIP_FOR_TARGET"; then | |
13381 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13382 | else | |
b30fcfae | 13383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13384 | for as_dir in $PATH | |
13385 | do | |
13386 | IFS=$as_save_IFS | |
13387 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13388 | for ac_exec_ext in '' $ac_executable_extensions; do |
13389 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13390 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13391 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13392 | break 2 |
13393 | fi | |
13394 | done | |
cd9a469c | 13395 | done |
13396 | IFS=$as_save_IFS | |
b30fcfae | 13397 | |
9fec3fa8 | 13398 | fi |
13399 | fi | |
b30fcfae | 13400 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
9fec3fa8 | 13401 | if test -n "$STRIP_FOR_TARGET"; then |
cd9a469c | 13402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13403 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9fec3fa8 | 13404 | else |
cd9a469c | 13405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13406 | $as_echo "no" >&6; } | |
9fec3fa8 | 13407 | fi |
b30fcfae | 13408 | |
cd9a469c | 13409 | |
c47832b1 | 13410 | fi |
13411 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13412 | done | |
13413 | fi | |
b30fcfae | 13414 | |
9fec3fa8 | 13415 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13416 | set dummy strip | |
13417 | if test $build = $target ; then | |
13418 | STRIP_FOR_TARGET="$2" | |
13419 | else | |
13420 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13421 | fi | |
b7ef8464 | 13422 | else |
13423 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
9fec3fa8 | 13424 | fi |
13425 | ||
ab0da556 | 13426 | else |
13427 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
c47832b1 | 13428 | fi |
13429 | ||
13430 | ||
13431 | ||
13432 | ||
13433 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13434 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 13435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13436 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
ab0da556 | 13437 | if test -x $with_build_time_tools/windres; then |
13438 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13439 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
cd9a469c | 13440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13441 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
ab0da556 | 13442 | else |
cd9a469c | 13443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13444 | $as_echo "no" >&6; } | |
ab0da556 | 13445 | fi |
c47832b1 | 13446 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13447 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
b7ef8464 | 13448 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13449 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
c47832b1 | 13450 | fi |
13451 | fi | |
38d7211b | 13452 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 13453 | # Extract the first word of "windres", so it can be a program name with args. |
13454 | set dummy windres; ac_word=$2 | |
cd9a469c | 13455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13456 | $as_echo_n "checking for $ac_word... " >&6; } | |
13457 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
13458 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 13459 | else |
b30fcfae | 13460 | case $WINDRES_FOR_TARGET in |
13461 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 13462 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13463 | ;; | |
c47832b1 | 13464 | *) |
b30fcfae | 13465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13466 | for as_dir in $gcc_cv_tool_dirs | |
13467 | do | |
13468 | IFS=$as_save_IFS | |
13469 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13470 | for ac_exec_ext in '' $ac_executable_extensions; do |
13471 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13472 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 13473 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13474 | break 2 |
13475 | fi | |
13476 | done | |
cd9a469c | 13477 | done |
13478 | IFS=$as_save_IFS | |
b30fcfae | 13479 | |
c47832b1 | 13480 | ;; |
13481 | esac | |
13482 | fi | |
b30fcfae | 13483 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
c47832b1 | 13484 | if test -n "$WINDRES_FOR_TARGET"; then |
cd9a469c | 13485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13486 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
c47832b1 | 13487 | else |
cd9a469c | 13488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13489 | $as_echo "no" >&6; } | |
c47832b1 | 13490 | fi |
13491 | ||
cd9a469c | 13492 | |
c47832b1 | 13493 | fi |
13494 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
95a05732 | 13495 | |
13496 | ||
13497 | if test -n "$WINDRES_FOR_TARGET"; then | |
13498 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13499 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13500 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13501 | fi | |
13502 | ||
13503 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13504 | for ncn_progname in windres; do | |
13505 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13506 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13508 | $as_echo_n "checking for $ac_word... " >&6; } | |
13509 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13510 | $as_echo_n "(cached) " >&6 | |
95a05732 | 13511 | else |
13512 | if test -n "$WINDRES_FOR_TARGET"; then | |
13513 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13514 | else | |
13515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13516 | for as_dir in $PATH | |
13517 | do | |
13518 | IFS=$as_save_IFS | |
13519 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13520 | for ac_exec_ext in '' $ac_executable_extensions; do |
13521 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 13522 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13523 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 13524 | break 2 |
13525 | fi | |
13526 | done | |
cd9a469c | 13527 | done |
13528 | IFS=$as_save_IFS | |
95a05732 | 13529 | |
13530 | fi | |
13531 | fi | |
13532 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13533 | if test -n "$WINDRES_FOR_TARGET"; then | |
cd9a469c | 13534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13535 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
95a05732 | 13536 | else |
cd9a469c | 13537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13538 | $as_echo "no" >&6; } | |
95a05732 | 13539 | fi |
13540 | ||
cd9a469c | 13541 | |
95a05732 | 13542 | done |
13543 | fi | |
13544 | ||
13545 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 13546 | for ncn_progname in windres; do |
cd9a469c | 13547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13548 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 13549 | if test -x $with_build_time_tools/${ncn_progname}; then |
13550 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 13551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13552 | $as_echo "yes" >&6; } | |
c47832b1 | 13553 | break |
13554 | else | |
cd9a469c | 13555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13556 | $as_echo "no" >&6; } | |
c47832b1 | 13557 | fi |
13558 | done | |
13559 | fi | |
13560 | ||
13561 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13562 | for ncn_progname in windres; do | |
13563 | if test -n "$ncn_target_tool_prefix"; then | |
13564 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 13565 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 13566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13567 | $as_echo_n "checking for $ac_word... " >&6; } | |
13568 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13569 | $as_echo_n "(cached) " >&6 | |
bb612911 | 13570 | else |
ef8184c7 | 13571 | if test -n "$WINDRES_FOR_TARGET"; then |
13572 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
bb612911 | 13573 | else |
b30fcfae | 13574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13575 | for as_dir in $PATH | |
13576 | do | |
13577 | IFS=$as_save_IFS | |
13578 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13579 | for ac_exec_ext in '' $ac_executable_extensions; do |
13580 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13581 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 13582 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13583 | break 2 |
13584 | fi | |
13585 | done | |
cd9a469c | 13586 | done |
13587 | IFS=$as_save_IFS | |
b30fcfae | 13588 | |
bb612911 | 13589 | fi |
13590 | fi | |
b30fcfae | 13591 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
ef8184c7 | 13592 | if test -n "$WINDRES_FOR_TARGET"; then |
cd9a469c | 13593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13594 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
bb612911 | 13595 | else |
cd9a469c | 13596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13597 | $as_echo "no" >&6; } | |
bb612911 | 13598 | fi |
13599 | ||
cd9a469c | 13600 | |
c47832b1 | 13601 | fi |
13602 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13603 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 13604 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 13605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13606 | $as_echo_n "checking for $ac_word... " >&6; } | |
13607 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13608 | $as_echo_n "(cached) " >&6 | |
bb612911 | 13609 | else |
768691b5 | 13610 | if test -n "$WINDRES_FOR_TARGET"; then |
13611 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
bb612911 | 13612 | else |
b30fcfae | 13613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13614 | for as_dir in $PATH | |
13615 | do | |
13616 | IFS=$as_save_IFS | |
13617 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13618 | for ac_exec_ext in '' $ac_executable_extensions; do |
13619 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13620 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13621 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13622 | break 2 |
13623 | fi | |
13624 | done | |
cd9a469c | 13625 | done |
13626 | IFS=$as_save_IFS | |
b30fcfae | 13627 | |
bb612911 | 13628 | fi |
13629 | fi | |
b30fcfae | 13630 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
768691b5 | 13631 | if test -n "$WINDRES_FOR_TARGET"; then |
cd9a469c | 13632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13633 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
bb612911 | 13634 | else |
cd9a469c | 13635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13636 | $as_echo "no" >&6; } | |
bb612911 | 13637 | fi |
b30fcfae | 13638 | |
cd9a469c | 13639 | |
c47832b1 | 13640 | fi |
13641 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13642 | done | |
13643 | fi | |
b30fcfae | 13644 | |
768691b5 | 13645 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13646 | set dummy windres | |
13647 | if test $build = $target ; then | |
13648 | WINDRES_FOR_TARGET="$2" | |
bb612911 | 13649 | else |
768691b5 | 13650 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
bb612911 | 13651 | fi |
b7ef8464 | 13652 | else |
13653 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
bb612911 | 13654 | fi |
13655 | ||
ab0da556 | 13656 | else |
13657 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
c47832b1 | 13658 | fi |
13659 | ||
805e22b2 | 13660 | |
75d6a0a9 | 13661 | |
13662 | ||
13663 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13664 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 13665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13666 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
75d6a0a9 | 13667 | if test -x $with_build_time_tools/windmc; then |
13668 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13669 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
cd9a469c | 13670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13671 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13672 | else |
cd9a469c | 13673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13674 | $as_echo "no" >&6; } | |
75d6a0a9 | 13675 | fi |
13676 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13677 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
b7ef8464 | 13678 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
13679 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
75d6a0a9 | 13680 | fi |
13681 | fi | |
13682 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13683 | # Extract the first word of "windmc", so it can be a program name with args. | |
13684 | set dummy windmc; ac_word=$2 | |
cd9a469c | 13685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13686 | $as_echo_n "checking for $ac_word... " >&6; } | |
13687 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13688 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 13689 | else |
13690 | case $WINDMC_FOR_TARGET in | |
13691 | [\\/]* | ?:[\\/]*) | |
13692 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13693 | ;; | |
13694 | *) | |
13695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13696 | for as_dir in $gcc_cv_tool_dirs | |
13697 | do | |
13698 | IFS=$as_save_IFS | |
13699 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13700 | for ac_exec_ext in '' $ac_executable_extensions; do |
13701 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 13702 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 13703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13704 | break 2 |
13705 | fi | |
13706 | done | |
cd9a469c | 13707 | done |
13708 | IFS=$as_save_IFS | |
75d6a0a9 | 13709 | |
13710 | ;; | |
13711 | esac | |
13712 | fi | |
13713 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
75d6a0a9 | 13714 | if test -n "$WINDMC_FOR_TARGET"; then |
cd9a469c | 13715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13716 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13717 | else |
cd9a469c | 13718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13719 | $as_echo "no" >&6; } | |
75d6a0a9 | 13720 | fi |
13721 | ||
cd9a469c | 13722 | |
75d6a0a9 | 13723 | fi |
13724 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13725 | ||
13726 | ||
13727 | if test -n "$WINDMC_FOR_TARGET"; then | |
13728 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13729 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13730 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13731 | fi | |
13732 | ||
13733 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13734 | for ncn_progname in windmc; do | |
13735 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13736 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13738 | $as_echo_n "checking for $ac_word... " >&6; } | |
13739 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13740 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 13741 | else |
13742 | if test -n "$WINDMC_FOR_TARGET"; then | |
13743 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13744 | else | |
13745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13746 | for as_dir in $PATH | |
13747 | do | |
13748 | IFS=$as_save_IFS | |
13749 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13750 | for ac_exec_ext in '' $ac_executable_extensions; do |
13751 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 13752 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13753 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13754 | break 2 |
13755 | fi | |
13756 | done | |
cd9a469c | 13757 | done |
13758 | IFS=$as_save_IFS | |
75d6a0a9 | 13759 | |
13760 | fi | |
13761 | fi | |
13762 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13763 | if test -n "$WINDMC_FOR_TARGET"; then | |
cd9a469c | 13764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13765 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13766 | else |
cd9a469c | 13767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13768 | $as_echo "no" >&6; } | |
75d6a0a9 | 13769 | fi |
13770 | ||
cd9a469c | 13771 | |
75d6a0a9 | 13772 | done |
13773 | fi | |
13774 | ||
13775 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13776 | for ncn_progname in windmc; do | |
cd9a469c | 13777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13778 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
75d6a0a9 | 13779 | if test -x $with_build_time_tools/${ncn_progname}; then |
13780 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 13781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13782 | $as_echo "yes" >&6; } | |
75d6a0a9 | 13783 | break |
13784 | else | |
cd9a469c | 13785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13786 | $as_echo "no" >&6; } | |
75d6a0a9 | 13787 | fi |
13788 | done | |
13789 | fi | |
13790 | ||
13791 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13792 | for ncn_progname in windmc; do | |
13793 | if test -n "$ncn_target_tool_prefix"; then | |
13794 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13795 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 13796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13797 | $as_echo_n "checking for $ac_word... " >&6; } | |
13798 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13799 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 13800 | else |
13801 | if test -n "$WINDMC_FOR_TARGET"; then | |
13802 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13803 | else | |
13804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13805 | for as_dir in $PATH | |
13806 | do | |
13807 | IFS=$as_save_IFS | |
13808 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13809 | for ac_exec_ext in '' $ac_executable_extensions; do |
13810 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 13811 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 13812 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13813 | break 2 |
13814 | fi | |
13815 | done | |
cd9a469c | 13816 | done |
13817 | IFS=$as_save_IFS | |
75d6a0a9 | 13818 | |
13819 | fi | |
13820 | fi | |
13821 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13822 | if test -n "$WINDMC_FOR_TARGET"; then | |
cd9a469c | 13823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13824 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13825 | else |
cd9a469c | 13826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13827 | $as_echo "no" >&6; } | |
75d6a0a9 | 13828 | fi |
13829 | ||
cd9a469c | 13830 | |
75d6a0a9 | 13831 | fi |
13832 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13833 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13834 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13836 | $as_echo_n "checking for $ac_word... " >&6; } | |
13837 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13838 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 13839 | else |
13840 | if test -n "$WINDMC_FOR_TARGET"; then | |
13841 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13842 | else | |
13843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13844 | for as_dir in $PATH | |
13845 | do | |
13846 | IFS=$as_save_IFS | |
13847 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13848 | for ac_exec_ext in '' $ac_executable_extensions; do |
13849 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 13850 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13851 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13852 | break 2 |
13853 | fi | |
13854 | done | |
cd9a469c | 13855 | done |
13856 | IFS=$as_save_IFS | |
75d6a0a9 | 13857 | |
13858 | fi | |
13859 | fi | |
13860 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13861 | if test -n "$WINDMC_FOR_TARGET"; then | |
cd9a469c | 13862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13863 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13864 | else |
cd9a469c | 13865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13866 | $as_echo "no" >&6; } | |
75d6a0a9 | 13867 | fi |
13868 | ||
cd9a469c | 13869 | |
75d6a0a9 | 13870 | fi |
13871 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13872 | done | |
13873 | fi | |
13874 | ||
13875 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13876 | set dummy windmc | |
13877 | if test $build = $target ; then | |
13878 | WINDMC_FOR_TARGET="$2" | |
13879 | else | |
13880 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13881 | fi | |
b7ef8464 | 13882 | else |
13883 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
75d6a0a9 | 13884 | fi |
13885 | ||
13886 | else | |
13887 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13888 | fi | |
13889 | ||
13890 | ||
f5aebe3e | 13891 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13892 | ||
cd9a469c | 13893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13894 | $as_echo_n "checking where to find the target ar... " >&6; } | |
f5aebe3e | 13895 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13896 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13897 | # We already found the complete path | |
a6c599b5 | 13898 | ac_dir=`dirname $AR_FOR_TARGET` |
cd9a469c | 13899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13900 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13901 | else |
13902 | # Canadian cross, just use what we found | |
cd9a469c | 13903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13904 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13905 | fi |
f5aebe3e | 13906 | else |
13907 | ok=yes | |
13908 | case " ${configdirs} " in | |
13909 | *" binutils "*) ;; | |
13910 | *) ok=no ;; | |
13911 | esac | |
b30fcfae | 13912 | |
f5aebe3e | 13913 | if test $ok = yes; then |
13914 | # An in-tree tool is available and we can use it | |
13915 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
cd9a469c | 13916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13917 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13918 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13919 | # We already found the complete path | |
a6c599b5 | 13920 | ac_dir=`dirname $AR_FOR_TARGET` |
cd9a469c | 13921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13922 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13923 | elif test "x$target" = "x$host"; then |
13924 | # We can use an host tool | |
13925 | AR_FOR_TARGET='$(AR)' | |
cd9a469c | 13926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13927 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13928 | else |
13929 | # We need a cross tool | |
cd9a469c | 13930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13931 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13932 | fi |
13933 | fi | |
a83ffacf | 13934 | |
cd9a469c | 13935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13936 | $as_echo_n "checking where to find the target as... " >&6; } | |
f5aebe3e | 13937 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13938 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13939 | # We already found the complete path | |
a6c599b5 | 13940 | ac_dir=`dirname $AS_FOR_TARGET` |
cd9a469c | 13941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13942 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13943 | else |
13944 | # Canadian cross, just use what we found | |
cd9a469c | 13945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13946 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13947 | fi |
f5aebe3e | 13948 | else |
13949 | ok=yes | |
13950 | case " ${configdirs} " in | |
13951 | *" gas "*) ;; | |
13952 | *) ok=no ;; | |
13953 | esac | |
b30fcfae | 13954 | |
f5aebe3e | 13955 | if test $ok = yes; then |
13956 | # An in-tree tool is available and we can use it | |
13957 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
cd9a469c | 13958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13959 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13960 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13961 | # We already found the complete path | |
a6c599b5 | 13962 | ac_dir=`dirname $AS_FOR_TARGET` |
cd9a469c | 13963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13964 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13965 | elif test "x$target" = "x$host"; then |
13966 | # We can use an host tool | |
13967 | AS_FOR_TARGET='$(AS)' | |
cd9a469c | 13968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13969 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13970 | else |
13971 | # We need a cross tool | |
cd9a469c | 13972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13973 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13974 | fi |
13975 | fi | |
a83ffacf | 13976 | |
cd9a469c | 13977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13978 | $as_echo_n "checking where to find the target cc... " >&6; } | |
f5aebe3e | 13979 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13980 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13981 | # We already found the complete path | |
a6c599b5 | 13982 | ac_dir=`dirname $CC_FOR_TARGET` |
cd9a469c | 13983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13984 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13985 | else |
13986 | # Canadian cross, just use what we found | |
cd9a469c | 13987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13988 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13989 | fi |
f5aebe3e | 13990 | else |
13991 | ok=yes | |
13992 | case " ${configdirs} " in | |
13993 | *" gcc "*) ;; | |
13994 | *) ok=no ;; | |
13995 | esac | |
b30fcfae | 13996 | |
f5aebe3e | 13997 | if test $ok = yes; then |
13998 | # An in-tree tool is available and we can use it | |
13999 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 14000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14001 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14002 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14003 | # We already found the complete path | |
a6c599b5 | 14004 | ac_dir=`dirname $CC_FOR_TARGET` |
cd9a469c | 14005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14006 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14007 | elif test "x$target" = "x$host"; then |
14008 | # We can use an host tool | |
14009 | CC_FOR_TARGET='$(CC)' | |
cd9a469c | 14010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14011 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14012 | else |
14013 | # We need a cross tool | |
cd9a469c | 14014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14015 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14016 | fi |
14017 | fi | |
a83ffacf | 14018 | |
cd9a469c | 14019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
14020 | $as_echo_n "checking where to find the target c++... " >&6; } | |
f5aebe3e | 14021 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14022 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14023 | # We already found the complete path | |
a6c599b5 | 14024 | ac_dir=`dirname $CXX_FOR_TARGET` |
cd9a469c | 14025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14026 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14027 | else |
14028 | # Canadian cross, just use what we found | |
cd9a469c | 14029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14030 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14031 | fi |
f5aebe3e | 14032 | else |
14033 | ok=yes | |
14034 | case " ${configdirs} " in | |
14035 | *" gcc "*) ;; | |
14036 | *) ok=no ;; | |
14037 | esac | |
14038 | case ,${enable_languages}, in | |
14039 | *,c++,*) ;; | |
14040 | *) ok=no ;; | |
14041 | esac | |
14042 | if test $ok = yes; then | |
14043 | # An in-tree tool is available and we can use it | |
b710ec85 | 14044 | 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 | 14045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14046 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14047 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14048 | # We already found the complete path | |
a6c599b5 | 14049 | ac_dir=`dirname $CXX_FOR_TARGET` |
cd9a469c | 14050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14051 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14052 | elif test "x$target" = "x$host"; then |
14053 | # We can use an host tool | |
14054 | CXX_FOR_TARGET='$(CXX)' | |
cd9a469c | 14055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14056 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14057 | else |
14058 | # We need a cross tool | |
cd9a469c | 14059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14060 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14061 | fi |
14062 | fi | |
a83ffacf | 14063 | |
cd9a469c | 14064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
14065 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
f5aebe3e | 14066 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14067 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14068 | # We already found the complete path | |
a6c599b5 | 14069 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
cd9a469c | 14070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14071 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14072 | else |
14073 | # Canadian cross, just use what we found | |
cd9a469c | 14074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14075 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14076 | fi |
f5aebe3e | 14077 | else |
14078 | ok=yes | |
14079 | case " ${configdirs} " in | |
14080 | *" gcc "*) ;; | |
14081 | *) ok=no ;; | |
14082 | esac | |
14083 | case ,${enable_languages}, in | |
14084 | *,c++,*) ;; | |
14085 | *) ok=no ;; | |
14086 | esac | |
14087 | if test $ok = yes; then | |
14088 | # An in-tree tool is available and we can use it | |
b710ec85 | 14089 | 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 | 14090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14091 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14092 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14093 | # We already found the complete path | |
a6c599b5 | 14094 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
cd9a469c | 14095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14096 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14097 | elif test "x$target" = "x$host"; then |
14098 | # We can use an host tool | |
14099 | RAW_CXX_FOR_TARGET='$(CXX)' | |
cd9a469c | 14100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14101 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14102 | else |
14103 | # We need a cross tool | |
cd9a469c | 14104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14105 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14106 | fi |
14107 | fi | |
a83ffacf | 14108 | |
cd9a469c | 14109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
14110 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
f5aebe3e | 14111 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14112 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14113 | # We already found the complete path | |
a6c599b5 | 14114 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
cd9a469c | 14115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14116 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14117 | else |
14118 | # Canadian cross, just use what we found | |
cd9a469c | 14119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14120 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14121 | fi |
f5aebe3e | 14122 | else |
14123 | ok=yes | |
14124 | case " ${configdirs} " in | |
14125 | *" binutils "*) ;; | |
14126 | *) ok=no ;; | |
14127 | esac | |
b30fcfae | 14128 | |
f5aebe3e | 14129 | if test $ok = yes; then |
14130 | # An in-tree tool is available and we can use it | |
14131 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
cd9a469c | 14132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14133 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14134 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14135 | # We already found the complete path | |
a6c599b5 | 14136 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
cd9a469c | 14137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14138 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14139 | elif test "x$target" = "x$host"; then |
14140 | # We can use an host tool | |
14141 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
cd9a469c | 14142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14143 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14144 | else |
14145 | # We need a cross tool | |
cd9a469c | 14146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14147 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14148 | fi |
14149 | fi | |
a83ffacf | 14150 | |
cd9a469c | 14151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
14152 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
f5aebe3e | 14153 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14154 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14155 | # We already found the complete path | |
a6c599b5 | 14156 | ac_dir=`dirname $GCC_FOR_TARGET` |
cd9a469c | 14157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14158 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14159 | else |
14160 | # Canadian cross, just use what we found | |
cd9a469c | 14161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14162 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14163 | fi |
f5aebe3e | 14164 | else |
14165 | ok=yes | |
14166 | case " ${configdirs} " in | |
14167 | *" gcc "*) ;; | |
14168 | *) ok=no ;; | |
14169 | esac | |
b30fcfae | 14170 | |
f5aebe3e | 14171 | if test $ok = yes; then |
14172 | # An in-tree tool is available and we can use it | |
14173 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 14174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14175 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14176 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14177 | # We already found the complete path | |
a6c599b5 | 14178 | ac_dir=`dirname $GCC_FOR_TARGET` |
cd9a469c | 14179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14180 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14181 | elif test "x$target" = "x$host"; then |
14182 | # We can use an host tool | |
14183 | GCC_FOR_TARGET='$()' | |
cd9a469c | 14184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14185 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14186 | else |
14187 | # We need a cross tool | |
cd9a469c | 14188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14189 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14190 | fi |
14191 | fi | |
a83ffacf | 14192 | |
cd9a469c | 14193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
14194 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
f5aebe3e | 14195 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14196 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14197 | # We already found the complete path | |
a6c599b5 | 14198 | ac_dir=`dirname $GCJ_FOR_TARGET` |
cd9a469c | 14199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14200 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14201 | else |
14202 | # Canadian cross, just use what we found | |
cd9a469c | 14203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14204 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14205 | fi |
f5aebe3e | 14206 | else |
14207 | ok=yes | |
14208 | case " ${configdirs} " in | |
14209 | *" gcc "*) ;; | |
14210 | *) ok=no ;; | |
14211 | esac | |
14212 | case ,${enable_languages}, in | |
14213 | *,java,*) ;; | |
14214 | *) ok=no ;; | |
14215 | esac | |
14216 | if test $ok = yes; then | |
14217 | # An in-tree tool is available and we can use it | |
14218 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 14219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14220 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14221 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14222 | # We already found the complete path | |
a6c599b5 | 14223 | ac_dir=`dirname $GCJ_FOR_TARGET` |
cd9a469c | 14224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14225 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14226 | elif test "x$target" = "x$host"; then |
14227 | # We can use an host tool | |
14228 | GCJ_FOR_TARGET='$(GCJ)' | |
cd9a469c | 14229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14230 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14231 | else |
14232 | # We need a cross tool | |
cd9a469c | 14233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14234 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14235 | fi |
14236 | fi | |
a83ffacf | 14237 | |
cd9a469c | 14238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14239 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
f5aebe3e | 14240 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14241 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14242 | # We already found the complete path | |
a6c599b5 | 14243 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
cd9a469c | 14244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14245 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14246 | else |
14247 | # Canadian cross, just use what we found | |
cd9a469c | 14248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14249 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14250 | fi |
f5aebe3e | 14251 | else |
14252 | ok=yes | |
14253 | case " ${configdirs} " in | |
14254 | *" gcc "*) ;; | |
14255 | *) ok=no ;; | |
14256 | esac | |
14257 | case ,${enable_languages}, in | |
14258 | *,fortran,*) ;; | |
14259 | *) ok=no ;; | |
14260 | esac | |
14261 | if test $ok = yes; then | |
14262 | # An in-tree tool is available and we can use it | |
14263 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 14264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14265 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14266 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14267 | # We already found the complete path | |
a6c599b5 | 14268 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
cd9a469c | 14269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14270 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14271 | elif test "x$target" = "x$host"; then |
14272 | # We can use an host tool | |
14273 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
cd9a469c | 14274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14275 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14276 | else |
14277 | # We need a cross tool | |
cd9a469c | 14278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14279 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14280 | fi |
14281 | fi | |
a83ffacf | 14282 | |
5ff5b630 | 14283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14284 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14285 | if test "x${build}" != "x${host}" ; then | |
14286 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14287 | # We already found the complete path | |
14288 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14290 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14291 | else | |
14292 | # Canadian cross, just use what we found | |
14293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14294 | $as_echo "pre-installed" >&6; } | |
14295 | fi | |
14296 | else | |
14297 | ok=yes | |
14298 | case " ${configdirs} " in | |
14299 | *" gcc "*) ;; | |
14300 | *) ok=no ;; | |
14301 | esac | |
14302 | case ,${enable_languages}, in | |
14303 | *,go,*) ;; | |
14304 | *) ok=no ;; | |
14305 | esac | |
14306 | if test $ok = yes; then | |
14307 | # An in-tree tool is available and we can use it | |
14308 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14310 | $as_echo "just compiled" >&6; } | |
14311 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14312 | # We already found the complete path | |
14313 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14315 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14316 | elif test "x$target" = "x$host"; then | |
14317 | # We can use an host tool | |
14318 | GOC_FOR_TARGET='$(GOC)' | |
14319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14320 | $as_echo "host tool" >&6; } | |
14321 | else | |
14322 | # We need a cross tool | |
14323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14324 | $as_echo "pre-installed" >&6; } | |
14325 | fi | |
14326 | fi | |
14327 | ||
cd9a469c | 14328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14329 | $as_echo_n "checking where to find the target ld... " >&6; } | |
f5aebe3e | 14330 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14331 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14332 | # We already found the complete path | |
a6c599b5 | 14333 | ac_dir=`dirname $LD_FOR_TARGET` |
cd9a469c | 14334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14335 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14336 | else |
14337 | # Canadian cross, just use what we found | |
cd9a469c | 14338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14339 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14340 | fi |
f5aebe3e | 14341 | else |
14342 | ok=yes | |
14343 | case " ${configdirs} " in | |
14344 | *" ld "*) ;; | |
14345 | *) ok=no ;; | |
14346 | esac | |
b30fcfae | 14347 | |
f5aebe3e | 14348 | if test $ok = yes; then |
14349 | # An in-tree tool is available and we can use it | |
14350 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
cd9a469c | 14351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14352 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14353 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14354 | # We already found the complete path | |
a6c599b5 | 14355 | ac_dir=`dirname $LD_FOR_TARGET` |
cd9a469c | 14356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14357 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14358 | elif test "x$target" = "x$host"; then |
14359 | # We can use an host tool | |
14360 | LD_FOR_TARGET='$(LD)' | |
cd9a469c | 14361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14362 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14363 | else |
14364 | # We need a cross tool | |
cd9a469c | 14365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14366 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14367 | fi |
14368 | fi | |
a83ffacf | 14369 | |
cd9a469c | 14370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14371 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
f5aebe3e | 14372 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14373 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14374 | # We already found the complete path | |
a6c599b5 | 14375 | ac_dir=`dirname $LIPO_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; } | |
c47832b1 | 14378 | else |
14379 | # Canadian cross, just use what we found | |
cd9a469c | 14380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14381 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14382 | fi |
f5aebe3e | 14383 | else |
c47832b1 | 14384 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14385 | # We already found the complete path | |
a6c599b5 | 14386 | ac_dir=`dirname $LIPO_FOR_TARGET` |
cd9a469c | 14387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14388 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14389 | elif test "x$target" = "x$host"; then |
f5aebe3e | 14390 | # We can use an host tool |
14391 | LIPO_FOR_TARGET='$(LIPO)' | |
cd9a469c | 14392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14393 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14394 | else |
14395 | # We need a cross tool | |
cd9a469c | 14396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14397 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14398 | fi |
14399 | fi | |
a83ffacf | 14400 | |
cd9a469c | 14401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14402 | $as_echo_n "checking where to find the target nm... " >&6; } | |
f5aebe3e | 14403 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14404 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14405 | # We already found the complete path | |
a6c599b5 | 14406 | ac_dir=`dirname $NM_FOR_TARGET` |
cd9a469c | 14407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14408 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14409 | else |
14410 | # Canadian cross, just use what we found | |
cd9a469c | 14411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14412 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14413 | fi |
f5aebe3e | 14414 | else |
14415 | ok=yes | |
14416 | case " ${configdirs} " in | |
14417 | *" binutils "*) ;; | |
14418 | *) ok=no ;; | |
14419 | esac | |
b30fcfae | 14420 | |
f5aebe3e | 14421 | if test $ok = yes; then |
14422 | # An in-tree tool is available and we can use it | |
14423 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
cd9a469c | 14424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14425 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14426 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14427 | # We already found the complete path | |
a6c599b5 | 14428 | ac_dir=`dirname $NM_FOR_TARGET` |
cd9a469c | 14429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14430 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14431 | elif test "x$target" = "x$host"; then |
14432 | # We can use an host tool | |
14433 | NM_FOR_TARGET='$(NM)' | |
cd9a469c | 14434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14435 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14436 | else |
14437 | # We need a cross tool | |
cd9a469c | 14438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14439 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14440 | fi |
14441 | fi | |
a83ffacf | 14442 | |
fc740d70 | 14443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14444 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14445 | if test "x${build}" != "x${host}" ; then | |
14446 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14447 | # We already found the complete path | |
14448 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14450 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14451 | else | |
14452 | # Canadian cross, just use what we found | |
14453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14454 | $as_echo "pre-installed" >&6; } | |
14455 | fi | |
14456 | else | |
14457 | ok=yes | |
14458 | case " ${configdirs} " in | |
14459 | *" binutils "*) ;; | |
14460 | *) ok=no ;; | |
14461 | esac | |
14462 | ||
14463 | if test $ok = yes; then | |
14464 | # An in-tree tool is available and we can use it | |
14465 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14467 | $as_echo "just compiled" >&6; } | |
14468 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14469 | # We already found the complete path | |
14470 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14472 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14473 | elif test "x$target" = "x$host"; then | |
14474 | # We can use an host tool | |
9b31ae9c | 14475 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
fc740d70 | 14476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14477 | $as_echo "host tool" >&6; } | |
14478 | else | |
14479 | # We need a cross tool | |
14480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14481 | $as_echo "pre-installed" >&6; } | |
14482 | fi | |
14483 | fi | |
14484 | ||
cd9a469c | 14485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14486 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
f5aebe3e | 14487 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14488 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14489 | # We already found the complete path | |
a6c599b5 | 14490 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
cd9a469c | 14491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14492 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14493 | else |
14494 | # Canadian cross, just use what we found | |
cd9a469c | 14495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14496 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14497 | fi |
f5aebe3e | 14498 | else |
14499 | ok=yes | |
14500 | case " ${configdirs} " in | |
14501 | *" binutils "*) ;; | |
14502 | *) ok=no ;; | |
14503 | esac | |
b30fcfae | 14504 | |
f5aebe3e | 14505 | if test $ok = yes; then |
14506 | # An in-tree tool is available and we can use it | |
14507 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
cd9a469c | 14508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14509 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14510 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14511 | # We already found the complete path | |
a6c599b5 | 14512 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
cd9a469c | 14513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14514 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14515 | elif test "x$target" = "x$host"; then |
14516 | # We can use an host tool | |
14517 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
cd9a469c | 14518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14519 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14520 | else |
14521 | # We need a cross tool | |
cd9a469c | 14522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14523 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14524 | fi |
14525 | fi | |
a83ffacf | 14526 | |
cd9a469c | 14527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14528 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
f5aebe3e | 14529 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14530 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14531 | # We already found the complete path | |
a6c599b5 | 14532 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
cd9a469c | 14533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14534 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14535 | else |
14536 | # Canadian cross, just use what we found | |
cd9a469c | 14537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14538 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14539 | fi |
f5aebe3e | 14540 | else |
14541 | ok=yes | |
14542 | case " ${configdirs} " in | |
14543 | *" binutils "*) ;; | |
14544 | *) ok=no ;; | |
14545 | esac | |
b30fcfae | 14546 | |
f5aebe3e | 14547 | if test $ok = yes; then |
14548 | # An in-tree tool is available and we can use it | |
14549 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
cd9a469c | 14550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14551 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14552 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14553 | # We already found the complete path | |
a6c599b5 | 14554 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
cd9a469c | 14555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14556 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14557 | elif test "x$target" = "x$host"; then |
14558 | # We can use an host tool | |
14559 | RANLIB_FOR_TARGET='$(RANLIB)' | |
cd9a469c | 14560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14561 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14562 | else |
14563 | # We need a cross tool | |
cd9a469c | 14564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14565 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14566 | fi |
14567 | fi | |
a83ffacf | 14568 | |
3f71364d | 14569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14570 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14571 | if test "x${build}" != "x${host}" ; then | |
14572 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14573 | # We already found the complete path | |
14574 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14576 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14577 | else | |
14578 | # Canadian cross, just use what we found | |
14579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14580 | $as_echo "pre-installed" >&6; } | |
14581 | fi | |
14582 | else | |
14583 | ok=yes | |
14584 | case " ${configdirs} " in | |
14585 | *" binutils "*) ;; | |
14586 | *) ok=no ;; | |
14587 | esac | |
14588 | ||
14589 | if test $ok = yes; then | |
14590 | # An in-tree tool is available and we can use it | |
14591 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14593 | $as_echo "just compiled" >&6; } | |
14594 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14595 | # We already found the complete path | |
14596 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14598 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14599 | elif test "x$target" = "x$host"; then | |
14600 | # We can use an host tool | |
14601 | READELF_FOR_TARGET='$(READELF)' | |
14602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14603 | $as_echo "host tool" >&6; } | |
14604 | else | |
14605 | # We need a cross tool | |
14606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14607 | $as_echo "pre-installed" >&6; } | |
14608 | fi | |
14609 | fi | |
14610 | ||
cd9a469c | 14611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14612 | $as_echo_n "checking where to find the target strip... " >&6; } | |
f5aebe3e | 14613 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14614 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14615 | # We already found the complete path | |
a6c599b5 | 14616 | ac_dir=`dirname $STRIP_FOR_TARGET` |
cd9a469c | 14617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14618 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14619 | else |
14620 | # Canadian cross, just use what we found | |
cd9a469c | 14621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14622 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14623 | fi |
f5aebe3e | 14624 | else |
14625 | ok=yes | |
14626 | case " ${configdirs} " in | |
14627 | *" binutils "*) ;; | |
14628 | *) ok=no ;; | |
14629 | esac | |
b30fcfae | 14630 | |
f5aebe3e | 14631 | if test $ok = yes; then |
14632 | # An in-tree tool is available and we can use it | |
2b7a4d59 | 14633 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
cd9a469c | 14634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14635 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14636 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14637 | # We already found the complete path | |
a6c599b5 | 14638 | ac_dir=`dirname $STRIP_FOR_TARGET` |
cd9a469c | 14639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14640 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14641 | elif test "x$target" = "x$host"; then |
14642 | # We can use an host tool | |
14643 | STRIP_FOR_TARGET='$(STRIP)' | |
cd9a469c | 14644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14645 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14646 | else |
14647 | # We need a cross tool | |
cd9a469c | 14648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14649 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14650 | fi |
14651 | fi | |
a83ffacf | 14652 | |
cd9a469c | 14653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14654 | $as_echo_n "checking where to find the target windres... " >&6; } | |
f5aebe3e | 14655 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14656 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14657 | # We already found the complete path | |
a6c599b5 | 14658 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
cd9a469c | 14659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14660 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14661 | else |
14662 | # Canadian cross, just use what we found | |
cd9a469c | 14663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14664 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14665 | fi |
f5aebe3e | 14666 | else |
14667 | ok=yes | |
14668 | case " ${configdirs} " in | |
14669 | *" binutils "*) ;; | |
14670 | *) ok=no ;; | |
14671 | esac | |
b30fcfae | 14672 | |
f5aebe3e | 14673 | if test $ok = yes; then |
14674 | # An in-tree tool is available and we can use it | |
14675 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
cd9a469c | 14676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14677 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14678 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14679 | # We already found the complete path | |
a6c599b5 | 14680 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
cd9a469c | 14681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14682 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14683 | elif test "x$target" = "x$host"; then |
14684 | # We can use an host tool | |
14685 | WINDRES_FOR_TARGET='$(WINDRES)' | |
cd9a469c | 14686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14687 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14688 | else |
14689 | # We need a cross tool | |
cd9a469c | 14690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14691 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14692 | fi |
71ab34df | 14693 | fi |
49aae208 | 14694 | |
cd9a469c | 14695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14696 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
75d6a0a9 | 14697 | if test "x${build}" != "x${host}" ; then |
14698 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14699 | # We already found the complete path | |
14700 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
cd9a469c | 14701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14702 | $as_echo "pre-installed in $ac_dir" >&6; } | |
75d6a0a9 | 14703 | else |
14704 | # Canadian cross, just use what we found | |
cd9a469c | 14705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14706 | $as_echo "pre-installed" >&6; } | |
75d6a0a9 | 14707 | fi |
14708 | else | |
14709 | ok=yes | |
14710 | case " ${configdirs} " in | |
14711 | *" binutils "*) ;; | |
14712 | *) ok=no ;; | |
14713 | esac | |
14714 | ||
14715 | if test $ok = yes; then | |
14716 | # An in-tree tool is available and we can use it | |
14717 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
cd9a469c | 14718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14719 | $as_echo "just compiled" >&6; } | |
75d6a0a9 | 14720 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14721 | # We already found the complete path | |
14722 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
cd9a469c | 14723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14724 | $as_echo "pre-installed in $ac_dir" >&6; } | |
75d6a0a9 | 14725 | elif test "x$target" = "x$host"; then |
14726 | # We can use an host tool | |
14727 | WINDMC_FOR_TARGET='$(WINDMC)' | |
cd9a469c | 14728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14729 | $as_echo "host tool" >&6; } | |
75d6a0a9 | 14730 | else |
14731 | # We need a cross tool | |
cd9a469c | 14732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14733 | $as_echo "pre-installed" >&6; } | |
75d6a0a9 | 14734 | fi |
14735 | fi | |
14736 | ||
49aae208 | 14737 | |
14738 | ||
f5aebe3e | 14739 | |
a83ffacf | 14740 | |
71ab34df | 14741 | # Certain tools may need extra flags. |
14742 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14743 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14744 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14745 | ||
f5aebe3e | 14746 | # When building target libraries, except in a Canadian cross, we use |
14747 | # the same toolchain as the compiler we just built. | |
14748 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14749 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14750 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14751 | if test $host = $build; then | |
14752 | case " $configdirs " in | |
14753 | *" gcc "*) | |
14754 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14755 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14756 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14757 | ;; | |
14758 | esac | |
14759 | fi | |
14760 | ||
14761 | ||
14762 | ||
14763 | ||
14764 | ||
cd9a469c | 14765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14766 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14767 | # Check whether --enable-maintainer-mode was given. | |
14768 | if test "${enable_maintainer_mode+set}" = set; then : | |
14769 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3290c0cf | 14770 | else |
14771 | USE_MAINTAINER_MODE=no | |
cd9a469c | 14772 | fi |
14773 | ||
14774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14775 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3290c0cf | 14776 | |
14777 | ||
14778 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14779 | MAINTAINER_MODE_TRUE= | |
14780 | MAINTAINER_MODE_FALSE='#' | |
14781 | else | |
14782 | MAINTAINER_MODE_TRUE='#' | |
14783 | MAINTAINER_MODE_FALSE= | |
b30fcfae | 14784 | fi |
3290c0cf | 14785 | MAINT=$MAINTAINER_MODE_TRUE |
14786 | ||
2d64c2fd | 14787 | # --------------------- |
14788 | # GCC bootstrap support | |
14789 | # --------------------- | |
14790 | ||
14791 | # Stage specific cflags for build. | |
14792 | stage1_cflags="-g" | |
14793 | case $build in | |
14794 | vax-*-*) | |
14795 | case ${GCC} in | |
14796 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14797 | *) stage1_cflags="-g -J" ;; | |
14798 | esac ;; | |
2d64c2fd | 14799 | esac |
14800 | ||
f508ba97 | 14801 | |
2d64c2fd | 14802 | |
39f34cfc | 14803 | # Enable --enable-checking in stage1 of the compiler. |
cd9a469c | 14804 | # Check whether --enable-stage1-checking was given. |
14805 | if test "${enable_stage1_checking+set}" = set; then : | |
14806 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
39f34cfc | 14807 | else |
f6be6a96 | 14808 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
868af6b6 | 14809 | # For --disable-checking or implicit --enable-checking=release, avoid |
14810 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
14811 | # bootstraps. See PR62077. | |
14812 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types | |
14813 | case $BUILD_CONFIG in | |
14814 | *lto*) | |
14815 | if test "x$enable_checking" = x && \ | |
14816 | test -d ${srcdir}/gcc && \ | |
14817 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
14818 | stage1_checking=--enable-checking=yes,types | |
14819 | fi;; | |
14820 | *) stage1_checking=--enable-checking=yes,types;; | |
14821 | esac | |
39f34cfc | 14822 | else |
f6be6a96 | 14823 | stage1_checking=--enable-checking=$enable_checking,types |
39f34cfc | 14824 | fi |
cd9a469c | 14825 | fi |
39f34cfc | 14826 | |
14827 | ||
5084f823 | 14828 | |
cd9a469c | 14829 | # Enable -Werror in bootstrap stage2 and later. |
14830 | # Check whether --enable-werror was given. | |
14831 | if test "${enable_werror+set}" = set; then : | |
14832 | enableval=$enable_werror; | |
2d64c2fd | 14833 | else |
dd979235 | 14834 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
2d64c2fd | 14835 | enable_werror=yes |
dc914c6d | 14836 | else |
14837 | enable_werror=no | |
14838 | fi | |
cd9a469c | 14839 | fi |
14840 | ||
c0c5068d | 14841 | case ${enable_werror} in |
14842 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14843 | *) stage2_werror_flag="" ;; | |
2d64c2fd | 14844 | esac |
14845 | ||
14846 | ||
2bd17377 | 14847 | # Enable --enable-host-shared. |
14848 | # Check whether --enable-host-shared was given. | |
14849 | if test "${enable_host_shared+set}" = set; then : | |
14850 | enableval=$enable_host_shared; host_shared=$enableval | |
14851 | else | |
14852 | host_shared=no | |
14853 | fi | |
14854 | ||
14855 | ||
14856 | ||
5c524c74 | 14857 | # PR jit/64780: Require the user to explicitly specify |
14858 | # --enable-host-shared if the jit is enabled, hinting | |
14859 | # that they might want to do a separate configure/build of | |
14860 | # the jit, to avoid users from slowing down the rest of the | |
14861 | # compiler by enabling the jit. | |
14862 | if test ${host_shared} = "no" ; then | |
14863 | case "${enable_languages}" in | |
14864 | *jit*) | |
14865 | as_fn_error " | |
14866 | Enabling language \"jit\" requires --enable-host-shared. | |
14867 | ||
14868 | --enable-host-shared typically slows the rest of the compiler down by | |
14869 | a few %, so you must explicitly enable it. | |
14870 | ||
14871 | If you want to build both the jit and the regular compiler, it is often | |
14872 | best to do this via two separate configure/builds, in separate | |
14873 | directories, to avoid imposing the performance cost of | |
14874 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
14875 | ;; | |
14876 | *) | |
14877 | ;; | |
14878 | esac | |
14879 | fi | |
14880 | ||
6fe86052 | 14881 | # Specify what files to not compare during bootstrap. |
14882 | ||
14883 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14884 | case "$target" in | |
14885 | hppa*64*-*-hpux*) ;; | |
14886 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
62f0972f | 14887 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
6fe86052 | 14888 | esac |
14889 | ||
14890 | ||
cd9a469c | 14891 | ac_config_files="$ac_config_files Makefile" |
14892 | ||
b30fcfae | 14893 | cat >confcache <<\_ACEOF |
71ab34df | 14894 | # This file is a shell script that caches the results of configure |
14895 | # tests run on this system so they can be shared between configure | |
b30fcfae | 14896 | # scripts and configure runs, see configure's option --config-cache. |
14897 | # It is not useful on other systems. If it contains results you don't | |
14898 | # want to keep, you may remove or edit it. | |
71ab34df | 14899 | # |
b30fcfae | 14900 | # config.status only pays attention to the cache file if you give it |
14901 | # the --recheck option to rerun configure. | |
71ab34df | 14902 | # |
b30fcfae | 14903 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14904 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14905 | # following values. | |
14906 | ||
14907 | _ACEOF | |
14908 | ||
71ab34df | 14909 | # The following way of writing the cache mishandles newlines in values, |
14910 | # but we know of no workaround that is simple, portable, and efficient. | |
cd9a469c | 14911 | # So, we kill variables containing newlines. |
71ab34df | 14912 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14913 | # and sets the high bit in the cache file unless we assign to the vars. | |
cd9a469c | 14914 | ( |
14915 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14916 | eval ac_val=\$$ac_var | |
14917 | case $ac_val in #( | |
14918 | *${as_nl}*) | |
14919 | case $ac_var in #( | |
14920 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14921 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14922 | esac | |
14923 | case $ac_var in #( | |
14924 | _ | IFS | as_nl) ;; #( | |
14925 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14926 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14927 | esac ;; | |
14928 | esac | |
14929 | done | |
14930 | ||
b30fcfae | 14931 | (set) 2>&1 | |
cd9a469c | 14932 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14933 | *${as_nl}ac_space=\ *) | |
14934 | # `set' does not quote correctly, so add quotes: double-quote | |
14935 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b30fcfae | 14936 | sed -n \ |
14937 | "s/'/'\\\\''/g; | |
14938 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
cd9a469c | 14939 | ;; #( |
b30fcfae | 14940 | *) |
14941 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
cd9a469c | 14942 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b30fcfae | 14943 | ;; |
cd9a469c | 14944 | esac | |
14945 | sort | |
14946 | ) | | |
b30fcfae | 14947 | sed ' |
cd9a469c | 14948 | /^ac_cv_env_/b end |
b30fcfae | 14949 | t clear |
cd9a469c | 14950 | :clear |
b30fcfae | 14951 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14952 | t end | |
cd9a469c | 14953 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14954 | :end' >>confcache | |
14955 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14956 | if test -w "$cache_file"; then | |
14957 | test "x$cache_file" != "x/dev/null" && | |
14958 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14959 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
b30fcfae | 14960 | cat confcache >$cache_file |
71ab34df | 14961 | else |
cd9a469c | 14962 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14963 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
71ab34df | 14964 | fi |
805e22b2 | 14965 | fi |
71ab34df | 14966 | rm -f confcache |
a8298541 | 14967 | |
71ab34df | 14968 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14969 | # Let make expand exec_prefix. | |
14970 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
92424a17 | 14971 | |
71ab34df | 14972 | # Transform confdefs.h into DEFS. |
14973 | # Protect against shell expansion while executing Makefile rules. | |
14974 | # Protect against Makefile macro expansion. | |
b30fcfae | 14975 | # |
14976 | # If the first sed substitution is executed (which looks for macros that | |
cd9a469c | 14977 | # take arguments), then branch to the quote section. Otherwise, |
b30fcfae | 14978 | # look for a macro that doesn't take arguments. |
cd9a469c | 14979 | ac_script=' |
14980 | :mline | |
14981 | /\\$/{ | |
14982 | N | |
14983 | s,\\\n,, | |
14984 | b mline | |
14985 | } | |
b30fcfae | 14986 | t clear |
cd9a469c | 14987 | :clear |
14988 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
b30fcfae | 14989 | t quote |
cd9a469c | 14990 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
b30fcfae | 14991 | t quote |
cd9a469c | 14992 | b any |
14993 | :quote | |
14994 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14995 | s/\[/\\&/g | |
14996 | s/\]/\\&/g | |
14997 | s/\$/$$/g | |
14998 | H | |
14999 | :any | |
15000 | ${ | |
15001 | g | |
15002 | s/^\n// | |
15003 | s/\n/ /g | |
15004 | p | |
15005 | } | |
15006 | ' | |
15007 | DEFS=`sed -n "$ac_script" confdefs.h` | |
b30fcfae | 15008 | |
15009 | ||
15010 | ac_libobjs= | |
15011 | ac_ltlibobjs= | |
15012 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
15013 | # 1. Remove the extension, and $U if already installed. | |
cd9a469c | 15014 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
15015 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
15016 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
15017 | # will be set to the directory where LIBOBJS objects are built. | |
15018 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15019 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b30fcfae | 15020 | done |
15021 | LIBOBJS=$ac_libobjs | |
a4af6a58 | 15022 | |
b30fcfae | 15023 | LTLIBOBJS=$ac_ltlibobjs |
a83ffacf | 15024 | |
ae48753c | 15025 | |
b30fcfae | 15026 | |
15027 | : ${CONFIG_STATUS=./config.status} | |
cd9a469c | 15028 | ac_write_fail=0 |
b30fcfae | 15029 | ac_clean_files_save=$ac_clean_files |
15030 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
cd9a469c | 15031 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
15032 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15033 | as_write_fail=0 | |
15034 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b30fcfae | 15035 | #! $SHELL |
15036 | # Generated by $as_me. | |
71ab34df | 15037 | # Run this file to recreate the current configuration. |
71ab34df | 15038 | # Compiler output produced by configure, useful for debugging |
b30fcfae | 15039 | # configure, is in config.log if it exists. |
a83ffacf | 15040 | |
b30fcfae | 15041 | debug=false |
15042 | ac_cs_recheck=false | |
15043 | ac_cs_silent=false | |
b30fcfae | 15044 | |
cd9a469c | 15045 | SHELL=\${CONFIG_SHELL-$SHELL} |
15046 | export SHELL | |
15047 | _ASEOF | |
15048 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15049 | ## -------------------- ## | |
15050 | ## M4sh Initialization. ## | |
15051 | ## -------------------- ## | |
15052 | ||
15053 | # Be more Bourne compatible | |
15054 | DUALCASE=1; export DUALCASE # for MKS sh | |
15055 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b30fcfae | 15056 | emulate sh |
15057 | NULLCMD=: | |
cd9a469c | 15058 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b30fcfae | 15059 | # is contrary to our usage. Disable this feature. |
15060 | alias -g '${1+"$@"}'='"$@"' | |
cd9a469c | 15061 | setopt NO_GLOB_SUBST |
15062 | else | |
15063 | case `(set -o) 2>/dev/null` in #( | |
15064 | *posix*) : | |
15065 | set -o posix ;; #( | |
15066 | *) : | |
15067 | ;; | |
15068 | esac | |
b30fcfae | 15069 | fi |
b30fcfae | 15070 | |
cd9a469c | 15071 | |
15072 | as_nl=' | |
15073 | ' | |
15074 | export as_nl | |
15075 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15076 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15077 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15078 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15079 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15080 | # but without wasting forks for bash or zsh. | |
15081 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15082 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15083 | as_echo='print -r --' | |
15084 | as_echo_n='print -rn --' | |
15085 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15086 | as_echo='printf %s\n' | |
15087 | as_echo_n='printf %s' | |
15088 | else | |
15089 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15090 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15091 | as_echo_n='/usr/ucb/echo -n' | |
15092 | else | |
15093 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15094 | as_echo_n_body='eval | |
15095 | arg=$1; | |
15096 | case $arg in #( | |
15097 | *"$as_nl"*) | |
15098 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15099 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15100 | esac; | |
15101 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15102 | ' | |
15103 | export as_echo_n_body | |
15104 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15105 | fi | |
15106 | export as_echo_body | |
15107 | as_echo='sh -c $as_echo_body as_echo' | |
b30fcfae | 15108 | fi |
15109 | ||
cd9a469c | 15110 | # The user is always right. |
15111 | if test "${PATH_SEPARATOR+set}" != set; then | |
15112 | PATH_SEPARATOR=: | |
15113 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15114 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15115 | PATH_SEPARATOR=';' | |
15116 | } | |
15117 | fi | |
15118 | ||
15119 | ||
15120 | # IFS | |
15121 | # We need space, tab and new line, in precisely that order. Quoting is | |
15122 | # there to prevent editors from complaining about space-tab. | |
15123 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15124 | # splitting by setting IFS to empty value.) | |
15125 | IFS=" "" $as_nl" | |
15126 | ||
15127 | # Find who we are. Look in the path if we contain no directory separator. | |
15128 | case $0 in #(( | |
15129 | *[\\/]* ) as_myself=$0 ;; | |
15130 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15131 | for as_dir in $PATH | |
15132 | do | |
15133 | IFS=$as_save_IFS | |
15134 | test -z "$as_dir" && as_dir=. | |
15135 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15136 | done | |
15137 | IFS=$as_save_IFS | |
15138 | ||
15139 | ;; | |
15140 | esac | |
15141 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15142 | # in which case we are not to be found in the path. | |
15143 | if test "x$as_myself" = x; then | |
15144 | as_myself=$0 | |
15145 | fi | |
15146 | if test ! -f "$as_myself"; then | |
15147 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15148 | exit 1 | |
15149 | fi | |
b30fcfae | 15150 | |
cd9a469c | 15151 | # Unset variables that we do not need and which cause bugs (e.g. in |
15152 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15153 | # suppresses any "Segmentation fault" message there. '((' could | |
15154 | # trigger a bug in pdksh 5.2.14. | |
15155 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15156 | do eval test x\${$as_var+set} = xset \ | |
15157 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15158 | done | |
b30fcfae | 15159 | PS1='$ ' |
15160 | PS2='> ' | |
15161 | PS4='+ ' | |
15162 | ||
15163 | # NLS nuisances. | |
cd9a469c | 15164 | LC_ALL=C |
15165 | export LC_ALL | |
15166 | LANGUAGE=C | |
15167 | export LANGUAGE | |
15168 | ||
15169 | # CDPATH. | |
15170 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15171 | ||
15172 | ||
15173 | # as_fn_error ERROR [LINENO LOG_FD] | |
15174 | # --------------------------------- | |
15175 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
15176 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
15177 | # script with status $?, using 1 if that was 0. | |
15178 | as_fn_error () | |
15179 | { | |
15180 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
15181 | if test "$3"; then | |
15182 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15183 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
b30fcfae | 15184 | fi |
cd9a469c | 15185 | $as_echo "$as_me: error: $1" >&2 |
15186 | as_fn_exit $as_status | |
15187 | } # as_fn_error | |
15188 | ||
15189 | ||
15190 | # as_fn_set_status STATUS | |
15191 | # ----------------------- | |
15192 | # Set $? to STATUS, without forking. | |
15193 | as_fn_set_status () | |
15194 | { | |
15195 | return $1 | |
15196 | } # as_fn_set_status | |
15197 | ||
15198 | # as_fn_exit STATUS | |
15199 | # ----------------- | |
15200 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15201 | as_fn_exit () | |
15202 | { | |
15203 | set +e | |
15204 | as_fn_set_status $1 | |
15205 | exit $1 | |
15206 | } # as_fn_exit | |
15207 | ||
15208 | # as_fn_unset VAR | |
15209 | # --------------- | |
15210 | # Portably unset VAR. | |
15211 | as_fn_unset () | |
15212 | { | |
15213 | { eval $1=; unset $1;} | |
15214 | } | |
15215 | as_unset=as_fn_unset | |
15216 | # as_fn_append VAR VALUE | |
15217 | # ---------------------- | |
15218 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15219 | # advantage of any shell optimizations that allow amortized linear growth over | |
15220 | # repeated appends, instead of the typical quadratic growth present in naive | |
15221 | # implementations. | |
15222 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15223 | eval 'as_fn_append () | |
15224 | { | |
15225 | eval $1+=\$2 | |
15226 | }' | |
15227 | else | |
15228 | as_fn_append () | |
15229 | { | |
15230 | eval $1=\$$1\$2 | |
15231 | } | |
15232 | fi # as_fn_append | |
15233 | ||
15234 | # as_fn_arith ARG... | |
15235 | # ------------------ | |
15236 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15237 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15238 | # must be portable across $(()) and expr. | |
15239 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15240 | eval 'as_fn_arith () | |
15241 | { | |
15242 | as_val=$(( $* )) | |
15243 | }' | |
15244 | else | |
15245 | as_fn_arith () | |
15246 | { | |
15247 | as_val=`expr "$@" || test $? -eq 1` | |
15248 | } | |
15249 | fi # as_fn_arith | |
15250 | ||
b30fcfae | 15251 | |
cd9a469c | 15252 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15253 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b30fcfae | 15254 | as_expr=expr |
15255 | else | |
15256 | as_expr=false | |
15257 | fi | |
15258 | ||
cd9a469c | 15259 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b30fcfae | 15260 | as_basename=basename |
15261 | else | |
15262 | as_basename=false | |
15263 | fi | |
15264 | ||
cd9a469c | 15265 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15266 | as_dirname=dirname | |
15267 | else | |
15268 | as_dirname=false | |
15269 | fi | |
b30fcfae | 15270 | |
cd9a469c | 15271 | as_me=`$as_basename -- "$0" || |
b30fcfae | 15272 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15273 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 15274 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15275 | $as_echo X/"$0" | | |
15276 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15277 | s//\1/ | |
15278 | q | |
15279 | } | |
15280 | /^X\/\(\/\/\)$/{ | |
15281 | s//\1/ | |
15282 | q | |
15283 | } | |
15284 | /^X\/\(\/\).*/{ | |
15285 | s//\1/ | |
15286 | q | |
15287 | } | |
15288 | s/.*/./; q'` | |
5084f823 | 15289 | |
5084f823 | 15290 | # Avoid depending upon Character Ranges. |
15291 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15292 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15293 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15294 | as_cr_digits='0123456789' | |
15295 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15296 | ||
cd9a469c | 15297 | ECHO_C= ECHO_N= ECHO_T= |
15298 | case `echo -n x` in #((((( | |
15299 | -n*) | |
15300 | case `echo 'xy\c'` in | |
15301 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15302 | xy) ECHO_C='\c';; | |
15303 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15304 | ECHO_T=' ';; | |
15305 | esac;; | |
15306 | *) | |
15307 | ECHO_N='-n';; | |
b30fcfae | 15308 | esac |
15309 | ||
cd9a469c | 15310 | rm -f conf$$ conf$$.exe conf$$.file |
15311 | if test -d conf$$.dir; then | |
15312 | rm -f conf$$.dir/conf$$.file | |
b30fcfae | 15313 | else |
cd9a469c | 15314 | rm -f conf$$.dir |
15315 | mkdir conf$$.dir 2>/dev/null | |
b30fcfae | 15316 | fi |
cd9a469c | 15317 | if (echo >conf$$.file) 2>/dev/null; then |
15318 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
5084f823 | 15319 | as_ln_s='ln -s' |
cd9a469c | 15320 | # ... but there are two gotchas: |
15321 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15322 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15323 | # In both cases, we have to default to `cp -p'. | |
15324 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15325 | as_ln_s='cp -p' | |
15326 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15327 | as_ln_s=ln | |
15328 | else | |
15329 | as_ln_s='cp -p' | |
5084f823 | 15330 | fi |
b30fcfae | 15331 | else |
15332 | as_ln_s='cp -p' | |
15333 | fi | |
cd9a469c | 15334 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15335 | rmdir conf$$.dir 2>/dev/null | |
15336 | ||
15337 | ||
15338 | # as_fn_mkdir_p | |
15339 | # ------------- | |
15340 | # Create "$as_dir" as a directory, including parents if necessary. | |
15341 | as_fn_mkdir_p () | |
15342 | { | |
15343 | ||
15344 | case $as_dir in #( | |
15345 | -*) as_dir=./$as_dir;; | |
15346 | esac | |
15347 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15348 | as_dirs= | |
15349 | while :; do | |
15350 | case $as_dir in #( | |
15351 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15352 | *) as_qdir=$as_dir;; | |
15353 | esac | |
15354 | as_dirs="'$as_qdir' $as_dirs" | |
15355 | as_dir=`$as_dirname -- "$as_dir" || | |
15356 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15357 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15358 | X"$as_dir" : 'X\(//\)$' \| \ | |
15359 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15360 | $as_echo X"$as_dir" | | |
15361 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15362 | s//\1/ | |
15363 | q | |
15364 | } | |
15365 | /^X\(\/\/\)[^/].*/{ | |
15366 | s//\1/ | |
15367 | q | |
15368 | } | |
15369 | /^X\(\/\/\)$/{ | |
15370 | s//\1/ | |
15371 | q | |
15372 | } | |
15373 | /^X\(\/\).*/{ | |
15374 | s//\1/ | |
15375 | q | |
15376 | } | |
15377 | s/.*/./; q'` | |
15378 | test -d "$as_dir" && break | |
15379 | done | |
15380 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15381 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
15382 | ||
b30fcfae | 15383 | |
cd9a469c | 15384 | } # as_fn_mkdir_p |
b30fcfae | 15385 | if mkdir -p . 2>/dev/null; then |
cd9a469c | 15386 | as_mkdir_p='mkdir -p "$as_dir"' |
b30fcfae | 15387 | else |
15388 | test -d ./-p && rmdir ./-p | |
15389 | as_mkdir_p=false | |
15390 | fi | |
15391 | ||
cd9a469c | 15392 | if test -x / >/dev/null 2>&1; then |
15393 | as_test_x='test -x' | |
15394 | else | |
15395 | if ls -dL / >/dev/null 2>&1; then | |
15396 | as_ls_L_option=L | |
15397 | else | |
15398 | as_ls_L_option= | |
15399 | fi | |
15400 | as_test_x=' | |
15401 | eval sh -c '\'' | |
15402 | if test -d "$1"; then | |
15403 | test -d "$1/."; | |
15404 | else | |
15405 | case $1 in #( | |
15406 | -*)set "./$1";; | |
15407 | esac; | |
15408 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
15409 | ???[sx]*):;;*)false;;esac;fi | |
15410 | '\'' sh | |
15411 | ' | |
15412 | fi | |
15413 | as_executable_p=$as_test_x | |
b30fcfae | 15414 | |
15415 | # Sed expression to map a string onto a valid CPP name. | |
15416 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15417 | ||
15418 | # Sed expression to map a string onto a valid variable name. | |
15419 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15420 | ||
15421 | ||
b30fcfae | 15422 | exec 6>&1 |
cd9a469c | 15423 | ## ----------------------------------- ## |
15424 | ## Main body of $CONFIG_STATUS script. ## | |
15425 | ## ----------------------------------- ## | |
15426 | _ASEOF | |
15427 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15428 | ||
15429 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15430 | # Save the log message, to keep $0 and so on meaningful, and to | |
b30fcfae | 15431 | # report actual input values of CONFIG_FILES etc. instead of their |
cd9a469c | 15432 | # values after options handling. |
15433 | ac_log=" | |
b30fcfae | 15434 | This file was extended by $as_me, which was |
cd9a469c | 15435 | generated by GNU Autoconf 2.64. Invocation command line was |
b30fcfae | 15436 | |
15437 | CONFIG_FILES = $CONFIG_FILES | |
15438 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15439 | CONFIG_LINKS = $CONFIG_LINKS | |
15440 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15441 | $ $0 $@ | |
15442 | ||
cd9a469c | 15443 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15444 | " | |
15445 | ||
b30fcfae | 15446 | _ACEOF |
15447 | ||
cd9a469c | 15448 | case $ac_config_files in *" |
15449 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15450 | esac | |
b30fcfae | 15451 | |
5084f823 | 15452 | |
5084f823 | 15453 | |
cd9a469c | 15454 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15455 | # Files that config.status was made for. | |
15456 | config_files="$ac_config_files" | |
b30fcfae | 15457 | |
cd9a469c | 15458 | _ACEOF |
5084f823 | 15459 | |
cd9a469c | 15460 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b30fcfae | 15461 | ac_cs_usage="\ |
cd9a469c | 15462 | \`$as_me' instantiates files and other configuration actions |
15463 | from templates according to the current configuration. Unless the files | |
15464 | and actions are specified as TAGs, all are instantiated by default. | |
b30fcfae | 15465 | |
cd9a469c | 15466 | Usage: $0 [OPTION]... [TAG]... |
b30fcfae | 15467 | |
15468 | -h, --help print this help, then exit | |
cd9a469c | 15469 | -V, --version print version number and configuration settings, then exit |
15470 | -q, --quiet, --silent | |
15471 | do not print progress messages | |
b30fcfae | 15472 | -d, --debug don't remove temporary files |
15473 | --recheck update $as_me by reconfiguring in the same conditions | |
cd9a469c | 15474 | --file=FILE[:TEMPLATE] |
15475 | instantiate the configuration file FILE | |
b30fcfae | 15476 | |
15477 | Configuration files: | |
15478 | $config_files | |
15479 | ||
cd9a469c | 15480 | Report bugs to the package provider." |
5084f823 | 15481 | |
cd9a469c | 15482 | _ACEOF |
15483 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b30fcfae | 15484 | ac_cs_version="\\ |
15485 | config.status | |
cd9a469c | 15486 | configured by $0, generated by GNU Autoconf 2.64, |
15487 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
b30fcfae | 15488 | |
cd9a469c | 15489 | Copyright (C) 2009 Free Software Foundation, Inc. |
b30fcfae | 15490 | This config.status script is free software; the Free Software Foundation |
15491 | gives unlimited permission to copy, distribute and modify it." | |
cd9a469c | 15492 | |
15493 | ac_pwd='$ac_pwd' | |
15494 | srcdir='$srcdir' | |
15495 | INSTALL='$INSTALL' | |
b181f265 | 15496 | AWK='$AWK' |
cd9a469c | 15497 | test -n "\$AWK" || AWK=awk |
b30fcfae | 15498 | _ACEOF |
15499 | ||
cd9a469c | 15500 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15501 | # The default lists apply if the user does not specify any file. | |
b30fcfae | 15502 | ac_need_defaults=: |
15503 | while test $# != 0 | |
b1660f25 | 15504 | do |
b30fcfae | 15505 | case $1 in |
15506 | --*=*) | |
cd9a469c | 15507 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15508 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b30fcfae | 15509 | ac_shift=: |
15510 | ;; | |
cd9a469c | 15511 | *) |
b30fcfae | 15512 | ac_option=$1 |
15513 | ac_optarg=$2 | |
15514 | ac_shift=shift | |
15515 | ;; | |
b30fcfae | 15516 | esac |
15517 | ||
15518 | case $ac_option in | |
15519 | # Handling of the options. | |
71ab34df | 15520 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
b30fcfae | 15521 | ac_cs_recheck=: ;; |
cd9a469c | 15522 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15523 | $as_echo "$ac_cs_version"; exit ;; | |
15524 | --debug | --debu | --deb | --de | --d | -d ) | |
b30fcfae | 15525 | debug=: ;; |
15526 | --file | --fil | --fi | --f ) | |
15527 | $ac_shift | |
cd9a469c | 15528 | case $ac_optarg in |
15529 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15530 | esac | |
15531 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
5084f823 | 15532 | ac_need_defaults=false;; |
cd9a469c | 15533 | --he | --h | --help | --hel | -h ) |
15534 | $as_echo "$ac_cs_usage"; exit ;; | |
b30fcfae | 15535 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15536 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15537 | ac_cs_silent=: ;; | |
15538 | ||
15539 | # This is an error. | |
cd9a469c | 15540 | -*) as_fn_error "unrecognized option: \`$1' |
15541 | Try \`$0 --help' for more information." ;; | |
b30fcfae | 15542 | |
cd9a469c | 15543 | *) as_fn_append ac_config_targets " $1" |
15544 | ac_need_defaults=false ;; | |
b30fcfae | 15545 | |
a83ffacf | 15546 | esac |
b30fcfae | 15547 | shift |
a83ffacf | 15548 | done |
15549 | ||
b30fcfae | 15550 | ac_configure_extra_args= |
a83ffacf | 15551 | |
b30fcfae | 15552 | if $ac_cs_silent; then |
15553 | exec 6>/dev/null | |
15554 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15555 | fi | |
a83ffacf | 15556 | |
b30fcfae | 15557 | _ACEOF |
cd9a469c | 15558 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b30fcfae | 15559 | if \$ac_cs_recheck; then |
cd9a469c | 15560 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15561 | shift | |
15562 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15563 | CONFIG_SHELL='$SHELL' | |
15564 | export CONFIG_SHELL | |
15565 | exec "\$@" | |
b30fcfae | 15566 | fi |
15567 | ||
15568 | _ACEOF | |
cd9a469c | 15569 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15570 | exec 5>>config.log | |
15571 | { | |
15572 | echo | |
15573 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15574 | ## Running $as_me. ## | |
15575 | _ASBOX | |
15576 | $as_echo "$ac_log" | |
15577 | } >&5 | |
b30fcfae | 15578 | |
cd9a469c | 15579 | _ACEOF |
15580 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8bb79148 | 15581 | # |
15582 | # INIT-COMMANDS | |
15583 | # | |
15584 | extrasub_build="$extrasub_build" | |
15585 | extrasub_host="$extrasub_host" | |
15586 | extrasub_target="$extrasub_target" | |
15587 | ||
cd9a469c | 15588 | _ACEOF |
b30fcfae | 15589 | |
cd9a469c | 15590 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
570af75a | 15591 | |
cd9a469c | 15592 | # Handling of arguments. |
b30fcfae | 15593 | for ac_config_target in $ac_config_targets |
15594 | do | |
cd9a469c | 15595 | case $ac_config_target in |
15596 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15597 | ||
15598 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
b30fcfae | 15599 | esac |
15600 | done | |
15601 | ||
cd9a469c | 15602 | |
b30fcfae | 15603 | # If the user did not use the arguments to specify the items to instantiate, |
15604 | # then the envvar interface is used. Set only those that are not. | |
15605 | # We use the long form for the default assignment because of an extremely | |
15606 | # bizarre bug on SunOS 4.1.3. | |
15607 | if $ac_need_defaults; then | |
15608 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15609 | fi | |
15610 | ||
15611 | # Have a temporary directory for convenience. Make it in the build tree | |
cd9a469c | 15612 | # simply because there is no reason against having it here, and in addition, |
b30fcfae | 15613 | # creating and moving files from /tmp can sometimes cause problems. |
cd9a469c | 15614 | # Hook for its removal unless debugging. |
15615 | # Note that there is a small window in which the directory will not be cleaned: | |
15616 | # after its creation but before its name has been assigned to `$tmp'. | |
b30fcfae | 15617 | $debug || |
15618 | { | |
cd9a469c | 15619 | tmp= |
15620 | trap 'exit_status=$? | |
15621 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15622 | ' 0 | |
15623 | trap 'as_fn_exit 1' 1 2 13 15 | |
b30fcfae | 15624 | } |
b30fcfae | 15625 | # Create a (secure) tmp directory for tmp files. |
15626 | ||
15627 | { | |
cd9a469c | 15628 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b30fcfae | 15629 | test -n "$tmp" && test -d "$tmp" |
15630 | } || | |
15631 | { | |
cd9a469c | 15632 | tmp=./conf$$-$RANDOM |
15633 | (umask 077 && mkdir "$tmp") | |
15634 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
15635 | ||
15636 | # Set up the scripts for CONFIG_FILES section. | |
15637 | # No need to generate them if there are no CONFIG_FILES. | |
15638 | # This happens for instance with `./config.status config.h'. | |
15639 | if test -n "$CONFIG_FILES"; then | |
15640 | ||
15641 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15642 | ac_cs_awk_getline=: | |
15643 | ac_cs_awk_pipe_init= | |
15644 | ac_cs_awk_read_file=' | |
15645 | while ((getline aline < (F[key])) > 0) | |
15646 | print(aline) | |
15647 | close(F[key])' | |
15648 | ac_cs_awk_pipe_fini= | |
15649 | else | |
15650 | ac_cs_awk_getline=false | |
15651 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15652 | ac_cs_awk_read_file=' | |
15653 | print "|#_!!_#|" | |
15654 | print "cat " F[key] " &&" | |
15655 | '$ac_cs_awk_pipe_init | |
15656 | # The final `:' finishes the AND list. | |
15657 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15658 | fi | |
15659 | ac_cr=`echo X | tr X '\015'` | |
15660 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15661 | # But we know of no other shell where ac_cr would be empty at this | |
15662 | # point, so we can use a bashism as a fallback. | |
15663 | if test "x$ac_cr" = x; then | |
15664 | eval ac_cr=\$\'\\r\' | |
15665 | fi | |
15666 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15667 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15668 | ac_cs_awk_cr='\r' | |
15669 | else | |
15670 | ac_cs_awk_cr=$ac_cr | |
15671 | fi | |
15672 | ||
15673 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15674 | _ACEOF | |
15675 | ||
15676 | # Create commands to substitute file output variables. | |
b30fcfae | 15677 | { |
cd9a469c | 15678 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
15679 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
15680 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
15681 | echo "_ACAWK" && | |
15682 | echo "_ACEOF" | |
15683 | } >conf$$files.sh && | |
15684 | . ./conf$$files.sh || | |
15685 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15686 | rm -f conf$$files.sh | |
b30fcfae | 15687 | |
cd9a469c | 15688 | { |
15689 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15690 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15691 | echo "_ACEOF" | |
15692 | } >conf$$subs.sh || | |
15693 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15694 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15695 | ac_delim='%!_!# ' | |
15696 | for ac_last_try in false false false false false :; do | |
15697 | . ./conf$$subs.sh || | |
15698 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15699 | ||
15700 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15701 | if test $ac_delim_n = $ac_delim_num; then | |
15702 | break | |
15703 | elif $ac_last_try; then | |
15704 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15705 | else | |
15706 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15707 | fi | |
15708 | done | |
15709 | rm -f conf$$subs.sh | |
15710 | ||
15711 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15712 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
5084f823 | 15713 | _ACEOF |
cd9a469c | 15714 | sed -n ' |
15715 | h | |
15716 | s/^/S["/; s/!.*/"]=/ | |
15717 | p | |
15718 | g | |
15719 | s/^[^!]*!// | |
15720 | :repl | |
15721 | t repl | |
15722 | s/'"$ac_delim"'$// | |
15723 | t delim | |
15724 | :nl | |
15725 | h | |
15726 | s/\(.\{148\}\).*/\1/ | |
15727 | t more1 | |
15728 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15729 | p | |
15730 | n | |
15731 | b repl | |
15732 | :more1 | |
15733 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15734 | p | |
15735 | g | |
15736 | s/.\{148\}// | |
15737 | t nl | |
15738 | :delim | |
15739 | h | |
15740 | s/\(.\{148\}\).*/\1/ | |
15741 | t more2 | |
15742 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15743 | p | |
15744 | b | |
15745 | :more2 | |
15746 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15747 | p | |
15748 | g | |
15749 | s/.\{148\}// | |
15750 | t delim | |
15751 | ' <conf$$subs.awk | sed ' | |
15752 | /^[^""]/{ | |
15753 | N | |
15754 | s/\n// | |
15755 | } | |
15756 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15757 | rm -f conf$$subs.awk | |
15758 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15759 | _ACAWK | |
15760 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15761 | for (key in S) S_is_set[key] = 1 | |
15762 | FS = "\a" | |
15763 | \$ac_cs_awk_pipe_init | |
15764 | } | |
15765 | { | |
15766 | line = $ 0 | |
15767 | nfields = split(line, field, "@") | |
15768 | substed = 0 | |
15769 | len = length(field[1]) | |
15770 | for (i = 2; i < nfields; i++) { | |
15771 | key = field[i] | |
15772 | keylen = length(key) | |
15773 | if (S_is_set[key]) { | |
15774 | value = S[key] | |
15775 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15776 | len += length(value) + length(field[++i]) | |
15777 | substed = 1 | |
15778 | } else | |
15779 | len += 1 + keylen | |
15780 | } | |
15781 | if (nfields == 3 && !substed) { | |
15782 | key = field[2] | |
15783 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15784 | \$ac_cs_awk_read_file | |
15785 | next | |
15786 | } | |
15787 | } | |
15788 | print line | |
15789 | } | |
15790 | \$ac_cs_awk_pipe_fini | |
15791 | _ACAWK | |
15792 | _ACEOF | |
15793 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15794 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15795 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15796 | else | |
15797 | cat | |
15798 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15799 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15800 | _ACEOF | |
15801 | ||
15802 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15803 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15804 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15805 | # (actually we leave an empty line to preserve line numbers). | |
15806 | if test "x$srcdir" = x.; then | |
15807 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15808 | s/:*\$(srcdir):*/:/ | |
15809 | s/:*\${srcdir}:*/:/ | |
15810 | s/:*@srcdir@:*/:/ | |
15811 | s/^\([^=]*=[ ]*\):*/\1/ | |
15812 | s/:*$// | |
15813 | s/^[^=]*=[ ]*$// | |
15814 | }' | |
15815 | fi | |
5084f823 | 15816 | |
cd9a469c | 15817 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15818 | fi # test -n "$CONFIG_FILES" | |
5084f823 | 15819 | |
b30fcfae | 15820 | |
cd9a469c | 15821 | eval set X " :F $CONFIG_FILES " |
15822 | shift | |
15823 | for ac_tag | |
15824 | do | |
15825 | case $ac_tag in | |
15826 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15827 | esac | |
15828 | case $ac_mode$ac_tag in | |
15829 | :[FHL]*:*);; | |
15830 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15831 | :[FH]-) ac_tag=-:-;; | |
15832 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15833 | esac | |
15834 | ac_save_IFS=$IFS | |
15835 | IFS=: | |
15836 | set x $ac_tag | |
15837 | IFS=$ac_save_IFS | |
15838 | shift | |
15839 | ac_file=$1 | |
15840 | shift | |
a8298541 | 15841 | |
cd9a469c | 15842 | case $ac_mode in |
15843 | :L) ac_source=$1;; | |
15844 | :[FH]) | |
15845 | ac_file_inputs= | |
15846 | for ac_f | |
15847 | do | |
15848 | case $ac_f in | |
15849 | -) ac_f="$tmp/stdin";; | |
15850 | *) # Look for the file first in the build tree, then in the source tree | |
15851 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15852 | # because $ac_f cannot contain `:'. | |
15853 | test -f "$ac_f" || | |
15854 | case $ac_f in | |
15855 | [\\/$]*) false;; | |
15856 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15857 | esac || | |
15858 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15859 | esac | |
15860 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15861 | as_fn_append ac_file_inputs " '$ac_f'" | |
15862 | done | |
b30fcfae | 15863 | |
cd9a469c | 15864 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15865 | # use $as_me), people would be surprised to read: | |
15866 | # /* config.h. Generated by config.status. */ | |
15867 | configure_input='Generated from '` | |
15868 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15869 | `' by configure.' | |
15870 | if test x"$ac_file" != x-; then | |
15871 | configure_input="$ac_file. $configure_input" | |
15872 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15873 | $as_echo "$as_me: creating $ac_file" >&6;} | |
5084f823 | 15874 | fi |
cd9a469c | 15875 | # Neutralize special characters interpreted by sed in replacement strings. |
15876 | case $configure_input in #( | |
15877 | *\&* | *\|* | *\\* ) | |
15878 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15879 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15880 | *) ac_sed_conf_input=$configure_input;; | |
15881 | esac | |
570af75a | 15882 | |
cd9a469c | 15883 | case $ac_tag in |
15884 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15885 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15886 | esac | |
15887 | ;; | |
570af75a | 15888 | esac |
15889 | ||
cd9a469c | 15890 | ac_dir=`$as_dirname -- "$ac_file" || |
b30fcfae | 15891 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15892 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15893 | X"$ac_file" : 'X\(//\)$' \| \ | |
cd9a469c | 15894 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15895 | $as_echo X"$ac_file" | | |
15896 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15897 | s//\1/ | |
15898 | q | |
15899 | } | |
15900 | /^X\(\/\/\)[^/].*/{ | |
15901 | s//\1/ | |
15902 | q | |
15903 | } | |
15904 | /^X\(\/\/\)$/{ | |
15905 | s//\1/ | |
15906 | q | |
15907 | } | |
15908 | /^X\(\/\).*/{ | |
15909 | s//\1/ | |
15910 | q | |
15911 | } | |
15912 | s/.*/./; q'` | |
15913 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b30fcfae | 15914 | ac_builddir=. |
a83ffacf | 15915 | |
cd9a469c | 15916 | case "$ac_dir" in |
15917 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15918 | *) | |
15919 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15920 | # A ".." for each directory in $ac_dir_suffix. | |
15921 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15922 | case $ac_top_builddir_sub in | |
15923 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15924 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15925 | esac ;; | |
15926 | esac | |
15927 | ac_abs_top_builddir=$ac_pwd | |
15928 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15929 | # for backward compatibility: | |
15930 | ac_top_builddir=$ac_top_build_prefix | |
b30fcfae | 15931 | |
15932 | case $srcdir in | |
cd9a469c | 15933 | .) # We are building in place. |
b30fcfae | 15934 | ac_srcdir=. |
cd9a469c | 15935 | ac_top_srcdir=$ac_top_builddir_sub |
15936 | ac_abs_top_srcdir=$ac_pwd ;; | |
15937 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b30fcfae | 15938 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 15939 | ac_top_srcdir=$srcdir |
15940 | ac_abs_top_srcdir=$srcdir ;; | |
15941 | *) # Relative name. | |
15942 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15943 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15944 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b30fcfae | 15945 | esac |
cd9a469c | 15946 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b1660f25 | 15947 | |
a83ffacf | 15948 | |
cd9a469c | 15949 | case $ac_mode in |
15950 | :F) | |
15951 | # | |
15952 | # CONFIG_FILE | |
15953 | # | |
b30fcfae | 15954 | |
15955 | case $INSTALL in | |
15956 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
cd9a469c | 15957 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
71ab34df | 15958 | esac |
cd9a469c | 15959 | _ACEOF |
570af75a | 15960 | |
cd9a469c | 15961 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15962 | # If the template does not know about datarootdir, expand it. | |
15963 | # FIXME: This hack should be removed a few years after 2.60. | |
15964 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15965 | ac_sed_dataroot=' | |
15966 | /datarootdir/ { | |
15967 | p | |
15968 | q | |
15969 | } | |
15970 | /@datadir@/p | |
15971 | /@docdir@/p | |
15972 | /@infodir@/p | |
15973 | /@localedir@/p | |
15974 | /@mandir@/p' | |
15975 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15976 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15977 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15978 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15979 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
570af75a | 15980 | _ACEOF |
cd9a469c | 15981 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15982 | ac_datarootdir_hack=' | |
15983 | s&@datadir@&$datadir&g | |
15984 | s&@docdir@&$docdir&g | |
15985 | s&@infodir@&$infodir&g | |
15986 | s&@localedir@&$localedir&g | |
15987 | s&@mandir@&$mandir&g | |
15988 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15989 | esac | |
15990 | _ACEOF | |
15991 | ||
15992 | # Neutralize VPATH when `$srcdir' = `.'. | |
15993 | # Shell code in configure.ac might set extrasub. | |
15994 | # FIXME: do we really want to maintain this feature? | |
15995 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15996 | ac_sed_extra="$ac_vpsub | |
b30fcfae | 15997 | $extrasub |
15998 | _ACEOF | |
cd9a469c | 15999 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b30fcfae | 16000 | :t |
16001 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
cd9a469c | 16002 | s|@configure_input@|$ac_sed_conf_input|;t t |
16003 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16004 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16005 | s&@srcdir@&$ac_srcdir&;t t | |
16006 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16007 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16008 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16009 | s&@builddir@&$ac_builddir&;t t | |
16010 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16011 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16012 | s&@INSTALL@&$ac_INSTALL&;t t | |
16013 | $ac_datarootdir_hack | |
16014 | " | |
16015 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
16016 | if $ac_cs_awk_getline; then | |
16017 | $AWK -f "$tmp/subs.awk" | |
16018 | else | |
16019 | $AWK -f "$tmp/subs.awk" | $SHELL | |
16020 | fi >$tmp/out \ | |
16021 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
16022 | ||
16023 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
16024 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
16025 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
16026 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
16027 | which seems to be undefined. Please make sure it is defined." >&5 | |
16028 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
16029 | which seems to be undefined. Please make sure it is defined." >&2;} | |
16030 | ||
16031 | rm -f "$tmp/stdin" | |
16032 | case $ac_file in | |
16033 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
16034 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
16035 | esac \ | |
16036 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
16037 | ;; | |
570af75a | 16038 | |
570af75a | 16039 | |
a8298541 | 16040 | |
cd9a469c | 16041 | esac |
16042 | ||
8bb79148 | 16043 | |
16044 | case $ac_file$ac_mode in | |
16045 | "Makefile":F) sed "$extrasub_build" Makefile | | |
16046 | sed "$extrasub_host" | | |
16047 | sed "$extrasub_target" > mf$$ | |
16048 | mv -f mf$$ Makefile ;; | |
16049 | ||
16050 | esac | |
cd9a469c | 16051 | done # for ac_tag |
16052 | ||
16053 | ||
16054 | as_fn_exit 0 | |
b30fcfae | 16055 | _ACEOF |
b30fcfae | 16056 | ac_clean_files=$ac_clean_files_save |
16057 | ||
cd9a469c | 16058 | test $ac_write_fail = 0 || |
16059 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
16060 | ||
b30fcfae | 16061 | |
16062 | # configure is writing to config.log, and then calls config.status. | |
16063 | # config.status does its own redirection, appending to config.log. | |
16064 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16065 | # by configure, so config.status won't be able to write to it; its | |
16066 | # output is simply discarded. So we exec the FD to /dev/null, | |
16067 | # effectively closing config.log, so it can be properly (re)opened and | |
16068 | # appended to by config.status. When coming back to configure, we | |
16069 | # need to make the FD available again. | |
16070 | if test "$no_create" != yes; then | |
16071 | ac_cs_success=: | |
16072 | ac_config_status_args= | |
16073 | test "$silent" = yes && | |
16074 | ac_config_status_args="$ac_config_status_args --quiet" | |
16075 | exec 5>/dev/null | |
16076 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16077 | exec 5>>config.log | |
16078 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16079 | # would make configure fail if this is the last instruction. | |
cd9a469c | 16080 | $ac_cs_success || as_fn_exit $? |
16081 | fi | |
16082 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
16083 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16084 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
b30fcfae | 16085 | fi |
a8298541 | 16086 |