]>
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 |
45fc5243 | 653 | islver |
cd9a469c | 654 | poststage1_ldflags |
d6dfe18a | 655 | poststage1_libs |
cd9a469c | 656 | stage1_ldflags |
13687c85 | 657 | stage1_libs |
e4128452 | 658 | extra_isl_gmp_configure_flags |
cd9a469c | 659 | extra_mpc_mpfr_configure_flags |
660 | extra_mpc_gmp_configure_flags | |
661 | extra_mpfr_configure_flags | |
662 | gmpinc | |
663 | gmplibs | |
664 | do_compare | |
665 | GNATMAKE | |
666 | GNATBIND | |
667 | ac_ct_CXX | |
668 | CXXFLAGS | |
669 | CXX | |
670 | OBJEXT | |
671 | EXEEXT | |
672 | ac_ct_CC | |
673 | CPPFLAGS | |
674 | LDFLAGS | |
675 | CFLAGS | |
676 | CC | |
d7e52ac9 | 677 | EXTRA_CONFIGARGS_LIBJAVA |
d3a7dd32 | 678 | extra_liboffloadmic_configure_flags |
cd9a469c | 679 | target_subdir |
680 | host_subdir | |
681 | build_subdir | |
682 | build_libsubdir | |
b181f265 | 683 | AWK |
684 | SED | |
cd9a469c | 685 | LN_S |
686 | LN | |
687 | INSTALL_DATA | |
688 | INSTALL_SCRIPT | |
689 | INSTALL_PROGRAM | |
690 | target_os | |
691 | target_vendor | |
692 | target_cpu | |
693 | target | |
694 | host_os | |
695 | host_vendor | |
696 | host_cpu | |
697 | host | |
698 | target_noncanonical | |
699 | host_noncanonical | |
700 | build_noncanonical | |
701 | build_os | |
702 | build_vendor | |
703 | build_cpu | |
704 | build | |
705 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
706 | target_alias | |
707 | host_alias | |
708 | build_alias | |
709 | LIBS | |
710 | ECHO_T | |
711 | ECHO_N | |
712 | ECHO_C | |
713 | DEFS | |
714 | mandir | |
715 | localedir | |
716 | libdir | |
717 | psdir | |
718 | pdfdir | |
719 | dvidir | |
720 | htmldir | |
721 | infodir | |
722 | docdir | |
723 | oldincludedir | |
724 | includedir | |
725 | localstatedir | |
726 | sharedstatedir | |
727 | sysconfdir | |
728 | datadir | |
729 | datarootdir | |
730 | libexecdir | |
731 | sbindir | |
732 | bindir | |
733 | program_transform_name | |
734 | prefix | |
735 | exec_prefix | |
736 | PACKAGE_URL | |
737 | PACKAGE_BUGREPORT | |
738 | PACKAGE_STRING | |
739 | PACKAGE_VERSION | |
740 | PACKAGE_TARNAME | |
741 | PACKAGE_NAME | |
742 | PATH_SEPARATOR | |
743 | SHELL' | |
744 | ac_subst_files='serialization_dependencies | |
745 | host_makefile_frag | |
746 | target_makefile_frag | |
747 | alphaieee_frag | |
748 | ospace_frag' | |
749 | ac_user_opts=' | |
750 | enable_option_checking | |
751 | with_build_libsubdir | |
6406d366 | 752 | with_system_zlib |
a3d93be3 | 753 | enable_as_accelerator_for |
754 | enable_offload_targets | |
cd9a469c | 755 | enable_gold |
1e369e5f | 756 | enable_ld |
afb6adb9 | 757 | enable_compressed_debug_sections |
d9d975ae | 758 | enable_libquadmath |
759 | enable_libquadmath_support | |
cd9a469c | 760 | enable_libada |
761 | enable_libssp | |
a3ba808f | 762 | enable_libstdcxx |
d3a7dd32 | 763 | enable_liboffloadmic |
d7e52ac9 | 764 | enable_static_libjava |
6c59dfa4 | 765 | enable_bootstrap |
cd9a469c | 766 | with_mpc |
767 | with_mpc_include | |
768 | with_mpc_lib | |
769 | with_mpfr_dir | |
770 | with_mpfr | |
771 | with_mpfr_include | |
772 | with_mpfr_lib | |
773 | with_gmp_dir | |
774 | with_gmp | |
775 | with_gmp_include | |
776 | with_gmp_lib | |
cd9a469c | 777 | with_stage1_libs |
13687c85 | 778 | with_stage1_ldflags |
cd9a469c | 779 | with_boot_libs |
d6dfe18a | 780 | with_boot_ldflags |
87e20041 | 781 | with_isl |
782 | with_isl_include | |
783 | with_isl_lib | |
784 | enable_isl_version_check | |
7bfefa9d | 785 | enable_lto |
1015a063 | 786 | enable_linker_plugin_configure_flags |
787 | enable_linker_plugin_flags | |
cd9a469c | 788 | enable_stage1_languages |
789 | enable_objc_gc | |
790 | with_build_sysroot | |
791 | with_debug_prefix_map | |
a2059f7a | 792 | with_build_config |
ee055341 | 793 | enable_vtable_verify |
cd9a469c | 794 | enable_serial_configure |
795 | with_build_time_tools | |
796 | enable_maintainer_mode | |
797 | enable_stage1_checking | |
798 | enable_werror | |
2bd17377 | 799 | enable_host_shared |
cd9a469c | 800 | ' |
801 | ac_precious_vars='build_alias | |
802 | host_alias | |
803 | target_alias | |
804 | CC | |
805 | CFLAGS | |
806 | LDFLAGS | |
807 | LIBS | |
808 | CPPFLAGS | |
809 | CXX | |
810 | CXXFLAGS | |
811 | CCC | |
372a3f1e | 812 | build_configargs |
813 | host_configargs | |
814 | target_configargs | |
cd9a469c | 815 | AR |
816 | AS | |
817 | DLLTOOL | |
818 | LD | |
819 | LIPO | |
820 | NM | |
821 | RANLIB | |
822 | STRIP | |
823 | WINDRES | |
824 | WINDMC | |
825 | OBJCOPY | |
826 | OBJDUMP | |
3f71364d | 827 | READELF |
cd9a469c | 828 | CC_FOR_TARGET |
829 | CXX_FOR_TARGET | |
830 | GCC_FOR_TARGET | |
831 | GCJ_FOR_TARGET | |
832 | GFORTRAN_FOR_TARGET | |
5ff5b630 | 833 | GOC_FOR_TARGET |
cd9a469c | 834 | AR_FOR_TARGET |
835 | AS_FOR_TARGET | |
836 | DLLTOOL_FOR_TARGET | |
837 | LD_FOR_TARGET | |
838 | LIPO_FOR_TARGET | |
839 | NM_FOR_TARGET | |
fc740d70 | 840 | OBJCOPY_FOR_TARGET |
cd9a469c | 841 | OBJDUMP_FOR_TARGET |
842 | RANLIB_FOR_TARGET | |
3f71364d | 843 | READELF_FOR_TARGET |
cd9a469c | 844 | STRIP_FOR_TARGET |
845 | WINDRES_FOR_TARGET | |
846 | WINDMC_FOR_TARGET' | |
847 | ||
71ab34df | 848 | |
849 | # Initialize some variables set by options. | |
b30fcfae | 850 | ac_init_help= |
851 | ac_init_version=false | |
cd9a469c | 852 | ac_unrecognized_opts= |
853 | ac_unrecognized_sep= | |
71ab34df | 854 | # The variables have the same names as the options, with |
855 | # dashes changed to underlines. | |
b30fcfae | 856 | cache_file=/dev/null |
71ab34df | 857 | exec_prefix=NONE |
71ab34df | 858 | no_create= |
71ab34df | 859 | no_recursion= |
860 | prefix=NONE | |
861 | program_prefix=NONE | |
862 | program_suffix=NONE | |
863 | program_transform_name=s,x,x, | |
864 | silent= | |
865 | site= | |
866 | srcdir= | |
71ab34df | 867 | verbose= |
868 | x_includes=NONE | |
869 | x_libraries=NONE | |
b30fcfae | 870 | |
871 | # Installation directory options. | |
872 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
873 | # and all the variables that are supposed to be based on exec_prefix | |
874 | # by default will actually change. | |
875 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
cd9a469c | 876 | # (The list follows the same order as the GNU Coding Standards.) |
71ab34df | 877 | bindir='${exec_prefix}/bin' |
878 | sbindir='${exec_prefix}/sbin' | |
879 | libexecdir='${exec_prefix}/libexec' | |
cd9a469c | 880 | datarootdir='${prefix}/share' |
881 | datadir='${datarootdir}' | |
71ab34df | 882 | sysconfdir='${prefix}/etc' |
883 | sharedstatedir='${prefix}/com' | |
884 | localstatedir='${prefix}/var' | |
71ab34df | 885 | includedir='${prefix}/include' |
886 | oldincludedir='/usr/include' | |
cd9a469c | 887 | docdir='${datarootdir}/doc/${PACKAGE}' |
888 | infodir='${datarootdir}/info' | |
889 | htmldir='${docdir}' | |
890 | dvidir='${docdir}' | |
891 | pdfdir='${docdir}' | |
892 | psdir='${docdir}' | |
893 | libdir='${exec_prefix}/lib' | |
894 | localedir='${datarootdir}/locale' | |
895 | mandir='${datarootdir}/man' | |
a8298541 | 896 | |
71ab34df | 897 | ac_prev= |
cd9a469c | 898 | ac_dashdash= |
71ab34df | 899 | for ac_option |
900 | do | |
71ab34df | 901 | # If the previous option needs an argument, assign it. |
902 | if test -n "$ac_prev"; then | |
cd9a469c | 903 | eval $ac_prev=\$ac_option |
71ab34df | 904 | ac_prev= |
905 | continue | |
906 | fi | |
a8298541 | 907 | |
cd9a469c | 908 | case $ac_option in |
909 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
910 | *) ac_optarg=yes ;; | |
911 | esac | |
71ab34df | 912 | |
913 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
914 | ||
cd9a469c | 915 | case $ac_dashdash$ac_option in |
916 | --) | |
917 | ac_dashdash=yes ;; | |
71ab34df | 918 | |
919 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
920 | ac_prev=bindir ;; | |
921 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b30fcfae | 922 | bindir=$ac_optarg ;; |
71ab34df | 923 | |
924 | -build | --build | --buil | --bui | --bu) | |
b30fcfae | 925 | ac_prev=build_alias ;; |
71ab34df | 926 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b30fcfae | 927 | build_alias=$ac_optarg ;; |
71ab34df | 928 | |
929 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
930 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
931 | ac_prev=cache_file ;; | |
932 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
933 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b30fcfae | 934 | cache_file=$ac_optarg ;; |
935 | ||
936 | --config-cache | -C) | |
937 | cache_file=config.cache ;; | |
71ab34df | 938 | |
cd9a469c | 939 | -datadir | --datadir | --datadi | --datad) |
71ab34df | 940 | ac_prev=datadir ;; |
cd9a469c | 941 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b30fcfae | 942 | datadir=$ac_optarg ;; |
71ab34df | 943 | |
cd9a469c | 944 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
945 | | --dataroo | --dataro | --datar) | |
946 | ac_prev=datarootdir ;; | |
947 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
948 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
949 | datarootdir=$ac_optarg ;; | |
950 | ||
71ab34df | 951 | -disable-* | --disable-*) |
cd9a469c | 952 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
71ab34df | 953 | # Reject names that are not valid shell variable names. |
cd9a469c | 954 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
955 | as_fn_error "invalid feature name: $ac_useropt" | |
956 | ac_useropt_orig=$ac_useropt | |
957 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
958 | case $ac_user_opts in | |
959 | *" | |
960 | "enable_$ac_useropt" | |
961 | "*) ;; | |
962 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
963 | ac_unrecognized_sep=', ';; | |
964 | esac | |
965 | eval enable_$ac_useropt=no ;; | |
966 | ||
967 | -docdir | --docdir | --docdi | --doc | --do) | |
968 | ac_prev=docdir ;; | |
969 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
970 | docdir=$ac_optarg ;; | |
971 | ||
972 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
973 | ac_prev=dvidir ;; | |
974 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
975 | dvidir=$ac_optarg ;; | |
71ab34df | 976 | |
977 | -enable-* | --enable-*) | |
cd9a469c | 978 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
71ab34df | 979 | # Reject names that are not valid shell variable names. |
cd9a469c | 980 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
981 | as_fn_error "invalid feature name: $ac_useropt" | |
982 | ac_useropt_orig=$ac_useropt | |
983 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
984 | case $ac_user_opts in | |
985 | *" | |
986 | "enable_$ac_useropt" | |
987 | "*) ;; | |
988 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
989 | ac_unrecognized_sep=', ';; | |
5084f823 | 990 | esac |
cd9a469c | 991 | eval enable_$ac_useropt=\$ac_optarg ;; |
71ab34df | 992 | |
993 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
994 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
995 | | --exec | --exe | --ex) | |
996 | ac_prev=exec_prefix ;; | |
997 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
998 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
999 | | --exec=* | --exe=* | --ex=*) | |
b30fcfae | 1000 | exec_prefix=$ac_optarg ;; |
71ab34df | 1001 | |
1002 | -gas | --gas | --ga | --g) | |
1003 | # Obsolete; use --with-gas. | |
1004 | with_gas=yes ;; | |
1005 | ||
b30fcfae | 1006 | -help | --help | --hel | --he | -h) |
1007 | ac_init_help=long ;; | |
1008 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1009 | ac_init_help=recursive ;; | |
1010 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1011 | ac_init_help=short ;; | |
71ab34df | 1012 | |
1013 | -host | --host | --hos | --ho) | |
b30fcfae | 1014 | ac_prev=host_alias ;; |
71ab34df | 1015 | -host=* | --host=* | --hos=* | --ho=*) |
b30fcfae | 1016 | host_alias=$ac_optarg ;; |
71ab34df | 1017 | |
cd9a469c | 1018 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1019 | ac_prev=htmldir ;; | |
1020 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1021 | | --ht=*) | |
1022 | htmldir=$ac_optarg ;; | |
1023 | ||
71ab34df | 1024 | -includedir | --includedir | --includedi | --included | --include \ |
1025 | | --includ | --inclu | --incl | --inc) | |
1026 | ac_prev=includedir ;; | |
1027 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1028 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b30fcfae | 1029 | includedir=$ac_optarg ;; |
71ab34df | 1030 | |
1031 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1032 | ac_prev=infodir ;; | |
1033 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b30fcfae | 1034 | infodir=$ac_optarg ;; |
71ab34df | 1035 | |
1036 | -libdir | --libdir | --libdi | --libd) | |
1037 | ac_prev=libdir ;; | |
1038 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b30fcfae | 1039 | libdir=$ac_optarg ;; |
71ab34df | 1040 | |
1041 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1042 | | --libexe | --libex | --libe) | |
1043 | ac_prev=libexecdir ;; | |
1044 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1045 | | --libexe=* | --libex=* | --libe=*) | |
b30fcfae | 1046 | libexecdir=$ac_optarg ;; |
71ab34df | 1047 | |
cd9a469c | 1048 | -localedir | --localedir | --localedi | --localed | --locale) |
1049 | ac_prev=localedir ;; | |
1050 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1051 | localedir=$ac_optarg ;; | |
1052 | ||
71ab34df | 1053 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
cd9a469c | 1054 | | --localstate | --localstat | --localsta | --localst | --locals) |
71ab34df | 1055 | ac_prev=localstatedir ;; |
1056 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
cd9a469c | 1057 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b30fcfae | 1058 | localstatedir=$ac_optarg ;; |
71ab34df | 1059 | |
1060 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1061 | ac_prev=mandir ;; | |
1062 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b30fcfae | 1063 | mandir=$ac_optarg ;; |
71ab34df | 1064 | |
1065 | -nfp | --nfp | --nf) | |
1066 | # Obsolete; use --without-fp. | |
1067 | with_fp=no ;; | |
1068 | ||
1069 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b30fcfae | 1070 | | --no-cr | --no-c | -n) |
71ab34df | 1071 | no_create=yes ;; |
1072 | ||
1073 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1074 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1075 | no_recursion=yes ;; | |
1076 | ||
1077 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1078 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1079 | | --oldin | --oldi | --old | --ol | --o) | |
1080 | ac_prev=oldincludedir ;; | |
1081 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1082 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1083 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b30fcfae | 1084 | oldincludedir=$ac_optarg ;; |
71ab34df | 1085 | |
1086 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1087 | ac_prev=prefix ;; | |
1088 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b30fcfae | 1089 | prefix=$ac_optarg ;; |
71ab34df | 1090 | |
1091 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1092 | | --program-pre | --program-pr | --program-p) | |
1093 | ac_prev=program_prefix ;; | |
1094 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1095 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b30fcfae | 1096 | program_prefix=$ac_optarg ;; |
71ab34df | 1097 | |
1098 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1099 | | --program-suf | --program-su | --program-s) | |
1100 | ac_prev=program_suffix ;; | |
1101 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1102 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b30fcfae | 1103 | program_suffix=$ac_optarg ;; |
71ab34df | 1104 | |
1105 | -program-transform-name | --program-transform-name \ | |
1106 | | --program-transform-nam | --program-transform-na \ | |
1107 | | --program-transform-n | --program-transform- \ | |
1108 | | --program-transform | --program-transfor \ | |
1109 | | --program-transfo | --program-transf \ | |
1110 | | --program-trans | --program-tran \ | |
1111 | | --progr-tra | --program-tr | --program-t) | |
1112 | ac_prev=program_transform_name ;; | |
1113 | -program-transform-name=* | --program-transform-name=* \ | |
1114 | | --program-transform-nam=* | --program-transform-na=* \ | |
1115 | | --program-transform-n=* | --program-transform-=* \ | |
1116 | | --program-transform=* | --program-transfor=* \ | |
1117 | | --program-transfo=* | --program-transf=* \ | |
1118 | | --program-trans=* | --program-tran=* \ | |
1119 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b30fcfae | 1120 | program_transform_name=$ac_optarg ;; |
71ab34df | 1121 | |
cd9a469c | 1122 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1123 | ac_prev=pdfdir ;; | |
1124 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1125 | pdfdir=$ac_optarg ;; | |
1126 | ||
1127 | -psdir | --psdir | --psdi | --psd | --ps) | |
1128 | ac_prev=psdir ;; | |
1129 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1130 | psdir=$ac_optarg ;; | |
1131 | ||
71ab34df | 1132 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1133 | | -silent | --silent | --silen | --sile | --sil) | |
1134 | silent=yes ;; | |
1135 | ||
1136 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1137 | ac_prev=sbindir ;; | |
1138 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1139 | | --sbi=* | --sb=*) | |
b30fcfae | 1140 | sbindir=$ac_optarg ;; |
71ab34df | 1141 | |
1142 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1143 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1144 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1145 | | --sha | --sh) | |
1146 | ac_prev=sharedstatedir ;; | |
1147 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1148 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1149 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1150 | | --sha=* | --sh=*) | |
b30fcfae | 1151 | sharedstatedir=$ac_optarg ;; |
71ab34df | 1152 | |
1153 | -site | --site | --sit) | |
1154 | ac_prev=site ;; | |
1155 | -site=* | --site=* | --sit=*) | |
b30fcfae | 1156 | site=$ac_optarg ;; |
71ab34df | 1157 | |
1158 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1159 | ac_prev=srcdir ;; | |
1160 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b30fcfae | 1161 | srcdir=$ac_optarg ;; |
71ab34df | 1162 | |
1163 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1164 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1165 | ac_prev=sysconfdir ;; | |
1166 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1167 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b30fcfae | 1168 | sysconfdir=$ac_optarg ;; |
71ab34df | 1169 | |
1170 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b30fcfae | 1171 | ac_prev=target_alias ;; |
71ab34df | 1172 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b30fcfae | 1173 | target_alias=$ac_optarg ;; |
71ab34df | 1174 | |
1175 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1176 | verbose=yes ;; | |
1177 | ||
b30fcfae | 1178 | -version | --version | --versio | --versi | --vers | -V) |
1179 | ac_init_version=: ;; | |
71ab34df | 1180 | |
1181 | -with-* | --with-*) | |
cd9a469c | 1182 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
71ab34df | 1183 | # Reject names that are not valid shell variable names. |
cd9a469c | 1184 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1185 | as_fn_error "invalid package name: $ac_useropt" | |
1186 | ac_useropt_orig=$ac_useropt | |
1187 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1188 | case $ac_user_opts in | |
1189 | *" | |
1190 | "with_$ac_useropt" | |
1191 | "*) ;; | |
1192 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1193 | ac_unrecognized_sep=', ';; | |
5084f823 | 1194 | esac |
cd9a469c | 1195 | eval with_$ac_useropt=\$ac_optarg ;; |
71ab34df | 1196 | |
1197 | -without-* | --without-*) | |
cd9a469c | 1198 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
71ab34df | 1199 | # Reject names that are not valid shell variable names. |
cd9a469c | 1200 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1201 | as_fn_error "invalid package name: $ac_useropt" | |
1202 | ac_useropt_orig=$ac_useropt | |
1203 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1204 | case $ac_user_opts in | |
1205 | *" | |
1206 | "with_$ac_useropt" | |
1207 | "*) ;; | |
1208 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1209 | ac_unrecognized_sep=', ';; | |
1210 | esac | |
1211 | eval with_$ac_useropt=no ;; | |
71ab34df | 1212 | |
1213 | --x) | |
1214 | # Obsolete; use --with-x. | |
1215 | with_x=yes ;; | |
1216 | ||
1217 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1218 | | --x-incl | --x-inc | --x-in | --x-i) | |
1219 | ac_prev=x_includes ;; | |
1220 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1221 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b30fcfae | 1222 | x_includes=$ac_optarg ;; |
71ab34df | 1223 | |
1224 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1225 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1226 | ac_prev=x_libraries ;; | |
1227 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1228 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b30fcfae | 1229 | x_libraries=$ac_optarg ;; |
71ab34df | 1230 | |
cd9a469c | 1231 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1232 | Try \`$0 --help' for more information." | |
71ab34df | 1233 | ;; |
1234 | ||
b30fcfae | 1235 | *=*) |
1236 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1237 | # Reject names that are not valid shell variable names. | |
cd9a469c | 1238 | case $ac_envvar in #( |
1239 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1240 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1241 | esac | |
1242 | eval $ac_envvar=\$ac_optarg | |
b30fcfae | 1243 | export $ac_envvar ;; |
1244 | ||
71ab34df | 1245 | *) |
b30fcfae | 1246 | # FIXME: should be removed in autoconf 3.0. |
cd9a469c | 1247 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b30fcfae | 1248 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
cd9a469c | 1249 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b30fcfae | 1250 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
71ab34df | 1251 | ;; |
1252 | ||
1253 | esac | |
1254 | done | |
1255 | ||
1256 | if test -n "$ac_prev"; then | |
b30fcfae | 1257 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
cd9a469c | 1258 | as_fn_error "missing argument to $ac_option" |
ae48753c | 1259 | fi |
ae48753c | 1260 | |
cd9a469c | 1261 | if test -n "$ac_unrecognized_opts"; then |
1262 | case $enable_option_checking in | |
1263 | no) ;; | |
1264 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1265 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
5084f823 | 1266 | esac |
cd9a469c | 1267 | fi |
5084f823 | 1268 | |
cd9a469c | 1269 | # Check all directory arguments for consistency. |
1270 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1271 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1272 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1273 | libdir localedir mandir | |
5084f823 | 1274 | do |
cd9a469c | 1275 | eval ac_val=\$$ac_var |
1276 | # Remove trailing slashes. | |
1277 | case $ac_val in | |
1278 | */ ) | |
1279 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1280 | eval $ac_var=\$ac_val;; | |
1281 | esac | |
1282 | # Be sure to have absolute directory names. | |
5084f823 | 1283 | case $ac_val in |
cd9a469c | 1284 | [\\/$]* | ?:[\\/]* ) continue;; |
1285 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
71ab34df | 1286 | esac |
cd9a469c | 1287 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
71ab34df | 1288 | done |
1289 | ||
b30fcfae | 1290 | # There might be people who depend on the old broken behavior: `$host' |
1291 | # used to hold the argument of --host etc. | |
1292 | # FIXME: To remove some day. | |
1293 | build=$build_alias | |
1294 | host=$host_alias | |
1295 | target=$target_alias | |
a83ffacf | 1296 | |
b30fcfae | 1297 | # FIXME: To remove some day. |
1298 | if test "x$host_alias" != x; then | |
1299 | if test "x$build_alias" = x; then | |
1300 | cross_compiling=maybe | |
cd9a469c | 1301 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
b30fcfae | 1302 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1303 | elif test "x$build_alias" != "x$host_alias"; then | |
1304 | cross_compiling=yes | |
1305 | fi | |
1306 | fi | |
1307 | ||
1308 | ac_tool_prefix= | |
1309 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1310 | ||
1311 | test "$silent" = yes && exec 6>/dev/null | |
71ab34df | 1312 | |
71ab34df | 1313 | |
cd9a469c | 1314 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1315 | ac_ls_di=`ls -di .` && | |
1316 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1317 | as_fn_error "working directory cannot be determined" | |
1318 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1319 | as_fn_error "pwd does not report name of working directory" | |
1320 | ||
1321 | ||
71ab34df | 1322 | # Find the source files, if location was not specified. |
1323 | if test -z "$srcdir"; then | |
1324 | ac_srcdir_defaulted=yes | |
cd9a469c | 1325 | # Try the directory containing this script, then the parent directory. |
1326 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1327 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1328 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1329 | X"$as_myself" : 'X\(//\)$' \| \ | |
1330 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1331 | $as_echo X"$as_myself" | | |
1332 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1333 | s//\1/ | |
1334 | q | |
1335 | } | |
1336 | /^X\(\/\/\)[^/].*/{ | |
1337 | s//\1/ | |
1338 | q | |
1339 | } | |
1340 | /^X\(\/\/\)$/{ | |
1341 | s//\1/ | |
1342 | q | |
1343 | } | |
1344 | /^X\(\/\).*/{ | |
1345 | s//\1/ | |
1346 | q | |
1347 | } | |
1348 | s/.*/./; q'` | |
71ab34df | 1349 | srcdir=$ac_confdir |
cd9a469c | 1350 | if test ! -r "$srcdir/$ac_unique_file"; then |
71ab34df | 1351 | srcdir=.. |
1352 | fi | |
1353 | else | |
1354 | ac_srcdir_defaulted=no | |
1355 | fi | |
cd9a469c | 1356 | if test ! -r "$srcdir/$ac_unique_file"; then |
1357 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1358 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1359 | fi | |
1360 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1361 | ac_abs_confdir=`( | |
1362 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1363 | pwd)` | |
1364 | # When building in place, set srcdir=. | |
1365 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1366 | srcdir=. | |
1367 | fi | |
1368 | # Remove unnecessary trailing slashes from srcdir. | |
1369 | # Double slashes in file names in object file debugging info | |
1370 | # mess up M-x gdb in Emacs. | |
1371 | case $srcdir in | |
1372 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1373 | esac | |
13d2f2b2 | 1374 | case $srcdir in |
1375 | *" "*) | |
1376 | as_fn_error "path to source, $srcdir, contains spaces" | |
1377 | ;; | |
1378 | esac | |
d2d2630b | 1379 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1380 | ||
cd9a469c | 1381 | for ac_var in $ac_precious_vars; do |
1382 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1383 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1384 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1385 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1386 | done | |
b30fcfae | 1387 | |
1388 | # | |
1389 | # Report the --help message. | |
1390 | # | |
1391 | if test "$ac_init_help" = "long"; then | |
1392 | # Omit some internal or obsolete options to make the list less imposing. | |
1393 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1394 | cat <<_ACEOF | |
1395 | \`configure' configures this package to adapt to many kinds of systems. | |
1396 | ||
1397 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1398 | ||
1399 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1400 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1401 | ||
1402 | Defaults for the options are specified in brackets. | |
1403 | ||
1404 | Configuration: | |
1405 | -h, --help display this help and exit | |
1406 | --help=short display options specific to this package | |
1407 | --help=recursive display the short help of all the included packages | |
1408 | -V, --version display version information and exit | |
1409 | -q, --quiet, --silent do not print \`checking...' messages | |
1410 | --cache-file=FILE cache test results in FILE [disabled] | |
1411 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1412 | -n, --no-create do not create output files | |
1413 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1414 | ||
b30fcfae | 1415 | Installation directories: |
1416 | --prefix=PREFIX install architecture-independent files in PREFIX | |
cd9a469c | 1417 | [$ac_default_prefix] |
b30fcfae | 1418 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
cd9a469c | 1419 | [PREFIX] |
b30fcfae | 1420 | |
1421 | By default, \`make install' will install all the files in | |
1422 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1423 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1424 | for instance \`--prefix=\$HOME'. | |
1425 | ||
1426 | For better control, use the options below. | |
1427 | ||
1428 | Fine tuning of the installation directories: | |
cd9a469c | 1429 | --bindir=DIR user executables [EPREFIX/bin] |
1430 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1431 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1432 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1433 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1434 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1435 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1436 | --includedir=DIR C header files [PREFIX/include] | |
1437 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1438 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1439 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1440 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1441 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1442 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1443 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1444 | --htmldir=DIR html documentation [DOCDIR] | |
1445 | --dvidir=DIR dvi documentation [DOCDIR] | |
1446 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1447 | --psdir=DIR ps documentation [DOCDIR] | |
b30fcfae | 1448 | _ACEOF |
1449 | ||
1450 | cat <<\_ACEOF | |
1451 | ||
1452 | Program names: | |
1453 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1454 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1455 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1456 | ||
1457 | System types: | |
1458 | --build=BUILD configure for building on BUILD [guessed] | |
1459 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1460 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1461 | _ACEOF | |
1462 | fi | |
1463 | ||
1464 | if test -n "$ac_init_help"; then | |
1465 | ||
1466 | cat <<\_ACEOF | |
1467 | ||
1468 | Optional Features: | |
cd9a469c | 1469 | --disable-option-checking ignore unrecognized --enable/--with options |
b30fcfae | 1470 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1471 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
a3d93be3 | 1472 | --enable-as-accelerator-for=ARG |
1473 | build as offload target compiler. Specify offload | |
1474 | host triple by ARG | |
1475 | --enable-offload-targets=LIST | |
1476 | enable offloading to devices from comma-separated | |
1477 | LIST of TARGET[=DIR]. Use optional path to find | |
1478 | offload target compiler during the build | |
1e369e5f | 1479 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
8747a938 | 1480 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
325f661b | 1481 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
afb6adb9 | 1482 | Enable compressed debug sections for gas, gold or ld |
1483 | by default | |
d9d975ae | 1484 | --disable-libquadmath do not build libquadmath directory |
1485 | --disable-libquadmath-support | |
1486 | disable libquadmath support for Fortran | |
09c2d953 | 1487 | --enable-libada build libada directory |
1488 | --enable-libssp build libssp directory | |
a3ba808f | 1489 | --disable-libstdcxx do not build libstdc++-v3 directory |
d3a7dd32 | 1490 | --enable-liboffloadmic=ARG |
1491 | build liboffloadmic [ARG={no,host,target}] | |
d7e52ac9 | 1492 | --enable-static-libjava[=ARG] |
1493 | build static libjava [default=no] | |
6c59dfa4 | 1494 | --enable-bootstrap enable bootstrapping [yes if native build] |
87e20041 | 1495 | --disable-isl-version-check |
7458b15a | 1496 | disable check for isl version |
7bfefa9d | 1497 | --enable-lto enable link time optimization support |
1015a063 | 1498 | --enable-linker-plugin-configure-flags=FLAGS |
1499 | additional flags for configuring linker plugins | |
1500 | [none] | |
1501 | --enable-linker-plugin-flags=FLAGS | |
1502 | additional flags for configuring and building linker | |
1503 | plugins [none] | |
8747a938 | 1504 | --enable-stage1-languages[=all] |
1505 | choose additional languages to build during stage1. | |
1506 | Mostly useful for compiler development | |
1507 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1508 | Objective-C runtime | |
d5f3a33f | 1509 | --enable-vtable-verify Enable vtable verification feature |
09c2d953 | 1510 | --enable-serial-[{host,target,build}-]configure |
8747a938 | 1511 | force sequential configuration of sub-packages for |
1512 | the host, target or build machine, or all | |
1513 | sub-packages | |
1514 | --enable-maintainer-mode | |
1515 | enable make rules and dependencies not useful (and | |
1516 | sometimes confusing) to the casual installer | |
1517 | --enable-stage1-checking[=all] | |
1518 | choose additional checking for stage1 of the | |
1519 | compiler | |
b30fcfae | 1520 | --enable-werror enable -Werror in bootstrap stage2 and later |
2bd17377 | 1521 | --enable-host-shared build host code as shared libraries |
b30fcfae | 1522 | |
1523 | Optional Packages: | |
1524 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1525 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1526 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
6406d366 | 1527 | --with-system-zlib use installed libz |
8747a938 | 1528 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1529 | Equivalent to --with-mpc-include=PATH/include plus | |
1530 | --with-mpc-lib=PATH/lib | |
1531 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1532 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
09c2d953 | 1533 | --with-mpfr-dir=PATH this option has been REMOVED |
1534 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
8747a938 | 1535 | Equivalent to --with-mpfr-include=PATH/include plus |
1536 | --with-mpfr-lib=PATH/lib | |
b30fcfae | 1537 | --with-mpfr-include=PATH |
09c2d953 | 1538 | specify directory for installed MPFR include files |
1539 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1540 | --with-gmp-dir=PATH this option has been REMOVED | |
8747a938 | 1541 | --with-gmp=PATH specify prefix directory for the installed GMP |
1542 | package. Equivalent to | |
1543 | --with-gmp-include=PATH/include plus | |
1544 | --with-gmp-lib=PATH/lib | |
09c2d953 | 1545 | --with-gmp-include=PATH specify directory for installed GMP include files |
1546 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
13687c85 | 1547 | --with-stage1-libs=LIBS libraries for stage1 |
8747a938 | 1548 | --with-stage1-ldflags=FLAGS |
1549 | linker flags for stage1 | |
8747a938 | 1550 | --with-boot-libs=LIBS libraries for stage2 and later |
1551 | --with-boot-ldflags=FLAGS | |
1552 | linker flags for stage2 and later | |
71130ef8 | 1553 | --with-isl=PATH Specify prefix directory for the installed isl |
8747a938 | 1554 | package. Equivalent to |
87e20041 | 1555 | --with-isl-include=PATH/include plus |
1556 | --with-isl-lib=PATH/lib | |
7458b15a | 1557 | --with-isl-include=PATH Specify directory for installed isl include files |
1558 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
09c2d953 | 1559 | --with-build-sysroot=SYSROOT |
b30fcfae | 1560 | use sysroot as the system root during the build |
5f1f2de5 | 1561 | --with-debug-prefix-map='A=B C=D ...' |
8747a938 | 1562 | map A to B, C to D ... in debug information |
1563 | --with-build-config='NAME NAME2...' | |
1564 | use config/NAME.mk build configuration | |
09c2d953 | 1565 | --with-build-time-tools=PATH |
b30fcfae | 1566 | use given path to find target tools during the build |
b30fcfae | 1567 | |
1568 | Some influential environment variables: | |
1569 | CC C compiler command | |
1570 | CFLAGS C compiler flags | |
1571 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1572 | nonstandard directory <lib dir> | |
cd9a469c | 1573 | LIBS libraries to pass to the linker, e.g. -l<library> |
1574 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1575 | you have headers in a nonstandard directory <include dir> | |
eae5b2bc | 1576 | CXX C++ compiler command |
1577 | CXXFLAGS C++ compiler flags | |
372a3f1e | 1578 | build_configargs |
1579 | additional configure arguments for build directories | |
1580 | host_configargs | |
1581 | additional configure arguments for host directories | |
1582 | target_configargs | |
1583 | additional configure arguments for target directories | |
95a05732 | 1584 | AR AR for the host |
1585 | AS AS for the host | |
1586 | DLLTOOL DLLTOOL for the host | |
1587 | LD LD for the host | |
1588 | LIPO LIPO for the host | |
1589 | NM NM for the host | |
1590 | RANLIB RANLIB for the host | |
1591 | STRIP STRIP for the host | |
1592 | WINDRES WINDRES for the host | |
75d6a0a9 | 1593 | WINDMC WINDMC for the host |
95a05732 | 1594 | OBJCOPY OBJCOPY for the host |
1595 | OBJDUMP OBJDUMP for the host | |
3f71364d | 1596 | READELF READELF for the host |
95a05732 | 1597 | CC_FOR_TARGET |
1598 | CC for the target | |
1599 | CXX_FOR_TARGET | |
1600 | CXX for the target | |
1601 | GCC_FOR_TARGET | |
1602 | GCC for the target | |
1603 | GCJ_FOR_TARGET | |
1604 | GCJ for the target | |
1605 | GFORTRAN_FOR_TARGET | |
1606 | GFORTRAN for the target | |
5ff5b630 | 1607 | GOC_FOR_TARGET |
1608 | GOC for the target | |
95a05732 | 1609 | AR_FOR_TARGET |
1610 | AR for the target | |
1611 | AS_FOR_TARGET | |
1612 | AS for the target | |
1613 | DLLTOOL_FOR_TARGET | |
1614 | DLLTOOL for the target | |
1615 | LD_FOR_TARGET | |
1616 | LD for the target | |
1617 | LIPO_FOR_TARGET | |
1618 | LIPO for the target | |
1619 | NM_FOR_TARGET | |
1620 | NM for the target | |
fc740d70 | 1621 | OBJCOPY_FOR_TARGET |
1622 | OBJCOPY for the target | |
95a05732 | 1623 | OBJDUMP_FOR_TARGET |
1624 | OBJDUMP for the target | |
1625 | RANLIB_FOR_TARGET | |
1626 | RANLIB for the target | |
3f71364d | 1627 | READELF_FOR_TARGET |
1628 | READELF for the target | |
95a05732 | 1629 | STRIP_FOR_TARGET |
1630 | STRIP for the target | |
1631 | WINDRES_FOR_TARGET | |
1632 | WINDRES for the target | |
75d6a0a9 | 1633 | WINDMC_FOR_TARGET |
1634 | WINDMC for the target | |
b30fcfae | 1635 | |
1636 | Use these variables to override the choices made by `configure' or to help | |
1637 | it to find libraries and programs with nonstandard names/locations. | |
1638 | ||
cd9a469c | 1639 | Report bugs to the package provider. |
b30fcfae | 1640 | _ACEOF |
cd9a469c | 1641 | ac_status=$? |
b30fcfae | 1642 | fi |
1643 | ||
1644 | if test "$ac_init_help" = "recursive"; then | |
1645 | # If there are subdirs, report their specific --help. | |
b30fcfae | 1646 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
cd9a469c | 1647 | test -d "$ac_dir" || |
1648 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1649 | continue | |
b30fcfae | 1650 | ac_builddir=. |
1651 | ||
cd9a469c | 1652 | case "$ac_dir" in |
1653 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1654 | *) | |
1655 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1656 | # A ".." for each directory in $ac_dir_suffix. | |
1657 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1658 | case $ac_top_builddir_sub in | |
1659 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1660 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1661 | esac ;; | |
1662 | esac | |
1663 | ac_abs_top_builddir=$ac_pwd | |
1664 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1665 | # for backward compatibility: | |
1666 | ac_top_builddir=$ac_top_build_prefix | |
b30fcfae | 1667 | |
1668 | case $srcdir in | |
cd9a469c | 1669 | .) # We are building in place. |
b30fcfae | 1670 | ac_srcdir=. |
cd9a469c | 1671 | ac_top_srcdir=$ac_top_builddir_sub |
1672 | ac_abs_top_srcdir=$ac_pwd ;; | |
1673 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b30fcfae | 1674 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 1675 | ac_top_srcdir=$srcdir |
1676 | ac_abs_top_srcdir=$srcdir ;; | |
1677 | *) # Relative name. | |
1678 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1679 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1680 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
5084f823 | 1681 | esac |
cd9a469c | 1682 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1683 | ||
1684 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1685 | # Check for guested configure. | |
1686 | if test -f "$ac_srcdir/configure.gnu"; then | |
1687 | echo && | |
1688 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1689 | elif test -f "$ac_srcdir/configure"; then | |
1690 | echo && | |
1691 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b30fcfae | 1692 | else |
cd9a469c | 1693 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1694 | fi || ac_status=$? | |
1695 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b30fcfae | 1696 | done |
1697 | fi | |
1698 | ||
cd9a469c | 1699 | test -n "$ac_init_help" && exit $ac_status |
b30fcfae | 1700 | if $ac_init_version; then |
1701 | cat <<\_ACEOF | |
cd9a469c | 1702 | configure |
1703 | generated by GNU Autoconf 2.64 | |
b30fcfae | 1704 | |
cd9a469c | 1705 | Copyright (C) 2009 Free Software Foundation, Inc. |
b30fcfae | 1706 | This configure script is free software; the Free Software Foundation |
1707 | gives unlimited permission to copy, distribute and modify it. | |
1708 | _ACEOF | |
cd9a469c | 1709 | exit |
a83ffacf | 1710 | fi |
cd9a469c | 1711 | |
1712 | ## ------------------------ ## | |
1713 | ## Autoconf initialization. ## | |
1714 | ## ------------------------ ## | |
1715 | ||
1716 | # ac_fn_c_try_compile LINENO | |
1717 | # -------------------------- | |
1718 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1719 | ac_fn_c_try_compile () | |
1720 | { | |
1721 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1722 | rm -f conftest.$ac_objext | |
1723 | if { { ac_try="$ac_compile" | |
1724 | case "(($ac_try" in | |
1725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1726 | *) ac_try_echo=$ac_try;; | |
1727 | esac | |
1728 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1729 | $as_echo "$ac_try_echo"; } >&5 | |
1730 | (eval "$ac_compile") 2>conftest.err | |
1731 | ac_status=$? | |
1732 | if test -s conftest.err; then | |
1733 | grep -v '^ *+' conftest.err >conftest.er1 | |
1734 | cat conftest.er1 >&5 | |
1735 | mv -f conftest.er1 conftest.err | |
1736 | fi | |
1737 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1738 | test $ac_status = 0; } && { | |
1739 | test -z "$ac_c_werror_flag" || | |
1740 | test ! -s conftest.err | |
1741 | } && test -s conftest.$ac_objext; then : | |
1742 | ac_retval=0 | |
1743 | else | |
1744 | $as_echo "$as_me: failed program was:" >&5 | |
1745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1746 | ||
1747 | ac_retval=1 | |
1748 | fi | |
1749 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1750 | return $ac_retval | |
1751 | ||
1752 | } # ac_fn_c_try_compile | |
1753 | ||
1754 | # ac_fn_cxx_try_compile LINENO | |
1755 | # ---------------------------- | |
1756 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1757 | ac_fn_cxx_try_compile () | |
1758 | { | |
1759 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1760 | rm -f conftest.$ac_objext | |
1761 | if { { ac_try="$ac_compile" | |
1762 | case "(($ac_try" in | |
1763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1764 | *) ac_try_echo=$ac_try;; | |
1765 | esac | |
1766 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1767 | $as_echo "$ac_try_echo"; } >&5 | |
1768 | (eval "$ac_compile") 2>conftest.err | |
1769 | ac_status=$? | |
1770 | if test -s conftest.err; then | |
1771 | grep -v '^ *+' conftest.err >conftest.er1 | |
1772 | cat conftest.er1 >&5 | |
1773 | mv -f conftest.er1 conftest.err | |
1774 | fi | |
1775 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1776 | test $ac_status = 0; } && { | |
1777 | test -z "$ac_cxx_werror_flag" || | |
1778 | test ! -s conftest.err | |
1779 | } && test -s conftest.$ac_objext; then : | |
1780 | ac_retval=0 | |
1781 | else | |
1782 | $as_echo "$as_me: failed program was:" >&5 | |
1783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1784 | ||
1785 | ac_retval=1 | |
1786 | fi | |
1787 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1788 | return $ac_retval | |
1789 | ||
1790 | } # ac_fn_cxx_try_compile | |
1791 | ||
13687c85 | 1792 | # ac_fn_cxx_try_link LINENO |
1793 | # ------------------------- | |
1794 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1795 | ac_fn_cxx_try_link () | |
1796 | { | |
1797 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1798 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1799 | if { { ac_try="$ac_link" | |
1800 | case "(($ac_try" in | |
1801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1802 | *) ac_try_echo=$ac_try;; | |
1803 | esac | |
1804 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1805 | $as_echo "$ac_try_echo"; } >&5 | |
1806 | (eval "$ac_link") 2>conftest.err | |
1807 | ac_status=$? | |
1808 | if test -s conftest.err; then | |
1809 | grep -v '^ *+' conftest.err >conftest.er1 | |
1810 | cat conftest.er1 >&5 | |
1811 | mv -f conftest.er1 conftest.err | |
1812 | fi | |
1813 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1814 | test $ac_status = 0; } && { | |
1815 | test -z "$ac_cxx_werror_flag" || | |
1816 | test ! -s conftest.err | |
1817 | } && test -s conftest$ac_exeext && { | |
1818 | test "$cross_compiling" = yes || | |
1819 | $as_test_x conftest$ac_exeext | |
1820 | }; then : | |
1821 | ac_retval=0 | |
1822 | else | |
1823 | $as_echo "$as_me: failed program was:" >&5 | |
1824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1825 | ||
1826 | ac_retval=1 | |
1827 | fi | |
1828 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1829 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1830 | # interfere with the next link command; also delete a directory that is | |
1831 | # left behind by Apple's compiler. We do this before executing the actions. | |
1832 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1833 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1834 | return $ac_retval | |
1835 | ||
1836 | } # ac_fn_cxx_try_link | |
1837 | ||
cd9a469c | 1838 | # ac_fn_c_try_link LINENO |
1839 | # ----------------------- | |
1840 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1841 | ac_fn_c_try_link () | |
1842 | { | |
1843 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1845 | if { { ac_try="$ac_link" | |
1846 | case "(($ac_try" in | |
1847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1848 | *) ac_try_echo=$ac_try;; | |
1849 | esac | |
1850 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1851 | $as_echo "$ac_try_echo"; } >&5 | |
1852 | (eval "$ac_link") 2>conftest.err | |
1853 | ac_status=$? | |
1854 | if test -s conftest.err; then | |
1855 | grep -v '^ *+' conftest.err >conftest.er1 | |
1856 | cat conftest.er1 >&5 | |
1857 | mv -f conftest.er1 conftest.err | |
1858 | fi | |
1859 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1860 | test $ac_status = 0; } && { | |
1861 | test -z "$ac_c_werror_flag" || | |
1862 | test ! -s conftest.err | |
1863 | } && test -s conftest$ac_exeext && { | |
1864 | test "$cross_compiling" = yes || | |
1865 | $as_test_x conftest$ac_exeext | |
1866 | }; then : | |
1867 | ac_retval=0 | |
1868 | else | |
1869 | $as_echo "$as_me: failed program was:" >&5 | |
1870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1871 | ||
1872 | ac_retval=1 | |
1873 | fi | |
1874 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1875 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1876 | # interfere with the next link command; also delete a directory that is | |
1877 | # left behind by Apple's compiler. We do this before executing the actions. | |
1878 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1879 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1880 | return $ac_retval | |
1881 | ||
1882 | } # ac_fn_c_try_link | |
1883 | cat >config.log <<_ACEOF | |
b30fcfae | 1884 | This file contains any messages produced by compilers while |
1885 | running configure, to aid debugging if configure makes a mistake. | |
1886 | ||
1887 | It was created by $as_me, which was | |
cd9a469c | 1888 | generated by GNU Autoconf 2.64. Invocation command line was |
b30fcfae | 1889 | |
1890 | $ $0 $@ | |
1891 | ||
1892 | _ACEOF | |
cd9a469c | 1893 | exec 5>>config.log |
b30fcfae | 1894 | { |
1895 | cat <<_ASUNAME | |
1896 | ## --------- ## | |
1897 | ## Platform. ## | |
1898 | ## --------- ## | |
1899 | ||
1900 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1901 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1902 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1903 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1904 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1905 | ||
1906 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1907 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1908 | ||
1909 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1910 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1911 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
cd9a469c | 1912 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
b30fcfae | 1913 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1914 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1915 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1916 | ||
1917 | _ASUNAME | |
1918 | ||
1919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1920 | for as_dir in $PATH | |
1921 | do | |
1922 | IFS=$as_save_IFS | |
1923 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 1924 | $as_echo "PATH: $as_dir" |
1925 | done | |
1926 | IFS=$as_save_IFS | |
b30fcfae | 1927 | |
1928 | } >&5 | |
1929 | ||
1930 | cat >&5 <<_ACEOF | |
1931 | ||
1932 | ||
1933 | ## ----------- ## | |
1934 | ## Core tests. ## | |
1935 | ## ----------- ## | |
1936 | ||
1937 | _ACEOF | |
1938 | ||
1939 | ||
1940 | # Keep a trace of the command line. | |
1941 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1942 | # Strip out --silent because we don't want to record it for future runs. | |
1943 | # Also quote any args containing shell meta-characters. | |
1944 | # Make two passes to allow for proper duplicate-argument suppression. | |
1945 | ac_configure_args= | |
1946 | ac_configure_args0= | |
1947 | ac_configure_args1= | |
b30fcfae | 1948 | ac_must_keep_next=false |
1949 | for ac_pass in 1 2 | |
1950 | do | |
1951 | for ac_arg | |
1952 | do | |
1953 | case $ac_arg in | |
1954 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1955 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1956 | | -silent | --silent | --silen | --sile | --sil) | |
1957 | continue ;; | |
cd9a469c | 1958 | *\'*) |
1959 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b30fcfae | 1960 | esac |
1961 | case $ac_pass in | |
cd9a469c | 1962 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b30fcfae | 1963 | 2) |
cd9a469c | 1964 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b30fcfae | 1965 | if test $ac_must_keep_next = true; then |
1966 | ac_must_keep_next=false # Got value, back to normal. | |
1967 | else | |
1968 | case $ac_arg in | |
1969 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1970 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1971 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1972 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1973 | case "$ac_configure_args0 " in | |
1974 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1975 | esac | |
1976 | ;; | |
1977 | -* ) ac_must_keep_next=true ;; | |
1978 | esac | |
1979 | fi | |
cd9a469c | 1980 | as_fn_append ac_configure_args " '$ac_arg'" |
b30fcfae | 1981 | ;; |
1982 | esac | |
1983 | done | |
1984 | done | |
cd9a469c | 1985 | { ac_configure_args0=; unset ac_configure_args0;} |
1986 | { ac_configure_args1=; unset ac_configure_args1;} | |
b30fcfae | 1987 | |
1988 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1989 | # config.log. We remove comments because anyway the quotes in there | |
1990 | # would cause problems or look ugly. | |
cd9a469c | 1991 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1992 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b30fcfae | 1993 | trap 'exit_status=$? |
1994 | # Save into config.log some information that might help in debugging. | |
1995 | { | |
1996 | echo | |
1997 | ||
1998 | cat <<\_ASBOX | |
1999 | ## ---------------- ## | |
2000 | ## Cache variables. ## | |
2001 | ## ---------------- ## | |
2002 | _ASBOX | |
2003 | echo | |
2004 | # The following way of writing the cache mishandles newlines in values, | |
cd9a469c | 2005 | ( |
2006 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2007 | eval ac_val=\$$ac_var | |
2008 | case $ac_val in #( | |
2009 | *${as_nl}*) | |
2010 | case $ac_var in #( | |
2011 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2012 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2013 | esac | |
2014 | case $ac_var in #( | |
2015 | _ | IFS | as_nl) ;; #( | |
2016 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2017 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2018 | esac ;; | |
2019 | esac | |
2020 | done | |
b30fcfae | 2021 | (set) 2>&1 | |
cd9a469c | 2022 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2023 | *${as_nl}ac_space=\ *) | |
b30fcfae | 2024 | sed -n \ |
cd9a469c | 2025 | "s/'\''/'\''\\\\'\'''\''/g; |
2026 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2027 | ;; #( | |
b30fcfae | 2028 | *) |
cd9a469c | 2029 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b30fcfae | 2030 | ;; |
cd9a469c | 2031 | esac | |
2032 | sort | |
2033 | ) | |
b30fcfae | 2034 | echo |
2035 | ||
2036 | cat <<\_ASBOX | |
2037 | ## ----------------- ## | |
2038 | ## Output variables. ## | |
2039 | ## ----------------- ## | |
2040 | _ASBOX | |
2041 | echo | |
2042 | for ac_var in $ac_subst_vars | |
2043 | do | |
cd9a469c | 2044 | eval ac_val=\$$ac_var |
2045 | case $ac_val in | |
2046 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2047 | esac | |
2048 | $as_echo "$ac_var='\''$ac_val'\''" | |
b30fcfae | 2049 | done | sort |
2050 | echo | |
2051 | ||
2052 | if test -n "$ac_subst_files"; then | |
2053 | cat <<\_ASBOX | |
cd9a469c | 2054 | ## ------------------- ## |
2055 | ## File substitutions. ## | |
2056 | ## ------------------- ## | |
b30fcfae | 2057 | _ASBOX |
2058 | echo | |
2059 | for ac_var in $ac_subst_files | |
2060 | do | |
cd9a469c | 2061 | eval ac_val=\$$ac_var |
2062 | case $ac_val in | |
2063 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2064 | esac | |
2065 | $as_echo "$ac_var='\''$ac_val'\''" | |
b30fcfae | 2066 | done | sort |
2067 | echo | |
2068 | fi | |
2069 | ||
2070 | if test -s confdefs.h; then | |
2071 | cat <<\_ASBOX | |
2072 | ## ----------- ## | |
2073 | ## confdefs.h. ## | |
2074 | ## ----------- ## | |
2075 | _ASBOX | |
2076 | echo | |
cd9a469c | 2077 | cat confdefs.h |
b30fcfae | 2078 | echo |
2079 | fi | |
2080 | test "$ac_signal" != 0 && | |
cd9a469c | 2081 | $as_echo "$as_me: caught signal $ac_signal" |
2082 | $as_echo "$as_me: exit $exit_status" | |
b30fcfae | 2083 | } >&5 |
cd9a469c | 2084 | rm -f core *.core core.conftest.* && |
2085 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b30fcfae | 2086 | exit $exit_status |
cd9a469c | 2087 | ' 0 |
b30fcfae | 2088 | for ac_signal in 1 2 13 15; do |
cd9a469c | 2089 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b30fcfae | 2090 | done |
2091 | ac_signal=0 | |
2092 | ||
2093 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
cd9a469c | 2094 | rm -f -r conftest* confdefs.h |
2095 | ||
2096 | $as_echo "/* confdefs.h */" > confdefs.h | |
b30fcfae | 2097 | |
2098 | # Predefined preprocessor variables. | |
2099 | ||
2100 | cat >>confdefs.h <<_ACEOF | |
2101 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2102 | _ACEOF | |
2103 | ||
b30fcfae | 2104 | cat >>confdefs.h <<_ACEOF |
2105 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2106 | _ACEOF | |
2107 | ||
b30fcfae | 2108 | cat >>confdefs.h <<_ACEOF |
2109 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2110 | _ACEOF | |
a83ffacf | 2111 | |
b30fcfae | 2112 | cat >>confdefs.h <<_ACEOF |
2113 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2114 | _ACEOF | |
2115 | ||
b30fcfae | 2116 | cat >>confdefs.h <<_ACEOF |
2117 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2118 | _ACEOF | |
2119 | ||
cd9a469c | 2120 | cat >>confdefs.h <<_ACEOF |
2121 | #define PACKAGE_URL "$PACKAGE_URL" | |
2122 | _ACEOF | |
2123 | ||
b30fcfae | 2124 | |
2125 | # Let the site file select an alternate cache file if it wants to. | |
cd9a469c | 2126 | # Prefer an explicitly selected file to automatically selected ones. |
2127 | ac_site_file1=NONE | |
2128 | ac_site_file2=NONE | |
2129 | if test -n "$CONFIG_SITE"; then | |
2130 | ac_site_file1=$CONFIG_SITE | |
2131 | elif test "x$prefix" != xNONE; then | |
2132 | ac_site_file1=$prefix/share/config.site | |
2133 | ac_site_file2=$prefix/etc/config.site | |
2134 | else | |
2135 | ac_site_file1=$ac_default_prefix/share/config.site | |
2136 | ac_site_file2=$ac_default_prefix/etc/config.site | |
71ab34df | 2137 | fi |
cd9a469c | 2138 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2139 | do | |
2140 | test "x$ac_site_file" = xNONE && continue | |
71ab34df | 2141 | if test -r "$ac_site_file"; then |
cd9a469c | 2142 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2143 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b30fcfae | 2144 | sed 's/^/| /' "$ac_site_file" >&5 |
71ab34df | 2145 | . "$ac_site_file" |
2146 | fi | |
2147 | done | |
2148 | ||
2149 | if test -r "$cache_file"; then | |
b30fcfae | 2150 | # Some versions of bash will fail to source /dev/null (special |
2151 | # files actually), so we avoid doing that. | |
2152 | if test -f "$cache_file"; then | |
cd9a469c | 2153 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2154 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b30fcfae | 2155 | case $cache_file in |
cd9a469c | 2156 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2157 | *) . "./$cache_file";; | |
b30fcfae | 2158 | esac |
2159 | fi | |
71ab34df | 2160 | else |
cd9a469c | 2161 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2162 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b30fcfae | 2163 | >$cache_file |
2164 | fi | |
2165 | ||
2166 | # Check that the precious variables saved in the cache have kept the same | |
2167 | # value. | |
2168 | ac_cache_corrupted=false | |
cd9a469c | 2169 | for ac_var in $ac_precious_vars; do |
b30fcfae | 2170 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2171 | eval ac_new_set=\$ac_env_${ac_var}_set | |
cd9a469c | 2172 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2173 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b30fcfae | 2174 | case $ac_old_set,$ac_new_set in |
2175 | set,) | |
cd9a469c | 2176 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2177 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b30fcfae | 2178 | ac_cache_corrupted=: ;; |
2179 | ,set) | |
cd9a469c | 2180 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2181 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b30fcfae | 2182 | ac_cache_corrupted=: ;; |
2183 | ,);; | |
2184 | *) | |
2185 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
cd9a469c | 2186 | # differences in whitespace do not lead to failure. |
2187 | ac_old_val_w=`echo x $ac_old_val` | |
2188 | ac_new_val_w=`echo x $ac_new_val` | |
2189 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2190 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2191 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2192 | ac_cache_corrupted=: | |
2193 | else | |
2194 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2195 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2196 | eval $ac_var=\$ac_old_val | |
2197 | fi | |
2198 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2199 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2200 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2201 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b30fcfae | 2202 | fi;; |
2203 | esac | |
2204 | # Pass precious variables to config.status. | |
2205 | if test "$ac_new_set" = set; then | |
2206 | case $ac_new_val in | |
cd9a469c | 2207 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b30fcfae | 2208 | *) ac_arg=$ac_var=$ac_new_val ;; |
2209 | esac | |
2210 | case " $ac_configure_args " in | |
2211 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
cd9a469c | 2212 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b30fcfae | 2213 | esac |
2214 | fi | |
2215 | done | |
2216 | if $ac_cache_corrupted; then | |
cd9a469c | 2217 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2218 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2219 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2220 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2221 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
71ab34df | 2222 | fi |
cd9a469c | 2223 | ## -------------------- ## |
2224 | ## Main body of script. ## | |
2225 | ## -------------------- ## | |
71ab34df | 2226 | |
5084f823 | 2227 | ac_ext=c |
2228 | ac_cpp='$CPP $CPPFLAGS' | |
2229 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2230 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2231 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2232 | ||
b30fcfae | 2233 | |
2234 | ||
2235 | ||
b30fcfae | 2236 | |
2237 | ||
cd2f3773 | 2238 | |
b30fcfae | 2239 | |
4e8a889d | 2240 | |
2241 | progname=$0 | |
2242 | # if PWD already has a value, it is probably wrong. | |
2243 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2244 | ||
2245 | # Export original configure arguments for use by sub-configures. | |
2246 | # Quote arguments with shell meta charatcers. | |
2247 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2248 | set -- "$progname" "$@" | |
2249 | for ac_arg | |
2250 | do | |
2251 | case "$ac_arg" in | |
2252 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2253 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2254 | # if the argument is of the form -foo=baz, quote the baz part only | |
2255 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2256 | *) ;; | |
2257 | esac | |
2258 | # Add the quoted argument to the list. | |
2259 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2260 | done | |
2261 | if test "$silent" = yes; then | |
2262 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2263 | fi | |
2264 | # Remove the initial space we just introduced and, as these will be | |
2265 | # expanded by make, quote '$'. | |
2266 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2267 | ||
b30fcfae | 2268 | |
2269 | # Find the build, host, and target systems. | |
71ab34df | 2270 | ac_aux_dir= |
cd9a469c | 2271 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2272 | for ac_t in install-sh install.sh shtool; do | |
2273 | if test -f "$ac_dir/$ac_t"; then | |
2274 | ac_aux_dir=$ac_dir | |
2275 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2276 | break 2 | |
2277 | fi | |
2278 | done | |
71ab34df | 2279 | done |
2280 | if test -z "$ac_aux_dir"; then | |
cd9a469c | 2281 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
71ab34df | 2282 | fi |
cd9a469c | 2283 | |
2284 | # These three variables are undocumented and unsupported, | |
2285 | # and are intended to be withdrawn in a future Autoconf release. | |
2286 | # They can cause serious problems if a builder's source tree is in a directory | |
2287 | # whose full name contains unusual characters. | |
2288 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2289 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2290 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2291 | ||
71ab34df | 2292 | |
b30fcfae | 2293 | # Make sure we can run config.sub. |
cd9a469c | 2294 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2295 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2296 | ||
2297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2298 | $as_echo_n "checking build system type... " >&6; } | |
2299 | if test "${ac_cv_build+set}" = set; then : | |
2300 | $as_echo_n "(cached) " >&6 | |
2301 | else | |
2302 | ac_build_alias=$build_alias | |
2303 | test "x$ac_build_alias" = x && | |
2304 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2305 | test "x$ac_build_alias" = x && | |
2306 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2307 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2308 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2309 | ||
2310 | fi | |
2311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2312 | $as_echo "$ac_cv_build" >&6; } | |
2313 | case $ac_cv_build in | |
2314 | *-*-*) ;; | |
2315 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2316 | esac | |
b30fcfae | 2317 | build=$ac_cv_build |
cd9a469c | 2318 | ac_save_IFS=$IFS; IFS='-' |
2319 | set x $ac_cv_build | |
2320 | shift | |
2321 | build_cpu=$1 | |
2322 | build_vendor=$2 | |
2323 | shift; shift | |
2324 | # Remember, the first character of IFS is used to create $*, | |
2325 | # except with old shells: | |
2326 | build_os=$* | |
2327 | IFS=$ac_save_IFS | |
2328 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
71ab34df | 2329 | |
71ab34df | 2330 | |
b30fcfae | 2331 | case ${build_alias} in |
2332 | "") build_noncanonical=${build} ;; | |
2333 | *) build_noncanonical=${build_alias} ;; | |
ae48753c | 2334 | esac |
2335 | ||
2336 | ||
ae48753c | 2337 | |
b30fcfae | 2338 | case ${host_alias} in |
2339 | "") host_noncanonical=${build_noncanonical} ;; | |
2340 | *) host_noncanonical=${host_alias} ;; | |
ae48753c | 2341 | esac |
2342 | ||
ae48753c | 2343 | |
b30fcfae | 2344 | |
2345 | case ${target_alias} in | |
2346 | "") target_noncanonical=${host_noncanonical} ;; | |
2347 | *) target_noncanonical=${target_alias} ;; | |
ae48753c | 2348 | esac |
2349 | ||
ae48753c | 2350 | |
b30fcfae | 2351 | |
2352 | ||
2353 | test "$host_noncanonical" = "$target_noncanonical" && | |
71ab34df | 2354 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2355 | NONENONEs,x,x, && | |
b30fcfae | 2356 | program_transform_name=s,y,y, |
ae48753c | 2357 | |
cd9a469c | 2358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2359 | $as_echo_n "checking host system type... " >&6; } | |
2360 | if test "${ac_cv_host+set}" = set; then : | |
2361 | $as_echo_n "(cached) " >&6 | |
ae48753c | 2362 | else |
cd9a469c | 2363 | if test "x$host_alias" = x; then |
2364 | ac_cv_host=$ac_cv_build | |
2365 | else | |
2366 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2367 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2368 | fi | |
b30fcfae | 2369 | |
ae48753c | 2370 | fi |
cd9a469c | 2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2372 | $as_echo "$ac_cv_host" >&6; } | |
2373 | case $ac_cv_host in | |
2374 | *-*-*) ;; | |
2375 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2376 | esac | |
b30fcfae | 2377 | host=$ac_cv_host |
cd9a469c | 2378 | ac_save_IFS=$IFS; IFS='-' |
2379 | set x $ac_cv_host | |
2380 | shift | |
2381 | host_cpu=$1 | |
2382 | host_vendor=$2 | |
2383 | shift; shift | |
2384 | # Remember, the first character of IFS is used to create $*, | |
2385 | # except with old shells: | |
2386 | host_os=$* | |
2387 | IFS=$ac_save_IFS | |
2388 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
5084f823 | 2389 | |
2390 | ||
cd9a469c | 2391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2392 | $as_echo_n "checking target system type... " >&6; } | |
2393 | if test "${ac_cv_target+set}" = set; then : | |
2394 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 2395 | else |
cd9a469c | 2396 | if test "x$target_alias" = x; then |
2397 | ac_cv_target=$ac_cv_host | |
2398 | else | |
2399 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2400 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2401 | fi | |
b30fcfae | 2402 | |
2403 | fi | |
cd9a469c | 2404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2405 | $as_echo "$ac_cv_target" >&6; } | |
2406 | case $ac_cv_target in | |
2407 | *-*-*) ;; | |
2408 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2409 | esac | |
b30fcfae | 2410 | target=$ac_cv_target |
cd9a469c | 2411 | ac_save_IFS=$IFS; IFS='-' |
2412 | set x $ac_cv_target | |
2413 | shift | |
2414 | target_cpu=$1 | |
2415 | target_vendor=$2 | |
2416 | shift; shift | |
2417 | # Remember, the first character of IFS is used to create $*, | |
2418 | # except with old shells: | |
2419 | target_os=$* | |
2420 | IFS=$ac_save_IFS | |
2421 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
b30fcfae | 2422 | |
2423 | ||
2424 | # The aliases save the names the user supplied, while $host etc. | |
2425 | # will get canonicalized. | |
2426 | test -n "$target_alias" && | |
2427 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2428 | NONENONEs,x,x, && | |
2429 | program_prefix=${target_alias}- | |
cd9a469c | 2430 | |
71ab34df | 2431 | test "$program_prefix" != NONE && |
cd9a469c | 2432 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
71ab34df | 2433 | # Use a double $ so make ignores it. |
2434 | test "$program_suffix" != NONE && | |
cd9a469c | 2435 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2436 | # Double any \ or $. | |
b30fcfae | 2437 | # By default was `s,x,x', remove it if useless. |
cd9a469c | 2438 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2439 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
ae48753c | 2440 | |
71ab34df | 2441 | |
2442 | ||
450e6c84 | 2443 | # Get 'install' or 'install-sh' and its variants. |
2444 | # Find a good install program. We prefer a C program (faster), | |
2445 | # so one script is as good as another. But avoid the broken or | |
2446 | # incompatible versions: | |
2447 | # SysV /etc/install, /usr/sbin/install | |
2448 | # SunOS /usr/etc/install | |
2449 | # IRIX /sbin/install | |
2450 | # AIX /bin/install | |
b30fcfae | 2451 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
450e6c84 | 2452 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2453 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2454 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
b30fcfae | 2455 | # OS/2's system install, which has a completely different semantic |
450e6c84 | 2456 | # ./install, which can be erroneously created by make from ./install.sh. |
82eaf560 | 2457 | # Reject install programs that cannot install multiple files. |
cd9a469c | 2458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2459 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
450e6c84 | 2460 | if test -z "$INSTALL"; then |
cd9a469c | 2461 | if test "${ac_cv_path_install+set}" = set; then : |
2462 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 2463 | else |
2464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2465 | for as_dir in $PATH | |
2466 | do | |
2467 | IFS=$as_save_IFS | |
2468 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 2469 | # Account for people who put trailing slashes in PATH elements. |
2470 | case $as_dir/ in #(( | |
2471 | ./ | .// | /[cC]/* | \ | |
b30fcfae | 2472 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
cd9a469c | 2473 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
b30fcfae | 2474 | /usr/ucb/* ) ;; |
2475 | *) | |
2476 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2477 | # Don't use installbsd from OSF since it installs stuff as root | |
2478 | # by default. | |
2479 | for ac_prog in ginstall scoinst install; do | |
2480 | for ac_exec_ext in '' $ac_executable_extensions; do | |
cd9a469c | 2481 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
450e6c84 | 2482 | if test $ac_prog = install && |
b30fcfae | 2483 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
450e6c84 | 2484 | # AIX install. It has an incompatible calling convention. |
2485 | : | |
b30fcfae | 2486 | elif test $ac_prog = install && |
2487 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2488 | # program-specific install script used by HP pwplus--don't use. | |
2489 | : | |
450e6c84 | 2490 | else |
82eaf560 | 2491 | rm -rf conftest.one conftest.two conftest.dir |
2492 | echo one > conftest.one | |
2493 | echo two > conftest.two | |
2494 | mkdir conftest.dir | |
2495 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2496 | test -s conftest.one && test -s conftest.two && | |
2497 | test -s conftest.dir/conftest.one && | |
2498 | test -s conftest.dir/conftest.two | |
2499 | then | |
2500 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2501 | break 3 | |
2502 | fi | |
450e6c84 | 2503 | fi |
2504 | fi | |
2505 | done | |
b30fcfae | 2506 | done |
2507 | ;; | |
2508 | esac | |
cd9a469c | 2509 | |
2510 | done | |
2511 | IFS=$as_save_IFS | |
b30fcfae | 2512 | |
82eaf560 | 2513 | rm -rf conftest.one conftest.two conftest.dir |
450e6c84 | 2514 | |
2515 | fi | |
2516 | if test "${ac_cv_path_install+set}" = set; then | |
b30fcfae | 2517 | INSTALL=$ac_cv_path_install |
450e6c84 | 2518 | else |
82eaf560 | 2519 | # As a last resort, use the slow shell script. Don't cache a |
2520 | # value for INSTALL within a source directory, because that will | |
450e6c84 | 2521 | # break other packages using the cache if that directory is |
82eaf560 | 2522 | # removed, or if the value is a relative name. |
b30fcfae | 2523 | INSTALL=$ac_install_sh |
450e6c84 | 2524 | fi |
2525 | fi | |
cd9a469c | 2526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2527 | $as_echo "$INSTALL" >&6; } | |
450e6c84 | 2528 | |
2529 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2530 | # It thinks the first close brace ends the variable substitution. | |
2531 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2532 | ||
b30fcfae | 2533 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
450e6c84 | 2534 | |
2535 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2536 | ||
cd9a469c | 2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2538 | $as_echo_n "checking whether ln works... " >&6; } | |
2539 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2540 | $as_echo_n "(cached) " >&6 | |
599a3eac | 2541 | else |
2542 | rm -f conftestdata_t | |
2543 | echo >conftestdata_f | |
2544 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2545 | then | |
2546 | acx_cv_prog_LN=ln | |
2547 | else | |
2548 | acx_cv_prog_LN=no | |
2549 | fi | |
2550 | rm -f conftestdata_f conftestdata_t | |
2551 | ||
2552 | fi | |
2553 | if test $acx_cv_prog_LN = no; then | |
2554 | LN="cp" | |
cd9a469c | 2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2556 | $as_echo "no, using $LN" >&6; } | |
599a3eac | 2557 | else |
2558 | LN="$acx_cv_prog_LN" | |
cd9a469c | 2559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2560 | $as_echo "yes" >&6; } | |
599a3eac | 2561 | fi |
2562 | ||
cd9a469c | 2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2564 | $as_echo_n "checking whether ln -s works... " >&6; } | |
b30fcfae | 2565 | LN_S=$as_ln_s |
2566 | if test "$LN_S" = "ln -s"; then | |
cd9a469c | 2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2568 | $as_echo "yes" >&6; } | |
a4af6a58 | 2569 | else |
cd9a469c | 2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2571 | $as_echo "no, using $LN_S" >&6; } | |
5965d276 | 2572 | fi |
2573 | ||
b181f265 | 2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2575 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2576 | if test "${ac_cv_path_SED+set}" = set; then : | |
2577 | $as_echo_n "(cached) " >&6 | |
2578 | else | |
2579 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2580 | for ac_i in 1 2 3 4 5 6 7; do | |
2581 | ac_script="$ac_script$as_nl$ac_script" | |
2582 | done | |
2583 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2584 | { ac_script=; unset ac_script;} | |
2585 | if test -z "$SED"; then | |
2586 | ac_path_SED_found=false | |
2587 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2589 | for as_dir in $PATH | |
2590 | do | |
2591 | IFS=$as_save_IFS | |
2592 | test -z "$as_dir" && as_dir=. | |
2593 | for ac_prog in sed gsed; do | |
2594 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2595 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2596 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2597 | # Check for GNU ac_path_SED and select it if it is found. | |
2598 | # Check for GNU $ac_path_SED | |
2599 | case `"$ac_path_SED" --version 2>&1` in | |
2600 | *GNU*) | |
2601 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2602 | *) | |
2603 | ac_count=0 | |
2604 | $as_echo_n 0123456789 >"conftest.in" | |
2605 | while : | |
2606 | do | |
2607 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2608 | mv "conftest.tmp" "conftest.in" | |
2609 | cp "conftest.in" "conftest.nl" | |
2610 | $as_echo '' >> "conftest.nl" | |
2611 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2612 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2613 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2614 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2615 | # Best one so far, save it but keep looking for a better one | |
2616 | ac_cv_path_SED="$ac_path_SED" | |
2617 | ac_path_SED_max=$ac_count | |
2618 | fi | |
2619 | # 10*(2^10) chars as input seems more than enough | |
2620 | test $ac_count -gt 10 && break | |
2621 | done | |
2622 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2623 | esac | |
2624 | ||
2625 | $ac_path_SED_found && break 3 | |
2626 | done | |
2627 | done | |
2628 | done | |
2629 | IFS=$as_save_IFS | |
2630 | if test -z "$ac_cv_path_SED"; then | |
2631 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2632 | fi | |
2633 | else | |
2634 | ac_cv_path_SED=$SED | |
2635 | fi | |
2636 | ||
2637 | fi | |
2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2639 | $as_echo "$ac_cv_path_SED" >&6; } | |
2640 | SED="$ac_cv_path_SED" | |
2641 | rm -f conftest.sed | |
2642 | ||
2643 | for ac_prog in gawk mawk nawk awk | |
2644 | do | |
2645 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2646 | set dummy $ac_prog; ac_word=$2 | |
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2648 | $as_echo_n "checking for $ac_word... " >&6; } | |
2649 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2650 | $as_echo_n "(cached) " >&6 | |
2651 | else | |
2652 | if test -n "$AWK"; then | |
2653 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2654 | else | |
2655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2656 | for as_dir in $PATH | |
2657 | do | |
2658 | IFS=$as_save_IFS | |
2659 | test -z "$as_dir" && as_dir=. | |
2660 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2661 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2662 | ac_cv_prog_AWK="$ac_prog" | |
2663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2664 | break 2 | |
2665 | fi | |
2666 | done | |
2667 | done | |
2668 | IFS=$as_save_IFS | |
2669 | ||
2670 | fi | |
2671 | fi | |
2672 | AWK=$ac_cv_prog_AWK | |
2673 | if test -n "$AWK"; then | |
2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2675 | $as_echo "$AWK" >&6; } | |
2676 | else | |
2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2678 | $as_echo "no" >&6; } | |
2679 | fi | |
2680 | ||
2681 | ||
2682 | test -n "$AWK" && break | |
2683 | done | |
2684 | ||
450e6c84 | 2685 | |
e8eddfdd | 2686 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2687 | ||
2688 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2689 | # a relative path. | |
2690 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2691 | INSTALL="${srcpwd}/install-sh -c" | |
2692 | fi | |
2693 | ||
71ab34df | 2694 | # Set srcdir to "." if that's what it is. |
2695 | # This is important for multilib support. | |
2696 | pwd=`${PWDCMD-pwd}` | |
71ab34df | 2697 | if test "${pwd}" = "${srcpwd}" ; then |
2698 | srcdir=. | |
a8298541 | 2699 | fi |
2700 | ||
71ab34df | 2701 | topsrcdir=$srcpwd |
ed37269d | 2702 | |
71ab34df | 2703 | extra_host_args= |
14ac9144 | 2704 | |
71ab34df | 2705 | ### To add a new directory to the tree, first choose whether it is a target |
2706 | ### or a host dependent tool. Then put it into the appropriate list | |
2707 | ### (library or tools, host or target), doing a dependency sort. | |
a8298541 | 2708 | |
b30fcfae | 2709 | # Subdirs will be configured in the order listed in build_configdirs, |
71ab34df | 2710 | # configdirs, or target_configdirs; see the serialization section below. |
a8298541 | 2711 | |
b30fcfae | 2712 | # Dependency sorting is only needed when *configuration* must be done in |
2713 | # a particular order. In all cases a dependency should be specified in | |
71ab34df | 2714 | # the Makefile, whether or not it's implicitly specified here. |
a8298541 | 2715 | |
71ab34df | 2716 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2717 | # cause circular dependencies and break everything horribly. | |
a8298541 | 2718 | |
2f8725b0 | 2719 | # these library is used by various programs built for the build |
2720 | # environment | |
2721 | # | |
9245d2c5 | 2722 | build_libs="build-libiberty build-libcpp" |
2f8725b0 | 2723 | |
2724 | # these tools are built for the build environment | |
4fc99708 | 2725 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
2f8725b0 | 2726 | |
71ab34df | 2727 | # these libraries are used by various programs built for the host environment |
429cca51 | 2728 | #f |
572cf1f7 | 2729 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv" |
71ab34df | 2730 | |
71ab34df | 2731 | # these tools are built for the host environment |
2732 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2733 | # know that we are building the simulator. | |
2734 | # binutils, gas and ld appear in that order because it makes sense to run | |
2735 | # "make check" in that particular order. | |
af7c5662 | 2736 | # If --enable-gold is used, "gold" may replace "ld". |
dcfe52b6 | 2737 | 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 | 2738 | |
2739 | # libgcj represents the runtime libraries only used by gcj. | |
2740 | libgcj="target-libffi \ | |
71ab34df | 2741 | target-zlib \ |
71ab34df | 2742 | target-libjava" |
2743 | ||
2744 | # these libraries are built for the target environment, and are built after | |
2745 | # the host libraries and the host tools (which may be a cross compiler) | |
5ab7e123 | 2746 | # Note that libiberty is not a target library. |
27bfe7b7 | 2747 | target_libraries="target-libgcc \ |
ecd3459e | 2748 | target-libbacktrace \ |
71ab34df | 2749 | target-libgloss \ |
2750 | target-newlib \ | |
a0191bfe | 2751 | target-libgomp \ |
4710dd51 | 2752 | target-libcilkrts \ |
d3a7dd32 | 2753 | target-liboffloadmic \ |
6db1d2ca | 2754 | target-libatomic \ |
4c0315d0 | 2755 | target-libitm \ |
54d7d5f2 | 2756 | target-libstdc++-v3 \ |
549e2197 | 2757 | target-libsanitizer \ |
b710ec85 | 2758 | target-libvtv \ |
202baac8 | 2759 | target-libmpx \ |
0d55f4d0 | 2760 | target-libssp \ |
87969c8c | 2761 | target-libquadmath \ |
4ee9c684 | 2762 | target-libgfortran \ |
dd6d3a67 | 2763 | target-boehm-gc \ |
cdfc500e | 2764 | ${libgcj} \ |
93341878 | 2765 | target-libobjc \ |
5ff5b630 | 2766 | target-libada \ |
2767 | target-libgo" | |
71ab34df | 2768 | |
328637e8 | 2769 | # these tools are built using the target libraries, and are intended to |
2770 | # run only in the target environment | |
71ab34df | 2771 | # |
328637e8 | 2772 | # note: any program that *uses* libraries that are in the "target_libraries" |
6c9785b4 | 2773 | # list belongs in this list. |
71ab34df | 2774 | # |
4fc99708 | 2775 | target_tools="target-rda" |
a8298541 | 2776 | |
71ab34df | 2777 | ################################################################################ |
a8298541 | 2778 | |
71ab34df | 2779 | ## All tools belong in one of the four categories, and are assigned above |
2780 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2781 | ## is important because configure will choke if they ever get through. | |
2782 | ## ${configdirs} is directories we build using the host tools. | |
2783 | ## ${target_configdirs} is directories we build using the target tools. | |
71ab34df | 2784 | configdirs=`echo ${host_libs} ${host_tools}` |
328637e8 | 2785 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
2b59cb05 | 2786 | build_configdirs=`echo ${build_libs} ${build_tools}` |
6f4f34a7 | 2787 | |
d2d2630b | 2788 | |
2789 | ||
71ab34df | 2790 | ################################################################################ |
a8298541 | 2791 | |
71ab34df | 2792 | srcname="gnu development package" |
a8298541 | 2793 | |
71ab34df | 2794 | # This gets set non-empty for some net releases of packages. |
2795 | appdirs="" | |
a8298541 | 2796 | |
71ab34df | 2797 | # Define is_cross_compiler to save on calls to 'test'. |
2798 | is_cross_compiler= | |
2799 | if test x"${host}" = x"${target}" ; then | |
2800 | is_cross_compiler=no | |
a8298541 | 2801 | else |
71ab34df | 2802 | is_cross_compiler=yes |
b30fcfae | 2803 | fi |
a8298541 | 2804 | |
2f61b8ca | 2805 | # Find the build and target subdir names. |
6f4f34a7 | 2806 | |
d3e7b04c | 2807 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2808 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2809 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2810 | # However, they still use the build modules, because the corresponding | |
2811 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2812 | # finishes. So: | |
2813 | # - build_subdir is where we find build modules, and never changes. | |
2814 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2815 | ||
2816 | # Prefix 'build-' so this never conflicts with target_subdir. | |
6f4f34a7 | 2817 | build_subdir="build-${build_noncanonical}" |
b30fcfae | 2818 | |
cd9a469c | 2819 | # Check whether --with-build-libsubdir was given. |
2820 | if test "${with_build_libsubdir+set}" = set; then : | |
2821 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
d3e7b04c | 2822 | else |
2823 | build_libsubdir="$build_subdir" | |
cd9a469c | 2824 | fi |
2825 | ||
c1eb9e31 | 2826 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2827 | if ( test $srcdir = . && test -d gcc ) \ | |
2828 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2829 | host_subdir="host-${host_noncanonical}" | |
2830 | else | |
2831 | host_subdir=. | |
2832 | fi | |
6f4f34a7 | 2833 | # No prefix. |
2834 | target_subdir=${target_noncanonical} | |
b30fcfae | 2835 | |
04a2e841 | 2836 | # Be sure to cover against remnants of an in-tree build. |
2837 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2838 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2839 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2840 | fi | |
a8298541 | 2841 | |
71ab34df | 2842 | # Skipdirs are removed silently. |
2843 | skipdirs= | |
2844 | # Noconfigdirs are removed loudly. | |
2845 | noconfigdirs="" | |
a8298541 | 2846 | |
71ab34df | 2847 | use_gnu_ld= |
2848 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2849 | if test x$with_gnu_ld = xno ; then | |
2850 | use_gnu_ld=no | |
3d47fcf5 | 2851 | noconfigdirs="$noconfigdirs ld gold" |
a8298541 | 2852 | fi |
2853 | ||
71ab34df | 2854 | use_gnu_as= |
2855 | # Make sure we don't let GNU as be added if we didn't want it. | |
2856 | if test x$with_gnu_as = xno ; then | |
2857 | use_gnu_as=no | |
2858 | noconfigdirs="$noconfigdirs gas" | |
a8298541 | 2859 | fi |
2860 | ||
7bfefa9d | 2861 | use_included_zlib= |
6406d366 | 2862 | |
2863 | # Check whether --with-system-zlib was given. | |
2864 | if test "${with_system_zlib+set}" = set; then : | |
2865 | withval=$with_system_zlib; | |
2866 | fi | |
2867 | ||
7bfefa9d | 2868 | # Make sure we don't let ZLIB be added if we didn't want it. |
2869 | if test x$with_system_zlib = xyes ; then | |
2870 | use_included_zlib=no | |
2871 | noconfigdirs="$noconfigdirs zlib" | |
2872 | fi | |
2873 | ||
b30fcfae | 2874 | # some tools are so dependent upon X11 that if we're not building with X, |
71ab34df | 2875 | # it's not even worth trying to configure, much less build, that tool. |
a8298541 | 2876 | |
71ab34df | 2877 | case ${with_x} in |
2878 | yes | "") ;; # the default value for this tree is that X11 is available | |
2879 | no) | |
f843f075 | 2880 | skipdirs="${skipdirs} tk itcl libgui" |
71ab34df | 2881 | # We won't be able to build gdbtk without X. |
b30fcfae | 2882 | enable_gdbtk=no |
71ab34df | 2883 | ;; |
2884 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2885 | esac | |
a8298541 | 2886 | |
6c9785b4 | 2887 | # Some are only suitable for cross toolchains. |
71ab34df | 2888 | # Remove these if host=target. |
2889 | cross_only="target-libgloss target-newlib target-opcodes" | |
2890 | ||
2891 | case $is_cross_compiler in | |
2892 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
71ab34df | 2893 | esac |
a8298541 | 2894 | |
71ab34df | 2895 | # If both --with-headers and --with-libs are specified, default to |
2896 | # --without-newlib. | |
e8eddfdd | 2897 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2898 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
71ab34df | 2899 | if test x"${with_newlib}" = x ; then |
2900 | with_newlib=no | |
2901 | fi | |
a8298541 | 2902 | fi |
2903 | ||
71ab34df | 2904 | # Recognize --with-newlib/--without-newlib. |
2905 | case ${with_newlib} in | |
2906 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2907 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2908 | esac | |
a8298541 | 2909 | |
a3d93be3 | 2910 | # Check whether --enable-as-accelerator-for was given. |
2911 | if test "${enable_as_accelerator_for+set}" = set; then : | |
67cedda8 | 2912 | enableval=$enable_as_accelerator_for; |
a3d93be3 | 2913 | fi |
2914 | ||
2915 | ||
2916 | # Check whether --enable-offload-targets was given. | |
2917 | if test "${enable_offload_targets+set}" = set; then : | |
2918 | enableval=$enable_offload_targets; | |
2919 | if test x"$enable_offload_targets" = x; then | |
2920 | as_fn_error "no offload targets specified" "$LINENO" 5 | |
2921 | fi | |
2922 | ||
2923 | else | |
2924 | enable_offload_targets= | |
2925 | fi | |
2926 | ||
2927 | ||
1e369e5f | 2928 | # Handle --enable-gold, --enable-ld. |
2929 | # --disable-gold [--enable-ld] | |
2930 | # Build only ld. Default option. | |
85516948 | 2931 | # --enable-gold [--enable-ld] |
2932 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2933 | # as "ld.bfd" and "ld". | |
2934 | # --enable-gold=default [--enable-ld] | |
1e369e5f | 2935 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2936 | # install ld as "ld.bfd". | |
2937 | # --enable-gold[=default] --disable-ld | |
2938 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2939 | # --enable-gold --enable-ld=default | |
85516948 | 2940 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2941 | # and ld.bfd). | |
1e369e5f | 2942 | # In other words, ld is default |
2943 | # --enable-gold=default --enable-ld=default | |
2944 | # Error. | |
2945 | ||
2946 | default_ld= | |
cd9a469c | 2947 | # Check whether --enable-gold was given. |
2948 | if test "${enable_gold+set}" = set; then : | |
2949 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
3d47fcf5 | 2950 | else |
2951 | ENABLE_GOLD=no | |
cd9a469c | 2952 | fi |
2953 | ||
1e369e5f | 2954 | case "${ENABLE_GOLD}" in |
2955 | yes|default) | |
af7c5662 | 2956 | # Check for ELF target. |
2957 | is_elf=no | |
2958 | case "${target}" in | |
2959 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
e4c33dd2 | 2960 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
e3a1fe08 | 2961 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
9d36d513 | 2962 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
af7c5662 | 2963 | case "${target}" in |
2964 | *-*-linux*aout* | *-*-linux*oldld*) | |
2965 | ;; | |
2966 | *) | |
2967 | is_elf=yes | |
2968 | ;; | |
2969 | esac | |
2970 | esac | |
2971 | ||
2972 | if test "$is_elf" = "yes"; then | |
2973 | # Check for target supported by gold. | |
3d47fcf5 | 2974 | case "${target}" in |
58f62c51 | 2975 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
ca7ff757 | 2976 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
1e369e5f | 2977 | configdirs="$configdirs gold" |
2978 | if test x${ENABLE_GOLD} = xdefault; then | |
2979 | default_ld=gold | |
2980 | fi | |
af7c5662 | 2981 | ENABLE_GOLD=yes |
3d47fcf5 | 2982 | ;; |
2983 | esac | |
af7c5662 | 2984 | fi |
2985 | ;; | |
2986 | no) | |
2987 | ;; | |
2988 | *) | |
2989 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2990 | ;; | |
1e369e5f | 2991 | esac |
2992 | ||
2993 | # Check whether --enable-ld was given. | |
2994 | if test "${enable_ld+set}" = set; then : | |
2995 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2996 | else | |
2997 | ENABLE_LD=yes | |
2998 | fi | |
2999 | ||
3000 | ||
3001 | case "${ENABLE_LD}" in | |
3002 | default) | |
85516948 | 3003 | if test x${default_ld} != x; then |
1e369e5f | 3004 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
3005 | fi | |
3006 | ;; | |
3007 | yes) | |
3008 | ;; | |
3009 | no) | |
3010 | if test x${ENABLE_GOLD} != xyes; then | |
3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3012 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3013 | fi | |
3014 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3015 | ;; | |
3016 | *) | |
3017 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
3018 | ;; | |
3019 | esac | |
3d47fcf5 | 3020 | |
afb6adb9 | 3021 | # PR gas/19109 |
3022 | # Decide the default method for compressing debug sections. | |
3023 | # Provide a configure time option to override our default. | |
3024 | # Check whether --enable-compressed_debug_sections was given. | |
3025 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3026 | enableval=$enable_compressed_debug_sections; | |
3027 | if test x"$enable_compressed_debug_sections" = xyes; then | |
3028 | as_fn_error "no program with compressed debug sections specified" "$LINENO" 5 | |
3029 | fi | |
3030 | ||
3031 | else | |
3032 | enable_compressed_debug_sections= | |
3033 | fi | |
3034 | ||
3035 | ||
71ab34df | 3036 | # Configure extra directories which are host specific |
a8298541 | 3037 | |
71ab34df | 3038 | case "${host}" in |
3039 | *-cygwin*) | |
3040 | configdirs="$configdirs libtermcap" ;; | |
3041 | esac | |
a8298541 | 3042 | |
ff7dcf6a | 3043 | # A target can indicate whether a language isn't supported for some reason. |
3044 | # Only spaces may be used in this macro; not newlines or tabs. | |
3045 | unsupported_languages= | |
3046 | ||
b30fcfae | 3047 | # Remove more programs from consideration, based on the host or |
71ab34df | 3048 | # target this usually means that a port of the program doesn't |
3049 | # exist yet. | |
c7879c37 | 3050 | |
71ab34df | 3051 | case "${host}" in |
b2240ff6 | 3052 | i[3456789]86-*-msdosdjgpp*) |
e3a5e6ff | 3053 | noconfigdirs="$noconfigdirs tcl tk itcl" |
71ab34df | 3054 | ;; |
71ab34df | 3055 | esac |
c7879c37 | 3056 | |
4ee9c684 | 3057 | |
d9d975ae | 3058 | # Check whether --enable-libquadmath was given. |
3059 | if test "${enable_libquadmath+set}" = set; then : | |
3060 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3061 | else | |
3062 | ENABLE_LIBQUADMATH=yes | |
3063 | fi | |
3064 | ||
3065 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3066 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3067 | fi | |
3068 | ||
3069 | ||
3070 | # Check whether --enable-libquadmath-support was given. | |
3071 | if test "${enable_libquadmath_support+set}" = set; then : | |
3072 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3073 | else | |
3074 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3075 | fi | |
3076 | ||
3077 | enable_libquadmath_support= | |
3078 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3079 | enable_libquadmath_support=no | |
3080 | fi | |
3081 | ||
3082 | ||
cd9a469c | 3083 | # Check whether --enable-libada was given. |
3084 | if test "${enable_libada+set}" = set; then : | |
3085 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
93341878 | 3086 | else |
3087 | ENABLE_LIBADA=yes | |
cd9a469c | 3088 | fi |
3089 | ||
93341878 | 3090 | if test "${ENABLE_LIBADA}" != "yes" ; then |
a136b23d | 3091 | noconfigdirs="$noconfigdirs gnattools" |
93341878 | 3092 | fi |
3093 | ||
cd9a469c | 3094 | # Check whether --enable-libssp was given. |
3095 | if test "${enable_libssp+set}" = set; then : | |
3096 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
07da5214 | 3097 | else |
3098 | ENABLE_LIBSSP=yes | |
cd9a469c | 3099 | fi |
3100 | ||
07da5214 | 3101 | |
a3ba808f | 3102 | # Check whether --enable-libstdcxx was given. |
3103 | if test "${enable_libstdcxx+set}" = set; then : | |
3104 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3105 | else | |
3106 | ENABLE_LIBSTDCXX=default | |
3107 | fi | |
3108 | ||
3109 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
df148e44 | 3110 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
a3ba808f | 3111 | fi |
3112 | ||
d3a7dd32 | 3113 | # If this is accelerator compiler and its target is intelmic we enable |
3114 | # target liboffloadmic by default. If this is compiler with offloading | |
3115 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3116 | # liboffloadmic is disabled by default. | |
3117 | # Check whether --enable-liboffloadmic was given. | |
3118 | if test "${enable_liboffloadmic+set}" = set; then : | |
3119 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3120 | no | host | target) | |
3121 | enable_liboffloadmic=$enableval ;; | |
3122 | *) | |
3123 | as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; | |
3124 | esac | |
3125 | else | |
67cedda8 | 3126 | if test x"$enable_as_accelerator_for" != x; then |
d3a7dd32 | 3127 | case "${target}" in |
3128 | *-intelmic-* | *-intelmicemul-*) | |
3129 | enable_liboffloadmic=target | |
3130 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3131 | ;; | |
3132 | *) | |
3133 | enable_liboffloadmic=no | |
3134 | ;; | |
3135 | esac | |
3136 | else | |
3137 | case "${enable_offload_targets}" in | |
3138 | *-intelmic-* | *-intelmicemul-*) | |
3139 | enable_liboffloadmic=host | |
3140 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3141 | ;; | |
3142 | *) | |
3143 | enable_liboffloadmic=no | |
3144 | ;; | |
3145 | esac | |
3146 | fi | |
3147 | fi | |
3148 | ||
3149 | ||
3150 | ||
71ab34df | 3151 | # Save it here so that, even in case of --enable-libgcj, if the Java |
3152 | # front-end isn't enabled, we still get libgcj disabled. | |
3153 | libgcj_saved=$libgcj | |
3154 | case $enable_libgcj in | |
3155 | yes) | |
3156 | # If we reset it here, it won't get added to noconfigdirs in the | |
3157 | # target-specific build rules, so it will be forcibly enabled | |
3158 | # (unless the Java language itself isn't enabled). | |
3159 | libgcj= | |
3160 | ;; | |
3161 | no) | |
3162 | # Make sure we get it printed in the list of not supported target libs. | |
604a285a | 3163 | # Don't disable libffi, though, other languages use it. |
3164 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
8593ce89 | 3165 | # Clear libgcj_saved so that even if java is enabled libffi won't be |
3166 | # built. | |
3167 | libgcj_saved= | |
71ab34df | 3168 | ;; |
3169 | esac | |
c7879c37 | 3170 | |
d7e52ac9 | 3171 | # Check whether --enable-static-libjava was given. |
3172 | if test "${enable_static_libjava+set}" = set; then : | |
3173 | enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval | |
3174 | else | |
3175 | ENABLE_STATIC_LIBJAVA=no | |
3176 | fi | |
3177 | ||
3178 | enable_static_libjava= | |
3179 | if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then | |
3180 | enable_static_libjava=yes | |
3181 | fi | |
3182 | ||
3183 | if test x$enable_static_libjava != xyes ; then | |
3184 | EXTRA_CONFIGARGS_LIBJAVA=--disable-static | |
3185 | fi | |
3186 | ||
4ee9c684 | 3187 | |
fdcd05c8 | 3188 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
50996fe5 | 3189 | if test x$enable_libgomp = x ; then |
1e8e9920 | 3190 | case "${target}" in |
3bef4012 | 3191 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
1e8e9920 | 3192 | ;; |
e3a1fe08 | 3193 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
1e8e9920 | 3194 | ;; |
5641963c | 3195 | *-*-solaris2* | *-*-hpux11*) |
1e8e9920 | 3196 | ;; |
634efbee | 3197 | *-*-darwin* | *-*-aix*) |
1e8e9920 | 3198 | ;; |
fdcd05c8 | 3199 | nvptx*-*-*) |
3200 | ;; | |
1e8e9920 | 3201 | *) |
3202 | noconfigdirs="$noconfigdirs target-libgomp" | |
3203 | ;; | |
3204 | esac | |
50996fe5 | 3205 | fi |
1e8e9920 | 3206 | |
6db1d2ca | 3207 | # Disable libatomic on unsupported systems. |
3208 | if test -d ${srcdir}/libatomic; then | |
3209 | if test x$enable_libatomic = x; then | |
3210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3211 | $as_echo_n "checking for libatomic support... " >&6; } | |
3212 | if (srcdir=${srcdir}/libatomic; \ | |
3213 | . ${srcdir}/configure.tgt; \ | |
3214 | test -n "$UNSUPPORTED") | |
3215 | then | |
3216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3217 | $as_echo "no" >&6; } | |
3218 | noconfigdirs="$noconfigdirs target-libatomic" | |
3219 | else | |
3220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3221 | $as_echo "yes" >&6; } | |
3222 | fi | |
3223 | fi | |
3224 | fi | |
3225 | ||
4710dd51 | 3226 | # Disable libcilkrts on unsupported systems. |
3227 | if test -d ${srcdir}/libcilkrts; then | |
3228 | if test x$enable_libcilkrts = x; then | |
3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5 | |
3230 | $as_echo_n "checking for libcilkrts support... " >&6; } | |
3231 | if (srcdir=${srcdir}/libcilkrts; \ | |
3232 | . ${srcdir}/configure.tgt; \ | |
3233 | test -n "$UNSUPPORTED") | |
3234 | then | |
3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3236 | $as_echo "no" >&6; } | |
3237 | noconfigdirs="$noconfigdirs target-libcilkrts" | |
3238 | else | |
3239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3240 | $as_echo "yes" >&6; } | |
3241 | fi | |
3242 | fi | |
3243 | fi | |
3244 | ||
d3a7dd32 | 3245 | # Disable liboffloadmic on unsupported systems. |
3246 | if test -d ${srcdir}/liboffloadmic; then | |
3247 | if test x$enable_liboffloadmic != xno; then | |
3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3249 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3250 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3251 | . ${srcdir}/configure.tgt; \ | |
3252 | test -n "$UNSUPPORTED") | |
3253 | then | |
3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3255 | $as_echo "no" >&6; } | |
3256 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3257 | else | |
3258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3259 | $as_echo "yes" >&6; } | |
3260 | fi | |
3261 | fi | |
3262 | fi | |
3263 | ||
42b15c81 | 3264 | # Disable libitm on unsupported systems. |
3265 | if test -d ${srcdir}/libitm; then | |
3266 | if test x$enable_libitm = x; then | |
3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
298c66d9 | 3268 | $as_echo_n "checking for libitm support... " >&6; } |
42b15c81 | 3269 | if (srcdir=${srcdir}/libitm; \ |
3270 | . ${srcdir}/configure.tgt; \ | |
3271 | test -n "$UNSUPPORTED") | |
3272 | then | |
3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
298c66d9 | 3274 | $as_echo "no" >&6; } |
42b15c81 | 3275 | noconfigdirs="$noconfigdirs target-libitm" |
3276 | else | |
3277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
298c66d9 | 3278 | $as_echo "yes" >&6; } |
42b15c81 | 3279 | fi |
3280 | fi | |
4c0315d0 | 3281 | fi |
3282 | ||
492e75a7 | 3283 | # Disable libsanitizer on unsupported systems. |
3284 | if test -d ${srcdir}/libsanitizer; then | |
3285 | if test x$enable_libsanitizer = x; then | |
3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3287 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3288 | if (srcdir=${srcdir}/libsanitizer; \ | |
3289 | . ${srcdir}/configure.tgt; \ | |
3290 | test -n "$UNSUPPORTED") | |
3291 | then | |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3293 | $as_echo "no" >&6; } | |
3294 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3295 | else | |
3296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3297 | $as_echo "yes" >&6; } | |
3298 | fi | |
3299 | fi | |
3300 | fi | |
3301 | ||
b710ec85 | 3302 | # Disable libvtv on unsupported systems. |
3303 | if test -d ${srcdir}/libvtv; then | |
3304 | if test x$enable_libvtv = x; then | |
3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3306 | $as_echo_n "checking for libvtv support... " >&6; } | |
3307 | if (srcdir=${srcdir}/libvtv; \ | |
3308 | . ${srcdir}/configure.tgt; \ | |
6d0992e1 | 3309 | test "$VTV_SUPPORTED" != "yes") |
b710ec85 | 3310 | then |
3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3312 | $as_echo "no" >&6; } | |
3313 | noconfigdirs="$noconfigdirs target-libvtv" | |
3314 | else | |
3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3316 | $as_echo "yes" >&6; } | |
3317 | fi | |
3318 | fi | |
3319 | fi | |
3320 | ||
202baac8 | 3321 | |
3322 | # Enable libmpx on supported systems by request. | |
3323 | if test -d ${srcdir}/libmpx; then | |
067ef0d9 | 3324 | if test x$enable_libmpx = x; then |
202baac8 | 3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5 |
3326 | $as_echo_n "checking for libmpx support... " >&6; } | |
3327 | if (srcdir=${srcdir}/libmpx; \ | |
3328 | . ${srcdir}/configure.tgt; \ | |
3329 | test "$LIBMPX_SUPPORTED" != "yes") | |
3330 | then | |
3331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3332 | $as_echo "no" >&6; } | |
3333 | noconfigdirs="$noconfigdirs target-libmpx" | |
3334 | else | |
3335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3336 | $as_echo "yes" >&6; } | |
3337 | fi | |
202baac8 | 3338 | fi |
3339 | fi | |
3340 | ||
3341 | ||
3342 | ||
62f0972f | 3343 | # Disable libquadmath for some systems. |
3344 | case "${target}" in | |
c36ee471 | 3345 | avr-*-*) |
3346 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3347 | ;; | |
62f0972f | 3348 | # libquadmath is unused on AIX and libquadmath build process use of |
3349 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3350 | powerpc-*-aix* | rs6000-*-aix*) | |
3351 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3352 | ;; | |
3353 | esac | |
3354 | ||
d5831552 | 3355 | # Disable libssp for some systems. |
3356 | case "${target}" in | |
3357 | avr-*-*) | |
76c19016 | 3358 | # No hosted I/O support. |
d5831552 | 3359 | noconfigdirs="$noconfigdirs target-libssp" |
3360 | ;; | |
3361 | powerpc-*-aix* | rs6000-*-aix*) | |
3362 | noconfigdirs="$noconfigdirs target-libssp" | |
78e515f7 | 3363 | ;; |
3364 | rl78-*-*) | |
9d5fd7d0 | 3365 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3366 | # doesn't fault for those - instead, it gives a build-time error | |
3367 | # for explicit misaligned loads. | |
78e515f7 | 3368 | noconfigdirs="$noconfigdirs target-libssp" |
d5831552 | 3369 | ;; |
8992df51 | 3370 | visium-*-*) |
3371 | # No hosted I/O support. | |
3372 | noconfigdirs="$noconfigdirs target-libssp" | |
3373 | ;; | |
d5831552 | 3374 | esac |
3375 | ||
d5831552 | 3376 | # Disable libstdc++-v3 for some systems. |
a3ba808f | 3377 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3378 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3379 | case "${target}" in | |
3380 | *-*-vxworks*) | |
3381 | # VxWorks uses the Dinkumware C++ library. | |
3382 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3383 | ;; | |
3384 | arm*-wince-pe*) | |
3385 | # the C++ libraries don't build on top of CE's C libraries | |
3386 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3387 | ;; | |
3388 | avr-*-*) | |
3389 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3390 | ;; | |
b6616c9c | 3391 | ft32-*-*) |
3392 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3393 | ;; | |
a3ba808f | 3394 | esac |
3395 | fi | |
d5831552 | 3396 | |
3397 | # Disable Fortran for some systems. | |
3398 | case "${target}" in | |
3399 | mmix-*-*) | |
3400 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3401 | unsupported_languages="$unsupported_languages fortran" | |
3402 | ;; | |
3403 | esac | |
3404 | ||
91b5b6ec | 3405 | # Disable Java if libffi is not supported. |
f24be480 | 3406 | case "${target}" in |
45e22a2e | 3407 | aarch64-*-*) |
3408 | ;; | |
91b5b6ec | 3409 | alpha*-*-*) |
3410 | ;; | |
3411 | arm*-*-*) | |
3412 | ;; | |
3413 | cris-*-*) | |
3414 | ;; | |
3415 | frv-*-*) | |
3416 | ;; | |
3417 | hppa*-*-linux*) | |
3418 | ;; | |
3419 | hppa*-*-hpux*) | |
3420 | ;; | |
3421 | i?86-*-*) | |
3422 | ;; | |
3423 | ia64*-*-*) | |
3424 | ;; | |
3425 | m32r*-*-*) | |
3426 | ;; | |
3427 | m68k-*-*) | |
3428 | ;; | |
5641963c | 3429 | mips*-*-rtems*) |
91b5b6ec | 3430 | ;; |
3431 | mips*-*-linux*) | |
3432 | ;; | |
3433 | powerpc*-*-linux*) | |
3434 | ;; | |
3435 | powerpc-*-darwin*) | |
3436 | ;; | |
3437 | powerpc-*-aix* | rs6000-*-aix*) | |
3438 | ;; | |
3439 | powerpc-*-freebsd*) | |
3440 | ;; | |
3441 | powerpc64-*-freebsd*) | |
3442 | ;; | |
3443 | powerpc*-*-rtems*) | |
f24be480 | 3444 | ;; |
91b5b6ec | 3445 | s390-*-* | s390x-*-*) |
3446 | ;; | |
3447 | sh-*-* | sh[34]*-*-*) | |
3448 | ;; | |
91b5b6ec | 3449 | sparc*-*-*) |
3450 | ;; | |
3451 | x86_64-*-*) | |
3452 | ;; | |
3453 | *-*-*) | |
3454 | unsupported_languages="$unsupported_languages java" | |
3455 | ;; | |
3456 | esac | |
3457 | ||
3458 | # Disable Java, libgcj or related libraries for some systems. | |
3459 | case "${target}" in | |
f24be480 | 3460 | powerpc-*-darwin*) |
3461 | ;; | |
3462 | i[3456789]86-*-darwin*) | |
3463 | ;; | |
3464 | x86_64-*-darwin[912]*) | |
3465 | ;; | |
3466 | *-*-darwin*) | |
3467 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3468 | ;; | |
f24be480 | 3469 | *-*-netware*) |
3470 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3471 | ;; | |
1d6aa005 | 3472 | *-*-phoenix*) |
3473 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3474 | ;; | |
f24be480 | 3475 | *-*-rtems*) |
3476 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3477 | ;; | |
3478 | *-*-tpf*) | |
3479 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3480 | ;; | |
3481 | *-*-uclinux*) | |
3482 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3483 | ;; | |
3484 | *-*-vxworks*) | |
3485 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3486 | ;; | |
f24be480 | 3487 | alpha*-*-*vms*) |
3488 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3489 | ;; | |
275d0a7c | 3490 | arm*-*-freebsd*) |
3491 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3492 | ;; | |
91b5b6ec | 3493 | arm-wince-pe) |
f24be480 | 3494 | noconfigdirs="$noconfigdirs ${libgcj}" |
3495 | ;; | |
f24be480 | 3496 | arm*-*-symbianelf*) |
3497 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3498 | ;; | |
f24be480 | 3499 | bfin-*-*) |
f24be480 | 3500 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3501 | ;; | |
f24be480 | 3502 | cris-*-* | crisv32-*-*) |
3503 | unsupported_languages="$unsupported_languages java" | |
3504 | case "${target}" in | |
3505 | *-*-linux*) | |
3506 | ;; | |
3507 | *) # See PR46792 regarding target-libffi. | |
3508 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3509 | esac | |
3510 | ;; | |
f24be480 | 3511 | hppa*64*-*-linux*) |
3512 | # In this case, it's because the hppa64-linux target is for | |
3513 | # the kernel only at this point and has no libc, and thus no | |
3514 | # headers, crt*.o, etc., all of which are needed by these. | |
a7e330e9 | 3515 | unsupported_languages="$unsupported_languages java" |
f24be480 | 3516 | ;; |
a7e330e9 | 3517 | hppa*64*-*-hpux*) |
f24be480 | 3518 | noconfigdirs="$noconfigdirs ${libgcj}" |
3519 | ;; | |
3520 | hppa*-hp-hpux11*) | |
3521 | ;; | |
a7e330e9 | 3522 | hppa*-*-hpux*) |
f24be480 | 3523 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't |
3524 | # build on HP-UX 10.20. | |
3525 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3526 | ;; | |
f24be480 | 3527 | ia64*-*-*vms*) |
3528 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3529 | ;; | |
f24be480 | 3530 | i[3456789]86-w64-mingw*) |
3531 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3532 | ;; | |
3533 | i[3456789]86-*-mingw*) | |
3534 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3535 | ;; | |
3536 | x86_64-*-mingw*) | |
3537 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3538 | ;; | |
f24be480 | 3539 | mmix-*-*) |
3540 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
f24be480 | 3541 | ;; |
3542 | powerpc-*-aix*) | |
3543 | # copied from rs6000-*-* entry | |
3544 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3545 | ;; | |
f24be480 | 3546 | rs6000-*-aix*) |
3547 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3548 | ;; | |
6406d366 | 3549 | ft32-*-*) |
3550 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3551 | ;; | |
f24be480 | 3552 | *-*-lynxos*) |
3553 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3554 | ;; | |
f24be480 | 3555 | esac |
3556 | ||
10e64fba | 3557 | # Disable the go frontend on systems where it is known to not work. Please keep |
3558 | # this in sync with contrib/config-list.mk. | |
56242c27 | 3559 | case "${target}" in |
3560 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) | |
3561 | unsupported_languages="$unsupported_languages go" | |
3562 | ;; | |
3563 | esac | |
3564 | ||
a6999726 | 3565 | # Disable libgo for some systems where it is known to not work. |
3566 | # For testing, you can easily override this with --enable-libgo. | |
3567 | if test x$enable_libgo = x; then | |
3568 | case "${target}" in | |
3569 | *-*-darwin*) | |
3570 | # PR 46986 | |
3571 | noconfigdirs="$noconfigdirs target-libgo" | |
3572 | ;; | |
3573 | *-*-cygwin* | *-*-mingw*) | |
3574 | noconfigdirs="$noconfigdirs target-libgo" | |
3575 | ;; | |
3576 | *-*-aix*) | |
3577 | noconfigdirs="$noconfigdirs target-libgo" | |
3578 | ;; | |
3579 | esac | |
3580 | fi | |
3581 | ||
1c5767f1 | 3582 | # Default libgloss CPU subdirectory. |
3583 | libgloss_dir="$target_cpu" | |
4ee9c684 | 3584 | |
e0942c78 | 3585 | case "${target}" in |
3586 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3587 | libgloss_dir=wince | |
3588 | ;; | |
e26fddfa | 3589 | aarch64*-*-* ) |
3590 | libgloss_dir=aarch64 | |
3591 | ;; | |
e0942c78 | 3592 | arm*-*-*) |
3593 | libgloss_dir=arm | |
3594 | ;; | |
3595 | cris-*-* | crisv32-*-*) | |
3596 | libgloss_dir=cris | |
3597 | ;; | |
3598 | hppa*-*-*) | |
3599 | libgloss_dir=pa | |
3600 | ;; | |
3601 | i[3456789]86-*-*) | |
3602 | libgloss_dir=i386 | |
3603 | ;; | |
3604 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3605 | libgloss_dir=m68hc11 | |
3606 | ;; | |
3607 | m68*-*-* | fido-*-*) | |
3608 | libgloss_dir=m68k | |
3609 | ;; | |
3610 | mips*-*-*) | |
3611 | libgloss_dir=mips | |
3612 | ;; | |
3613 | powerpc*-*-*) | |
3614 | libgloss_dir=rs6000 | |
3615 | ;; | |
3616 | sparc*-*-*) | |
3617 | libgloss_dir=sparc | |
3618 | ;; | |
3619 | esac | |
3620 | ||
d556f192 | 3621 | # Disable newlib and libgloss for various target OSes. |
71ab34df | 3622 | case "${target}" in |
d556f192 | 3623 | alpha*-dec-osf*) |
3624 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3625 | ;; | |
3626 | i[3456789]86-*-linux*) | |
3627 | # This section makes it possible to build newlib natively on linux. | |
3628 | # If we are using a cross compiler then don't configure newlib. | |
3629 | if test x${is_cross_compiler} != xno ; then | |
3630 | noconfigdirs="$noconfigdirs target-newlib" | |
3631 | fi | |
3632 | noconfigdirs="$noconfigdirs target-libgloss" | |
3633 | # If we are not using a cross compiler, do configure newlib. | |
3634 | # Note however, that newlib will only be configured in this situation | |
3635 | # if the --with-newlib option has been given, because otherwise | |
3636 | # 'target-newlib' will appear in skipdirs. | |
3637 | ;; | |
3638 | i[3456789]86-*-rdos*) | |
3639 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3640 | ;; | |
3641 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3642 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3643 | ;; | |
3644 | sparc-*-sunos4*) | |
3645 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3646 | ;; | |
3647 | *-*-aix*) | |
3648 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3649 | ;; | |
3650 | *-*-beos*) | |
3651 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3652 | ;; | |
71ab34df | 3653 | *-*-chorusos) |
71559dce | 3654 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
71ab34df | 3655 | ;; |
d556f192 | 3656 | *-*-dragonfly*) |
3657 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3658 | ;; | |
3659 | *-*-freebsd*) | |
3660 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3661 | ;; | |
3662 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3663 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3664 | ;; | |
3665 | *-*-lynxos*) | |
3666 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3667 | ;; | |
3668 | *-*-mingw*) | |
3669 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3670 | ;; | |
3671 | *-*-netbsd*) | |
3672 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3673 | ;; | |
3674 | *-*-netware*) | |
3675 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3676 | ;; | |
3677 | *-*-tpf*) | |
3678 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3679 | ;; | |
3680 | *-*-uclinux*) | |
3681 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3682 | ;; | |
3683 | *-*-vxworks*) | |
3684 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3685 | ;; | |
3686 | esac | |
3687 | ||
3688 | case "${target}" in | |
3689 | *-*-chorusos) | |
3690 | ;; | |
38f4c967 | 3691 | aarch64-*-darwin*) |
3692 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3693 | noconfigdirs="$noconfigdirs sim target-rda" | |
3694 | ;; | |
3695 | arm-*-darwin*) | |
3696 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3697 | noconfigdirs="$noconfigdirs sim target-rda" | |
3698 | ;; | |
40c500e1 | 3699 | powerpc-*-darwin*) |
dba2c8ea | 3700 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
d28caca4 | 3701 | noconfigdirs="$noconfigdirs sim target-rda" |
0894307c | 3702 | ;; |
ea864ded | 3703 | i[3456789]86-*-darwin*) |
3704 | noconfigdirs="$noconfigdirs ld gprof" | |
3705 | noconfigdirs="$noconfigdirs sim target-rda" | |
3706 | ;; | |
3707 | x86_64-*-darwin[912]*) | |
d9f9f3af | 3708 | noconfigdirs="$noconfigdirs ld gas gprof" |
3709 | noconfigdirs="$noconfigdirs sim target-rda" | |
3710 | ;; | |
fce068fd | 3711 | *-*-darwin*) |
3712 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3713 | noconfigdirs="$noconfigdirs sim target-rda" | |
fce068fd | 3714 | ;; |
e3a1fe08 | 3715 | *-*-dragonfly*) |
e3a1fe08 | 3716 | ;; |
c01dd063 | 3717 | *-*-freebsd*) |
4ee9c684 | 3718 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3719 | && test -f /usr/local/include/gmp.h; then | |
3720 | with_gmp=/usr/local | |
3721 | fi | |
4ee9c684 | 3722 | ;; |
336577be | 3723 | *-*-kaos*) |
3724 | # Remove unsupported stuff on all kaOS configurations. | |
336577be | 3725 | noconfigdirs="$noconfigdirs target-libgloss" |
3726 | ;; | |
71ab34df | 3727 | *-*-netbsd*) |
71ab34df | 3728 | ;; |
634f7a13 | 3729 | *-*-netware*) |
71ab34df | 3730 | ;; |
1d6aa005 | 3731 | *-*-phoenix*) |
3732 | noconfigdirs="$noconfigdirs target-libgloss" | |
3733 | ;; | |
71ab34df | 3734 | *-*-rtems*) |
f24be480 | 3735 | noconfigdirs="$noconfigdirs target-libgloss" |
d781ea5c | 3736 | # this is not caught below because this stanza matches earlier |
3737 | case $target in | |
3738 | or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;; | |
3739 | esac | |
71ab34df | 3740 | ;; |
9f88bc9d | 3741 | # The tpf target doesn't support gdb yet. |
3742 | *-*-tpf*) | |
d556f192 | 3743 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
9f88bc9d | 3744 | ;; |
688429c4 | 3745 | *-*-uclinux*) |
d556f192 | 3746 | noconfigdirs="$noconfigdirs target-rda" |
688429c4 | 3747 | ;; |
71ab34df | 3748 | *-*-vxworks*) |
71ab34df | 3749 | ;; |
3750 | alpha*-dec-osf*) | |
3751 | # ld works, but does not support shared libraries. | |
71ab34df | 3752 | # gas doesn't generate exception information. |
d556f192 | 3753 | noconfigdirs="$noconfigdirs gas ld" |
71ab34df | 3754 | ;; |
3755 | alpha*-*-*vms*) | |
f24be480 | 3756 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
71ab34df | 3757 | ;; |
71ab34df | 3758 | alpha*-*-*) |
3759 | # newlib is not 64 bit ready | |
f24be480 | 3760 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
71ab34df | 3761 | ;; |
71ab34df | 3762 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
f843f075 | 3763 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
71ab34df | 3764 | ;; |
71ab34df | 3765 | arm-*-pe*) |
f24be480 | 3766 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3767 | ;; |
71ab34df | 3768 | arm-*-riscix*) |
71559dce | 3769 | noconfigdirs="$noconfigdirs ld target-libgloss" |
71ab34df | 3770 | ;; |
fd28e216 | 3771 | avr-*-*) |
3772 | if test x${with_avrlibc} != xno; then | |
3773 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3774 | fi | |
3775 | ;; | |
71ab34df | 3776 | c4x-*-* | tic4x-*-*) |
71559dce | 3777 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3778 | ;; |
71559dce | 3779 | tic54x-*-*) |
3780 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
71ab34df | 3781 | ;; |
71ab34df | 3782 | d10v-*-*) |
71559dce | 3783 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3784 | ;; |
3785 | d30v-*-*) | |
71559dce | 3786 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3787 | ;; |
3788 | fr30-*-elf*) | |
f24be480 | 3789 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3790 | ;; |
6406d366 | 3791 | ft32-*-*) |
3792 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3793 | ;; | |
ca2751b6 | 3794 | moxie-*-*) |
6406d366 | 3795 | noconfigdirs="$noconfigdirs" |
ca2751b6 | 3796 | ;; |
71ab34df | 3797 | h8300*-*-*) |
f24be480 | 3798 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3799 | ;; |
3800 | h8500-*-*) | |
71559dce | 3801 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3802 | ;; |
e8eddfdd | 3803 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
e8eddfdd | 3804 | ;; |
6406d366 | 3805 | hppa*64*-*-hpux*) |
3806 | noconfigdirs="$noconfigdirs gdb" | |
3807 | ;; | |
3808 | hppa*-*-hpux11*) | |
3809 | noconfigdirs="$noconfigdirs gdb ld" | |
3810 | ;; | |
6bd59761 | 3811 | hppa*64*-*-linux*) |
71ab34df | 3812 | ;; |
99684e84 | 3813 | hppa*-*-linux*) |
08261f02 | 3814 | ;; |
71ab34df | 3815 | hppa*-*-*elf* | \ |
71ab34df | 3816 | hppa*-*-lites* | \ |
3817 | hppa*-*-openbsd* | \ | |
3818 | hppa*64*-*-*) | |
71ab34df | 3819 | ;; |
1c5767f1 | 3820 | hppa*-*-pro*) |
1c5767f1 | 3821 | ;; |
71ab34df | 3822 | hppa*-*-*) |
f24be480 | 3823 | noconfigdirs="$noconfigdirs ld" |
71ab34df | 3824 | ;; |
4a9237fb | 3825 | i960-*-*) |
71559dce | 3826 | noconfigdirs="$noconfigdirs gdb" |
4a9237fb | 3827 | ;; |
71ab34df | 3828 | ia64*-*-elf*) |
3829 | # No gdb support yet. | |
6c9785b4 | 3830 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
71ab34df | 3831 | ;; |
3832 | ia64*-**-hpux*) | |
1aca86a6 | 3833 | # No ld support yet. |
6406d366 | 3834 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
71ab34df | 3835 | ;; |
8408ca00 | 3836 | ia64*-*-*vms*) |
3211401d | 3837 | # No ld support yet. |
3838 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
8408ca00 | 3839 | ;; |
ec2eb8fb | 3840 | i[3456789]86-w64-mingw*) |
ec2eb8fb | 3841 | ;; |
3842 | i[3456789]86-*-mingw*) | |
d6d689df | 3843 | target_configdirs="$target_configdirs target-winsup" |
b30fcfae | 3844 | ;; |
71ab34df | 3845 | *-*-cygwin*) |
3846 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
6c9785b4 | 3847 | noconfigdirs="$noconfigdirs target-libgloss" |
2c10944d | 3848 | # always build newlib if winsup directory is present. |
d6d689df | 3849 | if test -d "$srcdir/winsup/cygwin"; then |
2c10944d | 3850 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
e8eddfdd | 3851 | elif test -d "$srcdir/newlib"; then |
d6d689df | 3852 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
2c10944d | 3853 | fi |
b30fcfae | 3854 | ;; |
f74ea578 | 3855 | i[3456789]86-*-pe) |
17b3d2a8 | 3856 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3857 | ;; |
f74ea578 | 3858 | i[3456789]86-*-sco3.2v5*) |
71ab34df | 3859 | # The linker does not yet know about weak symbols in COFF, |
3860 | # and is not configured to handle mixed ELF and COFF. | |
71559dce | 3861 | noconfigdirs="$noconfigdirs ld target-libgloss" |
71ab34df | 3862 | ;; |
f74ea578 | 3863 | i[3456789]86-*-sco*) |
71559dce | 3864 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
71ab34df | 3865 | ;; |
14f27bc6 | 3866 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
71ab34df | 3867 | noconfigdirs="$noconfigdirs target-libgloss" |
3868 | ;; | |
f74ea578 | 3869 | i[3456789]86-*-sysv4*) |
71559dce | 3870 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3871 | ;; |
f74ea578 | 3872 | i[3456789]86-*-beos*) |
d556f192 | 3873 | noconfigdirs="$noconfigdirs gdb" |
602d002b | 3874 | ;; |
ab0da556 | 3875 | i[3456789]86-*-rdos*) |
d556f192 | 3876 | noconfigdirs="$noconfigdirs gdb" |
1c5767f1 | 3877 | ;; |
71ab34df | 3878 | mmix-*-*) |
f24be480 | 3879 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3880 | ;; |
957985d9 | 3881 | mt-*-*) |
f6fa11cb | 3882 | noconfigdirs="$noconfigdirs sim" |
3883 | ;; | |
71ab34df | 3884 | powerpc-*-aix*) |
3885 | # copied from rs6000-*-* entry | |
d556f192 | 3886 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3887 | ;; |
6bd59761 | 3888 | powerpc*-*-winnt* | powerpc*-*-pe*) |
71ab34df | 3889 | target_configdirs="$target_configdirs target-winsup" |
71559dce | 3890 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
71ab34df | 3891 | # always build newlib. |
3892 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3893 | ;; | |
3894 | # This is temporary until we can link against shared libraries | |
3895 | powerpcle-*-solaris*) | |
71559dce | 3896 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
71ab34df | 3897 | ;; |
3898 | powerpc-*-beos*) | |
d556f192 | 3899 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3900 | ;; |
71ab34df | 3901 | rs6000-*-lynxos*) |
d556f192 | 3902 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3903 | ;; |
3904 | rs6000-*-aix*) | |
d556f192 | 3905 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3906 | ;; |
3907 | rs6000-*-*) | |
f24be480 | 3908 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3909 | ;; |
3910 | m68k-apollo-*) | |
71559dce | 3911 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
71ab34df | 3912 | ;; |
ba2b484f | 3913 | microblaze*) |
f24be480 | 3914 | noconfigdirs="$noconfigdirs gprof" |
ba2b484f | 3915 | ;; |
d781ea5c | 3916 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
68c9bc25 | 3917 | if test x$with_newlib = xyes; then |
3918 | noconfigdirs="$noconfigdirs gprof" | |
3919 | fi | |
68c9bc25 | 3920 | ;; |
71ab34df | 3921 | mips*-*-irix5*) |
71559dce | 3922 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
71ab34df | 3923 | ;; |
3924 | mips*-*-irix6*) | |
f24be480 | 3925 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
71ab34df | 3926 | ;; |
71ab34df | 3927 | mips*-*-bsd*) |
d6449910 | 3928 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
71ab34df | 3929 | ;; |
71ab34df | 3930 | mips*-*-linux*) |
71ab34df | 3931 | ;; |
d6449910 | 3932 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3933 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3934 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3935 | ;; | |
71ab34df | 3936 | mips*-*-*) |
f24be480 | 3937 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3938 | ;; |
d781ea5c | 3939 | nds32*-*-*) |
3940 | noconfigdirs="$noconfigdirs gdb" | |
3941 | ;; | |
8ce80784 | 3942 | nvptx*-*-*) |
8ce80784 | 3943 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3944 | ;; | |
d781ea5c | 3945 | or1k*-*-*) |
3946 | noconfigdirs="$noconfigdirs gdb" | |
3947 | ;; | |
9a9b5abf | 3948 | sh-*-*) |
39f6b116 | 3949 | case "${target}" in |
3950 | sh*-*-elf) | |
f24be480 | 3951 | ;; |
39f6b116 | 3952 | *) |
f24be480 | 3953 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
39f6b116 | 3954 | esac |
71ab34df | 3955 | ;; |
71ab34df | 3956 | sparc-*-sunos4*) |
d556f192 | 3957 | if test x${is_cross_compiler} = xno ; then |
71ab34df | 3958 | use_gnu_ld=no |
3959 | fi | |
3960 | ;; | |
fa0a53e3 | 3961 | tic6x-*-*) |
ccdfa490 | 3962 | noconfigdirs="$noconfigdirs sim" |
fa0a53e3 | 3963 | ;; |
2da35515 | 3964 | tilepro*-*-* | tilegx*-*-*) |
e5fa74b2 | 3965 | noconfigdirs="$noconfigdirs sim" |
3966 | ;; | |
71ab34df | 3967 | v810-*-*) |
71559dce | 3968 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
71ab34df | 3969 | ;; |
3970 | vax-*-*) | |
f24be480 | 3971 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
71ab34df | 3972 | ;; |
71ab34df | 3973 | esac |
a8298541 | 3974 | |
71ab34df | 3975 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3976 | # depends upon some newlib header files. | |
3977 | case "${noconfigdirs}" in | |
3978 | *target-libgloss*) ;; | |
3979 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3980 | esac | |
3981 | ||
71ab34df | 3982 | # Work in distributions that contain no compiler tools, like Autoconf. |
71ab34df | 3983 | host_makefile_frag=/dev/null |
3984 | if test -d ${srcdir}/config ; then | |
3985 | case "${host}" in | |
f74ea578 | 3986 | i[3456789]86-*-msdosdjgpp*) |
71ab34df | 3987 | host_makefile_frag="config/mh-djgpp" |
3988 | ;; | |
3989 | *-cygwin*) | |
45043b2b | 3990 | |
cd9a469c | 3991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3992 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
45043b2b | 3993 | echo a >cygwin-cat-check |
82d97a59 | 3994 | if test `cat cygwin-cat-check` = a ; then |
45043b2b | 3995 | rm cygwin-cat-check |
cd9a469c | 3996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3997 | $as_echo "yes" >&6; } | |
45043b2b | 3998 | else |
3999 | rm cygwin-cat-check | |
cd9a469c | 4000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4001 | $as_echo "no" >&6; } | |
4002 | as_fn_error "The cat command does not ignore carriage return characters. | |
45043b2b | 4003 | Please either mount the build directory in binary mode or run the following |
4004 | commands before running any configure script: | |
4005 | set -o igncr | |
4006 | export SHELLOPTS | |
cd9a469c | 4007 | " "$LINENO" 5 |
45043b2b | 4008 | fi |
4009 | ||
71ab34df | 4010 | host_makefile_frag="config/mh-cygwin" |
4011 | ;; | |
5a92bcc2 | 4012 | *-mingw*) |
70d8e49e | 4013 | host_makefile_frag="config/mh-mingw" |
a378fc89 | 4014 | ;; |
bed3355c | 4015 | alpha*-linux*) |
539ded76 | 4016 | host_makefile_frag="config/mh-alpha-linux" |
4017 | ;; | |
d2b94e36 | 4018 | hppa*-hp-hpux10*) |
d2b94e36 | 4019 | host_makefile_frag="config/mh-pa-hpux10" |
71ab34df | 4020 | ;; |
b2240ff6 | 4021 | hppa*-hp-hpux*) |
d2b94e36 | 4022 | host_makefile_frag="config/mh-pa" |
4023 | ;; | |
4024 | hppa*-*) | |
4025 | host_makefile_frag="config/mh-pa" | |
4026 | ;; | |
16463c8d | 4027 | *-*-darwin*) |
4028 | host_makefile_frag="config/mh-darwin" | |
0222d984 | 4029 | ;; |
9d44a802 | 4030 | powerpc-*-aix*) |
4031 | host_makefile_frag="config/mh-ppc-aix" | |
4032 | ;; | |
4033 | rs6000-*-aix*) | |
4034 | host_makefile_frag="config/mh-ppc-aix" | |
4035 | ;; | |
71ab34df | 4036 | esac |
4037 | fi | |
4038 | ||
8e1fea1a | 4039 | if test "${build}" != "${host}" ; then |
93c5e793 | 4040 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4041 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
8e1fea1a | 4042 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
93c5e793 | 4043 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
4044 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
4045 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
5ff5b630 | 4046 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
93c5e793 | 4047 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4048 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4049 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4050 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4051 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4052 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4053 | else | |
4054 | AR_FOR_BUILD="\$(AR)" | |
4055 | AS_FOR_BUILD="\$(AS)" | |
a4af6a58 | 4056 | CC_FOR_BUILD="\$(CC)" |
93c5e793 | 4057 | CXX_FOR_BUILD="\$(CXX)" |
4058 | GCJ_FOR_BUILD="\$(GCJ)" | |
4059 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
5ff5b630 | 4060 | GOC_FOR_BUILD="\$(GOC)" |
93c5e793 | 4061 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4062 | LD_FOR_BUILD="\$(LD)" | |
4063 | NM_FOR_BUILD="\$(NM)" | |
4064 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4065 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4066 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
eae5b2bc | 4067 | fi |
4068 | ||
4069 | ac_ext=c | |
b30fcfae | 4070 | ac_cpp='$CPP $CPPFLAGS' |
4071 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4072 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4073 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4074 | if test -n "$ac_tool_prefix"; then | |
4075 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4076 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
cd9a469c | 4077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4078 | $as_echo_n "checking for $ac_word... " >&6; } | |
4079 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4080 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 4081 | else |
4082 | if test -n "$CC"; then | |
4083 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4084 | else | |
4085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4086 | for as_dir in $PATH | |
4087 | do | |
4088 | IFS=$as_save_IFS | |
4089 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4090 | for ac_exec_ext in '' $ac_executable_extensions; do |
4091 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4092 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
cd9a469c | 4093 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4094 | break 2 |
4095 | fi | |
4096 | done | |
cd9a469c | 4097 | done |
4098 | IFS=$as_save_IFS | |
b30fcfae | 4099 | |
4100 | fi | |
4101 | fi | |
4102 | CC=$ac_cv_prog_CC | |
4103 | if test -n "$CC"; then | |
cd9a469c | 4104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4105 | $as_echo "$CC" >&6; } | |
b30fcfae | 4106 | else |
cd9a469c | 4107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4108 | $as_echo "no" >&6; } | |
b30fcfae | 4109 | fi |
4110 | ||
cd9a469c | 4111 | |
b30fcfae | 4112 | fi |
4113 | if test -z "$ac_cv_prog_CC"; then | |
4114 | ac_ct_CC=$CC | |
a4af6a58 | 4115 | # Extract the first word of "gcc", so it can be a program name with args. |
4116 | set dummy gcc; ac_word=$2 | |
cd9a469c | 4117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4118 | $as_echo_n "checking for $ac_word... " >&6; } | |
4119 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4120 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 4121 | else |
4122 | if test -n "$ac_ct_CC"; then | |
4123 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4124 | else | |
4125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4126 | for as_dir in $PATH | |
4127 | do | |
4128 | IFS=$as_save_IFS | |
4129 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4130 | for ac_exec_ext in '' $ac_executable_extensions; do |
4131 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4132 | ac_cv_prog_ac_ct_CC="gcc" |
cd9a469c | 4133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4134 | break 2 |
4135 | fi | |
4136 | done | |
cd9a469c | 4137 | done |
4138 | IFS=$as_save_IFS | |
b30fcfae | 4139 | |
4140 | fi | |
4141 | fi | |
4142 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4143 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4145 | $as_echo "$ac_ct_CC" >&6; } | |
b30fcfae | 4146 | else |
cd9a469c | 4147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4148 | $as_echo "no" >&6; } | |
b30fcfae | 4149 | fi |
4150 | ||
cd9a469c | 4151 | if test "x$ac_ct_CC" = x; then |
4152 | CC="" | |
4153 | else | |
4154 | case $cross_compiling:$ac_tool_warned in | |
4155 | yes:) | |
4156 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4157 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4158 | ac_tool_warned=yes ;; | |
4159 | esac | |
4160 | CC=$ac_ct_CC | |
4161 | fi | |
b30fcfae | 4162 | else |
4163 | CC="$ac_cv_prog_CC" | |
4164 | fi | |
4165 | ||
4166 | if test -z "$CC"; then | |
cd9a469c | 4167 | if test -n "$ac_tool_prefix"; then |
4168 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b30fcfae | 4169 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
cd9a469c | 4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4171 | $as_echo_n "checking for $ac_word... " >&6; } | |
4172 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4173 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 4174 | else |
4175 | if test -n "$CC"; then | |
4176 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4177 | else | |
b30fcfae | 4178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4179 | for as_dir in $PATH | |
4180 | do | |
4181 | IFS=$as_save_IFS | |
4182 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4183 | for ac_exec_ext in '' $ac_executable_extensions; do |
4184 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4185 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
cd9a469c | 4186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4187 | break 2 |
4188 | fi | |
4189 | done | |
cd9a469c | 4190 | done |
4191 | IFS=$as_save_IFS | |
b30fcfae | 4192 | |
a83ffacf | 4193 | fi |
a83ffacf | 4194 | fi |
b30fcfae | 4195 | CC=$ac_cv_prog_CC |
ae48753c | 4196 | if test -n "$CC"; then |
cd9a469c | 4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4198 | $as_echo "$CC" >&6; } | |
5084f823 | 4199 | else |
cd9a469c | 4200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4201 | $as_echo "no" >&6; } | |
5084f823 | 4202 | fi |
4203 | ||
5084f823 | 4204 | |
cd9a469c | 4205 | fi |
b30fcfae | 4206 | fi |
8e1fea1a | 4207 | if test -z "$CC"; then |
4208 | # Extract the first word of "cc", so it can be a program name with args. | |
4209 | set dummy cc; ac_word=$2 | |
cd9a469c | 4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4211 | $as_echo_n "checking for $ac_word... " >&6; } | |
4212 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4213 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 4214 | else |
4215 | if test -n "$CC"; then | |
4216 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4217 | else | |
a83ffacf | 4218 | ac_prog_rejected=no |
b30fcfae | 4219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4220 | for as_dir in $PATH | |
4221 | do | |
4222 | IFS=$as_save_IFS | |
4223 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4224 | for ac_exec_ext in '' $ac_executable_extensions; do |
4225 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4226 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4227 | ac_prog_rejected=yes | |
4228 | continue | |
4229 | fi | |
4230 | ac_cv_prog_CC="cc" | |
cd9a469c | 4231 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4232 | break 2 |
4233 | fi | |
4234 | done | |
cd9a469c | 4235 | done |
4236 | IFS=$as_save_IFS | |
b30fcfae | 4237 | |
8e1fea1a | 4238 | if test $ac_prog_rejected = yes; then |
4239 | # We found a bogon in the path, so make sure we never use it. | |
4240 | set dummy $ac_cv_prog_CC | |
4241 | shift | |
b30fcfae | 4242 | if test $# != 0; then |
8e1fea1a | 4243 | # We chose a different compiler from the bogus one. |
4244 | # However, it has the same basename, so the bogon will be chosen | |
4245 | # first if we set CC to just the basename; use the full file name. | |
4246 | shift | |
b30fcfae | 4247 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
8e1fea1a | 4248 | fi |
4249 | fi | |
4250 | fi | |
4251 | fi | |
b30fcfae | 4252 | CC=$ac_cv_prog_CC |
8e1fea1a | 4253 | if test -n "$CC"; then |
cd9a469c | 4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4255 | $as_echo "$CC" >&6; } | |
8e1fea1a | 4256 | else |
cd9a469c | 4257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4258 | $as_echo "no" >&6; } | |
8e1fea1a | 4259 | fi |
4260 | ||
cd9a469c | 4261 | |
b30fcfae | 4262 | fi |
4263 | if test -z "$CC"; then | |
4264 | if test -n "$ac_tool_prefix"; then | |
cd9a469c | 4265 | for ac_prog in cl.exe |
b30fcfae | 4266 | do |
4267 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4268 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 4269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4270 | $as_echo_n "checking for $ac_word... " >&6; } | |
4271 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4272 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 4273 | else |
4274 | if test -n "$CC"; then | |
4275 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4276 | else | |
b30fcfae | 4277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4278 | for as_dir in $PATH | |
4279 | do | |
4280 | IFS=$as_save_IFS | |
4281 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4282 | for ac_exec_ext in '' $ac_executable_extensions; do |
4283 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4284 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
cd9a469c | 4285 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4286 | break 2 |
4287 | fi | |
4288 | done | |
cd9a469c | 4289 | done |
4290 | IFS=$as_save_IFS | |
b30fcfae | 4291 | |
8e1fea1a | 4292 | fi |
4293 | fi | |
b30fcfae | 4294 | CC=$ac_cv_prog_CC |
8e1fea1a | 4295 | if test -n "$CC"; then |
cd9a469c | 4296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4297 | $as_echo "$CC" >&6; } | |
b1660f25 | 4298 | else |
cd9a469c | 4299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4300 | $as_echo "no" >&6; } | |
a4af6a58 | 4301 | fi |
ae48753c | 4302 | |
cd9a469c | 4303 | |
b30fcfae | 4304 | test -n "$CC" && break |
4305 | done | |
ae48753c | 4306 | fi |
b30fcfae | 4307 | if test -z "$CC"; then |
4308 | ac_ct_CC=$CC | |
cd9a469c | 4309 | for ac_prog in cl.exe |
b30fcfae | 4310 | do |
4311 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4312 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 4313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4314 | $as_echo_n "checking for $ac_word... " >&6; } | |
4315 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4316 | $as_echo_n "(cached) " >&6 | |
a83ffacf | 4317 | else |
b30fcfae | 4318 | if test -n "$ac_ct_CC"; then |
4319 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
a83ffacf | 4320 | else |
b30fcfae | 4321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4322 | for as_dir in $PATH | |
4323 | do | |
4324 | IFS=$as_save_IFS | |
4325 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4326 | for ac_exec_ext in '' $ac_executable_extensions; do |
4327 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4328 | ac_cv_prog_ac_ct_CC="$ac_prog" |
cd9a469c | 4329 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4330 | break 2 |
4331 | fi | |
4332 | done | |
cd9a469c | 4333 | done |
4334 | IFS=$as_save_IFS | |
b30fcfae | 4335 | |
ae48753c | 4336 | fi |
4337 | fi | |
b30fcfae | 4338 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4339 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 4340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4341 | $as_echo "$ac_ct_CC" >&6; } | |
a4af6a58 | 4342 | else |
cd9a469c | 4343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4344 | $as_echo "no" >&6; } | |
ae48753c | 4345 | fi |
a83ffacf | 4346 | |
cd9a469c | 4347 | |
b30fcfae | 4348 | test -n "$ac_ct_CC" && break |
4349 | done | |
4350 | ||
cd9a469c | 4351 | if test "x$ac_ct_CC" = x; then |
4352 | CC="" | |
4353 | else | |
4354 | case $cross_compiling:$ac_tool_warned in | |
4355 | yes:) | |
4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4357 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4358 | ac_tool_warned=yes ;; | |
4359 | esac | |
4360 | CC=$ac_ct_CC | |
4361 | fi | |
b30fcfae | 4362 | fi |
4363 | ||
4364 | fi | |
4365 | ||
4366 | ||
cd9a469c | 4367 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4368 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4369 | as_fn_error "no acceptable C compiler found in \$PATH | |
4370 | See \`config.log' for more details." "$LINENO" 5; } | |
b30fcfae | 4371 | |
4372 | # Provide some information about the compiler. | |
cd9a469c | 4373 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4374 | set X $ac_compile | |
4375 | ac_compiler=$2 | |
4376 | for ac_option in --version -v -V -qversion; do | |
4377 | { { ac_try="$ac_compiler $ac_option >&5" | |
4378 | case "(($ac_try" in | |
4379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4380 | *) ac_try_echo=$ac_try;; | |
4381 | esac | |
4382 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4383 | $as_echo "$ac_try_echo"; } >&5 | |
4384 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b30fcfae | 4385 | ac_status=$? |
cd9a469c | 4386 | if test -s conftest.err; then |
4387 | sed '10a\ | |
4388 | ... rest of stderr output deleted ... | |
4389 | 10q' conftest.err >conftest.er1 | |
4390 | cat conftest.er1 >&5 | |
4391 | rm -f conftest.er1 conftest.err | |
4392 | fi | |
4393 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4394 | test $ac_status = 0; } | |
4395 | done | |
b30fcfae | 4396 | |
cd9a469c | 4397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4398 | /* end confdefs.h. */ |
4399 | ||
4400 | int | |
4401 | main () | |
4402 | { | |
4403 | ||
4404 | ; | |
4405 | return 0; | |
4406 | } | |
4407 | _ACEOF | |
4408 | ac_clean_files_save=$ac_clean_files | |
cd9a469c | 4409 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
b30fcfae | 4410 | # Try to create an executable without -o first, disregard a.out. |
4411 | # It will help us diagnose broken compilers, and finding out an intuition | |
4412 | # of exeext. | |
cd9a469c | 4413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4414 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4415 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4416 | ||
4417 | # The possible output files: | |
4418 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4419 | ||
4420 | ac_rmfiles= | |
4421 | for ac_file in $ac_files | |
4422 | do | |
4423 | case $ac_file in | |
4424 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4425 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4426 | esac | |
4427 | done | |
4428 | rm -f $ac_rmfiles | |
4429 | ||
4430 | if { { ac_try="$ac_link_default" | |
4431 | case "(($ac_try" in | |
4432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4433 | *) ac_try_echo=$ac_try;; | |
4434 | esac | |
4435 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4436 | $as_echo "$ac_try_echo"; } >&5 | |
4437 | (eval "$ac_link_default") 2>&5 | |
b30fcfae | 4438 | ac_status=$? |
cd9a469c | 4439 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4440 | test $ac_status = 0; }; then : | |
4441 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4442 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4443 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4444 | # so that the user can short-circuit this test for compilers unknown to | |
4445 | # Autoconf. | |
4446 | for ac_file in $ac_files '' | |
b30fcfae | 4447 | do |
4448 | test -f "$ac_file" || continue | |
4449 | case $ac_file in | |
cd9a469c | 4450 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b30fcfae | 4451 | ;; |
4452 | [ab].out ) | |
4453 | # We found the default executable, but exeext='' is most | |
4454 | # certainly right. | |
4455 | break;; | |
4456 | *.* ) | |
cd9a469c | 4457 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4458 | then :; else | |
4459 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4460 | fi | |
4461 | # We set ac_cv_exeext here because the later test for it is not | |
4462 | # safe: cross compilers may not add the suffix if given an `-o' | |
4463 | # argument, so we may need to know it at that point already. | |
4464 | # Even if this section looks crufty: it has the advantage of | |
4465 | # actually working. | |
b30fcfae | 4466 | break;; |
4467 | * ) | |
4468 | break;; | |
4469 | esac | |
4470 | done | |
cd9a469c | 4471 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4472 | ||
b30fcfae | 4473 | else |
cd9a469c | 4474 | ac_file='' |
4475 | fi | |
4476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4477 | $as_echo "$ac_file" >&6; } | |
4478 | if test -z "$ac_file"; then : | |
4479 | $as_echo "$as_me: failed program was:" >&5 | |
b30fcfae | 4480 | sed 's/^/| /' conftest.$ac_ext >&5 |
4481 | ||
cd9a469c | 4482 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4483 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4484 | { as_fn_set_status 77 | |
4485 | as_fn_error "C compiler cannot create executables | |
4486 | See \`config.log' for more details." "$LINENO" 5; }; } | |
b30fcfae | 4487 | fi |
b30fcfae | 4488 | ac_exeext=$ac_cv_exeext |
b30fcfae | 4489 | |
cd9a469c | 4490 | # Check that the compiler produces executables we can run. If not, either |
b30fcfae | 4491 | # the compiler is broken, or we cross compile. |
cd9a469c | 4492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4493 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
b30fcfae | 4494 | # If not cross compiling, check that we can run a simple program. |
4495 | if test "$cross_compiling" != yes; then | |
4496 | if { ac_try='./$ac_file' | |
cd9a469c | 4497 | { { case "(($ac_try" in |
4498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4499 | *) ac_try_echo=$ac_try;; | |
4500 | esac | |
4501 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4502 | $as_echo "$ac_try_echo"; } >&5 | |
4503 | (eval "$ac_try") 2>&5 | |
b30fcfae | 4504 | ac_status=$? |
cd9a469c | 4505 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4506 | test $ac_status = 0; }; }; then | |
b30fcfae | 4507 | cross_compiling=no |
4508 | else | |
4509 | if test "$cross_compiling" = maybe; then | |
4510 | cross_compiling=yes | |
4511 | else | |
cd9a469c | 4512 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4513 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4514 | as_fn_error "cannot run C compiled programs. | |
b30fcfae | 4515 | If you meant to cross compile, use \`--host'. |
cd9a469c | 4516 | See \`config.log' for more details." "$LINENO" 5; } |
b30fcfae | 4517 | fi |
4518 | fi | |
4519 | fi | |
cd9a469c | 4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4521 | $as_echo "yes" >&6; } | |
b30fcfae | 4522 | |
cd9a469c | 4523 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
b30fcfae | 4524 | ac_clean_files=$ac_clean_files_save |
cd9a469c | 4525 | # Check that the compiler produces executables we can run. If not, either |
b30fcfae | 4526 | # the compiler is broken, or we cross compile. |
cd9a469c | 4527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4528 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4530 | $as_echo "$cross_compiling" >&6; } | |
4531 | ||
4532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4533 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4534 | if { { ac_try="$ac_link" | |
4535 | case "(($ac_try" in | |
4536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4537 | *) ac_try_echo=$ac_try;; | |
4538 | esac | |
4539 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4540 | $as_echo "$ac_try_echo"; } >&5 | |
4541 | (eval "$ac_link") 2>&5 | |
b30fcfae | 4542 | ac_status=$? |
cd9a469c | 4543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4544 | test $ac_status = 0; }; then : | |
b30fcfae | 4545 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4546 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4547 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4548 | # `rm'. | |
4549 | for ac_file in conftest.exe conftest conftest.*; do | |
4550 | test -f "$ac_file" || continue | |
4551 | case $ac_file in | |
cd9a469c | 4552 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b30fcfae | 4553 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b30fcfae | 4554 | break;; |
4555 | * ) break;; | |
4556 | esac | |
4557 | done | |
ae48753c | 4558 | else |
cd9a469c | 4559 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4560 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4561 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4562 | See \`config.log' for more details." "$LINENO" 5; } | |
b30fcfae | 4563 | fi |
b30fcfae | 4564 | rm -f conftest$ac_cv_exeext |
cd9a469c | 4565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4566 | $as_echo "$ac_cv_exeext" >&6; } | |
b30fcfae | 4567 | |
4568 | rm -f conftest.$ac_ext | |
4569 | EXEEXT=$ac_cv_exeext | |
4570 | ac_exeext=$EXEEXT | |
cd9a469c | 4571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4572 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4573 | if test "${ac_cv_objext+set}" = set; then : | |
4574 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 4575 | else |
cd9a469c | 4576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4577 | /* end confdefs.h. */ |
4578 | ||
4579 | int | |
4580 | main () | |
4581 | { | |
4582 | ||
4583 | ; | |
4584 | return 0; | |
4585 | } | |
4586 | _ACEOF | |
4587 | rm -f conftest.o conftest.obj | |
cd9a469c | 4588 | if { { ac_try="$ac_compile" |
4589 | case "(($ac_try" in | |
4590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4591 | *) ac_try_echo=$ac_try;; | |
4592 | esac | |
4593 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4594 | $as_echo "$ac_try_echo"; } >&5 | |
4595 | (eval "$ac_compile") 2>&5 | |
b30fcfae | 4596 | ac_status=$? |
cd9a469c | 4597 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4598 | test $ac_status = 0; }; then : | |
4599 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4600 | test -f "$ac_file" || continue; | |
b30fcfae | 4601 | case $ac_file in |
cd9a469c | 4602 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b30fcfae | 4603 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4604 | break;; | |
4605 | esac | |
4606 | done | |
4607 | else | |
cd9a469c | 4608 | $as_echo "$as_me: failed program was:" >&5 |
b30fcfae | 4609 | sed 's/^/| /' conftest.$ac_ext >&5 |
4610 | ||
cd9a469c | 4611 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4612 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4613 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4614 | See \`config.log' for more details." "$LINENO" 5; } | |
b30fcfae | 4615 | fi |
b30fcfae | 4616 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4617 | fi | |
cd9a469c | 4618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4619 | $as_echo "$ac_cv_objext" >&6; } | |
b30fcfae | 4620 | OBJEXT=$ac_cv_objext |
4621 | ac_objext=$OBJEXT | |
cd9a469c | 4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4623 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4624 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4625 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 4626 | else |
cd9a469c | 4627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4628 | /* end confdefs.h. */ |
4629 | ||
4630 | int | |
4631 | main () | |
4632 | { | |
4633 | #ifndef __GNUC__ | |
4634 | choke me | |
4635 | #endif | |
4636 | ||
4637 | ; | |
4638 | return 0; | |
4639 | } | |
4640 | _ACEOF | |
cd9a469c | 4641 | if ac_fn_c_try_compile "$LINENO"; then : |
b30fcfae | 4642 | ac_compiler_gnu=yes |
4643 | else | |
cd9a469c | 4644 | ac_compiler_gnu=no |
b30fcfae | 4645 | fi |
cd9a469c | 4646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b30fcfae | 4647 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4648 | ||
4649 | fi | |
cd9a469c | 4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4651 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4652 | if test $ac_compiler_gnu = yes; then | |
4653 | GCC=yes | |
4654 | else | |
4655 | GCC= | |
4656 | fi | |
b30fcfae | 4657 | ac_test_CFLAGS=${CFLAGS+set} |
4658 | ac_save_CFLAGS=$CFLAGS | |
cd9a469c | 4659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4660 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4661 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4662 | $as_echo_n "(cached) " >&6 | |
4663 | else | |
4664 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4665 | ac_c_werror_flag=yes | |
4666 | ac_cv_prog_cc_g=no | |
4667 | CFLAGS="-g" | |
4668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b30fcfae | 4669 | /* end confdefs.h. */ |
4670 | ||
4671 | int | |
4672 | main () | |
4673 | { | |
4674 | ||
4675 | ; | |
4676 | return 0; | |
4677 | } | |
4678 | _ACEOF | |
cd9a469c | 4679 | if ac_fn_c_try_compile "$LINENO"; then : |
8e1fea1a | 4680 | ac_cv_prog_cc_g=yes |
4681 | else | |
cd9a469c | 4682 | CFLAGS="" |
4683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4684 | /* end confdefs.h. */ | |
4685 | ||
4686 | int | |
4687 | main () | |
4688 | { | |
4689 | ||
4690 | ; | |
4691 | return 0; | |
4692 | } | |
4693 | _ACEOF | |
4694 | if ac_fn_c_try_compile "$LINENO"; then : | |
4695 | ||
4696 | else | |
4697 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4698 | CFLAGS="-g" | |
4699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4700 | /* end confdefs.h. */ | |
ae48753c | 4701 | |
cd9a469c | 4702 | int |
4703 | main () | |
4704 | { | |
4705 | ||
4706 | ; | |
4707 | return 0; | |
4708 | } | |
4709 | _ACEOF | |
4710 | if ac_fn_c_try_compile "$LINENO"; then : | |
4711 | ac_cv_prog_cc_g=yes | |
4712 | fi | |
4713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a83ffacf | 4714 | fi |
cd9a469c | 4715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b30fcfae | 4716 | fi |
cd9a469c | 4717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4718 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4719 | fi | |
4720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4721 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
8e1fea1a | 4722 | if test "$ac_test_CFLAGS" = set; then |
b30fcfae | 4723 | CFLAGS=$ac_save_CFLAGS |
8e1fea1a | 4724 | elif test $ac_cv_prog_cc_g = yes; then |
4725 | if test "$GCC" = yes; then | |
4726 | CFLAGS="-g -O2" | |
4727 | else | |
4728 | CFLAGS="-g" | |
4729 | fi | |
4730 | else | |
4731 | if test "$GCC" = yes; then | |
4732 | CFLAGS="-O2" | |
4733 | else | |
4734 | CFLAGS= | |
4735 | fi | |
4736 | fi | |
cd9a469c | 4737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4738 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4739 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4740 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 4741 | else |
cd9a469c | 4742 | ac_cv_prog_cc_c89=no |
b30fcfae | 4743 | ac_save_CC=$CC |
cd9a469c | 4744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4745 | /* end confdefs.h. */ |
4746 | #include <stdarg.h> | |
4747 | #include <stdio.h> | |
4748 | #include <sys/types.h> | |
4749 | #include <sys/stat.h> | |
4750 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4751 | struct buf { int x; }; | |
4752 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4753 | static char *e (p, i) | |
4754 | char **p; | |
4755 | int i; | |
4756 | { | |
4757 | return p[i]; | |
4758 | } | |
4759 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4760 | { | |
4761 | char *s; | |
4762 | va_list v; | |
4763 | va_start (v,p); | |
4764 | s = g (p, va_arg (v,int)); | |
4765 | va_end (v); | |
4766 | return s; | |
4767 | } | |
4768 | ||
4769 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4770 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4771 | These don't provoke an error unfortunately, instead are silently treated | |
cd9a469c | 4772 | as 'x'. The following induces an error, until -std is added to get |
b30fcfae | 4773 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4774 | array size at least. It's necessary to write '\x00'==0 to get something | |
cd9a469c | 4775 | that's true only with -std. */ |
b30fcfae | 4776 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4777 | ||
cd9a469c | 4778 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4779 | inside strings and character constants. */ | |
4780 | #define FOO(x) 'x' | |
4781 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4782 | ||
b30fcfae | 4783 | int test (int i, double x); |
4784 | struct s1 {int (*f) (int a);}; | |
4785 | struct s2 {int (*f) (double a);}; | |
4786 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4787 | int argc; | |
4788 | char **argv; | |
4789 | int | |
4790 | main () | |
4791 | { | |
4792 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4793 | ; | |
4794 | return 0; | |
4795 | } | |
4796 | _ACEOF | |
cd9a469c | 4797 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4798 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b30fcfae | 4799 | do |
4800 | CC="$ac_save_CC $ac_arg" | |
cd9a469c | 4801 | if ac_fn_c_try_compile "$LINENO"; then : |
4802 | ac_cv_prog_cc_c89=$ac_arg | |
b30fcfae | 4803 | fi |
cd9a469c | 4804 | rm -f core conftest.err conftest.$ac_objext |
4805 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b30fcfae | 4806 | done |
cd9a469c | 4807 | rm -f conftest.$ac_ext |
b30fcfae | 4808 | CC=$ac_save_CC |
4809 | ||
4810 | fi | |
cd9a469c | 4811 | # AC_CACHE_VAL |
4812 | case "x$ac_cv_prog_cc_c89" in | |
4813 | x) | |
4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4815 | $as_echo "none needed" >&6; } ;; | |
4816 | xno) | |
4817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4818 | $as_echo "unsupported" >&6; } ;; | |
b30fcfae | 4819 | *) |
cd9a469c | 4820 | CC="$CC $ac_cv_prog_cc_c89" |
4821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4822 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b30fcfae | 4823 | esac |
cd9a469c | 4824 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b30fcfae | 4825 | |
5084f823 | 4826 | fi |
4827 | ||
5084f823 | 4828 | ac_ext=c |
4829 | ac_cpp='$CPP $CPPFLAGS' | |
4830 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4831 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4832 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4833 | ||
cd9a469c | 4834 | ac_ext=cpp |
5084f823 | 4835 | ac_cpp='$CXXCPP $CPPFLAGS' |
4836 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4837 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4838 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
cd9a469c | 4839 | if test -z "$CXX"; then |
4840 | if test -n "$CCC"; then | |
4841 | CXX=$CCC | |
4842 | else | |
4843 | if test -n "$ac_tool_prefix"; then | |
4844 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5084f823 | 4845 | do |
4846 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4847 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4849 | $as_echo_n "checking for $ac_word... " >&6; } | |
4850 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4851 | $as_echo_n "(cached) " >&6 | |
5084f823 | 4852 | else |
4853 | if test -n "$CXX"; then | |
4854 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4855 | else | |
4856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4857 | for as_dir in $PATH | |
4858 | do | |
4859 | IFS=$as_save_IFS | |
4860 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4861 | for ac_exec_ext in '' $ac_executable_extensions; do |
4862 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5084f823 | 4863 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
cd9a469c | 4864 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5084f823 | 4865 | break 2 |
4866 | fi | |
4867 | done | |
cd9a469c | 4868 | done |
4869 | IFS=$as_save_IFS | |
8e1fea1a | 4870 | |
eae5b2bc | 4871 | fi |
4872 | fi | |
4873 | CXX=$ac_cv_prog_CXX | |
4874 | if test -n "$CXX"; then | |
cd9a469c | 4875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4876 | $as_echo "$CXX" >&6; } | |
eae5b2bc | 4877 | else |
cd9a469c | 4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4879 | $as_echo "no" >&6; } | |
eae5b2bc | 4880 | fi |
4881 | ||
cd9a469c | 4882 | |
eae5b2bc | 4883 | test -n "$CXX" && break |
4884 | done | |
4885 | fi | |
4886 | if test -z "$CXX"; then | |
4887 | ac_ct_CXX=$CXX | |
cd9a469c | 4888 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
eae5b2bc | 4889 | do |
4890 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4891 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4893 | $as_echo_n "checking for $ac_word... " >&6; } | |
4894 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4895 | $as_echo_n "(cached) " >&6 | |
eae5b2bc | 4896 | else |
4897 | if test -n "$ac_ct_CXX"; then | |
4898 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4899 | else | |
4900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4901 | for as_dir in $PATH | |
4902 | do | |
4903 | IFS=$as_save_IFS | |
4904 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4905 | for ac_exec_ext in '' $ac_executable_extensions; do |
4906 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
eae5b2bc | 4907 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
cd9a469c | 4908 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
eae5b2bc | 4909 | break 2 |
4910 | fi | |
4911 | done | |
cd9a469c | 4912 | done |
4913 | IFS=$as_save_IFS | |
eae5b2bc | 4914 | |
4915 | fi | |
4916 | fi | |
4917 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4918 | if test -n "$ac_ct_CXX"; then | |
cd9a469c | 4919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4920 | $as_echo "$ac_ct_CXX" >&6; } | |
eae5b2bc | 4921 | else |
cd9a469c | 4922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4923 | $as_echo "no" >&6; } | |
eae5b2bc | 4924 | fi |
4925 | ||
cd9a469c | 4926 | |
eae5b2bc | 4927 | test -n "$ac_ct_CXX" && break |
4928 | done | |
eae5b2bc | 4929 | |
cd9a469c | 4930 | if test "x$ac_ct_CXX" = x; then |
4931 | CXX="g++" | |
4932 | else | |
4933 | case $cross_compiling:$ac_tool_warned in | |
4934 | yes:) | |
4935 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4936 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4937 | ac_tool_warned=yes ;; | |
4938 | esac | |
4939 | CXX=$ac_ct_CXX | |
4940 | fi | |
eae5b2bc | 4941 | fi |
4942 | ||
cd9a469c | 4943 | fi |
4944 | fi | |
eae5b2bc | 4945 | # Provide some information about the compiler. |
cd9a469c | 4946 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4947 | set X $ac_compile | |
4948 | ac_compiler=$2 | |
4949 | for ac_option in --version -v -V -qversion; do | |
4950 | { { ac_try="$ac_compiler $ac_option >&5" | |
4951 | case "(($ac_try" in | |
4952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4953 | *) ac_try_echo=$ac_try;; | |
4954 | esac | |
4955 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4956 | $as_echo "$ac_try_echo"; } >&5 | |
4957 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
eae5b2bc | 4958 | ac_status=$? |
cd9a469c | 4959 | if test -s conftest.err; then |
4960 | sed '10a\ | |
4961 | ... rest of stderr output deleted ... | |
4962 | 10q' conftest.err >conftest.er1 | |
4963 | cat conftest.er1 >&5 | |
4964 | rm -f conftest.er1 conftest.err | |
4965 | fi | |
4966 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4967 | test $ac_status = 0; } | |
4968 | done | |
eae5b2bc | 4969 | |
cd9a469c | 4970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4971 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4972 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4973 | $as_echo_n "(cached) " >&6 | |
eae5b2bc | 4974 | else |
cd9a469c | 4975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eae5b2bc | 4976 | /* end confdefs.h. */ |
4977 | ||
4978 | int | |
4979 | main () | |
4980 | { | |
4981 | #ifndef __GNUC__ | |
4982 | choke me | |
4983 | #endif | |
4984 | ||
4985 | ; | |
4986 | return 0; | |
4987 | } | |
4988 | _ACEOF | |
cd9a469c | 4989 | if ac_fn_cxx_try_compile "$LINENO"; then : |
eae5b2bc | 4990 | ac_compiler_gnu=yes |
4991 | else | |
cd9a469c | 4992 | ac_compiler_gnu=no |
eae5b2bc | 4993 | fi |
cd9a469c | 4994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
eae5b2bc | 4995 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4996 | ||
4997 | fi | |
cd9a469c | 4998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4999 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5000 | if test $ac_compiler_gnu = yes; then | |
5001 | GXX=yes | |
5002 | else | |
5003 | GXX= | |
5004 | fi | |
eae5b2bc | 5005 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5006 | ac_save_CXXFLAGS=$CXXFLAGS | |
cd9a469c | 5007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5008 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
5009 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
5010 | $as_echo_n "(cached) " >&6 | |
5011 | else | |
5012 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5013 | ac_cxx_werror_flag=yes | |
5014 | ac_cv_prog_cxx_g=no | |
5015 | CXXFLAGS="-g" | |
5016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eae5b2bc | 5017 | /* end confdefs.h. */ |
5018 | ||
5019 | int | |
5020 | main () | |
5021 | { | |
5022 | ||
5023 | ; | |
5024 | return 0; | |
5025 | } | |
5026 | _ACEOF | |
cd9a469c | 5027 | if ac_fn_cxx_try_compile "$LINENO"; then : |
eae5b2bc | 5028 | ac_cv_prog_cxx_g=yes |
5029 | else | |
cd9a469c | 5030 | CXXFLAGS="" |
5031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eae5b2bc | 5032 | /* end confdefs.h. */ |
cd9a469c | 5033 | |
eae5b2bc | 5034 | int |
5035 | main () | |
5036 | { | |
cd9a469c | 5037 | |
eae5b2bc | 5038 | ; |
5039 | return 0; | |
5040 | } | |
5041 | _ACEOF | |
cd9a469c | 5042 | if ac_fn_cxx_try_compile "$LINENO"; then : |
2f8725b0 | 5043 | |
cd9a469c | 5044 | else |
5045 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5046 | CXXFLAGS="-g" | |
5047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eae5b2bc | 5048 | /* end confdefs.h. */ |
cd9a469c | 5049 | |
eae5b2bc | 5050 | int |
5051 | main () | |
5052 | { | |
cd9a469c | 5053 | |
eae5b2bc | 5054 | ; |
5055 | return 0; | |
5056 | } | |
5057 | _ACEOF | |
cd9a469c | 5058 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5059 | ac_cv_prog_cxx_g=yes | |
570af75a | 5060 | fi |
cd9a469c | 5061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5062 | fi | |
5063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5064 | fi | |
5065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5066 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5067 | fi | |
5068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5069 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5070 | if test "$ac_test_CXXFLAGS" = set; then | |
5071 | CXXFLAGS=$ac_save_CXXFLAGS | |
5072 | elif test $ac_cv_prog_cxx_g = yes; then | |
5073 | if test "$GXX" = yes; then | |
5074 | CXXFLAGS="-g -O2" | |
5075 | else | |
5076 | CXXFLAGS="-g" | |
5077 | fi | |
5078 | else | |
5079 | if test "$GXX" = yes; then | |
5080 | CXXFLAGS="-O2" | |
5081 | else | |
5082 | CXXFLAGS= | |
5083 | fi | |
eae5b2bc | 5084 | fi |
eae5b2bc | 5085 | ac_ext=c |
5086 | ac_cpp='$CPP $CPPFLAGS' | |
5087 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5088 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5089 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5090 | ||
5091 | ||
5092 | # We must set the default linker to the linker used by gcc for the correct | |
5093 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5094 | # set the LD default to the ld used by gcc. | |
5095 | if test -z "$LD"; then | |
5096 | if test "$GCC" = yes; then | |
5097 | case $build in | |
5098 | *-*-mingw*) | |
5099 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5100 | *) | |
5101 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5102 | esac | |
5103 | case $gcc_prog_ld in | |
5104 | # Accept absolute paths. | |
5105 | [\\/]* | [A-Za-z]:[\\/]*) | |
5106 | LD="$gcc_prog_ld" ;; | |
5107 | esac | |
5108 | fi | |
2f8725b0 | 5109 | fi |
5110 | ||
13687c85 | 5111 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5112 | have_static_libs=no | |
5113 | if test "$GCC" = yes; then | |
5114 | saved_LDFLAGS="$LDFLAGS" | |
5115 | ||
5116 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5118 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5119 | ac_ext=cpp | |
5120 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5121 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5122 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5123 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5124 | ||
5125 | ||
5126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5127 | /* end confdefs.h. */ | |
74f1ea54 | 5128 | |
5129 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5130 | #error -static-libstdc++ not implemented | |
5131 | #endif | |
13687c85 | 5132 | int main() {} |
5133 | _ACEOF | |
5134 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5136 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5137 | else | |
5138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5139 | $as_echo "no" >&6; } | |
5140 | fi | |
5141 | rm -f core conftest.err conftest.$ac_objext \ | |
5142 | conftest$ac_exeext conftest.$ac_ext | |
5143 | ac_ext=c | |
5144 | ac_cpp='$CPP $CPPFLAGS' | |
5145 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5146 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5147 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5148 | ||
5149 | ||
5150 | LDFLAGS="$saved_LDFLAGS" | |
5151 | fi | |
5152 | ||
2f8725b0 | 5153 | |
5154 | ||
8e1fea1a | 5155 | |
b30fcfae | 5156 | if test -n "$ac_tool_prefix"; then |
5157 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
8e1fea1a | 5158 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
cd9a469c | 5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5160 | $as_echo_n "checking for $ac_word... " >&6; } | |
5161 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
5162 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 5163 | else |
5164 | if test -n "$GNATBIND"; then | |
5165 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5166 | else | |
b30fcfae | 5167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5168 | for as_dir in $PATH | |
5169 | do | |
5170 | IFS=$as_save_IFS | |
5171 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5172 | for ac_exec_ext in '' $ac_executable_extensions; do |
5173 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 5174 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
cd9a469c | 5175 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5176 | break 2 |
5177 | fi | |
5178 | done | |
cd9a469c | 5179 | done |
5180 | IFS=$as_save_IFS | |
b30fcfae | 5181 | |
8e1fea1a | 5182 | fi |
5183 | fi | |
b30fcfae | 5184 | GNATBIND=$ac_cv_prog_GNATBIND |
8e1fea1a | 5185 | if test -n "$GNATBIND"; then |
cd9a469c | 5186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5187 | $as_echo "$GNATBIND" >&6; } | |
8e1fea1a | 5188 | else |
cd9a469c | 5189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5190 | $as_echo "no" >&6; } | |
8e1fea1a | 5191 | fi |
5192 | ||
cd9a469c | 5193 | |
b30fcfae | 5194 | fi |
8e1fea1a | 5195 | if test -z "$ac_cv_prog_GNATBIND"; then |
b30fcfae | 5196 | ac_ct_GNATBIND=$GNATBIND |
8e1fea1a | 5197 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5198 | set dummy gnatbind; ac_word=$2 | |
cd9a469c | 5199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5200 | $as_echo_n "checking for $ac_word... " >&6; } | |
5201 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
5202 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 5203 | else |
b30fcfae | 5204 | if test -n "$ac_ct_GNATBIND"; then |
5205 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
8e1fea1a | 5206 | else |
b30fcfae | 5207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5208 | for as_dir in $PATH | |
5209 | do | |
5210 | IFS=$as_save_IFS | |
5211 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5212 | for ac_exec_ext in '' $ac_executable_extensions; do |
5213 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 5214 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
cd9a469c | 5215 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5216 | break 2 |
5217 | fi | |
5218 | done | |
cd9a469c | 5219 | done |
5220 | IFS=$as_save_IFS | |
b30fcfae | 5221 | |
8e1fea1a | 5222 | fi |
5223 | fi | |
b30fcfae | 5224 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5225 | if test -n "$ac_ct_GNATBIND"; then | |
cd9a469c | 5226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5227 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
8e1fea1a | 5228 | else |
cd9a469c | 5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5230 | $as_echo "no" >&6; } | |
8e1fea1a | 5231 | fi |
5232 | ||
cd9a469c | 5233 | if test "x$ac_ct_GNATBIND" = x; then |
5234 | GNATBIND="no" | |
5235 | else | |
5236 | case $cross_compiling:$ac_tool_warned in | |
5237 | yes:) | |
5238 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5239 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5240 | ac_tool_warned=yes ;; | |
5241 | esac | |
5242 | GNATBIND=$ac_ct_GNATBIND | |
5243 | fi | |
8e1fea1a | 5244 | else |
b30fcfae | 5245 | GNATBIND="$ac_cv_prog_GNATBIND" |
8e1fea1a | 5246 | fi |
5247 | ||
b30fcfae | 5248 | if test -n "$ac_tool_prefix"; then |
5249 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
a18b2c54 | 5250 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
cd9a469c | 5251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5252 | $as_echo_n "checking for $ac_word... " >&6; } | |
5253 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
5254 | $as_echo_n "(cached) " >&6 | |
a18b2c54 | 5255 | else |
5256 | if test -n "$GNATMAKE"; then | |
5257 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5258 | else | |
b30fcfae | 5259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5260 | for as_dir in $PATH | |
5261 | do | |
5262 | IFS=$as_save_IFS | |
5263 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5264 | for ac_exec_ext in '' $ac_executable_extensions; do |
5265 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 5266 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
cd9a469c | 5267 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5268 | break 2 |
5269 | fi | |
5270 | done | |
cd9a469c | 5271 | done |
5272 | IFS=$as_save_IFS | |
b30fcfae | 5273 | |
a18b2c54 | 5274 | fi |
5275 | fi | |
b30fcfae | 5276 | GNATMAKE=$ac_cv_prog_GNATMAKE |
a18b2c54 | 5277 | if test -n "$GNATMAKE"; then |
cd9a469c | 5278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5279 | $as_echo "$GNATMAKE" >&6; } | |
a18b2c54 | 5280 | else |
cd9a469c | 5281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5282 | $as_echo "no" >&6; } | |
a18b2c54 | 5283 | fi |
5284 | ||
cd9a469c | 5285 | |
b30fcfae | 5286 | fi |
a18b2c54 | 5287 | if test -z "$ac_cv_prog_GNATMAKE"; then |
b30fcfae | 5288 | ac_ct_GNATMAKE=$GNATMAKE |
a18b2c54 | 5289 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5290 | set dummy gnatmake; ac_word=$2 | |
cd9a469c | 5291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5292 | $as_echo_n "checking for $ac_word... " >&6; } | |
5293 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
5294 | $as_echo_n "(cached) " >&6 | |
a18b2c54 | 5295 | else |
b30fcfae | 5296 | if test -n "$ac_ct_GNATMAKE"; then |
5297 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
a18b2c54 | 5298 | else |
b30fcfae | 5299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5300 | for as_dir in $PATH | |
5301 | do | |
5302 | IFS=$as_save_IFS | |
5303 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5304 | for ac_exec_ext in '' $ac_executable_extensions; do |
5305 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 5306 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
cd9a469c | 5307 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5308 | break 2 |
5309 | fi | |
5310 | done | |
cd9a469c | 5311 | done |
5312 | IFS=$as_save_IFS | |
b30fcfae | 5313 | |
a18b2c54 | 5314 | fi |
5315 | fi | |
b30fcfae | 5316 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5317 | if test -n "$ac_ct_GNATMAKE"; then | |
cd9a469c | 5318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5319 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
a18b2c54 | 5320 | else |
cd9a469c | 5321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5322 | $as_echo "no" >&6; } | |
a18b2c54 | 5323 | fi |
5324 | ||
cd9a469c | 5325 | if test "x$ac_ct_GNATMAKE" = x; then |
5326 | GNATMAKE="no" | |
5327 | else | |
5328 | case $cross_compiling:$ac_tool_warned in | |
5329 | yes:) | |
5330 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5331 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5332 | ac_tool_warned=yes ;; | |
5333 | esac | |
5334 | GNATMAKE=$ac_ct_GNATMAKE | |
5335 | fi | |
a18b2c54 | 5336 | else |
b30fcfae | 5337 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
a18b2c54 | 5338 | fi |
5339 | ||
cd9a469c | 5340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5341 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
5342 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
5343 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 5344 | else |
5345 | cat >conftest.adb <<EOF | |
5346 | procedure conftest is begin null; end conftest; | |
5347 | EOF | |
5348 | acx_cv_cc_gcc_supports_ada=no | |
5349 | # There is a bug in old released versions of GCC which causes the | |
5350 | # driver to exit successfully when the appropriate language module | |
5351 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5352 | # Therefore we must check for the error message as well as an | |
5353 | # unsuccessful exit. | |
216de822 | 5354 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5355 | # given a .adb file, but produce no object file. So we must check | |
5356 | # if an object file was really produced to guard against this. | |
8e1fea1a | 5357 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
216de822 | 5358 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
8e1fea1a | 5359 | acx_cv_cc_gcc_supports_ada=yes |
8e1fea1a | 5360 | fi |
5361 | rm -f conftest.* | |
5362 | fi | |
cd9a469c | 5363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5364 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
8e1fea1a | 5365 | |
9d5fd7d0 | 5366 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
8e1fea1a | 5367 | have_gnat=yes |
5368 | else | |
5369 | have_gnat=no | |
5370 | fi | |
5371 | ||
cd9a469c | 5372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5373 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5374 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5375 | $as_echo_n "(cached) " >&6 | |
7bcc3b4a | 5376 | else |
5377 | echo abfoo >t1 | |
5378 | echo cdfoo >t2 | |
5379 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
697dfd2c | 5380 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5381 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5382 | : | |
5383 | else | |
5384 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5385 | fi | |
5386 | fi | |
7bcc3b4a | 5387 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5388 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
697dfd2c | 5389 | : |
7bcc3b4a | 5390 | else |
5391 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5392 | fi | |
5393 | fi | |
5394 | rm t1 t2 | |
5395 | ||
5396 | fi | |
cd9a469c | 5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5398 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
7bcc3b4a | 5399 | do_compare="$gcc_cv_prog_cmp_skip" |
5400 | ||
5401 | ||
8e1fea1a | 5402 | |
6c59dfa4 | 5403 | # Check whether --enable-bootstrap was given. |
5404 | if test "${enable_bootstrap+set}" = set; then : | |
5405 | enableval=$enable_bootstrap; | |
5406 | else | |
5407 | enable_bootstrap=default | |
5408 | fi | |
5409 | ||
5410 | ||
5411 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
d7c9b4c1 | 5412 | if test -r $srcdir/gcc/configure; then |
5413 | have_compiler=yes | |
5414 | else | |
5415 | have_compiler=no | |
5416 | fi | |
6c59dfa4 | 5417 | |
5418 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5419 | *:*:*:no) ;; | |
5420 | ||
5421 | # Default behavior. Enable bootstrap if we have a compiler | |
5422 | # and we are in a native configuration. | |
5423 | yes:$build:$build:default) | |
5424 | enable_bootstrap=yes ;; | |
5425 | ||
5426 | *:*:*:default) | |
5427 | enable_bootstrap=no ;; | |
5428 | ||
5429 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5430 | yes:$build:$build:yes) | |
5431 | ;; | |
5432 | ||
5433 | # Other configurations, but we have a compiler. Assume the user knows | |
5434 | # what he's doing. | |
5435 | yes:*:*:yes) | |
5436 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5437 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5438 | ;; | |
5439 | ||
5440 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5441 | no:*:*:yes) | |
5442 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5443 | ||
5444 | # Fail if wrong command line | |
5445 | *) | |
5446 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5447 | ;; | |
5448 | esac | |
5449 | ||
27590679 | 5450 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5451 | # C++98 compiler can still start the bootstrap. | |
5452 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
dce53dbc | 5453 | CXX="$CXX -std=gnu++98" |
27590679 | 5454 | fi |
5455 | ||
c3fc6a63 | 5456 | # Used for setting $lt_cv_objdir |
5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5458 | $as_echo_n "checking for objdir... " >&6; } | |
5459 | if test "${lt_cv_objdir+set}" = set; then : | |
5460 | $as_echo_n "(cached) " >&6 | |
5461 | else | |
5462 | rm -f .libs 2>/dev/null | |
5463 | mkdir .libs 2>/dev/null | |
5464 | if test -d .libs; then | |
5465 | lt_cv_objdir=.libs | |
5466 | else | |
5467 | # MS-DOS does not allow filenames that begin with a dot. | |
5468 | lt_cv_objdir=_libs | |
5469 | fi | |
5470 | rmdir .libs 2>/dev/null | |
5471 | fi | |
5472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5473 | $as_echo "$lt_cv_objdir" >&6; } | |
5474 | objdir=$lt_cv_objdir | |
5475 | ||
5476 | ||
5477 | ||
5478 | ||
5479 | ||
5480 | cat >>confdefs.h <<_ACEOF | |
5481 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5482 | _ACEOF | |
5483 | ||
5484 | ||
5485 | ||
7601a55c | 5486 | # Check for GMP, MPFR and MPC |
16de6a81 | 5487 | gmplibs="-lmpc -lmpfr -lgmp" |
4ee9c684 | 5488 | gmpinc= |
d45318b3 | 5489 | have_gmp=no |
7601a55c | 5490 | |
5491 | # Specify a location for mpc | |
5492 | # check for this first so it ends up on the link line before mpfr. | |
5493 | ||
cd9a469c | 5494 | # Check whether --with-mpc was given. |
5495 | if test "${with_mpc+set}" = set; then : | |
5496 | withval=$with_mpc; | |
5497 | fi | |
7601a55c | 5498 | |
7601a55c | 5499 | |
73f813e1 | 5500 | # Check whether --with-mpc-include was given. |
cd9a469c | 5501 | if test "${with_mpc_include+set}" = set; then : |
5502 | withval=$with_mpc_include; | |
5503 | fi | |
7601a55c | 5504 | |
7601a55c | 5505 | |
73f813e1 | 5506 | # Check whether --with-mpc-lib was given. |
cd9a469c | 5507 | if test "${with_mpc_lib+set}" = set; then : |
5508 | withval=$with_mpc_lib; | |
5509 | fi | |
7601a55c | 5510 | |
7601a55c | 5511 | |
5512 | if test "x$with_mpc" != x; then | |
16de6a81 | 5513 | gmplibs="-L$with_mpc/lib $gmplibs" |
5514 | gmpinc="-I$with_mpc/include $gmpinc" | |
7601a55c | 5515 | fi |
5516 | if test "x$with_mpc_include" != x; then | |
16de6a81 | 5517 | gmpinc="-I$with_mpc_include $gmpinc" |
7601a55c | 5518 | fi |
5519 | if test "x$with_mpc_lib" != x; then | |
16de6a81 | 5520 | gmplibs="-L$with_mpc_lib $gmplibs" |
7601a55c | 5521 | fi |
5522 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
c3fc6a63 | 5523 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
16de6a81 | 5524 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
7601a55c | 5525 | # Do not test the mpc version. Assume that it is sufficient, since |
5526 | # it is in the source tree, and the library has not been built yet | |
5527 | # but it would be included on the link line in the version check below | |
5528 | # hence making the test fail. | |
16de6a81 | 5529 | have_gmp=yes |
7601a55c | 5530 | fi |
d45318b3 | 5531 | |
5ca838b8 | 5532 | # Specify a location for mpfr |
5533 | # check for this first so it ends up on the link line before gmp. | |
b30fcfae | 5534 | |
cd9a469c | 5535 | # Check whether --with-mpfr-dir was given. |
5536 | if test "${with_mpfr_dir+set}" = set; then : | |
5537 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5538 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5539 | fi | |
5540 | ||
5ca838b8 | 5541 | |
5542 | ||
cd9a469c | 5543 | # Check whether --with-mpfr was given. |
5544 | if test "${with_mpfr+set}" = set; then : | |
5545 | withval=$with_mpfr; | |
5546 | fi | |
b30fcfae | 5547 | |
5ca838b8 | 5548 | |
73f813e1 | 5549 | # Check whether --with-mpfr-include was given. |
cd9a469c | 5550 | if test "${with_mpfr_include+set}" = set; then : |
5551 | withval=$with_mpfr_include; | |
5552 | fi | |
b30fcfae | 5553 | |
a5144c1d | 5554 | |
73f813e1 | 5555 | # Check whether --with-mpfr-lib was given. |
cd9a469c | 5556 | if test "${with_mpfr_lib+set}" = set; then : |
5557 | withval=$with_mpfr_lib; | |
5558 | fi | |
a5144c1d | 5559 | |
5ca838b8 | 5560 | |
5561 | if test "x$with_mpfr" != x; then | |
5562 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
16de6a81 | 5563 | gmpinc="-I$with_mpfr/include $gmpinc" |
5ca838b8 | 5564 | fi |
a5144c1d | 5565 | if test "x$with_mpfr_include" != x; then |
16de6a81 | 5566 | gmpinc="-I$with_mpfr_include $gmpinc" |
a5144c1d | 5567 | fi |
5568 | if test "x$with_mpfr_lib" != x; then | |
5569 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5570 | fi | |
d45318b3 | 5571 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
4b2246ef | 5572 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
5573 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5574 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
d45318b3 | 5575 | # Do not test the mpfr version. Assume that it is sufficient, since |
5576 | # it is in the source tree, and the library has not been built yet | |
5577 | # but it would be included on the link line in the version check below | |
5578 | # hence making the test fail. | |
5579 | have_gmp=yes | |
5580 | fi | |
5ca838b8 | 5581 | |
4ee9c684 | 5582 | # Specify a location for gmp |
b30fcfae | 5583 | |
cd9a469c | 5584 | # Check whether --with-gmp-dir was given. |
5585 | if test "${with_gmp_dir+set}" = set; then : | |
5586 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5587 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5588 | fi | |
5589 | ||
4ee9c684 | 5590 | |
4ee9c684 | 5591 | |
cd9a469c | 5592 | # Check whether --with-gmp was given. |
5593 | if test "${with_gmp+set}" = set; then : | |
5594 | withval=$with_gmp; | |
5595 | fi | |
b30fcfae | 5596 | |
4ee9c684 | 5597 | |
73f813e1 | 5598 | # Check whether --with-gmp-include was given. |
cd9a469c | 5599 | if test "${with_gmp_include+set}" = set; then : |
5600 | withval=$with_gmp_include; | |
5601 | fi | |
b30fcfae | 5602 | |
a5144c1d | 5603 | |
73f813e1 | 5604 | # Check whether --with-gmp-lib was given. |
cd9a469c | 5605 | if test "${with_gmp_lib+set}" = set; then : |
5606 | withval=$with_gmp_lib; | |
5607 | fi | |
a5144c1d | 5608 | |
5609 | ||
4ee9c684 | 5610 | |
5ca838b8 | 5611 | if test "x$with_gmp" != x; then |
5612 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5613 | gmpinc="-I$with_gmp/include $gmpinc" | |
4ee9c684 | 5614 | fi |
a5144c1d | 5615 | if test "x$with_gmp_include" != x; then |
5616 | gmpinc="-I$with_gmp_include $gmpinc" | |
5617 | fi | |
5618 | if test "x$with_gmp_lib" != x; then | |
5619 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5620 | fi | |
d45318b3 | 5621 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
c3fc6a63 | 5622 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
d45318b3 | 5623 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
b9a8e4c4 | 5624 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
c3fc6a63 | 5625 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
e4128452 | 5626 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
d45318b3 | 5627 | # Do not test the gmp version. Assume that it is sufficient, since |
5628 | # it is in the source tree, and the library has not been built yet | |
5629 | # but it would be included on the link line in the version check below | |
5630 | # hence making the test fail. | |
5631 | have_gmp=yes | |
5632 | fi | |
4ee9c684 | 5633 | |
16c9b2e3 | 5634 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
d45318b3 | 5635 | have_gmp=yes |
5636 | saved_CFLAGS="$CFLAGS" | |
5637 | CFLAGS="$CFLAGS $gmpinc" | |
17b6993a | 5638 | # Check for the recommended and required versions of GMP. |
5639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5640 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
4fd35f21 | 5641 | |
5642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17b6993a | 5643 | /* end confdefs.h. */ |
5644 | #include "gmp.h" | |
5645 | int | |
5646 | main () | |
5647 | { | |
5648 | ||
5649 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5650 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
f819bb73 | 5651 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
17b6993a | 5652 | choke me |
5653 | #endif | |
5654 | ||
5655 | ; | |
5656 | return 0; | |
5657 | } | |
5658 | _ACEOF | |
5659 | if ac_fn_c_try_compile "$LINENO"; then : | |
4fd35f21 | 5660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 5661 | /* end confdefs.h. */ |
17b6993a | 5662 | #include <gmp.h> |
b30fcfae | 5663 | int |
5664 | main () | |
5665 | { | |
4ee9c684 | 5666 | |
17b6993a | 5667 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5668 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5669 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
d45318b3 | 5670 | choke me |
5671 | #endif | |
b30fcfae | 5672 | |
5673 | ; | |
5674 | return 0; | |
5675 | } | |
5676 | _ACEOF | |
cd9a469c | 5677 | if ac_fn_c_try_compile "$LINENO"; then : |
5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5679 | $as_echo "yes" >&6; } | |
17b6993a | 5680 | else |
5681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5682 | $as_echo "buggy but acceptable" >&6; } | |
5683 | fi | |
5684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b30fcfae | 5685 | else |
cd9a469c | 5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5687 | $as_echo "no" >&6; }; have_gmp=no | |
b30fcfae | 5688 | fi |
cd9a469c | 5689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4ee9c684 | 5690 | |
7601a55c | 5691 | # If we have GMP, check the MPFR version. |
d45318b3 | 5692 | if test x"$have_gmp" = xyes; then |
17b6993a | 5693 | # Check for the recommended and required versions of MPFR. |
5694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5695 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
cd9a469c | 5696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 5697 | /* end confdefs.h. */ |
6a086156 | 5698 | #include <gmp.h> |
d45318b3 | 5699 | #include <mpfr.h> |
b30fcfae | 5700 | int |
5701 | main () | |
5702 | { | |
112f3d57 | 5703 | |
cb1d9044 | 5704 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
d45318b3 | 5705 | choke me |
5706 | #endif | |
b30fcfae | 5707 | |
5708 | ; | |
5709 | return 0; | |
5710 | } | |
5711 | _ACEOF | |
cd9a469c | 5712 | if ac_fn_c_try_compile "$LINENO"; then : |
5713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b30fcfae | 5714 | /* end confdefs.h. */ |
0157cc75 | 5715 | #include <gmp.h> |
d45318b3 | 5716 | #include <mpfr.h> |
b30fcfae | 5717 | int |
5718 | main () | |
5719 | { | |
0157cc75 | 5720 | |
17b6993a | 5721 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
d45318b3 | 5722 | choke me |
5723 | #endif | |
7601a55c | 5724 | |
5725 | ; | |
5726 | return 0; | |
5727 | } | |
5728 | _ACEOF | |
cd9a469c | 5729 | if ac_fn_c_try_compile "$LINENO"; then : |
5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5731 | $as_echo "yes" >&6; } | |
7601a55c | 5732 | else |
cd9a469c | 5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5734 | $as_echo "buggy but acceptable" >&6; } | |
7601a55c | 5735 | fi |
cd9a469c | 5736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7601a55c | 5737 | else |
cd9a469c | 5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5739 | $as_echo "no" >&6; }; have_gmp=no | |
7601a55c | 5740 | fi |
cd9a469c | 5741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7601a55c | 5742 | fi |
5743 | ||
5744 | # Check for the MPC header version. | |
16de6a81 | 5745 | if test x"$have_gmp" = xyes ; then |
17b6993a | 5746 | # Check for the recommended and required versions of MPC. |
cd9a469c | 5747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5748 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7601a55c | 5750 | /* end confdefs.h. */ |
5751 | #include <mpc.h> | |
5752 | int | |
5753 | main () | |
5754 | { | |
5755 | ||
17b6993a | 5756 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5757 | choke me | |
5758 | #endif | |
5759 | ||
5760 | ; | |
5761 | return 0; | |
5762 | } | |
5763 | _ACEOF | |
5764 | if ac_fn_c_try_compile "$LINENO"; then : | |
5765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5766 | /* end confdefs.h. */ | |
5767 | #include <mpc.h> | |
5768 | int | |
5769 | main () | |
5770 | { | |
5771 | ||
5772 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
7601a55c | 5773 | choke me |
5774 | #endif | |
5775 | ||
5776 | ; | |
5777 | return 0; | |
5778 | } | |
5779 | _ACEOF | |
cd9a469c | 5780 | if ac_fn_c_try_compile "$LINENO"; then : |
5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16de6a81 | 5782 | $as_echo "yes" >&6; } |
17b6993a | 5783 | else |
5784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5785 | $as_echo "buggy but acceptable" >&6; } | |
5786 | fi | |
5787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7601a55c | 5788 | else |
cd9a469c | 5789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16de6a81 | 5790 | $as_echo "no" >&6; }; have_gmp=no |
7601a55c | 5791 | fi |
cd9a469c | 5792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7601a55c | 5793 | fi |
5794 | ||
5795 | # Now check the MPFR library. | |
5796 | if test x"$have_gmp" = xyes; then | |
5797 | saved_LIBS="$LIBS" | |
5798 | LIBS="$LIBS $gmplibs" | |
16de6a81 | 5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5800 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
cd9a469c | 5801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7601a55c | 5802 | /* end confdefs.h. */ |
16de6a81 | 5803 | #include <mpc.h> |
7601a55c | 5804 | int |
5805 | main () | |
5806 | { | |
5807 | ||
5808 | mpfr_t n; | |
5809 | mpfr_t x; | |
16de6a81 | 5810 | mpc_t c; |
7601a55c | 5811 | int t; |
5812 | mpfr_init (n); | |
5813 | mpfr_init (x); | |
5814 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5815 | mpfr_erfc (n, x, GMP_RNDN); | |
5816 | mpfr_subnormalize (x, t, GMP_RNDN); | |
16de6a81 | 5817 | mpfr_clear(n); |
5818 | mpfr_clear(x); | |
5819 | mpc_init2 (c, 53); | |
5820 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5821 | mpc_cosh (c, c, MPC_RNDNN); | |
5822 | mpc_pow (c, c, c, MPC_RNDNN); | |
5823 | mpc_acosh (c, c, MPC_RNDNN); | |
5824 | mpc_clear (c); | |
b30fcfae | 5825 | |
5826 | ; | |
5827 | return 0; | |
5828 | } | |
5829 | _ACEOF | |
cd9a469c | 5830 | if ac_fn_c_try_link "$LINENO"; then : |
5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5832 | $as_echo "yes" >&6; } | |
b30fcfae | 5833 | else |
cd9a469c | 5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5835 | $as_echo "no" >&6; }; have_gmp=no | |
b30fcfae | 5836 | fi |
cd9a469c | 5837 | rm -f core conftest.err conftest.$ac_objext \ |
5838 | conftest$ac_exeext conftest.$ac_ext | |
7601a55c | 5839 | LIBS="$saved_LIBS" |
5840 | fi | |
5841 | ||
d45318b3 | 5842 | CFLAGS="$saved_CFLAGS" |
4ee9c684 | 5843 | |
17b6993a | 5844 | # The library versions listed in the error message below should match |
5845 | # the HARD-minimums enforced above. | |
d45318b3 | 5846 | if test x$have_gmp != xyes; then |
cb1d9044 | 5847 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
16de6a81 | 5848 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5849 | their locations. Source code for these libraries can be found at | |
5850 | their respective hosting sites as well as at | |
5851 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5852 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5853 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5854 | make sure that you have installed both the libraries and the header | |
5855 | files. They may be located in separate packages." "$LINENO" 5 | |
d45318b3 | 5856 | fi |
6a086156 | 5857 | fi |
5858 | ||
7601a55c | 5859 | # Flags needed for both GMP, MPFR and/or MPC. |
5860 | ||
5861 | ||
4ee9c684 | 5862 | |
5863 | ||
5864 | ||
bff7ea4a | 5865 | |
e4128452 | 5866 | |
13687c85 | 5867 | # Libraries to use for stage1 or when not bootstrapping. |
7ab76cec | 5868 | |
13687c85 | 5869 | # Check whether --with-stage1-libs was given. |
5870 | if test "${with_stage1_libs+set}" = set; then : | |
5871 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5872 | stage1_libs= | |
7ab76cec | 5873 | else |
13687c85 | 5874 | stage1_libs=$withval |
7ab76cec | 5875 | fi |
5876 | else | |
9d71bbdc | 5877 | stage1_libs= |
cd9a469c | 5878 | fi |
5879 | ||
7ab76cec | 5880 | |
5881 | ||
13687c85 | 5882 | # Linker flags to use for stage1 or when not bootstrapping. |
7ab76cec | 5883 | |
13687c85 | 5884 | # Check whether --with-stage1-ldflags was given. |
5885 | if test "${with_stage1_ldflags+set}" = set; then : | |
5886 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5887 | stage1_ldflags= | |
7ab76cec | 5888 | else |
13687c85 | 5889 | stage1_ldflags=$withval |
7ab76cec | 5890 | fi |
5891 | else | |
13687c85 | 5892 | stage1_ldflags= |
5893 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5894 | # if supported. But if the user explicitly specified the libraries to use, | |
5895 | # trust that they are doing what they want. | |
5896 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5897 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5898 | fi | |
cd9a469c | 5899 | fi |
5900 | ||
7ab76cec | 5901 | |
5902 | ||
9d71bbdc | 5903 | # Libraries to use for stage2 and later builds. |
7ab76cec | 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 | |
9d71bbdc | 5913 | poststage1_libs= |
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 | ||
71130ef8 | 5939 | # GCC GRAPHITE dependency isl. |
572cf1f7 | 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 |
71130ef8 | 5952 | # Check for isl |
83d54ac4 | 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 | |
7458b15a | 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}" | |
07ae8272 | 6013 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
6014 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
078393c7 | 6015 | |
ae5394fd | 6016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5 |
6017 | $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; } | |
b6de67fd | 6018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6ac3b11e | 6019 | /* end confdefs.h. */ |
7458b15a | 6020 | #include <isl/ctx.h> |
6ac3b11e | 6021 | int |
6022 | main () | |
6023 | { | |
7458b15a | 6024 | isl_ctx_get_max_operations (isl_ctx_alloc ()); |
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 | ||
7458b15a | 6039 | if test "${gcc_cv_isl}" = no ; then |
ae5394fd | 6040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5 |
6041 | $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; } | |
7458b15a | 6042 | fi |
6043 | ||
ae5394fd | 6044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5 |
6045 | $as_echo_n "checking for isl 0.16 or 0.15... " >&6; } | |
45fc5243 | 6046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6047 | /* end confdefs.h. */ | |
6048 | #include <isl/schedule.h> | |
6049 | int | |
6050 | main () | |
6051 | { | |
6052 | isl_options_set_schedule_serialize_sccs (NULL, 0); | |
6053 | ; | |
6054 | return 0; | |
6055 | } | |
6056 | _ACEOF | |
6057 | if ac_fn_c_try_link "$LINENO"; then : | |
6058 | ac_has_isl_options_set_schedule_serialize_sccs=yes | |
6059 | else | |
6060 | ac_has_isl_options_set_schedule_serialize_sccs=no | |
6061 | fi | |
6062 | rm -f core conftest.err conftest.$ac_objext \ | |
6063 | conftest$ac_exeext conftest.$ac_ext | |
6064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5 | |
6065 | $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; } | |
6066 | ||
6067 | if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then | |
6068 | islver="0.15" | |
6069 | ||
6070 | fi | |
6071 | ||
078393c7 | 6072 | CFLAGS=$_isl_saved_CFLAGS |
6073 | LDFLAGS=$_isl_saved_LDFLAGS | |
6074 | LIBS=$_isl_saved_LIBS | |
6075 | fi | |
6076 | ||
6077 | ||
255b6be7 | 6078 | |
255b6be7 | 6079 | |
87e20041 | 6080 | |
6081 | ||
87e20041 | 6082 | if test "x${with_isl}" = xno; then |
6083 | graphite_requested=no | |
6084 | elif test "x${with_isl}" != x \ | |
6085 | || test "x${with_isl_include}" != x \ | |
6086 | || test "x${with_isl_lib}" != x ; then | |
6087 | graphite_requested=yes | |
6088 | else | |
6089 | graphite_requested=no | |
062b4a94 | 6090 | fi |
5362e323 | 6091 | |
5362e323 | 6092 | |
6093 | ||
87e20041 | 6094 | if test "${gcc_cv_isl}" = no ; then |
6095 | isllibs= | |
6096 | islinc= | |
6097 | fi | |
6098 | ||
6099 | if test "${graphite_requested}" = yes \ | |
6100 | && test "x${isllibs}" = x \ | |
6101 | && test "x${islinc}" = x ; then | |
255b6be7 | 6102 | |
71130ef8 | 6103 | as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
87e20041 | 6104 | fi |
255b6be7 | 6105 | |
a3c81e03 | 6106 | |
a3c81e03 | 6107 | fi |
6108 | ||
71130ef8 | 6109 | # If the isl check failed, disable builds of in-tree variant of isl |
83d54ac4 | 6110 | if test "x$with_isl" = xno || |
83d54ac4 | 6111 | test "x$gcc_cv_isl" = xno; then |
572cf1f7 | 6112 | noconfigdirs="$noconfigdirs isl" |
83d54ac4 | 6113 | islinc= |
bacb15cb | 6114 | fi |
6115 | ||
83d54ac4 | 6116 | |
6117 | ||
6118 | ||
7bfefa9d | 6119 | # Check for LTO support. |
6120 | # Check whether --enable-lto was given. | |
6121 | if test "${enable_lto+set}" = set; then : | |
6122 | enableval=$enable_lto; enable_lto=$enableval | |
6123 | else | |
6124 | enable_lto=yes; default_enable_lto=yes | |
6125 | fi | |
6126 | ||
6127 | ||
1a4f45ec | 6128 | |
9bdbb0bc | 6129 | |
6130 | ||
6131 | target_elf=no | |
6132 | case $target in | |
6133 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
4d72c922 | 6134 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
0f7d9ee5 | 6135 | alpha*-dec-osf* | hppa[12]*-*-hpux* | \ |
0f769573 | 6136 | nvptx-*-none) |
9bdbb0bc | 6137 | target_elf=no |
6138 | ;; | |
6139 | *) | |
6140 | target_elf=yes | |
6141 | ;; | |
6142 | esac | |
6143 | ||
6144 | if test $target_elf = yes; then : | |
25630dc7 | 6145 | # ELF platforms build the lto-plugin always. |
6146 | build_lto_plugin=yes | |
9bdbb0bc | 6147 | |
9bdbb0bc | 6148 | else |
6149 | if test x"$default_enable_lto" = x"yes" ; then | |
4ae8c98f | 6150 | case $target in |
7aa50266 | 6151 | *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;; |
25630dc7 | 6152 | # On other non-ELF platforms, LTO has yet to be validated. |
4ae8c98f | 6153 | *) enable_lto=no ;; |
6154 | esac | |
9bdbb0bc | 6155 | else |
62932e4d | 6156 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6157 | # It would also be nice to check the binutils support, but we don't | |
9bdbb0bc | 6158 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6159 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6160 | # -flto it won't be needed until after installation anyway. | |
6161 | case $target in | |
7aa50266 | 6162 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
9bdbb0bc | 6163 | *) if test x"$enable_lto" = x"yes"; then |
6164 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6165 | fi | |
6166 | ;; | |
6167 | esac | |
6168 | fi | |
ca42e774 | 6169 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
25630dc7 | 6170 | # Build it unless LTO was explicitly disabled. |
ca42e774 | 6171 | case $target in |
25630dc7 | 6172 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
ca42e774 | 6173 | *) ;; |
6174 | esac | |
25630dc7 | 6175 | |
9bdbb0bc | 6176 | fi |
6177 | ||
7bfefa9d | 6178 | |
1015a063 | 6179 | # Check whether --enable-linker-plugin-configure-flags was given. |
6180 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6181 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6182 | else | |
6183 | extra_linker_plugin_configure_flags= | |
6184 | fi | |
6185 | ||
6186 | ||
6187 | # Check whether --enable-linker-plugin-flags was given. | |
6188 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6189 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6190 | else | |
6191 | extra_linker_plugin_flags= | |
6192 | fi | |
6193 | ||
6194 | ||
6195 | ||
255b6be7 | 6196 | |
2b15d2ba | 6197 | # By default, C and C++ are the only stage 1 languages. |
9c3a0a29 | 6198 | stage1_languages=,c, |
2d64c2fd | 6199 | |
7ab76cec | 6200 | # Target libraries that we bootstrap. |
5c96a839 | 6201 | bootstrap_target_libs=,target-libgcc, |
7ab76cec | 6202 | |
8e1fea1a | 6203 | # Figure out what language subdirectories are present. |
6204 | # Look if the user specified --enable-languages="..."; if not, use | |
6205 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6206 | # go away some day. | |
6207 | # NB: embedded tabs in this IF block -- do not untabify | |
6208 | if test -d ${srcdir}/gcc; then | |
6209 | if test x"${enable_languages+set}" != xset; then | |
6210 | if test x"${LANGUAGES+set}" = xset; then | |
6211 | enable_languages="${LANGUAGES}" | |
e757a6a8 | 6212 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
8e1fea1a | 6213 | else |
6214 | enable_languages=all | |
6215 | fi | |
6216 | else | |
6217 | if test x"${enable_languages}" = x || | |
6218 | test x"${enable_languages}" = xyes; | |
6219 | then | |
e757a6a8 | 6220 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
8e1fea1a | 6221 | exit 1 |
6222 | fi | |
6223 | fi | |
6224 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6225 | ||
2c718da0 | 6226 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6227 | # and make the substitution. | |
6228 | case ,${enable_languages}, in | |
6229 | *,f95,*) | |
e757a6a8 | 6230 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
2c718da0 | 6231 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6232 | ;; | |
6233 | esac | |
6234 | ||
2b15d2ba | 6235 | # If bootstrapping, C++ must be enabled. |
6236 | case ",$enable_languages,:$enable_bootstrap" in | |
6237 | *,c++,*:*) ;; | |
6238 | *:yes) | |
6c59dfa4 | 6239 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6240 | enable_languages="${enable_languages},c++" | |
6241 | else | |
2b15d2ba | 6242 | as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5 |
6c59dfa4 | 6243 | fi |
6244 | ;; | |
6245 | esac | |
6246 | ||
8e1fea1a | 6247 | # First scan to see if an enabled language requires some other language. |
6248 | # We assume that a given config-lang.in will list all the language | |
6249 | # front ends it requires, even if some are required indirectly. | |
6250 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6251 | case ${lang_frag} in | |
6252 | ..) ;; | |
6253 | # The odd quoting in the next line works around | |
6254 | # an apparent bug in bash 1.12 on linux. | |
6255 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6256 | *) | |
101ddbe4 | 6257 | # From the config-lang.in, get $language, $lang_requires, and |
6258 | # $lang_requires_boot_languages. | |
8e1fea1a | 6259 | language= |
6260 | lang_requires= | |
101ddbe4 | 6261 | lang_requires_boot_languages= |
8e1fea1a | 6262 | . ${lang_frag} |
101ddbe4 | 6263 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
8e1fea1a | 6264 | case ,${enable_languages}, in |
6265 | *,$other,*) ;; | |
6266 | *,all,*) ;; | |
6267 | *,$language,*) | |
6268 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6269 | enable_languages="${enable_languages},${other}" | |
6270 | ;; | |
6271 | esac | |
6272 | done | |
101ddbe4 | 6273 | for other in ${lang_requires_boot_languages} ; do |
6274 | if test "$other" != "c"; then | |
6275 | case ,${enable_stage1_languages}, in | |
6276 | *,$other,*) ;; | |
6277 | *,all,*) ;; | |
6278 | *) | |
6279 | case ,${enable_languages}, in | |
6280 | *,$language,*) | |
6281 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6282 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6283 | ;; | |
6284 | esac | |
6285 | ;; | |
6286 | esac | |
6287 | fi | |
6288 | done | |
8e1fea1a | 6289 | ;; |
6290 | esac | |
6291 | done | |
6292 | ||
9c3a0a29 | 6293 | new_enable_languages=,c, |
7bfefa9d | 6294 | |
6295 | # If LTO is enabled, add the LTO front end. | |
7bfefa9d | 6296 | if test "$enable_lto" = "yes" ; then |
d6ef094a | 6297 | case ,${enable_languages}, in |
6298 | *,lto,*) ;; | |
6299 | *) enable_languages="${enable_languages},lto" ;; | |
6300 | esac | |
ca42e774 | 6301 | if test "${build_lto_plugin}" = "yes" ; then |
7bfefa9d | 6302 | configdirs="$configdirs lto-plugin" |
7bfefa9d | 6303 | fi |
6304 | fi | |
6305 | ||
dd87c525 | 6306 | # If we're building an offloading compiler, add the LTO front end. |
6307 | if test x"$enable_as_accelerator_for" != x ; then | |
6308 | case ,${enable_languages}, in | |
6309 | *,lto,*) ;; | |
6310 | *) enable_languages="${enable_languages},lto" ;; | |
6311 | esac | |
6312 | fi | |
6313 | ||
8e1fea1a | 6314 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
9c3a0a29 | 6315 | potential_languages=,c, |
8e1fea1a | 6316 | |
604a285a | 6317 | enabled_target_libs= |
6318 | disabled_target_libs= | |
6319 | ||
8e1fea1a | 6320 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6321 | case ${lang_frag} in | |
6322 | ..) ;; | |
6323 | # The odd quoting in the next line works around | |
6324 | # an apparent bug in bash 1.12 on linux. | |
6325 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6326 | *) | |
b30fcfae | 6327 | # From the config-lang.in, get $language, $target_libs, |
2d64c2fd | 6328 | # $lang_dirs, $boot_language, and $build_by_default |
8e1fea1a | 6329 | language= |
6330 | target_libs= | |
6331 | lang_dirs= | |
5dee13c2 | 6332 | subdir_requires= |
9c3a0a29 | 6333 | boot_language=no |
6334 | build_by_default=yes | |
8e1fea1a | 6335 | . ${lang_frag} |
9c3a0a29 | 6336 | if test x${language} = x; then |
6337 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6338 | exit 1 | |
6339 | fi | |
6340 | ||
ef3c41c7 | 6341 | if test "$language" = "c++"; then |
2b15d2ba | 6342 | boot_language=yes |
7ab76cec | 6343 | fi |
6344 | ||
a2ecd49c | 6345 | add_this_lang=no |
9c3a0a29 | 6346 | case ,${enable_languages}, in |
6347 | *,${language},*) | |
e53d55e7 | 6348 | # Language was explicitly selected; include it |
6349 | # unless it is C, which is enabled by default. | |
6350 | if test "$language" != "c"; then | |
6351 | add_this_lang=yes | |
6352 | fi | |
8e1fea1a | 6353 | ;; |
9c3a0a29 | 6354 | *,all,*) |
6355 | # 'all' was selected, select it if it is a default language | |
a2ecd49c | 6356 | if test "$language" != "c"; then |
6357 | add_this_lang=${build_by_default} | |
6358 | fi | |
8e1fea1a | 6359 | ;; |
6360 | esac | |
4ee9c684 | 6361 | |
5dee13c2 | 6362 | # Disable languages that need other directories if these aren't available. |
9333ae0b | 6363 | for i in $subdir_requires; do |
3891e7d9 | 6364 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
5dee13c2 | 6365 | case ,${enable_languages}, in |
6366 | *,${language},*) | |
6367 | # Specifically requested language; tell them. | |
cd9a469c | 6368 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
5dee13c2 | 6369 | ;; |
6370 | *) | |
6371 | # Silently disable. | |
9c3a0a29 | 6372 | add_this_lang=unsupported |
5dee13c2 | 6373 | ;; |
6374 | esac | |
6375 | done | |
6376 | ||
9c3a0a29 | 6377 | # Disable Ada if no preexisting GNAT is available. |
6378 | case ,${enable_languages},:${language}:${have_gnat} in | |
6379 | *,${language},*:ada:no) | |
6380 | # Specifically requested language; tell them. | |
cd9a469c | 6381 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
9c3a0a29 | 6382 | ;; |
6383 | *:ada:no) | |
6384 | # Silently disable. | |
6385 | add_this_lang=unsupported | |
6386 | ;; | |
6387 | esac | |
6388 | ||
ff7dcf6a | 6389 | # Disable a language that is unsupported by the target. |
6390 | case " $unsupported_languages " in | |
6391 | *" $language "*) | |
9c3a0a29 | 6392 | add_this_lang=unsupported |
ff7dcf6a | 6393 | ;; |
6394 | esac | |
6395 | ||
4ee9c684 | 6396 | case $add_this_lang in |
9c3a0a29 | 6397 | unsupported) |
8e1fea1a | 6398 | # Remove language-dependent dirs. |
604a285a | 6399 | disabled_target_libs="$disabled_target_libs $target_libs" |
6400 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2d64c2fd | 6401 | ;; |
9c3a0a29 | 6402 | no) |
6403 | # Remove language-dependent dirs; still show language as supported. | |
604a285a | 6404 | disabled_target_libs="$disabled_target_libs $target_libs" |
6405 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9c3a0a29 | 6406 | potential_languages="${potential_languages}${language}," |
6407 | ;; | |
6408 | yes) | |
6409 | new_enable_languages="${new_enable_languages}${language}," | |
6410 | potential_languages="${potential_languages}${language}," | |
2d64c2fd | 6411 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
604a285a | 6412 | enabled_target_libs="$enabled_target_libs $target_libs" |
32027446 | 6413 | case "${boot_language}:,$enable_stage1_languages," in |
6414 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
aff6cf7b | 6415 | # Add to (comma-separated) list of stage 1 languages. |
32027446 | 6416 | case ",$stage1_languages," in |
6417 | *,$language,* | ,yes, | ,all,) ;; | |
6418 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6419 | esac | |
7ab76cec | 6420 | # We need to bootstrap any supporting libraries. |
6421 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
2d64c2fd | 6422 | ;; |
6423 | esac | |
6424 | ;; | |
8e1fea1a | 6425 | esac |
6426 | ;; | |
6427 | esac | |
6428 | done | |
6429 | ||
604a285a | 6430 | # Add target libraries which are only needed for disabled languages |
6431 | # to noconfigdirs. | |
6432 | if test -n "$disabled_target_libs"; then | |
6433 | for dir in $disabled_target_libs; do | |
6434 | case " $enabled_target_libs " in | |
6435 | *" ${dir} "*) ;; | |
6436 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6437 | esac | |
6438 | done | |
6439 | fi | |
6440 | ||
cd9a469c | 6441 | # Check whether --enable-stage1-languages was given. |
6442 | if test "${enable_stage1_languages+set}" = set; then : | |
6443 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9c3a0a29 | 6444 | ,no,|,,) |
6445 | # Set it to something that will have no effect in the loop below | |
6446 | enable_stage1_languages=c ;; | |
6447 | ,yes,) | |
6448 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6449 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6450 | *,all,*) | |
6451 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6452 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6453 | esac | |
6454 | ||
6455 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6456 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6457 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6458 | case $potential_languages in | |
6459 | *,$i,*) | |
6460 | case $stage1_languages in | |
6461 | *,$i,*) ;; | |
6462 | *) stage1_languages="$stage1_languages$i," ;; | |
6463 | esac ;; | |
6464 | *) | |
6465 | case $missing_languages in | |
6466 | *,$i,*) ;; | |
6467 | *) missing_languages="$missing_languages$i," ;; | |
6468 | esac ;; | |
6469 | esac | |
6470 | done | |
cd9a469c | 6471 | fi |
6472 | ||
9c3a0a29 | 6473 | |
6474 | # Remove leading/trailing commas that were added for simplicity | |
6475 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
989edd2f | 6476 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9c3a0a29 | 6477 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6478 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6479 | ||
8e1fea1a | 6480 | if test "x$missing_languages" != x; then |
cd9a469c | 6481 | as_fn_error " |
e8bfe1fa | 6482 | The following requested languages could not be built: ${missing_languages} |
cd9a469c | 6483 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
8e1fea1a | 6484 | fi |
8e1fea1a | 6485 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6486 | echo The following languages will be built: ${new_enable_languages} | |
9c3a0a29 | 6487 | enable_languages="$new_enable_languages" |
8e1fea1a | 6488 | fi |
9c3a0a29 | 6489 | |
b30fcfae | 6490 | |
b0e9b581 | 6491 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
8e1fea1a | 6492 | fi |
6493 | ||
50996fe5 | 6494 | # Handle --disable-<component> generically. |
6495 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6496 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
d2d2630b | 6497 | varname=`echo $dirname | sed -e s/+/_/g` |
6498 | if eval test x\${enable_${varname}} "=" xno ; then | |
50996fe5 | 6499 | noconfigdirs="$noconfigdirs $dir" |
6500 | fi | |
6501 | done | |
6502 | ||
dd6d3a67 | 6503 | # Check for Boehm's garbage collector |
cd9a469c | 6504 | # Check whether --enable-objc-gc was given. |
6505 | if test "${enable_objc_gc+set}" = set; then : | |
6506 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
dd6d3a67 | 6507 | *,objc,*:*:yes:*target-boehm-gc*) |
cd9a469c | 6508 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
dd6d3a67 | 6509 | ;; |
6510 | esac | |
cd9a469c | 6511 | fi |
6512 | ||
dd6d3a67 | 6513 | |
6514 | # Make sure we only build Boehm's garbage collector if required. | |
f1716c67 | 6515 | case ,${enable_languages},:${enable_objc_gc} in |
6516 | *,objc,*:yes) | |
dd6d3a67 | 6517 | # Keep target-boehm-gc if requested for Objective-C. |
6518 | ;; | |
dd6d3a67 | 6519 | *) |
f1716c67 | 6520 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6521 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6522 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6523 | fi | |
dd6d3a67 | 6524 | ;; |
6525 | esac | |
6526 | ||
d3a7dd32 | 6527 | # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
b33ca042 | 6528 | case ,${enable_languages}, in |
df148e44 | 6529 | *,c++,*) |
6530 | # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++ | |
6531 | case "${noconfigdirs}" in | |
6532 | *target-libstdc++-v3*) | |
6533 | noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer" | |
6534 | ;; | |
6535 | *) ;; | |
6536 | esac | |
6537 | ;; | |
b33ca042 | 6538 | *) |
d3a7dd32 | 6539 | noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
b33ca042 | 6540 | ;; |
6541 | esac | |
6542 | ||
e8eddfdd | 6543 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6544 | # $build_configdirs and $target_configdirs. | |
8e1fea1a | 6545 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6546 | ||
6547 | notsupp="" | |
6548 | for dir in . $skipdirs $noconfigdirs ; do | |
e8eddfdd | 6549 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
8e1fea1a | 6550 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6551 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6552 | if test -r $srcdir/$dirname/configure ; then | |
6553 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6554 | true | |
6555 | else | |
6556 | notsupp="$notsupp $dir" | |
6557 | fi | |
6558 | fi | |
6559 | fi | |
e8eddfdd | 6560 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6561 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6562 | if test -r $srcdir/$dirname/configure ; then | |
6563 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6564 | true | |
6565 | else | |
6566 | notsupp="$notsupp $dir" | |
6567 | fi | |
6568 | fi | |
6569 | fi | |
8e1fea1a | 6570 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6571 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6572 | if test -r $srcdir/$dirname/configure ; then | |
6573 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6574 | true | |
6575 | else | |
6576 | notsupp="$notsupp $dir" | |
6577 | fi | |
6578 | fi | |
6579 | fi | |
6580 | done | |
6581 | ||
8e1fea1a | 6582 | # Quietly strip out all directories which aren't configurable in this tree. |
6583 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6584 | # is now the case. | |
2f8725b0 | 6585 | build_configdirs_all="$build_configdirs" |
6586 | build_configdirs= | |
6587 | for i in ${build_configdirs_all} ; do | |
b30fcfae | 6588 | j=`echo $i | sed -e s/build-//g` |
2f8725b0 | 6589 | if test -f ${srcdir}/$j/configure ; then |
6590 | build_configdirs="${build_configdirs} $i" | |
6591 | fi | |
6592 | done | |
6593 | ||
8e1fea1a | 6594 | configdirs_all="$configdirs" |
6595 | configdirs= | |
6596 | for i in ${configdirs_all} ; do | |
6597 | if test -f ${srcdir}/$i/configure ; then | |
6598 | configdirs="${configdirs} $i" | |
6599 | fi | |
6600 | done | |
2f8725b0 | 6601 | |
8e1fea1a | 6602 | target_configdirs_all="$target_configdirs" |
6603 | target_configdirs= | |
6604 | for i in ${target_configdirs_all} ; do | |
b30fcfae | 6605 | j=`echo $i | sed -e s/target-//g` |
8e1fea1a | 6606 | if test -f ${srcdir}/$j/configure ; then |
6607 | target_configdirs="${target_configdirs} $i" | |
6608 | fi | |
6609 | done | |
6610 | ||
8a6ab6a0 | 6611 | # Exclude target-zlib if target-libjava isn't built. |
6612 | case ${target_configdirs} in | |
6613 | *target-libjava*) | |
6614 | ;; | |
6615 | *) | |
6616 | target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`" | |
6617 | ;; | |
6618 | esac | |
6619 | ||
1015a063 | 6620 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6621 | # so we have to add it after the preceding checks. | |
6622 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6623 | then | |
6624 | case " $configdirs " in | |
6625 | *" libiberty "*) | |
6626 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6627 | configdirs="$configdirs libiberty-linker-plugin" | |
6628 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6629 | --with-libiberty=../libiberty-linker-plugin";; | |
6630 | *) | |
6631 | as_fn_error "libiberty missing" "$LINENO" 5;; | |
6632 | esac | |
6633 | fi | |
6634 | ||
944792ef | 6635 | # Sometimes we have special requirements for the host libiberty. |
6636 | extra_host_libiberty_configure_flags= | |
c850ece7 | 6637 | extra_host_zlib_configure_flags= |
944792ef | 6638 | case " $configdirs " in |
6639 | *" lto-plugin "* | *" libcc1 "*) | |
6640 | # When these are to be built as shared libraries, the same applies to | |
6641 | # libiberty. | |
6642 | extra_host_libiberty_configure_flags=--enable-shared | |
6643 | ;; | |
c850ece7 | 6644 | *" bfd "*) |
6645 | # When bfd is to be built as a shared library, the same applies to | |
6646 | # zlib. | |
6647 | if test "$enable_shared" = "yes"; then | |
6648 | extra_host_zlib_configure_flags=--enable-host-shared | |
6649 | fi | |
6650 | ;; | |
944792ef | 6651 | esac |
6652 | ||
6653 | ||
c850ece7 | 6654 | |
8e1fea1a | 6655 | # Produce a warning message for the subdirs we can't configure. |
6656 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6657 | # FSF releases, it's important to let people know when their machine isn't | |
6658 | # supported by the one or two programs in a package. | |
6659 | ||
6660 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6661 | # If $appdirs is non-empty, at least one of those directories must still | |
6662 | # be configured, or we error out. (E.g., if the gas release supports a | |
6663 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6664 | # pretend that all is well.) | |
6665 | if test -n "$appdirs" ; then | |
6666 | for dir in $appdirs ; do | |
6667 | if test -r $dir/Makefile.in ; then | |
6668 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6669 | appdirs="" | |
6670 | break | |
6671 | fi | |
2f8725b0 | 6672 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
8e1fea1a | 6673 | appdirs="" |
6674 | break | |
6675 | fi | |
6676 | fi | |
6677 | done | |
6678 | if test -n "$appdirs" ; then | |
6679 | echo "*** This configuration is not supported by this package." 1>&2 | |
6680 | exit 1 | |
6681 | fi | |
6682 | fi | |
6683 | # Okay, some application will build, or we don't care to check. Still | |
6684 | # notify of subdirs not getting built. | |
6685 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6686 | echo " ${notsupp}" 1>&2 | |
6687 | echo " (Any other directories should still work fine.)" 1>&2 | |
6688 | fi | |
6689 | ||
6690 | case "$host" in | |
6691 | *msdosdjgpp*) | |
6692 | enable_gdbtk=no ;; | |
6693 | esac | |
6694 | ||
eae5b2bc | 6695 | # To find our prefix, in gcc_cv_tool_prefix. |
6696 | ||
6697 | # The user is always right. | |
6698 | if test "${PATH_SEPARATOR+set}" != set; then | |
6699 | echo "#! /bin/sh" >conf$$.sh | |
6700 | echo "exit 0" >>conf$$.sh | |
6701 | chmod +x conf$$.sh | |
6702 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6703 | PATH_SEPARATOR=';' | |
6704 | else | |
6705 | PATH_SEPARATOR=: | |
6706 | fi | |
6707 | rm -f conf$$.sh | |
6708 | fi | |
6709 | ||
6710 | ||
6711 | ||
6712 | if test "x$exec_prefix" = xNONE; then | |
6713 | if test "x$prefix" = xNONE; then | |
6714 | gcc_cv_tool_prefix=$ac_default_prefix | |
6715 | else | |
6716 | gcc_cv_tool_prefix=$prefix | |
6717 | fi | |
6718 | else | |
6719 | gcc_cv_tool_prefix=$exec_prefix | |
6720 | fi | |
6721 | ||
6722 | # If there is no compiler in the tree, use the PATH only. In any | |
6723 | # case, if there is no compiler in the tree nobody should use | |
6724 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6725 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6726 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6727 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6728 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6729 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6730 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6731 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6732 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6733 | else | |
6734 | gcc_cv_tool_dirs= | |
6735 | fi | |
6736 | ||
6737 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6738 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6739 | fi | |
6740 | ||
6741 | ||
6742 | ||
8e1fea1a | 6743 | copy_dirs= |
6744 | ||
b30fcfae | 6745 | |
cd9a469c | 6746 | # Check whether --with-build-sysroot was given. |
6747 | if test "${with_build_sysroot+set}" = set; then : | |
6748 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
ffa8502d | 6749 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6750 | fi | |
6751 | else | |
6752 | SYSROOT_CFLAGS_FOR_TARGET= | |
cd9a469c | 6753 | fi |
ffa8502d | 6754 | |
6755 | ||
5f1f2de5 | 6756 | |
cd9a469c | 6757 | |
6758 | # Check whether --with-debug-prefix-map was given. | |
6759 | if test "${with_debug_prefix_map+set}" = set; then : | |
6760 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
5f1f2de5 | 6761 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6762 | for debug_map in $withval; do | |
6763 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6764 | done | |
6765 | fi | |
6766 | else | |
6767 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
cd9a469c | 6768 | fi |
6769 | ||
5f1f2de5 | 6770 | |
6771 | ||
c898f165 | 6772 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6773 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6774 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6775 | # We want to ensure that TARGET libraries (which we know are built with | |
6776 | # gcc) are built with "-O2 -g", so include those options when setting | |
6777 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6778 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
f5fad380 | 6779 | if test "x${is_cross_compiler}" = xyes; then |
6780 | CFLAGS_FOR_TARGET="-g -O2" | |
6781 | else | |
6782 | CFLAGS_FOR_TARGET=$CFLAGS | |
6783 | case " $CFLAGS " in | |
6784 | *" -O2 "*) ;; | |
6785 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6786 | esac | |
6787 | case " $CFLAGS " in | |
6788 | *" -g "* | *" -g3 "*) ;; | |
6789 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6790 | esac | |
6791 | fi | |
c898f165 | 6792 | fi |
6793 | ||
6794 | ||
6795 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
f5fad380 | 6796 | if test "x${is_cross_compiler}" = xyes; then |
6797 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6798 | else | |
6799 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6800 | case " $CXXFLAGS " in | |
6801 | *" -O2 "*) ;; | |
6802 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6803 | esac | |
6804 | case " $CXXFLAGS " in | |
6805 | *" -g "* | *" -g3 "*) ;; | |
6806 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6807 | esac | |
6808 | fi | |
c898f165 | 6809 | fi |
6810 | ||
6811 | ||
ed9516f5 | 6812 | |
6813 | ||
8e1fea1a | 6814 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6815 | # the named directory are copied to $(tooldir)/sys-include. | |
6816 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6817 | if test x${is_cross_compiler} = xno ; then | |
6818 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6819 | exit 1 | |
6820 | fi | |
6821 | if test x"${with_headers}" != xyes ; then | |
eae5b2bc | 6822 | x=${gcc_cv_tool_prefix} |
b30fcfae | 6823 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
8e1fea1a | 6824 | fi |
6825 | fi | |
6826 | ||
6827 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6828 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6829 | # are permitted. | |
6830 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6831 | if test x${is_cross_compiler} = xno ; then | |
6832 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6833 | exit 1 | |
6834 | fi | |
6835 | if test x"${with_libs}" != xyes ; then | |
6836 | # Copy the libraries in reverse order, so that files in the first named | |
6837 | # library override files in subsequent libraries. | |
eae5b2bc | 6838 | x=${gcc_cv_tool_prefix} |
8e1fea1a | 6839 | for l in ${with_libs}; do |
b30fcfae | 6840 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
8e1fea1a | 6841 | done |
6842 | fi | |
6843 | fi | |
6844 | ||
7bfefa9d | 6845 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
c47832b1 | 6846 | # |
6847 | # This is done by determining whether or not the appropriate directory | |
6848 | # is available, and by checking whether or not specific configurations | |
6849 | # have requested that this magic not happen. | |
b30fcfae | 6850 | # |
6851 | # The command line options always override the explicit settings in | |
e757a6a8 | 6852 | # configure.ac, and the settings in configure.ac override this magic. |
c47832b1 | 6853 | # |
b30fcfae | 6854 | # If the default for a toolchain is to use GNU as and ld, and you don't |
c47832b1 | 6855 | # want to do that, then you should use the --without-gnu-as and |
7bfefa9d | 6856 | # --without-gnu-ld options for the configure script. Similarly, if |
6857 | # the default is to use the included zlib and you don't want to do that, | |
6858 | # you should use the --with-system-zlib option for the configure script. | |
c47832b1 | 6859 | |
6860 | if test x${use_gnu_as} = x && | |
6861 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6862 | with_gnu_as=yes | |
6863 | extra_host_args="$extra_host_args --with-gnu-as" | |
6864 | fi | |
6865 | ||
6866 | if test x${use_gnu_ld} = x && | |
3d47fcf5 | 6867 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
c47832b1 | 6868 | with_gnu_ld=yes |
6869 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6870 | fi | |
6871 | ||
7bfefa9d | 6872 | if test x${use_included_zlib} = x && |
6873 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6874 | : | |
6875 | else | |
6876 | with_system_zlib=yes | |
6877 | extra_host_args="$extra_host_args --with-system-zlib" | |
6878 | fi | |
6879 | ||
c47832b1 | 6880 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6881 | # can detect this case. | |
6882 | ||
6883 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6884 | with_newlib=yes | |
6885 | extra_host_args="$extra_host_args --with-newlib" | |
6886 | fi | |
6887 | ||
8e1fea1a | 6888 | # Handle ${copy_dirs} |
6889 | set fnord ${copy_dirs} | |
6890 | shift | |
6891 | while test $# != 0 ; do | |
6892 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6893 | : | |
6894 | else | |
6895 | echo Copying $1 to $2 | |
6896 | ||
6897 | # Use the install script to create the directory and all required | |
6898 | # parent directories. | |
6899 | if test -d $2 ; then | |
6900 | : | |
6901 | else | |
6902 | echo >config.temp | |
6903 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6904 | fi | |
6905 | ||
6906 | # Copy the directory, assuming we have tar. | |
6907 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6908 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6909 | ||
6910 | # It is the responsibility of the user to correctly adjust all | |
6911 | # symlinks. If somebody can figure out how to handle them correctly | |
6912 | # here, feel free to add the code. | |
6913 | ||
6914 | echo $1 > $2/COPIED | |
6915 | fi | |
6916 | shift; shift | |
6917 | done | |
6918 | ||
c47832b1 | 6919 | # Determine a target-dependent exec_prefix that the installed |
6920 | # gcc will search in. Keep this list sorted by triplet, with | |
6921 | # the *-*-osname triplets last. | |
6922 | md_exec_prefix= | |
6923 | case "${target}" in | |
09c2d953 | 6924 | i[34567]86-pc-msdosdjgpp*) |
c47832b1 | 6925 | md_exec_prefix=/dev/env/DJDIR/bin |
6926 | ;; | |
c47832b1 | 6927 | *-*-hpux* | \ |
c47832b1 | 6928 | *-*-nto-qnx* | \ |
93faf308 | 6929 | *-*-solaris2*) |
c47832b1 | 6930 | md_exec_prefix=/usr/ccs/bin |
6931 | ;; | |
6932 | esac | |
6933 | ||
71ab34df | 6934 | extra_arflags_for_target= |
6935 | extra_nmflags_for_target= | |
6936 | extra_ranlibflags_for_target= | |
6937 | target_makefile_frag=/dev/null | |
6938 | case "${target}" in | |
57c7de11 | 6939 | spu-*-*) |
6940 | target_makefile_frag="config/mt-spu" | |
6941 | ;; | |
d781ea5c | 6942 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
f8520ad7 | 6943 | target_makefile_frag="config/mt-sde" |
6944 | ;; | |
3013c2c7 | 6945 | mipsisa*-*-elfoabi*) |
6946 | target_makefile_frag="config/mt-mips-elfoabi" | |
6947 | ;; | |
559b0712 | 6948 | mips*-*-*linux* | mips*-*-gnu*) |
6949 | target_makefile_frag="config/mt-mips-gnu" | |
6950 | ;; | |
2481a2c1 | 6951 | nios2-*-elf*) |
6952 | target_makefile_frag="config/mt-nios2-elf" | |
6953 | ;; | |
3bef4012 | 6954 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
cb8a7007 | 6955 | target_makefile_frag="config/mt-gnu" |
71ab34df | 6956 | ;; |
6957 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
b30fcfae | 6958 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
71ab34df | 6959 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6960 | # harmless if we're using GNU nm or ar. | |
6961 | extra_arflags_for_target=" -X32_64" | |
6962 | extra_nmflags_for_target=" -B -X32_64" | |
6963 | ;; | |
71ab34df | 6964 | esac |
6965 | ||
6966 | alphaieee_frag=/dev/null | |
6967 | case $target in | |
6968 | alpha*-*-*) | |
6969 | # This just makes sure to use the -mieee option to build target libs. | |
6970 | # This should probably be set individually by each library. | |
6971 | alphaieee_frag="config/mt-alphaieee" | |
6972 | ;; | |
6973 | esac | |
6974 | ||
6975 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6976 | # the target libraries, similarly if it is not specified, use -Os | |
6977 | # on selected platforms. | |
6978 | ospace_frag=/dev/null | |
6979 | case "${enable_target_optspace}:${target}" in | |
6980 | yes:*) | |
6981 | ospace_frag="config/mt-ospace" | |
6982 | ;; | |
6983 | :d30v-*) | |
6984 | ospace_frag="config/mt-d30v" | |
6985 | ;; | |
1c26a2ee | 6986 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
71ab34df | 6987 | ospace_frag="config/mt-ospace" |
6988 | ;; | |
6989 | no:* | :*) | |
6990 | ;; | |
6991 | *) | |
6992 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6993 | ;; | |
6994 | esac | |
6995 | ||
71ab34df | 6996 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6997 | # using) don't handle "\$" correctly, so don't use it here. | |
b30fcfae | 6998 | tooldir='${exec_prefix}'/${target_noncanonical} |
71ab34df | 6999 | build_tooldir=${tooldir} |
7000 | ||
71ab34df | 7001 | # Create a .gdbinit file which runs the one in srcdir |
7002 | # and tells GDB to look there for source files. | |
7003 | ||
7004 | if test -r ${srcdir}/.gdbinit ; then | |
7005 | case ${srcdir} in | |
7006 | .) ;; | |
7007 | *) cat > ./.gdbinit <<EOF | |
7008 | # ${NO_EDIT} | |
7009 | dir ${srcdir} | |
7010 | dir . | |
7011 | source ${srcdir}/.gdbinit | |
7012 | EOF | |
7013 | ;; | |
7014 | esac | |
7015 | fi | |
7016 | ||
71ab34df | 7017 | # Make sure that the compiler is able to generate an executable. If it |
7018 | # can't, we are probably in trouble. We don't care whether we can run the | |
7019 | # executable--we might be using a cross compiler--we only care whether it | |
7020 | # can be created. At this point the main configure script has set CC. | |
7021 | we_are_ok=no | |
7022 | echo "int main () { return 0; }" > conftest.c | |
7023 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7024 | if test $? = 0 ; then | |
7025 | if test -s conftest || test -s conftest.exe ; then | |
7026 | we_are_ok=yes | |
7027 | fi | |
b30fcfae | 7028 | fi |
71ab34df | 7029 | case $we_are_ok in |
7030 | no) | |
7031 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
7032 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
7033 | rm -f conftest* | |
7034 | exit 1 | |
7035 | ;; | |
7036 | esac | |
7037 | rm -f conftest* | |
7038 | ||
7d804f04 | 7039 | # Decide which environment variable is used to find dynamic libraries. |
71ab34df | 7040 | case "${host}" in |
7041 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
b2240ff6 | 7042 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
7d804f04 | 7043 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
71ab34df | 7044 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
7045 | esac | |
7046 | ||
7d804f04 | 7047 | # On systems where the dynamic library environment variable is PATH, |
7048 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
7049 | # built executables to PATH. | |
7050 | if test "$RPATH_ENVVAR" = PATH; then | |
7051 | GCC_SHLIB_SUBDIR=/shlib | |
7052 | else | |
7053 | GCC_SHLIB_SUBDIR= | |
7054 | fi | |
7055 | ||
ee055341 | 7056 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
7057 | case $enable_bootstrap in | |
7058 | yes) | |
7059 | bootstrap_suffix=bootstrap | |
7060 | BUILD_CONFIG=bootstrap-debug | |
7061 | ;; | |
7062 | no) | |
7063 | bootstrap_suffix=no-bootstrap | |
7064 | BUILD_CONFIG= | |
7065 | ;; | |
7066 | esac | |
7067 | ||
7068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
7069 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7070 | ||
7071 | ||
7072 | # Check whether --with-build-config was given. | |
7073 | if test "${with_build_config+set}" = set; then : | |
7074 | withval=$with_build_config; case $with_build_config in | |
7075 | yes) with_build_config= ;; | |
7076 | no) with_build_config= BUILD_CONFIG= ;; | |
7077 | esac | |
7078 | fi | |
7079 | ||
7080 | ||
7081 | if test "x${with_build_config}" != x; then | |
7082 | BUILD_CONFIG=$with_build_config | |
7083 | else | |
7084 | case $BUILD_CONFIG in | |
7085 | bootstrap-debug) | |
7086 | if echo "int f (void) { return 0; }" > conftest.c && | |
7087 | ${CC} -c conftest.c && | |
7088 | mv conftest.o conftest.o.g0 && | |
7089 | ${CC} -c -g conftest.c && | |
7090 | mv conftest.o conftest.o.g && | |
7091 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7092 | : | |
7093 | else | |
7094 | BUILD_CONFIG= | |
7095 | fi | |
7096 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7097 | ;; | |
7098 | esac | |
7099 | fi | |
7100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7101 | $as_echo "$BUILD_CONFIG" >&6; } | |
7102 | ||
7103 | ||
7104 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7106 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7107 | # Check whether --enable-vtable-verify was given. | |
7108 | if test "${enable_vtable_verify+set}" = set; then : | |
7109 | enableval=$enable_vtable_verify; case "$enableval" in | |
7110 | yes) enable_vtable_verify=yes ;; | |
7111 | no) enable_vtable_verify=no ;; | |
7112 | *) enable_vtable_verify=no;; | |
7113 | esac | |
7114 | else | |
7115 | enable_vtable_verify=no | |
7116 | fi | |
7117 | ||
7118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7119 | $as_echo "$enable_vtable_verify" >&6; } | |
7120 | ||
71ab34df | 7121 | # Record target_configdirs and the configure arguments for target and |
7122 | # build configuration in Makefile. | |
7123 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
2f8725b0 | 7124 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
f4ae1a00 | 7125 | bootstrap_fixincludes=no |
71ab34df | 7126 | |
5c96a839 | 7127 | # If we are building libgomp, bootstrap it. |
7128 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7129 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7130 | fi | |
7131 | ||
ee055341 | 7132 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7133 | # or bootstrap-ubsan, bootstrap it. | |
7134 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7135 | case "$BUILD_CONFIG" in | |
7136 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7137 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
f4ae1a00 | 7138 | bootstrap_fixincludes=yes |
ee055341 | 7139 | ;; |
7140 | esac | |
579abfee | 7141 | fi |
7142 | ||
ee055341 | 7143 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7144 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7145 | test "$enable_vtable_verify" != no; then | |
b710ec85 | 7146 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7147 | fi | |
7148 | ||
202baac8 | 7149 | # If we are building libmpx, bootstrap it. |
7150 | if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then | |
7151 | bootstrap_target_libs=${bootstrap_target_libs}target-libmpx, | |
7152 | fi | |
7153 | ||
71ab34df | 7154 | # Determine whether gdb needs tk/tcl or not. |
7155 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7156 | # and in that case we want gdb to be built without tk. Ugh! | |
7157 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7158 | # so we should be able to put the 'maybe's in unconditionally and | |
7159 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7160 | # 100% sure that that's safe though. | |
8fdaf281 | 7161 | |
f843f075 | 7162 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
71ab34df | 7163 | case "$enable_gdbtk" in |
7164 | no) | |
7165 | GDB_TK="" ;; | |
8fdaf281 | 7166 | yes) |
7167 | GDB_TK="${gdb_tk}" ;; | |
71ab34df | 7168 | *) |
8fdaf281 | 7169 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7170 | # distro. Eventually someone will fix this and move Insight, nee | |
7171 | # gdbtk to a separate directory. | |
7172 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7173 | GDB_TK="${gdb_tk}" | |
7174 | else | |
7175 | GDB_TK="" | |
7176 | fi | |
7177 | ;; | |
71ab34df | 7178 | esac |
415470be | 7179 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7180 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
71ab34df | 7181 | |
01b41571 | 7182 | # Strip out unwanted targets. |
6f4f34a7 | 7183 | |
7184 | # While at that, we remove Makefiles if we were started for recursive | |
7185 | # configuration, so that the top-level Makefile reconfigures them, | |
7186 | # like we used to do when configure itself was recursive. | |
6f4f34a7 | 7187 | |
8bb79148 | 7188 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7189 | # but now we're fixing up the Makefile ourselves with the additional | |
7190 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7191 | # extrasub-{build,host,target} not because there is any reason to split | |
7192 | # the substitutions up that way, but only to remain below the limit of | |
7193 | # 99 commands in a script, for HP-UX sed. | |
7194 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
6f4f34a7 | 7195 | |
7b5fee3e | 7196 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7197 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7198 | yes:yes:*\ gold\ *:*) | |
7199 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
7200 | ;; | |
7201 | esac | |
7202 | ||
8bb79148 | 7203 | extrasub_build= |
2f8725b0 | 7204 | for module in ${build_configdirs} ; do |
93f93279 | 7205 | if test -z "${no_recursion}" \ |
7206 | && test -f ${build_subdir}/${module}/Makefile; then | |
7207 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7208 | rm -f ${build_subdir}/${module}/Makefile | |
7209 | fi | |
8bb79148 | 7210 | extrasub_build="$extrasub_build |
93f93279 | 7211 | /^@if build-$module\$/d |
7212 | /^@endif build-$module\$/d | |
7213 | /^@if build-$module-$bootstrap_suffix\$/d | |
7214 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7215 | done | |
8bb79148 | 7216 | extrasub_host= |
93f93279 | 7217 | for module in ${configdirs} ; do |
9c19a746 | 7218 | if test -z "${no_recursion}"; then |
35d84d10 | 7219 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
9c19a746 | 7220 | if test -f ${file}; then |
7221 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7222 | rm -f ${file} | |
7223 | fi | |
7224 | done | |
93f93279 | 7225 | fi |
f4ae1a00 | 7226 | case ${module},${bootstrap_fixincludes} in |
7227 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7228 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7229 | esac | |
8bb79148 | 7230 | extrasub_host="$extrasub_host |
93f93279 | 7231 | /^@if $module\$/d |
7232 | /^@endif $module\$/d | |
f4ae1a00 | 7233 | /^@if $module-$host_bootstrap_suffix\$/d |
7234 | /^@endif $module-$host_bootstrap_suffix\$/d" | |
93f93279 | 7235 | done |
8bb79148 | 7236 | extrasub_target= |
93f93279 | 7237 | for module in ${target_configdirs} ; do |
7238 | if test -z "${no_recursion}" \ | |
7239 | && test -f ${target_subdir}/${module}/Makefile; then | |
7240 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7241 | rm -f ${target_subdir}/${module}/Makefile | |
7242 | fi | |
7ab76cec | 7243 | |
7244 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7245 | case $bootstrap_target_libs in | |
7246 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7247 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7248 | esac | |
7249 | ||
8bb79148 | 7250 | extrasub_target="$extrasub_target |
93f93279 | 7251 | /^@if target-$module\$/d |
7252 | /^@endif target-$module\$/d | |
7ab76cec | 7253 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7254 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
93f93279 | 7255 | done |
7256 | ||
8bb79148 | 7257 | # Do the final fixup along with target modules. |
7258 | extrasub_target="$extrasub_target | |
01b41571 | 7259 | /^@if /,/^@endif /d" |
71ab34df | 7260 | |
7261 | # Create the serialization dependencies. This uses a temporary file. | |
7262 | ||
cd9a469c | 7263 | # Check whether --enable-serial-configure was given. |
7264 | if test "${enable_serial_configure+set}" = set; then : | |
7265 | enableval=$enable_serial_configure; | |
7266 | fi | |
11d8013a | 7267 | |
7268 | ||
622c1fa9 | 7269 | case ${enable_serial_configure} in |
7270 | yes) | |
7271 | enable_serial_build_configure=yes | |
7272 | enable_serial_host_configure=yes | |
7273 | enable_serial_target_configure=yes | |
7274 | ;; | |
7275 | esac | |
7276 | ||
71ab34df | 7277 | # These force 'configure's to be done one at a time, to avoid problems |
7278 | # with contention over a shared config.cache. | |
7279 | rm -f serdep.tmp | |
11d8013a | 7280 | echo '# serdep.tmp' > serdep.tmp |
71ab34df | 7281 | olditem= |
622c1fa9 | 7282 | test "x${enable_serial_build_configure}" = xyes && |
71ab34df | 7283 | for item in ${build_configdirs} ; do |
7284 | case ${olditem} in | |
7285 | "") ;; | |
11d8013a | 7286 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
71ab34df | 7287 | esac |
7288 | olditem=${item} | |
7289 | done | |
7290 | olditem= | |
622c1fa9 | 7291 | test "x${enable_serial_host_configure}" = xyes && |
71ab34df | 7292 | for item in ${configdirs} ; do |
7293 | case ${olditem} in | |
7294 | "") ;; | |
11d8013a | 7295 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
71ab34df | 7296 | esac |
7297 | olditem=${item} | |
7298 | done | |
7299 | olditem= | |
622c1fa9 | 7300 | test "x${enable_serial_target_configure}" = xyes && |
71ab34df | 7301 | for item in ${target_configdirs} ; do |
7302 | case ${olditem} in | |
7303 | "") ;; | |
11d8013a | 7304 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
71ab34df | 7305 | esac |
7306 | olditem=${item} | |
7307 | done | |
7308 | serialization_dependencies=serdep.tmp | |
7309 | ||
7310 | ||
11d8013a | 7311 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
b30fcfae | 7312 | # target, nonopt, and variable assignments. These are the ones we |
412c2e81 | 7313 | # might not want to pass down to subconfigures. The exception being |
7314 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7315 | # files altogether, and which should be passed on to subconfigures. | |
7316 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7317 | # so that we can pass down a consistent program-transform-name. | |
b30fcfae | 7318 | baseargs= |
0e4d1862 | 7319 | tbaseargs= |
b30fcfae | 7320 | keep_next=no |
7321 | skip_next=no | |
7322 | eval "set -- $ac_configure_args" | |
4ff792a4 | 7323 | for ac_arg |
7324 | do | |
b30fcfae | 7325 | if test X"$skip_next" = X"yes"; then |
7326 | skip_next=no | |
7327 | continue | |
7328 | fi | |
7329 | if test X"$keep_next" = X"yes"; then | |
7330 | case $ac_arg in | |
7331 | *\'*) | |
7332 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7333 | esac | |
7334 | baseargs="$baseargs '$ac_arg'" | |
0e4d1862 | 7335 | tbaseargs="$tbaseargs '$ac_arg'" |
b30fcfae | 7336 | keep_next=no |
7337 | continue | |
7338 | fi | |
7339 | ||
7340 | # Handle separated arguments. Based on the logic generated by | |
7341 | # autoconf 2.59. | |
7342 | case $ac_arg in | |
7343 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7344 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7345 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7346 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7347 | separate_arg=no | |
7348 | ;; | |
7349 | -*) | |
7350 | separate_arg=yes | |
7351 | ;; | |
7352 | *) | |
7353 | separate_arg=no | |
7354 | ;; | |
7355 | esac | |
7356 | ||
0e4d1862 | 7357 | skip_targ=no |
7358 | case $ac_arg in | |
7359 | ||
7360 | --with-* | --without-*) | |
7361 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7362 | ||
7363 | case $libopt in | |
7364 | *[-_]include) | |
7365 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7366 | ;; | |
7367 | *[-_]lib) | |
7368 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7369 | ;; | |
7370 | *) | |
7371 | lib=$libopt | |
7372 | ;; | |
7373 | esac | |
7374 | ||
7375 | ||
7376 | case $lib in | |
572cf1f7 | 7377 | mpc | mpfr | gmp | isl) |
0e4d1862 | 7378 | # If we're processing --with-$lib, --with-$lib-include or |
7379 | # --with-$lib-lib, for one of the libs above, and target is | |
7380 | # different from host, don't pass the current argument to any | |
7381 | # target library's configure. | |
7382 | if test x$is_cross_compiler = xyes; then | |
7383 | skip_targ=yes | |
7384 | fi | |
7385 | ;; | |
7386 | esac | |
7387 | ;; | |
7388 | esac | |
7389 | ||
b30fcfae | 7390 | case "$ac_arg" in |
412c2e81 | 7391 | --cache-file=/dev/null | \ |
7392 | -cache-file=/dev/null ) | |
7393 | # Handled here to avoid the test to skip args below. | |
7394 | baseargs="$baseargs '$ac_arg'" | |
0e4d1862 | 7395 | tbaseargs="$tbaseargs '$ac_arg'" |
412c2e81 | 7396 | # Assert: $separate_arg should always be no. |
7397 | keep_next=$separate_arg | |
7398 | ;; | |
b30fcfae | 7399 | --no*) |
7400 | continue | |
7401 | ;; | |
7402 | --c* | \ | |
7403 | --sr* | \ | |
7404 | --ho* | \ | |
7405 | --bu* | \ | |
7406 | --t* | \ | |
7407 | --program-* | \ | |
7408 | -cache_file* | \ | |
7409 | -srcdir* | \ | |
7410 | -host* | \ | |
7411 | -build* | \ | |
7412 | -target* | \ | |
7413 | -program-prefix* | \ | |
7414 | -program-suffix* | \ | |
7415 | -program-transform-name* ) | |
7416 | skip_next=$separate_arg | |
7417 | continue | |
7418 | ;; | |
7419 | -*) | |
7420 | # An option. Add it. | |
7421 | case $ac_arg in | |
7422 | *\'*) | |
7423 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7424 | esac | |
7425 | baseargs="$baseargs '$ac_arg'" | |
0e4d1862 | 7426 | if test X"$skip_targ" = Xno; then |
7427 | tbaseargs="$tbaseargs '$ac_arg'" | |
7428 | fi | |
b30fcfae | 7429 | keep_next=$separate_arg |
7430 | ;; | |
7431 | *) | |
7432 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7433 | # pass it down; let the Makefile handle this. | |
7434 | continue | |
7435 | ;; | |
7436 | esac | |
7437 | done | |
7438 | # Remove the initial space we just introduced and, as these will be | |
7439 | # expanded by make, quote '$'. | |
7440 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
71ab34df | 7441 | |
fbfea1fa | 7442 | # Add in --program-transform-name, after --program-prefix and |
7443 | # --program-suffix have been applied to it. Autoconf has already | |
7444 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7445 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
b30fcfae | 7446 | # quotes, because this will be expanded first by make and then by the shell. |
fbfea1fa | 7447 | # Also, because we want to override the logic in subdir configure scripts to |
7448 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7449 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7450 | ${program_transform_name} | |
7451 | EOF_SED | |
7452 | gcc_transform_name=`cat conftestsed.out` | |
7453 | rm -f conftestsed.out | |
7454 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
0e4d1862 | 7455 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
af7bb0c0 | 7456 | if test "$silent" = yes; then |
7457 | baseargs="$baseargs --silent" | |
0e4d1862 | 7458 | tbaseargs="$tbaseargs --silent" |
af7bb0c0 | 7459 | fi |
cd2f3773 | 7460 | baseargs="$baseargs --disable-option-checking" |
0e4d1862 | 7461 | tbaseargs="$tbaseargs --disable-option-checking" |
fbfea1fa | 7462 | |
372a3f1e | 7463 | # Record and document user additions to sub configure arguments. |
7464 | ||
7465 | ||
7466 | ||
7467 | ||
71ab34df | 7468 | # For the build-side libraries, we just need to pretend we're native, |
7469 | # and not use the same cache file. Multilibs are neither needed nor | |
b85b703b | 7470 | # desired. We can't even use the same cache file for all build-side |
7471 | # libraries, as they're compiled differently; some with C, some with | |
7472 | # C++ or with different feature-enabling options. | |
7473 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
71ab34df | 7474 | |
7475 | # For host modules, accept cache file option, or specification as blank. | |
7476 | case "${cache_file}" in | |
7477 | "") # empty | |
7478 | cache_file_option="" ;; | |
7479 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7480 | cache_file_option="--cache-file=${cache_file}" ;; | |
7481 | *) # relative path | |
7482 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7483 | esac | |
7484 | ||
ba1081ef | 7485 | # Host dirs don't like to share a cache file either, horribly enough. |
7486 | # This seems to be due to autoconf 2.5x stupidity. | |
372a3f1e | 7487 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
71ab34df | 7488 | |
0e4d1862 | 7489 | target_configargs="$target_configargs ${tbaseargs}" |
71ab34df | 7490 | |
7491 | # Passing a --with-cross-host argument lets the target libraries know | |
7492 | # whether they are being built with a cross-compiler or being built | |
7493 | # native. However, it would be better to use other mechanisms to make the | |
7494 | # sorts of decisions they want to make on this basis. Please consider | |
7495 | # this option to be deprecated. FIXME. | |
7496 | if test x${is_cross_compiler} = xyes ; then | |
b30fcfae | 7497 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
71ab34df | 7498 | fi |
7499 | ||
87ebeb4c | 7500 | # Special user-friendly check for native x86_64-linux build, if |
7501 | # multilib is not explicitly enabled. | |
7502 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7503 | x86_64-*linux*:yes:$build:$build:) | |
6efd9d79 | 7504 | # Make sure we have a development environment that handles 32-bit |
87ebeb4c | 7505 | dev64=no |
7506 | echo "int main () { return 0; }" > conftest.c | |
7507 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7508 | if test $? = 0 ; then | |
7509 | if test -s conftest || test -s conftest.exe ; then | |
7510 | dev64=yes | |
7511 | fi | |
7512 | fi | |
7513 | rm -f conftest* | |
7514 | if test x${dev64} != xyes ; then | |
6efd9d79 | 7515 | 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 | 7516 | fi |
7517 | ;; | |
7518 | esac | |
7519 | ||
59a40389 | 7520 | # Default to --enable-multilib. |
7521 | if test x${enable_multilib} = x ; then | |
71ab34df | 7522 | target_configargs="--enable-multilib ${target_configargs}" |
59a40389 | 7523 | fi |
71ab34df | 7524 | |
7525 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7526 | # changed from the earlier setting of with_newlib. | |
7527 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7528 | target_configargs="--with-newlib ${target_configargs}" | |
7529 | fi | |
7530 | ||
74fef112 | 7531 | # Different target subdirs use different values of certain variables |
7532 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7533 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7534 | # it doesn't automatically accept command-line overrides of them. | |
7535 | # This means it's not safe for target subdirs to share a cache file, | |
7536 | # which is disgusting, but there you have it. Hopefully this can be | |
7537 | # fixed in future. It's still worthwhile to use a cache file for each | |
7538 | # directory. I think. | |
7539 | ||
a8abbd9d | 7540 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7541 | # We need to pass --target, as newer autoconf's requires consistency | |
7542 | # for target_alias and gcc doesn't manage it consistently. | |
d45318b3 | 7543 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
71ab34df | 7544 | |
71ab34df | 7545 | FLAGS_FOR_TARGET= |
7546 | case " $target_configdirs " in | |
7547 | *" newlib "*) | |
7548 | case " $target_configargs " in | |
7549 | *" --with-newlib "*) | |
7550 | case "$target" in | |
fe284774 | 7551 | *-cygwin*) |
db54564d | 7552 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
fe284774 | 7553 | ;; |
71ab34df | 7554 | esac |
7555 | ||
7556 | # If we're not building GCC, don't discard standard headers. | |
7557 | if test -d ${srcdir}/gcc; then | |
7558 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7559 | ||
7560 | if test "${build}" != "${host}"; then | |
7561 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7562 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7563 | # to it. This is right: we don't want to search that directory | |
7564 | # for binaries, but we want the header files in there, so add | |
7565 | # them explicitly. | |
e619f0a6 | 7566 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
71ab34df | 7567 | |
7568 | # Someone might think of using the pre-installed headers on | |
7569 | # Canadian crosses, in case the installed compiler is not fully | |
7570 | # compatible with the compiler being built. In this case, it | |
7571 | # would be better to flag an error than risking having | |
7572 | # incompatible object files being constructed. We can't | |
7573 | # guarantee that an error will be flagged, but let's hope the | |
7574 | # compiler will do it, when presented with incompatible header | |
7575 | # files. | |
7576 | fi | |
7577 | fi | |
7578 | ||
7579 | case "${target}-${is_cross_compiler}" in | |
f74ea578 | 7580 | i[3456789]86-*-linux*-no) |
71ab34df | 7581 | # Here host == target, so we don't need to build gcc, |
7582 | # so we don't want to discard standard headers. | |
7583 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7584 | ;; | |
7585 | *) | |
7586 | # If we're building newlib, use its generic headers last, but search | |
7587 | # for any libc-related directories first (so make it the last -B | |
7588 | # switch). | |
7589 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
1c5767f1 | 7590 | |
7591 | # If we're building libgloss, find the startup file, simulator library | |
7592 | # and linker script. | |
7593 | case " $target_configdirs " in | |
7594 | *" libgloss "*) | |
7595 | # Look for startup file, simulator library and maybe linker script. | |
7596 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7597 | # Look for libnosys.a in case the target needs it. | |
7598 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7599 | # Most targets have the linker script in the source directory. | |
7600 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7601 | ;; | |
7602 | esac | |
71ab34df | 7603 | ;; |
7604 | esac | |
7605 | ;; | |
7606 | esac | |
7607 | ;; | |
7608 | esac | |
fe284774 | 7609 | |
d6d689df | 7610 | case "$target" in |
fe284774 | 7611 | x86_64-*mingw* | *-w64-mingw*) |
7612 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7613 | # however, use a symlink named 'mingw' in ${prefix} . | |
7614 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7615 | ;; | |
7616 | *-mingw*) | |
7617 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7618 | 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' | |
7619 | ;; | |
d6d689df | 7620 | esac |
71ab34df | 7621 | |
d8e9ea04 | 7622 | # Allow the user to override the flags for |
7623 | # our build compiler if desired. | |
823e8b8d | 7624 | if test x"${build}" = x"${host}" ; then |
7625 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7626 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7627 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7628 | fi | |
d8e9ea04 | 7629 | |
71ab34df | 7630 | # On Canadian crosses, we'll be searching the right directories for |
7631 | # the previously-installed cross compiler, so don't bother to add | |
7632 | # flags for directories within the install tree of the compiler | |
7633 | # being built; programs in there won't even run. | |
7634 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7635 | # Search for pre-installed headers if nothing else fits. | |
5750c7d4 | 7636 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
71ab34df | 7637 | fi |
7638 | ||
7639 | if test "x${use_gnu_ld}" = x && | |
7640 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7641 | # Arrange for us to find uninstalled linker scripts. | |
c1eb9e31 | 7642 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
71ab34df | 7643 | fi |
7644 | ||
24714a39 | 7645 | # Search for other target-specific linker scripts and such. |
7646 | case "${target}" in | |
38d7211b | 7647 | mep*) |
7648 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7649 | ;; | |
24714a39 | 7650 | esac |
7651 | ||
71ab34df | 7652 | # Makefile fragments. |
03c65091 | 7653 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7654 | do | |
7655 | eval fragval=\$$frag | |
7656 | if test $fragval != /dev/null; then | |
7657 | eval $frag=${srcdir}/$fragval | |
7658 | fi | |
7659 | done | |
71ab34df | 7660 | |
7661 | ||
7662 | ||
7663 | ||
7664 | ||
7665 | # Miscellanea: directories, flags, etc. | |
7666 | ||
7667 | ||
7668 | ||
7669 | ||
7670 | ||
7671 | ||
7672 | ||
7d804f04 | 7673 | |
2f8725b0 | 7674 | # Build module lists & subconfigure args. |
71ab34df | 7675 | |
7676 | ||
7677 | ||
f5aebe3e | 7678 | # Host module lists & subconfigure args. |
7679 | ||
7680 | ||
7681 | ||
1fda3360 | 7682 | |
f5aebe3e | 7683 | # Target module lists & subconfigure args. |
7684 | ||
7685 | ||
7686 | ||
7687 | # Build tools. | |
7688 | ||
7689 | ||
7690 | ||
93c5e793 | 7691 | |
7692 | ||
7693 | ||
7694 | ||
7695 | ||
7696 | ||
7697 | ||
7698 | ||
7699 | ||
7700 | ||
7701 | ||
7702 | ||
7703 | ||
7704 | ||
f5aebe3e | 7705 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7706 | # on the build machine. These are used if the Makefile can't locate these | |
7707 | # programs in objdir. | |
7708 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7709 | ||
7710 | for ac_prog in 'bison -y' byacc yacc | |
7711 | do | |
b30fcfae | 7712 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7713 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7715 | $as_echo_n "checking for $ac_word... " >&6; } | |
7716 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7717 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7718 | else |
7719 | if test -n "$YACC"; then | |
7720 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7721 | else | |
b30fcfae | 7722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7723 | for as_dir in $PATH | |
7724 | do | |
7725 | IFS=$as_save_IFS | |
7726 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7727 | for ac_exec_ext in '' $ac_executable_extensions; do |
7728 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7729 | ac_cv_prog_YACC="$ac_prog" |
cd9a469c | 7730 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7731 | break 2 |
7732 | fi | |
7733 | done | |
cd9a469c | 7734 | done |
7735 | IFS=$as_save_IFS | |
b30fcfae | 7736 | |
f5aebe3e | 7737 | fi |
7738 | fi | |
b30fcfae | 7739 | YACC=$ac_cv_prog_YACC |
f5aebe3e | 7740 | if test -n "$YACC"; then |
cd9a469c | 7741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7742 | $as_echo "$YACC" >&6; } | |
f5aebe3e | 7743 | else |
cd9a469c | 7744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7745 | $as_echo "no" >&6; } | |
f5aebe3e | 7746 | fi |
7747 | ||
cd9a469c | 7748 | |
b30fcfae | 7749 | test -n "$YACC" && break |
f5aebe3e | 7750 | done |
7751 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7752 | ||
7753 | case " $build_configdirs " in | |
7754 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
f5aebe3e | 7755 | esac |
7756 | ||
7757 | for ac_prog in bison | |
7758 | do | |
b30fcfae | 7759 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7760 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7762 | $as_echo_n "checking for $ac_word... " >&6; } | |
7763 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7764 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7765 | else |
7766 | if test -n "$BISON"; then | |
7767 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7768 | else | |
b30fcfae | 7769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7770 | for as_dir in $PATH | |
7771 | do | |
7772 | IFS=$as_save_IFS | |
7773 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7774 | for ac_exec_ext in '' $ac_executable_extensions; do |
7775 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7776 | ac_cv_prog_BISON="$ac_prog" |
cd9a469c | 7777 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7778 | break 2 |
7779 | fi | |
7780 | done | |
cd9a469c | 7781 | done |
7782 | IFS=$as_save_IFS | |
b30fcfae | 7783 | |
f5aebe3e | 7784 | fi |
7785 | fi | |
b30fcfae | 7786 | BISON=$ac_cv_prog_BISON |
f5aebe3e | 7787 | if test -n "$BISON"; then |
cd9a469c | 7788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7789 | $as_echo "$BISON" >&6; } | |
f5aebe3e | 7790 | else |
cd9a469c | 7791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7792 | $as_echo "no" >&6; } | |
f5aebe3e | 7793 | fi |
7794 | ||
cd9a469c | 7795 | |
b30fcfae | 7796 | test -n "$BISON" && break |
f5aebe3e | 7797 | done |
7798 | test -n "$BISON" || BISON="$MISSING bison" | |
7799 | ||
7800 | case " $build_configdirs " in | |
7801 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7802 | esac | |
7803 | ||
7804 | for ac_prog in gm4 gnum4 m4 | |
7805 | do | |
b30fcfae | 7806 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7807 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7809 | $as_echo_n "checking for $ac_word... " >&6; } | |
7810 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7811 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7812 | else |
7813 | if test -n "$M4"; then | |
7814 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7815 | else | |
b30fcfae | 7816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7817 | for as_dir in $PATH | |
7818 | do | |
7819 | IFS=$as_save_IFS | |
7820 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7821 | for ac_exec_ext in '' $ac_executable_extensions; do |
7822 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7823 | ac_cv_prog_M4="$ac_prog" |
cd9a469c | 7824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7825 | break 2 |
7826 | fi | |
7827 | done | |
cd9a469c | 7828 | done |
7829 | IFS=$as_save_IFS | |
b30fcfae | 7830 | |
f5aebe3e | 7831 | fi |
7832 | fi | |
b30fcfae | 7833 | M4=$ac_cv_prog_M4 |
f5aebe3e | 7834 | if test -n "$M4"; then |
cd9a469c | 7835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7836 | $as_echo "$M4" >&6; } | |
f5aebe3e | 7837 | else |
cd9a469c | 7838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7839 | $as_echo "no" >&6; } | |
f5aebe3e | 7840 | fi |
7841 | ||
cd9a469c | 7842 | |
b30fcfae | 7843 | test -n "$M4" && break |
f5aebe3e | 7844 | done |
7845 | test -n "$M4" || M4="$MISSING m4" | |
7846 | ||
7847 | case " $build_configdirs " in | |
7848 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7849 | esac | |
7850 | ||
7851 | for ac_prog in flex lex | |
7852 | do | |
b30fcfae | 7853 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7854 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7856 | $as_echo_n "checking for $ac_word... " >&6; } | |
7857 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7858 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7859 | else |
7860 | if test -n "$LEX"; then | |
7861 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7862 | else | |
b30fcfae | 7863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7864 | for as_dir in $PATH | |
7865 | do | |
7866 | IFS=$as_save_IFS | |
7867 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7868 | for ac_exec_ext in '' $ac_executable_extensions; do |
7869 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7870 | ac_cv_prog_LEX="$ac_prog" |
cd9a469c | 7871 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7872 | break 2 |
7873 | fi | |
7874 | done | |
cd9a469c | 7875 | done |
7876 | IFS=$as_save_IFS | |
b30fcfae | 7877 | |
f5aebe3e | 7878 | fi |
7879 | fi | |
b30fcfae | 7880 | LEX=$ac_cv_prog_LEX |
f5aebe3e | 7881 | if test -n "$LEX"; then |
cd9a469c | 7882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7883 | $as_echo "$LEX" >&6; } | |
f5aebe3e | 7884 | else |
cd9a469c | 7885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7886 | $as_echo "no" >&6; } | |
f5aebe3e | 7887 | fi |
7888 | ||
cd9a469c | 7889 | |
b30fcfae | 7890 | test -n "$LEX" && break |
f5aebe3e | 7891 | done |
7892 | test -n "$LEX" || LEX="$MISSING flex" | |
7893 | ||
7894 | case " $build_configdirs " in | |
7895 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7896 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7897 | esac | |
7898 | ||
7899 | for ac_prog in flex | |
7900 | do | |
b30fcfae | 7901 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7902 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7904 | $as_echo_n "checking for $ac_word... " >&6; } | |
7905 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7906 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7907 | else |
7908 | if test -n "$FLEX"; then | |
7909 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7910 | else | |
b30fcfae | 7911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7912 | for as_dir in $PATH | |
7913 | do | |
7914 | IFS=$as_save_IFS | |
7915 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7916 | for ac_exec_ext in '' $ac_executable_extensions; do |
7917 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7918 | ac_cv_prog_FLEX="$ac_prog" |
cd9a469c | 7919 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7920 | break 2 |
7921 | fi | |
7922 | done | |
cd9a469c | 7923 | done |
7924 | IFS=$as_save_IFS | |
b30fcfae | 7925 | |
f5aebe3e | 7926 | fi |
7927 | fi | |
b30fcfae | 7928 | FLEX=$ac_cv_prog_FLEX |
f5aebe3e | 7929 | if test -n "$FLEX"; then |
cd9a469c | 7930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7931 | $as_echo "$FLEX" >&6; } | |
f5aebe3e | 7932 | else |
cd9a469c | 7933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7934 | $as_echo "no" >&6; } | |
f5aebe3e | 7935 | fi |
7936 | ||
cd9a469c | 7937 | |
b30fcfae | 7938 | test -n "$FLEX" && break |
f5aebe3e | 7939 | done |
7940 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7941 | ||
7942 | case " $build_configdirs " in | |
7943 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7944 | esac | |
7945 | ||
7946 | for ac_prog in makeinfo | |
7947 | do | |
b30fcfae | 7948 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7949 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7951 | $as_echo_n "checking for $ac_word... " >&6; } | |
7952 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7953 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7954 | else |
7955 | if test -n "$MAKEINFO"; then | |
7956 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7957 | else | |
b30fcfae | 7958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7959 | for as_dir in $PATH | |
7960 | do | |
7961 | IFS=$as_save_IFS | |
7962 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7963 | for ac_exec_ext in '' $ac_executable_extensions; do |
7964 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7965 | ac_cv_prog_MAKEINFO="$ac_prog" |
cd9a469c | 7966 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7967 | break 2 |
7968 | fi | |
7969 | done | |
cd9a469c | 7970 | done |
7971 | IFS=$as_save_IFS | |
b30fcfae | 7972 | |
f5aebe3e | 7973 | fi |
7974 | fi | |
b30fcfae | 7975 | MAKEINFO=$ac_cv_prog_MAKEINFO |
f5aebe3e | 7976 | if test -n "$MAKEINFO"; then |
cd9a469c | 7977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7978 | $as_echo "$MAKEINFO" >&6; } | |
f5aebe3e | 7979 | else |
cd9a469c | 7980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7981 | $as_echo "no" >&6; } | |
f5aebe3e | 7982 | fi |
7983 | ||
cd9a469c | 7984 | |
b30fcfae | 7985 | test -n "$MAKEINFO" && break |
f5aebe3e | 7986 | done |
7987 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7988 | ||
7989 | case " $build_configdirs " in | |
7990 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7991 | *) | |
7992 | ||
03caadda | 7993 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
f5aebe3e | 7994 | # higher, else we use the "missing" dummy. |
7995 | if ${MAKEINFO} --version \ | |
03caadda | 7996 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
f5aebe3e | 7997 | : |
7998 | else | |
7999 | MAKEINFO="$MISSING makeinfo" | |
8000 | fi | |
8001 | ;; | |
8002 | ||
8003 | esac | |
71ab34df | 8004 | |
f5aebe3e | 8005 | # FIXME: expect and dejagnu may become build tools? |
71ab34df | 8006 | |
f5aebe3e | 8007 | for ac_prog in expect |
8008 | do | |
b30fcfae | 8009 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 8010 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 8011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8012 | $as_echo_n "checking for $ac_word... " >&6; } | |
8013 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
8014 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 8015 | else |
8016 | if test -n "$EXPECT"; then | |
8017 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
8018 | else | |
b30fcfae | 8019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8020 | for as_dir in $PATH | |
8021 | do | |
8022 | IFS=$as_save_IFS | |
8023 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8024 | for ac_exec_ext in '' $ac_executable_extensions; do |
8025 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8026 | ac_cv_prog_EXPECT="$ac_prog" |
cd9a469c | 8027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8028 | break 2 |
8029 | fi | |
8030 | done | |
cd9a469c | 8031 | done |
8032 | IFS=$as_save_IFS | |
b30fcfae | 8033 | |
f5aebe3e | 8034 | fi |
8035 | fi | |
b30fcfae | 8036 | EXPECT=$ac_cv_prog_EXPECT |
f5aebe3e | 8037 | if test -n "$EXPECT"; then |
cd9a469c | 8038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8039 | $as_echo "$EXPECT" >&6; } | |
f5aebe3e | 8040 | else |
cd9a469c | 8041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8042 | $as_echo "no" >&6; } | |
f5aebe3e | 8043 | fi |
71ab34df | 8044 | |
cd9a469c | 8045 | |
b30fcfae | 8046 | test -n "$EXPECT" && break |
f5aebe3e | 8047 | done |
8048 | test -n "$EXPECT" || EXPECT="expect" | |
71ab34df | 8049 | |
f5aebe3e | 8050 | case " $configdirs " in |
8051 | *" expect "*) | |
8052 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8053 | ;; | |
8054 | esac | |
71ab34df | 8055 | |
f5aebe3e | 8056 | for ac_prog in runtest |
8057 | do | |
b30fcfae | 8058 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 8059 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 8060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8061 | $as_echo_n "checking for $ac_word... " >&6; } | |
8062 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
8063 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 8064 | else |
8065 | if test -n "$RUNTEST"; then | |
8066 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
a4af6a58 | 8067 | else |
b30fcfae | 8068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8069 | for as_dir in $PATH | |
8070 | do | |
8071 | IFS=$as_save_IFS | |
8072 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8073 | for ac_exec_ext in '' $ac_executable_extensions; do |
8074 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8075 | ac_cv_prog_RUNTEST="$ac_prog" |
cd9a469c | 8076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8077 | break 2 |
8078 | fi | |
8079 | done | |
cd9a469c | 8080 | done |
8081 | IFS=$as_save_IFS | |
b30fcfae | 8082 | |
f5aebe3e | 8083 | fi |
8084 | fi | |
b30fcfae | 8085 | RUNTEST=$ac_cv_prog_RUNTEST |
f5aebe3e | 8086 | if test -n "$RUNTEST"; then |
cd9a469c | 8087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8088 | $as_echo "$RUNTEST" >&6; } | |
f5aebe3e | 8089 | else |
cd9a469c | 8090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8091 | $as_echo "no" >&6; } | |
f5aebe3e | 8092 | fi |
71ab34df | 8093 | |
cd9a469c | 8094 | |
b30fcfae | 8095 | test -n "$RUNTEST" && break |
f5aebe3e | 8096 | done |
8097 | test -n "$RUNTEST" || RUNTEST="runtest" | |
71ab34df | 8098 | |
f5aebe3e | 8099 | case " $configdirs " in |
8100 | *" dejagnu "*) | |
8d365775 | 8101 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
f5aebe3e | 8102 | ;; |
8103 | esac | |
71ab34df | 8104 | |
8105 | ||
71ab34df | 8106 | # Host tools. |
bb612911 | 8107 | ncn_tool_prefix= |
8108 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8109 | ncn_target_tool_prefix= | |
8110 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8111 | ||
95a05732 | 8112 | |
8113 | ||
8114 | if test -n "$AR"; then | |
8115 | ac_cv_prog_AR=$AR | |
8116 | elif test -n "$ac_cv_prog_AR"; then | |
8117 | AR=$ac_cv_prog_AR | |
8118 | fi | |
8119 | ||
8120 | if test -n "$ac_cv_prog_AR"; then | |
8121 | for ncn_progname in ar; do | |
8122 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8123 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8125 | $as_echo_n "checking for $ac_word... " >&6; } | |
8126 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8127 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8128 | else |
8129 | if test -n "$AR"; then | |
8130 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8131 | else | |
8132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8133 | for as_dir in $PATH | |
8134 | do | |
8135 | IFS=$as_save_IFS | |
8136 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8137 | for ac_exec_ext in '' $ac_executable_extensions; do |
8138 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8139 | ac_cv_prog_AR="${ncn_progname}" |
cd9a469c | 8140 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8141 | break 2 |
8142 | fi | |
8143 | done | |
cd9a469c | 8144 | done |
8145 | IFS=$as_save_IFS | |
95a05732 | 8146 | |
8147 | fi | |
8148 | fi | |
8149 | AR=$ac_cv_prog_AR | |
8150 | if test -n "$AR"; then | |
cd9a469c | 8151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8152 | $as_echo "$AR" >&6; } | |
95a05732 | 8153 | else |
cd9a469c | 8154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8155 | $as_echo "no" >&6; } | |
95a05732 | 8156 | fi |
8157 | ||
cd9a469c | 8158 | |
95a05732 | 8159 | done |
8160 | fi | |
8161 | ||
8162 | for ncn_progname in ar; do | |
768691b5 | 8163 | if test -n "$ncn_tool_prefix"; then |
8164 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8165 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8167 | $as_echo_n "checking for $ac_word... " >&6; } | |
8168 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8169 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8170 | else |
8171 | if test -n "$AR"; then | |
8172 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8173 | else | |
b30fcfae | 8174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8175 | for as_dir in $PATH | |
8176 | do | |
8177 | IFS=$as_save_IFS | |
8178 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8179 | for ac_exec_ext in '' $ac_executable_extensions; do |
8180 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8181 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8182 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8183 | break 2 |
8184 | fi | |
8185 | done | |
cd9a469c | 8186 | done |
8187 | IFS=$as_save_IFS | |
b30fcfae | 8188 | |
bb612911 | 8189 | fi |
8190 | fi | |
b30fcfae | 8191 | AR=$ac_cv_prog_AR |
bb612911 | 8192 | if test -n "$AR"; then |
cd9a469c | 8193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8194 | $as_echo "$AR" >&6; } | |
bb612911 | 8195 | else |
cd9a469c | 8196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8197 | $as_echo "no" >&6; } | |
bb612911 | 8198 | fi |
8199 | ||
cd9a469c | 8200 | |
768691b5 | 8201 | fi |
8202 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8203 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8204 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8206 | $as_echo_n "checking for $ac_word... " >&6; } | |
8207 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8208 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8209 | else |
768691b5 | 8210 | if test -n "$AR"; then |
ae48753c | 8211 | ac_cv_prog_AR="$AR" # Let the user override the test. |
8212 | else | |
b30fcfae | 8213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8214 | for as_dir in $PATH | |
8215 | do | |
8216 | IFS=$as_save_IFS | |
8217 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8218 | for ac_exec_ext in '' $ac_executable_extensions; do |
8219 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8220 | ac_cv_prog_AR="${ncn_progname}" |
cd9a469c | 8221 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8222 | break 2 |
8223 | fi | |
8224 | done | |
cd9a469c | 8225 | done |
8226 | IFS=$as_save_IFS | |
b30fcfae | 8227 | |
bb612911 | 8228 | fi |
8229 | fi | |
b30fcfae | 8230 | AR=$ac_cv_prog_AR |
768691b5 | 8231 | if test -n "$AR"; then |
cd9a469c | 8232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8233 | $as_echo "$AR" >&6; } | |
bb612911 | 8234 | else |
cd9a469c | 8235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8236 | $as_echo "no" >&6; } | |
bb612911 | 8237 | fi |
b30fcfae | 8238 | |
cd9a469c | 8239 | |
768691b5 | 8240 | fi |
8241 | test -n "$ac_cv_prog_AR" && break | |
8242 | done | |
8243 | ||
8244 | if test -z "$ac_cv_prog_AR" ; then | |
8245 | set dummy ar | |
8246 | if test $build = $host ; then | |
8247 | AR="$2" | |
bb612911 | 8248 | else |
768691b5 | 8249 | AR="${ncn_tool_prefix}$2" |
bb612911 | 8250 | fi |
bb612911 | 8251 | fi |
8252 | ||
95a05732 | 8253 | |
8254 | ||
8255 | if test -n "$AS"; then | |
8256 | ac_cv_prog_AS=$AS | |
8257 | elif test -n "$ac_cv_prog_AS"; then | |
8258 | AS=$ac_cv_prog_AS | |
8259 | fi | |
8260 | ||
8261 | if test -n "$ac_cv_prog_AS"; then | |
8262 | for ncn_progname in as; do | |
8263 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8264 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8266 | $as_echo_n "checking for $ac_word... " >&6; } | |
8267 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8268 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8269 | else |
8270 | if test -n "$AS"; then | |
8271 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8272 | else | |
8273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8274 | for as_dir in $PATH | |
8275 | do | |
8276 | IFS=$as_save_IFS | |
8277 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8278 | for ac_exec_ext in '' $ac_executable_extensions; do |
8279 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8280 | ac_cv_prog_AS="${ncn_progname}" |
cd9a469c | 8281 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8282 | break 2 |
8283 | fi | |
8284 | done | |
cd9a469c | 8285 | done |
8286 | IFS=$as_save_IFS | |
95a05732 | 8287 | |
8288 | fi | |
8289 | fi | |
8290 | AS=$ac_cv_prog_AS | |
8291 | if test -n "$AS"; then | |
cd9a469c | 8292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8293 | $as_echo "$AS" >&6; } | |
95a05732 | 8294 | else |
cd9a469c | 8295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8296 | $as_echo "no" >&6; } | |
95a05732 | 8297 | fi |
8298 | ||
cd9a469c | 8299 | |
95a05732 | 8300 | done |
8301 | fi | |
8302 | ||
8303 | for ncn_progname in as; do | |
768691b5 | 8304 | if test -n "$ncn_tool_prefix"; then |
8305 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8306 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8308 | $as_echo_n "checking for $ac_word... " >&6; } | |
8309 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8310 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8311 | else |
8312 | if test -n "$AS"; then | |
8313 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
a83ffacf | 8314 | else |
b30fcfae | 8315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8316 | for as_dir in $PATH | |
8317 | do | |
8318 | IFS=$as_save_IFS | |
8319 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8320 | for ac_exec_ext in '' $ac_executable_extensions; do |
8321 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8322 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8324 | break 2 |
8325 | fi | |
8326 | done | |
cd9a469c | 8327 | done |
8328 | IFS=$as_save_IFS | |
b30fcfae | 8329 | |
bb612911 | 8330 | fi |
8331 | fi | |
b30fcfae | 8332 | AS=$ac_cv_prog_AS |
bb612911 | 8333 | if test -n "$AS"; then |
cd9a469c | 8334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8335 | $as_echo "$AS" >&6; } | |
bb612911 | 8336 | else |
cd9a469c | 8337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8338 | $as_echo "no" >&6; } | |
bb612911 | 8339 | fi |
8340 | ||
cd9a469c | 8341 | |
768691b5 | 8342 | fi |
8343 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8344 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8345 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8347 | $as_echo_n "checking for $ac_word... " >&6; } | |
8348 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8349 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8350 | else |
768691b5 | 8351 | if test -n "$AS"; then |
8352 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
bb612911 | 8353 | else |
b30fcfae | 8354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8355 | for as_dir in $PATH | |
8356 | do | |
8357 | IFS=$as_save_IFS | |
8358 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8359 | for ac_exec_ext in '' $ac_executable_extensions; do |
8360 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8361 | ac_cv_prog_AS="${ncn_progname}" |
cd9a469c | 8362 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8363 | break 2 |
8364 | fi | |
8365 | done | |
cd9a469c | 8366 | done |
8367 | IFS=$as_save_IFS | |
b30fcfae | 8368 | |
bb612911 | 8369 | fi |
8370 | fi | |
b30fcfae | 8371 | AS=$ac_cv_prog_AS |
768691b5 | 8372 | if test -n "$AS"; then |
cd9a469c | 8373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8374 | $as_echo "$AS" >&6; } | |
bb612911 | 8375 | else |
cd9a469c | 8376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8377 | $as_echo "no" >&6; } | |
bb612911 | 8378 | fi |
b30fcfae | 8379 | |
cd9a469c | 8380 | |
768691b5 | 8381 | fi |
8382 | test -n "$ac_cv_prog_AS" && break | |
8383 | done | |
8384 | ||
8385 | if test -z "$ac_cv_prog_AS" ; then | |
8386 | set dummy as | |
8387 | if test $build = $host ; then | |
8388 | AS="$2" | |
bb612911 | 8389 | else |
768691b5 | 8390 | AS="${ncn_tool_prefix}$2" |
bb612911 | 8391 | fi |
bb612911 | 8392 | fi |
8393 | ||
95a05732 | 8394 | |
8395 | ||
8396 | if test -n "$DLLTOOL"; then | |
8397 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8398 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8399 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8400 | fi | |
8401 | ||
8402 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8403 | for ncn_progname in dlltool; do | |
8404 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8405 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8407 | $as_echo_n "checking for $ac_word... " >&6; } | |
8408 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8409 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8410 | else |
8411 | if test -n "$DLLTOOL"; then | |
8412 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8413 | else | |
8414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8415 | for as_dir in $PATH | |
8416 | do | |
8417 | IFS=$as_save_IFS | |
8418 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8419 | for ac_exec_ext in '' $ac_executable_extensions; do |
8420 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8421 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
cd9a469c | 8422 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8423 | break 2 |
8424 | fi | |
8425 | done | |
cd9a469c | 8426 | done |
8427 | IFS=$as_save_IFS | |
95a05732 | 8428 | |
8429 | fi | |
8430 | fi | |
8431 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8432 | if test -n "$DLLTOOL"; then | |
cd9a469c | 8433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8434 | $as_echo "$DLLTOOL" >&6; } | |
95a05732 | 8435 | else |
cd9a469c | 8436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8437 | $as_echo "no" >&6; } | |
95a05732 | 8438 | fi |
8439 | ||
cd9a469c | 8440 | |
95a05732 | 8441 | done |
8442 | fi | |
8443 | ||
8444 | for ncn_progname in dlltool; do | |
768691b5 | 8445 | if test -n "$ncn_tool_prefix"; then |
8446 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8447 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8449 | $as_echo_n "checking for $ac_word... " >&6; } | |
8450 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8451 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8452 | else |
8453 | if test -n "$DLLTOOL"; then | |
8454 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8455 | else | |
b30fcfae | 8456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8457 | for as_dir in $PATH | |
8458 | do | |
8459 | IFS=$as_save_IFS | |
8460 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8461 | for ac_exec_ext in '' $ac_executable_extensions; do |
8462 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8463 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8464 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8465 | break 2 |
8466 | fi | |
8467 | done | |
cd9a469c | 8468 | done |
8469 | IFS=$as_save_IFS | |
b30fcfae | 8470 | |
bb612911 | 8471 | fi |
8472 | fi | |
b30fcfae | 8473 | DLLTOOL=$ac_cv_prog_DLLTOOL |
bb612911 | 8474 | if test -n "$DLLTOOL"; then |
cd9a469c | 8475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8476 | $as_echo "$DLLTOOL" >&6; } | |
bb612911 | 8477 | else |
cd9a469c | 8478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8479 | $as_echo "no" >&6; } | |
bb612911 | 8480 | fi |
8481 | ||
cd9a469c | 8482 | |
768691b5 | 8483 | fi |
8484 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8485 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8486 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8488 | $as_echo_n "checking for $ac_word... " >&6; } | |
8489 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8490 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8491 | else |
768691b5 | 8492 | if test -n "$DLLTOOL"; then |
8493 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
bb612911 | 8494 | else |
b30fcfae | 8495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8496 | for as_dir in $PATH | |
8497 | do | |
8498 | IFS=$as_save_IFS | |
8499 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8500 | for ac_exec_ext in '' $ac_executable_extensions; do |
8501 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8502 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
cd9a469c | 8503 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8504 | break 2 |
8505 | fi | |
8506 | done | |
cd9a469c | 8507 | done |
8508 | IFS=$as_save_IFS | |
b30fcfae | 8509 | |
bb612911 | 8510 | fi |
8511 | fi | |
b30fcfae | 8512 | DLLTOOL=$ac_cv_prog_DLLTOOL |
768691b5 | 8513 | if test -n "$DLLTOOL"; then |
cd9a469c | 8514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8515 | $as_echo "$DLLTOOL" >&6; } | |
bb612911 | 8516 | else |
cd9a469c | 8517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8518 | $as_echo "no" >&6; } | |
bb612911 | 8519 | fi |
b30fcfae | 8520 | |
cd9a469c | 8521 | |
768691b5 | 8522 | fi |
8523 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8524 | done | |
8525 | ||
8526 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8527 | set dummy dlltool | |
8528 | if test $build = $host ; then | |
8529 | DLLTOOL="$2" | |
bb612911 | 8530 | else |
768691b5 | 8531 | DLLTOOL="${ncn_tool_prefix}$2" |
bb612911 | 8532 | fi |
bb612911 | 8533 | fi |
8534 | ||
95a05732 | 8535 | |
8536 | ||
8537 | if test -n "$LD"; then | |
8538 | ac_cv_prog_LD=$LD | |
8539 | elif test -n "$ac_cv_prog_LD"; then | |
8540 | LD=$ac_cv_prog_LD | |
8541 | fi | |
8542 | ||
8543 | if test -n "$ac_cv_prog_LD"; then | |
8544 | for ncn_progname in ld; do | |
8545 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8546 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8548 | $as_echo_n "checking for $ac_word... " >&6; } | |
8549 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8550 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8551 | else |
8552 | if test -n "$LD"; then | |
8553 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8554 | else | |
8555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8556 | for as_dir in $PATH | |
8557 | do | |
8558 | IFS=$as_save_IFS | |
8559 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8560 | for ac_exec_ext in '' $ac_executable_extensions; do |
8561 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8562 | ac_cv_prog_LD="${ncn_progname}" |
cd9a469c | 8563 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8564 | break 2 |
8565 | fi | |
8566 | done | |
cd9a469c | 8567 | done |
8568 | IFS=$as_save_IFS | |
95a05732 | 8569 | |
8570 | fi | |
8571 | fi | |
8572 | LD=$ac_cv_prog_LD | |
8573 | if test -n "$LD"; then | |
cd9a469c | 8574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8575 | $as_echo "$LD" >&6; } | |
95a05732 | 8576 | else |
cd9a469c | 8577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8578 | $as_echo "no" >&6; } | |
95a05732 | 8579 | fi |
8580 | ||
cd9a469c | 8581 | |
95a05732 | 8582 | done |
8583 | fi | |
8584 | ||
8585 | for ncn_progname in ld; do | |
768691b5 | 8586 | if test -n "$ncn_tool_prefix"; then |
8587 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8588 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8590 | $as_echo_n "checking for $ac_word... " >&6; } | |
8591 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8592 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8593 | else |
8594 | if test -n "$LD"; then | |
8595 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8596 | else | |
b30fcfae | 8597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8598 | for as_dir in $PATH | |
8599 | do | |
8600 | IFS=$as_save_IFS | |
8601 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8602 | for ac_exec_ext in '' $ac_executable_extensions; do |
8603 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8604 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8605 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8606 | break 2 |
8607 | fi | |
8608 | done | |
cd9a469c | 8609 | done |
8610 | IFS=$as_save_IFS | |
b30fcfae | 8611 | |
bb612911 | 8612 | fi |
8613 | fi | |
b30fcfae | 8614 | LD=$ac_cv_prog_LD |
bb612911 | 8615 | if test -n "$LD"; then |
cd9a469c | 8616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8617 | $as_echo "$LD" >&6; } | |
bb612911 | 8618 | else |
cd9a469c | 8619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8620 | $as_echo "no" >&6; } | |
bb612911 | 8621 | fi |
8622 | ||
cd9a469c | 8623 | |
768691b5 | 8624 | fi |
8625 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8626 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8627 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8629 | $as_echo_n "checking for $ac_word... " >&6; } | |
8630 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8631 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8632 | else |
768691b5 | 8633 | if test -n "$LD"; then |
8634 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
7172be51 | 8635 | else |
b30fcfae | 8636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8637 | for as_dir in $PATH | |
8638 | do | |
8639 | IFS=$as_save_IFS | |
8640 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8641 | for ac_exec_ext in '' $ac_executable_extensions; do |
8642 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8643 | ac_cv_prog_LD="${ncn_progname}" |
cd9a469c | 8644 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8645 | break 2 |
8646 | fi | |
8647 | done | |
cd9a469c | 8648 | done |
8649 | IFS=$as_save_IFS | |
b30fcfae | 8650 | |
bb612911 | 8651 | fi |
8652 | fi | |
b30fcfae | 8653 | LD=$ac_cv_prog_LD |
768691b5 | 8654 | if test -n "$LD"; then |
cd9a469c | 8655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8656 | $as_echo "$LD" >&6; } | |
bb612911 | 8657 | else |
cd9a469c | 8658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8659 | $as_echo "no" >&6; } | |
bb612911 | 8660 | fi |
b30fcfae | 8661 | |
cd9a469c | 8662 | |
768691b5 | 8663 | fi |
8664 | test -n "$ac_cv_prog_LD" && break | |
8665 | done | |
8666 | ||
8667 | if test -z "$ac_cv_prog_LD" ; then | |
8668 | set dummy ld | |
8669 | if test $build = $host ; then | |
8670 | LD="$2" | |
bb612911 | 8671 | else |
768691b5 | 8672 | LD="${ncn_tool_prefix}$2" |
bb612911 | 8673 | fi |
bb612911 | 8674 | fi |
8675 | ||
95a05732 | 8676 | |
8677 | ||
8678 | if test -n "$LIPO"; then | |
8679 | ac_cv_prog_LIPO=$LIPO | |
8680 | elif test -n "$ac_cv_prog_LIPO"; then | |
8681 | LIPO=$ac_cv_prog_LIPO | |
8682 | fi | |
8683 | ||
8684 | if test -n "$ac_cv_prog_LIPO"; then | |
8685 | for ncn_progname in lipo; do | |
8686 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8687 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8689 | $as_echo_n "checking for $ac_word... " >&6; } | |
8690 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8691 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8692 | else |
8693 | if test -n "$LIPO"; then | |
8694 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8695 | else | |
8696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8697 | for as_dir in $PATH | |
8698 | do | |
8699 | IFS=$as_save_IFS | |
8700 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8701 | for ac_exec_ext in '' $ac_executable_extensions; do |
8702 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8703 | ac_cv_prog_LIPO="${ncn_progname}" |
cd9a469c | 8704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8705 | break 2 |
8706 | fi | |
8707 | done | |
cd9a469c | 8708 | done |
8709 | IFS=$as_save_IFS | |
95a05732 | 8710 | |
8711 | fi | |
8712 | fi | |
8713 | LIPO=$ac_cv_prog_LIPO | |
8714 | if test -n "$LIPO"; then | |
cd9a469c | 8715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8716 | $as_echo "$LIPO" >&6; } | |
95a05732 | 8717 | else |
cd9a469c | 8718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8719 | $as_echo "no" >&6; } | |
95a05732 | 8720 | fi |
8721 | ||
cd9a469c | 8722 | |
95a05732 | 8723 | done |
8724 | fi | |
8725 | ||
8726 | for ncn_progname in lipo; do | |
f5aebe3e | 8727 | if test -n "$ncn_tool_prefix"; then |
8728 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8729 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8731 | $as_echo_n "checking for $ac_word... " >&6; } | |
8732 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8733 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 8734 | else |
8735 | if test -n "$LIPO"; then | |
8736 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8737 | else | |
b30fcfae | 8738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8739 | for as_dir in $PATH | |
8740 | do | |
8741 | IFS=$as_save_IFS | |
8742 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8743 | for ac_exec_ext in '' $ac_executable_extensions; do |
8744 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8745 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8747 | break 2 |
8748 | fi | |
8749 | done | |
cd9a469c | 8750 | done |
8751 | IFS=$as_save_IFS | |
b30fcfae | 8752 | |
f5aebe3e | 8753 | fi |
8754 | fi | |
b30fcfae | 8755 | LIPO=$ac_cv_prog_LIPO |
f5aebe3e | 8756 | if test -n "$LIPO"; then |
cd9a469c | 8757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8758 | $as_echo "$LIPO" >&6; } | |
f5aebe3e | 8759 | else |
cd9a469c | 8760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8761 | $as_echo "no" >&6; } | |
f5aebe3e | 8762 | fi |
8763 | ||
cd9a469c | 8764 | |
f5aebe3e | 8765 | fi |
8766 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8767 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8768 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8770 | $as_echo_n "checking for $ac_word... " >&6; } | |
8771 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8772 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 8773 | else |
8774 | if test -n "$LIPO"; then | |
8775 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8776 | else | |
b30fcfae | 8777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8778 | for as_dir in $PATH | |
8779 | do | |
8780 | IFS=$as_save_IFS | |
8781 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8782 | for ac_exec_ext in '' $ac_executable_extensions; do |
8783 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8784 | ac_cv_prog_LIPO="${ncn_progname}" |
cd9a469c | 8785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8786 | break 2 |
8787 | fi | |
8788 | done | |
cd9a469c | 8789 | done |
8790 | IFS=$as_save_IFS | |
b30fcfae | 8791 | |
f5aebe3e | 8792 | fi |
8793 | fi | |
b30fcfae | 8794 | LIPO=$ac_cv_prog_LIPO |
f5aebe3e | 8795 | if test -n "$LIPO"; then |
cd9a469c | 8796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8797 | $as_echo "$LIPO" >&6; } | |
f5aebe3e | 8798 | else |
cd9a469c | 8799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8800 | $as_echo "no" >&6; } | |
f5aebe3e | 8801 | fi |
b30fcfae | 8802 | |
cd9a469c | 8803 | |
f5aebe3e | 8804 | fi |
8805 | test -n "$ac_cv_prog_LIPO" && break | |
8806 | done | |
8807 | ||
8808 | if test -z "$ac_cv_prog_LIPO" ; then | |
8809 | set dummy lipo | |
8810 | if test $build = $host ; then | |
8811 | LIPO="$2" | |
8812 | else | |
8813 | LIPO="${ncn_tool_prefix}$2" | |
8814 | fi | |
8815 | fi | |
8816 | ||
95a05732 | 8817 | |
8818 | ||
8819 | if test -n "$NM"; then | |
8820 | ac_cv_prog_NM=$NM | |
8821 | elif test -n "$ac_cv_prog_NM"; then | |
8822 | NM=$ac_cv_prog_NM | |
8823 | fi | |
8824 | ||
8825 | if test -n "$ac_cv_prog_NM"; then | |
8826 | for ncn_progname in nm; do | |
8827 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8828 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8830 | $as_echo_n "checking for $ac_word... " >&6; } | |
8831 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8832 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8833 | else |
8834 | if test -n "$NM"; then | |
8835 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8836 | else | |
b30fcfae | 8837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8838 | for as_dir in $PATH | |
8839 | do | |
8840 | IFS=$as_save_IFS | |
8841 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8842 | for ac_exec_ext in '' $ac_executable_extensions; do |
8843 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8844 | ac_cv_prog_NM="${ncn_progname}" |
cd9a469c | 8845 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8846 | break 2 |
8847 | fi | |
8848 | done | |
cd9a469c | 8849 | done |
8850 | IFS=$as_save_IFS | |
b30fcfae | 8851 | |
bb612911 | 8852 | fi |
8853 | fi | |
b30fcfae | 8854 | NM=$ac_cv_prog_NM |
bb612911 | 8855 | if test -n "$NM"; then |
cd9a469c | 8856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8857 | $as_echo "$NM" >&6; } | |
bb612911 | 8858 | else |
cd9a469c | 8859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8860 | $as_echo "no" >&6; } | |
bb612911 | 8861 | fi |
8862 | ||
cd9a469c | 8863 | |
95a05732 | 8864 | done |
8865 | fi | |
8866 | ||
8867 | for ncn_progname in nm; do | |
8868 | if test -n "$ncn_tool_prefix"; then | |
8869 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8870 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8872 | $as_echo_n "checking for $ac_word... " >&6; } | |
8873 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8874 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8875 | else |
768691b5 | 8876 | if test -n "$NM"; then |
8877 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
bb612911 | 8878 | else |
b30fcfae | 8879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8880 | for as_dir in $PATH | |
8881 | do | |
8882 | IFS=$as_save_IFS | |
8883 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8884 | for ac_exec_ext in '' $ac_executable_extensions; do |
8885 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8886 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8887 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8888 | break 2 |
8889 | fi | |
8890 | done | |
cd9a469c | 8891 | done |
8892 | IFS=$as_save_IFS | |
b30fcfae | 8893 | |
bb612911 | 8894 | fi |
8895 | fi | |
b30fcfae | 8896 | NM=$ac_cv_prog_NM |
768691b5 | 8897 | if test -n "$NM"; then |
cd9a469c | 8898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8899 | $as_echo "$NM" >&6; } | |
bb612911 | 8900 | else |
cd9a469c | 8901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8902 | $as_echo "no" >&6; } | |
bb612911 | 8903 | fi |
b30fcfae | 8904 | |
cd9a469c | 8905 | |
768691b5 | 8906 | fi |
95a05732 | 8907 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8908 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8909 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8911 | $as_echo_n "checking for $ac_word... " >&6; } | |
8912 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8913 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8914 | else |
8915 | if test -n "$NM"; then | |
8916 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8917 | else | |
8918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8919 | for as_dir in $PATH | |
8920 | do | |
8921 | IFS=$as_save_IFS | |
8922 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8923 | for ac_exec_ext in '' $ac_executable_extensions; do |
8924 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8925 | ac_cv_prog_NM="${ncn_progname}" |
cd9a469c | 8926 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8927 | break 2 |
8928 | fi | |
8929 | done | |
cd9a469c | 8930 | done |
8931 | IFS=$as_save_IFS | |
95a05732 | 8932 | |
8933 | fi | |
8934 | fi | |
8935 | NM=$ac_cv_prog_NM | |
8936 | if test -n "$NM"; then | |
cd9a469c | 8937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8938 | $as_echo "$NM" >&6; } | |
95a05732 | 8939 | else |
cd9a469c | 8940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8941 | $as_echo "no" >&6; } | |
95a05732 | 8942 | fi |
8943 | ||
cd9a469c | 8944 | |
95a05732 | 8945 | fi |
8946 | test -n "$ac_cv_prog_NM" && break | |
8947 | done | |
8948 | ||
8949 | if test -z "$ac_cv_prog_NM" ; then | |
8950 | set dummy nm | |
8951 | if test $build = $host ; then | |
8952 | NM="$2" | |
8953 | else | |
8954 | NM="${ncn_tool_prefix}$2" | |
8955 | fi | |
8956 | fi | |
8957 | ||
8958 | ||
8959 | ||
8960 | if test -n "$RANLIB"; then | |
8961 | ac_cv_prog_RANLIB=$RANLIB | |
8962 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8963 | RANLIB=$ac_cv_prog_RANLIB | |
8964 | fi | |
8965 | ||
8966 | if test -n "$ac_cv_prog_RANLIB"; then | |
8967 | for ncn_progname in ranlib; do | |
8968 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8969 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8971 | $as_echo_n "checking for $ac_word... " >&6; } | |
8972 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8973 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8974 | else |
8975 | if test -n "$RANLIB"; then | |
8976 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8977 | else | |
8978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8979 | for as_dir in $PATH | |
8980 | do | |
8981 | IFS=$as_save_IFS | |
8982 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8983 | for ac_exec_ext in '' $ac_executable_extensions; do |
8984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8985 | ac_cv_prog_RANLIB="${ncn_progname}" |
cd9a469c | 8986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8987 | break 2 |
8988 | fi | |
8989 | done | |
cd9a469c | 8990 | done |
8991 | IFS=$as_save_IFS | |
95a05732 | 8992 | |
8993 | fi | |
8994 | fi | |
8995 | RANLIB=$ac_cv_prog_RANLIB | |
8996 | if test -n "$RANLIB"; then | |
cd9a469c | 8997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8998 | $as_echo "$RANLIB" >&6; } | |
95a05732 | 8999 | else |
cd9a469c | 9000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9001 | $as_echo "no" >&6; } | |
95a05732 | 9002 | fi |
9003 | ||
cd9a469c | 9004 | |
95a05732 | 9005 | done |
9006 | fi | |
bb612911 | 9007 | |
95a05732 | 9008 | for ncn_progname in ranlib; do |
768691b5 | 9009 | if test -n "$ncn_tool_prefix"; then |
9010 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9011 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9013 | $as_echo_n "checking for $ac_word... " >&6; } | |
9014 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
9015 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9016 | else |
9017 | if test -n "$RANLIB"; then | |
9018 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9019 | else | |
b30fcfae | 9020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9021 | for as_dir in $PATH | |
9022 | do | |
9023 | IFS=$as_save_IFS | |
9024 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9025 | for ac_exec_ext in '' $ac_executable_extensions; do |
9026 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9027 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9028 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9029 | break 2 |
9030 | fi | |
9031 | done | |
cd9a469c | 9032 | done |
9033 | IFS=$as_save_IFS | |
b30fcfae | 9034 | |
bb612911 | 9035 | fi |
9036 | fi | |
b30fcfae | 9037 | RANLIB=$ac_cv_prog_RANLIB |
bb612911 | 9038 | if test -n "$RANLIB"; then |
cd9a469c | 9039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9040 | $as_echo "$RANLIB" >&6; } | |
bb612911 | 9041 | else |
cd9a469c | 9042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9043 | $as_echo "no" >&6; } | |
bb612911 | 9044 | fi |
9045 | ||
cd9a469c | 9046 | |
768691b5 | 9047 | fi |
9048 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
9049 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9050 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9052 | $as_echo_n "checking for $ac_word... " >&6; } | |
9053 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
9054 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9055 | else |
768691b5 | 9056 | if test -n "$RANLIB"; then |
9057 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
bb612911 | 9058 | else |
b30fcfae | 9059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9060 | for as_dir in $PATH | |
9061 | do | |
9062 | IFS=$as_save_IFS | |
9063 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9064 | for ac_exec_ext in '' $ac_executable_extensions; do |
9065 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9066 | ac_cv_prog_RANLIB="${ncn_progname}" |
cd9a469c | 9067 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9068 | break 2 |
9069 | fi | |
9070 | done | |
cd9a469c | 9071 | done |
9072 | IFS=$as_save_IFS | |
b30fcfae | 9073 | |
bb612911 | 9074 | fi |
9075 | fi | |
b30fcfae | 9076 | RANLIB=$ac_cv_prog_RANLIB |
768691b5 | 9077 | if test -n "$RANLIB"; then |
cd9a469c | 9078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9079 | $as_echo "$RANLIB" >&6; } | |
bb612911 | 9080 | else |
cd9a469c | 9081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9082 | $as_echo "no" >&6; } | |
bb612911 | 9083 | fi |
b30fcfae | 9084 | |
cd9a469c | 9085 | |
bb612911 | 9086 | fi |
768691b5 | 9087 | test -n "$ac_cv_prog_RANLIB" && break |
9088 | done | |
9089 | ||
9090 | if test -z "$ac_cv_prog_RANLIB" ; then | |
68645a6b | 9091 | RANLIB="true" |
bb612911 | 9092 | fi |
9093 | ||
95a05732 | 9094 | |
9095 | ||
9096 | if test -n "$STRIP"; then | |
9097 | ac_cv_prog_STRIP=$STRIP | |
9098 | elif test -n "$ac_cv_prog_STRIP"; then | |
9099 | STRIP=$ac_cv_prog_STRIP | |
9100 | fi | |
9101 | ||
9102 | if test -n "$ac_cv_prog_STRIP"; then | |
9103 | for ncn_progname in strip; do | |
9104 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9105 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9107 | $as_echo_n "checking for $ac_word... " >&6; } | |
9108 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9109 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9110 | else |
9111 | if test -n "$STRIP"; then | |
9112 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9113 | else | |
9114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9115 | for as_dir in $PATH | |
9116 | do | |
9117 | IFS=$as_save_IFS | |
9118 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9119 | for ac_exec_ext in '' $ac_executable_extensions; do |
9120 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9121 | ac_cv_prog_STRIP="${ncn_progname}" |
cd9a469c | 9122 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9123 | break 2 |
9124 | fi | |
9125 | done | |
cd9a469c | 9126 | done |
9127 | IFS=$as_save_IFS | |
95a05732 | 9128 | |
9129 | fi | |
9130 | fi | |
9131 | STRIP=$ac_cv_prog_STRIP | |
9132 | if test -n "$STRIP"; then | |
cd9a469c | 9133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9134 | $as_echo "$STRIP" >&6; } | |
95a05732 | 9135 | else |
cd9a469c | 9136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9137 | $as_echo "no" >&6; } | |
95a05732 | 9138 | fi |
9139 | ||
cd9a469c | 9140 | |
95a05732 | 9141 | done |
9142 | fi | |
9143 | ||
9144 | for ncn_progname in strip; do | |
f5aebe3e | 9145 | if test -n "$ncn_tool_prefix"; then |
9146 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9147 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9149 | $as_echo_n "checking for $ac_word... " >&6; } | |
9150 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9151 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 9152 | else |
9153 | if test -n "$STRIP"; then | |
9154 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9155 | else | |
b30fcfae | 9156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9157 | for as_dir in $PATH | |
9158 | do | |
9159 | IFS=$as_save_IFS | |
9160 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9161 | for ac_exec_ext in '' $ac_executable_extensions; do |
9162 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9163 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9164 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9165 | break 2 |
9166 | fi | |
9167 | done | |
cd9a469c | 9168 | done |
9169 | IFS=$as_save_IFS | |
b30fcfae | 9170 | |
f5aebe3e | 9171 | fi |
9172 | fi | |
b30fcfae | 9173 | STRIP=$ac_cv_prog_STRIP |
f5aebe3e | 9174 | if test -n "$STRIP"; then |
cd9a469c | 9175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9176 | $as_echo "$STRIP" >&6; } | |
f5aebe3e | 9177 | else |
cd9a469c | 9178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9179 | $as_echo "no" >&6; } | |
f5aebe3e | 9180 | fi |
9181 | ||
cd9a469c | 9182 | |
f5aebe3e | 9183 | fi |
9184 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9185 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9186 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9188 | $as_echo_n "checking for $ac_word... " >&6; } | |
9189 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9190 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 9191 | else |
9192 | if test -n "$STRIP"; then | |
9193 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9194 | else | |
b30fcfae | 9195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9196 | for as_dir in $PATH | |
9197 | do | |
9198 | IFS=$as_save_IFS | |
9199 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9200 | for ac_exec_ext in '' $ac_executable_extensions; do |
9201 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9202 | ac_cv_prog_STRIP="${ncn_progname}" |
cd9a469c | 9203 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9204 | break 2 |
9205 | fi | |
9206 | done | |
cd9a469c | 9207 | done |
9208 | IFS=$as_save_IFS | |
b30fcfae | 9209 | |
f5aebe3e | 9210 | fi |
9211 | fi | |
b30fcfae | 9212 | STRIP=$ac_cv_prog_STRIP |
f5aebe3e | 9213 | if test -n "$STRIP"; then |
cd9a469c | 9214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9215 | $as_echo "$STRIP" >&6; } | |
f5aebe3e | 9216 | else |
cd9a469c | 9217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9218 | $as_echo "no" >&6; } | |
f5aebe3e | 9219 | fi |
b30fcfae | 9220 | |
cd9a469c | 9221 | |
f5aebe3e | 9222 | fi |
9223 | test -n "$ac_cv_prog_STRIP" && break | |
9224 | done | |
9225 | ||
9226 | if test -z "$ac_cv_prog_STRIP" ; then | |
68645a6b | 9227 | STRIP="true" |
f5aebe3e | 9228 | fi |
9229 | ||
95a05732 | 9230 | |
9231 | ||
9232 | if test -n "$WINDRES"; then | |
9233 | ac_cv_prog_WINDRES=$WINDRES | |
9234 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9235 | WINDRES=$ac_cv_prog_WINDRES | |
9236 | fi | |
9237 | ||
9238 | if test -n "$ac_cv_prog_WINDRES"; then | |
9239 | for ncn_progname in windres; do | |
9240 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9241 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9243 | $as_echo_n "checking for $ac_word... " >&6; } | |
9244 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9245 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9246 | else |
9247 | if test -n "$WINDRES"; then | |
9248 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9249 | else | |
9250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9251 | for as_dir in $PATH | |
9252 | do | |
9253 | IFS=$as_save_IFS | |
9254 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9255 | for ac_exec_ext in '' $ac_executable_extensions; do |
9256 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9257 | ac_cv_prog_WINDRES="${ncn_progname}" |
cd9a469c | 9258 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9259 | break 2 |
9260 | fi | |
9261 | done | |
cd9a469c | 9262 | done |
9263 | IFS=$as_save_IFS | |
95a05732 | 9264 | |
9265 | fi | |
9266 | fi | |
9267 | WINDRES=$ac_cv_prog_WINDRES | |
9268 | if test -n "$WINDRES"; then | |
cd9a469c | 9269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9270 | $as_echo "$WINDRES" >&6; } | |
95a05732 | 9271 | else |
cd9a469c | 9272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9273 | $as_echo "no" >&6; } | |
95a05732 | 9274 | fi |
9275 | ||
cd9a469c | 9276 | |
95a05732 | 9277 | done |
9278 | fi | |
9279 | ||
9280 | for ncn_progname in windres; do | |
768691b5 | 9281 | if test -n "$ncn_tool_prefix"; then |
9282 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9283 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9285 | $as_echo_n "checking for $ac_word... " >&6; } | |
9286 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9287 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9288 | else |
9289 | if test -n "$WINDRES"; then | |
9290 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9291 | else | |
b30fcfae | 9292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9293 | for as_dir in $PATH | |
9294 | do | |
9295 | IFS=$as_save_IFS | |
9296 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9297 | for ac_exec_ext in '' $ac_executable_extensions; do |
9298 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9299 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9300 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9301 | break 2 |
9302 | fi | |
9303 | done | |
cd9a469c | 9304 | done |
9305 | IFS=$as_save_IFS | |
b30fcfae | 9306 | |
bb612911 | 9307 | fi |
9308 | fi | |
b30fcfae | 9309 | WINDRES=$ac_cv_prog_WINDRES |
bb612911 | 9310 | if test -n "$WINDRES"; then |
cd9a469c | 9311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9312 | $as_echo "$WINDRES" >&6; } | |
bb612911 | 9313 | else |
cd9a469c | 9314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9315 | $as_echo "no" >&6; } | |
bb612911 | 9316 | fi |
9317 | ||
cd9a469c | 9318 | |
768691b5 | 9319 | fi |
9320 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9321 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9322 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9324 | $as_echo_n "checking for $ac_word... " >&6; } | |
9325 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9326 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9327 | else |
768691b5 | 9328 | if test -n "$WINDRES"; then |
9329 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
bb612911 | 9330 | else |
b30fcfae | 9331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9332 | for as_dir in $PATH | |
9333 | do | |
9334 | IFS=$as_save_IFS | |
9335 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9336 | for ac_exec_ext in '' $ac_executable_extensions; do |
9337 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9338 | ac_cv_prog_WINDRES="${ncn_progname}" |
cd9a469c | 9339 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9340 | break 2 |
9341 | fi | |
9342 | done | |
cd9a469c | 9343 | done |
9344 | IFS=$as_save_IFS | |
b30fcfae | 9345 | |
bb612911 | 9346 | fi |
9347 | fi | |
b30fcfae | 9348 | WINDRES=$ac_cv_prog_WINDRES |
768691b5 | 9349 | if test -n "$WINDRES"; then |
cd9a469c | 9350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9351 | $as_echo "$WINDRES" >&6; } | |
bb612911 | 9352 | else |
cd9a469c | 9353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9354 | $as_echo "no" >&6; } | |
bb612911 | 9355 | fi |
b30fcfae | 9356 | |
cd9a469c | 9357 | |
768691b5 | 9358 | fi |
9359 | test -n "$ac_cv_prog_WINDRES" && break | |
9360 | done | |
9361 | ||
9362 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9363 | set dummy windres | |
9364 | if test $build = $host ; then | |
9365 | WINDRES="$2" | |
bb612911 | 9366 | else |
768691b5 | 9367 | WINDRES="${ncn_tool_prefix}$2" |
bb612911 | 9368 | fi |
bb612911 | 9369 | fi |
9370 | ||
95a05732 | 9371 | |
9372 | ||
75d6a0a9 | 9373 | if test -n "$WINDMC"; then |
9374 | ac_cv_prog_WINDMC=$WINDMC | |
9375 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9376 | WINDMC=$ac_cv_prog_WINDMC | |
9377 | fi | |
9378 | ||
9379 | if test -n "$ac_cv_prog_WINDMC"; then | |
9380 | for ncn_progname in windmc; do | |
9381 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9382 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9384 | $as_echo_n "checking for $ac_word... " >&6; } | |
9385 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9386 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 9387 | else |
9388 | if test -n "$WINDMC"; then | |
9389 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9390 | else | |
9391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9392 | for as_dir in $PATH | |
9393 | do | |
9394 | IFS=$as_save_IFS | |
9395 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9396 | for ac_exec_ext in '' $ac_executable_extensions; do |
9397 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 9398 | ac_cv_prog_WINDMC="${ncn_progname}" |
cd9a469c | 9399 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 9400 | break 2 |
9401 | fi | |
9402 | done | |
cd9a469c | 9403 | done |
9404 | IFS=$as_save_IFS | |
75d6a0a9 | 9405 | |
9406 | fi | |
9407 | fi | |
9408 | WINDMC=$ac_cv_prog_WINDMC | |
9409 | if test -n "$WINDMC"; then | |
cd9a469c | 9410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9411 | $as_echo "$WINDMC" >&6; } | |
75d6a0a9 | 9412 | else |
cd9a469c | 9413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9414 | $as_echo "no" >&6; } | |
75d6a0a9 | 9415 | fi |
9416 | ||
cd9a469c | 9417 | |
75d6a0a9 | 9418 | done |
9419 | fi | |
9420 | ||
9421 | for ncn_progname in windmc; do | |
9422 | if test -n "$ncn_tool_prefix"; then | |
9423 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9424 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9426 | $as_echo_n "checking for $ac_word... " >&6; } | |
9427 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9428 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 9429 | else |
9430 | if test -n "$WINDMC"; then | |
9431 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9432 | else | |
9433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9434 | for as_dir in $PATH | |
9435 | do | |
9436 | IFS=$as_save_IFS | |
9437 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9438 | for ac_exec_ext in '' $ac_executable_extensions; do |
9439 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 9440 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9441 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 9442 | break 2 |
9443 | fi | |
9444 | done | |
cd9a469c | 9445 | done |
9446 | IFS=$as_save_IFS | |
75d6a0a9 | 9447 | |
9448 | fi | |
9449 | fi | |
9450 | WINDMC=$ac_cv_prog_WINDMC | |
9451 | if test -n "$WINDMC"; then | |
cd9a469c | 9452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9453 | $as_echo "$WINDMC" >&6; } | |
75d6a0a9 | 9454 | else |
cd9a469c | 9455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9456 | $as_echo "no" >&6; } | |
75d6a0a9 | 9457 | fi |
9458 | ||
cd9a469c | 9459 | |
75d6a0a9 | 9460 | fi |
9461 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9462 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9463 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9465 | $as_echo_n "checking for $ac_word... " >&6; } | |
9466 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9467 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 9468 | else |
9469 | if test -n "$WINDMC"; then | |
9470 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9471 | else | |
9472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9473 | for as_dir in $PATH | |
9474 | do | |
9475 | IFS=$as_save_IFS | |
9476 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9477 | for ac_exec_ext in '' $ac_executable_extensions; do |
9478 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 9479 | ac_cv_prog_WINDMC="${ncn_progname}" |
cd9a469c | 9480 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 9481 | break 2 |
9482 | fi | |
9483 | done | |
cd9a469c | 9484 | done |
9485 | IFS=$as_save_IFS | |
75d6a0a9 | 9486 | |
9487 | fi | |
9488 | fi | |
9489 | WINDMC=$ac_cv_prog_WINDMC | |
9490 | if test -n "$WINDMC"; then | |
cd9a469c | 9491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9492 | $as_echo "$WINDMC" >&6; } | |
75d6a0a9 | 9493 | else |
cd9a469c | 9494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9495 | $as_echo "no" >&6; } | |
75d6a0a9 | 9496 | fi |
9497 | ||
cd9a469c | 9498 | |
75d6a0a9 | 9499 | fi |
9500 | test -n "$ac_cv_prog_WINDMC" && break | |
9501 | done | |
9502 | ||
9503 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9504 | set dummy windmc | |
9505 | if test $build = $host ; then | |
9506 | WINDMC="$2" | |
9507 | else | |
9508 | WINDMC="${ncn_tool_prefix}$2" | |
9509 | fi | |
9510 | fi | |
9511 | ||
9512 | ||
9513 | ||
95a05732 | 9514 | if test -n "$OBJCOPY"; then |
9515 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9516 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9517 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9518 | fi | |
9519 | ||
9520 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9521 | for ncn_progname in objcopy; do | |
9522 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9523 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9525 | $as_echo_n "checking for $ac_word... " >&6; } | |
9526 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9527 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9528 | else |
9529 | if test -n "$OBJCOPY"; then | |
9530 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9531 | else | |
9532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9533 | for as_dir in $PATH | |
9534 | do | |
9535 | IFS=$as_save_IFS | |
9536 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9537 | for ac_exec_ext in '' $ac_executable_extensions; do |
9538 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9539 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
cd9a469c | 9540 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9541 | break 2 |
9542 | fi | |
9543 | done | |
cd9a469c | 9544 | done |
9545 | IFS=$as_save_IFS | |
95a05732 | 9546 | |
9547 | fi | |
9548 | fi | |
9549 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9550 | if test -n "$OBJCOPY"; then | |
cd9a469c | 9551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9552 | $as_echo "$OBJCOPY" >&6; } | |
95a05732 | 9553 | else |
cd9a469c | 9554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9555 | $as_echo "no" >&6; } | |
95a05732 | 9556 | fi |
9557 | ||
cd9a469c | 9558 | |
95a05732 | 9559 | done |
9560 | fi | |
9561 | ||
9562 | for ncn_progname in objcopy; do | |
768691b5 | 9563 | if test -n "$ncn_tool_prefix"; then |
9564 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9565 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9567 | $as_echo_n "checking for $ac_word... " >&6; } | |
9568 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9569 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9570 | else |
9571 | if test -n "$OBJCOPY"; then | |
9572 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9573 | else | |
b30fcfae | 9574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9575 | for as_dir in $PATH | |
9576 | do | |
9577 | IFS=$as_save_IFS | |
9578 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9579 | for ac_exec_ext in '' $ac_executable_extensions; do |
9580 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9581 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9582 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9583 | break 2 |
9584 | fi | |
9585 | done | |
cd9a469c | 9586 | done |
9587 | IFS=$as_save_IFS | |
b30fcfae | 9588 | |
bb612911 | 9589 | fi |
9590 | fi | |
b30fcfae | 9591 | OBJCOPY=$ac_cv_prog_OBJCOPY |
bb612911 | 9592 | if test -n "$OBJCOPY"; then |
cd9a469c | 9593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9594 | $as_echo "$OBJCOPY" >&6; } | |
bb612911 | 9595 | else |
cd9a469c | 9596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9597 | $as_echo "no" >&6; } | |
bb612911 | 9598 | fi |
9599 | ||
cd9a469c | 9600 | |
768691b5 | 9601 | fi |
9602 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9603 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9604 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9606 | $as_echo_n "checking for $ac_word... " >&6; } | |
9607 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9608 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9609 | else |
768691b5 | 9610 | if test -n "$OBJCOPY"; then |
9611 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
bb612911 | 9612 | else |
b30fcfae | 9613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9614 | for as_dir in $PATH | |
9615 | do | |
9616 | IFS=$as_save_IFS | |
9617 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9618 | for ac_exec_ext in '' $ac_executable_extensions; do |
9619 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9620 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
cd9a469c | 9621 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9622 | break 2 |
9623 | fi | |
9624 | done | |
cd9a469c | 9625 | done |
9626 | IFS=$as_save_IFS | |
b30fcfae | 9627 | |
bb612911 | 9628 | fi |
9629 | fi | |
b30fcfae | 9630 | OBJCOPY=$ac_cv_prog_OBJCOPY |
768691b5 | 9631 | if test -n "$OBJCOPY"; then |
cd9a469c | 9632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9633 | $as_echo "$OBJCOPY" >&6; } | |
bb612911 | 9634 | else |
cd9a469c | 9635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9636 | $as_echo "no" >&6; } | |
bb612911 | 9637 | fi |
b30fcfae | 9638 | |
cd9a469c | 9639 | |
768691b5 | 9640 | fi |
9641 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9642 | done | |
9643 | ||
9644 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9645 | set dummy objcopy | |
9646 | if test $build = $host ; then | |
9647 | OBJCOPY="$2" | |
bb612911 | 9648 | else |
768691b5 | 9649 | OBJCOPY="${ncn_tool_prefix}$2" |
bb612911 | 9650 | fi |
bb612911 | 9651 | fi |
9652 | ||
95a05732 | 9653 | |
9654 | ||
9655 | if test -n "$OBJDUMP"; then | |
9656 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9657 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9658 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9659 | fi | |
9660 | ||
9661 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9662 | for ncn_progname in objdump; do | |
9663 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9664 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9666 | $as_echo_n "checking for $ac_word... " >&6; } | |
9667 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9668 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9669 | else |
9670 | if test -n "$OBJDUMP"; then | |
9671 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9672 | else | |
9673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9674 | for as_dir in $PATH | |
9675 | do | |
9676 | IFS=$as_save_IFS | |
9677 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9678 | for ac_exec_ext in '' $ac_executable_extensions; do |
9679 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9680 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
cd9a469c | 9681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9682 | break 2 |
9683 | fi | |
9684 | done | |
cd9a469c | 9685 | done |
9686 | IFS=$as_save_IFS | |
95a05732 | 9687 | |
9688 | fi | |
9689 | fi | |
9690 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9691 | if test -n "$OBJDUMP"; then | |
cd9a469c | 9692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9693 | $as_echo "$OBJDUMP" >&6; } | |
95a05732 | 9694 | else |
cd9a469c | 9695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9696 | $as_echo "no" >&6; } | |
95a05732 | 9697 | fi |
9698 | ||
cd9a469c | 9699 | |
95a05732 | 9700 | done |
9701 | fi | |
9702 | ||
9703 | for ncn_progname in objdump; do | |
768691b5 | 9704 | if test -n "$ncn_tool_prefix"; then |
9705 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9706 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9708 | $as_echo_n "checking for $ac_word... " >&6; } | |
9709 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9710 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9711 | else |
9712 | if test -n "$OBJDUMP"; then | |
9713 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9714 | else | |
b30fcfae | 9715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9716 | for as_dir in $PATH | |
9717 | do | |
9718 | IFS=$as_save_IFS | |
9719 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9720 | for ac_exec_ext in '' $ac_executable_extensions; do |
9721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9722 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9724 | break 2 |
9725 | fi | |
9726 | done | |
cd9a469c | 9727 | done |
9728 | IFS=$as_save_IFS | |
b30fcfae | 9729 | |
bb612911 | 9730 | fi |
9731 | fi | |
b30fcfae | 9732 | OBJDUMP=$ac_cv_prog_OBJDUMP |
bb612911 | 9733 | if test -n "$OBJDUMP"; then |
cd9a469c | 9734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9735 | $as_echo "$OBJDUMP" >&6; } | |
bb612911 | 9736 | else |
cd9a469c | 9737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9738 | $as_echo "no" >&6; } | |
bb612911 | 9739 | fi |
9740 | ||
cd9a469c | 9741 | |
768691b5 | 9742 | fi |
9743 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9744 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9745 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9747 | $as_echo_n "checking for $ac_word... " >&6; } | |
9748 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9749 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9750 | else |
768691b5 | 9751 | if test -n "$OBJDUMP"; then |
9752 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
bb612911 | 9753 | else |
b30fcfae | 9754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9755 | for as_dir in $PATH | |
9756 | do | |
9757 | IFS=$as_save_IFS | |
9758 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9759 | for ac_exec_ext in '' $ac_executable_extensions; do |
9760 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9761 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
cd9a469c | 9762 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9763 | break 2 |
9764 | fi | |
9765 | done | |
cd9a469c | 9766 | done |
9767 | IFS=$as_save_IFS | |
b30fcfae | 9768 | |
bb612911 | 9769 | fi |
9770 | fi | |
b30fcfae | 9771 | OBJDUMP=$ac_cv_prog_OBJDUMP |
768691b5 | 9772 | if test -n "$OBJDUMP"; then |
cd9a469c | 9773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9774 | $as_echo "$OBJDUMP" >&6; } | |
bb612911 | 9775 | else |
cd9a469c | 9776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9777 | $as_echo "no" >&6; } | |
bb612911 | 9778 | fi |
b30fcfae | 9779 | |
cd9a469c | 9780 | |
768691b5 | 9781 | fi |
9782 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9783 | done | |
9784 | ||
9785 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9786 | set dummy objdump | |
9787 | if test $build = $host ; then | |
9788 | OBJDUMP="$2" | |
bb612911 | 9789 | else |
768691b5 | 9790 | OBJDUMP="${ncn_tool_prefix}$2" |
bb612911 | 9791 | fi |
bb612911 | 9792 | fi |
9793 | ||
71ab34df | 9794 | |
9795 | ||
3f71364d | 9796 | if test -n "$READELF"; then |
9797 | ac_cv_prog_READELF=$READELF | |
9798 | elif test -n "$ac_cv_prog_READELF"; then | |
9799 | READELF=$ac_cv_prog_READELF | |
9800 | fi | |
9801 | ||
9802 | if test -n "$ac_cv_prog_READELF"; then | |
9803 | for ncn_progname in readelf; do | |
9804 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9805 | set dummy ${ncn_progname}; ac_word=$2 | |
9806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9807 | $as_echo_n "checking for $ac_word... " >&6; } | |
9808 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9809 | $as_echo_n "(cached) " >&6 | |
9810 | else | |
9811 | if test -n "$READELF"; then | |
9812 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9813 | else | |
9814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9815 | for as_dir in $PATH | |
9816 | do | |
9817 | IFS=$as_save_IFS | |
9818 | test -z "$as_dir" && as_dir=. | |
9819 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9820 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9821 | ac_cv_prog_READELF="${ncn_progname}" | |
9822 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9823 | break 2 | |
9824 | fi | |
9825 | done | |
9826 | done | |
9827 | IFS=$as_save_IFS | |
9828 | ||
9829 | fi | |
9830 | fi | |
9831 | READELF=$ac_cv_prog_READELF | |
9832 | if test -n "$READELF"; then | |
9833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9834 | $as_echo "$READELF" >&6; } | |
9835 | else | |
9836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9837 | $as_echo "no" >&6; } | |
9838 | fi | |
9839 | ||
9840 | ||
9841 | done | |
9842 | fi | |
9843 | ||
9844 | for ncn_progname in readelf; do | |
9845 | if test -n "$ncn_tool_prefix"; then | |
9846 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9847 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9849 | $as_echo_n "checking for $ac_word... " >&6; } | |
9850 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9851 | $as_echo_n "(cached) " >&6 | |
9852 | else | |
9853 | if test -n "$READELF"; then | |
9854 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9855 | else | |
9856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9857 | for as_dir in $PATH | |
9858 | do | |
9859 | IFS=$as_save_IFS | |
9860 | test -z "$as_dir" && as_dir=. | |
9861 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9862 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9863 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" | |
9864 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9865 | break 2 | |
9866 | fi | |
9867 | done | |
9868 | done | |
9869 | IFS=$as_save_IFS | |
9870 | ||
9871 | fi | |
9872 | fi | |
9873 | READELF=$ac_cv_prog_READELF | |
9874 | if test -n "$READELF"; then | |
9875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9876 | $as_echo "$READELF" >&6; } | |
9877 | else | |
9878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9879 | $as_echo "no" >&6; } | |
9880 | fi | |
9881 | ||
9882 | ||
9883 | fi | |
9884 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9885 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9886 | set dummy ${ncn_progname}; ac_word=$2 | |
9887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9888 | $as_echo_n "checking for $ac_word... " >&6; } | |
9889 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9890 | $as_echo_n "(cached) " >&6 | |
9891 | else | |
9892 | if test -n "$READELF"; then | |
9893 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9894 | else | |
9895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9896 | for as_dir in $PATH | |
9897 | do | |
9898 | IFS=$as_save_IFS | |
9899 | test -z "$as_dir" && as_dir=. | |
9900 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9901 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9902 | ac_cv_prog_READELF="${ncn_progname}" | |
9903 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9904 | break 2 | |
9905 | fi | |
9906 | done | |
9907 | done | |
9908 | IFS=$as_save_IFS | |
9909 | ||
9910 | fi | |
9911 | fi | |
9912 | READELF=$ac_cv_prog_READELF | |
9913 | if test -n "$READELF"; then | |
9914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9915 | $as_echo "$READELF" >&6; } | |
9916 | else | |
9917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9918 | $as_echo "no" >&6; } | |
9919 | fi | |
9920 | ||
9921 | ||
9922 | fi | |
9923 | test -n "$ac_cv_prog_READELF" && break | |
9924 | done | |
9925 | ||
9926 | if test -z "$ac_cv_prog_READELF" ; then | |
9927 | set dummy readelf | |
9928 | if test $build = $host ; then | |
9929 | READELF="$2" | |
9930 | else | |
9931 | READELF="${ncn_tool_prefix}$2" | |
9932 | fi | |
9933 | fi | |
9934 | ||
9935 | ||
9936 | ||
71ab34df | 9937 | |
9938 | ||
9939 | ||
f5aebe3e | 9940 | # Target tools. |
b30fcfae | 9941 | |
cd9a469c | 9942 | # Check whether --with-build-time-tools was given. |
9943 | if test "${with_build_time_tools+set}" = set; then : | |
9944 | withval=$with_build_time_tools; case x"$withval" in | |
c47832b1 | 9945 | x/*) ;; |
9946 | *) | |
9947 | with_build_time_tools= | |
cd9a469c | 9948 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9949 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
c47832b1 | 9950 | ;; |
9951 | esac | |
bb612911 | 9952 | else |
c47832b1 | 9953 | with_build_time_tools= |
cd9a469c | 9954 | fi |
9955 | ||
bb612911 | 9956 | |
95a05732 | 9957 | |
9958 | ||
9959 | if test -n "$CC_FOR_TARGET"; then | |
9960 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9961 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9962 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9963 | fi | |
9964 | ||
9965 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9966 | for ncn_progname in cc gcc; do | |
9967 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9968 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9970 | $as_echo_n "checking for $ac_word... " >&6; } | |
9971 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9972 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9973 | else |
9974 | if test -n "$CC_FOR_TARGET"; then | |
9975 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9976 | else | |
9977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9978 | for as_dir in $PATH | |
9979 | do | |
9980 | IFS=$as_save_IFS | |
9981 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9982 | for ac_exec_ext in '' $ac_executable_extensions; do |
9983 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9984 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 9985 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9986 | break 2 |
9987 | fi | |
9988 | done | |
cd9a469c | 9989 | done |
9990 | IFS=$as_save_IFS | |
95a05732 | 9991 | |
9992 | fi | |
9993 | fi | |
9994 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9995 | if test -n "$CC_FOR_TARGET"; then | |
cd9a469c | 9996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9997 | $as_echo "$CC_FOR_TARGET" >&6; } | |
95a05732 | 9998 | else |
cd9a469c | 9999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10000 | $as_echo "no" >&6; } | |
95a05732 | 10001 | fi |
10002 | ||
cd9a469c | 10003 | |
95a05732 | 10004 | done |
10005 | fi | |
10006 | ||
10007 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10008 | for ncn_progname in cc gcc; do |
cd9a469c | 10009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10010 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10011 | if test -x $with_build_time_tools/${ncn_progname}; then |
10012 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10014 | $as_echo "yes" >&6; } | |
9886f3d1 | 10015 | break |
c47832b1 | 10016 | else |
cd9a469c | 10017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10018 | $as_echo "no" >&6; } | |
9886f3d1 | 10019 | fi |
10020 | done | |
ef8184c7 | 10021 | fi |
10022 | ||
c47832b1 | 10023 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
10024 | for ncn_progname in cc gcc; do | |
10025 | if test -n "$ncn_target_tool_prefix"; then | |
10026 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10027 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 10028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10029 | $as_echo_n "checking for $ac_word... " >&6; } | |
10030 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
10031 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 10032 | else |
10033 | if test -n "$CC_FOR_TARGET"; then | |
10034 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10035 | else | |
b30fcfae | 10036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10037 | for as_dir in $PATH | |
10038 | do | |
10039 | IFS=$as_save_IFS | |
10040 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10041 | for ac_exec_ext in '' $ac_executable_extensions; do |
10042 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10043 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10044 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10045 | break 2 |
10046 | fi | |
10047 | done | |
cd9a469c | 10048 | done |
10049 | IFS=$as_save_IFS | |
b30fcfae | 10050 | |
ef8184c7 | 10051 | fi |
10052 | fi | |
b30fcfae | 10053 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
ef8184c7 | 10054 | if test -n "$CC_FOR_TARGET"; then |
cd9a469c | 10055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10056 | $as_echo "$CC_FOR_TARGET" >&6; } | |
ef8184c7 | 10057 | else |
cd9a469c | 10058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10059 | $as_echo "no" >&6; } | |
ef8184c7 | 10060 | fi |
10061 | ||
cd9a469c | 10062 | |
c47832b1 | 10063 | fi |
10064 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10065 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10066 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10068 | $as_echo_n "checking for $ac_word... " >&6; } | |
10069 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
10070 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 10071 | else |
768691b5 | 10072 | if test -n "$CC_FOR_TARGET"; then |
10073 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 10074 | else |
b30fcfae | 10075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10076 | for as_dir in $PATH | |
10077 | do | |
10078 | IFS=$as_save_IFS | |
10079 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10080 | for ac_exec_ext in '' $ac_executable_extensions; do |
10081 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10082 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10083 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10084 | break 2 |
10085 | fi | |
10086 | done | |
cd9a469c | 10087 | done |
10088 | IFS=$as_save_IFS | |
b30fcfae | 10089 | |
ef8184c7 | 10090 | fi |
10091 | fi | |
b30fcfae | 10092 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
768691b5 | 10093 | if test -n "$CC_FOR_TARGET"; then |
cd9a469c | 10094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10095 | $as_echo "$CC_FOR_TARGET" >&6; } | |
ef8184c7 | 10096 | else |
cd9a469c | 10097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10098 | $as_echo "no" >&6; } | |
ef8184c7 | 10099 | fi |
b30fcfae | 10100 | |
cd9a469c | 10101 | |
c47832b1 | 10102 | fi |
10103 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10104 | done | |
10105 | fi | |
b30fcfae | 10106 | |
768691b5 | 10107 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10108 | set dummy cc gcc | |
10109 | if test $build = $target ; then | |
10110 | CC_FOR_TARGET="$2" | |
ef8184c7 | 10111 | else |
768691b5 | 10112 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ef8184c7 | 10113 | fi |
b7ef8464 | 10114 | else |
10115 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
ef8184c7 | 10116 | fi |
10117 | ||
95a05732 | 10118 | |
10119 | ||
10120 | if test -n "$CXX_FOR_TARGET"; then | |
10121 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10122 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10123 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10124 | fi | |
10125 | ||
10126 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10127 | for ncn_progname in c++ g++ cxx gxx; do | |
10128 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10129 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10131 | $as_echo_n "checking for $ac_word... " >&6; } | |
10132 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10133 | $as_echo_n "(cached) " >&6 | |
95a05732 | 10134 | else |
10135 | if test -n "$CXX_FOR_TARGET"; then | |
10136 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10137 | else | |
10138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10139 | for as_dir in $PATH | |
10140 | do | |
10141 | IFS=$as_save_IFS | |
10142 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10143 | for ac_exec_ext in '' $ac_executable_extensions; do |
10144 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10145 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10146 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10147 | break 2 |
10148 | fi | |
10149 | done | |
cd9a469c | 10150 | done |
10151 | IFS=$as_save_IFS | |
95a05732 | 10152 | |
10153 | fi | |
10154 | fi | |
10155 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10156 | if test -n "$CXX_FOR_TARGET"; then | |
cd9a469c | 10157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10158 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
95a05732 | 10159 | else |
cd9a469c | 10160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10161 | $as_echo "no" >&6; } | |
95a05732 | 10162 | fi |
10163 | ||
cd9a469c | 10164 | |
95a05732 | 10165 | done |
10166 | fi | |
10167 | ||
10168 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10169 | for ncn_progname in c++ g++ cxx gxx; do |
cd9a469c | 10170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10171 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10172 | if test -x $with_build_time_tools/${ncn_progname}; then |
10173 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10175 | $as_echo "yes" >&6; } | |
c47832b1 | 10176 | break |
10177 | else | |
cd9a469c | 10178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10179 | $as_echo "no" >&6; } | |
c47832b1 | 10180 | fi |
10181 | done | |
10182 | fi | |
10183 | ||
10184 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10185 | for ncn_progname in c++ g++ cxx gxx; do | |
10186 | if test -n "$ncn_target_tool_prefix"; then | |
10187 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10188 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 10189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10190 | $as_echo_n "checking for $ac_word... " >&6; } | |
10191 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10192 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 10193 | else |
10194 | if test -n "$CXX_FOR_TARGET"; then | |
10195 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10196 | else | |
b30fcfae | 10197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10198 | for as_dir in $PATH | |
10199 | do | |
10200 | IFS=$as_save_IFS | |
10201 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10202 | for ac_exec_ext in '' $ac_executable_extensions; do |
10203 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10204 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10205 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10206 | break 2 |
10207 | fi | |
10208 | done | |
cd9a469c | 10209 | done |
10210 | IFS=$as_save_IFS | |
b30fcfae | 10211 | |
ef8184c7 | 10212 | fi |
10213 | fi | |
b30fcfae | 10214 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
ef8184c7 | 10215 | if test -n "$CXX_FOR_TARGET"; then |
cd9a469c | 10216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10217 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
ef8184c7 | 10218 | else |
cd9a469c | 10219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10220 | $as_echo "no" >&6; } | |
ef8184c7 | 10221 | fi |
10222 | ||
cd9a469c | 10223 | |
c47832b1 | 10224 | fi |
10225 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10226 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10227 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10229 | $as_echo_n "checking for $ac_word... " >&6; } | |
10230 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10231 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 10232 | else |
768691b5 | 10233 | if test -n "$CXX_FOR_TARGET"; then |
10234 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 10235 | else |
b30fcfae | 10236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10237 | for as_dir in $PATH | |
10238 | do | |
10239 | IFS=$as_save_IFS | |
10240 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10241 | for ac_exec_ext in '' $ac_executable_extensions; do |
10242 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10243 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10244 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10245 | break 2 |
10246 | fi | |
10247 | done | |
cd9a469c | 10248 | done |
10249 | IFS=$as_save_IFS | |
b30fcfae | 10250 | |
ef8184c7 | 10251 | fi |
10252 | fi | |
b30fcfae | 10253 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
768691b5 | 10254 | if test -n "$CXX_FOR_TARGET"; then |
cd9a469c | 10255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10256 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
ef8184c7 | 10257 | else |
cd9a469c | 10258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10259 | $as_echo "no" >&6; } | |
ef8184c7 | 10260 | fi |
b30fcfae | 10261 | |
cd9a469c | 10262 | |
c47832b1 | 10263 | fi |
10264 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10265 | done | |
10266 | fi | |
b30fcfae | 10267 | |
768691b5 | 10268 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10269 | set dummy c++ g++ cxx gxx | |
10270 | if test $build = $target ; then | |
10271 | CXX_FOR_TARGET="$2" | |
ef8184c7 | 10272 | else |
768691b5 | 10273 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ef8184c7 | 10274 | fi |
b7ef8464 | 10275 | else |
10276 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
bb612911 | 10277 | fi |
10278 | ||
95a05732 | 10279 | |
10280 | ||
10281 | if test -n "$GCC_FOR_TARGET"; then | |
10282 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10283 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10284 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10285 | fi | |
10286 | ||
10287 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10288 | for ncn_progname in gcc; do | |
10289 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10290 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10292 | $as_echo_n "checking for $ac_word... " >&6; } | |
10293 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10294 | $as_echo_n "(cached) " >&6 | |
95a05732 | 10295 | else |
10296 | if test -n "$GCC_FOR_TARGET"; then | |
10297 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10298 | else | |
10299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10300 | for as_dir in $PATH | |
10301 | do | |
10302 | IFS=$as_save_IFS | |
10303 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10304 | for ac_exec_ext in '' $ac_executable_extensions; do |
10305 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10306 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10307 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10308 | break 2 |
10309 | fi | |
10310 | done | |
cd9a469c | 10311 | done |
10312 | IFS=$as_save_IFS | |
95a05732 | 10313 | |
10314 | fi | |
10315 | fi | |
10316 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10317 | if test -n "$GCC_FOR_TARGET"; then | |
cd9a469c | 10318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10319 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
95a05732 | 10320 | else |
cd9a469c | 10321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10322 | $as_echo "no" >&6; } | |
95a05732 | 10323 | fi |
10324 | ||
cd9a469c | 10325 | |
95a05732 | 10326 | done |
10327 | fi | |
10328 | ||
10329 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10330 | for ncn_progname in gcc; do |
cd9a469c | 10331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10332 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10333 | if test -x $with_build_time_tools/${ncn_progname}; then |
10334 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10336 | $as_echo "yes" >&6; } | |
c47832b1 | 10337 | break |
10338 | else | |
cd9a469c | 10339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10340 | $as_echo "no" >&6; } | |
c47832b1 | 10341 | fi |
10342 | done | |
10343 | fi | |
10344 | ||
10345 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10346 | for ncn_progname in gcc; do | |
10347 | if test -n "$ncn_target_tool_prefix"; then | |
10348 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10349 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 10350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10351 | $as_echo_n "checking for $ac_word... " >&6; } | |
10352 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10353 | $as_echo_n "(cached) " >&6 | |
bb612911 | 10354 | else |
c47832b1 | 10355 | if test -n "$GCC_FOR_TARGET"; then |
10356 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
bb612911 | 10357 | else |
b30fcfae | 10358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10359 | for as_dir in $PATH | |
10360 | do | |
10361 | IFS=$as_save_IFS | |
10362 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10363 | for ac_exec_ext in '' $ac_executable_extensions; do |
10364 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10365 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10366 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10367 | break 2 |
10368 | fi | |
10369 | done | |
cd9a469c | 10370 | done |
10371 | IFS=$as_save_IFS | |
b30fcfae | 10372 | |
bb612911 | 10373 | fi |
10374 | fi | |
b30fcfae | 10375 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
c47832b1 | 10376 | if test -n "$GCC_FOR_TARGET"; then |
cd9a469c | 10377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10378 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
bb612911 | 10379 | else |
cd9a469c | 10380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10381 | $as_echo "no" >&6; } | |
bb612911 | 10382 | fi |
10383 | ||
cd9a469c | 10384 | |
c47832b1 | 10385 | fi |
10386 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10387 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10388 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10390 | $as_echo_n "checking for $ac_word... " >&6; } | |
10391 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10392 | $as_echo_n "(cached) " >&6 | |
bb612911 | 10393 | else |
c47832b1 | 10394 | if test -n "$GCC_FOR_TARGET"; then |
10395 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
bb612911 | 10396 | else |
b30fcfae | 10397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10398 | for as_dir in $PATH | |
10399 | do | |
10400 | IFS=$as_save_IFS | |
10401 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10402 | for ac_exec_ext in '' $ac_executable_extensions; do |
10403 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10404 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10405 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10406 | break 2 |
10407 | fi | |
10408 | done | |
cd9a469c | 10409 | done |
10410 | IFS=$as_save_IFS | |
b30fcfae | 10411 | |
bb612911 | 10412 | fi |
10413 | fi | |
b30fcfae | 10414 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
c47832b1 | 10415 | if test -n "$GCC_FOR_TARGET"; then |
cd9a469c | 10416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10417 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
bb612911 | 10418 | else |
cd9a469c | 10419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10420 | $as_echo "no" >&6; } | |
bb612911 | 10421 | fi |
b30fcfae | 10422 | |
cd9a469c | 10423 | |
c47832b1 | 10424 | fi |
10425 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10426 | done | |
10427 | fi | |
b30fcfae | 10428 | |
c47832b1 | 10429 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10430 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
b7ef8464 | 10431 | else |
10432 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
c47832b1 | 10433 | fi |
10434 | ||
95a05732 | 10435 | |
10436 | ||
10437 | if test -n "$GCJ_FOR_TARGET"; then | |
10438 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10439 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10440 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10441 | fi | |
10442 | ||
10443 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10444 | for ncn_progname in gcj; do | |
10445 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10446 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10448 | $as_echo_n "checking for $ac_word... " >&6; } | |
10449 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10450 | $as_echo_n "(cached) " >&6 | |
95a05732 | 10451 | else |
10452 | if test -n "$GCJ_FOR_TARGET"; then | |
10453 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10454 | else | |
10455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10456 | for as_dir in $PATH | |
10457 | do | |
10458 | IFS=$as_save_IFS | |
10459 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10460 | for ac_exec_ext in '' $ac_executable_extensions; do |
10461 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10462 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10463 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10464 | break 2 |
10465 | fi | |
10466 | done | |
cd9a469c | 10467 | done |
10468 | IFS=$as_save_IFS | |
95a05732 | 10469 | |
10470 | fi | |
10471 | fi | |
10472 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10473 | if test -n "$GCJ_FOR_TARGET"; then | |
cd9a469c | 10474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10475 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
95a05732 | 10476 | else |
cd9a469c | 10477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10478 | $as_echo "no" >&6; } | |
95a05732 | 10479 | fi |
10480 | ||
cd9a469c | 10481 | |
95a05732 | 10482 | done |
10483 | fi | |
10484 | ||
10485 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10486 | for ncn_progname in gcj; do |
cd9a469c | 10487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10488 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10489 | if test -x $with_build_time_tools/${ncn_progname}; then |
10490 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10492 | $as_echo "yes" >&6; } | |
c47832b1 | 10493 | break |
10494 | else | |
cd9a469c | 10495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10496 | $as_echo "no" >&6; } | |
c47832b1 | 10497 | fi |
10498 | done | |
10499 | fi | |
10500 | ||
10501 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10502 | for ncn_progname in gcj; do | |
10503 | if test -n "$ncn_target_tool_prefix"; then | |
10504 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10505 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 10506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10507 | $as_echo_n "checking for $ac_word... " >&6; } | |
10508 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10509 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10510 | else |
a4af6a58 | 10511 | if test -n "$GCJ_FOR_TARGET"; then |
10512 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10513 | else | |
b30fcfae | 10514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10515 | for as_dir in $PATH | |
10516 | do | |
10517 | IFS=$as_save_IFS | |
10518 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10519 | for ac_exec_ext in '' $ac_executable_extensions; do |
10520 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10521 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10522 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10523 | break 2 |
10524 | fi | |
10525 | done | |
cd9a469c | 10526 | done |
10527 | IFS=$as_save_IFS | |
b30fcfae | 10528 | |
c47832b1 | 10529 | fi |
10530 | fi | |
95a05732 | 10531 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10532 | if test -n "$GCJ_FOR_TARGET"; then | |
cd9a469c | 10533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10534 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
95a05732 | 10535 | else |
cd9a469c | 10536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10537 | $as_echo "no" >&6; } | |
95a05732 | 10538 | fi |
10539 | ||
cd9a469c | 10540 | |
95a05732 | 10541 | fi |
10542 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10543 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10544 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10546 | $as_echo_n "checking for $ac_word... " >&6; } | |
10547 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10548 | $as_echo_n "(cached) " >&6 | |
95a05732 | 10549 | else |
10550 | if test -n "$GCJ_FOR_TARGET"; then | |
10551 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10552 | else | |
10553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10554 | for as_dir in $PATH | |
10555 | do | |
10556 | IFS=$as_save_IFS | |
10557 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10558 | for ac_exec_ext in '' $ac_executable_extensions; do |
10559 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10560 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10562 | break 2 |
10563 | fi | |
10564 | done | |
cd9a469c | 10565 | done |
10566 | IFS=$as_save_IFS | |
95a05732 | 10567 | |
10568 | fi | |
10569 | fi | |
10570 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10571 | if test -n "$GCJ_FOR_TARGET"; then | |
cd9a469c | 10572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10573 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
95a05732 | 10574 | else |
cd9a469c | 10575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10576 | $as_echo "no" >&6; } | |
95a05732 | 10577 | fi |
10578 | ||
cd9a469c | 10579 | |
95a05732 | 10580 | fi |
10581 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10582 | done | |
10583 | fi | |
10584 | ||
10585 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10586 | set dummy gcj | |
10587 | if test $build = $target ; then | |
10588 | GCJ_FOR_TARGET="$2" | |
10589 | else | |
10590 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10591 | fi | |
b7ef8464 | 10592 | else |
10593 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
95a05732 | 10594 | fi |
10595 | ||
10596 | ||
10597 | ||
10598 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10599 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10600 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10601 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
c47832b1 | 10602 | fi |
10603 | ||
95a05732 | 10604 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10605 | for ncn_progname in gfortran; do | |
10606 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
c47832b1 | 10607 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10609 | $as_echo_n "checking for $ac_word... " >&6; } | |
10610 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10611 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10612 | else |
95a05732 | 10613 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10614 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
c47832b1 | 10615 | else |
b30fcfae | 10616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10617 | for as_dir in $PATH | |
10618 | do | |
10619 | IFS=$as_save_IFS | |
10620 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10621 | for ac_exec_ext in '' $ac_executable_extensions; do |
10622 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10623 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10624 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10625 | break 2 |
10626 | fi | |
10627 | done | |
cd9a469c | 10628 | done |
10629 | IFS=$as_save_IFS | |
b30fcfae | 10630 | |
c47832b1 | 10631 | fi |
10632 | fi | |
95a05732 | 10633 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10634 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
cd9a469c | 10635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10636 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
c47832b1 | 10637 | else |
cd9a469c | 10638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10639 | $as_echo "no" >&6; } | |
c47832b1 | 10640 | fi |
b30fcfae | 10641 | |
cd9a469c | 10642 | |
c47832b1 | 10643 | done |
10644 | fi | |
b30fcfae | 10645 | |
95a05732 | 10646 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
c47832b1 | 10647 | for ncn_progname in gfortran; do |
cd9a469c | 10648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10649 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10650 | if test -x $with_build_time_tools/${ncn_progname}; then |
10651 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10653 | $as_echo "yes" >&6; } | |
c47832b1 | 10654 | break |
10655 | else | |
cd9a469c | 10656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10657 | $as_echo "no" >&6; } | |
c47832b1 | 10658 | fi |
10659 | done | |
10660 | fi | |
10661 | ||
10662 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10663 | for ncn_progname in gfortran; do | |
10664 | if test -n "$ncn_target_tool_prefix"; then | |
10665 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10666 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 10667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10668 | $as_echo_n "checking for $ac_word... " >&6; } | |
10669 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10670 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10671 | else |
10672 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
b30fcfae | 10673 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10674 | else | |
10675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10676 | for as_dir in $PATH | |
10677 | do | |
10678 | IFS=$as_save_IFS | |
10679 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10680 | for ac_exec_ext in '' $ac_executable_extensions; do |
10681 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10682 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10683 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10684 | break 2 |
10685 | fi | |
10686 | done | |
cd9a469c | 10687 | done |
10688 | IFS=$as_save_IFS | |
b30fcfae | 10689 | |
c47832b1 | 10690 | fi |
10691 | fi | |
b30fcfae | 10692 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
c47832b1 | 10693 | if test -n "$GFORTRAN_FOR_TARGET"; then |
cd9a469c | 10694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10695 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
c47832b1 | 10696 | else |
cd9a469c | 10697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10698 | $as_echo "no" >&6; } | |
c47832b1 | 10699 | fi |
10700 | ||
cd9a469c | 10701 | |
c47832b1 | 10702 | fi |
10703 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10704 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10705 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10707 | $as_echo_n "checking for $ac_word... " >&6; } | |
10708 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10709 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10710 | else |
10711 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10712 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10713 | else | |
b30fcfae | 10714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10715 | for as_dir in $PATH | |
10716 | do | |
10717 | IFS=$as_save_IFS | |
10718 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10719 | for ac_exec_ext in '' $ac_executable_extensions; do |
10720 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10721 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10722 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10723 | break 2 |
10724 | fi | |
10725 | done | |
cd9a469c | 10726 | done |
10727 | IFS=$as_save_IFS | |
b30fcfae | 10728 | |
c47832b1 | 10729 | fi |
10730 | fi | |
b30fcfae | 10731 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
c47832b1 | 10732 | if test -n "$GFORTRAN_FOR_TARGET"; then |
cd9a469c | 10733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10734 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
c47832b1 | 10735 | else |
cd9a469c | 10736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10737 | $as_echo "no" >&6; } | |
c47832b1 | 10738 | fi |
b30fcfae | 10739 | |
cd9a469c | 10740 | |
c47832b1 | 10741 | fi |
10742 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10743 | done | |
10744 | fi | |
b30fcfae | 10745 | |
c47832b1 | 10746 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10747 | set dummy gfortran | |
768691b5 | 10748 | if test $build = $target ; then |
c47832b1 | 10749 | GFORTRAN_FOR_TARGET="$2" |
bb612911 | 10750 | else |
c47832b1 | 10751 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
10752 | fi | |
b7ef8464 | 10753 | else |
10754 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
c47832b1 | 10755 | fi |
10756 | ||
10757 | ||
10758 | ||
5ff5b630 | 10759 | if test -n "$GOC_FOR_TARGET"; then |
10760 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10761 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10762 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10763 | fi | |
10764 | ||
10765 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10766 | for ncn_progname in gccgo; do | |
10767 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10768 | set dummy ${ncn_progname}; ac_word=$2 | |
10769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10770 | $as_echo_n "checking for $ac_word... " >&6; } | |
10771 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10772 | $as_echo_n "(cached) " >&6 | |
10773 | else | |
10774 | if test -n "$GOC_FOR_TARGET"; then | |
10775 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10776 | else | |
10777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10778 | for as_dir in $PATH | |
10779 | do | |
10780 | IFS=$as_save_IFS | |
10781 | test -z "$as_dir" && as_dir=. | |
10782 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10783 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10784 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10786 | break 2 | |
10787 | fi | |
10788 | done | |
10789 | done | |
10790 | IFS=$as_save_IFS | |
10791 | ||
10792 | fi | |
10793 | fi | |
10794 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10795 | if test -n "$GOC_FOR_TARGET"; then | |
10796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10797 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10798 | else | |
10799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10800 | $as_echo "no" >&6; } | |
10801 | fi | |
10802 | ||
10803 | ||
10804 | done | |
10805 | fi | |
10806 | ||
10807 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10808 | for ncn_progname in gccgo; do | |
10809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10810 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10811 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10812 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10814 | $as_echo "yes" >&6; } | |
10815 | break | |
10816 | else | |
10817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10818 | $as_echo "no" >&6; } | |
10819 | fi | |
10820 | done | |
10821 | fi | |
10822 | ||
10823 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10824 | for ncn_progname in gccgo; do | |
10825 | if test -n "$ncn_target_tool_prefix"; then | |
10826 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10827 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10829 | $as_echo_n "checking for $ac_word... " >&6; } | |
10830 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10831 | $as_echo_n "(cached) " >&6 | |
10832 | else | |
10833 | if test -n "$GOC_FOR_TARGET"; then | |
10834 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10835 | else | |
10836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10837 | for as_dir in $PATH | |
10838 | do | |
10839 | IFS=$as_save_IFS | |
10840 | test -z "$as_dir" && as_dir=. | |
10841 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10842 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10843 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10844 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10845 | break 2 | |
10846 | fi | |
10847 | done | |
10848 | done | |
10849 | IFS=$as_save_IFS | |
10850 | ||
10851 | fi | |
10852 | fi | |
10853 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10854 | if test -n "$GOC_FOR_TARGET"; then | |
10855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10856 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10857 | else | |
10858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10859 | $as_echo "no" >&6; } | |
10860 | fi | |
10861 | ||
10862 | ||
10863 | fi | |
10864 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10865 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10866 | set dummy ${ncn_progname}; ac_word=$2 | |
10867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10868 | $as_echo_n "checking for $ac_word... " >&6; } | |
10869 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10870 | $as_echo_n "(cached) " >&6 | |
10871 | else | |
10872 | if test -n "$GOC_FOR_TARGET"; then | |
10873 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10874 | else | |
10875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10876 | for as_dir in $PATH | |
10877 | do | |
10878 | IFS=$as_save_IFS | |
10879 | test -z "$as_dir" && as_dir=. | |
10880 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10881 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10882 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10883 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10884 | break 2 | |
10885 | fi | |
10886 | done | |
10887 | done | |
10888 | IFS=$as_save_IFS | |
10889 | ||
10890 | fi | |
10891 | fi | |
10892 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10893 | if test -n "$GOC_FOR_TARGET"; then | |
10894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10895 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10896 | else | |
10897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10898 | $as_echo "no" >&6; } | |
10899 | fi | |
10900 | ||
10901 | ||
10902 | fi | |
10903 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10904 | done | |
10905 | fi | |
10906 | ||
10907 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10908 | set dummy gccgo | |
10909 | if test $build = $target ; then | |
10910 | GOC_FOR_TARGET="$2" | |
10911 | else | |
10912 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10913 | fi | |
10914 | else | |
10915 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10916 | fi | |
10917 | ||
10918 | ||
10919 | ||
c47832b1 | 10920 | cat > conftest.c << \EOF |
10921 | #ifdef __GNUC__ | |
10922 | gcc_yay; | |
10923 | #endif | |
10924 | EOF | |
10925 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10926 | have_gcc_for_target=yes | |
10927 | else | |
10928 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
10929 | have_gcc_for_target=no | |
10930 | fi | |
10931 | rm conftest.c | |
10932 | ||
10933 | ||
10934 | ||
10935 | ||
10936 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
10937 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 10938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10939 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
ab0da556 | 10940 | if test -x $with_build_time_tools/ar; then |
10941 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10942 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
cd9a469c | 10943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10944 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
ab0da556 | 10945 | else |
cd9a469c | 10946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10947 | $as_echo "no" >&6; } | |
ab0da556 | 10948 | fi |
c47832b1 | 10949 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10950 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
b7ef8464 | 10951 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10952 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
c47832b1 | 10953 | fi |
10954 | fi | |
38d7211b | 10955 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 10956 | # Extract the first word of "ar", so it can be a program name with args. |
10957 | set dummy ar; ac_word=$2 | |
cd9a469c | 10958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10959 | $as_echo_n "checking for $ac_word... " >&6; } | |
10960 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10961 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10962 | else |
b30fcfae | 10963 | case $AR_FOR_TARGET in |
10964 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 10965 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10966 | ;; | |
c47832b1 | 10967 | *) |
b30fcfae | 10968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10969 | for as_dir in $gcc_cv_tool_dirs | |
10970 | do | |
10971 | IFS=$as_save_IFS | |
10972 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10973 | for ac_exec_ext in '' $ac_executable_extensions; do |
10974 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10975 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 10976 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10977 | break 2 |
10978 | fi | |
10979 | done | |
cd9a469c | 10980 | done |
10981 | IFS=$as_save_IFS | |
b30fcfae | 10982 | |
c47832b1 | 10983 | ;; |
10984 | esac | |
10985 | fi | |
b30fcfae | 10986 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
c47832b1 | 10987 | if test -n "$AR_FOR_TARGET"; then |
cd9a469c | 10988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10989 | $as_echo "$AR_FOR_TARGET" >&6; } | |
c47832b1 | 10990 | else |
cd9a469c | 10991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10992 | $as_echo "no" >&6; } | |
ef8184c7 | 10993 | fi |
10994 | ||
cd9a469c | 10995 | |
c47832b1 | 10996 | fi |
10997 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
95a05732 | 10998 | |
10999 | ||
11000 | if test -n "$AR_FOR_TARGET"; then | |
11001 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
11002 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11003 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11004 | fi | |
11005 | ||
11006 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11007 | for ncn_progname in ar; do | |
11008 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11009 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11011 | $as_echo_n "checking for $ac_word... " >&6; } | |
11012 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11013 | $as_echo_n "(cached) " >&6 | |
95a05732 | 11014 | else |
11015 | if test -n "$AR_FOR_TARGET"; then | |
11016 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11017 | else | |
11018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11019 | for as_dir in $PATH | |
11020 | do | |
11021 | IFS=$as_save_IFS | |
11022 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11023 | for ac_exec_ext in '' $ac_executable_extensions; do |
11024 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11025 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11027 | break 2 |
11028 | fi | |
11029 | done | |
cd9a469c | 11030 | done |
11031 | IFS=$as_save_IFS | |
95a05732 | 11032 | |
11033 | fi | |
11034 | fi | |
11035 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11036 | if test -n "$AR_FOR_TARGET"; then | |
cd9a469c | 11037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11038 | $as_echo "$AR_FOR_TARGET" >&6; } | |
95a05732 | 11039 | else |
cd9a469c | 11040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11041 | $as_echo "no" >&6; } | |
95a05732 | 11042 | fi |
11043 | ||
cd9a469c | 11044 | |
95a05732 | 11045 | done |
11046 | fi | |
11047 | ||
11048 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11049 | for ncn_progname in ar; do |
cd9a469c | 11050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11051 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11052 | if test -x $with_build_time_tools/${ncn_progname}; then |
11053 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11055 | $as_echo "yes" >&6; } | |
c47832b1 | 11056 | break |
11057 | else | |
cd9a469c | 11058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11059 | $as_echo "no" >&6; } | |
c47832b1 | 11060 | fi |
11061 | done | |
11062 | fi | |
11063 | ||
11064 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
11065 | for ncn_progname in ar; do | |
11066 | if test -n "$ncn_target_tool_prefix"; then | |
11067 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11068 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 11069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11070 | $as_echo_n "checking for $ac_word... " >&6; } | |
11071 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11072 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11073 | else |
c47832b1 | 11074 | if test -n "$AR_FOR_TARGET"; then |
11075 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11076 | else |
b30fcfae | 11077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11078 | for as_dir in $PATH | |
11079 | do | |
11080 | IFS=$as_save_IFS | |
11081 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11082 | for ac_exec_ext in '' $ac_executable_extensions; do |
11083 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11084 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11085 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11086 | break 2 |
11087 | fi | |
11088 | done | |
cd9a469c | 11089 | done |
11090 | IFS=$as_save_IFS | |
b30fcfae | 11091 | |
ef8184c7 | 11092 | fi |
11093 | fi | |
b30fcfae | 11094 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
c47832b1 | 11095 | if test -n "$AR_FOR_TARGET"; then |
cd9a469c | 11096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11097 | $as_echo "$AR_FOR_TARGET" >&6; } | |
ef8184c7 | 11098 | else |
cd9a469c | 11099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11100 | $as_echo "no" >&6; } | |
ef8184c7 | 11101 | fi |
11102 | ||
cd9a469c | 11103 | |
c47832b1 | 11104 | fi |
11105 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
11106 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11107 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11109 | $as_echo_n "checking for $ac_word... " >&6; } | |
11110 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11111 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 11112 | else |
11113 | if test -n "$AR_FOR_TARGET"; then | |
11114 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11115 | else | |
b30fcfae | 11116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11117 | for as_dir in $PATH | |
11118 | do | |
11119 | IFS=$as_save_IFS | |
11120 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11121 | for ac_exec_ext in '' $ac_executable_extensions; do |
11122 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11123 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11124 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11125 | break 2 |
11126 | fi | |
11127 | done | |
cd9a469c | 11128 | done |
11129 | IFS=$as_save_IFS | |
b30fcfae | 11130 | |
c47832b1 | 11131 | fi |
11132 | fi | |
b30fcfae | 11133 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
c47832b1 | 11134 | if test -n "$AR_FOR_TARGET"; then |
cd9a469c | 11135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11136 | $as_echo "$AR_FOR_TARGET" >&6; } | |
c47832b1 | 11137 | else |
cd9a469c | 11138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11139 | $as_echo "no" >&6; } | |
c47832b1 | 11140 | fi |
b30fcfae | 11141 | |
cd9a469c | 11142 | |
c47832b1 | 11143 | fi |
11144 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11145 | done | |
11146 | fi | |
b30fcfae | 11147 | |
c47832b1 | 11148 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11149 | set dummy ar | |
11150 | if test $build = $target ; then | |
11151 | AR_FOR_TARGET="$2" | |
11152 | else | |
11153 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
768691b5 | 11154 | fi |
b7ef8464 | 11155 | else |
11156 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
c47832b1 | 11157 | fi |
11158 | ||
ab0da556 | 11159 | else |
11160 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
c47832b1 | 11161 | fi |
11162 | ||
11163 | ||
11164 | ||
11165 | ||
11166 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11167 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11169 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
ab0da556 | 11170 | if test -x $with_build_time_tools/as; then |
11171 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11172 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
cd9a469c | 11173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11174 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
ab0da556 | 11175 | else |
cd9a469c | 11176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11177 | $as_echo "no" >&6; } | |
ab0da556 | 11178 | fi |
c47832b1 | 11179 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11180 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
b7ef8464 | 11181 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11182 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
c47832b1 | 11183 | fi |
11184 | fi | |
38d7211b | 11185 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11186 | # Extract the first word of "as", so it can be a program name with args. |
11187 | set dummy as; ac_word=$2 | |
cd9a469c | 11188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11189 | $as_echo_n "checking for $ac_word... " >&6; } | |
11190 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
11191 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 11192 | else |
b30fcfae | 11193 | case $AS_FOR_TARGET in |
11194 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11195 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11196 | ;; | |
c47832b1 | 11197 | *) |
b30fcfae | 11198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11199 | for as_dir in $gcc_cv_tool_dirs | |
11200 | do | |
11201 | IFS=$as_save_IFS | |
11202 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11203 | for ac_exec_ext in '' $ac_executable_extensions; do |
11204 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11205 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11206 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11207 | break 2 |
11208 | fi | |
11209 | done | |
cd9a469c | 11210 | done |
11211 | IFS=$as_save_IFS | |
b30fcfae | 11212 | |
c47832b1 | 11213 | ;; |
11214 | esac | |
11215 | fi | |
b30fcfae | 11216 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
c47832b1 | 11217 | if test -n "$AS_FOR_TARGET"; then |
cd9a469c | 11218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11219 | $as_echo "$AS_FOR_TARGET" >&6; } | |
c47832b1 | 11220 | else |
cd9a469c | 11221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11222 | $as_echo "no" >&6; } | |
c47832b1 | 11223 | fi |
11224 | ||
cd9a469c | 11225 | |
c47832b1 | 11226 | fi |
11227 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
95a05732 | 11228 | |
11229 | ||
11230 | if test -n "$AS_FOR_TARGET"; then | |
11231 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11232 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11233 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11234 | fi | |
11235 | ||
11236 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11237 | for ncn_progname in as; do | |
11238 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11239 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11241 | $as_echo_n "checking for $ac_word... " >&6; } | |
11242 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11243 | $as_echo_n "(cached) " >&6 | |
95a05732 | 11244 | else |
11245 | if test -n "$AS_FOR_TARGET"; then | |
11246 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11247 | else | |
11248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11249 | for as_dir in $PATH | |
11250 | do | |
11251 | IFS=$as_save_IFS | |
11252 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11253 | for ac_exec_ext in '' $ac_executable_extensions; do |
11254 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11255 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11256 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11257 | break 2 |
11258 | fi | |
11259 | done | |
cd9a469c | 11260 | done |
11261 | IFS=$as_save_IFS | |
95a05732 | 11262 | |
11263 | fi | |
11264 | fi | |
11265 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11266 | if test -n "$AS_FOR_TARGET"; then | |
cd9a469c | 11267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11268 | $as_echo "$AS_FOR_TARGET" >&6; } | |
95a05732 | 11269 | else |
cd9a469c | 11270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11271 | $as_echo "no" >&6; } | |
95a05732 | 11272 | fi |
11273 | ||
cd9a469c | 11274 | |
95a05732 | 11275 | done |
11276 | fi | |
11277 | ||
11278 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11279 | for ncn_progname in as; do |
cd9a469c | 11280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11281 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11282 | if test -x $with_build_time_tools/${ncn_progname}; then |
11283 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11285 | $as_echo "yes" >&6; } | |
c47832b1 | 11286 | break |
11287 | else | |
cd9a469c | 11288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11289 | $as_echo "no" >&6; } | |
c47832b1 | 11290 | fi |
11291 | done | |
11292 | fi | |
11293 | ||
11294 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11295 | for ncn_progname in as; do | |
11296 | if test -n "$ncn_target_tool_prefix"; then | |
11297 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11298 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 11299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11300 | $as_echo_n "checking for $ac_word... " >&6; } | |
11301 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11302 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 11303 | else |
11304 | if test -n "$AS_FOR_TARGET"; then | |
11305 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11306 | else | |
b30fcfae | 11307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11308 | for as_dir in $PATH | |
11309 | do | |
11310 | IFS=$as_save_IFS | |
11311 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11312 | for ac_exec_ext in '' $ac_executable_extensions; do |
11313 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11314 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11315 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11316 | break 2 |
11317 | fi | |
11318 | done | |
cd9a469c | 11319 | done |
11320 | IFS=$as_save_IFS | |
b30fcfae | 11321 | |
c47832b1 | 11322 | fi |
11323 | fi | |
b30fcfae | 11324 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
c47832b1 | 11325 | if test -n "$AS_FOR_TARGET"; then |
cd9a469c | 11326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11327 | $as_echo "$AS_FOR_TARGET" >&6; } | |
c47832b1 | 11328 | else |
cd9a469c | 11329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11330 | $as_echo "no" >&6; } | |
c47832b1 | 11331 | fi |
11332 | ||
cd9a469c | 11333 | |
c47832b1 | 11334 | fi |
11335 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11336 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11337 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 11338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11339 | $as_echo_n "checking for $ac_word... " >&6; } | |
11340 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11341 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11342 | else |
c47832b1 | 11343 | if test -n "$AS_FOR_TARGET"; then |
11344 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11345 | else |
b30fcfae | 11346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11347 | for as_dir in $PATH | |
11348 | do | |
11349 | IFS=$as_save_IFS | |
11350 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11351 | for ac_exec_ext in '' $ac_executable_extensions; do |
11352 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11353 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11354 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11355 | break 2 |
11356 | fi | |
11357 | done | |
cd9a469c | 11358 | done |
11359 | IFS=$as_save_IFS | |
b30fcfae | 11360 | |
ef8184c7 | 11361 | fi |
11362 | fi | |
b30fcfae | 11363 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
c47832b1 | 11364 | if test -n "$AS_FOR_TARGET"; then |
cd9a469c | 11365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11366 | $as_echo "$AS_FOR_TARGET" >&6; } | |
ef8184c7 | 11367 | else |
cd9a469c | 11368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11369 | $as_echo "no" >&6; } | |
ef8184c7 | 11370 | fi |
b30fcfae | 11371 | |
cd9a469c | 11372 | |
c47832b1 | 11373 | fi |
11374 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11375 | done | |
11376 | fi | |
b30fcfae | 11377 | |
c47832b1 | 11378 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11379 | set dummy as | |
11380 | if test $build = $target ; then | |
11381 | AS_FOR_TARGET="$2" | |
11382 | else | |
11383 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ef8184c7 | 11384 | fi |
b7ef8464 | 11385 | else |
11386 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
c47832b1 | 11387 | fi |
768691b5 | 11388 | |
ab0da556 | 11389 | else |
11390 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
ef8184c7 | 11391 | fi |
11392 | ||
c47832b1 | 11393 | |
11394 | ||
11395 | ||
11396 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11397 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11399 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
ab0da556 | 11400 | if test -x $with_build_time_tools/dlltool; then |
11401 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11402 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
cd9a469c | 11403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11404 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
ab0da556 | 11405 | else |
cd9a469c | 11406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11407 | $as_echo "no" >&6; } | |
ab0da556 | 11408 | fi |
c47832b1 | 11409 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11410 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
b7ef8464 | 11411 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11412 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
c47832b1 | 11413 | fi |
11414 | fi | |
38d7211b | 11415 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11416 | # Extract the first word of "dlltool", so it can be a program name with args. |
11417 | set dummy dlltool; ac_word=$2 | |
cd9a469c | 11418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11419 | $as_echo_n "checking for $ac_word... " >&6; } | |
11420 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11421 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11422 | else |
b30fcfae | 11423 | case $DLLTOOL_FOR_TARGET in |
11424 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11425 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11426 | ;; | |
c47832b1 | 11427 | *) |
b30fcfae | 11428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11429 | for as_dir in $gcc_cv_tool_dirs | |
11430 | do | |
11431 | IFS=$as_save_IFS | |
11432 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11433 | for ac_exec_ext in '' $ac_executable_extensions; do |
11434 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11435 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11436 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11437 | break 2 |
11438 | fi | |
11439 | done | |
cd9a469c | 11440 | done |
11441 | IFS=$as_save_IFS | |
b30fcfae | 11442 | |
c47832b1 | 11443 | ;; |
11444 | esac | |
ef8184c7 | 11445 | fi |
b30fcfae | 11446 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
c47832b1 | 11447 | if test -n "$DLLTOOL_FOR_TARGET"; then |
cd9a469c | 11448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11449 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
ef8184c7 | 11450 | else |
cd9a469c | 11451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11452 | $as_echo "no" >&6; } | |
ef8184c7 | 11453 | fi |
11454 | ||
cd9a469c | 11455 | |
c47832b1 | 11456 | fi |
11457 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
95a05732 | 11458 | |
11459 | ||
11460 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11461 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11462 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11463 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11464 | fi | |
11465 | ||
11466 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11467 | for ncn_progname in dlltool; do | |
11468 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11469 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11471 | $as_echo_n "checking for $ac_word... " >&6; } | |
11472 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11473 | $as_echo_n "(cached) " >&6 | |
95a05732 | 11474 | else |
11475 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11476 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11477 | else | |
11478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11479 | for as_dir in $PATH | |
11480 | do | |
11481 | IFS=$as_save_IFS | |
11482 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11483 | for ac_exec_ext in '' $ac_executable_extensions; do |
11484 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11485 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11486 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11487 | break 2 |
11488 | fi | |
11489 | done | |
cd9a469c | 11490 | done |
11491 | IFS=$as_save_IFS | |
95a05732 | 11492 | |
11493 | fi | |
11494 | fi | |
11495 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11496 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
cd9a469c | 11497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11498 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
95a05732 | 11499 | else |
cd9a469c | 11500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11501 | $as_echo "no" >&6; } | |
95a05732 | 11502 | fi |
11503 | ||
cd9a469c | 11504 | |
95a05732 | 11505 | done |
11506 | fi | |
11507 | ||
11508 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11509 | for ncn_progname in dlltool; do |
cd9a469c | 11510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11511 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11512 | if test -x $with_build_time_tools/${ncn_progname}; then |
11513 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11515 | $as_echo "yes" >&6; } | |
c47832b1 | 11516 | break |
11517 | else | |
cd9a469c | 11518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11519 | $as_echo "no" >&6; } | |
c47832b1 | 11520 | fi |
11521 | done | |
11522 | fi | |
11523 | ||
11524 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11525 | for ncn_progname in dlltool; do | |
11526 | if test -n "$ncn_target_tool_prefix"; then | |
11527 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11528 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 11529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11530 | $as_echo_n "checking for $ac_word... " >&6; } | |
11531 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11532 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11533 | else |
c47832b1 | 11534 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11535 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11536 | else |
b30fcfae | 11537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11538 | for as_dir in $PATH | |
11539 | do | |
11540 | IFS=$as_save_IFS | |
11541 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11542 | for ac_exec_ext in '' $ac_executable_extensions; do |
11543 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11544 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11545 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11546 | break 2 |
11547 | fi | |
11548 | done | |
cd9a469c | 11549 | done |
11550 | IFS=$as_save_IFS | |
b30fcfae | 11551 | |
ef8184c7 | 11552 | fi |
11553 | fi | |
b30fcfae | 11554 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
c47832b1 | 11555 | if test -n "$DLLTOOL_FOR_TARGET"; then |
cd9a469c | 11556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11557 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
ef8184c7 | 11558 | else |
cd9a469c | 11559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11560 | $as_echo "no" >&6; } | |
ef8184c7 | 11561 | fi |
ef8184c7 | 11562 | |
cd9a469c | 11563 | |
c47832b1 | 11564 | fi |
11565 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11566 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11567 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11569 | $as_echo_n "checking for $ac_word... " >&6; } | |
11570 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11571 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11572 | else |
c47832b1 | 11573 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11574 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11575 | else |
b30fcfae | 11576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11577 | for as_dir in $PATH | |
11578 | do | |
11579 | IFS=$as_save_IFS | |
11580 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11581 | for ac_exec_ext in '' $ac_executable_extensions; do |
11582 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11583 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11584 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11585 | break 2 |
11586 | fi | |
11587 | done | |
cd9a469c | 11588 | done |
11589 | IFS=$as_save_IFS | |
b30fcfae | 11590 | |
ef8184c7 | 11591 | fi |
11592 | fi | |
b30fcfae | 11593 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
c47832b1 | 11594 | if test -n "$DLLTOOL_FOR_TARGET"; then |
cd9a469c | 11595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11596 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
ef8184c7 | 11597 | else |
cd9a469c | 11598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11599 | $as_echo "no" >&6; } | |
ef8184c7 | 11600 | fi |
b30fcfae | 11601 | |
cd9a469c | 11602 | |
c47832b1 | 11603 | fi |
11604 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11605 | done | |
11606 | fi | |
b30fcfae | 11607 | |
c47832b1 | 11608 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11609 | set dummy dlltool | |
11610 | if test $build = $target ; then | |
11611 | DLLTOOL_FOR_TARGET="$2" | |
11612 | else | |
11613 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11614 | fi | |
b7ef8464 | 11615 | else |
11616 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
c47832b1 | 11617 | fi |
11618 | ||
ab0da556 | 11619 | else |
11620 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
c47832b1 | 11621 | fi |
11622 | ||
ef8184c7 | 11623 | |
c47832b1 | 11624 | |
11625 | ||
11626 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11627 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11629 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
ab0da556 | 11630 | if test -x $with_build_time_tools/ld; then |
11631 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11632 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
cd9a469c | 11633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11634 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
ab0da556 | 11635 | else |
cd9a469c | 11636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11637 | $as_echo "no" >&6; } | |
ab0da556 | 11638 | fi |
c47832b1 | 11639 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11640 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
b7ef8464 | 11641 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11642 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
768691b5 | 11643 | fi |
c47832b1 | 11644 | fi |
38d7211b | 11645 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11646 | # Extract the first word of "ld", so it can be a program name with args. |
11647 | set dummy ld; ac_word=$2 | |
cd9a469c | 11648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11649 | $as_echo_n "checking for $ac_word... " >&6; } | |
11650 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11651 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11652 | else |
b30fcfae | 11653 | case $LD_FOR_TARGET in |
11654 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11655 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11656 | ;; | |
c47832b1 | 11657 | *) |
b30fcfae | 11658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11659 | for as_dir in $gcc_cv_tool_dirs | |
11660 | do | |
11661 | IFS=$as_save_IFS | |
11662 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11663 | for ac_exec_ext in '' $ac_executable_extensions; do |
11664 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11665 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11667 | break 2 |
11668 | fi | |
11669 | done | |
cd9a469c | 11670 | done |
11671 | IFS=$as_save_IFS | |
b30fcfae | 11672 | |
c47832b1 | 11673 | ;; |
11674 | esac | |
ef8184c7 | 11675 | fi |
b30fcfae | 11676 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
c47832b1 | 11677 | if test -n "$LD_FOR_TARGET"; then |
cd9a469c | 11678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11679 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ef8184c7 | 11680 | else |
cd9a469c | 11681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11682 | $as_echo "no" >&6; } | |
ef8184c7 | 11683 | fi |
768691b5 | 11684 | |
cd9a469c | 11685 | |
c47832b1 | 11686 | fi |
11687 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
95a05732 | 11688 | |
11689 | ||
11690 | if test -n "$LD_FOR_TARGET"; then | |
11691 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11692 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11693 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11694 | fi | |
11695 | ||
11696 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11697 | for ncn_progname in ld; do | |
11698 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11699 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11701 | $as_echo_n "checking for $ac_word... " >&6; } | |
11702 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11703 | $as_echo_n "(cached) " >&6 | |
95a05732 | 11704 | else |
11705 | if test -n "$LD_FOR_TARGET"; then | |
11706 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11707 | else | |
11708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11709 | for as_dir in $PATH | |
11710 | do | |
11711 | IFS=$as_save_IFS | |
11712 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11713 | for ac_exec_ext in '' $ac_executable_extensions; do |
11714 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11715 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11716 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11717 | break 2 |
11718 | fi | |
11719 | done | |
cd9a469c | 11720 | done |
11721 | IFS=$as_save_IFS | |
95a05732 | 11722 | |
11723 | fi | |
11724 | fi | |
11725 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11726 | if test -n "$LD_FOR_TARGET"; then | |
cd9a469c | 11727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11728 | $as_echo "$LD_FOR_TARGET" >&6; } | |
95a05732 | 11729 | else |
cd9a469c | 11730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11731 | $as_echo "no" >&6; } | |
95a05732 | 11732 | fi |
11733 | ||
cd9a469c | 11734 | |
95a05732 | 11735 | done |
11736 | fi | |
11737 | ||
11738 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11739 | for ncn_progname in ld; do |
cd9a469c | 11740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11741 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11742 | if test -x $with_build_time_tools/${ncn_progname}; then |
11743 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11745 | $as_echo "yes" >&6; } | |
c47832b1 | 11746 | break |
11747 | else | |
cd9a469c | 11748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11749 | $as_echo "no" >&6; } | |
c47832b1 | 11750 | fi |
11751 | done | |
bb612911 | 11752 | fi |
11753 | ||
c47832b1 | 11754 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
11755 | for ncn_progname in ld; do | |
11756 | if test -n "$ncn_target_tool_prefix"; then | |
11757 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11758 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 11759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11760 | $as_echo_n "checking for $ac_word... " >&6; } | |
11761 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11762 | $as_echo_n "(cached) " >&6 | |
bb612911 | 11763 | else |
ef8184c7 | 11764 | if test -n "$LD_FOR_TARGET"; then |
11765 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
bb612911 | 11766 | else |
b30fcfae | 11767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11768 | for as_dir in $PATH | |
11769 | do | |
11770 | IFS=$as_save_IFS | |
11771 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11772 | for ac_exec_ext in '' $ac_executable_extensions; do |
11773 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11774 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11775 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11776 | break 2 |
11777 | fi | |
11778 | done | |
cd9a469c | 11779 | done |
11780 | IFS=$as_save_IFS | |
b30fcfae | 11781 | |
bb612911 | 11782 | fi |
11783 | fi | |
b30fcfae | 11784 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
ef8184c7 | 11785 | if test -n "$LD_FOR_TARGET"; then |
cd9a469c | 11786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11787 | $as_echo "$LD_FOR_TARGET" >&6; } | |
bb612911 | 11788 | else |
cd9a469c | 11789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11790 | $as_echo "no" >&6; } | |
bb612911 | 11791 | fi |
11792 | ||
cd9a469c | 11793 | |
c47832b1 | 11794 | fi |
11795 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11796 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11797 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 11798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11799 | $as_echo_n "checking for $ac_word... " >&6; } | |
11800 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11801 | $as_echo_n "(cached) " >&6 | |
bb612911 | 11802 | else |
768691b5 | 11803 | if test -n "$LD_FOR_TARGET"; then |
11804 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
bb612911 | 11805 | else |
b30fcfae | 11806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11807 | for as_dir in $PATH | |
11808 | do | |
11809 | IFS=$as_save_IFS | |
11810 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11811 | for ac_exec_ext in '' $ac_executable_extensions; do |
11812 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11813 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11814 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11815 | break 2 |
11816 | fi | |
11817 | done | |
cd9a469c | 11818 | done |
11819 | IFS=$as_save_IFS | |
b30fcfae | 11820 | |
bb612911 | 11821 | fi |
11822 | fi | |
b30fcfae | 11823 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
768691b5 | 11824 | if test -n "$LD_FOR_TARGET"; then |
cd9a469c | 11825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11826 | $as_echo "$LD_FOR_TARGET" >&6; } | |
bb612911 | 11827 | else |
cd9a469c | 11828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11829 | $as_echo "no" >&6; } | |
bb612911 | 11830 | fi |
b30fcfae | 11831 | |
cd9a469c | 11832 | |
c47832b1 | 11833 | fi |
11834 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11835 | done | |
11836 | fi | |
b30fcfae | 11837 | |
768691b5 | 11838 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11839 | set dummy ld | |
11840 | if test $build = $target ; then | |
11841 | LD_FOR_TARGET="$2" | |
bb612911 | 11842 | else |
768691b5 | 11843 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
bb612911 | 11844 | fi |
b7ef8464 | 11845 | else |
11846 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
bb612911 | 11847 | fi |
11848 | ||
ab0da556 | 11849 | else |
11850 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
c47832b1 | 11851 | fi |
11852 | ||
11853 | ||
11854 | ||
11855 | ||
11856 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11857 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11859 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
ab0da556 | 11860 | if test -x $with_build_time_tools/lipo; then |
11861 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11862 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
cd9a469c | 11863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11864 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
ab0da556 | 11865 | else |
cd9a469c | 11866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11867 | $as_echo "no" >&6; } | |
ab0da556 | 11868 | fi |
c47832b1 | 11869 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11870 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
b7ef8464 | 11871 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11872 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
c47832b1 | 11873 | fi |
11874 | fi | |
95a05732 | 11875 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11876 | # Extract the first word of "lipo", so it can be a program name with args. | |
11877 | set dummy lipo; ac_word=$2 | |
cd9a469c | 11878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11879 | $as_echo_n "checking for $ac_word... " >&6; } | |
11880 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11881 | $as_echo_n "(cached) " >&6 | |
95a05732 | 11882 | else |
11883 | case $LIPO_FOR_TARGET in | |
11884 | [\\/]* | ?:[\\/]*) | |
11885 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11886 | ;; | |
11887 | *) | |
11888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11889 | for as_dir in $gcc_cv_tool_dirs | |
11890 | do | |
11891 | IFS=$as_save_IFS | |
11892 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11893 | for ac_exec_ext in '' $ac_executable_extensions; do |
11894 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11895 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11896 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11897 | break 2 |
11898 | fi | |
11899 | done | |
cd9a469c | 11900 | done |
11901 | IFS=$as_save_IFS | |
95a05732 | 11902 | |
11903 | ;; | |
11904 | esac | |
11905 | fi | |
11906 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
95a05732 | 11907 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 11908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11909 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
95a05732 | 11910 | else |
cd9a469c | 11911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11912 | $as_echo "no" >&6; } | |
95a05732 | 11913 | fi |
11914 | ||
cd9a469c | 11915 | |
95a05732 | 11916 | fi |
11917 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11918 | ||
11919 | ||
11920 | if test -n "$LIPO_FOR_TARGET"; then | |
11921 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11922 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11923 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11924 | fi | |
11925 | ||
11926 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11927 | for ncn_progname in lipo; do | |
11928 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11929 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11931 | $as_echo_n "checking for $ac_word... " >&6; } | |
11932 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11933 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 11934 | else |
95a05732 | 11935 | if test -n "$LIPO_FOR_TARGET"; then |
11936 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11937 | else | |
11938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11939 | for as_dir in $PATH | |
b30fcfae | 11940 | do |
11941 | IFS=$as_save_IFS | |
11942 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11943 | for ac_exec_ext in '' $ac_executable_extensions; do |
11944 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11945 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11947 | break 2 |
11948 | fi | |
11949 | done | |
cd9a469c | 11950 | done |
11951 | IFS=$as_save_IFS | |
b30fcfae | 11952 | |
c47832b1 | 11953 | fi |
95a05732 | 11954 | fi |
11955 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
c47832b1 | 11956 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 11957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11958 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
c47832b1 | 11959 | else |
cd9a469c | 11960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11961 | $as_echo "no" >&6; } | |
c47832b1 | 11962 | fi |
11963 | ||
cd9a469c | 11964 | |
95a05732 | 11965 | done |
c47832b1 | 11966 | fi |
95a05732 | 11967 | |
11968 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11969 | for ncn_progname in lipo; do |
cd9a469c | 11970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11971 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11972 | if test -x $with_build_time_tools/${ncn_progname}; then |
11973 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11975 | $as_echo "yes" >&6; } | |
c47832b1 | 11976 | break |
11977 | else | |
cd9a469c | 11978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11979 | $as_echo "no" >&6; } | |
c47832b1 | 11980 | fi |
11981 | done | |
11982 | fi | |
11983 | ||
11984 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11985 | for ncn_progname in lipo; do | |
11986 | if test -n "$ncn_target_tool_prefix"; then | |
11987 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11988 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 11989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11990 | $as_echo_n "checking for $ac_word... " >&6; } | |
11991 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11992 | $as_echo_n "(cached) " >&6 | |
9fec3fa8 | 11993 | else |
11994 | if test -n "$LIPO_FOR_TARGET"; then | |
11995 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11996 | else | |
b30fcfae | 11997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11998 | for as_dir in $PATH | |
11999 | do | |
12000 | IFS=$as_save_IFS | |
12001 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12002 | for ac_exec_ext in '' $ac_executable_extensions; do |
12003 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12004 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12005 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12006 | break 2 |
12007 | fi | |
12008 | done | |
cd9a469c | 12009 | done |
12010 | IFS=$as_save_IFS | |
b30fcfae | 12011 | |
9fec3fa8 | 12012 | fi |
12013 | fi | |
b30fcfae | 12014 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
9fec3fa8 | 12015 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 12016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12017 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9fec3fa8 | 12018 | else |
cd9a469c | 12019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12020 | $as_echo "no" >&6; } | |
9fec3fa8 | 12021 | fi |
12022 | ||
cd9a469c | 12023 | |
c47832b1 | 12024 | fi |
12025 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
12026 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 12027 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12029 | $as_echo_n "checking for $ac_word... " >&6; } | |
12030 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
12031 | $as_echo_n "(cached) " >&6 | |
9fec3fa8 | 12032 | else |
12033 | if test -n "$LIPO_FOR_TARGET"; then | |
9886f3d1 | 12034 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
12035 | else | |
b30fcfae | 12036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12037 | for as_dir in $PATH | |
12038 | do | |
12039 | IFS=$as_save_IFS | |
12040 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12041 | for ac_exec_ext in '' $ac_executable_extensions; do |
12042 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12043 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12044 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12045 | break 2 |
12046 | fi | |
12047 | done | |
cd9a469c | 12048 | done |
12049 | IFS=$as_save_IFS | |
b30fcfae | 12050 | |
9fec3fa8 | 12051 | fi |
12052 | fi | |
b30fcfae | 12053 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
9fec3fa8 | 12054 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 12055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12056 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9fec3fa8 | 12057 | else |
cd9a469c | 12058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12059 | $as_echo "no" >&6; } | |
9fec3fa8 | 12060 | fi |
b30fcfae | 12061 | |
cd9a469c | 12062 | |
c47832b1 | 12063 | fi |
12064 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
12065 | done | |
12066 | fi | |
b30fcfae | 12067 | |
9fec3fa8 | 12068 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
12069 | set dummy lipo | |
12070 | if test $build = $target ; then | |
12071 | LIPO_FOR_TARGET="$2" | |
12072 | else | |
12073 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12074 | fi | |
b7ef8464 | 12075 | else |
12076 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
9fec3fa8 | 12077 | fi |
12078 | ||
ab0da556 | 12079 | else |
12080 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
c47832b1 | 12081 | fi |
12082 | ||
12083 | ||
12084 | ||
12085 | ||
12086 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
12087 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 12088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
12089 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
ab0da556 | 12090 | if test -x $with_build_time_tools/nm; then |
12091 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
12092 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
cd9a469c | 12093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
12094 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
ab0da556 | 12095 | else |
cd9a469c | 12096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12097 | $as_echo "no" >&6; } | |
ab0da556 | 12098 | fi |
c47832b1 | 12099 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12100 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
b7ef8464 | 12101 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
12102 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
c47832b1 | 12103 | fi |
12104 | fi | |
38d7211b | 12105 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 12106 | # Extract the first word of "nm", so it can be a program name with args. |
12107 | set dummy nm; ac_word=$2 | |
cd9a469c | 12108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12109 | $as_echo_n "checking for $ac_word... " >&6; } | |
12110 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
12111 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 12112 | else |
b30fcfae | 12113 | case $NM_FOR_TARGET in |
12114 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 12115 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
12116 | ;; | |
c47832b1 | 12117 | *) |
b30fcfae | 12118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12119 | for as_dir in $gcc_cv_tool_dirs | |
12120 | do | |
12121 | IFS=$as_save_IFS | |
12122 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12123 | for ac_exec_ext in '' $ac_executable_extensions; do |
12124 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12125 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 12126 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12127 | break 2 |
12128 | fi | |
12129 | done | |
cd9a469c | 12130 | done |
12131 | IFS=$as_save_IFS | |
b30fcfae | 12132 | |
c47832b1 | 12133 | ;; |
12134 | esac | |
12135 | fi | |
b30fcfae | 12136 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
c47832b1 | 12137 | if test -n "$NM_FOR_TARGET"; then |
cd9a469c | 12138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12139 | $as_echo "$NM_FOR_TARGET" >&6; } | |
c47832b1 | 12140 | else |
cd9a469c | 12141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12142 | $as_echo "no" >&6; } | |
c47832b1 | 12143 | fi |
12144 | ||
cd9a469c | 12145 | |
c47832b1 | 12146 | fi |
12147 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
95a05732 | 12148 | |
12149 | ||
12150 | if test -n "$NM_FOR_TARGET"; then | |
12151 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12152 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12153 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12154 | fi | |
12155 | ||
12156 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12157 | for ncn_progname in nm; do | |
12158 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12159 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12161 | $as_echo_n "checking for $ac_word... " >&6; } | |
12162 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12163 | $as_echo_n "(cached) " >&6 | |
95a05732 | 12164 | else |
12165 | if test -n "$NM_FOR_TARGET"; then | |
12166 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12167 | else | |
12168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12169 | for as_dir in $PATH | |
12170 | do | |
12171 | IFS=$as_save_IFS | |
12172 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12173 | for ac_exec_ext in '' $ac_executable_extensions; do |
12174 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 12175 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 12177 | break 2 |
12178 | fi | |
12179 | done | |
cd9a469c | 12180 | done |
12181 | IFS=$as_save_IFS | |
95a05732 | 12182 | |
12183 | fi | |
12184 | fi | |
12185 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12186 | if test -n "$NM_FOR_TARGET"; then | |
cd9a469c | 12187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12188 | $as_echo "$NM_FOR_TARGET" >&6; } | |
95a05732 | 12189 | else |
cd9a469c | 12190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12191 | $as_echo "no" >&6; } | |
95a05732 | 12192 | fi |
12193 | ||
cd9a469c | 12194 | |
95a05732 | 12195 | done |
12196 | fi | |
12197 | ||
12198 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12199 | for ncn_progname in nm; do |
cd9a469c | 12200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12201 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12202 | if test -x $with_build_time_tools/${ncn_progname}; then |
12203 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12205 | $as_echo "yes" >&6; } | |
c47832b1 | 12206 | break |
12207 | else | |
cd9a469c | 12208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12209 | $as_echo "no" >&6; } | |
c47832b1 | 12210 | fi |
12211 | done | |
12212 | fi | |
12213 | ||
12214 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12215 | for ncn_progname in nm; do | |
12216 | if test -n "$ncn_target_tool_prefix"; then | |
12217 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 12218 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 12219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12220 | $as_echo_n "checking for $ac_word... " >&6; } | |
12221 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12222 | $as_echo_n "(cached) " >&6 | |
bb612911 | 12223 | else |
ef8184c7 | 12224 | if test -n "$NM_FOR_TARGET"; then |
12225 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12226 | else |
b30fcfae | 12227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12228 | for as_dir in $PATH | |
12229 | do | |
12230 | IFS=$as_save_IFS | |
12231 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12232 | for ac_exec_ext in '' $ac_executable_extensions; do |
12233 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12234 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12235 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12236 | break 2 |
12237 | fi | |
12238 | done | |
cd9a469c | 12239 | done |
12240 | IFS=$as_save_IFS | |
b30fcfae | 12241 | |
bb612911 | 12242 | fi |
12243 | fi | |
b30fcfae | 12244 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
ef8184c7 | 12245 | if test -n "$NM_FOR_TARGET"; then |
cd9a469c | 12246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12247 | $as_echo "$NM_FOR_TARGET" >&6; } | |
bb612911 | 12248 | else |
cd9a469c | 12249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12250 | $as_echo "no" >&6; } | |
bb612911 | 12251 | fi |
12252 | ||
cd9a469c | 12253 | |
c47832b1 | 12254 | fi |
12255 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12256 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12257 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12259 | $as_echo_n "checking for $ac_word... " >&6; } | |
12260 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12261 | $as_echo_n "(cached) " >&6 | |
bb612911 | 12262 | else |
768691b5 | 12263 | if test -n "$NM_FOR_TARGET"; then |
12264 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12265 | else |
b30fcfae | 12266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12267 | for as_dir in $PATH | |
12268 | do | |
12269 | IFS=$as_save_IFS | |
12270 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12271 | for ac_exec_ext in '' $ac_executable_extensions; do |
12272 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12273 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12274 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12275 | break 2 |
12276 | fi | |
12277 | done | |
cd9a469c | 12278 | done |
12279 | IFS=$as_save_IFS | |
b30fcfae | 12280 | |
bb612911 | 12281 | fi |
12282 | fi | |
b30fcfae | 12283 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
768691b5 | 12284 | if test -n "$NM_FOR_TARGET"; then |
cd9a469c | 12285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12286 | $as_echo "$NM_FOR_TARGET" >&6; } | |
bb612911 | 12287 | else |
cd9a469c | 12288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12289 | $as_echo "no" >&6; } | |
bb612911 | 12290 | fi |
b30fcfae | 12291 | |
cd9a469c | 12292 | |
c47832b1 | 12293 | fi |
12294 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12295 | done | |
12296 | fi | |
b30fcfae | 12297 | |
768691b5 | 12298 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12299 | set dummy nm | |
12300 | if test $build = $target ; then | |
12301 | NM_FOR_TARGET="$2" | |
bb612911 | 12302 | else |
768691b5 | 12303 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
bb612911 | 12304 | fi |
b7ef8464 | 12305 | else |
12306 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
bb612911 | 12307 | fi |
12308 | ||
ab0da556 | 12309 | else |
12310 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
c47832b1 | 12311 | fi |
12312 | ||
12313 | ||
12314 | ||
12315 | ||
fc740d70 | 12316 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12317 | if test -n "$with_build_time_tools"; then | |
12318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12319 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12320 | if test -x $with_build_time_tools/objcopy; then | |
12321 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12322 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12324 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12325 | else | |
12326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12327 | $as_echo "no" >&6; } | |
12328 | fi | |
12329 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12330 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12331 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12332 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12333 | fi | |
12334 | fi | |
12335 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12336 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12337 | set dummy objcopy; ac_word=$2 | |
12338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12339 | $as_echo_n "checking for $ac_word... " >&6; } | |
12340 | if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12341 | $as_echo_n "(cached) " >&6 | |
12342 | else | |
12343 | case $OBJCOPY_FOR_TARGET in | |
12344 | [\\/]* | ?:[\\/]*) | |
12345 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12346 | ;; | |
12347 | *) | |
12348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12349 | for as_dir in $gcc_cv_tool_dirs | |
12350 | do | |
12351 | IFS=$as_save_IFS | |
12352 | test -z "$as_dir" && as_dir=. | |
12353 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12354 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12355 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12356 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12357 | break 2 | |
12358 | fi | |
12359 | done | |
12360 | done | |
12361 | IFS=$as_save_IFS | |
12362 | ||
12363 | ;; | |
12364 | esac | |
12365 | fi | |
12366 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12367 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12369 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12370 | else | |
12371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12372 | $as_echo "no" >&6; } | |
12373 | fi | |
12374 | ||
12375 | ||
12376 | fi | |
12377 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12378 | ||
12379 | ||
12380 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12381 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12382 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12383 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12384 | fi | |
12385 | ||
12386 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12387 | for ncn_progname in objcopy; do | |
12388 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12389 | set dummy ${ncn_progname}; ac_word=$2 | |
12390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12391 | $as_echo_n "checking for $ac_word... " >&6; } | |
12392 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12393 | $as_echo_n "(cached) " >&6 | |
12394 | else | |
12395 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12396 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12397 | else | |
12398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12399 | for as_dir in $PATH | |
12400 | do | |
12401 | IFS=$as_save_IFS | |
12402 | test -z "$as_dir" && as_dir=. | |
12403 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12404 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12405 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12406 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12407 | break 2 | |
12408 | fi | |
12409 | done | |
12410 | done | |
12411 | IFS=$as_save_IFS | |
12412 | ||
12413 | fi | |
12414 | fi | |
12415 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12416 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12418 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12419 | else | |
12420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12421 | $as_echo "no" >&6; } | |
12422 | fi | |
12423 | ||
12424 | ||
12425 | done | |
12426 | fi | |
12427 | ||
12428 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12429 | for ncn_progname in objcopy; do | |
12430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12431 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12432 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12433 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12435 | $as_echo "yes" >&6; } | |
12436 | break | |
12437 | else | |
12438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12439 | $as_echo "no" >&6; } | |
12440 | fi | |
12441 | done | |
12442 | fi | |
12443 | ||
12444 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12445 | for ncn_progname in objcopy; do | |
12446 | if test -n "$ncn_target_tool_prefix"; then | |
12447 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12448 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12450 | $as_echo_n "checking for $ac_word... " >&6; } | |
12451 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12452 | $as_echo_n "(cached) " >&6 | |
12453 | else | |
12454 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12455 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12456 | else | |
12457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12458 | for as_dir in $PATH | |
12459 | do | |
12460 | IFS=$as_save_IFS | |
12461 | test -z "$as_dir" && as_dir=. | |
12462 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12463 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12464 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12465 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12466 | break 2 | |
12467 | fi | |
12468 | done | |
12469 | done | |
12470 | IFS=$as_save_IFS | |
12471 | ||
12472 | fi | |
12473 | fi | |
12474 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12475 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12477 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12478 | else | |
12479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12480 | $as_echo "no" >&6; } | |
12481 | fi | |
12482 | ||
12483 | ||
12484 | fi | |
12485 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12486 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12487 | set dummy ${ncn_progname}; ac_word=$2 | |
12488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12489 | $as_echo_n "checking for $ac_word... " >&6; } | |
12490 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12491 | $as_echo_n "(cached) " >&6 | |
12492 | else | |
12493 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12494 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12495 | else | |
12496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12497 | for as_dir in $PATH | |
12498 | do | |
12499 | IFS=$as_save_IFS | |
12500 | test -z "$as_dir" && as_dir=. | |
12501 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12502 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12503 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12504 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12505 | break 2 | |
12506 | fi | |
12507 | done | |
12508 | done | |
12509 | IFS=$as_save_IFS | |
12510 | ||
12511 | fi | |
12512 | fi | |
12513 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12514 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12516 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12517 | else | |
12518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12519 | $as_echo "no" >&6; } | |
12520 | fi | |
12521 | ||
12522 | ||
12523 | fi | |
12524 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12525 | done | |
12526 | fi | |
12527 | ||
12528 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12529 | set dummy objcopy | |
12530 | if test $build = $target ; then | |
12531 | OBJCOPY_FOR_TARGET="$2" | |
12532 | else | |
12533 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12534 | fi | |
12535 | else | |
12536 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12537 | fi | |
12538 | ||
12539 | else | |
12540 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12541 | fi | |
12542 | ||
12543 | ||
12544 | ||
12545 | ||
c47832b1 | 12546 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12547 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 12548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12549 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
ab0da556 | 12550 | if test -x $with_build_time_tools/objdump; then |
12551 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12552 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
cd9a469c | 12553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12554 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
ab0da556 | 12555 | else |
cd9a469c | 12556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12557 | $as_echo "no" >&6; } | |
ab0da556 | 12558 | fi |
c47832b1 | 12559 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12560 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
b7ef8464 | 12561 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12562 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
c47832b1 | 12563 | fi |
12564 | fi | |
38d7211b | 12565 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 12566 | # Extract the first word of "objdump", so it can be a program name with args. |
12567 | set dummy objdump; ac_word=$2 | |
cd9a469c | 12568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12569 | $as_echo_n "checking for $ac_word... " >&6; } | |
12570 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12571 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 12572 | else |
b30fcfae | 12573 | case $OBJDUMP_FOR_TARGET in |
12574 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 12575 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12576 | ;; | |
c47832b1 | 12577 | *) |
b30fcfae | 12578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12579 | for as_dir in $gcc_cv_tool_dirs | |
12580 | do | |
12581 | IFS=$as_save_IFS | |
12582 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12583 | for ac_exec_ext in '' $ac_executable_extensions; do |
12584 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12585 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 12586 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12587 | break 2 |
12588 | fi | |
12589 | done | |
cd9a469c | 12590 | done |
12591 | IFS=$as_save_IFS | |
b30fcfae | 12592 | |
c47832b1 | 12593 | ;; |
12594 | esac | |
12595 | fi | |
b30fcfae | 12596 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
c47832b1 | 12597 | if test -n "$OBJDUMP_FOR_TARGET"; then |
cd9a469c | 12598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12599 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
c47832b1 | 12600 | else |
cd9a469c | 12601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12602 | $as_echo "no" >&6; } | |
c47832b1 | 12603 | fi |
12604 | ||
cd9a469c | 12605 | |
c47832b1 | 12606 | fi |
12607 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
95a05732 | 12608 | |
12609 | ||
12610 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12611 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12612 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12613 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12614 | fi | |
12615 | ||
12616 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12617 | for ncn_progname in objdump; do | |
12618 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12619 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12621 | $as_echo_n "checking for $ac_word... " >&6; } | |
12622 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12623 | $as_echo_n "(cached) " >&6 | |
95a05732 | 12624 | else |
12625 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12626 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12627 | else | |
12628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12629 | for as_dir in $PATH | |
12630 | do | |
12631 | IFS=$as_save_IFS | |
12632 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12633 | for ac_exec_ext in '' $ac_executable_extensions; do |
12634 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 12635 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12636 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 12637 | break 2 |
12638 | fi | |
12639 | done | |
cd9a469c | 12640 | done |
12641 | IFS=$as_save_IFS | |
95a05732 | 12642 | |
12643 | fi | |
12644 | fi | |
12645 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12646 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
cd9a469c | 12647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12648 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
95a05732 | 12649 | else |
cd9a469c | 12650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12651 | $as_echo "no" >&6; } | |
95a05732 | 12652 | fi |
12653 | ||
cd9a469c | 12654 | |
95a05732 | 12655 | done |
12656 | fi | |
12657 | ||
12658 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12659 | for ncn_progname in objdump; do |
cd9a469c | 12660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12661 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12662 | if test -x $with_build_time_tools/${ncn_progname}; then |
12663 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12665 | $as_echo "yes" >&6; } | |
c47832b1 | 12666 | break |
12667 | else | |
cd9a469c | 12668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12669 | $as_echo "no" >&6; } | |
c47832b1 | 12670 | fi |
12671 | done | |
12672 | fi | |
12673 | ||
12674 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12675 | for ncn_progname in objdump; do | |
12676 | if test -n "$ncn_target_tool_prefix"; then | |
12677 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12678 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 12679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12680 | $as_echo_n "checking for $ac_word... " >&6; } | |
12681 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12682 | $as_echo_n "(cached) " >&6 | |
ae74ffb7 | 12683 | else |
12684 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12685 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12686 | else | |
b30fcfae | 12687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12688 | for as_dir in $PATH | |
12689 | do | |
12690 | IFS=$as_save_IFS | |
12691 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12692 | for ac_exec_ext in '' $ac_executable_extensions; do |
12693 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12694 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12695 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12696 | break 2 |
12697 | fi | |
12698 | done | |
cd9a469c | 12699 | done |
12700 | IFS=$as_save_IFS | |
b30fcfae | 12701 | |
ae74ffb7 | 12702 | fi |
12703 | fi | |
b30fcfae | 12704 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
ae74ffb7 | 12705 | if test -n "$OBJDUMP_FOR_TARGET"; then |
cd9a469c | 12706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12707 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
ae74ffb7 | 12708 | else |
cd9a469c | 12709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12710 | $as_echo "no" >&6; } | |
ae74ffb7 | 12711 | fi |
12712 | ||
cd9a469c | 12713 | |
c47832b1 | 12714 | fi |
12715 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12716 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
ae74ffb7 | 12717 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12719 | $as_echo_n "checking for $ac_word... " >&6; } | |
12720 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12721 | $as_echo_n "(cached) " >&6 | |
ae74ffb7 | 12722 | else |
12723 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12724 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12725 | else | |
b30fcfae | 12726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12727 | for as_dir in $PATH | |
12728 | do | |
12729 | IFS=$as_save_IFS | |
12730 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12731 | for ac_exec_ext in '' $ac_executable_extensions; do |
12732 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12733 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12734 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12735 | break 2 |
12736 | fi | |
12737 | done | |
cd9a469c | 12738 | done |
12739 | IFS=$as_save_IFS | |
b30fcfae | 12740 | |
ae74ffb7 | 12741 | fi |
12742 | fi | |
b30fcfae | 12743 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
ae74ffb7 | 12744 | if test -n "$OBJDUMP_FOR_TARGET"; then |
cd9a469c | 12745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12746 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
ae74ffb7 | 12747 | else |
cd9a469c | 12748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12749 | $as_echo "no" >&6; } | |
ae74ffb7 | 12750 | fi |
b30fcfae | 12751 | |
cd9a469c | 12752 | |
c47832b1 | 12753 | fi |
12754 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12755 | done | |
12756 | fi | |
b30fcfae | 12757 | |
ae74ffb7 | 12758 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12759 | set dummy objdump | |
12760 | if test $build = $target ; then | |
12761 | OBJDUMP_FOR_TARGET="$2" | |
12762 | else | |
12763 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12764 | fi | |
b7ef8464 | 12765 | else |
12766 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
ae74ffb7 | 12767 | fi |
12768 | ||
ab0da556 | 12769 | else |
12770 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
c47832b1 | 12771 | fi |
12772 | ||
12773 | ||
12774 | ||
12775 | ||
12776 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12777 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 12778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12779 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
ab0da556 | 12780 | if test -x $with_build_time_tools/ranlib; then |
12781 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12782 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
cd9a469c | 12783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12784 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
ab0da556 | 12785 | else |
cd9a469c | 12786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12787 | $as_echo "no" >&6; } | |
ab0da556 | 12788 | fi |
c47832b1 | 12789 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12790 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
b7ef8464 | 12791 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12792 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
c47832b1 | 12793 | fi |
12794 | fi | |
38d7211b | 12795 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 12796 | # Extract the first word of "ranlib", so it can be a program name with args. |
12797 | set dummy ranlib; ac_word=$2 | |
cd9a469c | 12798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12799 | $as_echo_n "checking for $ac_word... " >&6; } | |
12800 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12801 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 12802 | else |
b30fcfae | 12803 | case $RANLIB_FOR_TARGET in |
12804 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 12805 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12806 | ;; | |
c47832b1 | 12807 | *) |
b30fcfae | 12808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12809 | for as_dir in $gcc_cv_tool_dirs | |
12810 | do | |
12811 | IFS=$as_save_IFS | |
12812 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12813 | for ac_exec_ext in '' $ac_executable_extensions; do |
12814 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12815 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 12816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12817 | break 2 |
12818 | fi | |
12819 | done | |
cd9a469c | 12820 | done |
12821 | IFS=$as_save_IFS | |
b30fcfae | 12822 | |
c47832b1 | 12823 | ;; |
12824 | esac | |
12825 | fi | |
b30fcfae | 12826 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
c47832b1 | 12827 | if test -n "$RANLIB_FOR_TARGET"; then |
cd9a469c | 12828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12829 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
c47832b1 | 12830 | else |
cd9a469c | 12831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12832 | $as_echo "no" >&6; } | |
c47832b1 | 12833 | fi |
12834 | ||
cd9a469c | 12835 | |
c47832b1 | 12836 | fi |
12837 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
95a05732 | 12838 | |
12839 | ||
12840 | if test -n "$RANLIB_FOR_TARGET"; then | |
12841 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12842 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12843 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12844 | fi | |
12845 | ||
12846 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12847 | for ncn_progname in ranlib; do | |
12848 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12849 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12851 | $as_echo_n "checking for $ac_word... " >&6; } | |
12852 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12853 | $as_echo_n "(cached) " >&6 | |
95a05732 | 12854 | else |
12855 | if test -n "$RANLIB_FOR_TARGET"; then | |
12856 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12857 | else | |
12858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12859 | for as_dir in $PATH | |
12860 | do | |
12861 | IFS=$as_save_IFS | |
12862 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12863 | for ac_exec_ext in '' $ac_executable_extensions; do |
12864 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 12865 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12866 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 12867 | break 2 |
12868 | fi | |
12869 | done | |
cd9a469c | 12870 | done |
12871 | IFS=$as_save_IFS | |
95a05732 | 12872 | |
12873 | fi | |
12874 | fi | |
12875 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12876 | if test -n "$RANLIB_FOR_TARGET"; then | |
cd9a469c | 12877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12878 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
95a05732 | 12879 | else |
cd9a469c | 12880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12881 | $as_echo "no" >&6; } | |
95a05732 | 12882 | fi |
12883 | ||
cd9a469c | 12884 | |
95a05732 | 12885 | done |
12886 | fi | |
12887 | ||
12888 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12889 | for ncn_progname in ranlib; do |
cd9a469c | 12890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12891 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12892 | if test -x $with_build_time_tools/${ncn_progname}; then |
12893 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12895 | $as_echo "yes" >&6; } | |
c47832b1 | 12896 | break |
12897 | else | |
cd9a469c | 12898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12899 | $as_echo "no" >&6; } | |
c47832b1 | 12900 | fi |
12901 | done | |
12902 | fi | |
12903 | ||
12904 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12905 | for ncn_progname in ranlib; do | |
12906 | if test -n "$ncn_target_tool_prefix"; then | |
12907 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
ae74ffb7 | 12908 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 12909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12910 | $as_echo_n "checking for $ac_word... " >&6; } | |
12911 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12912 | $as_echo_n "(cached) " >&6 | |
bb612911 | 12913 | else |
ef8184c7 | 12914 | if test -n "$RANLIB_FOR_TARGET"; then |
12915 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12916 | else |
b30fcfae | 12917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12918 | for as_dir in $PATH | |
12919 | do | |
12920 | IFS=$as_save_IFS | |
12921 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12922 | for ac_exec_ext in '' $ac_executable_extensions; do |
12923 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12924 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12925 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12926 | break 2 |
12927 | fi | |
12928 | done | |
cd9a469c | 12929 | done |
12930 | IFS=$as_save_IFS | |
b30fcfae | 12931 | |
bb612911 | 12932 | fi |
12933 | fi | |
b30fcfae | 12934 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
ef8184c7 | 12935 | if test -n "$RANLIB_FOR_TARGET"; then |
cd9a469c | 12936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12937 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
bb612911 | 12938 | else |
cd9a469c | 12939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12940 | $as_echo "no" >&6; } | |
bb612911 | 12941 | fi |
12942 | ||
cd9a469c | 12943 | |
c47832b1 | 12944 | fi |
12945 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12946 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12947 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12949 | $as_echo_n "checking for $ac_word... " >&6; } | |
12950 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12951 | $as_echo_n "(cached) " >&6 | |
bb612911 | 12952 | else |
768691b5 | 12953 | if test -n "$RANLIB_FOR_TARGET"; then |
12954 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12955 | else |
b30fcfae | 12956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12957 | for as_dir in $PATH | |
12958 | do | |
12959 | IFS=$as_save_IFS | |
12960 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12961 | for ac_exec_ext in '' $ac_executable_extensions; do |
12962 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12963 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12964 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12965 | break 2 |
12966 | fi | |
12967 | done | |
cd9a469c | 12968 | done |
12969 | IFS=$as_save_IFS | |
b30fcfae | 12970 | |
bb612911 | 12971 | fi |
12972 | fi | |
b30fcfae | 12973 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
768691b5 | 12974 | if test -n "$RANLIB_FOR_TARGET"; then |
cd9a469c | 12975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12976 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
bb612911 | 12977 | else |
cd9a469c | 12978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12979 | $as_echo "no" >&6; } | |
bb612911 | 12980 | fi |
b30fcfae | 12981 | |
cd9a469c | 12982 | |
c47832b1 | 12983 | fi |
12984 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12985 | done | |
12986 | fi | |
b30fcfae | 12987 | |
c47832b1 | 12988 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12989 | set dummy ranlib | |
12990 | if test $build = $target ; then | |
12991 | RANLIB_FOR_TARGET="$2" | |
12992 | else | |
12993 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
bb612911 | 12994 | fi |
b7ef8464 | 12995 | else |
12996 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
c47832b1 | 12997 | fi |
768691b5 | 12998 | |
ab0da556 | 12999 | else |
13000 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
bb612911 | 13001 | fi |
13002 | ||
c47832b1 | 13003 | |
13004 | ||
13005 | ||
3f71364d | 13006 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
13007 | if test -n "$with_build_time_tools"; then | |
13008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
13009 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
13010 | if test -x $with_build_time_tools/readelf; then | |
13011 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
13012 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
13014 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
13015 | else | |
13016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13017 | $as_echo "no" >&6; } | |
13018 | fi | |
13019 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13020 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
13021 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
13022 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13023 | fi | |
13024 | fi | |
13025 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13026 | # Extract the first word of "readelf", so it can be a program name with args. | |
13027 | set dummy readelf; ac_word=$2 | |
13028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13029 | $as_echo_n "checking for $ac_word... " >&6; } | |
13030 | if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then : | |
13031 | $as_echo_n "(cached) " >&6 | |
13032 | else | |
13033 | case $READELF_FOR_TARGET in | |
13034 | [\\/]* | ?:[\\/]*) | |
13035 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
13036 | ;; | |
13037 | *) | |
13038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13039 | for as_dir in $gcc_cv_tool_dirs | |
13040 | do | |
13041 | IFS=$as_save_IFS | |
13042 | test -z "$as_dir" && as_dir=. | |
13043 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13044 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13045 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
13046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13047 | break 2 | |
13048 | fi | |
13049 | done | |
13050 | done | |
13051 | IFS=$as_save_IFS | |
13052 | ||
13053 | ;; | |
13054 | esac | |
13055 | fi | |
13056 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13057 | if test -n "$READELF_FOR_TARGET"; then | |
13058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13059 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13060 | else | |
13061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13062 | $as_echo "no" >&6; } | |
13063 | fi | |
13064 | ||
13065 | ||
13066 | fi | |
13067 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
13068 | ||
13069 | ||
13070 | if test -n "$READELF_FOR_TARGET"; then | |
13071 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13072 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13073 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13074 | fi | |
13075 | ||
13076 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13077 | for ncn_progname in readelf; do | |
13078 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13079 | set dummy ${ncn_progname}; ac_word=$2 | |
13080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13081 | $as_echo_n "checking for $ac_word... " >&6; } | |
13082 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13083 | $as_echo_n "(cached) " >&6 | |
13084 | else | |
13085 | if test -n "$READELF_FOR_TARGET"; then | |
13086 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13087 | else | |
13088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13089 | for as_dir in $PATH | |
13090 | do | |
13091 | IFS=$as_save_IFS | |
13092 | test -z "$as_dir" && as_dir=. | |
13093 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13094 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13095 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
13096 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13097 | break 2 | |
13098 | fi | |
13099 | done | |
13100 | done | |
13101 | IFS=$as_save_IFS | |
13102 | ||
13103 | fi | |
13104 | fi | |
13105 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13106 | if test -n "$READELF_FOR_TARGET"; then | |
13107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13108 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13109 | else | |
13110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13111 | $as_echo "no" >&6; } | |
13112 | fi | |
13113 | ||
13114 | ||
13115 | done | |
13116 | fi | |
13117 | ||
13118 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13119 | for ncn_progname in readelf; do | |
13120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13121 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13122 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13123 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13125 | $as_echo "yes" >&6; } | |
13126 | break | |
13127 | else | |
13128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13129 | $as_echo "no" >&6; } | |
13130 | fi | |
13131 | done | |
13132 | fi | |
13133 | ||
13134 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13135 | for ncn_progname in readelf; do | |
13136 | if test -n "$ncn_target_tool_prefix"; then | |
13137 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13138 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13140 | $as_echo_n "checking for $ac_word... " >&6; } | |
13141 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13142 | $as_echo_n "(cached) " >&6 | |
13143 | else | |
13144 | if test -n "$READELF_FOR_TARGET"; then | |
13145 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13146 | else | |
13147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13148 | for as_dir in $PATH | |
13149 | do | |
13150 | IFS=$as_save_IFS | |
13151 | test -z "$as_dir" && as_dir=. | |
13152 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13153 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13154 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
13155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13156 | break 2 | |
13157 | fi | |
13158 | done | |
13159 | done | |
13160 | IFS=$as_save_IFS | |
13161 | ||
13162 | fi | |
13163 | fi | |
13164 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13165 | if test -n "$READELF_FOR_TARGET"; then | |
13166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13167 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13168 | else | |
13169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13170 | $as_echo "no" >&6; } | |
13171 | fi | |
13172 | ||
13173 | ||
13174 | fi | |
13175 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
13176 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13177 | set dummy ${ncn_progname}; ac_word=$2 | |
13178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13179 | $as_echo_n "checking for $ac_word... " >&6; } | |
13180 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13181 | $as_echo_n "(cached) " >&6 | |
13182 | else | |
13183 | if test -n "$READELF_FOR_TARGET"; then | |
13184 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13185 | else | |
13186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13187 | for as_dir in $PATH | |
13188 | do | |
13189 | IFS=$as_save_IFS | |
13190 | test -z "$as_dir" && as_dir=. | |
13191 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13192 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13193 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
13194 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13195 | break 2 | |
13196 | fi | |
13197 | done | |
13198 | done | |
13199 | IFS=$as_save_IFS | |
13200 | ||
13201 | fi | |
13202 | fi | |
13203 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13204 | if test -n "$READELF_FOR_TARGET"; then | |
13205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13206 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13207 | else | |
13208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13209 | $as_echo "no" >&6; } | |
13210 | fi | |
13211 | ||
13212 | ||
13213 | fi | |
13214 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
13215 | done | |
13216 | fi | |
13217 | ||
13218 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
13219 | set dummy readelf | |
13220 | if test $build = $target ; then | |
13221 | READELF_FOR_TARGET="$2" | |
13222 | else | |
13223 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13224 | fi | |
13225 | else | |
13226 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13227 | fi | |
13228 | ||
13229 | else | |
13230 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13231 | fi | |
13232 | ||
13233 | ||
13234 | ||
13235 | ||
c47832b1 | 13236 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13237 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 13238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13239 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
ab0da556 | 13240 | if test -x $with_build_time_tools/strip; then |
13241 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13242 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
cd9a469c | 13243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13244 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
ab0da556 | 13245 | else |
cd9a469c | 13246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13247 | $as_echo "no" >&6; } | |
ab0da556 | 13248 | fi |
c47832b1 | 13249 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13250 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
b7ef8464 | 13251 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13252 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
c47832b1 | 13253 | fi |
13254 | fi | |
38d7211b | 13255 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 13256 | # Extract the first word of "strip", so it can be a program name with args. |
13257 | set dummy strip; ac_word=$2 | |
cd9a469c | 13258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13259 | $as_echo_n "checking for $ac_word... " >&6; } | |
13260 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
13261 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 13262 | else |
b30fcfae | 13263 | case $STRIP_FOR_TARGET in |
13264 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 13265 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13266 | ;; | |
c47832b1 | 13267 | *) |
b30fcfae | 13268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13269 | for as_dir in $gcc_cv_tool_dirs | |
13270 | do | |
13271 | IFS=$as_save_IFS | |
13272 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13273 | for ac_exec_ext in '' $ac_executable_extensions; do |
13274 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13275 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 13276 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13277 | break 2 |
13278 | fi | |
13279 | done | |
cd9a469c | 13280 | done |
13281 | IFS=$as_save_IFS | |
b30fcfae | 13282 | |
c47832b1 | 13283 | ;; |
13284 | esac | |
13285 | fi | |
b30fcfae | 13286 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
c47832b1 | 13287 | if test -n "$STRIP_FOR_TARGET"; then |
cd9a469c | 13288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13289 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
c47832b1 | 13290 | else |
cd9a469c | 13291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13292 | $as_echo "no" >&6; } | |
c47832b1 | 13293 | fi |
13294 | ||
cd9a469c | 13295 | |
c47832b1 | 13296 | fi |
13297 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
95a05732 | 13298 | |
13299 | ||
13300 | if test -n "$STRIP_FOR_TARGET"; then | |
13301 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13302 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13303 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13304 | fi | |
13305 | ||
13306 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13307 | for ncn_progname in strip; do | |
13308 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13309 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13311 | $as_echo_n "checking for $ac_word... " >&6; } | |
13312 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13313 | $as_echo_n "(cached) " >&6 | |
95a05732 | 13314 | else |
13315 | if test -n "$STRIP_FOR_TARGET"; then | |
13316 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13317 | else | |
13318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13319 | for as_dir in $PATH | |
13320 | do | |
13321 | IFS=$as_save_IFS | |
13322 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13323 | for ac_exec_ext in '' $ac_executable_extensions; do |
13324 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 13325 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13326 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 13327 | break 2 |
13328 | fi | |
13329 | done | |
cd9a469c | 13330 | done |
13331 | IFS=$as_save_IFS | |
95a05732 | 13332 | |
13333 | fi | |
13334 | fi | |
13335 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13336 | if test -n "$STRIP_FOR_TARGET"; then | |
cd9a469c | 13337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13338 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
95a05732 | 13339 | else |
cd9a469c | 13340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13341 | $as_echo "no" >&6; } | |
95a05732 | 13342 | fi |
13343 | ||
cd9a469c | 13344 | |
95a05732 | 13345 | done |
13346 | fi | |
13347 | ||
13348 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 13349 | for ncn_progname in strip; do |
cd9a469c | 13350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13351 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 13352 | if test -x $with_build_time_tools/${ncn_progname}; then |
13353 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 13354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13355 | $as_echo "yes" >&6; } | |
c47832b1 | 13356 | break |
13357 | else | |
cd9a469c | 13358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13359 | $as_echo "no" >&6; } | |
c47832b1 | 13360 | fi |
13361 | done | |
13362 | fi | |
13363 | ||
13364 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13365 | for ncn_progname in strip; do | |
13366 | if test -n "$ncn_target_tool_prefix"; then | |
13367 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 13368 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 13369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13370 | $as_echo_n "checking for $ac_word... " >&6; } | |
13371 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13372 | $as_echo_n "(cached) " >&6 | |
ae48753c | 13373 | else |
13374 | if test -n "$STRIP_FOR_TARGET"; then | |
b30fcfae | 13375 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
13376 | else | |
13377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13378 | for as_dir in $PATH | |
13379 | do | |
13380 | IFS=$as_save_IFS | |
13381 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13382 | for ac_exec_ext in '' $ac_executable_extensions; do |
13383 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13384 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 13385 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13386 | break 2 |
13387 | fi | |
13388 | done | |
cd9a469c | 13389 | done |
13390 | IFS=$as_save_IFS | |
b30fcfae | 13391 | |
9fec3fa8 | 13392 | fi |
13393 | fi | |
b30fcfae | 13394 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
9fec3fa8 | 13395 | if test -n "$STRIP_FOR_TARGET"; then |
cd9a469c | 13396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13397 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9fec3fa8 | 13398 | else |
cd9a469c | 13399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13400 | $as_echo "no" >&6; } | |
9fec3fa8 | 13401 | fi |
13402 | ||
cd9a469c | 13403 | |
c47832b1 | 13404 | fi |
13405 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13406 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 13407 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 13408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13409 | $as_echo_n "checking for $ac_word... " >&6; } | |
13410 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13411 | $as_echo_n "(cached) " >&6 | |
9fec3fa8 | 13412 | else |
13413 | if test -n "$STRIP_FOR_TARGET"; then | |
13414 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13415 | else | |
b30fcfae | 13416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13417 | for as_dir in $PATH | |
13418 | do | |
13419 | IFS=$as_save_IFS | |
13420 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13421 | for ac_exec_ext in '' $ac_executable_extensions; do |
13422 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13423 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13424 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13425 | break 2 |
13426 | fi | |
13427 | done | |
cd9a469c | 13428 | done |
13429 | IFS=$as_save_IFS | |
b30fcfae | 13430 | |
9fec3fa8 | 13431 | fi |
13432 | fi | |
b30fcfae | 13433 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
9fec3fa8 | 13434 | if test -n "$STRIP_FOR_TARGET"; then |
cd9a469c | 13435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13436 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9fec3fa8 | 13437 | else |
cd9a469c | 13438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13439 | $as_echo "no" >&6; } | |
9fec3fa8 | 13440 | fi |
b30fcfae | 13441 | |
cd9a469c | 13442 | |
c47832b1 | 13443 | fi |
13444 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13445 | done | |
13446 | fi | |
b30fcfae | 13447 | |
9fec3fa8 | 13448 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13449 | set dummy strip | |
13450 | if test $build = $target ; then | |
13451 | STRIP_FOR_TARGET="$2" | |
13452 | else | |
13453 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13454 | fi | |
b7ef8464 | 13455 | else |
13456 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
9fec3fa8 | 13457 | fi |
13458 | ||
ab0da556 | 13459 | else |
13460 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
c47832b1 | 13461 | fi |
13462 | ||
13463 | ||
13464 | ||
13465 | ||
13466 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13467 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 13468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13469 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
ab0da556 | 13470 | if test -x $with_build_time_tools/windres; then |
13471 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13472 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
cd9a469c | 13473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13474 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
ab0da556 | 13475 | else |
cd9a469c | 13476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13477 | $as_echo "no" >&6; } | |
ab0da556 | 13478 | fi |
c47832b1 | 13479 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13480 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
b7ef8464 | 13481 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13482 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
c47832b1 | 13483 | fi |
13484 | fi | |
38d7211b | 13485 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 13486 | # Extract the first word of "windres", so it can be a program name with args. |
13487 | set dummy windres; ac_word=$2 | |
cd9a469c | 13488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13489 | $as_echo_n "checking for $ac_word... " >&6; } | |
13490 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
13491 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 13492 | else |
b30fcfae | 13493 | case $WINDRES_FOR_TARGET in |
13494 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 13495 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13496 | ;; | |
c47832b1 | 13497 | *) |
b30fcfae | 13498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13499 | for as_dir in $gcc_cv_tool_dirs | |
13500 | do | |
13501 | IFS=$as_save_IFS | |
13502 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13503 | for ac_exec_ext in '' $ac_executable_extensions; do |
13504 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13505 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 13506 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13507 | break 2 |
13508 | fi | |
13509 | done | |
cd9a469c | 13510 | done |
13511 | IFS=$as_save_IFS | |
b30fcfae | 13512 | |
c47832b1 | 13513 | ;; |
13514 | esac | |
13515 | fi | |
b30fcfae | 13516 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
c47832b1 | 13517 | if test -n "$WINDRES_FOR_TARGET"; then |
cd9a469c | 13518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13519 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
c47832b1 | 13520 | else |
cd9a469c | 13521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13522 | $as_echo "no" >&6; } | |
c47832b1 | 13523 | fi |
13524 | ||
cd9a469c | 13525 | |
c47832b1 | 13526 | fi |
13527 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
95a05732 | 13528 | |
13529 | ||
13530 | if test -n "$WINDRES_FOR_TARGET"; then | |
13531 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13532 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13533 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13534 | fi | |
13535 | ||
13536 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13537 | for ncn_progname in windres; do | |
13538 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13539 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13541 | $as_echo_n "checking for $ac_word... " >&6; } | |
13542 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13543 | $as_echo_n "(cached) " >&6 | |
95a05732 | 13544 | else |
13545 | if test -n "$WINDRES_FOR_TARGET"; then | |
13546 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13547 | else | |
13548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13549 | for as_dir in $PATH | |
13550 | do | |
13551 | IFS=$as_save_IFS | |
13552 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13553 | for ac_exec_ext in '' $ac_executable_extensions; do |
13554 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 13555 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13556 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 13557 | break 2 |
13558 | fi | |
13559 | done | |
cd9a469c | 13560 | done |
13561 | IFS=$as_save_IFS | |
95a05732 | 13562 | |
13563 | fi | |
13564 | fi | |
13565 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13566 | if test -n "$WINDRES_FOR_TARGET"; then | |
cd9a469c | 13567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13568 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
95a05732 | 13569 | else |
cd9a469c | 13570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13571 | $as_echo "no" >&6; } | |
95a05732 | 13572 | fi |
13573 | ||
cd9a469c | 13574 | |
95a05732 | 13575 | done |
13576 | fi | |
13577 | ||
13578 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 13579 | for ncn_progname in windres; do |
cd9a469c | 13580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13581 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 13582 | if test -x $with_build_time_tools/${ncn_progname}; then |
13583 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 13584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13585 | $as_echo "yes" >&6; } | |
c47832b1 | 13586 | break |
13587 | else | |
cd9a469c | 13588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13589 | $as_echo "no" >&6; } | |
c47832b1 | 13590 | fi |
13591 | done | |
13592 | fi | |
13593 | ||
13594 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13595 | for ncn_progname in windres; do | |
13596 | if test -n "$ncn_target_tool_prefix"; then | |
13597 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 13598 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 13599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13600 | $as_echo_n "checking for $ac_word... " >&6; } | |
13601 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13602 | $as_echo_n "(cached) " >&6 | |
bb612911 | 13603 | else |
ef8184c7 | 13604 | if test -n "$WINDRES_FOR_TARGET"; then |
13605 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
bb612911 | 13606 | else |
b30fcfae | 13607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13608 | for as_dir in $PATH | |
13609 | do | |
13610 | IFS=$as_save_IFS | |
13611 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13612 | for ac_exec_ext in '' $ac_executable_extensions; do |
13613 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13614 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 13615 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13616 | break 2 |
13617 | fi | |
13618 | done | |
cd9a469c | 13619 | done |
13620 | IFS=$as_save_IFS | |
b30fcfae | 13621 | |
bb612911 | 13622 | fi |
13623 | fi | |
b30fcfae | 13624 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
ef8184c7 | 13625 | if test -n "$WINDRES_FOR_TARGET"; then |
cd9a469c | 13626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13627 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
bb612911 | 13628 | else |
cd9a469c | 13629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13630 | $as_echo "no" >&6; } | |
bb612911 | 13631 | fi |
13632 | ||
cd9a469c | 13633 | |
c47832b1 | 13634 | fi |
13635 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13636 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 13637 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 13638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13639 | $as_echo_n "checking for $ac_word... " >&6; } | |
13640 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13641 | $as_echo_n "(cached) " >&6 | |
bb612911 | 13642 | else |
768691b5 | 13643 | if test -n "$WINDRES_FOR_TARGET"; then |
13644 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
bb612911 | 13645 | else |
b30fcfae | 13646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13647 | for as_dir in $PATH | |
13648 | do | |
13649 | IFS=$as_save_IFS | |
13650 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13651 | for ac_exec_ext in '' $ac_executable_extensions; do |
13652 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 13653 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13654 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13655 | break 2 |
13656 | fi | |
13657 | done | |
cd9a469c | 13658 | done |
13659 | IFS=$as_save_IFS | |
b30fcfae | 13660 | |
bb612911 | 13661 | fi |
13662 | fi | |
b30fcfae | 13663 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
768691b5 | 13664 | if test -n "$WINDRES_FOR_TARGET"; then |
cd9a469c | 13665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13666 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
bb612911 | 13667 | else |
cd9a469c | 13668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13669 | $as_echo "no" >&6; } | |
bb612911 | 13670 | fi |
b30fcfae | 13671 | |
cd9a469c | 13672 | |
c47832b1 | 13673 | fi |
13674 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13675 | done | |
13676 | fi | |
b30fcfae | 13677 | |
768691b5 | 13678 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13679 | set dummy windres | |
13680 | if test $build = $target ; then | |
13681 | WINDRES_FOR_TARGET="$2" | |
bb612911 | 13682 | else |
768691b5 | 13683 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
bb612911 | 13684 | fi |
b7ef8464 | 13685 | else |
13686 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
bb612911 | 13687 | fi |
13688 | ||
ab0da556 | 13689 | else |
13690 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
c47832b1 | 13691 | fi |
13692 | ||
805e22b2 | 13693 | |
75d6a0a9 | 13694 | |
13695 | ||
13696 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13697 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 13698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13699 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
75d6a0a9 | 13700 | if test -x $with_build_time_tools/windmc; then |
13701 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13702 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
cd9a469c | 13703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13704 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13705 | else |
cd9a469c | 13706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13707 | $as_echo "no" >&6; } | |
75d6a0a9 | 13708 | fi |
13709 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13710 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
b7ef8464 | 13711 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
13712 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
75d6a0a9 | 13713 | fi |
13714 | fi | |
13715 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13716 | # Extract the first word of "windmc", so it can be a program name with args. | |
13717 | set dummy windmc; ac_word=$2 | |
cd9a469c | 13718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13719 | $as_echo_n "checking for $ac_word... " >&6; } | |
13720 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13721 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 13722 | else |
13723 | case $WINDMC_FOR_TARGET in | |
13724 | [\\/]* | ?:[\\/]*) | |
13725 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13726 | ;; | |
13727 | *) | |
13728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13729 | for as_dir in $gcc_cv_tool_dirs | |
13730 | do | |
13731 | IFS=$as_save_IFS | |
13732 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13733 | for ac_exec_ext in '' $ac_executable_extensions; do |
13734 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 13735 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 13736 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13737 | break 2 |
13738 | fi | |
13739 | done | |
cd9a469c | 13740 | done |
13741 | IFS=$as_save_IFS | |
75d6a0a9 | 13742 | |
13743 | ;; | |
13744 | esac | |
13745 | fi | |
13746 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
75d6a0a9 | 13747 | if test -n "$WINDMC_FOR_TARGET"; then |
cd9a469c | 13748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13749 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13750 | else |
cd9a469c | 13751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13752 | $as_echo "no" >&6; } | |
75d6a0a9 | 13753 | fi |
13754 | ||
cd9a469c | 13755 | |
75d6a0a9 | 13756 | fi |
13757 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13758 | ||
13759 | ||
13760 | if test -n "$WINDMC_FOR_TARGET"; then | |
13761 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13762 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13763 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13764 | fi | |
13765 | ||
13766 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13767 | for ncn_progname in windmc; do | |
13768 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13769 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13771 | $as_echo_n "checking for $ac_word... " >&6; } | |
13772 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13773 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 13774 | else |
13775 | if test -n "$WINDMC_FOR_TARGET"; then | |
13776 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13777 | else | |
13778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13779 | for as_dir in $PATH | |
13780 | do | |
13781 | IFS=$as_save_IFS | |
13782 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13783 | for ac_exec_ext in '' $ac_executable_extensions; do |
13784 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 13785 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13787 | break 2 |
13788 | fi | |
13789 | done | |
cd9a469c | 13790 | done |
13791 | IFS=$as_save_IFS | |
75d6a0a9 | 13792 | |
13793 | fi | |
13794 | fi | |
13795 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13796 | if test -n "$WINDMC_FOR_TARGET"; then | |
cd9a469c | 13797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13798 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13799 | else |
cd9a469c | 13800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13801 | $as_echo "no" >&6; } | |
75d6a0a9 | 13802 | fi |
13803 | ||
cd9a469c | 13804 | |
75d6a0a9 | 13805 | done |
13806 | fi | |
13807 | ||
13808 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13809 | for ncn_progname in windmc; do | |
cd9a469c | 13810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13811 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
75d6a0a9 | 13812 | if test -x $with_build_time_tools/${ncn_progname}; then |
13813 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 13814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13815 | $as_echo "yes" >&6; } | |
75d6a0a9 | 13816 | break |
13817 | else | |
cd9a469c | 13818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13819 | $as_echo "no" >&6; } | |
75d6a0a9 | 13820 | fi |
13821 | done | |
13822 | fi | |
13823 | ||
13824 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13825 | for ncn_progname in windmc; do | |
13826 | if test -n "$ncn_target_tool_prefix"; then | |
13827 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13828 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 13829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13830 | $as_echo_n "checking for $ac_word... " >&6; } | |
13831 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13832 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 13833 | else |
13834 | if test -n "$WINDMC_FOR_TARGET"; then | |
13835 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13836 | else | |
13837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13838 | for as_dir in $PATH | |
13839 | do | |
13840 | IFS=$as_save_IFS | |
13841 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13842 | for ac_exec_ext in '' $ac_executable_extensions; do |
13843 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 13844 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 13845 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13846 | break 2 |
13847 | fi | |
13848 | done | |
cd9a469c | 13849 | done |
13850 | IFS=$as_save_IFS | |
75d6a0a9 | 13851 | |
13852 | fi | |
13853 | fi | |
13854 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13855 | if test -n "$WINDMC_FOR_TARGET"; then | |
cd9a469c | 13856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13857 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13858 | else |
cd9a469c | 13859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13860 | $as_echo "no" >&6; } | |
75d6a0a9 | 13861 | fi |
13862 | ||
cd9a469c | 13863 | |
75d6a0a9 | 13864 | fi |
13865 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13866 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13867 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13869 | $as_echo_n "checking for $ac_word... " >&6; } | |
13870 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13871 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 13872 | else |
13873 | if test -n "$WINDMC_FOR_TARGET"; then | |
13874 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13875 | else | |
13876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13877 | for as_dir in $PATH | |
13878 | do | |
13879 | IFS=$as_save_IFS | |
13880 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13881 | for ac_exec_ext in '' $ac_executable_extensions; do |
13882 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 13883 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13885 | break 2 |
13886 | fi | |
13887 | done | |
cd9a469c | 13888 | done |
13889 | IFS=$as_save_IFS | |
75d6a0a9 | 13890 | |
13891 | fi | |
13892 | fi | |
13893 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13894 | if test -n "$WINDMC_FOR_TARGET"; then | |
cd9a469c | 13895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13896 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13897 | else |
cd9a469c | 13898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13899 | $as_echo "no" >&6; } | |
75d6a0a9 | 13900 | fi |
13901 | ||
cd9a469c | 13902 | |
75d6a0a9 | 13903 | fi |
13904 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13905 | done | |
13906 | fi | |
13907 | ||
13908 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13909 | set dummy windmc | |
13910 | if test $build = $target ; then | |
13911 | WINDMC_FOR_TARGET="$2" | |
13912 | else | |
13913 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13914 | fi | |
b7ef8464 | 13915 | else |
13916 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
75d6a0a9 | 13917 | fi |
13918 | ||
13919 | else | |
13920 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13921 | fi | |
13922 | ||
13923 | ||
f5aebe3e | 13924 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13925 | ||
cd9a469c | 13926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13927 | $as_echo_n "checking where to find the target ar... " >&6; } | |
f5aebe3e | 13928 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13929 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13930 | # We already found the complete path | |
a6c599b5 | 13931 | ac_dir=`dirname $AR_FOR_TARGET` |
cd9a469c | 13932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13933 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13934 | else |
13935 | # Canadian cross, just use what we found | |
cd9a469c | 13936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13937 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13938 | fi |
f5aebe3e | 13939 | else |
13940 | ok=yes | |
13941 | case " ${configdirs} " in | |
13942 | *" binutils "*) ;; | |
13943 | *) ok=no ;; | |
13944 | esac | |
b30fcfae | 13945 | |
f5aebe3e | 13946 | if test $ok = yes; then |
13947 | # An in-tree tool is available and we can use it | |
13948 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
cd9a469c | 13949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13950 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13951 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13952 | # We already found the complete path | |
a6c599b5 | 13953 | ac_dir=`dirname $AR_FOR_TARGET` |
cd9a469c | 13954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13955 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13956 | elif test "x$target" = "x$host"; then |
13957 | # We can use an host tool | |
13958 | AR_FOR_TARGET='$(AR)' | |
cd9a469c | 13959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13960 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13961 | else |
13962 | # We need a cross tool | |
cd9a469c | 13963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13964 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13965 | fi |
13966 | fi | |
a83ffacf | 13967 | |
cd9a469c | 13968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13969 | $as_echo_n "checking where to find the target as... " >&6; } | |
f5aebe3e | 13970 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13971 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13972 | # We already found the complete path | |
a6c599b5 | 13973 | ac_dir=`dirname $AS_FOR_TARGET` |
cd9a469c | 13974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13975 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13976 | else |
13977 | # Canadian cross, just use what we found | |
cd9a469c | 13978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13979 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13980 | fi |
f5aebe3e | 13981 | else |
13982 | ok=yes | |
13983 | case " ${configdirs} " in | |
13984 | *" gas "*) ;; | |
13985 | *) ok=no ;; | |
13986 | esac | |
b30fcfae | 13987 | |
f5aebe3e | 13988 | if test $ok = yes; then |
13989 | # An in-tree tool is available and we can use it | |
13990 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
cd9a469c | 13991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13992 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13993 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13994 | # We already found the complete path | |
a6c599b5 | 13995 | ac_dir=`dirname $AS_FOR_TARGET` |
cd9a469c | 13996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13997 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13998 | elif test "x$target" = "x$host"; then |
13999 | # We can use an host tool | |
14000 | AS_FOR_TARGET='$(AS)' | |
cd9a469c | 14001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14002 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14003 | else |
14004 | # We need a cross tool | |
cd9a469c | 14005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14006 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14007 | fi |
14008 | fi | |
a83ffacf | 14009 | |
cd9a469c | 14010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
14011 | $as_echo_n "checking where to find the target cc... " >&6; } | |
f5aebe3e | 14012 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14013 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14014 | # We already found the complete path | |
a6c599b5 | 14015 | ac_dir=`dirname $CC_FOR_TARGET` |
cd9a469c | 14016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14017 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14018 | else |
14019 | # Canadian cross, just use what we found | |
cd9a469c | 14020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14021 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14022 | fi |
f5aebe3e | 14023 | else |
14024 | ok=yes | |
14025 | case " ${configdirs} " in | |
14026 | *" gcc "*) ;; | |
14027 | *) ok=no ;; | |
14028 | esac | |
b30fcfae | 14029 | |
f5aebe3e | 14030 | if test $ok = yes; then |
14031 | # An in-tree tool is available and we can use it | |
14032 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 14033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14034 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14035 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14036 | # We already found the complete path | |
a6c599b5 | 14037 | ac_dir=`dirname $CC_FOR_TARGET` |
cd9a469c | 14038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14039 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14040 | elif test "x$target" = "x$host"; then |
14041 | # We can use an host tool | |
14042 | CC_FOR_TARGET='$(CC)' | |
cd9a469c | 14043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14044 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14045 | else |
14046 | # We need a cross tool | |
cd9a469c | 14047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14048 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14049 | fi |
14050 | fi | |
a83ffacf | 14051 | |
cd9a469c | 14052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
14053 | $as_echo_n "checking where to find the target c++... " >&6; } | |
f5aebe3e | 14054 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14055 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14056 | # We already found the complete path | |
a6c599b5 | 14057 | ac_dir=`dirname $CXX_FOR_TARGET` |
cd9a469c | 14058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14059 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14060 | else |
14061 | # Canadian cross, just use what we found | |
cd9a469c | 14062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14063 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14064 | fi |
f5aebe3e | 14065 | else |
14066 | ok=yes | |
14067 | case " ${configdirs} " in | |
14068 | *" gcc "*) ;; | |
14069 | *) ok=no ;; | |
14070 | esac | |
14071 | case ,${enable_languages}, in | |
14072 | *,c++,*) ;; | |
14073 | *) ok=no ;; | |
14074 | esac | |
14075 | if test $ok = yes; then | |
14076 | # An in-tree tool is available and we can use it | |
b710ec85 | 14077 | 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 | 14078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14079 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14080 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14081 | # We already found the complete path | |
a6c599b5 | 14082 | ac_dir=`dirname $CXX_FOR_TARGET` |
cd9a469c | 14083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14084 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14085 | elif test "x$target" = "x$host"; then |
14086 | # We can use an host tool | |
14087 | CXX_FOR_TARGET='$(CXX)' | |
cd9a469c | 14088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14089 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14090 | else |
14091 | # We need a cross tool | |
cd9a469c | 14092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14093 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14094 | fi |
14095 | fi | |
a83ffacf | 14096 | |
cd9a469c | 14097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
14098 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
f5aebe3e | 14099 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14100 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14101 | # We already found the complete path | |
a6c599b5 | 14102 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
cd9a469c | 14103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14104 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14105 | else |
14106 | # Canadian cross, just use what we found | |
cd9a469c | 14107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14108 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14109 | fi |
f5aebe3e | 14110 | else |
14111 | ok=yes | |
14112 | case " ${configdirs} " in | |
14113 | *" gcc "*) ;; | |
14114 | *) ok=no ;; | |
14115 | esac | |
14116 | case ,${enable_languages}, in | |
14117 | *,c++,*) ;; | |
14118 | *) ok=no ;; | |
14119 | esac | |
14120 | if test $ok = yes; then | |
14121 | # An in-tree tool is available and we can use it | |
b710ec85 | 14122 | 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 | 14123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14124 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14125 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14126 | # We already found the complete path | |
a6c599b5 | 14127 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
cd9a469c | 14128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14129 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14130 | elif test "x$target" = "x$host"; then |
14131 | # We can use an host tool | |
14132 | RAW_CXX_FOR_TARGET='$(CXX)' | |
cd9a469c | 14133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14134 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14135 | else |
14136 | # We need a cross tool | |
cd9a469c | 14137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14138 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14139 | fi |
14140 | fi | |
a83ffacf | 14141 | |
cd9a469c | 14142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
14143 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
f5aebe3e | 14144 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14145 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14146 | # We already found the complete path | |
a6c599b5 | 14147 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
cd9a469c | 14148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14149 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14150 | else |
14151 | # Canadian cross, just use what we found | |
cd9a469c | 14152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14153 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14154 | fi |
f5aebe3e | 14155 | else |
14156 | ok=yes | |
14157 | case " ${configdirs} " in | |
14158 | *" binutils "*) ;; | |
14159 | *) ok=no ;; | |
14160 | esac | |
b30fcfae | 14161 | |
f5aebe3e | 14162 | if test $ok = yes; then |
14163 | # An in-tree tool is available and we can use it | |
14164 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
cd9a469c | 14165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14166 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14167 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14168 | # We already found the complete path | |
a6c599b5 | 14169 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
cd9a469c | 14170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14171 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14172 | elif test "x$target" = "x$host"; then |
14173 | # We can use an host tool | |
14174 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
cd9a469c | 14175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14176 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14177 | else |
14178 | # We need a cross tool | |
cd9a469c | 14179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14180 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14181 | fi |
14182 | fi | |
a83ffacf | 14183 | |
cd9a469c | 14184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
14185 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
f5aebe3e | 14186 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14187 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14188 | # We already found the complete path | |
a6c599b5 | 14189 | ac_dir=`dirname $GCC_FOR_TARGET` |
cd9a469c | 14190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14191 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14192 | else |
14193 | # Canadian cross, just use what we found | |
cd9a469c | 14194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14195 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14196 | fi |
f5aebe3e | 14197 | else |
14198 | ok=yes | |
14199 | case " ${configdirs} " in | |
14200 | *" gcc "*) ;; | |
14201 | *) ok=no ;; | |
14202 | esac | |
b30fcfae | 14203 | |
f5aebe3e | 14204 | if test $ok = yes; then |
14205 | # An in-tree tool is available and we can use it | |
14206 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 14207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14208 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14209 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14210 | # We already found the complete path | |
a6c599b5 | 14211 | ac_dir=`dirname $GCC_FOR_TARGET` |
cd9a469c | 14212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14213 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14214 | elif test "x$target" = "x$host"; then |
14215 | # We can use an host tool | |
14216 | GCC_FOR_TARGET='$()' | |
cd9a469c | 14217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14218 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14219 | else |
14220 | # We need a cross tool | |
cd9a469c | 14221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14222 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14223 | fi |
14224 | fi | |
a83ffacf | 14225 | |
cd9a469c | 14226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
14227 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
f5aebe3e | 14228 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14229 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14230 | # We already found the complete path | |
a6c599b5 | 14231 | ac_dir=`dirname $GCJ_FOR_TARGET` |
cd9a469c | 14232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14233 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14234 | else |
14235 | # Canadian cross, just use what we found | |
cd9a469c | 14236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14237 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14238 | fi |
f5aebe3e | 14239 | else |
14240 | ok=yes | |
14241 | case " ${configdirs} " in | |
14242 | *" gcc "*) ;; | |
14243 | *) ok=no ;; | |
14244 | esac | |
14245 | case ,${enable_languages}, in | |
14246 | *,java,*) ;; | |
14247 | *) ok=no ;; | |
14248 | esac | |
14249 | if test $ok = yes; then | |
14250 | # An in-tree tool is available and we can use it | |
14251 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 14252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14253 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14254 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14255 | # We already found the complete path | |
a6c599b5 | 14256 | ac_dir=`dirname $GCJ_FOR_TARGET` |
cd9a469c | 14257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14258 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14259 | elif test "x$target" = "x$host"; then |
14260 | # We can use an host tool | |
14261 | GCJ_FOR_TARGET='$(GCJ)' | |
cd9a469c | 14262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14263 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14264 | else |
14265 | # We need a cross tool | |
cd9a469c | 14266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14267 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14268 | fi |
14269 | fi | |
a83ffacf | 14270 | |
cd9a469c | 14271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14272 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
f5aebe3e | 14273 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14274 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14275 | # We already found the complete path | |
a6c599b5 | 14276 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
cd9a469c | 14277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14278 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14279 | else |
14280 | # Canadian cross, just use what we found | |
cd9a469c | 14281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14282 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14283 | fi |
f5aebe3e | 14284 | else |
14285 | ok=yes | |
14286 | case " ${configdirs} " in | |
14287 | *" gcc "*) ;; | |
14288 | *) ok=no ;; | |
14289 | esac | |
14290 | case ,${enable_languages}, in | |
14291 | *,fortran,*) ;; | |
14292 | *) ok=no ;; | |
14293 | esac | |
14294 | if test $ok = yes; then | |
14295 | # An in-tree tool is available and we can use it | |
14296 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 14297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14298 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14299 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14300 | # We already found the complete path | |
a6c599b5 | 14301 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
cd9a469c | 14302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14303 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14304 | elif test "x$target" = "x$host"; then |
14305 | # We can use an host tool | |
14306 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
cd9a469c | 14307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14308 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14309 | else |
14310 | # We need a cross tool | |
cd9a469c | 14311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14312 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14313 | fi |
14314 | fi | |
a83ffacf | 14315 | |
5ff5b630 | 14316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14317 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14318 | if test "x${build}" != "x${host}" ; then | |
14319 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14320 | # We already found the complete path | |
14321 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14323 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14324 | else | |
14325 | # Canadian cross, just use what we found | |
14326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14327 | $as_echo "pre-installed" >&6; } | |
14328 | fi | |
14329 | else | |
14330 | ok=yes | |
14331 | case " ${configdirs} " in | |
14332 | *" gcc "*) ;; | |
14333 | *) ok=no ;; | |
14334 | esac | |
14335 | case ,${enable_languages}, in | |
14336 | *,go,*) ;; | |
14337 | *) ok=no ;; | |
14338 | esac | |
14339 | if test $ok = yes; then | |
14340 | # An in-tree tool is available and we can use it | |
14341 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14343 | $as_echo "just compiled" >&6; } | |
14344 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14345 | # We already found the complete path | |
14346 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14348 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14349 | elif test "x$target" = "x$host"; then | |
14350 | # We can use an host tool | |
14351 | GOC_FOR_TARGET='$(GOC)' | |
14352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14353 | $as_echo "host tool" >&6; } | |
14354 | else | |
14355 | # We need a cross tool | |
14356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14357 | $as_echo "pre-installed" >&6; } | |
14358 | fi | |
14359 | fi | |
14360 | ||
cd9a469c | 14361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14362 | $as_echo_n "checking where to find the target ld... " >&6; } | |
f5aebe3e | 14363 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14364 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14365 | # We already found the complete path | |
a6c599b5 | 14366 | ac_dir=`dirname $LD_FOR_TARGET` |
cd9a469c | 14367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14368 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14369 | else |
14370 | # Canadian cross, just use what we found | |
cd9a469c | 14371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14372 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14373 | fi |
f5aebe3e | 14374 | else |
14375 | ok=yes | |
14376 | case " ${configdirs} " in | |
14377 | *" ld "*) ;; | |
14378 | *) ok=no ;; | |
14379 | esac | |
b30fcfae | 14380 | |
f5aebe3e | 14381 | if test $ok = yes; then |
14382 | # An in-tree tool is available and we can use it | |
14383 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
cd9a469c | 14384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14385 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14386 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14387 | # We already found the complete path | |
a6c599b5 | 14388 | ac_dir=`dirname $LD_FOR_TARGET` |
cd9a469c | 14389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14390 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14391 | elif test "x$target" = "x$host"; then |
14392 | # We can use an host tool | |
14393 | LD_FOR_TARGET='$(LD)' | |
cd9a469c | 14394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14395 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14396 | else |
14397 | # We need a cross tool | |
cd9a469c | 14398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14399 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14400 | fi |
14401 | fi | |
a83ffacf | 14402 | |
cd9a469c | 14403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14404 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
f5aebe3e | 14405 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14406 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14407 | # We already found the complete path | |
a6c599b5 | 14408 | ac_dir=`dirname $LIPO_FOR_TARGET` |
cd9a469c | 14409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14410 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14411 | else |
14412 | # Canadian cross, just use what we found | |
cd9a469c | 14413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14414 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14415 | fi |
f5aebe3e | 14416 | else |
c47832b1 | 14417 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14418 | # We already found the complete path | |
a6c599b5 | 14419 | ac_dir=`dirname $LIPO_FOR_TARGET` |
cd9a469c | 14420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14421 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14422 | elif test "x$target" = "x$host"; then |
f5aebe3e | 14423 | # We can use an host tool |
14424 | LIPO_FOR_TARGET='$(LIPO)' | |
cd9a469c | 14425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14426 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14427 | else |
14428 | # We need a cross tool | |
cd9a469c | 14429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14430 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14431 | fi |
14432 | fi | |
a83ffacf | 14433 | |
cd9a469c | 14434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14435 | $as_echo_n "checking where to find the target nm... " >&6; } | |
f5aebe3e | 14436 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14437 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14438 | # We already found the complete path | |
a6c599b5 | 14439 | ac_dir=`dirname $NM_FOR_TARGET` |
cd9a469c | 14440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14441 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14442 | else |
14443 | # Canadian cross, just use what we found | |
cd9a469c | 14444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14445 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14446 | fi |
f5aebe3e | 14447 | else |
14448 | ok=yes | |
14449 | case " ${configdirs} " in | |
14450 | *" binutils "*) ;; | |
14451 | *) ok=no ;; | |
14452 | esac | |
b30fcfae | 14453 | |
f5aebe3e | 14454 | if test $ok = yes; then |
14455 | # An in-tree tool is available and we can use it | |
14456 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
cd9a469c | 14457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14458 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14459 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14460 | # We already found the complete path | |
a6c599b5 | 14461 | ac_dir=`dirname $NM_FOR_TARGET` |
cd9a469c | 14462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14463 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14464 | elif test "x$target" = "x$host"; then |
14465 | # We can use an host tool | |
14466 | NM_FOR_TARGET='$(NM)' | |
cd9a469c | 14467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14468 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14469 | else |
14470 | # We need a cross tool | |
cd9a469c | 14471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14472 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14473 | fi |
14474 | fi | |
a83ffacf | 14475 | |
fc740d70 | 14476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14477 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14478 | if test "x${build}" != "x${host}" ; then | |
14479 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14480 | # We already found the complete path | |
14481 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14483 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14484 | else | |
14485 | # Canadian cross, just use what we found | |
14486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14487 | $as_echo "pre-installed" >&6; } | |
14488 | fi | |
14489 | else | |
14490 | ok=yes | |
14491 | case " ${configdirs} " in | |
14492 | *" binutils "*) ;; | |
14493 | *) ok=no ;; | |
14494 | esac | |
14495 | ||
14496 | if test $ok = yes; then | |
14497 | # An in-tree tool is available and we can use it | |
14498 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14500 | $as_echo "just compiled" >&6; } | |
14501 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14502 | # We already found the complete path | |
14503 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14505 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14506 | elif test "x$target" = "x$host"; then | |
14507 | # We can use an host tool | |
9b31ae9c | 14508 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
fc740d70 | 14509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14510 | $as_echo "host tool" >&6; } | |
14511 | else | |
14512 | # We need a cross tool | |
14513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14514 | $as_echo "pre-installed" >&6; } | |
14515 | fi | |
14516 | fi | |
14517 | ||
cd9a469c | 14518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14519 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
f5aebe3e | 14520 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14521 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14522 | # We already found the complete path | |
a6c599b5 | 14523 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
cd9a469c | 14524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14525 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14526 | else |
14527 | # Canadian cross, just use what we found | |
cd9a469c | 14528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14529 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14530 | fi |
f5aebe3e | 14531 | else |
14532 | ok=yes | |
14533 | case " ${configdirs} " in | |
14534 | *" binutils "*) ;; | |
14535 | *) ok=no ;; | |
14536 | esac | |
b30fcfae | 14537 | |
f5aebe3e | 14538 | if test $ok = yes; then |
14539 | # An in-tree tool is available and we can use it | |
14540 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
cd9a469c | 14541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14542 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14543 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14544 | # We already found the complete path | |
a6c599b5 | 14545 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
cd9a469c | 14546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14547 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14548 | elif test "x$target" = "x$host"; then |
14549 | # We can use an host tool | |
14550 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
cd9a469c | 14551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14552 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14553 | else |
14554 | # We need a cross tool | |
cd9a469c | 14555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14556 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14557 | fi |
14558 | fi | |
a83ffacf | 14559 | |
cd9a469c | 14560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14561 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
f5aebe3e | 14562 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14563 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14564 | # We already found the complete path | |
a6c599b5 | 14565 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
cd9a469c | 14566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14567 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14568 | else |
14569 | # Canadian cross, just use what we found | |
cd9a469c | 14570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14571 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14572 | fi |
f5aebe3e | 14573 | else |
14574 | ok=yes | |
14575 | case " ${configdirs} " in | |
14576 | *" binutils "*) ;; | |
14577 | *) ok=no ;; | |
14578 | esac | |
b30fcfae | 14579 | |
f5aebe3e | 14580 | if test $ok = yes; then |
14581 | # An in-tree tool is available and we can use it | |
14582 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
cd9a469c | 14583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14584 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14585 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14586 | # We already found the complete path | |
a6c599b5 | 14587 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
cd9a469c | 14588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14589 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14590 | elif test "x$target" = "x$host"; then |
14591 | # We can use an host tool | |
14592 | RANLIB_FOR_TARGET='$(RANLIB)' | |
cd9a469c | 14593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14594 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14595 | else |
14596 | # We need a cross tool | |
cd9a469c | 14597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14598 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14599 | fi |
14600 | fi | |
a83ffacf | 14601 | |
3f71364d | 14602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14603 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14604 | if test "x${build}" != "x${host}" ; then | |
14605 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14606 | # We already found the complete path | |
14607 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14609 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14610 | else | |
14611 | # Canadian cross, just use what we found | |
14612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14613 | $as_echo "pre-installed" >&6; } | |
14614 | fi | |
14615 | else | |
14616 | ok=yes | |
14617 | case " ${configdirs} " in | |
14618 | *" binutils "*) ;; | |
14619 | *) ok=no ;; | |
14620 | esac | |
14621 | ||
14622 | if test $ok = yes; then | |
14623 | # An in-tree tool is available and we can use it | |
14624 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14626 | $as_echo "just compiled" >&6; } | |
14627 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14628 | # We already found the complete path | |
14629 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14631 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14632 | elif test "x$target" = "x$host"; then | |
14633 | # We can use an host tool | |
14634 | READELF_FOR_TARGET='$(READELF)' | |
14635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14636 | $as_echo "host tool" >&6; } | |
14637 | else | |
14638 | # We need a cross tool | |
14639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14640 | $as_echo "pre-installed" >&6; } | |
14641 | fi | |
14642 | fi | |
14643 | ||
cd9a469c | 14644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14645 | $as_echo_n "checking where to find the target strip... " >&6; } | |
f5aebe3e | 14646 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14647 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14648 | # We already found the complete path | |
a6c599b5 | 14649 | ac_dir=`dirname $STRIP_FOR_TARGET` |
cd9a469c | 14650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14651 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14652 | else |
14653 | # Canadian cross, just use what we found | |
cd9a469c | 14654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14655 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14656 | fi |
f5aebe3e | 14657 | else |
14658 | ok=yes | |
14659 | case " ${configdirs} " in | |
14660 | *" binutils "*) ;; | |
14661 | *) ok=no ;; | |
14662 | esac | |
b30fcfae | 14663 | |
f5aebe3e | 14664 | if test $ok = yes; then |
14665 | # An in-tree tool is available and we can use it | |
2b7a4d59 | 14666 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
cd9a469c | 14667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14668 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14669 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14670 | # We already found the complete path | |
a6c599b5 | 14671 | ac_dir=`dirname $STRIP_FOR_TARGET` |
cd9a469c | 14672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14673 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14674 | elif test "x$target" = "x$host"; then |
14675 | # We can use an host tool | |
14676 | STRIP_FOR_TARGET='$(STRIP)' | |
cd9a469c | 14677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14678 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14679 | else |
14680 | # We need a cross tool | |
cd9a469c | 14681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14682 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14683 | fi |
14684 | fi | |
a83ffacf | 14685 | |
cd9a469c | 14686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14687 | $as_echo_n "checking where to find the target windres... " >&6; } | |
f5aebe3e | 14688 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14689 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14690 | # We already found the complete path | |
a6c599b5 | 14691 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
cd9a469c | 14692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14693 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14694 | else |
14695 | # Canadian cross, just use what we found | |
cd9a469c | 14696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14697 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14698 | fi |
f5aebe3e | 14699 | else |
14700 | ok=yes | |
14701 | case " ${configdirs} " in | |
14702 | *" binutils "*) ;; | |
14703 | *) ok=no ;; | |
14704 | esac | |
b30fcfae | 14705 | |
f5aebe3e | 14706 | if test $ok = yes; then |
14707 | # An in-tree tool is available and we can use it | |
14708 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
cd9a469c | 14709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14710 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14711 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14712 | # We already found the complete path | |
a6c599b5 | 14713 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
cd9a469c | 14714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14715 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14716 | elif test "x$target" = "x$host"; then |
14717 | # We can use an host tool | |
14718 | WINDRES_FOR_TARGET='$(WINDRES)' | |
cd9a469c | 14719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14720 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14721 | else |
14722 | # We need a cross tool | |
cd9a469c | 14723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14724 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14725 | fi |
71ab34df | 14726 | fi |
49aae208 | 14727 | |
cd9a469c | 14728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14729 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
75d6a0a9 | 14730 | if test "x${build}" != "x${host}" ; then |
14731 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14732 | # We already found the complete path | |
14733 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
cd9a469c | 14734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14735 | $as_echo "pre-installed in $ac_dir" >&6; } | |
75d6a0a9 | 14736 | else |
14737 | # Canadian cross, just use what we found | |
cd9a469c | 14738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14739 | $as_echo "pre-installed" >&6; } | |
75d6a0a9 | 14740 | fi |
14741 | else | |
14742 | ok=yes | |
14743 | case " ${configdirs} " in | |
14744 | *" binutils "*) ;; | |
14745 | *) ok=no ;; | |
14746 | esac | |
14747 | ||
14748 | if test $ok = yes; then | |
14749 | # An in-tree tool is available and we can use it | |
14750 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
cd9a469c | 14751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14752 | $as_echo "just compiled" >&6; } | |
75d6a0a9 | 14753 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14754 | # We already found the complete path | |
14755 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
cd9a469c | 14756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14757 | $as_echo "pre-installed in $ac_dir" >&6; } | |
75d6a0a9 | 14758 | elif test "x$target" = "x$host"; then |
14759 | # We can use an host tool | |
14760 | WINDMC_FOR_TARGET='$(WINDMC)' | |
cd9a469c | 14761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14762 | $as_echo "host tool" >&6; } | |
75d6a0a9 | 14763 | else |
14764 | # We need a cross tool | |
cd9a469c | 14765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14766 | $as_echo "pre-installed" >&6; } | |
75d6a0a9 | 14767 | fi |
14768 | fi | |
14769 | ||
49aae208 | 14770 | |
14771 | ||
f5aebe3e | 14772 | |
a83ffacf | 14773 | |
71ab34df | 14774 | # Certain tools may need extra flags. |
14775 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14776 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14777 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14778 | ||
f5aebe3e | 14779 | # When building target libraries, except in a Canadian cross, we use |
14780 | # the same toolchain as the compiler we just built. | |
14781 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14782 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14783 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14784 | if test $host = $build; then | |
14785 | case " $configdirs " in | |
14786 | *" gcc "*) | |
14787 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14788 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14789 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14790 | ;; | |
14791 | esac | |
14792 | fi | |
14793 | ||
14794 | ||
14795 | ||
14796 | ||
14797 | ||
cd9a469c | 14798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14799 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14800 | # Check whether --enable-maintainer-mode was given. | |
14801 | if test "${enable_maintainer_mode+set}" = set; then : | |
14802 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3290c0cf | 14803 | else |
14804 | USE_MAINTAINER_MODE=no | |
cd9a469c | 14805 | fi |
14806 | ||
14807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14808 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3290c0cf | 14809 | |
14810 | ||
14811 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14812 | MAINTAINER_MODE_TRUE= | |
14813 | MAINTAINER_MODE_FALSE='#' | |
14814 | else | |
14815 | MAINTAINER_MODE_TRUE='#' | |
14816 | MAINTAINER_MODE_FALSE= | |
b30fcfae | 14817 | fi |
3290c0cf | 14818 | MAINT=$MAINTAINER_MODE_TRUE |
14819 | ||
2d64c2fd | 14820 | # --------------------- |
14821 | # GCC bootstrap support | |
14822 | # --------------------- | |
14823 | ||
14824 | # Stage specific cflags for build. | |
14825 | stage1_cflags="-g" | |
14826 | case $build in | |
14827 | vax-*-*) | |
14828 | case ${GCC} in | |
14829 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14830 | *) stage1_cflags="-g -J" ;; | |
14831 | esac ;; | |
2d64c2fd | 14832 | esac |
14833 | ||
f508ba97 | 14834 | |
2d64c2fd | 14835 | |
39f34cfc | 14836 | # Enable --enable-checking in stage1 of the compiler. |
cd9a469c | 14837 | # Check whether --enable-stage1-checking was given. |
14838 | if test "${enable_stage1_checking+set}" = set; then : | |
14839 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
39f34cfc | 14840 | else |
f6be6a96 | 14841 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
868af6b6 | 14842 | # For --disable-checking or implicit --enable-checking=release, avoid |
14843 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
14844 | # bootstraps. See PR62077. | |
868af6b6 | 14845 | case $BUILD_CONFIG in |
14846 | *lto*) | |
c05979a1 | 14847 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
14848 | *) | |
14849 | stage1_checking=--enable-checking=yes,types;; | |
868af6b6 | 14850 | esac |
c05979a1 | 14851 | if test "x$enable_checking" = x && \ |
14852 | test -d ${srcdir}/gcc && \ | |
14853 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
bee4f5e5 | 14854 | stage1_checking=--enable-checking=yes,types,extra |
c05979a1 | 14855 | fi |
39f34cfc | 14856 | else |
f6be6a96 | 14857 | stage1_checking=--enable-checking=$enable_checking,types |
39f34cfc | 14858 | fi |
cd9a469c | 14859 | fi |
39f34cfc | 14860 | |
14861 | ||
5084f823 | 14862 | |
cd9a469c | 14863 | # Enable -Werror in bootstrap stage2 and later. |
14864 | # Check whether --enable-werror was given. | |
14865 | if test "${enable_werror+set}" = set; then : | |
14866 | enableval=$enable_werror; | |
2d64c2fd | 14867 | else |
dd979235 | 14868 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
2d64c2fd | 14869 | enable_werror=yes |
dc914c6d | 14870 | else |
14871 | enable_werror=no | |
14872 | fi | |
cd9a469c | 14873 | fi |
14874 | ||
c0c5068d | 14875 | case ${enable_werror} in |
14876 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14877 | *) stage2_werror_flag="" ;; | |
2d64c2fd | 14878 | esac |
14879 | ||
14880 | ||
2bd17377 | 14881 | # Enable --enable-host-shared. |
14882 | # Check whether --enable-host-shared was given. | |
14883 | if test "${enable_host_shared+set}" = set; then : | |
14884 | enableval=$enable_host_shared; host_shared=$enableval | |
14885 | else | |
14886 | host_shared=no | |
14887 | fi | |
14888 | ||
14889 | ||
14890 | ||
5c524c74 | 14891 | # PR jit/64780: Require the user to explicitly specify |
14892 | # --enable-host-shared if the jit is enabled, hinting | |
14893 | # that they might want to do a separate configure/build of | |
14894 | # the jit, to avoid users from slowing down the rest of the | |
14895 | # compiler by enabling the jit. | |
14896 | if test ${host_shared} = "no" ; then | |
14897 | case "${enable_languages}" in | |
14898 | *jit*) | |
14899 | as_fn_error " | |
14900 | Enabling language \"jit\" requires --enable-host-shared. | |
14901 | ||
14902 | --enable-host-shared typically slows the rest of the compiler down by | |
14903 | a few %, so you must explicitly enable it. | |
14904 | ||
14905 | If you want to build both the jit and the regular compiler, it is often | |
14906 | best to do this via two separate configure/builds, in separate | |
14907 | directories, to avoid imposing the performance cost of | |
14908 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
14909 | ;; | |
14910 | *) | |
14911 | ;; | |
14912 | esac | |
14913 | fi | |
14914 | ||
6fe86052 | 14915 | # Specify what files to not compare during bootstrap. |
14916 | ||
14917 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14918 | case "$target" in | |
14919 | hppa*64*-*-hpux*) ;; | |
14920 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
62f0972f | 14921 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
6fe86052 | 14922 | esac |
14923 | ||
14924 | ||
cd9a469c | 14925 | ac_config_files="$ac_config_files Makefile" |
14926 | ||
b30fcfae | 14927 | cat >confcache <<\_ACEOF |
71ab34df | 14928 | # This file is a shell script that caches the results of configure |
14929 | # tests run on this system so they can be shared between configure | |
b30fcfae | 14930 | # scripts and configure runs, see configure's option --config-cache. |
14931 | # It is not useful on other systems. If it contains results you don't | |
14932 | # want to keep, you may remove or edit it. | |
71ab34df | 14933 | # |
b30fcfae | 14934 | # config.status only pays attention to the cache file if you give it |
14935 | # the --recheck option to rerun configure. | |
71ab34df | 14936 | # |
b30fcfae | 14937 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14938 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14939 | # following values. | |
14940 | ||
14941 | _ACEOF | |
14942 | ||
71ab34df | 14943 | # The following way of writing the cache mishandles newlines in values, |
14944 | # but we know of no workaround that is simple, portable, and efficient. | |
cd9a469c | 14945 | # So, we kill variables containing newlines. |
71ab34df | 14946 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14947 | # and sets the high bit in the cache file unless we assign to the vars. | |
cd9a469c | 14948 | ( |
14949 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14950 | eval ac_val=\$$ac_var | |
14951 | case $ac_val in #( | |
14952 | *${as_nl}*) | |
14953 | case $ac_var in #( | |
14954 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14955 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14956 | esac | |
14957 | case $ac_var in #( | |
14958 | _ | IFS | as_nl) ;; #( | |
14959 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14960 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14961 | esac ;; | |
14962 | esac | |
14963 | done | |
14964 | ||
b30fcfae | 14965 | (set) 2>&1 | |
cd9a469c | 14966 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14967 | *${as_nl}ac_space=\ *) | |
14968 | # `set' does not quote correctly, so add quotes: double-quote | |
14969 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b30fcfae | 14970 | sed -n \ |
14971 | "s/'/'\\\\''/g; | |
14972 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
cd9a469c | 14973 | ;; #( |
b30fcfae | 14974 | *) |
14975 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
cd9a469c | 14976 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b30fcfae | 14977 | ;; |
cd9a469c | 14978 | esac | |
14979 | sort | |
14980 | ) | | |
b30fcfae | 14981 | sed ' |
cd9a469c | 14982 | /^ac_cv_env_/b end |
b30fcfae | 14983 | t clear |
cd9a469c | 14984 | :clear |
b30fcfae | 14985 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14986 | t end | |
cd9a469c | 14987 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14988 | :end' >>confcache | |
14989 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14990 | if test -w "$cache_file"; then | |
14991 | test "x$cache_file" != "x/dev/null" && | |
14992 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14993 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
b30fcfae | 14994 | cat confcache >$cache_file |
71ab34df | 14995 | else |
cd9a469c | 14996 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14997 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
71ab34df | 14998 | fi |
805e22b2 | 14999 | fi |
71ab34df | 15000 | rm -f confcache |
a8298541 | 15001 | |
71ab34df | 15002 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15003 | # Let make expand exec_prefix. | |
15004 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
92424a17 | 15005 | |
71ab34df | 15006 | # Transform confdefs.h into DEFS. |
15007 | # Protect against shell expansion while executing Makefile rules. | |
15008 | # Protect against Makefile macro expansion. | |
b30fcfae | 15009 | # |
15010 | # If the first sed substitution is executed (which looks for macros that | |
cd9a469c | 15011 | # take arguments), then branch to the quote section. Otherwise, |
b30fcfae | 15012 | # look for a macro that doesn't take arguments. |
cd9a469c | 15013 | ac_script=' |
15014 | :mline | |
15015 | /\\$/{ | |
15016 | N | |
15017 | s,\\\n,, | |
15018 | b mline | |
15019 | } | |
b30fcfae | 15020 | t clear |
cd9a469c | 15021 | :clear |
15022 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
b30fcfae | 15023 | t quote |
cd9a469c | 15024 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
b30fcfae | 15025 | t quote |
cd9a469c | 15026 | b any |
15027 | :quote | |
15028 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
15029 | s/\[/\\&/g | |
15030 | s/\]/\\&/g | |
15031 | s/\$/$$/g | |
15032 | H | |
15033 | :any | |
15034 | ${ | |
15035 | g | |
15036 | s/^\n// | |
15037 | s/\n/ /g | |
15038 | p | |
15039 | } | |
15040 | ' | |
15041 | DEFS=`sed -n "$ac_script" confdefs.h` | |
b30fcfae | 15042 | |
15043 | ||
15044 | ac_libobjs= | |
15045 | ac_ltlibobjs= | |
15046 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
15047 | # 1. Remove the extension, and $U if already installed. | |
cd9a469c | 15048 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
15049 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
15050 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
15051 | # will be set to the directory where LIBOBJS objects are built. | |
15052 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15053 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b30fcfae | 15054 | done |
15055 | LIBOBJS=$ac_libobjs | |
a4af6a58 | 15056 | |
b30fcfae | 15057 | LTLIBOBJS=$ac_ltlibobjs |
a83ffacf | 15058 | |
ae48753c | 15059 | |
b30fcfae | 15060 | |
15061 | : ${CONFIG_STATUS=./config.status} | |
cd9a469c | 15062 | ac_write_fail=0 |
b30fcfae | 15063 | ac_clean_files_save=$ac_clean_files |
15064 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
cd9a469c | 15065 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
15066 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15067 | as_write_fail=0 | |
15068 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b30fcfae | 15069 | #! $SHELL |
15070 | # Generated by $as_me. | |
71ab34df | 15071 | # Run this file to recreate the current configuration. |
71ab34df | 15072 | # Compiler output produced by configure, useful for debugging |
b30fcfae | 15073 | # configure, is in config.log if it exists. |
a83ffacf | 15074 | |
b30fcfae | 15075 | debug=false |
15076 | ac_cs_recheck=false | |
15077 | ac_cs_silent=false | |
b30fcfae | 15078 | |
cd9a469c | 15079 | SHELL=\${CONFIG_SHELL-$SHELL} |
15080 | export SHELL | |
15081 | _ASEOF | |
15082 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15083 | ## -------------------- ## | |
15084 | ## M4sh Initialization. ## | |
15085 | ## -------------------- ## | |
15086 | ||
15087 | # Be more Bourne compatible | |
15088 | DUALCASE=1; export DUALCASE # for MKS sh | |
15089 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b30fcfae | 15090 | emulate sh |
15091 | NULLCMD=: | |
cd9a469c | 15092 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b30fcfae | 15093 | # is contrary to our usage. Disable this feature. |
15094 | alias -g '${1+"$@"}'='"$@"' | |
cd9a469c | 15095 | setopt NO_GLOB_SUBST |
15096 | else | |
15097 | case `(set -o) 2>/dev/null` in #( | |
15098 | *posix*) : | |
15099 | set -o posix ;; #( | |
15100 | *) : | |
15101 | ;; | |
15102 | esac | |
b30fcfae | 15103 | fi |
b30fcfae | 15104 | |
cd9a469c | 15105 | |
15106 | as_nl=' | |
15107 | ' | |
15108 | export as_nl | |
15109 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15110 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15111 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15112 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15113 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15114 | # but without wasting forks for bash or zsh. | |
15115 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15116 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15117 | as_echo='print -r --' | |
15118 | as_echo_n='print -rn --' | |
15119 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15120 | as_echo='printf %s\n' | |
15121 | as_echo_n='printf %s' | |
15122 | else | |
15123 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15124 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15125 | as_echo_n='/usr/ucb/echo -n' | |
15126 | else | |
15127 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15128 | as_echo_n_body='eval | |
15129 | arg=$1; | |
15130 | case $arg in #( | |
15131 | *"$as_nl"*) | |
15132 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15133 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15134 | esac; | |
15135 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15136 | ' | |
15137 | export as_echo_n_body | |
15138 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15139 | fi | |
15140 | export as_echo_body | |
15141 | as_echo='sh -c $as_echo_body as_echo' | |
b30fcfae | 15142 | fi |
15143 | ||
cd9a469c | 15144 | # The user is always right. |
15145 | if test "${PATH_SEPARATOR+set}" != set; then | |
15146 | PATH_SEPARATOR=: | |
15147 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15148 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15149 | PATH_SEPARATOR=';' | |
15150 | } | |
15151 | fi | |
15152 | ||
15153 | ||
15154 | # IFS | |
15155 | # We need space, tab and new line, in precisely that order. Quoting is | |
15156 | # there to prevent editors from complaining about space-tab. | |
15157 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15158 | # splitting by setting IFS to empty value.) | |
15159 | IFS=" "" $as_nl" | |
15160 | ||
15161 | # Find who we are. Look in the path if we contain no directory separator. | |
15162 | case $0 in #(( | |
15163 | *[\\/]* ) as_myself=$0 ;; | |
15164 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15165 | for as_dir in $PATH | |
15166 | do | |
15167 | IFS=$as_save_IFS | |
15168 | test -z "$as_dir" && as_dir=. | |
15169 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15170 | done | |
15171 | IFS=$as_save_IFS | |
15172 | ||
15173 | ;; | |
15174 | esac | |
15175 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15176 | # in which case we are not to be found in the path. | |
15177 | if test "x$as_myself" = x; then | |
15178 | as_myself=$0 | |
15179 | fi | |
15180 | if test ! -f "$as_myself"; then | |
15181 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15182 | exit 1 | |
15183 | fi | |
b30fcfae | 15184 | |
cd9a469c | 15185 | # Unset variables that we do not need and which cause bugs (e.g. in |
15186 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15187 | # suppresses any "Segmentation fault" message there. '((' could | |
15188 | # trigger a bug in pdksh 5.2.14. | |
15189 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15190 | do eval test x\${$as_var+set} = xset \ | |
15191 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15192 | done | |
b30fcfae | 15193 | PS1='$ ' |
15194 | PS2='> ' | |
15195 | PS4='+ ' | |
15196 | ||
15197 | # NLS nuisances. | |
cd9a469c | 15198 | LC_ALL=C |
15199 | export LC_ALL | |
15200 | LANGUAGE=C | |
15201 | export LANGUAGE | |
15202 | ||
15203 | # CDPATH. | |
15204 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15205 | ||
15206 | ||
15207 | # as_fn_error ERROR [LINENO LOG_FD] | |
15208 | # --------------------------------- | |
15209 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
15210 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
15211 | # script with status $?, using 1 if that was 0. | |
15212 | as_fn_error () | |
15213 | { | |
15214 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
15215 | if test "$3"; then | |
15216 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15217 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
b30fcfae | 15218 | fi |
cd9a469c | 15219 | $as_echo "$as_me: error: $1" >&2 |
15220 | as_fn_exit $as_status | |
15221 | } # as_fn_error | |
15222 | ||
15223 | ||
15224 | # as_fn_set_status STATUS | |
15225 | # ----------------------- | |
15226 | # Set $? to STATUS, without forking. | |
15227 | as_fn_set_status () | |
15228 | { | |
15229 | return $1 | |
15230 | } # as_fn_set_status | |
15231 | ||
15232 | # as_fn_exit STATUS | |
15233 | # ----------------- | |
15234 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15235 | as_fn_exit () | |
15236 | { | |
15237 | set +e | |
15238 | as_fn_set_status $1 | |
15239 | exit $1 | |
15240 | } # as_fn_exit | |
15241 | ||
15242 | # as_fn_unset VAR | |
15243 | # --------------- | |
15244 | # Portably unset VAR. | |
15245 | as_fn_unset () | |
15246 | { | |
15247 | { eval $1=; unset $1;} | |
15248 | } | |
15249 | as_unset=as_fn_unset | |
15250 | # as_fn_append VAR VALUE | |
15251 | # ---------------------- | |
15252 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15253 | # advantage of any shell optimizations that allow amortized linear growth over | |
15254 | # repeated appends, instead of the typical quadratic growth present in naive | |
15255 | # implementations. | |
15256 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15257 | eval 'as_fn_append () | |
15258 | { | |
15259 | eval $1+=\$2 | |
15260 | }' | |
15261 | else | |
15262 | as_fn_append () | |
15263 | { | |
15264 | eval $1=\$$1\$2 | |
15265 | } | |
15266 | fi # as_fn_append | |
15267 | ||
15268 | # as_fn_arith ARG... | |
15269 | # ------------------ | |
15270 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15271 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15272 | # must be portable across $(()) and expr. | |
15273 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15274 | eval 'as_fn_arith () | |
15275 | { | |
15276 | as_val=$(( $* )) | |
15277 | }' | |
15278 | else | |
15279 | as_fn_arith () | |
15280 | { | |
15281 | as_val=`expr "$@" || test $? -eq 1` | |
15282 | } | |
15283 | fi # as_fn_arith | |
15284 | ||
b30fcfae | 15285 | |
cd9a469c | 15286 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15287 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b30fcfae | 15288 | as_expr=expr |
15289 | else | |
15290 | as_expr=false | |
15291 | fi | |
15292 | ||
cd9a469c | 15293 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b30fcfae | 15294 | as_basename=basename |
15295 | else | |
15296 | as_basename=false | |
15297 | fi | |
15298 | ||
cd9a469c | 15299 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15300 | as_dirname=dirname | |
15301 | else | |
15302 | as_dirname=false | |
15303 | fi | |
b30fcfae | 15304 | |
cd9a469c | 15305 | as_me=`$as_basename -- "$0" || |
b30fcfae | 15306 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15307 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 15308 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15309 | $as_echo X/"$0" | | |
15310 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15311 | s//\1/ | |
15312 | q | |
15313 | } | |
15314 | /^X\/\(\/\/\)$/{ | |
15315 | s//\1/ | |
15316 | q | |
15317 | } | |
15318 | /^X\/\(\/\).*/{ | |
15319 | s//\1/ | |
15320 | q | |
15321 | } | |
15322 | s/.*/./; q'` | |
5084f823 | 15323 | |
5084f823 | 15324 | # Avoid depending upon Character Ranges. |
15325 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15326 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15327 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15328 | as_cr_digits='0123456789' | |
15329 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15330 | ||
cd9a469c | 15331 | ECHO_C= ECHO_N= ECHO_T= |
15332 | case `echo -n x` in #((((( | |
15333 | -n*) | |
15334 | case `echo 'xy\c'` in | |
15335 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15336 | xy) ECHO_C='\c';; | |
15337 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15338 | ECHO_T=' ';; | |
15339 | esac;; | |
15340 | *) | |
15341 | ECHO_N='-n';; | |
b30fcfae | 15342 | esac |
15343 | ||
cd9a469c | 15344 | rm -f conf$$ conf$$.exe conf$$.file |
15345 | if test -d conf$$.dir; then | |
15346 | rm -f conf$$.dir/conf$$.file | |
b30fcfae | 15347 | else |
cd9a469c | 15348 | rm -f conf$$.dir |
15349 | mkdir conf$$.dir 2>/dev/null | |
b30fcfae | 15350 | fi |
cd9a469c | 15351 | if (echo >conf$$.file) 2>/dev/null; then |
15352 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
5084f823 | 15353 | as_ln_s='ln -s' |
cd9a469c | 15354 | # ... but there are two gotchas: |
15355 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15356 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15357 | # In both cases, we have to default to `cp -p'. | |
15358 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15359 | as_ln_s='cp -p' | |
15360 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15361 | as_ln_s=ln | |
15362 | else | |
15363 | as_ln_s='cp -p' | |
5084f823 | 15364 | fi |
b30fcfae | 15365 | else |
15366 | as_ln_s='cp -p' | |
15367 | fi | |
cd9a469c | 15368 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15369 | rmdir conf$$.dir 2>/dev/null | |
15370 | ||
15371 | ||
15372 | # as_fn_mkdir_p | |
15373 | # ------------- | |
15374 | # Create "$as_dir" as a directory, including parents if necessary. | |
15375 | as_fn_mkdir_p () | |
15376 | { | |
15377 | ||
15378 | case $as_dir in #( | |
15379 | -*) as_dir=./$as_dir;; | |
15380 | esac | |
15381 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15382 | as_dirs= | |
15383 | while :; do | |
15384 | case $as_dir in #( | |
15385 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15386 | *) as_qdir=$as_dir;; | |
15387 | esac | |
15388 | as_dirs="'$as_qdir' $as_dirs" | |
15389 | as_dir=`$as_dirname -- "$as_dir" || | |
15390 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15391 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15392 | X"$as_dir" : 'X\(//\)$' \| \ | |
15393 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15394 | $as_echo X"$as_dir" | | |
15395 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15396 | s//\1/ | |
15397 | q | |
15398 | } | |
15399 | /^X\(\/\/\)[^/].*/{ | |
15400 | s//\1/ | |
15401 | q | |
15402 | } | |
15403 | /^X\(\/\/\)$/{ | |
15404 | s//\1/ | |
15405 | q | |
15406 | } | |
15407 | /^X\(\/\).*/{ | |
15408 | s//\1/ | |
15409 | q | |
15410 | } | |
15411 | s/.*/./; q'` | |
15412 | test -d "$as_dir" && break | |
15413 | done | |
15414 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15415 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
15416 | ||
b30fcfae | 15417 | |
cd9a469c | 15418 | } # as_fn_mkdir_p |
b30fcfae | 15419 | if mkdir -p . 2>/dev/null; then |
cd9a469c | 15420 | as_mkdir_p='mkdir -p "$as_dir"' |
b30fcfae | 15421 | else |
15422 | test -d ./-p && rmdir ./-p | |
15423 | as_mkdir_p=false | |
15424 | fi | |
15425 | ||
cd9a469c | 15426 | if test -x / >/dev/null 2>&1; then |
15427 | as_test_x='test -x' | |
15428 | else | |
15429 | if ls -dL / >/dev/null 2>&1; then | |
15430 | as_ls_L_option=L | |
15431 | else | |
15432 | as_ls_L_option= | |
15433 | fi | |
15434 | as_test_x=' | |
15435 | eval sh -c '\'' | |
15436 | if test -d "$1"; then | |
15437 | test -d "$1/."; | |
15438 | else | |
15439 | case $1 in #( | |
15440 | -*)set "./$1";; | |
15441 | esac; | |
15442 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
15443 | ???[sx]*):;;*)false;;esac;fi | |
15444 | '\'' sh | |
15445 | ' | |
15446 | fi | |
15447 | as_executable_p=$as_test_x | |
b30fcfae | 15448 | |
15449 | # Sed expression to map a string onto a valid CPP name. | |
15450 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15451 | ||
15452 | # Sed expression to map a string onto a valid variable name. | |
15453 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15454 | ||
15455 | ||
b30fcfae | 15456 | exec 6>&1 |
cd9a469c | 15457 | ## ----------------------------------- ## |
15458 | ## Main body of $CONFIG_STATUS script. ## | |
15459 | ## ----------------------------------- ## | |
15460 | _ASEOF | |
15461 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15462 | ||
15463 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15464 | # Save the log message, to keep $0 and so on meaningful, and to | |
b30fcfae | 15465 | # report actual input values of CONFIG_FILES etc. instead of their |
cd9a469c | 15466 | # values after options handling. |
15467 | ac_log=" | |
b30fcfae | 15468 | This file was extended by $as_me, which was |
cd9a469c | 15469 | generated by GNU Autoconf 2.64. Invocation command line was |
b30fcfae | 15470 | |
15471 | CONFIG_FILES = $CONFIG_FILES | |
15472 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15473 | CONFIG_LINKS = $CONFIG_LINKS | |
15474 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15475 | $ $0 $@ | |
15476 | ||
cd9a469c | 15477 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15478 | " | |
15479 | ||
b30fcfae | 15480 | _ACEOF |
15481 | ||
cd9a469c | 15482 | case $ac_config_files in *" |
15483 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15484 | esac | |
b30fcfae | 15485 | |
5084f823 | 15486 | |
5084f823 | 15487 | |
cd9a469c | 15488 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15489 | # Files that config.status was made for. | |
15490 | config_files="$ac_config_files" | |
b30fcfae | 15491 | |
cd9a469c | 15492 | _ACEOF |
5084f823 | 15493 | |
cd9a469c | 15494 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b30fcfae | 15495 | ac_cs_usage="\ |
cd9a469c | 15496 | \`$as_me' instantiates files and other configuration actions |
15497 | from templates according to the current configuration. Unless the files | |
15498 | and actions are specified as TAGs, all are instantiated by default. | |
b30fcfae | 15499 | |
cd9a469c | 15500 | Usage: $0 [OPTION]... [TAG]... |
b30fcfae | 15501 | |
15502 | -h, --help print this help, then exit | |
cd9a469c | 15503 | -V, --version print version number and configuration settings, then exit |
15504 | -q, --quiet, --silent | |
15505 | do not print progress messages | |
b30fcfae | 15506 | -d, --debug don't remove temporary files |
15507 | --recheck update $as_me by reconfiguring in the same conditions | |
cd9a469c | 15508 | --file=FILE[:TEMPLATE] |
15509 | instantiate the configuration file FILE | |
b30fcfae | 15510 | |
15511 | Configuration files: | |
15512 | $config_files | |
15513 | ||
cd9a469c | 15514 | Report bugs to the package provider." |
5084f823 | 15515 | |
cd9a469c | 15516 | _ACEOF |
15517 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b30fcfae | 15518 | ac_cs_version="\\ |
15519 | config.status | |
cd9a469c | 15520 | configured by $0, generated by GNU Autoconf 2.64, |
15521 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
b30fcfae | 15522 | |
cd9a469c | 15523 | Copyright (C) 2009 Free Software Foundation, Inc. |
b30fcfae | 15524 | This config.status script is free software; the Free Software Foundation |
15525 | gives unlimited permission to copy, distribute and modify it." | |
cd9a469c | 15526 | |
15527 | ac_pwd='$ac_pwd' | |
15528 | srcdir='$srcdir' | |
15529 | INSTALL='$INSTALL' | |
b181f265 | 15530 | AWK='$AWK' |
cd9a469c | 15531 | test -n "\$AWK" || AWK=awk |
b30fcfae | 15532 | _ACEOF |
15533 | ||
cd9a469c | 15534 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15535 | # The default lists apply if the user does not specify any file. | |
b30fcfae | 15536 | ac_need_defaults=: |
15537 | while test $# != 0 | |
b1660f25 | 15538 | do |
b30fcfae | 15539 | case $1 in |
15540 | --*=*) | |
cd9a469c | 15541 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15542 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b30fcfae | 15543 | ac_shift=: |
15544 | ;; | |
cd9a469c | 15545 | *) |
b30fcfae | 15546 | ac_option=$1 |
15547 | ac_optarg=$2 | |
15548 | ac_shift=shift | |
15549 | ;; | |
b30fcfae | 15550 | esac |
15551 | ||
15552 | case $ac_option in | |
15553 | # Handling of the options. | |
71ab34df | 15554 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
b30fcfae | 15555 | ac_cs_recheck=: ;; |
cd9a469c | 15556 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15557 | $as_echo "$ac_cs_version"; exit ;; | |
15558 | --debug | --debu | --deb | --de | --d | -d ) | |
b30fcfae | 15559 | debug=: ;; |
15560 | --file | --fil | --fi | --f ) | |
15561 | $ac_shift | |
cd9a469c | 15562 | case $ac_optarg in |
15563 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15564 | esac | |
15565 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
5084f823 | 15566 | ac_need_defaults=false;; |
cd9a469c | 15567 | --he | --h | --help | --hel | -h ) |
15568 | $as_echo "$ac_cs_usage"; exit ;; | |
b30fcfae | 15569 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15570 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15571 | ac_cs_silent=: ;; | |
15572 | ||
15573 | # This is an error. | |
cd9a469c | 15574 | -*) as_fn_error "unrecognized option: \`$1' |
15575 | Try \`$0 --help' for more information." ;; | |
b30fcfae | 15576 | |
cd9a469c | 15577 | *) as_fn_append ac_config_targets " $1" |
15578 | ac_need_defaults=false ;; | |
b30fcfae | 15579 | |
a83ffacf | 15580 | esac |
b30fcfae | 15581 | shift |
a83ffacf | 15582 | done |
15583 | ||
b30fcfae | 15584 | ac_configure_extra_args= |
a83ffacf | 15585 | |
b30fcfae | 15586 | if $ac_cs_silent; then |
15587 | exec 6>/dev/null | |
15588 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15589 | fi | |
a83ffacf | 15590 | |
b30fcfae | 15591 | _ACEOF |
cd9a469c | 15592 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b30fcfae | 15593 | if \$ac_cs_recheck; then |
cd9a469c | 15594 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15595 | shift | |
15596 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15597 | CONFIG_SHELL='$SHELL' | |
15598 | export CONFIG_SHELL | |
15599 | exec "\$@" | |
b30fcfae | 15600 | fi |
15601 | ||
15602 | _ACEOF | |
cd9a469c | 15603 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15604 | exec 5>>config.log | |
15605 | { | |
15606 | echo | |
15607 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15608 | ## Running $as_me. ## | |
15609 | _ASBOX | |
15610 | $as_echo "$ac_log" | |
15611 | } >&5 | |
b30fcfae | 15612 | |
cd9a469c | 15613 | _ACEOF |
15614 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8bb79148 | 15615 | # |
15616 | # INIT-COMMANDS | |
15617 | # | |
15618 | extrasub_build="$extrasub_build" | |
15619 | extrasub_host="$extrasub_host" | |
15620 | extrasub_target="$extrasub_target" | |
15621 | ||
cd9a469c | 15622 | _ACEOF |
b30fcfae | 15623 | |
cd9a469c | 15624 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
570af75a | 15625 | |
cd9a469c | 15626 | # Handling of arguments. |
b30fcfae | 15627 | for ac_config_target in $ac_config_targets |
15628 | do | |
cd9a469c | 15629 | case $ac_config_target in |
15630 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15631 | ||
15632 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
b30fcfae | 15633 | esac |
15634 | done | |
15635 | ||
cd9a469c | 15636 | |
b30fcfae | 15637 | # If the user did not use the arguments to specify the items to instantiate, |
15638 | # then the envvar interface is used. Set only those that are not. | |
15639 | # We use the long form for the default assignment because of an extremely | |
15640 | # bizarre bug on SunOS 4.1.3. | |
15641 | if $ac_need_defaults; then | |
15642 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15643 | fi | |
15644 | ||
15645 | # Have a temporary directory for convenience. Make it in the build tree | |
cd9a469c | 15646 | # simply because there is no reason against having it here, and in addition, |
b30fcfae | 15647 | # creating and moving files from /tmp can sometimes cause problems. |
cd9a469c | 15648 | # Hook for its removal unless debugging. |
15649 | # Note that there is a small window in which the directory will not be cleaned: | |
15650 | # after its creation but before its name has been assigned to `$tmp'. | |
b30fcfae | 15651 | $debug || |
15652 | { | |
cd9a469c | 15653 | tmp= |
15654 | trap 'exit_status=$? | |
15655 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15656 | ' 0 | |
15657 | trap 'as_fn_exit 1' 1 2 13 15 | |
b30fcfae | 15658 | } |
b30fcfae | 15659 | # Create a (secure) tmp directory for tmp files. |
15660 | ||
15661 | { | |
cd9a469c | 15662 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b30fcfae | 15663 | test -n "$tmp" && test -d "$tmp" |
15664 | } || | |
15665 | { | |
cd9a469c | 15666 | tmp=./conf$$-$RANDOM |
15667 | (umask 077 && mkdir "$tmp") | |
15668 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
15669 | ||
15670 | # Set up the scripts for CONFIG_FILES section. | |
15671 | # No need to generate them if there are no CONFIG_FILES. | |
15672 | # This happens for instance with `./config.status config.h'. | |
15673 | if test -n "$CONFIG_FILES"; then | |
15674 | ||
15675 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15676 | ac_cs_awk_getline=: | |
15677 | ac_cs_awk_pipe_init= | |
15678 | ac_cs_awk_read_file=' | |
15679 | while ((getline aline < (F[key])) > 0) | |
15680 | print(aline) | |
15681 | close(F[key])' | |
15682 | ac_cs_awk_pipe_fini= | |
15683 | else | |
15684 | ac_cs_awk_getline=false | |
15685 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15686 | ac_cs_awk_read_file=' | |
15687 | print "|#_!!_#|" | |
15688 | print "cat " F[key] " &&" | |
15689 | '$ac_cs_awk_pipe_init | |
15690 | # The final `:' finishes the AND list. | |
15691 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15692 | fi | |
15693 | ac_cr=`echo X | tr X '\015'` | |
15694 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15695 | # But we know of no other shell where ac_cr would be empty at this | |
15696 | # point, so we can use a bashism as a fallback. | |
15697 | if test "x$ac_cr" = x; then | |
15698 | eval ac_cr=\$\'\\r\' | |
15699 | fi | |
15700 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15701 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15702 | ac_cs_awk_cr='\r' | |
15703 | else | |
15704 | ac_cs_awk_cr=$ac_cr | |
15705 | fi | |
15706 | ||
15707 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15708 | _ACEOF | |
15709 | ||
15710 | # Create commands to substitute file output variables. | |
b30fcfae | 15711 | { |
cd9a469c | 15712 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
15713 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
15714 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
15715 | echo "_ACAWK" && | |
15716 | echo "_ACEOF" | |
15717 | } >conf$$files.sh && | |
15718 | . ./conf$$files.sh || | |
15719 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15720 | rm -f conf$$files.sh | |
b30fcfae | 15721 | |
cd9a469c | 15722 | { |
15723 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15724 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15725 | echo "_ACEOF" | |
15726 | } >conf$$subs.sh || | |
15727 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15728 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15729 | ac_delim='%!_!# ' | |
15730 | for ac_last_try in false false false false false :; do | |
15731 | . ./conf$$subs.sh || | |
15732 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15733 | ||
15734 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15735 | if test $ac_delim_n = $ac_delim_num; then | |
15736 | break | |
15737 | elif $ac_last_try; then | |
15738 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15739 | else | |
15740 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15741 | fi | |
15742 | done | |
15743 | rm -f conf$$subs.sh | |
15744 | ||
15745 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15746 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
5084f823 | 15747 | _ACEOF |
cd9a469c | 15748 | sed -n ' |
15749 | h | |
15750 | s/^/S["/; s/!.*/"]=/ | |
15751 | p | |
15752 | g | |
15753 | s/^[^!]*!// | |
15754 | :repl | |
15755 | t repl | |
15756 | s/'"$ac_delim"'$// | |
15757 | t delim | |
15758 | :nl | |
15759 | h | |
15760 | s/\(.\{148\}\).*/\1/ | |
15761 | t more1 | |
15762 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15763 | p | |
15764 | n | |
15765 | b repl | |
15766 | :more1 | |
15767 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15768 | p | |
15769 | g | |
15770 | s/.\{148\}// | |
15771 | t nl | |
15772 | :delim | |
15773 | h | |
15774 | s/\(.\{148\}\).*/\1/ | |
15775 | t more2 | |
15776 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15777 | p | |
15778 | b | |
15779 | :more2 | |
15780 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15781 | p | |
15782 | g | |
15783 | s/.\{148\}// | |
15784 | t delim | |
15785 | ' <conf$$subs.awk | sed ' | |
15786 | /^[^""]/{ | |
15787 | N | |
15788 | s/\n// | |
15789 | } | |
15790 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15791 | rm -f conf$$subs.awk | |
15792 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15793 | _ACAWK | |
15794 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15795 | for (key in S) S_is_set[key] = 1 | |
15796 | FS = "\a" | |
15797 | \$ac_cs_awk_pipe_init | |
15798 | } | |
15799 | { | |
15800 | line = $ 0 | |
15801 | nfields = split(line, field, "@") | |
15802 | substed = 0 | |
15803 | len = length(field[1]) | |
15804 | for (i = 2; i < nfields; i++) { | |
15805 | key = field[i] | |
15806 | keylen = length(key) | |
15807 | if (S_is_set[key]) { | |
15808 | value = S[key] | |
15809 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15810 | len += length(value) + length(field[++i]) | |
15811 | substed = 1 | |
15812 | } else | |
15813 | len += 1 + keylen | |
15814 | } | |
15815 | if (nfields == 3 && !substed) { | |
15816 | key = field[2] | |
15817 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15818 | \$ac_cs_awk_read_file | |
15819 | next | |
15820 | } | |
15821 | } | |
15822 | print line | |
15823 | } | |
15824 | \$ac_cs_awk_pipe_fini | |
15825 | _ACAWK | |
15826 | _ACEOF | |
15827 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15828 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15829 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15830 | else | |
15831 | cat | |
15832 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15833 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15834 | _ACEOF | |
15835 | ||
15836 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15837 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15838 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15839 | # (actually we leave an empty line to preserve line numbers). | |
15840 | if test "x$srcdir" = x.; then | |
15841 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15842 | s/:*\$(srcdir):*/:/ | |
15843 | s/:*\${srcdir}:*/:/ | |
15844 | s/:*@srcdir@:*/:/ | |
15845 | s/^\([^=]*=[ ]*\):*/\1/ | |
15846 | s/:*$// | |
15847 | s/^[^=]*=[ ]*$// | |
15848 | }' | |
15849 | fi | |
5084f823 | 15850 | |
cd9a469c | 15851 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15852 | fi # test -n "$CONFIG_FILES" | |
5084f823 | 15853 | |
b30fcfae | 15854 | |
cd9a469c | 15855 | eval set X " :F $CONFIG_FILES " |
15856 | shift | |
15857 | for ac_tag | |
15858 | do | |
15859 | case $ac_tag in | |
15860 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15861 | esac | |
15862 | case $ac_mode$ac_tag in | |
15863 | :[FHL]*:*);; | |
15864 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15865 | :[FH]-) ac_tag=-:-;; | |
15866 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15867 | esac | |
15868 | ac_save_IFS=$IFS | |
15869 | IFS=: | |
15870 | set x $ac_tag | |
15871 | IFS=$ac_save_IFS | |
15872 | shift | |
15873 | ac_file=$1 | |
15874 | shift | |
a8298541 | 15875 | |
cd9a469c | 15876 | case $ac_mode in |
15877 | :L) ac_source=$1;; | |
15878 | :[FH]) | |
15879 | ac_file_inputs= | |
15880 | for ac_f | |
15881 | do | |
15882 | case $ac_f in | |
15883 | -) ac_f="$tmp/stdin";; | |
15884 | *) # Look for the file first in the build tree, then in the source tree | |
15885 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15886 | # because $ac_f cannot contain `:'. | |
15887 | test -f "$ac_f" || | |
15888 | case $ac_f in | |
15889 | [\\/$]*) false;; | |
15890 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15891 | esac || | |
15892 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15893 | esac | |
15894 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15895 | as_fn_append ac_file_inputs " '$ac_f'" | |
15896 | done | |
b30fcfae | 15897 | |
cd9a469c | 15898 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15899 | # use $as_me), people would be surprised to read: | |
15900 | # /* config.h. Generated by config.status. */ | |
15901 | configure_input='Generated from '` | |
15902 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15903 | `' by configure.' | |
15904 | if test x"$ac_file" != x-; then | |
15905 | configure_input="$ac_file. $configure_input" | |
15906 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15907 | $as_echo "$as_me: creating $ac_file" >&6;} | |
5084f823 | 15908 | fi |
cd9a469c | 15909 | # Neutralize special characters interpreted by sed in replacement strings. |
15910 | case $configure_input in #( | |
15911 | *\&* | *\|* | *\\* ) | |
15912 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15913 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15914 | *) ac_sed_conf_input=$configure_input;; | |
15915 | esac | |
570af75a | 15916 | |
cd9a469c | 15917 | case $ac_tag in |
15918 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15919 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15920 | esac | |
15921 | ;; | |
570af75a | 15922 | esac |
15923 | ||
cd9a469c | 15924 | ac_dir=`$as_dirname -- "$ac_file" || |
b30fcfae | 15925 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15926 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15927 | X"$ac_file" : 'X\(//\)$' \| \ | |
cd9a469c | 15928 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15929 | $as_echo X"$ac_file" | | |
15930 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15931 | s//\1/ | |
15932 | q | |
15933 | } | |
15934 | /^X\(\/\/\)[^/].*/{ | |
15935 | s//\1/ | |
15936 | q | |
15937 | } | |
15938 | /^X\(\/\/\)$/{ | |
15939 | s//\1/ | |
15940 | q | |
15941 | } | |
15942 | /^X\(\/\).*/{ | |
15943 | s//\1/ | |
15944 | q | |
15945 | } | |
15946 | s/.*/./; q'` | |
15947 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b30fcfae | 15948 | ac_builddir=. |
a83ffacf | 15949 | |
cd9a469c | 15950 | case "$ac_dir" in |
15951 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15952 | *) | |
15953 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15954 | # A ".." for each directory in $ac_dir_suffix. | |
15955 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15956 | case $ac_top_builddir_sub in | |
15957 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15958 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15959 | esac ;; | |
15960 | esac | |
15961 | ac_abs_top_builddir=$ac_pwd | |
15962 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15963 | # for backward compatibility: | |
15964 | ac_top_builddir=$ac_top_build_prefix | |
b30fcfae | 15965 | |
15966 | case $srcdir in | |
cd9a469c | 15967 | .) # We are building in place. |
b30fcfae | 15968 | ac_srcdir=. |
cd9a469c | 15969 | ac_top_srcdir=$ac_top_builddir_sub |
15970 | ac_abs_top_srcdir=$ac_pwd ;; | |
15971 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b30fcfae | 15972 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 15973 | ac_top_srcdir=$srcdir |
15974 | ac_abs_top_srcdir=$srcdir ;; | |
15975 | *) # Relative name. | |
15976 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15977 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15978 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b30fcfae | 15979 | esac |
cd9a469c | 15980 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b1660f25 | 15981 | |
a83ffacf | 15982 | |
cd9a469c | 15983 | case $ac_mode in |
15984 | :F) | |
15985 | # | |
15986 | # CONFIG_FILE | |
15987 | # | |
b30fcfae | 15988 | |
15989 | case $INSTALL in | |
15990 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
cd9a469c | 15991 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
71ab34df | 15992 | esac |
cd9a469c | 15993 | _ACEOF |
570af75a | 15994 | |
cd9a469c | 15995 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15996 | # If the template does not know about datarootdir, expand it. | |
15997 | # FIXME: This hack should be removed a few years after 2.60. | |
15998 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15999 | ac_sed_dataroot=' | |
16000 | /datarootdir/ { | |
16001 | p | |
16002 | q | |
16003 | } | |
16004 | /@datadir@/p | |
16005 | /@docdir@/p | |
16006 | /@infodir@/p | |
16007 | /@localedir@/p | |
16008 | /@mandir@/p' | |
16009 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
16010 | *datarootdir*) ac_datarootdir_seen=yes;; | |
16011 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
16012 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
16013 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
570af75a | 16014 | _ACEOF |
cd9a469c | 16015 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16016 | ac_datarootdir_hack=' | |
16017 | s&@datadir@&$datadir&g | |
16018 | s&@docdir@&$docdir&g | |
16019 | s&@infodir@&$infodir&g | |
16020 | s&@localedir@&$localedir&g | |
16021 | s&@mandir@&$mandir&g | |
16022 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16023 | esac | |
16024 | _ACEOF | |
16025 | ||
16026 | # Neutralize VPATH when `$srcdir' = `.'. | |
16027 | # Shell code in configure.ac might set extrasub. | |
16028 | # FIXME: do we really want to maintain this feature? | |
16029 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16030 | ac_sed_extra="$ac_vpsub | |
b30fcfae | 16031 | $extrasub |
16032 | _ACEOF | |
cd9a469c | 16033 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b30fcfae | 16034 | :t |
16035 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
cd9a469c | 16036 | s|@configure_input@|$ac_sed_conf_input|;t t |
16037 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16038 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16039 | s&@srcdir@&$ac_srcdir&;t t | |
16040 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16041 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16042 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16043 | s&@builddir@&$ac_builddir&;t t | |
16044 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16045 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16046 | s&@INSTALL@&$ac_INSTALL&;t t | |
16047 | $ac_datarootdir_hack | |
16048 | " | |
16049 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
16050 | if $ac_cs_awk_getline; then | |
16051 | $AWK -f "$tmp/subs.awk" | |
16052 | else | |
16053 | $AWK -f "$tmp/subs.awk" | $SHELL | |
16054 | fi >$tmp/out \ | |
16055 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
16056 | ||
16057 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
16058 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
16059 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
16060 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
16061 | which seems to be undefined. Please make sure it is defined." >&5 | |
16062 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
16063 | which seems to be undefined. Please make sure it is defined." >&2;} | |
16064 | ||
16065 | rm -f "$tmp/stdin" | |
16066 | case $ac_file in | |
16067 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
16068 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
16069 | esac \ | |
16070 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
16071 | ;; | |
570af75a | 16072 | |
570af75a | 16073 | |
a8298541 | 16074 | |
cd9a469c | 16075 | esac |
16076 | ||
8bb79148 | 16077 | |
16078 | case $ac_file$ac_mode in | |
16079 | "Makefile":F) sed "$extrasub_build" Makefile | | |
16080 | sed "$extrasub_host" | | |
16081 | sed "$extrasub_target" > mf$$ | |
16082 | mv -f mf$$ Makefile ;; | |
16083 | ||
16084 | esac | |
cd9a469c | 16085 | done # for ac_tag |
16086 | ||
16087 | ||
16088 | as_fn_exit 0 | |
b30fcfae | 16089 | _ACEOF |
b30fcfae | 16090 | ac_clean_files=$ac_clean_files_save |
16091 | ||
cd9a469c | 16092 | test $ac_write_fail = 0 || |
16093 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
16094 | ||
b30fcfae | 16095 | |
16096 | # configure is writing to config.log, and then calls config.status. | |
16097 | # config.status does its own redirection, appending to config.log. | |
16098 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16099 | # by configure, so config.status won't be able to write to it; its | |
16100 | # output is simply discarded. So we exec the FD to /dev/null, | |
16101 | # effectively closing config.log, so it can be properly (re)opened and | |
16102 | # appended to by config.status. When coming back to configure, we | |
16103 | # need to make the FD available again. | |
16104 | if test "$no_create" != yes; then | |
16105 | ac_cs_success=: | |
16106 | ac_config_status_args= | |
16107 | test "$silent" = yes && | |
16108 | ac_config_status_args="$ac_config_status_args --quiet" | |
16109 | exec 5>/dev/null | |
16110 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16111 | exec 5>>config.log | |
16112 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16113 | # would make configure fail if this is the last instruction. | |
cd9a469c | 16114 | $ac_cs_success || as_fn_exit $? |
16115 | fi | |
16116 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
16117 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16118 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
b30fcfae | 16119 | fi |
a8298541 | 16120 |