Commit | Line | Data |
---|---|---|
a0da8069 | 1 | #! /bin/sh |
a0da8069 | 2 | # Guess values for system-dependent variables and create Makefiles. |
81ecdfbb RW |
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. | |
a0da8069 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
c6b750e1 | 14 | |
81ecdfbb RW |
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 : | |
c6b750e1 DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
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 | |
c6b750e1 | 31 | fi |
c6b750e1 | 32 | |
81ecdfbb RW |
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 | } | |
c6b750e1 DJ |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
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 | |
c6b750e1 DJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
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'\" && | |
8e957354 PB |
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" | |
81ecdfbb RW |
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 | |
c6b750e1 | 184 | do |
81ecdfbb RW |
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." | |
c6b750e1 | 228 | else |
81ecdfbb RW |
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." | |
c6b750e1 | 233 | fi |
81ecdfbb RW |
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 | |
c6b750e1 | 263 | |
81ecdfbb RW |
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 | |
c6b750e1 DJ |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
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 | |
c6b750e1 | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
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'` | |
c6b750e1 | 410 | |
c6b750e1 DJ |
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 | |
417 | ||
c6b750e1 | 418 | |
81ecdfbb RW |
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 | | |
c6b750e1 | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
c6b750e1 | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c6b750e1 | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
c6b750e1 | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
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; } | |
c6b750e1 DJ |
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 | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
c6b750e1 DJ |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
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';; | |
c6b750e1 DJ |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
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' | |
c6b750e1 | 483 | fi |
c6b750e1 DJ |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
c6b750e1 DJ |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
81ecdfbb RW |
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 | |
c6b750e1 DJ |
519 | |
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 | ||
81ecdfbb | 527 | exec 7<&0 </dev/null 6>&1 |
a0da8069 | 528 | |
c6b750e1 DJ |
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 | ||
c6b750e1 DJ |
534 | # |
535 | # Initializations. | |
536 | # | |
a0da8069 | 537 | ac_default_prefix=/usr/local |
81ecdfbb | 538 | ac_clean_files= |
c6b750e1 | 539 | ac_config_libobj_dir=. |
81ecdfbb | 540 | LIBOBJS= |
c6b750e1 DJ |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
c6b750e1 DJ |
545 | |
546 | # Identity of this package. | |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
81ecdfbb | 552 | PACKAGE_URL= |
c6b750e1 DJ |
553 | |
554 | ac_unique_file="move-if-change" | |
81ecdfbb RW |
555 | enable_option_checking=no |
556 | ac_subst_vars='LTLIBOBJS | |
557 | LIBOBJS | |
558 | compare_exclusions | |
82033c9b | 559 | host_shared |
81ecdfbb RW |
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 | |
b121d7d4 | 574 | READELF_FOR_TARGET |
81ecdfbb RW |
575 | RANLIB_FOR_TARGET |
576 | OBJDUMP_FOR_TARGET | |
6b91c541 | 577 | OBJCOPY_FOR_TARGET |
81ecdfbb RW |
578 | NM_FOR_TARGET |
579 | LIPO_FOR_TARGET | |
580 | LD_FOR_TARGET | |
581 | DLLTOOL_FOR_TARGET | |
582 | AS_FOR_TARGET | |
583 | AR_FOR_TARGET | |
e552509b | 584 | GOC_FOR_TARGET |
81ecdfbb RW |
585 | GFORTRAN_FOR_TARGET |
586 | GCJ_FOR_TARGET | |
587 | GCC_FOR_TARGET | |
588 | CXX_FOR_TARGET | |
589 | CC_FOR_TARGET | |
b121d7d4 | 590 | READELF |
81ecdfbb RW |
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 | |
81ecdfbb RW |
611 | WINDRES_FOR_BUILD |
612 | WINDMC_FOR_BUILD | |
613 | RANLIB_FOR_BUILD | |
614 | NM_FOR_BUILD | |
615 | LD_FOR_BUILD | |
616 | LDFLAGS_FOR_BUILD | |
e552509b | 617 | GOC_FOR_BUILD |
81ecdfbb RW |
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 | |
911e63d0 | 627 | target_configdirs |
81ecdfbb | 628 | configdirs |
81ecdfbb | 629 | build_configdirs |
81ecdfbb RW |
630 | INSTALL_GDB_TK |
631 | GDB_TK | |
632 | CONFIGURE_GDB_TK | |
633 | build_tooldir | |
634 | tooldir | |
635 | GCC_SHLIB_SUBDIR | |
636 | RPATH_ENVVAR | |
4074d5f2 RW |
637 | target_configargs |
638 | host_configargs | |
639 | build_configargs | |
96655cc4 | 640 | BUILD_CONFIG |
91c1f14c | 641 | LDFLAGS_FOR_TARGET |
81ecdfbb RW |
642 | CXXFLAGS_FOR_TARGET |
643 | CFLAGS_FOR_TARGET | |
644 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
645 | SYSROOT_CFLAGS_FOR_TARGET | |
700d40ca | 646 | extra_host_libiberty_configure_flags |
1b6c0831 L |
647 | stage1_languages |
648 | extra_linker_plugin_flags | |
649 | extra_linker_plugin_configure_flags | |
7ec59b9e | 650 | islinc |
1b6c0831 | 651 | isllibs |
81ecdfbb | 652 | poststage1_ldflags |
143754cd | 653 | poststage1_libs |
81ecdfbb | 654 | stage1_ldflags |
b3676d82 | 655 | stage1_libs |
7ec59b9e | 656 | extra_isl_gmp_configure_flags |
81ecdfbb RW |
657 | extra_mpc_mpfr_configure_flags |
658 | extra_mpc_gmp_configure_flags | |
659 | extra_mpfr_configure_flags | |
660 | gmpinc | |
661 | gmplibs | |
662 | do_compare | |
663 | GNATMAKE | |
664 | GNATBIND | |
665 | ac_ct_CXX | |
666 | CXXFLAGS | |
667 | CXX | |
668 | OBJEXT | |
669 | EXEEXT | |
670 | ac_ct_CC | |
671 | CPPFLAGS | |
672 | LDFLAGS | |
673 | CFLAGS | |
674 | CC | |
ffdd6afc | 675 | EXTRA_CONFIGARGS_LIBJAVA |
1b6c0831 | 676 | extra_liboffloadmic_configure_flags |
81ecdfbb RW |
677 | target_subdir |
678 | host_subdir | |
679 | build_subdir | |
680 | build_libsubdir | |
8e957354 PB |
681 | AWK |
682 | SED | |
81ecdfbb RW |
683 | LN_S |
684 | LN | |
685 | INSTALL_DATA | |
686 | INSTALL_SCRIPT | |
687 | INSTALL_PROGRAM | |
688 | target_os | |
689 | target_vendor | |
690 | target_cpu | |
691 | target | |
692 | host_os | |
693 | host_vendor | |
694 | host_cpu | |
695 | host | |
696 | target_noncanonical | |
697 | host_noncanonical | |
698 | build_noncanonical | |
699 | build_os | |
700 | build_vendor | |
701 | build_cpu | |
702 | build | |
703 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
704 | target_alias | |
705 | host_alias | |
706 | build_alias | |
707 | LIBS | |
708 | ECHO_T | |
709 | ECHO_N | |
710 | ECHO_C | |
711 | DEFS | |
712 | mandir | |
713 | localedir | |
714 | libdir | |
715 | psdir | |
716 | pdfdir | |
717 | dvidir | |
718 | htmldir | |
719 | infodir | |
720 | docdir | |
721 | oldincludedir | |
722 | includedir | |
723 | localstatedir | |
724 | sharedstatedir | |
725 | sysconfdir | |
726 | datadir | |
727 | datarootdir | |
728 | libexecdir | |
729 | sbindir | |
730 | bindir | |
731 | program_transform_name | |
732 | prefix | |
733 | exec_prefix | |
734 | PACKAGE_URL | |
735 | PACKAGE_BUGREPORT | |
736 | PACKAGE_STRING | |
737 | PACKAGE_VERSION | |
738 | PACKAGE_TARNAME | |
739 | PACKAGE_NAME | |
740 | PATH_SEPARATOR | |
741 | SHELL' | |
742 | ac_subst_files='serialization_dependencies | |
743 | host_makefile_frag | |
744 | target_makefile_frag | |
745 | alphaieee_frag | |
746 | ospace_frag' | |
747 | ac_user_opts=' | |
748 | enable_option_checking | |
749 | with_build_libsubdir | |
cf39cfc5 | 750 | with_system_zlib |
1b6c0831 L |
751 | enable_as_accelerator_for |
752 | enable_offload_targets | |
81ecdfbb | 753 | enable_gold |
c7791212 | 754 | enable_ld |
89a1e9c3 PB |
755 | enable_libquadmath |
756 | enable_libquadmath_support | |
81ecdfbb RW |
757 | enable_libada |
758 | enable_libssp | |
f66a9a70 | 759 | enable_libstdcxx |
1b6c0831 | 760 | enable_liboffloadmic |
ffdd6afc ILT |
761 | enable_static_libjava |
762 | enable_bootstrap | |
81ecdfbb RW |
763 | with_mpc |
764 | with_mpc_include | |
765 | with_mpc_lib | |
766 | with_mpfr_dir | |
767 | with_mpfr | |
768 | with_mpfr_include | |
769 | with_mpfr_lib | |
770 | with_gmp_dir | |
771 | with_gmp | |
772 | with_gmp_include | |
773 | with_gmp_lib | |
774 | with_host_libstdcxx | |
81ecdfbb | 775 | with_stage1_libs |
b3676d82 | 776 | with_stage1_ldflags |
81ecdfbb | 777 | with_boot_libs |
143754cd | 778 | with_boot_ldflags |
7ec59b9e L |
779 | with_isl |
780 | with_isl_include | |
781 | with_isl_lib | |
782 | enable_isl_version_check | |
700d40ca | 783 | enable_lto |
1b6c0831 L |
784 | enable_linker_plugin_configure_flags |
785 | enable_linker_plugin_flags | |
81ecdfbb RW |
786 | enable_stage1_languages |
787 | enable_objc_gc | |
788 | with_build_sysroot | |
789 | with_debug_prefix_map | |
96655cc4 | 790 | with_build_config |
730af8ee | 791 | enable_vtable_verify |
81ecdfbb RW |
792 | enable_serial_configure |
793 | with_build_time_tools | |
794 | enable_maintainer_mode | |
795 | enable_stage1_checking | |
796 | enable_werror | |
82033c9b | 797 | enable_host_shared |
81ecdfbb RW |
798 | ' |
799 | ac_precious_vars='build_alias | |
800 | host_alias | |
801 | target_alias | |
802 | CC | |
803 | CFLAGS | |
804 | LDFLAGS | |
805 | LIBS | |
806 | CPPFLAGS | |
807 | CXX | |
808 | CXXFLAGS | |
809 | CCC | |
4074d5f2 RW |
810 | build_configargs |
811 | host_configargs | |
812 | target_configargs | |
81ecdfbb RW |
813 | AR |
814 | AS | |
815 | DLLTOOL | |
816 | LD | |
817 | LIPO | |
818 | NM | |
819 | RANLIB | |
820 | STRIP | |
821 | WINDRES | |
822 | WINDMC | |
823 | OBJCOPY | |
824 | OBJDUMP | |
b121d7d4 | 825 | READELF |
81ecdfbb RW |
826 | CC_FOR_TARGET |
827 | CXX_FOR_TARGET | |
828 | GCC_FOR_TARGET | |
829 | GCJ_FOR_TARGET | |
830 | GFORTRAN_FOR_TARGET | |
e552509b | 831 | GOC_FOR_TARGET |
81ecdfbb RW |
832 | AR_FOR_TARGET |
833 | AS_FOR_TARGET | |
834 | DLLTOOL_FOR_TARGET | |
835 | LD_FOR_TARGET | |
836 | LIPO_FOR_TARGET | |
837 | NM_FOR_TARGET | |
6b91c541 | 838 | OBJCOPY_FOR_TARGET |
81ecdfbb RW |
839 | OBJDUMP_FOR_TARGET |
840 | RANLIB_FOR_TARGET | |
b121d7d4 | 841 | READELF_FOR_TARGET |
81ecdfbb RW |
842 | STRIP_FOR_TARGET |
843 | WINDRES_FOR_TARGET | |
844 | WINDMC_FOR_TARGET' | |
845 | ||
a0da8069 NN |
846 | |
847 | # Initialize some variables set by options. | |
c6b750e1 DJ |
848 | ac_init_help= |
849 | ac_init_version=false | |
81ecdfbb RW |
850 | ac_unrecognized_opts= |
851 | ac_unrecognized_sep= | |
a0da8069 NN |
852 | # The variables have the same names as the options, with |
853 | # dashes changed to underlines. | |
c6b750e1 | 854 | cache_file=/dev/null |
a0da8069 | 855 | exec_prefix=NONE |
a0da8069 | 856 | no_create= |
a0da8069 NN |
857 | no_recursion= |
858 | prefix=NONE | |
859 | program_prefix=NONE | |
860 | program_suffix=NONE | |
861 | program_transform_name=s,x,x, | |
862 | silent= | |
863 | site= | |
864 | srcdir= | |
a0da8069 NN |
865 | verbose= |
866 | x_includes=NONE | |
867 | x_libraries=NONE | |
c6b750e1 DJ |
868 | |
869 | # Installation directory options. | |
870 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
871 | # and all the variables that are supposed to be based on exec_prefix | |
872 | # by default will actually change. | |
873 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 874 | # (The list follows the same order as the GNU Coding Standards.) |
a0da8069 NN |
875 | bindir='${exec_prefix}/bin' |
876 | sbindir='${exec_prefix}/sbin' | |
877 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
878 | datarootdir='${prefix}/share' |
879 | datadir='${datarootdir}' | |
a0da8069 NN |
880 | sysconfdir='${prefix}/etc' |
881 | sharedstatedir='${prefix}/com' | |
882 | localstatedir='${prefix}/var' | |
a0da8069 NN |
883 | includedir='${prefix}/include' |
884 | oldincludedir='/usr/include' | |
81ecdfbb RW |
885 | docdir='${datarootdir}/doc/${PACKAGE}' |
886 | infodir='${datarootdir}/info' | |
887 | htmldir='${docdir}' | |
888 | dvidir='${docdir}' | |
889 | pdfdir='${docdir}' | |
890 | psdir='${docdir}' | |
891 | libdir='${exec_prefix}/lib' | |
892 | localedir='${datarootdir}/locale' | |
893 | mandir='${datarootdir}/man' | |
252b5132 | 894 | |
a0da8069 | 895 | ac_prev= |
81ecdfbb | 896 | ac_dashdash= |
a0da8069 NN |
897 | for ac_option |
898 | do | |
a0da8069 NN |
899 | # If the previous option needs an argument, assign it. |
900 | if test -n "$ac_prev"; then | |
81ecdfbb | 901 | eval $ac_prev=\$ac_option |
a0da8069 NN |
902 | ac_prev= |
903 | continue | |
904 | fi | |
252b5132 | 905 | |
81ecdfbb RW |
906 | case $ac_option in |
907 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
908 | *) ac_optarg=yes ;; | |
909 | esac | |
a0da8069 NN |
910 | |
911 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
912 | ||
81ecdfbb RW |
913 | case $ac_dashdash$ac_option in |
914 | --) | |
915 | ac_dashdash=yes ;; | |
a0da8069 NN |
916 | |
917 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
918 | ac_prev=bindir ;; | |
919 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
c6b750e1 | 920 | bindir=$ac_optarg ;; |
a0da8069 NN |
921 | |
922 | -build | --build | --buil | --bui | --bu) | |
c6b750e1 | 923 | ac_prev=build_alias ;; |
a0da8069 | 924 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
c6b750e1 | 925 | build_alias=$ac_optarg ;; |
a0da8069 NN |
926 | |
927 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
928 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
929 | ac_prev=cache_file ;; | |
930 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
931 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
c6b750e1 DJ |
932 | cache_file=$ac_optarg ;; |
933 | ||
934 | --config-cache | -C) | |
935 | cache_file=config.cache ;; | |
a0da8069 | 936 | |
81ecdfbb | 937 | -datadir | --datadir | --datadi | --datad) |
a0da8069 | 938 | ac_prev=datadir ;; |
81ecdfbb | 939 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
c6b750e1 | 940 | datadir=$ac_optarg ;; |
a0da8069 | 941 | |
81ecdfbb RW |
942 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
943 | | --dataroo | --dataro | --datar) | |
944 | ac_prev=datarootdir ;; | |
945 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
946 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
947 | datarootdir=$ac_optarg ;; | |
948 | ||
a0da8069 | 949 | -disable-* | --disable-*) |
81ecdfbb | 950 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a0da8069 | 951 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
952 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
953 | as_fn_error "invalid feature name: $ac_useropt" | |
954 | ac_useropt_orig=$ac_useropt | |
955 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
956 | case $ac_user_opts in | |
957 | *" | |
958 | "enable_$ac_useropt" | |
959 | "*) ;; | |
960 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
961 | ac_unrecognized_sep=', ';; | |
962 | esac | |
963 | eval enable_$ac_useropt=no ;; | |
964 | ||
965 | -docdir | --docdir | --docdi | --doc | --do) | |
966 | ac_prev=docdir ;; | |
967 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
968 | docdir=$ac_optarg ;; | |
969 | ||
970 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
971 | ac_prev=dvidir ;; | |
972 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
973 | dvidir=$ac_optarg ;; | |
a0da8069 NN |
974 | |
975 | -enable-* | --enable-*) | |
81ecdfbb | 976 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a0da8069 | 977 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
978 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
979 | as_fn_error "invalid feature name: $ac_useropt" | |
980 | ac_useropt_orig=$ac_useropt | |
981 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
982 | case $ac_user_opts in | |
983 | *" | |
984 | "enable_$ac_useropt" | |
985 | "*) ;; | |
986 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
987 | ac_unrecognized_sep=', ';; | |
a0da8069 | 988 | esac |
81ecdfbb | 989 | eval enable_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
990 | |
991 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
992 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
993 | | --exec | --exe | --ex) | |
994 | ac_prev=exec_prefix ;; | |
995 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
996 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
997 | | --exec=* | --exe=* | --ex=*) | |
c6b750e1 | 998 | exec_prefix=$ac_optarg ;; |
a0da8069 NN |
999 | |
1000 | -gas | --gas | --ga | --g) | |
1001 | # Obsolete; use --with-gas. | |
1002 | with_gas=yes ;; | |
1003 | ||
c6b750e1 DJ |
1004 | -help | --help | --hel | --he | -h) |
1005 | ac_init_help=long ;; | |
1006 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1007 | ac_init_help=recursive ;; | |
1008 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1009 | ac_init_help=short ;; | |
a0da8069 NN |
1010 | |
1011 | -host | --host | --hos | --ho) | |
c6b750e1 | 1012 | ac_prev=host_alias ;; |
a0da8069 | 1013 | -host=* | --host=* | --hos=* | --ho=*) |
c6b750e1 | 1014 | host_alias=$ac_optarg ;; |
a0da8069 | 1015 | |
81ecdfbb RW |
1016 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1017 | ac_prev=htmldir ;; | |
1018 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1019 | | --ht=*) | |
1020 | htmldir=$ac_optarg ;; | |
1021 | ||
a0da8069 NN |
1022 | -includedir | --includedir | --includedi | --included | --include \ |
1023 | | --includ | --inclu | --incl | --inc) | |
1024 | ac_prev=includedir ;; | |
1025 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1026 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
c6b750e1 | 1027 | includedir=$ac_optarg ;; |
a0da8069 NN |
1028 | |
1029 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1030 | ac_prev=infodir ;; | |
1031 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
c6b750e1 | 1032 | infodir=$ac_optarg ;; |
a0da8069 NN |
1033 | |
1034 | -libdir | --libdir | --libdi | --libd) | |
1035 | ac_prev=libdir ;; | |
1036 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
c6b750e1 | 1037 | libdir=$ac_optarg ;; |
a0da8069 NN |
1038 | |
1039 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1040 | | --libexe | --libex | --libe) | |
1041 | ac_prev=libexecdir ;; | |
1042 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1043 | | --libexe=* | --libex=* | --libe=*) | |
c6b750e1 | 1044 | libexecdir=$ac_optarg ;; |
a0da8069 | 1045 | |
81ecdfbb RW |
1046 | -localedir | --localedir | --localedi | --localed | --locale) |
1047 | ac_prev=localedir ;; | |
1048 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1049 | localedir=$ac_optarg ;; | |
1050 | ||
a0da8069 | 1051 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1052 | | --localstate | --localstat | --localsta | --localst | --locals) |
a0da8069 NN |
1053 | ac_prev=localstatedir ;; |
1054 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1055 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
c6b750e1 | 1056 | localstatedir=$ac_optarg ;; |
a0da8069 NN |
1057 | |
1058 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1059 | ac_prev=mandir ;; | |
1060 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
c6b750e1 | 1061 | mandir=$ac_optarg ;; |
a0da8069 NN |
1062 | |
1063 | -nfp | --nfp | --nf) | |
1064 | # Obsolete; use --without-fp. | |
1065 | with_fp=no ;; | |
1066 | ||
1067 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c6b750e1 | 1068 | | --no-cr | --no-c | -n) |
a0da8069 NN |
1069 | no_create=yes ;; |
1070 | ||
1071 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1072 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1073 | no_recursion=yes ;; | |
1074 | ||
1075 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1076 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1077 | | --oldin | --oldi | --old | --ol | --o) | |
1078 | ac_prev=oldincludedir ;; | |
1079 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1080 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1081 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
c6b750e1 | 1082 | oldincludedir=$ac_optarg ;; |
a0da8069 NN |
1083 | |
1084 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1085 | ac_prev=prefix ;; | |
1086 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
c6b750e1 | 1087 | prefix=$ac_optarg ;; |
a0da8069 NN |
1088 | |
1089 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1090 | | --program-pre | --program-pr | --program-p) | |
1091 | ac_prev=program_prefix ;; | |
1092 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1093 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
c6b750e1 | 1094 | program_prefix=$ac_optarg ;; |
a0da8069 NN |
1095 | |
1096 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1097 | | --program-suf | --program-su | --program-s) | |
1098 | ac_prev=program_suffix ;; | |
1099 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1100 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
c6b750e1 | 1101 | program_suffix=$ac_optarg ;; |
a0da8069 NN |
1102 | |
1103 | -program-transform-name | --program-transform-name \ | |
1104 | | --program-transform-nam | --program-transform-na \ | |
1105 | | --program-transform-n | --program-transform- \ | |
1106 | | --program-transform | --program-transfor \ | |
1107 | | --program-transfo | --program-transf \ | |
1108 | | --program-trans | --program-tran \ | |
1109 | | --progr-tra | --program-tr | --program-t) | |
1110 | ac_prev=program_transform_name ;; | |
1111 | -program-transform-name=* | --program-transform-name=* \ | |
1112 | | --program-transform-nam=* | --program-transform-na=* \ | |
1113 | | --program-transform-n=* | --program-transform-=* \ | |
1114 | | --program-transform=* | --program-transfor=* \ | |
1115 | | --program-transfo=* | --program-transf=* \ | |
1116 | | --program-trans=* | --program-tran=* \ | |
1117 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
c6b750e1 | 1118 | program_transform_name=$ac_optarg ;; |
a0da8069 | 1119 | |
81ecdfbb RW |
1120 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1121 | ac_prev=pdfdir ;; | |
1122 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1123 | pdfdir=$ac_optarg ;; | |
1124 | ||
1125 | -psdir | --psdir | --psdi | --psd | --ps) | |
1126 | ac_prev=psdir ;; | |
1127 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1128 | psdir=$ac_optarg ;; | |
1129 | ||
a0da8069 NN |
1130 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1131 | | -silent | --silent | --silen | --sile | --sil) | |
1132 | silent=yes ;; | |
1133 | ||
1134 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1135 | ac_prev=sbindir ;; | |
1136 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1137 | | --sbi=* | --sb=*) | |
c6b750e1 | 1138 | sbindir=$ac_optarg ;; |
a0da8069 NN |
1139 | |
1140 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1141 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1142 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1143 | | --sha | --sh) | |
1144 | ac_prev=sharedstatedir ;; | |
1145 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1146 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1147 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1148 | | --sha=* | --sh=*) | |
c6b750e1 | 1149 | sharedstatedir=$ac_optarg ;; |
a0da8069 NN |
1150 | |
1151 | -site | --site | --sit) | |
1152 | ac_prev=site ;; | |
1153 | -site=* | --site=* | --sit=*) | |
c6b750e1 | 1154 | site=$ac_optarg ;; |
a0da8069 NN |
1155 | |
1156 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1157 | ac_prev=srcdir ;; | |
1158 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
c6b750e1 | 1159 | srcdir=$ac_optarg ;; |
a0da8069 NN |
1160 | |
1161 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1162 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1163 | ac_prev=sysconfdir ;; | |
1164 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1165 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
c6b750e1 | 1166 | sysconfdir=$ac_optarg ;; |
a0da8069 NN |
1167 | |
1168 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
c6b750e1 | 1169 | ac_prev=target_alias ;; |
a0da8069 | 1170 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
c6b750e1 | 1171 | target_alias=$ac_optarg ;; |
a0da8069 NN |
1172 | |
1173 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1174 | verbose=yes ;; | |
1175 | ||
c6b750e1 DJ |
1176 | -version | --version | --versio | --versi | --vers | -V) |
1177 | ac_init_version=: ;; | |
a0da8069 NN |
1178 | |
1179 | -with-* | --with-*) | |
81ecdfbb | 1180 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a0da8069 | 1181 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1182 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1183 | as_fn_error "invalid package name: $ac_useropt" | |
1184 | ac_useropt_orig=$ac_useropt | |
1185 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1186 | case $ac_user_opts in | |
1187 | *" | |
1188 | "with_$ac_useropt" | |
1189 | "*) ;; | |
1190 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1191 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1192 | esac |
81ecdfbb | 1193 | eval with_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1194 | |
1195 | -without-* | --without-*) | |
81ecdfbb | 1196 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a0da8069 | 1197 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1198 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1199 | as_fn_error "invalid package name: $ac_useropt" | |
1200 | ac_useropt_orig=$ac_useropt | |
1201 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1202 | case $ac_user_opts in | |
1203 | *" | |
1204 | "with_$ac_useropt" | |
1205 | "*) ;; | |
1206 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1207 | ac_unrecognized_sep=', ';; | |
1208 | esac | |
1209 | eval with_$ac_useropt=no ;; | |
a0da8069 NN |
1210 | |
1211 | --x) | |
1212 | # Obsolete; use --with-x. | |
1213 | with_x=yes ;; | |
1214 | ||
1215 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1216 | | --x-incl | --x-inc | --x-in | --x-i) | |
1217 | ac_prev=x_includes ;; | |
1218 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1219 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
c6b750e1 | 1220 | x_includes=$ac_optarg ;; |
a0da8069 NN |
1221 | |
1222 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1223 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1224 | ac_prev=x_libraries ;; | |
1225 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1226 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
c6b750e1 | 1227 | x_libraries=$ac_optarg ;; |
a0da8069 | 1228 | |
81ecdfbb RW |
1229 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1230 | Try \`$0 --help' for more information." | |
a0da8069 NN |
1231 | ;; |
1232 | ||
c6b750e1 DJ |
1233 | *=*) |
1234 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1235 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1236 | case $ac_envvar in #( |
1237 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1238 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1239 | esac | |
1240 | eval $ac_envvar=\$ac_optarg | |
c6b750e1 DJ |
1241 | export $ac_envvar ;; |
1242 | ||
a0da8069 | 1243 | *) |
c6b750e1 | 1244 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1245 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
c6b750e1 | 1246 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1247 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
c6b750e1 | 1248 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
a0da8069 NN |
1249 | ;; |
1250 | ||
1251 | esac | |
1252 | done | |
1253 | ||
1254 | if test -n "$ac_prev"; then | |
c6b750e1 | 1255 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1256 | as_fn_error "missing argument to $ac_option" |
a0da8069 | 1257 | fi |
a0da8069 | 1258 | |
81ecdfbb RW |
1259 | if test -n "$ac_unrecognized_opts"; then |
1260 | case $enable_option_checking in | |
1261 | no) ;; | |
1262 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1263 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
c6b750e1 | 1264 | esac |
81ecdfbb | 1265 | fi |
a0da8069 | 1266 | |
81ecdfbb RW |
1267 | # Check all directory arguments for consistency. |
1268 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1269 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1270 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1271 | libdir localedir mandir | |
a0da8069 | 1272 | do |
81ecdfbb RW |
1273 | eval ac_val=\$$ac_var |
1274 | # Remove trailing slashes. | |
1275 | case $ac_val in | |
1276 | */ ) | |
1277 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1278 | eval $ac_var=\$ac_val;; | |
1279 | esac | |
1280 | # Be sure to have absolute directory names. | |
c6b750e1 | 1281 | case $ac_val in |
81ecdfbb RW |
1282 | [\\/$]* | ?:[\\/]* ) continue;; |
1283 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a0da8069 | 1284 | esac |
81ecdfbb | 1285 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
a0da8069 NN |
1286 | done |
1287 | ||
c6b750e1 DJ |
1288 | # There might be people who depend on the old broken behavior: `$host' |
1289 | # used to hold the argument of --host etc. | |
1290 | # FIXME: To remove some day. | |
1291 | build=$build_alias | |
1292 | host=$host_alias | |
1293 | target=$target_alias | |
376a0e54 | 1294 | |
c6b750e1 DJ |
1295 | # FIXME: To remove some day. |
1296 | if test "x$host_alias" != x; then | |
1297 | if test "x$build_alias" = x; then | |
1298 | cross_compiling=maybe | |
81ecdfbb | 1299 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
c6b750e1 DJ |
1300 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1301 | elif test "x$build_alias" != "x$host_alias"; then | |
1302 | cross_compiling=yes | |
1303 | fi | |
1304 | fi | |
1305 | ||
1306 | ac_tool_prefix= | |
1307 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1308 | ||
1309 | test "$silent" = yes && exec 6>/dev/null | |
a0da8069 | 1310 | |
a0da8069 | 1311 | |
81ecdfbb RW |
1312 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1313 | ac_ls_di=`ls -di .` && | |
1314 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1315 | as_fn_error "working directory cannot be determined" | |
1316 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1317 | as_fn_error "pwd does not report name of working directory" | |
1318 | ||
1319 | ||
a0da8069 NN |
1320 | # Find the source files, if location was not specified. |
1321 | if test -z "$srcdir"; then | |
1322 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1323 | # Try the directory containing this script, then the parent directory. |
1324 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1325 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1326 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1327 | X"$as_myself" : 'X\(//\)$' \| \ | |
1328 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1329 | $as_echo X"$as_myself" | | |
1330 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1331 | s//\1/ | |
1332 | q | |
1333 | } | |
1334 | /^X\(\/\/\)[^/].*/{ | |
1335 | s//\1/ | |
1336 | q | |
1337 | } | |
1338 | /^X\(\/\/\)$/{ | |
1339 | s//\1/ | |
1340 | q | |
1341 | } | |
1342 | /^X\(\/\).*/{ | |
1343 | s//\1/ | |
1344 | q | |
1345 | } | |
1346 | s/.*/./; q'` | |
a0da8069 | 1347 | srcdir=$ac_confdir |
81ecdfbb | 1348 | if test ! -r "$srcdir/$ac_unique_file"; then |
a0da8069 NN |
1349 | srcdir=.. |
1350 | fi | |
1351 | else | |
1352 | ac_srcdir_defaulted=no | |
1353 | fi | |
81ecdfbb RW |
1354 | if test ! -r "$srcdir/$ac_unique_file"; then |
1355 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1356 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1357 | fi | |
1358 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1359 | ac_abs_confdir=`( | |
1360 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1361 | pwd)` | |
1362 | # When building in place, set srcdir=. | |
1363 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1364 | srcdir=. | |
1365 | fi | |
1366 | # Remove unnecessary trailing slashes from srcdir. | |
1367 | # Double slashes in file names in object file debugging info | |
1368 | # mess up M-x gdb in Emacs. | |
1369 | case $srcdir in | |
1370 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1371 | esac | |
6d0cd39e AM |
1372 | case $srcdir in |
1373 | *" "*) | |
1374 | as_fn_error "path to source, $srcdir, contains spaces" | |
1375 | ;; | |
1376 | esac | |
9cc8ae67 PB |
1377 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1378 | ||
81ecdfbb RW |
1379 | for ac_var in $ac_precious_vars; do |
1380 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1381 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1382 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1383 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1384 | done | |
c6b750e1 DJ |
1385 | |
1386 | # | |
1387 | # Report the --help message. | |
1388 | # | |
1389 | if test "$ac_init_help" = "long"; then | |
1390 | # Omit some internal or obsolete options to make the list less imposing. | |
1391 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1392 | cat <<_ACEOF | |
1393 | \`configure' configures this package to adapt to many kinds of systems. | |
1394 | ||
1395 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1396 | ||
1397 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1398 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1399 | ||
1400 | Defaults for the options are specified in brackets. | |
1401 | ||
1402 | Configuration: | |
1403 | -h, --help display this help and exit | |
1404 | --help=short display options specific to this package | |
1405 | --help=recursive display the short help of all the included packages | |
1406 | -V, --version display version information and exit | |
1407 | -q, --quiet, --silent do not print \`checking...' messages | |
1408 | --cache-file=FILE cache test results in FILE [disabled] | |
1409 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1410 | -n, --no-create do not create output files | |
1411 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1412 | ||
c6b750e1 DJ |
1413 | Installation directories: |
1414 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1415 | [$ac_default_prefix] |
c6b750e1 | 1416 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1417 | [PREFIX] |
c6b750e1 DJ |
1418 | |
1419 | By default, \`make install' will install all the files in | |
1420 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1421 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1422 | for instance \`--prefix=\$HOME'. | |
1423 | ||
1424 | For better control, use the options below. | |
1425 | ||
1426 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1427 | --bindir=DIR user executables [EPREFIX/bin] |
1428 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1429 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1430 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1431 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1432 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1433 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1434 | --includedir=DIR C header files [PREFIX/include] | |
1435 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1436 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1437 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1438 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1439 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1440 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1441 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1442 | --htmldir=DIR html documentation [DOCDIR] | |
1443 | --dvidir=DIR dvi documentation [DOCDIR] | |
1444 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1445 | --psdir=DIR ps documentation [DOCDIR] | |
c6b750e1 DJ |
1446 | _ACEOF |
1447 | ||
1448 | cat <<\_ACEOF | |
1449 | ||
1450 | Program names: | |
1451 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1452 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1453 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1454 | ||
1455 | System types: | |
1456 | --build=BUILD configure for building on BUILD [guessed] | |
1457 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1458 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1459 | _ACEOF | |
a0da8069 | 1460 | fi |
a0da8069 | 1461 | |
c6b750e1 DJ |
1462 | if test -n "$ac_init_help"; then |
1463 | ||
1464 | cat <<\_ACEOF | |
1465 | ||
1466 | Optional Features: | |
81ecdfbb | 1467 | --disable-option-checking ignore unrecognized --enable/--with options |
c6b750e1 DJ |
1468 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1469 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1b6c0831 L |
1470 | --enable-as-accelerator-for=ARG |
1471 | build as offload target compiler. Specify offload | |
1472 | host triple by ARG | |
1473 | --enable-offload-targets=LIST | |
1474 | enable offloading to devices from comma-separated | |
1475 | LIST of TARGET[=DIR]. Use optional path to find | |
1476 | offload target compiler during the build | |
c7791212 | 1477 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7837304f | 1478 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
89a1e9c3 PB |
1479 | --disable-libquadmath do not build libquadmath directory |
1480 | --disable-libquadmath-support | |
1481 | disable libquadmath support for Fortran | |
521ec477 DD |
1482 | --enable-libada build libada directory |
1483 | --enable-libssp build libssp directory | |
f66a9a70 | 1484 | --disable-libstdcxx do not build libstdc++-v3 directory |
1b6c0831 L |
1485 | --enable-liboffloadmic=ARG |
1486 | build liboffloadmic [ARG={no,host,target}] | |
ffdd6afc ILT |
1487 | --enable-static-libjava[=ARG] |
1488 | build static libjava [default=no] | |
1489 | --enable-bootstrap enable bootstrapping [yes if native build] | |
7ec59b9e L |
1490 | --disable-isl-version-check |
1491 | disable check for ISL version | |
700d40ca | 1492 | --enable-lto enable link time optimization support |
1b6c0831 L |
1493 | --enable-linker-plugin-configure-flags=FLAGS |
1494 | additional flags for configuring linker plugins | |
1495 | [none] | |
1496 | --enable-linker-plugin-flags=FLAGS | |
1497 | additional flags for configuring and building linker | |
1498 | plugins [none] | |
7837304f AS |
1499 | --enable-stage1-languages[=all] |
1500 | choose additional languages to build during stage1. | |
1501 | Mostly useful for compiler development | |
1502 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1503 | Objective-C runtime | |
730af8ee | 1504 | --enable-vtable-verify Enable vtable verification feature |
521ec477 | 1505 | --enable-serial-[{host,target,build}-]configure |
7837304f AS |
1506 | force sequential configuration of sub-packages for |
1507 | the host, target or build machine, or all | |
1508 | sub-packages | |
1509 | --enable-maintainer-mode | |
1510 | enable make rules and dependencies not useful (and | |
1511 | sometimes confusing) to the casual installer | |
1512 | --enable-stage1-checking[=all] | |
1513 | choose additional checking for stage1 of the | |
1514 | compiler | |
c6b750e1 | 1515 | --enable-werror enable -Werror in bootstrap stage2 and later |
82033c9b | 1516 | --enable-host-shared build host code as shared libraries |
c6b750e1 DJ |
1517 | |
1518 | Optional Packages: | |
1519 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1520 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1521 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
cf39cfc5 | 1522 | --with-system-zlib use installed libz |
7837304f AS |
1523 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1524 | Equivalent to --with-mpc-include=PATH/include plus | |
1525 | --with-mpc-lib=PATH/lib | |
1526 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1527 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
521ec477 DD |
1528 | --with-mpfr-dir=PATH this option has been REMOVED |
1529 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
7837304f AS |
1530 | Equivalent to --with-mpfr-include=PATH/include plus |
1531 | --with-mpfr-lib=PATH/lib | |
c6b750e1 | 1532 | --with-mpfr-include=PATH |
521ec477 DD |
1533 | specify directory for installed MPFR include files |
1534 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1535 | --with-gmp-dir=PATH this option has been REMOVED | |
7837304f AS |
1536 | --with-gmp=PATH specify prefix directory for the installed GMP |
1537 | package. Equivalent to | |
1538 | --with-gmp-include=PATH/include plus | |
1539 | --with-gmp-lib=PATH/lib | |
521ec477 DD |
1540 | --with-gmp-include=PATH specify directory for installed GMP include files |
1541 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
7837304f AS |
1542 | --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when |
1543 | linking with PPL | |
b3676d82 | 1544 | --with-stage1-libs=LIBS libraries for stage1 |
7837304f AS |
1545 | --with-stage1-ldflags=FLAGS |
1546 | linker flags for stage1 | |
7837304f AS |
1547 | --with-boot-libs=LIBS libraries for stage2 and later |
1548 | --with-boot-ldflags=FLAGS | |
1549 | linker flags for stage2 and later | |
7ec59b9e | 1550 | --with-isl=PATH Specify prefix directory for the installed ISL |
7837304f | 1551 | package. Equivalent to |
7ec59b9e L |
1552 | --with-isl-include=PATH/include plus |
1553 | --with-isl-lib=PATH/lib | |
1554 | --with-isl-include=PATH Specify directory for installed ISL include files | |
1555 | --with-isl-lib=PATH Specify the directory for the installed ISL library | |
521ec477 | 1556 | --with-build-sysroot=SYSROOT |
c6b750e1 | 1557 | use sysroot as the system root during the build |
8a6ee3ab | 1558 | --with-debug-prefix-map='A=B C=D ...' |
7837304f AS |
1559 | map A to B, C to D ... in debug information |
1560 | --with-build-config='NAME NAME2...' | |
1561 | use config/NAME.mk build configuration | |
521ec477 | 1562 | --with-build-time-tools=PATH |
c6b750e1 | 1563 | use given path to find target tools during the build |
c6b750e1 DJ |
1564 | |
1565 | Some influential environment variables: | |
1566 | CC C compiler command | |
1567 | CFLAGS C compiler flags | |
1568 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1569 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1570 | LIBS libraries to pass to the linker, e.g. -l<library> |
1571 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1572 | you have headers in a nonstandard directory <include dir> | |
18f6b6ee PB |
1573 | CXX C++ compiler command |
1574 | CXXFLAGS C++ compiler flags | |
4074d5f2 RW |
1575 | build_configargs |
1576 | additional configure arguments for build directories | |
1577 | host_configargs | |
1578 | additional configure arguments for host directories | |
1579 | target_configargs | |
1580 | additional configure arguments for target directories | |
9a819804 AO |
1581 | AR AR for the host |
1582 | AS AS for the host | |
1583 | DLLTOOL DLLTOOL for the host | |
1584 | LD LD for the host | |
1585 | LIPO LIPO for the host | |
1586 | NM NM for the host | |
1587 | RANLIB RANLIB for the host | |
1588 | STRIP STRIP for the host | |
1589 | WINDRES WINDRES for the host | |
0c24b341 | 1590 | WINDMC WINDMC for the host |
9a819804 AO |
1591 | OBJCOPY OBJCOPY for the host |
1592 | OBJDUMP OBJDUMP for the host | |
b121d7d4 | 1593 | READELF READELF for the host |
9a819804 AO |
1594 | CC_FOR_TARGET |
1595 | CC for the target | |
1596 | CXX_FOR_TARGET | |
1597 | CXX for the target | |
1598 | GCC_FOR_TARGET | |
1599 | GCC for the target | |
1600 | GCJ_FOR_TARGET | |
1601 | GCJ for the target | |
1602 | GFORTRAN_FOR_TARGET | |
1603 | GFORTRAN for the target | |
e552509b ILT |
1604 | GOC_FOR_TARGET |
1605 | GOC for the target | |
9a819804 AO |
1606 | AR_FOR_TARGET |
1607 | AR for the target | |
1608 | AS_FOR_TARGET | |
1609 | AS for the target | |
1610 | DLLTOOL_FOR_TARGET | |
1611 | DLLTOOL for the target | |
1612 | LD_FOR_TARGET | |
1613 | LD for the target | |
1614 | LIPO_FOR_TARGET | |
1615 | LIPO for the target | |
1616 | NM_FOR_TARGET | |
1617 | NM for the target | |
6b91c541 AP |
1618 | OBJCOPY_FOR_TARGET |
1619 | OBJCOPY for the target | |
9a819804 AO |
1620 | OBJDUMP_FOR_TARGET |
1621 | OBJDUMP for the target | |
1622 | RANLIB_FOR_TARGET | |
1623 | RANLIB for the target | |
b121d7d4 DD |
1624 | READELF_FOR_TARGET |
1625 | READELF for the target | |
9a819804 AO |
1626 | STRIP_FOR_TARGET |
1627 | STRIP for the target | |
1628 | WINDRES_FOR_TARGET | |
1629 | WINDRES for the target | |
0c24b341 NC |
1630 | WINDMC_FOR_TARGET |
1631 | WINDMC for the target | |
c6b750e1 DJ |
1632 | |
1633 | Use these variables to override the choices made by `configure' or to help | |
1634 | it to find libraries and programs with nonstandard names/locations. | |
1635 | ||
81ecdfbb | 1636 | Report bugs to the package provider. |
c6b750e1 | 1637 | _ACEOF |
81ecdfbb | 1638 | ac_status=$? |
c6b750e1 DJ |
1639 | fi |
1640 | ||
1641 | if test "$ac_init_help" = "recursive"; then | |
1642 | # If there are subdirs, report their specific --help. | |
c6b750e1 | 1643 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1644 | test -d "$ac_dir" || |
1645 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1646 | continue | |
c6b750e1 DJ |
1647 | ac_builddir=. |
1648 | ||
81ecdfbb RW |
1649 | case "$ac_dir" in |
1650 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1651 | *) | |
1652 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1653 | # A ".." for each directory in $ac_dir_suffix. | |
1654 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1655 | case $ac_top_builddir_sub in | |
1656 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1657 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1658 | esac ;; | |
1659 | esac | |
1660 | ac_abs_top_builddir=$ac_pwd | |
1661 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1662 | # for backward compatibility: | |
1663 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
1664 | |
1665 | case $srcdir in | |
81ecdfbb | 1666 | .) # We are building in place. |
c6b750e1 | 1667 | ac_srcdir=. |
81ecdfbb RW |
1668 | ac_top_srcdir=$ac_top_builddir_sub |
1669 | ac_abs_top_srcdir=$ac_pwd ;; | |
1670 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 1671 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1672 | ac_top_srcdir=$srcdir |
1673 | ac_abs_top_srcdir=$srcdir ;; | |
1674 | *) # Relative name. | |
1675 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1676 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1677 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 1678 | esac |
81ecdfbb RW |
1679 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1680 | ||
1681 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1682 | # Check for guested configure. | |
1683 | if test -f "$ac_srcdir/configure.gnu"; then | |
1684 | echo && | |
1685 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1686 | elif test -f "$ac_srcdir/configure"; then | |
1687 | echo && | |
1688 | $SHELL "$ac_srcdir/configure" --help=recursive | |
c6b750e1 | 1689 | else |
81ecdfbb RW |
1690 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1691 | fi || ac_status=$? | |
1692 | cd "$ac_pwd" || { ac_status=$?; break; } | |
c6b750e1 DJ |
1693 | done |
1694 | fi | |
1695 | ||
81ecdfbb | 1696 | test -n "$ac_init_help" && exit $ac_status |
c6b750e1 DJ |
1697 | if $ac_init_version; then |
1698 | cat <<\_ACEOF | |
81ecdfbb RW |
1699 | configure |
1700 | generated by GNU Autoconf 2.64 | |
c6b750e1 | 1701 | |
81ecdfbb | 1702 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
1703 | This configure script is free software; the Free Software Foundation |
1704 | gives unlimited permission to copy, distribute and modify it. | |
1705 | _ACEOF | |
81ecdfbb | 1706 | exit |
c6b750e1 | 1707 | fi |
81ecdfbb RW |
1708 | |
1709 | ## ------------------------ ## | |
1710 | ## Autoconf initialization. ## | |
1711 | ## ------------------------ ## | |
1712 | ||
1713 | # ac_fn_c_try_compile LINENO | |
1714 | # -------------------------- | |
1715 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1716 | ac_fn_c_try_compile () | |
1717 | { | |
1718 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1719 | rm -f conftest.$ac_objext | |
1720 | if { { ac_try="$ac_compile" | |
1721 | case "(($ac_try" in | |
1722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1723 | *) ac_try_echo=$ac_try;; | |
1724 | esac | |
1725 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1726 | $as_echo "$ac_try_echo"; } >&5 | |
1727 | (eval "$ac_compile") 2>conftest.err | |
1728 | ac_status=$? | |
1729 | if test -s conftest.err; then | |
1730 | grep -v '^ *+' conftest.err >conftest.er1 | |
1731 | cat conftest.er1 >&5 | |
1732 | mv -f conftest.er1 conftest.err | |
1733 | fi | |
1734 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1735 | test $ac_status = 0; } && { | |
1736 | test -z "$ac_c_werror_flag" || | |
1737 | test ! -s conftest.err | |
1738 | } && test -s conftest.$ac_objext; then : | |
1739 | ac_retval=0 | |
1740 | else | |
1741 | $as_echo "$as_me: failed program was:" >&5 | |
1742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1743 | ||
1744 | ac_retval=1 | |
1745 | fi | |
1746 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1747 | return $ac_retval | |
1748 | ||
1749 | } # ac_fn_c_try_compile | |
1750 | ||
1751 | # ac_fn_cxx_try_compile LINENO | |
1752 | # ---------------------------- | |
1753 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1754 | ac_fn_cxx_try_compile () | |
1755 | { | |
1756 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1757 | rm -f conftest.$ac_objext | |
1758 | if { { ac_try="$ac_compile" | |
1759 | case "(($ac_try" in | |
1760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1761 | *) ac_try_echo=$ac_try;; | |
1762 | esac | |
1763 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1764 | $as_echo "$ac_try_echo"; } >&5 | |
1765 | (eval "$ac_compile") 2>conftest.err | |
1766 | ac_status=$? | |
1767 | if test -s conftest.err; then | |
1768 | grep -v '^ *+' conftest.err >conftest.er1 | |
1769 | cat conftest.er1 >&5 | |
1770 | mv -f conftest.er1 conftest.err | |
1771 | fi | |
1772 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1773 | test $ac_status = 0; } && { | |
1774 | test -z "$ac_cxx_werror_flag" || | |
1775 | test ! -s conftest.err | |
1776 | } && test -s conftest.$ac_objext; then : | |
1777 | ac_retval=0 | |
1778 | else | |
1779 | $as_echo "$as_me: failed program was:" >&5 | |
1780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1781 | ||
1782 | ac_retval=1 | |
1783 | fi | |
1784 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1785 | return $ac_retval | |
1786 | ||
1787 | } # ac_fn_cxx_try_compile | |
1788 | ||
b3676d82 EB |
1789 | # ac_fn_cxx_try_link LINENO |
1790 | # ------------------------- | |
1791 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1792 | ac_fn_cxx_try_link () | |
1793 | { | |
1794 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1795 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1796 | if { { ac_try="$ac_link" | |
1797 | case "(($ac_try" in | |
1798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1799 | *) ac_try_echo=$ac_try;; | |
1800 | esac | |
1801 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1802 | $as_echo "$ac_try_echo"; } >&5 | |
1803 | (eval "$ac_link") 2>conftest.err | |
1804 | ac_status=$? | |
1805 | if test -s conftest.err; then | |
1806 | grep -v '^ *+' conftest.err >conftest.er1 | |
1807 | cat conftest.er1 >&5 | |
1808 | mv -f conftest.er1 conftest.err | |
1809 | fi | |
1810 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1811 | test $ac_status = 0; } && { | |
1812 | test -z "$ac_cxx_werror_flag" || | |
1813 | test ! -s conftest.err | |
1814 | } && test -s conftest$ac_exeext && { | |
1815 | test "$cross_compiling" = yes || | |
1816 | $as_test_x conftest$ac_exeext | |
1817 | }; then : | |
1818 | ac_retval=0 | |
1819 | else | |
1820 | $as_echo "$as_me: failed program was:" >&5 | |
1821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1822 | ||
1823 | ac_retval=1 | |
1824 | fi | |
1825 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1826 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1827 | # interfere with the next link command; also delete a directory that is | |
1828 | # left behind by Apple's compiler. We do this before executing the actions. | |
1829 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1830 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1831 | return $ac_retval | |
1832 | ||
1833 | } # ac_fn_cxx_try_link | |
1834 | ||
81ecdfbb RW |
1835 | # ac_fn_c_try_link LINENO |
1836 | # ----------------------- | |
1837 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1838 | ac_fn_c_try_link () | |
1839 | { | |
1840 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1841 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1842 | if { { ac_try="$ac_link" | |
1843 | case "(($ac_try" in | |
1844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1845 | *) ac_try_echo=$ac_try;; | |
1846 | esac | |
1847 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1848 | $as_echo "$ac_try_echo"; } >&5 | |
1849 | (eval "$ac_link") 2>conftest.err | |
1850 | ac_status=$? | |
1851 | if test -s conftest.err; then | |
1852 | grep -v '^ *+' conftest.err >conftest.er1 | |
1853 | cat conftest.er1 >&5 | |
1854 | mv -f conftest.er1 conftest.err | |
1855 | fi | |
1856 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1857 | test $ac_status = 0; } && { | |
1858 | test -z "$ac_c_werror_flag" || | |
1859 | test ! -s conftest.err | |
1860 | } && test -s conftest$ac_exeext && { | |
1861 | test "$cross_compiling" = yes || | |
1862 | $as_test_x conftest$ac_exeext | |
1863 | }; then : | |
1864 | ac_retval=0 | |
1865 | else | |
1866 | $as_echo "$as_me: failed program was:" >&5 | |
1867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1868 | ||
1869 | ac_retval=1 | |
1870 | fi | |
1871 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1872 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1873 | # interfere with the next link command; also delete a directory that is | |
1874 | # left behind by Apple's compiler. We do this before executing the actions. | |
1875 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1876 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1877 | return $ac_retval | |
1878 | ||
1879 | } # ac_fn_c_try_link | |
1880 | cat >config.log <<_ACEOF | |
c6b750e1 DJ |
1881 | This file contains any messages produced by compilers while |
1882 | running configure, to aid debugging if configure makes a mistake. | |
1883 | ||
1884 | It was created by $as_me, which was | |
81ecdfbb | 1885 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
1886 | |
1887 | $ $0 $@ | |
1888 | ||
1889 | _ACEOF | |
81ecdfbb | 1890 | exec 5>>config.log |
c6b750e1 DJ |
1891 | { |
1892 | cat <<_ASUNAME | |
1893 | ## --------- ## | |
1894 | ## Platform. ## | |
1895 | ## --------- ## | |
1896 | ||
1897 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1898 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1899 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1900 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1901 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1902 | ||
1903 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1904 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1905 | ||
1906 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1907 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1908 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 1909 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
c6b750e1 DJ |
1910 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1911 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1912 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1913 | ||
1914 | _ASUNAME | |
1915 | ||
1916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1917 | for as_dir in $PATH | |
1918 | do | |
1919 | IFS=$as_save_IFS | |
1920 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1921 | $as_echo "PATH: $as_dir" |
1922 | done | |
1923 | IFS=$as_save_IFS | |
c6b750e1 DJ |
1924 | |
1925 | } >&5 | |
1926 | ||
1927 | cat >&5 <<_ACEOF | |
1928 | ||
1929 | ||
1930 | ## ----------- ## | |
1931 | ## Core tests. ## | |
1932 | ## ----------- ## | |
1933 | ||
1934 | _ACEOF | |
1935 | ||
1936 | ||
1937 | # Keep a trace of the command line. | |
1938 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1939 | # Strip out --silent because we don't want to record it for future runs. | |
1940 | # Also quote any args containing shell meta-characters. | |
1941 | # Make two passes to allow for proper duplicate-argument suppression. | |
1942 | ac_configure_args= | |
1943 | ac_configure_args0= | |
1944 | ac_configure_args1= | |
c6b750e1 DJ |
1945 | ac_must_keep_next=false |
1946 | for ac_pass in 1 2 | |
1947 | do | |
1948 | for ac_arg | |
1949 | do | |
1950 | case $ac_arg in | |
1951 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1952 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1953 | | -silent | --silent | --silen | --sile | --sil) | |
1954 | continue ;; | |
81ecdfbb RW |
1955 | *\'*) |
1956 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c6b750e1 DJ |
1957 | esac |
1958 | case $ac_pass in | |
81ecdfbb | 1959 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
c6b750e1 | 1960 | 2) |
81ecdfbb | 1961 | as_fn_append ac_configure_args1 " '$ac_arg'" |
c6b750e1 DJ |
1962 | if test $ac_must_keep_next = true; then |
1963 | ac_must_keep_next=false # Got value, back to normal. | |
1964 | else | |
1965 | case $ac_arg in | |
1966 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1967 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1968 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1969 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1970 | case "$ac_configure_args0 " in | |
1971 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1972 | esac | |
1973 | ;; | |
1974 | -* ) ac_must_keep_next=true ;; | |
1975 | esac | |
1976 | fi | |
81ecdfbb | 1977 | as_fn_append ac_configure_args " '$ac_arg'" |
c6b750e1 DJ |
1978 | ;; |
1979 | esac | |
1980 | done | |
1981 | done | |
81ecdfbb RW |
1982 | { ac_configure_args0=; unset ac_configure_args0;} |
1983 | { ac_configure_args1=; unset ac_configure_args1;} | |
c6b750e1 DJ |
1984 | |
1985 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1986 | # config.log. We remove comments because anyway the quotes in there | |
1987 | # would cause problems or look ugly. | |
81ecdfbb RW |
1988 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1989 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
c6b750e1 DJ |
1990 | trap 'exit_status=$? |
1991 | # Save into config.log some information that might help in debugging. | |
1992 | { | |
1993 | echo | |
1994 | ||
1995 | cat <<\_ASBOX | |
1996 | ## ---------------- ## | |
1997 | ## Cache variables. ## | |
1998 | ## ---------------- ## | |
1999 | _ASBOX | |
2000 | echo | |
2001 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2002 | ( |
2003 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2004 | eval ac_val=\$$ac_var | |
2005 | case $ac_val in #( | |
2006 | *${as_nl}*) | |
2007 | case $ac_var in #( | |
2008 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2009 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2010 | esac | |
2011 | case $ac_var in #( | |
2012 | _ | IFS | as_nl) ;; #( | |
2013 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2014 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2015 | esac ;; | |
2016 | esac | |
2017 | done | |
c6b750e1 | 2018 | (set) 2>&1 | |
81ecdfbb RW |
2019 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2020 | *${as_nl}ac_space=\ *) | |
c6b750e1 | 2021 | sed -n \ |
81ecdfbb RW |
2022 | "s/'\''/'\''\\\\'\'''\''/g; |
2023 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2024 | ;; #( | |
c6b750e1 | 2025 | *) |
81ecdfbb | 2026 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 2027 | ;; |
81ecdfbb RW |
2028 | esac | |
2029 | sort | |
2030 | ) | |
c6b750e1 DJ |
2031 | echo |
2032 | ||
2033 | cat <<\_ASBOX | |
2034 | ## ----------------- ## | |
2035 | ## Output variables. ## | |
2036 | ## ----------------- ## | |
2037 | _ASBOX | |
2038 | echo | |
2039 | for ac_var in $ac_subst_vars | |
2040 | do | |
81ecdfbb RW |
2041 | eval ac_val=\$$ac_var |
2042 | case $ac_val in | |
2043 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2044 | esac | |
2045 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2046 | done | sort |
2047 | echo | |
2048 | ||
2049 | if test -n "$ac_subst_files"; then | |
2050 | cat <<\_ASBOX | |
81ecdfbb RW |
2051 | ## ------------------- ## |
2052 | ## File substitutions. ## | |
2053 | ## ------------------- ## | |
c6b750e1 DJ |
2054 | _ASBOX |
2055 | echo | |
2056 | for ac_var in $ac_subst_files | |
2057 | do | |
81ecdfbb RW |
2058 | eval ac_val=\$$ac_var |
2059 | case $ac_val in | |
2060 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2061 | esac | |
2062 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2063 | done | sort |
2064 | echo | |
2065 | fi | |
2066 | ||
2067 | if test -s confdefs.h; then | |
2068 | cat <<\_ASBOX | |
2069 | ## ----------- ## | |
2070 | ## confdefs.h. ## | |
2071 | ## ----------- ## | |
2072 | _ASBOX | |
2073 | echo | |
81ecdfbb | 2074 | cat confdefs.h |
c6b750e1 DJ |
2075 | echo |
2076 | fi | |
2077 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2078 | $as_echo "$as_me: caught signal $ac_signal" |
2079 | $as_echo "$as_me: exit $exit_status" | |
c6b750e1 | 2080 | } >&5 |
81ecdfbb RW |
2081 | rm -f core *.core core.conftest.* && |
2082 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
c6b750e1 | 2083 | exit $exit_status |
81ecdfbb | 2084 | ' 0 |
c6b750e1 | 2085 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2086 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
c6b750e1 DJ |
2087 | done |
2088 | ac_signal=0 | |
2089 | ||
2090 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2091 | rm -f -r conftest* confdefs.h |
2092 | ||
2093 | $as_echo "/* confdefs.h */" > confdefs.h | |
c6b750e1 DJ |
2094 | |
2095 | # Predefined preprocessor variables. | |
2096 | ||
2097 | cat >>confdefs.h <<_ACEOF | |
2098 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2099 | _ACEOF | |
2100 | ||
c6b750e1 DJ |
2101 | cat >>confdefs.h <<_ACEOF |
2102 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2103 | _ACEOF | |
2104 | ||
c6b750e1 DJ |
2105 | cat >>confdefs.h <<_ACEOF |
2106 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2107 | _ACEOF | |
2108 | ||
c6b750e1 DJ |
2109 | cat >>confdefs.h <<_ACEOF |
2110 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2111 | _ACEOF | |
2112 | ||
c6b750e1 DJ |
2113 | cat >>confdefs.h <<_ACEOF |
2114 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2115 | _ACEOF | |
2116 | ||
81ecdfbb RW |
2117 | cat >>confdefs.h <<_ACEOF |
2118 | #define PACKAGE_URL "$PACKAGE_URL" | |
2119 | _ACEOF | |
2120 | ||
c6b750e1 DJ |
2121 | |
2122 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2123 | # Prefer an explicitly selected file to automatically selected ones. |
2124 | ac_site_file1=NONE | |
2125 | ac_site_file2=NONE | |
2126 | if test -n "$CONFIG_SITE"; then | |
2127 | ac_site_file1=$CONFIG_SITE | |
2128 | elif test "x$prefix" != xNONE; then | |
2129 | ac_site_file1=$prefix/share/config.site | |
2130 | ac_site_file2=$prefix/etc/config.site | |
2131 | else | |
2132 | ac_site_file1=$ac_default_prefix/share/config.site | |
2133 | ac_site_file2=$ac_default_prefix/etc/config.site | |
a0da8069 | 2134 | fi |
81ecdfbb RW |
2135 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2136 | do | |
2137 | test "x$ac_site_file" = xNONE && continue | |
a0da8069 | 2138 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2139 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2140 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
c6b750e1 | 2141 | sed 's/^/| /' "$ac_site_file" >&5 |
a0da8069 NN |
2142 | . "$ac_site_file" |
2143 | fi | |
2144 | done | |
2145 | ||
2146 | if test -r "$cache_file"; then | |
c6b750e1 DJ |
2147 | # Some versions of bash will fail to source /dev/null (special |
2148 | # files actually), so we avoid doing that. | |
2149 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2150 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2151 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
c6b750e1 | 2152 | case $cache_file in |
81ecdfbb RW |
2153 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2154 | *) . "./$cache_file";; | |
c6b750e1 DJ |
2155 | esac |
2156 | fi | |
a0da8069 | 2157 | else |
81ecdfbb RW |
2158 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2159 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
c6b750e1 DJ |
2160 | >$cache_file |
2161 | fi | |
2162 | ||
2163 | # Check that the precious variables saved in the cache have kept the same | |
2164 | # value. | |
2165 | ac_cache_corrupted=false | |
81ecdfbb | 2166 | for ac_var in $ac_precious_vars; do |
c6b750e1 DJ |
2167 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2168 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2169 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2170 | eval ac_new_val=\$ac_env_${ac_var}_value | |
c6b750e1 DJ |
2171 | case $ac_old_set,$ac_new_set in |
2172 | set,) | |
81ecdfbb RW |
2173 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2174 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
c6b750e1 DJ |
2175 | ac_cache_corrupted=: ;; |
2176 | ,set) | |
81ecdfbb RW |
2177 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2178 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
c6b750e1 DJ |
2179 | ac_cache_corrupted=: ;; |
2180 | ,);; | |
2181 | *) | |
2182 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2183 | # differences in whitespace do not lead to failure. |
2184 | ac_old_val_w=`echo x $ac_old_val` | |
2185 | ac_new_val_w=`echo x $ac_new_val` | |
2186 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2187 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2188 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2189 | ac_cache_corrupted=: | |
2190 | else | |
2191 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2192 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2193 | eval $ac_var=\$ac_old_val | |
2194 | fi | |
2195 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2196 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2197 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2198 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
c6b750e1 DJ |
2199 | fi;; |
2200 | esac | |
2201 | # Pass precious variables to config.status. | |
2202 | if test "$ac_new_set" = set; then | |
2203 | case $ac_new_val in | |
81ecdfbb | 2204 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c6b750e1 DJ |
2205 | *) ac_arg=$ac_var=$ac_new_val ;; |
2206 | esac | |
2207 | case " $ac_configure_args " in | |
2208 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2209 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
c6b750e1 DJ |
2210 | esac |
2211 | fi | |
2212 | done | |
2213 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2214 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2215 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2216 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2217 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2218 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
a0da8069 | 2219 | fi |
81ecdfbb RW |
2220 | ## -------------------- ## |
2221 | ## Main body of script. ## | |
2222 | ## -------------------- ## | |
a0da8069 NN |
2223 | |
2224 | ac_ext=c | |
a0da8069 | 2225 | ac_cpp='$CPP $CPPFLAGS' |
c6b750e1 DJ |
2226 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2227 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2228 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2229 | ||
2230 | ||
2231 | ||
2232 | ||
c6b750e1 DJ |
2233 | |
2234 | ||
34a0f3cf | 2235 | |
c6b750e1 | 2236 | |
5b553f7e RW |
2237 | |
2238 | progname=$0 | |
2239 | # if PWD already has a value, it is probably wrong. | |
2240 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2241 | ||
2242 | # Export original configure arguments for use by sub-configures. | |
2243 | # Quote arguments with shell meta charatcers. | |
2244 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2245 | set -- "$progname" "$@" | |
2246 | for ac_arg | |
2247 | do | |
2248 | case "$ac_arg" in | |
2249 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2250 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2251 | # if the argument is of the form -foo=baz, quote the baz part only | |
2252 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2253 | *) ;; | |
2254 | esac | |
2255 | # Add the quoted argument to the list. | |
2256 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2257 | done | |
2258 | if test "$silent" = yes; then | |
2259 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2260 | fi | |
2261 | # Remove the initial space we just introduced and, as these will be | |
2262 | # expanded by make, quote '$'. | |
2263 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2264 | ||
c6b750e1 DJ |
2265 | |
2266 | # Find the build, host, and target systems. | |
a0da8069 | 2267 | ac_aux_dir= |
81ecdfbb RW |
2268 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2269 | for ac_t in install-sh install.sh shtool; do | |
2270 | if test -f "$ac_dir/$ac_t"; then | |
2271 | ac_aux_dir=$ac_dir | |
2272 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2273 | break 2 | |
2274 | fi | |
2275 | done | |
a0da8069 NN |
2276 | done |
2277 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2278 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a0da8069 | 2279 | fi |
81ecdfbb RW |
2280 | |
2281 | # These three variables are undocumented and unsupported, | |
2282 | # and are intended to be withdrawn in a future Autoconf release. | |
2283 | # They can cause serious problems if a builder's source tree is in a directory | |
2284 | # whose full name contains unusual characters. | |
2285 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2286 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2287 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2288 | ||
a0da8069 | 2289 | |
c6b750e1 | 2290 | # Make sure we can run config.sub. |
81ecdfbb RW |
2291 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2292 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2293 | ||
2294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2295 | $as_echo_n "checking build system type... " >&6; } | |
2296 | if test "${ac_cv_build+set}" = set; then : | |
2297 | $as_echo_n "(cached) " >&6 | |
2298 | else | |
2299 | ac_build_alias=$build_alias | |
2300 | test "x$ac_build_alias" = x && | |
2301 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2302 | test "x$ac_build_alias" = x && | |
2303 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2304 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2305 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2306 | ||
2307 | fi | |
2308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2309 | $as_echo "$ac_cv_build" >&6; } | |
2310 | case $ac_cv_build in | |
2311 | *-*-*) ;; | |
2312 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2313 | esac | |
c6b750e1 | 2314 | build=$ac_cv_build |
81ecdfbb RW |
2315 | ac_save_IFS=$IFS; IFS='-' |
2316 | set x $ac_cv_build | |
2317 | shift | |
2318 | build_cpu=$1 | |
2319 | build_vendor=$2 | |
2320 | shift; shift | |
2321 | # Remember, the first character of IFS is used to create $*, | |
2322 | # except with old shells: | |
2323 | build_os=$* | |
2324 | IFS=$ac_save_IFS | |
2325 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
a0da8069 | 2326 | |
a0da8069 | 2327 | |
c6b750e1 DJ |
2328 | case ${build_alias} in |
2329 | "") build_noncanonical=${build} ;; | |
2330 | *) build_noncanonical=${build_alias} ;; | |
cac3d6c4 CM |
2331 | esac |
2332 | ||
2333 | ||
cac3d6c4 | 2334 | |
c6b750e1 DJ |
2335 | case ${host_alias} in |
2336 | "") host_noncanonical=${build_noncanonical} ;; | |
2337 | *) host_noncanonical=${host_alias} ;; | |
cac3d6c4 CM |
2338 | esac |
2339 | ||
cac3d6c4 | 2340 | |
c6b750e1 DJ |
2341 | |
2342 | case ${target_alias} in | |
2343 | "") target_noncanonical=${host_noncanonical} ;; | |
2344 | *) target_noncanonical=${target_alias} ;; | |
cac3d6c4 CM |
2345 | esac |
2346 | ||
cac3d6c4 | 2347 | |
c6b750e1 DJ |
2348 | |
2349 | ||
2350 | test "$host_noncanonical" = "$target_noncanonical" && | |
a0da8069 NN |
2351 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2352 | NONENONEs,x,x, && | |
c6b750e1 | 2353 | program_transform_name=s,y,y, |
cac3d6c4 | 2354 | |
81ecdfbb RW |
2355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2356 | $as_echo_n "checking host system type... " >&6; } | |
2357 | if test "${ac_cv_host+set}" = set; then : | |
2358 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 2359 | else |
81ecdfbb RW |
2360 | if test "x$host_alias" = x; then |
2361 | ac_cv_host=$ac_cv_build | |
2362 | else | |
2363 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2364 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2365 | fi | |
c6b750e1 DJ |
2366 | |
2367 | fi | |
81ecdfbb RW |
2368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2369 | $as_echo "$ac_cv_host" >&6; } | |
2370 | case $ac_cv_host in | |
2371 | *-*-*) ;; | |
2372 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2373 | esac | |
c6b750e1 | 2374 | host=$ac_cv_host |
81ecdfbb RW |
2375 | ac_save_IFS=$IFS; IFS='-' |
2376 | set x $ac_cv_host | |
2377 | shift | |
2378 | host_cpu=$1 | |
2379 | host_vendor=$2 | |
2380 | shift; shift | |
2381 | # Remember, the first character of IFS is used to create $*, | |
2382 | # except with old shells: | |
2383 | host_os=$* | |
2384 | IFS=$ac_save_IFS | |
2385 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2386 | |
2387 | ||
81ecdfbb RW |
2388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2389 | $as_echo_n "checking target system type... " >&6; } | |
2390 | if test "${ac_cv_target+set}" = set; then : | |
2391 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 2392 | else |
81ecdfbb RW |
2393 | if test "x$target_alias" = x; then |
2394 | ac_cv_target=$ac_cv_host | |
2395 | else | |
2396 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2397 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2398 | fi | |
c6b750e1 | 2399 | |
cac3d6c4 | 2400 | fi |
81ecdfbb RW |
2401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2402 | $as_echo "$ac_cv_target" >&6; } | |
2403 | case $ac_cv_target in | |
2404 | *-*-*) ;; | |
2405 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2406 | esac | |
c6b750e1 | 2407 | target=$ac_cv_target |
81ecdfbb RW |
2408 | ac_save_IFS=$IFS; IFS='-' |
2409 | set x $ac_cv_target | |
2410 | shift | |
2411 | target_cpu=$1 | |
2412 | target_vendor=$2 | |
2413 | shift; shift | |
2414 | # Remember, the first character of IFS is used to create $*, | |
2415 | # except with old shells: | |
2416 | target_os=$* | |
2417 | IFS=$ac_save_IFS | |
2418 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2419 | |
2420 | ||
2421 | # The aliases save the names the user supplied, while $host etc. | |
2422 | # will get canonicalized. | |
2423 | test -n "$target_alias" && | |
2424 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2425 | NONENONEs,x,x, && | |
2426 | program_prefix=${target_alias}- | |
81ecdfbb | 2427 | |
a0da8069 | 2428 | test "$program_prefix" != NONE && |
81ecdfbb | 2429 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
a0da8069 NN |
2430 | # Use a double $ so make ignores it. |
2431 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2432 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2433 | # Double any \ or $. | |
c6b750e1 | 2434 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2435 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2436 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
cac3d6c4 | 2437 | |
a0da8069 NN |
2438 | |
2439 | ||
e5c3f801 NN |
2440 | # Get 'install' or 'install-sh' and its variants. |
2441 | # Find a good install program. We prefer a C program (faster), | |
2442 | # so one script is as good as another. But avoid the broken or | |
2443 | # incompatible versions: | |
2444 | # SysV /etc/install, /usr/sbin/install | |
2445 | # SunOS /usr/etc/install | |
2446 | # IRIX /sbin/install | |
2447 | # AIX /bin/install | |
c6b750e1 | 2448 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5c3f801 NN |
2449 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2450 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2451 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c6b750e1 | 2452 | # OS/2's system install, which has a completely different semantic |
e5c3f801 | 2453 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2454 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2456 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5c3f801 | 2457 | if test -z "$INSTALL"; then |
81ecdfbb RW |
2458 | if test "${ac_cv_path_install+set}" = set; then : |
2459 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
2460 | else |
2461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2462 | for as_dir in $PATH | |
2463 | do | |
2464 | IFS=$as_save_IFS | |
2465 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2466 | # Account for people who put trailing slashes in PATH elements. |
2467 | case $as_dir/ in #(( | |
2468 | ./ | .// | /[cC]/* | \ | |
c6b750e1 | 2469 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2470 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
c6b750e1 DJ |
2471 | /usr/ucb/* ) ;; |
2472 | *) | |
2473 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2474 | # Don't use installbsd from OSF since it installs stuff as root | |
2475 | # by default. | |
2476 | for ac_prog in ginstall scoinst install; do | |
2477 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 2478 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
e5c3f801 | 2479 | if test $ac_prog = install && |
c6b750e1 | 2480 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e5c3f801 NN |
2481 | # AIX install. It has an incompatible calling convention. |
2482 | : | |
c6b750e1 DJ |
2483 | elif test $ac_prog = install && |
2484 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2485 | # program-specific install script used by HP pwplus--don't use. | |
2486 | : | |
e5c3f801 | 2487 | else |
58c85be7 RW |
2488 | rm -rf conftest.one conftest.two conftest.dir |
2489 | echo one > conftest.one | |
2490 | echo two > conftest.two | |
2491 | mkdir conftest.dir | |
2492 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2493 | test -s conftest.one && test -s conftest.two && | |
2494 | test -s conftest.dir/conftest.one && | |
2495 | test -s conftest.dir/conftest.two | |
2496 | then | |
2497 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2498 | break 3 | |
2499 | fi | |
e5c3f801 NN |
2500 | fi |
2501 | fi | |
2502 | done | |
c6b750e1 DJ |
2503 | done |
2504 | ;; | |
2505 | esac | |
81ecdfbb RW |
2506 | |
2507 | done | |
2508 | IFS=$as_save_IFS | |
c6b750e1 | 2509 | |
58c85be7 | 2510 | rm -rf conftest.one conftest.two conftest.dir |
e5c3f801 NN |
2511 | |
2512 | fi | |
2513 | if test "${ac_cv_path_install+set}" = set; then | |
c6b750e1 | 2514 | INSTALL=$ac_cv_path_install |
e5c3f801 | 2515 | else |
58c85be7 RW |
2516 | # As a last resort, use the slow shell script. Don't cache a |
2517 | # value for INSTALL within a source directory, because that will | |
e5c3f801 | 2518 | # break other packages using the cache if that directory is |
58c85be7 | 2519 | # removed, or if the value is a relative name. |
c6b750e1 | 2520 | INSTALL=$ac_install_sh |
e5c3f801 NN |
2521 | fi |
2522 | fi | |
81ecdfbb RW |
2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2524 | $as_echo "$INSTALL" >&6; } | |
e5c3f801 NN |
2525 | |
2526 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2527 | # It thinks the first close brace ends the variable substitution. | |
2528 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2529 | ||
c6b750e1 | 2530 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
e5c3f801 NN |
2531 | |
2532 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2533 | ||
81ecdfbb RW |
2534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2535 | $as_echo_n "checking whether ln works... " >&6; } | |
2536 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2537 | $as_echo_n "(cached) " >&6 | |
656fdd47 PB |
2538 | else |
2539 | rm -f conftestdata_t | |
2540 | echo >conftestdata_f | |
2541 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2542 | then | |
2543 | acx_cv_prog_LN=ln | |
2544 | else | |
2545 | acx_cv_prog_LN=no | |
2546 | fi | |
2547 | rm -f conftestdata_f conftestdata_t | |
2548 | ||
2549 | fi | |
2550 | if test $acx_cv_prog_LN = no; then | |
2551 | LN="cp" | |
81ecdfbb RW |
2552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2553 | $as_echo "no, using $LN" >&6; } | |
656fdd47 PB |
2554 | else |
2555 | LN="$acx_cv_prog_LN" | |
81ecdfbb RW |
2556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2557 | $as_echo "yes" >&6; } | |
656fdd47 PB |
2558 | fi |
2559 | ||
81ecdfbb RW |
2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2561 | $as_echo_n "checking whether ln -s works... " >&6; } | |
c6b750e1 DJ |
2562 | LN_S=$as_ln_s |
2563 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
2564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2565 | $as_echo "yes" >&6; } | |
cac3d6c4 | 2566 | else |
81ecdfbb RW |
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2568 | $as_echo "no, using $LN_S" >&6; } | |
dfdffa2c PB |
2569 | fi |
2570 | ||
8e957354 PB |
2571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2572 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2573 | if test "${ac_cv_path_SED+set}" = set; then : | |
2574 | $as_echo_n "(cached) " >&6 | |
2575 | else | |
2576 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2577 | for ac_i in 1 2 3 4 5 6 7; do | |
2578 | ac_script="$ac_script$as_nl$ac_script" | |
2579 | done | |
2580 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2581 | { ac_script=; unset ac_script;} | |
2582 | if test -z "$SED"; then | |
2583 | ac_path_SED_found=false | |
2584 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2586 | for as_dir in $PATH | |
2587 | do | |
2588 | IFS=$as_save_IFS | |
2589 | test -z "$as_dir" && as_dir=. | |
2590 | for ac_prog in sed gsed; do | |
2591 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2592 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2593 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2594 | # Check for GNU ac_path_SED and select it if it is found. | |
2595 | # Check for GNU $ac_path_SED | |
2596 | case `"$ac_path_SED" --version 2>&1` in | |
2597 | *GNU*) | |
2598 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2599 | *) | |
2600 | ac_count=0 | |
2601 | $as_echo_n 0123456789 >"conftest.in" | |
2602 | while : | |
2603 | do | |
2604 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2605 | mv "conftest.tmp" "conftest.in" | |
2606 | cp "conftest.in" "conftest.nl" | |
2607 | $as_echo '' >> "conftest.nl" | |
2608 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2609 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2610 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2611 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2612 | # Best one so far, save it but keep looking for a better one | |
2613 | ac_cv_path_SED="$ac_path_SED" | |
2614 | ac_path_SED_max=$ac_count | |
2615 | fi | |
2616 | # 10*(2^10) chars as input seems more than enough | |
2617 | test $ac_count -gt 10 && break | |
2618 | done | |
2619 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2620 | esac | |
2621 | ||
2622 | $ac_path_SED_found && break 3 | |
2623 | done | |
2624 | done | |
2625 | done | |
2626 | IFS=$as_save_IFS | |
2627 | if test -z "$ac_cv_path_SED"; then | |
2628 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2629 | fi | |
2630 | else | |
2631 | ac_cv_path_SED=$SED | |
2632 | fi | |
2633 | ||
2634 | fi | |
2635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2636 | $as_echo "$ac_cv_path_SED" >&6; } | |
2637 | SED="$ac_cv_path_SED" | |
2638 | rm -f conftest.sed | |
2639 | ||
2640 | for ac_prog in gawk mawk nawk awk | |
2641 | do | |
2642 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2643 | set dummy $ac_prog; ac_word=$2 | |
2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2645 | $as_echo_n "checking for $ac_word... " >&6; } | |
2646 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2647 | $as_echo_n "(cached) " >&6 | |
2648 | else | |
2649 | if test -n "$AWK"; then | |
2650 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2651 | else | |
2652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2653 | for as_dir in $PATH | |
2654 | do | |
2655 | IFS=$as_save_IFS | |
2656 | test -z "$as_dir" && as_dir=. | |
2657 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2658 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2659 | ac_cv_prog_AWK="$ac_prog" | |
2660 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2661 | break 2 | |
2662 | fi | |
2663 | done | |
2664 | done | |
2665 | IFS=$as_save_IFS | |
2666 | ||
2667 | fi | |
2668 | fi | |
2669 | AWK=$ac_cv_prog_AWK | |
2670 | if test -n "$AWK"; then | |
2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2672 | $as_echo "$AWK" >&6; } | |
2673 | else | |
2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2675 | $as_echo "no" >&6; } | |
2676 | fi | |
2677 | ||
2678 | ||
2679 | test -n "$AWK" && break | |
2680 | done | |
2681 | ||
e5c3f801 | 2682 | |
0fdbe983 DJ |
2683 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2684 | ||
2685 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2686 | # a relative path. | |
2687 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2688 | INSTALL="${srcpwd}/install-sh -c" | |
2689 | fi | |
2690 | ||
a0da8069 NN |
2691 | # Set srcdir to "." if that's what it is. |
2692 | # This is important for multilib support. | |
2693 | pwd=`${PWDCMD-pwd}` | |
a0da8069 NN |
2694 | if test "${pwd}" = "${srcpwd}" ; then |
2695 | srcdir=. | |
252b5132 RH |
2696 | fi |
2697 | ||
a0da8069 | 2698 | topsrcdir=$srcpwd |
252b5132 | 2699 | |
a0da8069 | 2700 | extra_host_args= |
afefada0 | 2701 | |
a0da8069 NN |
2702 | ### To add a new directory to the tree, first choose whether it is a target |
2703 | ### or a host dependent tool. Then put it into the appropriate list | |
2704 | ### (library or tools, host or target), doing a dependency sort. | |
252b5132 | 2705 | |
c6b750e1 | 2706 | # Subdirs will be configured in the order listed in build_configdirs, |
a0da8069 | 2707 | # configdirs, or target_configdirs; see the serialization section below. |
252b5132 | 2708 | |
c6b750e1 DJ |
2709 | # Dependency sorting is only needed when *configuration* must be done in |
2710 | # a particular order. In all cases a dependency should be specified in | |
a0da8069 | 2711 | # the Makefile, whether or not it's implicitly specified here. |
252b5132 | 2712 | |
a0da8069 NN |
2713 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2714 | # cause circular dependencies and break everything horribly. | |
252b5132 | 2715 | |
6a9cf61e PB |
2716 | # these library is used by various programs built for the build |
2717 | # environment | |
2718 | # | |
1b6c0831 | 2719 | build_libs="build-libiberty build-libcpp" |
6a9cf61e PB |
2720 | |
2721 | # these tools are built for the build environment | |
a90ef4bf | 2722 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
6a9cf61e | 2723 | |
a0da8069 | 2724 | # these libraries are used by various programs built for the host environment |
1b6c0831 L |
2725 | #f |
2726 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv" | |
a0da8069 | 2727 | |
a0da8069 NN |
2728 | # these tools are built for the host environment |
2729 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2730 | # know that we are building the simulator. | |
2731 | # binutils, gas and ld appear in that order because it makes sense to run | |
2732 | # "make check" in that particular order. | |
e6de499b | 2733 | # If --enable-gold is used, "gold" may replace "ld". |
1b6c0831 | 2734 | 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" |
a0da8069 NN |
2735 | |
2736 | # libgcj represents the runtime libraries only used by gcj. | |
2737 | libgcj="target-libffi \ | |
a0da8069 | 2738 | target-zlib \ |
a0da8069 NN |
2739 | target-libjava" |
2740 | ||
2741 | # these libraries are built for the target environment, and are built after | |
2742 | # the host libraries and the host tools (which may be a cross compiler) | |
ffdd6afc | 2743 | # Note that libiberty is not a target library. |
b1299c4e | 2744 | target_libraries="target-libgcc \ |
2bf680c4 | 2745 | target-libbacktrace \ |
a0da8069 NN |
2746 | target-libgloss \ |
2747 | target-newlib \ | |
cff87f51 | 2748 | target-libgomp \ |
522e3d71 | 2749 | target-libcilkrts \ |
1b6c0831 | 2750 | target-liboffloadmic \ |
7ec59b9e | 2751 | target-libatomic \ |
d32e2926 | 2752 | target-libitm \ |
b9459e83 | 2753 | target-libstdc++-v3 \ |
5286fdef | 2754 | target-libsanitizer \ |
95e43135 | 2755 | target-libvtv \ |
1b6c0831 | 2756 | target-libmpx \ |
bb780410 | 2757 | target-libssp \ |
e552509b | 2758 | target-libquadmath \ |
4b1cb4fe | 2759 | target-libgfortran \ |
4f0ef2d8 | 2760 | target-boehm-gc \ |
83326456 | 2761 | ${libgcj} \ |
a2592b1b | 2762 | target-libobjc \ |
e552509b ILT |
2763 | target-libada \ |
2764 | target-libgo" | |
a0da8069 | 2765 | |
9c14acb8 NN |
2766 | # these tools are built using the target libraries, and are intended to |
2767 | # run only in the target environment | |
a0da8069 | 2768 | # |
9c14acb8 | 2769 | # note: any program that *uses* libraries that are in the "target_libraries" |
0377a422 | 2770 | # list belongs in this list. |
a0da8069 | 2771 | # |
a90ef4bf | 2772 | target_tools="target-rda" |
252b5132 | 2773 | |
a0da8069 | 2774 | ################################################################################ |
252b5132 | 2775 | |
a0da8069 NN |
2776 | ## All tools belong in one of the four categories, and are assigned above |
2777 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2778 | ## is important because configure will choke if they ever get through. | |
2779 | ## ${configdirs} is directories we build using the host tools. | |
2780 | ## ${target_configdirs} is directories we build using the target tools. | |
a0da8069 | 2781 | configdirs=`echo ${host_libs} ${host_tools}` |
9c14acb8 | 2782 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
ee025550 | 2783 | build_configdirs=`echo ${build_libs} ${build_tools}` |
dd12c3a8 | 2784 | |
9cc8ae67 PB |
2785 | |
2786 | ||
a0da8069 | 2787 | ################################################################################ |
252b5132 | 2788 | |
a0da8069 | 2789 | srcname="gnu development package" |
252b5132 | 2790 | |
a0da8069 NN |
2791 | # This gets set non-empty for some net releases of packages. |
2792 | appdirs="" | |
252b5132 | 2793 | |
a0da8069 NN |
2794 | # Define is_cross_compiler to save on calls to 'test'. |
2795 | is_cross_compiler= | |
2796 | if test x"${host}" = x"${target}" ; then | |
2797 | is_cross_compiler=no | |
252b5132 | 2798 | else |
a0da8069 | 2799 | is_cross_compiler=yes |
c6b750e1 | 2800 | fi |
252b5132 | 2801 | |
9175bfc0 | 2802 | # Find the build and target subdir names. |
dd12c3a8 | 2803 | |
66a79c16 DJ |
2804 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2805 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2806 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2807 | # However, they still use the build modules, because the corresponding | |
2808 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2809 | # finishes. So: | |
2810 | # - build_subdir is where we find build modules, and never changes. | |
2811 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2812 | ||
2813 | # Prefix 'build-' so this never conflicts with target_subdir. | |
dd12c3a8 | 2814 | build_subdir="build-${build_noncanonical}" |
c6b750e1 | 2815 | |
81ecdfbb RW |
2816 | # Check whether --with-build-libsubdir was given. |
2817 | if test "${with_build_libsubdir+set}" = set; then : | |
2818 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
66a79c16 DJ |
2819 | else |
2820 | build_libsubdir="$build_subdir" | |
81ecdfbb RW |
2821 | fi |
2822 | ||
b00612cc PB |
2823 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2824 | if ( test $srcdir = . && test -d gcc ) \ | |
2825 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2826 | host_subdir="host-${host_noncanonical}" | |
2827 | else | |
2828 | host_subdir=. | |
2829 | fi | |
dd12c3a8 NN |
2830 | # No prefix. |
2831 | target_subdir=${target_noncanonical} | |
c6b750e1 | 2832 | |
2fd0b40b RW |
2833 | # Be sure to cover against remnants of an in-tree build. |
2834 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2835 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2836 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2837 | fi | |
252b5132 | 2838 | |
a0da8069 NN |
2839 | # Skipdirs are removed silently. |
2840 | skipdirs= | |
2841 | # Noconfigdirs are removed loudly. | |
2842 | noconfigdirs="" | |
252b5132 | 2843 | |
a0da8069 NN |
2844 | use_gnu_ld= |
2845 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2846 | if test x$with_gnu_ld = xno ; then | |
2847 | use_gnu_ld=no | |
93f9b408 | 2848 | noconfigdirs="$noconfigdirs ld gold" |
252b5132 RH |
2849 | fi |
2850 | ||
a0da8069 NN |
2851 | use_gnu_as= |
2852 | # Make sure we don't let GNU as be added if we didn't want it. | |
2853 | if test x$with_gnu_as = xno ; then | |
2854 | use_gnu_as=no | |
2855 | noconfigdirs="$noconfigdirs gas" | |
252b5132 RH |
2856 | fi |
2857 | ||
700d40ca | 2858 | use_included_zlib= |
cf39cfc5 L |
2859 | |
2860 | # Check whether --with-system-zlib was given. | |
2861 | if test "${with_system_zlib+set}" = set; then : | |
2862 | withval=$with_system_zlib; | |
2863 | fi | |
2864 | ||
700d40ca ILT |
2865 | # Make sure we don't let ZLIB be added if we didn't want it. |
2866 | if test x$with_system_zlib = xyes ; then | |
2867 | use_included_zlib=no | |
2868 | noconfigdirs="$noconfigdirs zlib" | |
2869 | fi | |
2870 | ||
c6b750e1 | 2871 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2872 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2873 | |
a0da8069 NN |
2874 | case ${with_x} in |
2875 | yes | "") ;; # the default value for this tree is that X11 is available | |
2876 | no) | |
675c6968 | 2877 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2878 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2879 | enable_gdbtk=no |
a0da8069 NN |
2880 | ;; |
2881 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2882 | esac | |
252b5132 | 2883 | |
0377a422 | 2884 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2885 | # Remove these if host=target. |
2886 | cross_only="target-libgloss target-newlib target-opcodes" | |
2887 | ||
2888 | case $is_cross_compiler in | |
2889 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2890 | esac |
252b5132 | 2891 | |
a0da8069 NN |
2892 | # If both --with-headers and --with-libs are specified, default to |
2893 | # --without-newlib. | |
32be62b5 RS |
2894 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2895 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
2896 | if test x"${with_newlib}" = x ; then |
2897 | with_newlib=no | |
2898 | fi | |
252b5132 RH |
2899 | fi |
2900 | ||
a0da8069 NN |
2901 | # Recognize --with-newlib/--without-newlib. |
2902 | case ${with_newlib} in | |
2903 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2904 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2905 | esac | |
252b5132 | 2906 | |
1b6c0831 L |
2907 | # Check whether --enable-as-accelerator-for was given. |
2908 | if test "${enable_as_accelerator_for+set}" = set; then : | |
2909 | enableval=$enable_as_accelerator_for; | |
2910 | fi | |
2911 | ||
2912 | ||
2913 | # Check whether --enable-offload-targets was given. | |
2914 | if test "${enable_offload_targets+set}" = set; then : | |
2915 | enableval=$enable_offload_targets; | |
2916 | if test x"$enable_offload_targets" = x; then | |
2917 | as_fn_error "no offload targets specified" "$LINENO" 5 | |
2918 | fi | |
2919 | ||
2920 | else | |
2921 | enable_offload_targets= | |
2922 | fi | |
2923 | ||
2924 | ||
c7791212 NC |
2925 | # Handle --enable-gold, --enable-ld. |
2926 | # --disable-gold [--enable-ld] | |
2927 | # Build only ld. Default option. | |
d3b50760 L |
2928 | # --enable-gold [--enable-ld] |
2929 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2930 | # as "ld.bfd" and "ld". | |
2931 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
2932 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2933 | # install ld as "ld.bfd". | |
2934 | # --enable-gold[=default] --disable-ld | |
2935 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2936 | # --enable-gold --enable-ld=default | |
d3b50760 L |
2937 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2938 | # and ld.bfd). | |
c7791212 NC |
2939 | # In other words, ld is default |
2940 | # --enable-gold=default --enable-ld=default | |
2941 | # Error. | |
2942 | ||
2943 | default_ld= | |
81ecdfbb RW |
2944 | # Check whether --enable-gold was given. |
2945 | if test "${enable_gold+set}" = set; then : | |
2946 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
2947 | else |
2948 | ENABLE_GOLD=no | |
81ecdfbb RW |
2949 | fi |
2950 | ||
c7791212 NC |
2951 | case "${ENABLE_GOLD}" in |
2952 | yes|default) | |
e6de499b NC |
2953 | # Check for ELF target. |
2954 | is_elf=no | |
2955 | case "${target}" in | |
2956 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2344b8da | 2957 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
5b806d27 | 2958 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
2bda3143 | 2959 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
e6de499b NC |
2960 | case "${target}" in |
2961 | *-*-linux*aout* | *-*-linux*oldld*) | |
2962 | ;; | |
2963 | *) | |
2964 | is_elf=yes | |
2965 | ;; | |
2966 | esac | |
2967 | esac | |
2968 | ||
2969 | if test "$is_elf" = "yes"; then | |
2970 | # Check for target supported by gold. | |
93f9b408 | 2971 | case "${target}" in |
6d26190c JY |
2972 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
2973 | | aarch64*-*-* | tilegx*-*-*) | |
c7791212 NC |
2974 | configdirs="$configdirs gold" |
2975 | if test x${ENABLE_GOLD} = xdefault; then | |
2976 | default_ld=gold | |
2977 | fi | |
e6de499b | 2978 | ENABLE_GOLD=yes |
93f9b408 ILT |
2979 | ;; |
2980 | esac | |
e6de499b NC |
2981 | fi |
2982 | ;; | |
2983 | no) | |
2984 | ;; | |
2985 | *) | |
2986 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2987 | ;; | |
c7791212 NC |
2988 | esac |
2989 | ||
2990 | # Check whether --enable-ld was given. | |
2991 | if test "${enable_ld+set}" = set; then : | |
2992 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2993 | else | |
2994 | ENABLE_LD=yes | |
2995 | fi | |
2996 | ||
2997 | ||
2998 | case "${ENABLE_LD}" in | |
2999 | default) | |
d3b50760 | 3000 | if test x${default_ld} != x; then |
c7791212 NC |
3001 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
3002 | fi | |
3003 | ;; | |
3004 | yes) | |
3005 | ;; | |
3006 | no) | |
3007 | if test x${ENABLE_GOLD} != xyes; then | |
3008 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3009 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3010 | fi | |
3011 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3012 | ;; | |
3013 | *) | |
3014 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
3015 | ;; | |
3016 | esac | |
93f9b408 | 3017 | |
a0da8069 | 3018 | # Configure extra directories which are host specific |
252b5132 | 3019 | |
a0da8069 NN |
3020 | case "${host}" in |
3021 | *-cygwin*) | |
3022 | configdirs="$configdirs libtermcap" ;; | |
3023 | esac | |
252b5132 | 3024 | |
59f7ec45 HPN |
3025 | # A target can indicate whether a language isn't supported for some reason. |
3026 | # Only spaces may be used in this macro; not newlines or tabs. | |
3027 | unsupported_languages= | |
3028 | ||
c6b750e1 | 3029 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
3030 | # target this usually means that a port of the program doesn't |
3031 | # exist yet. | |
252b5132 | 3032 | |
a0da8069 | 3033 | case "${host}" in |
3516a403 | 3034 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 3035 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 3036 | ;; |
a0da8069 | 3037 | esac |
252b5132 | 3038 | |
4b1cb4fe | 3039 | |
89a1e9c3 PB |
3040 | # Check whether --enable-libquadmath was given. |
3041 | if test "${enable_libquadmath+set}" = set; then : | |
3042 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3043 | else | |
3044 | ENABLE_LIBQUADMATH=yes | |
3045 | fi | |
3046 | ||
3047 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3048 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3049 | fi | |
3050 | ||
3051 | ||
3052 | # Check whether --enable-libquadmath-support was given. | |
3053 | if test "${enable_libquadmath_support+set}" = set; then : | |
3054 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3055 | else | |
3056 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3057 | fi | |
3058 | ||
3059 | enable_libquadmath_support= | |
3060 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3061 | enable_libquadmath_support=no | |
3062 | fi | |
3063 | ||
3064 | ||
81ecdfbb RW |
3065 | # Check whether --enable-libada was given. |
3066 | if test "${enable_libada+set}" = set; then : | |
3067 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
3068 | else |
3069 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
3070 | fi |
3071 | ||
a2592b1b | 3072 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 3073 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
3074 | fi |
3075 | ||
81ecdfbb RW |
3076 | # Check whether --enable-libssp was given. |
3077 | if test "${enable_libssp+set}" = set; then : | |
3078 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
3079 | else |
3080 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
3081 | fi |
3082 | ||
5f128533 | 3083 | |
f66a9a70 L |
3084 | # Check whether --enable-libstdcxx was given. |
3085 | if test "${enable_libstdcxx+set}" = set; then : | |
3086 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3087 | else | |
3088 | ENABLE_LIBSTDCXX=default | |
3089 | fi | |
3090 | ||
3091 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1b6c0831 L |
3092 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
3093 | fi | |
3094 | ||
3095 | # If this is accelerator compiler and its target is intelmic we enable | |
3096 | # target liboffloadmic by default. If this is compiler with offloading | |
3097 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3098 | # liboffloadmic is disabled by default. | |
3099 | # Check whether --enable-liboffloadmic was given. | |
3100 | if test "${enable_liboffloadmic+set}" = set; then : | |
3101 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3102 | no | host | target) | |
3103 | enable_liboffloadmic=$enableval ;; | |
3104 | *) | |
3105 | as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; | |
3106 | esac | |
3107 | else | |
3108 | if test x"$enable_as_accelerator_for" != x; then | |
3109 | case "${target}" in | |
3110 | *-intelmic-* | *-intelmicemul-*) | |
3111 | enable_liboffloadmic=target | |
3112 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3113 | ;; | |
3114 | *) | |
3115 | enable_liboffloadmic=no | |
3116 | ;; | |
3117 | esac | |
3118 | else | |
3119 | case "${enable_offload_targets}" in | |
3120 | *-intelmic-* | *-intelmicemul-*) | |
3121 | enable_liboffloadmic=host | |
3122 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3123 | ;; | |
3124 | *) | |
3125 | enable_liboffloadmic=no | |
3126 | ;; | |
3127 | esac | |
3128 | fi | |
f66a9a70 L |
3129 | fi |
3130 | ||
1b6c0831 L |
3131 | |
3132 | ||
a0da8069 NN |
3133 | # Save it here so that, even in case of --enable-libgcj, if the Java |
3134 | # front-end isn't enabled, we still get libgcj disabled. | |
3135 | libgcj_saved=$libgcj | |
3136 | case $enable_libgcj in | |
3137 | yes) | |
3138 | # If we reset it here, it won't get added to noconfigdirs in the | |
3139 | # target-specific build rules, so it will be forcibly enabled | |
3140 | # (unless the Java language itself isn't enabled). | |
3141 | libgcj= | |
3142 | ;; | |
3143 | no) | |
3144 | # Make sure we get it printed in the list of not supported target libs. | |
9e1a94f4 ILT |
3145 | # Don't disable libffi, though, other languages use it. |
3146 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
33d23ee8 ILT |
3147 | # Clear libgcj_saved so that even if java is enabled libffi won't be |
3148 | # built. | |
3149 | libgcj_saved= | |
a0da8069 NN |
3150 | ;; |
3151 | esac | |
252b5132 | 3152 | |
ffdd6afc ILT |
3153 | # Check whether --enable-static-libjava was given. |
3154 | if test "${enable_static_libjava+set}" = set; then : | |
3155 | enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval | |
3156 | else | |
3157 | ENABLE_STATIC_LIBJAVA=no | |
3158 | fi | |
3159 | ||
3160 | enable_static_libjava= | |
3161 | if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then | |
3162 | enable_static_libjava=yes | |
3163 | fi | |
3164 | ||
3165 | if test x$enable_static_libjava != xyes ; then | |
3166 | EXTRA_CONFIGARGS_LIBJAVA=--disable-static | |
3167 | fi | |
3168 | ||
4b1cb4fe | 3169 | |
a6df5a19 PB |
3170 | # Disable libgomp on non POSIX hosted systems. |
3171 | if test x$enable_libgomp = x ; then | |
b3ded179 PB |
3172 | # Enable libgomp by default on hosted POSIX systems. |
3173 | case "${target}" in | |
29383458 | 3174 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
b3ded179 | 3175 | ;; |
5b806d27 | 3176 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
b3ded179 | 3177 | ;; |
2479f722 | 3178 | *-*-solaris2* | *-*-hpux11*) |
b3ded179 PB |
3179 | ;; |
3180 | *-*-darwin* | *-*-aix*) | |
3181 | ;; | |
3182 | *) | |
3183 | noconfigdirs="$noconfigdirs target-libgomp" | |
3184 | ;; | |
3185 | esac | |
a6df5a19 | 3186 | fi |
b3ded179 | 3187 | |
7ec59b9e L |
3188 | # Disable libatomic on unsupported systems. |
3189 | if test -d ${srcdir}/libatomic; then | |
3190 | if test x$enable_libatomic = x; then | |
3191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3192 | $as_echo_n "checking for libatomic support... " >&6; } | |
3193 | if (srcdir=${srcdir}/libatomic; \ | |
3194 | . ${srcdir}/configure.tgt; \ | |
3195 | test -n "$UNSUPPORTED") | |
3196 | then | |
3197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3198 | $as_echo "no" >&6; } | |
3199 | noconfigdirs="$noconfigdirs target-libatomic" | |
3200 | else | |
3201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3202 | $as_echo "yes" >&6; } | |
3203 | fi | |
3204 | fi | |
3205 | fi | |
3206 | ||
522e3d71 | 3207 | # Disable libcilkrts on unsupported systems. |
3208 | if test -d ${srcdir}/libcilkrts; then | |
3209 | if test x$enable_libcilkrts = x; then | |
3210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5 | |
3211 | $as_echo_n "checking for libcilkrts support... " >&6; } | |
3212 | if (srcdir=${srcdir}/libcilkrts; \ | |
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-libcilkrts" | |
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 | ||
1b6c0831 L |
3226 | # Disable liboffloadmic on unsupported systems. |
3227 | if test -d ${srcdir}/liboffloadmic; then | |
3228 | if test x$enable_liboffloadmic != xno; then | |
3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3230 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3231 | if (srcdir=${srcdir}/liboffloadmic; \ | |
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-liboffloadmic" | |
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 | ||
d32e2926 RH |
3245 | # Disable libitm on unsupported systems. |
3246 | if test -d ${srcdir}/libitm; then | |
3247 | if test x$enable_libitm = x; then | |
3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3249 | $as_echo_n "checking for libitm support... " >&6; } | |
3250 | if (srcdir=${srcdir}/libitm; \ | |
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-libitm" | |
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 | ||
5286fdef L |
3264 | # Disable libsanitizer on unsupported systems. |
3265 | if test -d ${srcdir}/libsanitizer; then | |
3266 | if test x$enable_libsanitizer = x; then | |
3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3268 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3269 | if (srcdir=${srcdir}/libsanitizer; \ | |
3270 | . ${srcdir}/configure.tgt; \ | |
3271 | test -n "$UNSUPPORTED") | |
3272 | then | |
3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3274 | $as_echo "no" >&6; } | |
3275 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3276 | else | |
3277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3278 | $as_echo "yes" >&6; } | |
3279 | fi | |
3280 | fi | |
3281 | fi | |
3282 | ||
95e43135 JBG |
3283 | # Disable libvtv on unsupported systems. |
3284 | if test -d ${srcdir}/libvtv; then | |
3285 | if test x$enable_libvtv = x; then | |
3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3287 | $as_echo_n "checking for libvtv support... " >&6; } | |
3288 | if (srcdir=${srcdir}/libvtv; \ | |
3289 | . ${srcdir}/configure.tgt; \ | |
3290 | test "$VTV_SUPPORTED" != "yes") | |
3291 | then | |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3293 | $as_echo "no" >&6; } | |
3294 | noconfigdirs="$noconfigdirs target-libvtv" | |
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 | ||
1b6c0831 L |
3302 | |
3303 | # Enable libmpx on supported systems by request. | |
3304 | if test -d ${srcdir}/libmpx; then | |
3305 | if test x$enable_libmpx = xyes; then | |
3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5 | |
3307 | $as_echo_n "checking for libmpx support... " >&6; } | |
3308 | if (srcdir=${srcdir}/libmpx; \ | |
3309 | . ${srcdir}/configure.tgt; \ | |
3310 | test "$LIBMPX_SUPPORTED" != "yes") | |
3311 | then | |
3312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3313 | $as_echo "no" >&6; } | |
3314 | noconfigdirs="$noconfigdirs target-libmpx" | |
3315 | else | |
3316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3317 | $as_echo "yes" >&6; } | |
3318 | fi | |
3319 | else | |
3320 | noconfigdirs="$noconfigdirs target-libmpx" | |
3321 | fi | |
3322 | fi | |
3323 | ||
3324 | ||
3325 | ||
1488e230 DE |
3326 | # Disable libquadmath for some systems. |
3327 | case "${target}" in | |
5286fdef L |
3328 | avr-*-*) |
3329 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3330 | ;; | |
1488e230 DE |
3331 | # libquadmath is unused on AIX and libquadmath build process use of |
3332 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3333 | powerpc-*-aix* | rs6000-*-aix*) | |
3334 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3335 | ;; | |
3336 | esac | |
3337 | ||
065a5627 JM |
3338 | # Disable libssp for some systems. |
3339 | case "${target}" in | |
3340 | avr-*-*) | |
c5f5c3c2 | 3341 | # No hosted I/O support. |
065a5627 JM |
3342 | noconfigdirs="$noconfigdirs target-libssp" |
3343 | ;; | |
3344 | powerpc-*-aix* | rs6000-*-aix*) | |
3345 | noconfigdirs="$noconfigdirs target-libssp" | |
3346 | ;; | |
99c513f6 | 3347 | rl78-*-*) |
202e2356 NC |
3348 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3349 | # doesn't fault for those - instead, it gives a build-time error | |
3350 | # for explicit misaligned loads. | |
99c513f6 DD |
3351 | noconfigdirs="$noconfigdirs target-libssp" |
3352 | ;; | |
1b6c0831 L |
3353 | visium-*-*) |
3354 | # No hosted I/O support. | |
3355 | noconfigdirs="$noconfigdirs target-libssp" | |
3356 | ;; | |
065a5627 JM |
3357 | esac |
3358 | ||
065a5627 | 3359 | # Disable libstdc++-v3 for some systems. |
f66a9a70 L |
3360 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3361 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3362 | case "${target}" in | |
3363 | *-*-vxworks*) | |
3364 | # VxWorks uses the Dinkumware C++ library. | |
3365 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3366 | ;; | |
3367 | arm*-wince-pe*) | |
3368 | # the C++ libraries don't build on top of CE's C libraries | |
3369 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3370 | ;; | |
3371 | avr-*-*) | |
3372 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3373 | ;; | |
3374 | esac | |
3375 | fi | |
065a5627 JM |
3376 | |
3377 | # Disable Fortran for some systems. | |
3378 | case "${target}" in | |
3379 | mmix-*-*) | |
3380 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3381 | unsupported_languages="$unsupported_languages fortran" | |
3382 | ;; | |
3383 | esac | |
3384 | ||
0827f9a6 | 3385 | # Disable Java if libffi is not supported. |
9863d716 | 3386 | case "${target}" in |
e7d5abf1 JBG |
3387 | aarch64-*-*) |
3388 | ;; | |
0827f9a6 JM |
3389 | alpha*-*-*) |
3390 | ;; | |
3391 | arm*-*-*) | |
3392 | ;; | |
3393 | cris-*-*) | |
3394 | ;; | |
3395 | frv-*-*) | |
3396 | ;; | |
3397 | hppa*-*-linux*) | |
3398 | ;; | |
3399 | hppa*-*-hpux*) | |
3400 | ;; | |
3401 | i?86-*-*) | |
3402 | ;; | |
3403 | ia64*-*-*) | |
3404 | ;; | |
3405 | m32r*-*-*) | |
3406 | ;; | |
3407 | m68k-*-*) | |
3408 | ;; | |
2479f722 | 3409 | mips*-*-rtems*) |
0827f9a6 JM |
3410 | ;; |
3411 | mips*-*-linux*) | |
3412 | ;; | |
3413 | powerpc*-*-linux*) | |
3414 | ;; | |
3415 | powerpc-*-darwin*) | |
3416 | ;; | |
3417 | powerpc-*-aix* | rs6000-*-aix*) | |
3418 | ;; | |
3419 | powerpc-*-freebsd*) | |
3420 | ;; | |
3421 | powerpc64-*-freebsd*) | |
3422 | ;; | |
3423 | powerpc*-*-rtems*) | |
9863d716 | 3424 | ;; |
0827f9a6 JM |
3425 | s390-*-* | s390x-*-*) |
3426 | ;; | |
3427 | sh-*-* | sh[34]*-*-*) | |
3428 | ;; | |
3429 | sh64-*-* | sh5*-*-*) | |
3430 | ;; | |
3431 | sparc*-*-*) | |
3432 | ;; | |
3433 | x86_64-*-*) | |
3434 | ;; | |
3435 | *-*-*) | |
3436 | unsupported_languages="$unsupported_languages java" | |
3437 | ;; | |
3438 | esac | |
3439 | ||
3440 | # Disable Java, libgcj or related libraries for some systems. | |
3441 | case "${target}" in | |
9863d716 JM |
3442 | powerpc-*-darwin*) |
3443 | ;; | |
3444 | i[3456789]86-*-darwin*) | |
3445 | ;; | |
3446 | x86_64-*-darwin[912]*) | |
3447 | ;; | |
3448 | *-*-darwin*) | |
3449 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3450 | ;; | |
9863d716 JM |
3451 | *-*-netware*) |
3452 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3453 | ;; | |
3454 | *-*-rtems*) | |
3455 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3456 | ;; | |
3457 | *-*-tpf*) | |
3458 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3459 | ;; | |
3460 | *-*-uclinux*) | |
3461 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3462 | ;; | |
3463 | *-*-vxworks*) | |
3464 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3465 | ;; | |
9863d716 JM |
3466 | alpha*-*-*vms*) |
3467 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3468 | ;; | |
1b6c0831 L |
3469 | arm*-*-freebsd*) |
3470 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3471 | ;; | |
0827f9a6 | 3472 | arm-wince-pe) |
9863d716 JM |
3473 | noconfigdirs="$noconfigdirs ${libgcj}" |
3474 | ;; | |
9863d716 JM |
3475 | arm*-*-symbianelf*) |
3476 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3477 | ;; | |
9863d716 | 3478 | bfin-*-*) |
9863d716 JM |
3479 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3480 | ;; | |
9863d716 JM |
3481 | cris-*-* | crisv32-*-*) |
3482 | unsupported_languages="$unsupported_languages java" | |
3483 | case "${target}" in | |
3484 | *-*-linux*) | |
3485 | ;; | |
3486 | *) # See PR46792 regarding target-libffi. | |
3487 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3488 | esac | |
3489 | ;; | |
9863d716 JM |
3490 | hppa*64*-*-linux*) |
3491 | # In this case, it's because the hppa64-linux target is for | |
3492 | # the kernel only at this point and has no libc, and thus no | |
3493 | # headers, crt*.o, etc., all of which are needed by these. | |
82ae827f | 3494 | unsupported_languages="$unsupported_languages java" |
9863d716 | 3495 | ;; |
82ae827f | 3496 | hppa*64*-*-hpux*) |
9863d716 JM |
3497 | noconfigdirs="$noconfigdirs ${libgcj}" |
3498 | ;; | |
3499 | hppa*-hp-hpux11*) | |
3500 | ;; | |
82ae827f | 3501 | hppa*-*-hpux*) |
9863d716 JM |
3502 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't |
3503 | # build on HP-UX 10.20. | |
3504 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3505 | ;; | |
9863d716 JM |
3506 | ia64*-*-*vms*) |
3507 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3508 | ;; | |
9863d716 JM |
3509 | i[3456789]86-w64-mingw*) |
3510 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3511 | ;; | |
3512 | i[3456789]86-*-mingw*) | |
3513 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3514 | ;; | |
3515 | x86_64-*-mingw*) | |
3516 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3517 | ;; | |
9863d716 JM |
3518 | mmix-*-*) |
3519 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
9863d716 JM |
3520 | ;; |
3521 | powerpc-*-aix*) | |
3522 | # copied from rs6000-*-* entry | |
3523 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3524 | ;; | |
9863d716 JM |
3525 | rs6000-*-aix*) |
3526 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3527 | ;; | |
3f8107ab AM |
3528 | ft32-*-*) |
3529 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3530 | ;; | |
9863d716 JM |
3531 | *-*-lynxos*) |
3532 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3533 | ;; | |
9863d716 JM |
3534 | esac |
3535 | ||
1b6c0831 L |
3536 | # Disable the go frontend on systems where it is known to not work. Please keep |
3537 | # this in sync with contrib/config-list.mk. | |
3538 | case "${target}" in | |
3539 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) | |
3540 | unsupported_languages="$unsupported_languages go" | |
3541 | ;; | |
3542 | esac | |
3543 | ||
a413f71a ILT |
3544 | # Disable libgo for some systems where it is known to not work. |
3545 | # For testing, you can easily override this with --enable-libgo. | |
3546 | if test x$enable_libgo = x; then | |
3547 | case "${target}" in | |
3548 | *-*-darwin*) | |
3549 | # PR 46986 | |
3550 | noconfigdirs="$noconfigdirs target-libgo" | |
3551 | ;; | |
3552 | *-*-cygwin* | *-*-mingw*) | |
3553 | noconfigdirs="$noconfigdirs target-libgo" | |
3554 | ;; | |
3555 | *-*-aix*) | |
3556 | noconfigdirs="$noconfigdirs target-libgo" | |
3557 | ;; | |
3558 | esac | |
3559 | fi | |
3560 | ||
691bb5a1 DD |
3561 | # Default libgloss CPU subdirectory. |
3562 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3563 | |
ff46fb8f JM |
3564 | case "${target}" in |
3565 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3566 | libgloss_dir=wince | |
3567 | ;; | |
f1dd87fc YZ |
3568 | aarch64*-*-* ) |
3569 | libgloss_dir=aarch64 | |
3570 | ;; | |
ff46fb8f JM |
3571 | arm*-*-*) |
3572 | libgloss_dir=arm | |
3573 | ;; | |
3574 | cris-*-* | crisv32-*-*) | |
3575 | libgloss_dir=cris | |
3576 | ;; | |
3577 | hppa*-*-*) | |
3578 | libgloss_dir=pa | |
3579 | ;; | |
3580 | i[3456789]86-*-*) | |
3581 | libgloss_dir=i386 | |
3582 | ;; | |
3583 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3584 | libgloss_dir=m68hc11 | |
3585 | ;; | |
3586 | m68*-*-* | fido-*-*) | |
3587 | libgloss_dir=m68k | |
3588 | ;; | |
3589 | mips*-*-*) | |
3590 | libgloss_dir=mips | |
3591 | ;; | |
3592 | powerpc*-*-*) | |
3593 | libgloss_dir=rs6000 | |
3594 | ;; | |
3595 | sparc*-*-*) | |
3596 | libgloss_dir=sparc | |
3597 | ;; | |
3598 | esac | |
3599 | ||
c7e4b184 | 3600 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3601 | case "${target}" in |
c7e4b184 JM |
3602 | alpha*-dec-osf*) |
3603 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3604 | ;; | |
3605 | i[3456789]86-*-linux*) | |
3606 | # This section makes it possible to build newlib natively on linux. | |
3607 | # If we are using a cross compiler then don't configure newlib. | |
3608 | if test x${is_cross_compiler} != xno ; then | |
3609 | noconfigdirs="$noconfigdirs target-newlib" | |
3610 | fi | |
3611 | noconfigdirs="$noconfigdirs target-libgloss" | |
3612 | # If we are not using a cross compiler, do configure newlib. | |
3613 | # Note however, that newlib will only be configured in this situation | |
3614 | # if the --with-newlib option has been given, because otherwise | |
3615 | # 'target-newlib' will appear in skipdirs. | |
3616 | ;; | |
3617 | i[3456789]86-*-rdos*) | |
3618 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3619 | ;; | |
3620 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3621 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3622 | ;; | |
3623 | sparc-*-sunos4*) | |
3624 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3625 | ;; | |
3626 | *-*-aix*) | |
3627 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3628 | ;; | |
3629 | *-*-beos*) | |
3630 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3631 | ;; | |
a0da8069 | 3632 | *-*-chorusos) |
b2f14e4a | 3633 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3634 | ;; |
c7e4b184 JM |
3635 | *-*-dragonfly*) |
3636 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3637 | ;; | |
3638 | *-*-freebsd*) | |
3639 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3640 | ;; | |
3641 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3642 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3643 | ;; | |
3644 | *-*-lynxos*) | |
3645 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3646 | ;; | |
3647 | *-*-mingw*) | |
3648 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3649 | ;; | |
3650 | *-*-netbsd*) | |
3651 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3652 | ;; | |
3653 | *-*-netware*) | |
3654 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3655 | ;; | |
3656 | *-*-tpf*) | |
3657 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3658 | ;; | |
3659 | *-*-uclinux*) | |
3660 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3661 | ;; | |
3662 | *-*-vxworks*) | |
3663 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3664 | ;; | |
3665 | esac | |
3666 | ||
3667 | case "${target}" in | |
3668 | *-*-chorusos) | |
3669 | ;; | |
24741ab2 | 3670 | powerpc-*-darwin*) |
9d39db92 | 3671 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3672 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3673 | ;; |
85bd1942 TG |
3674 | i[3456789]86-*-darwin*) |
3675 | noconfigdirs="$noconfigdirs ld gprof" | |
3676 | noconfigdirs="$noconfigdirs sim target-rda" | |
3677 | ;; | |
e8a5fa9c | 3678 | x86_64-*-darwin[912]*) |
652dec25 TG |
3679 | noconfigdirs="$noconfigdirs ld gas gprof" |
3680 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3681 | ;; |
04d1ab34 | 3682 | *-*-darwin*) |
d320aacb | 3683 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3684 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3685 | ;; |
5b806d27 | 3686 | *-*-dragonfly*) |
5b806d27 | 3687 | ;; |
de0b4a87 | 3688 | *-*-freebsd*) |
4b1cb4fe DD |
3689 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3690 | && test -f /usr/local/include/gmp.h; then | |
3691 | with_gmp=/usr/local | |
3692 | fi | |
4b1cb4fe | 3693 | ;; |
f8a495c8 NC |
3694 | *-*-kaos*) |
3695 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3696 | noconfigdirs="$noconfigdirs target-libgloss" |
3697 | ;; | |
a0da8069 | 3698 | *-*-netbsd*) |
a0da8069 | 3699 | ;; |
2a3124ca | 3700 | *-*-netware*) |
a0da8069 NN |
3701 | ;; |
3702 | *-*-rtems*) | |
9863d716 | 3703 | noconfigdirs="$noconfigdirs target-libgloss" |
f8797b5a JB |
3704 | # this is not caught below because this stanza matches earlier |
3705 | case $target in | |
3706 | or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;; | |
3707 | esac | |
a0da8069 | 3708 | ;; |
1587117a EC |
3709 | # The tpf target doesn't support gdb yet. |
3710 | *-*-tpf*) | |
c7e4b184 | 3711 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3712 | ;; |
c1968181 | 3713 | *-*-uclinux*) |
c7e4b184 | 3714 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3715 | ;; |
a0da8069 | 3716 | *-*-vxworks*) |
a0da8069 NN |
3717 | ;; |
3718 | alpha*-dec-osf*) | |
3719 | # ld works, but does not support shared libraries. | |
a0da8069 | 3720 | # gas doesn't generate exception information. |
c7e4b184 | 3721 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3722 | ;; |
3723 | alpha*-*-*vms*) | |
9863d716 | 3724 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3725 | ;; |
a0da8069 NN |
3726 | alpha*-*-*) |
3727 | # newlib is not 64 bit ready | |
9863d716 | 3728 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3729 | ;; |
a0da8069 | 3730 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3731 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 | 3732 | ;; |
f4cfb980 | 3733 | arc-*-*|arceb-*-*) |
782cb41f | 3734 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3735 | ;; |
a0da8069 | 3736 | arm-*-pe*) |
9863d716 | 3737 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3738 | ;; |
a0da8069 | 3739 | arm-*-riscix*) |
b2f14e4a | 3740 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3741 | ;; |
8e71395b L |
3742 | avr-*-rtems*) |
3743 | ;; | |
3744 | avr-*-*) | |
3745 | if test x${with_avrlibc} != xno; then | |
3746 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3747 | fi | |
3748 | ;; | |
a0da8069 | 3749 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3750 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3751 | ;; |
b2f14e4a JM |
3752 | tic54x-*-*) |
3753 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3754 | ;; |
a0da8069 | 3755 | d10v-*-*) |
b2f14e4a | 3756 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3757 | ;; |
3758 | d30v-*-*) | |
b2f14e4a | 3759 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3760 | ;; |
3761 | fr30-*-elf*) | |
9863d716 | 3762 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3763 | ;; |
3f8107ab AM |
3764 | ft32-*-*) |
3765 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3766 | ;; | |
20135e4c | 3767 | moxie-*-*) |
10b8fe5e | 3768 | noconfigdirs="$noconfigdirs" |
20135e4c | 3769 | ;; |
a0da8069 | 3770 | h8300*-*-*) |
9863d716 | 3771 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3772 | ;; |
3773 | h8500-*-*) | |
b2f14e4a | 3774 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3775 | ;; |
caeba88f | 3776 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3777 | ;; |
93cc359e | 3778 | hppa*64*-*-linux*) |
a0da8069 | 3779 | ;; |
f0ff0f90 | 3780 | hppa*-*-linux*) |
5dcac624 | 3781 | ;; |
a0da8069 | 3782 | hppa*-*-*elf* | \ |
a0da8069 NN |
3783 | hppa*-*-lites* | \ |
3784 | hppa*-*-openbsd* | \ | |
3785 | hppa*64*-*-*) | |
4f0ef2d8 CD |
3786 | ;; |
3787 | hppa*-hp-hpux11*) | |
0377a422 | 3788 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3789 | ;; |
691bb5a1 | 3790 | hppa*-*-pro*) |
691bb5a1 | 3791 | ;; |
a0da8069 | 3792 | hppa*-*-*) |
9863d716 | 3793 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3794 | ;; |
b07c2aad | 3795 | i960-*-*) |
b2f14e4a | 3796 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3797 | ;; |
a0da8069 NN |
3798 | ia64*-*-elf*) |
3799 | # No gdb support yet. | |
0377a422 | 3800 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3801 | ;; |
3802 | ia64*-**-hpux*) | |
92c9a463 | 3803 | # No ld support yet. |
9863d716 | 3804 | noconfigdirs="$noconfigdirs libgui itcl ld" |
a0da8069 | 3805 | ;; |
19e99079 | 3806 | ia64*-*-*vms*) |
7ec59b9e L |
3807 | # No ld support yet. |
3808 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
19e99079 | 3809 | ;; |
1f53ca9a | 3810 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3811 | ;; |
3812 | i[3456789]86-*-mingw*) | |
45055374 | 3813 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3814 | ;; |
a0da8069 NN |
3815 | *-*-cygwin*) |
3816 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3817 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3818 | # always build newlib if winsup directory is present. |
45055374 | 3819 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3820 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3821 | elif test -d "$srcdir/newlib"; then |
45055374 | 3822 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3823 | fi |
c6b750e1 | 3824 | ;; |
ec11bdc6 | 3825 | i[3456789]86-*-pe) |
782cb41f | 3826 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3827 | ;; |
ec11bdc6 | 3828 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3829 | # The linker does not yet know about weak symbols in COFF, |
3830 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3831 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3832 | ;; |
ec11bdc6 | 3833 | i[3456789]86-*-sco*) |
b2f14e4a | 3834 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3835 | ;; |
cff32a7c | 3836 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
a0da8069 NN |
3837 | noconfigdirs="$noconfigdirs target-libgloss" |
3838 | ;; | |
ec11bdc6 | 3839 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3840 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3841 | ;; |
ec11bdc6 | 3842 | i[3456789]86-*-beos*) |
c7e4b184 | 3843 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3844 | ;; |
b59bea8a | 3845 | i[3456789]86-*-rdos*) |
c7e4b184 | 3846 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3847 | ;; |
a0da8069 | 3848 | mmix-*-*) |
9863d716 | 3849 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3850 | ;; |
4970f871 | 3851 | mt-*-*) |
cdb9b172 AH |
3852 | noconfigdirs="$noconfigdirs sim" |
3853 | ;; | |
a0da8069 NN |
3854 | powerpc-*-aix*) |
3855 | # copied from rs6000-*-* entry | |
c7e4b184 | 3856 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3857 | ;; |
93cc359e | 3858 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 3859 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 3860 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
3861 | # always build newlib. |
3862 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3863 | ;; | |
3864 | # This is temporary until we can link against shared libraries | |
3865 | powerpcle-*-solaris*) | |
b2f14e4a | 3866 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
3867 | ;; |
3868 | powerpc-*-beos*) | |
c7e4b184 | 3869 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3870 | ;; |
a0da8069 | 3871 | rs6000-*-lynxos*) |
c7e4b184 | 3872 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3873 | ;; |
3874 | rs6000-*-aix*) | |
c7e4b184 | 3875 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3876 | ;; |
3877 | rs6000-*-*) | |
9863d716 | 3878 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3879 | ;; |
3880 | m68k-apollo-*) | |
b2f14e4a | 3881 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 3882 | ;; |
25a07265 | 3883 | microblaze*) |
9863d716 | 3884 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 3885 | ;; |
a9d58c06 | 3886 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
5bd8be13 RS |
3887 | if test x$with_newlib = xyes; then |
3888 | noconfigdirs="$noconfigdirs gprof" | |
3889 | fi | |
5bd8be13 | 3890 | ;; |
a0da8069 | 3891 | mips*-*-irix5*) |
b2f14e4a | 3892 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
3893 | ;; |
3894 | mips*-*-irix6*) | |
9863d716 | 3895 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3896 | ;; |
a0da8069 | 3897 | mips*-*-bsd*) |
e8044f35 | 3898 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
a0da8069 | 3899 | ;; |
a0da8069 | 3900 | mips*-*-linux*) |
a0da8069 | 3901 | ;; |
e8044f35 RS |
3902 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3903 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3904 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3905 | ;; | |
a0da8069 | 3906 | mips*-*-*) |
9863d716 | 3907 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3908 | ;; |
b25b5cef CJW |
3909 | nds32*-*-*) |
3910 | noconfigdirs="$noconfigdirs gdb" | |
3911 | ;; | |
1b6c0831 L |
3912 | nvptx*-*-*) |
3913 | # nvptx is just a compiler | |
3914 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" | |
3915 | ;; | |
cfbc1a6c JS |
3916 | or1k*-*-*) |
3917 | noconfigdirs="$noconfigdirs gdb" | |
3918 | ;; | |
dbf85af7 | 3919 | sh-*-* | sh64-*-*) |
e8a5fa9c RW |
3920 | case "${target}" in |
3921 | sh*-*-elf) | |
9863d716 | 3922 | ;; |
e8a5fa9c | 3923 | *) |
9863d716 | 3924 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 3925 | esac |
a0da8069 | 3926 | ;; |
a0da8069 | 3927 | sparc-*-sunos4*) |
c7e4b184 | 3928 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
3929 | use_gnu_ld=no |
3930 | fi | |
3931 | ;; | |
619a3713 | 3932 | tic6x-*-*) |
40ae9136 | 3933 | noconfigdirs="$noconfigdirs sim" |
619a3713 | 3934 | ;; |
68d122bb | 3935 | tilepro*-*-* | tilegx*-*-*) |
eb4b2452 NC |
3936 | noconfigdirs="$noconfigdirs sim" |
3937 | ;; | |
a0da8069 | 3938 | v810-*-*) |
b2f14e4a | 3939 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
3940 | ;; |
3941 | vax-*-*) | |
9863d716 | 3942 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3943 | ;; |
a0da8069 | 3944 | esac |
252b5132 | 3945 | |
a0da8069 NN |
3946 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3947 | # depends upon some newlib header files. | |
3948 | case "${noconfigdirs}" in | |
3949 | *target-libgloss*) ;; | |
3950 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3951 | esac | |
3952 | ||
a0da8069 | 3953 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
3954 | host_makefile_frag=/dev/null |
3955 | if test -d ${srcdir}/config ; then | |
3956 | case "${host}" in | |
ec11bdc6 | 3957 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
3958 | host_makefile_frag="config/mh-djgpp" |
3959 | ;; | |
3960 | *-cygwin*) | |
e33b51a6 | 3961 | |
81ecdfbb RW |
3962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3963 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 3964 | echo a >cygwin-cat-check |
1f53ca9a | 3965 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 3966 | rm cygwin-cat-check |
81ecdfbb RW |
3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3968 | $as_echo "yes" >&6; } | |
e33b51a6 | 3969 | else |
8ade07e9 | 3970 | rm cygwin-cat-check |
81ecdfbb RW |
3971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3972 | $as_echo "no" >&6; } | |
3973 | as_fn_error "The cat command does not ignore carriage return characters. | |
e33b51a6 NC |
3974 | Please either mount the build directory in binary mode or run the following |
3975 | commands before running any configure script: | |
3976 | set -o igncr | |
3977 | export SHELLOPTS | |
81ecdfbb | 3978 | " "$LINENO" 5 |
e33b51a6 | 3979 | fi |
e33b51a6 | 3980 | |
a0da8069 NN |
3981 | host_makefile_frag="config/mh-cygwin" |
3982 | ;; | |
8a1599ab | 3983 | *-mingw*) |
84e7906e | 3984 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 3985 | ;; |
da888c87 | 3986 | hppa*-hp-hpux10*) |
da888c87 | 3987 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 3988 | ;; |
3516a403 | 3989 | hppa*-hp-hpux*) |
da888c87 PB |
3990 | host_makefile_frag="config/mh-pa" |
3991 | ;; | |
3992 | hppa*-*) | |
3993 | host_makefile_frag="config/mh-pa" | |
3994 | ;; | |
e552509b ILT |
3995 | *-*-darwin*) |
3996 | host_makefile_frag="config/mh-darwin" | |
0df3d27f | 3997 | ;; |
f6d183c0 PB |
3998 | powerpc-*-aix*) |
3999 | host_makefile_frag="config/mh-ppc-aix" | |
4000 | ;; | |
4001 | rs6000-*-aix*) | |
4002 | host_makefile_frag="config/mh-ppc-aix" | |
4003 | ;; | |
a0da8069 NN |
4004 | esac |
4005 | fi | |
4006 | ||
9e07f89d | 4007 | if test "${build}" != "${host}" ; then |
1576798e PB |
4008 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4009 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 4010 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
1576798e PB |
4011 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
4012 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
4013 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
e552509b | 4014 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
1576798e PB |
4015 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4016 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4017 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4018 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4019 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4020 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4021 | else | |
4022 | AR_FOR_BUILD="\$(AR)" | |
4023 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 4024 | CC_FOR_BUILD="\$(CC)" |
1576798e PB |
4025 | CXX_FOR_BUILD="\$(CXX)" |
4026 | GCJ_FOR_BUILD="\$(GCJ)" | |
4027 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
e552509b | 4028 | GOC_FOR_BUILD="\$(GOC)" |
1576798e PB |
4029 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4030 | LD_FOR_BUILD="\$(LD)" | |
4031 | NM_FOR_BUILD="\$(NM)" | |
4032 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4033 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4034 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
4035 | fi |
4036 | ||
4037 | ac_ext=c | |
c6b750e1 DJ |
4038 | ac_cpp='$CPP $CPPFLAGS' |
4039 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4040 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4041 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4042 | if test -n "$ac_tool_prefix"; then | |
4043 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4044 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
4045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4046 | $as_echo_n "checking for $ac_word... " >&6; } | |
4047 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4048 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
4049 | else |
4050 | if test -n "$CC"; then | |
4051 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4052 | else | |
4053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4054 | for as_dir in $PATH | |
4055 | do | |
4056 | IFS=$as_save_IFS | |
4057 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4058 | for ac_exec_ext in '' $ac_executable_extensions; do |
4059 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4060 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 4061 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4062 | break 2 |
4063 | fi | |
4064 | done | |
81ecdfbb RW |
4065 | done |
4066 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4067 | |
4068 | fi | |
4069 | fi | |
4070 | CC=$ac_cv_prog_CC | |
4071 | if test -n "$CC"; then | |
81ecdfbb RW |
4072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4073 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4074 | else |
81ecdfbb RW |
4075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4076 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4077 | fi |
4078 | ||
81ecdfbb | 4079 | |
c6b750e1 DJ |
4080 | fi |
4081 | if test -z "$ac_cv_prog_CC"; then | |
4082 | ac_ct_CC=$CC | |
6a9cf61e | 4083 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 4084 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4086 | $as_echo_n "checking for $ac_word... " >&6; } | |
4087 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4088 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
4089 | else |
4090 | if test -n "$ac_ct_CC"; then | |
4091 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4092 | else | |
4093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4094 | for as_dir in $PATH | |
4095 | do | |
4096 | IFS=$as_save_IFS | |
4097 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4098 | for ac_exec_ext in '' $ac_executable_extensions; do |
4099 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4100 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4102 | break 2 |
4103 | fi | |
4104 | done | |
81ecdfbb RW |
4105 | done |
4106 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4107 | |
4108 | fi | |
4109 | fi | |
4110 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4111 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4113 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 4114 | else |
81ecdfbb RW |
4115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4116 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4117 | fi |
4118 | ||
81ecdfbb RW |
4119 | if test "x$ac_ct_CC" = x; then |
4120 | CC="" | |
4121 | else | |
4122 | case $cross_compiling:$ac_tool_warned in | |
4123 | yes:) | |
4124 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4125 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4126 | ac_tool_warned=yes ;; | |
4127 | esac | |
4128 | CC=$ac_ct_CC | |
4129 | fi | |
c6b750e1 DJ |
4130 | else |
4131 | CC="$ac_cv_prog_CC" | |
4132 | fi | |
4133 | ||
4134 | if test -z "$CC"; then | |
81ecdfbb RW |
4135 | if test -n "$ac_tool_prefix"; then |
4136 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 4137 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4139 | $as_echo_n "checking for $ac_word... " >&6; } | |
4140 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4141 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4142 | else |
4143 | if test -n "$CC"; then | |
4144 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4145 | else | |
c6b750e1 DJ |
4146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4147 | for as_dir in $PATH | |
4148 | do | |
4149 | IFS=$as_save_IFS | |
4150 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4151 | for ac_exec_ext in '' $ac_executable_extensions; do |
4152 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4153 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4154 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4155 | break 2 |
4156 | fi | |
4157 | done | |
81ecdfbb RW |
4158 | done |
4159 | IFS=$as_save_IFS | |
c6b750e1 | 4160 | |
9e07f89d NN |
4161 | fi |
4162 | fi | |
c6b750e1 | 4163 | CC=$ac_cv_prog_CC |
9e07f89d | 4164 | if test -n "$CC"; then |
81ecdfbb RW |
4165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4166 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4167 | else |
81ecdfbb RW |
4168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4169 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4170 | fi |
4171 | ||
c6b750e1 | 4172 | |
81ecdfbb | 4173 | fi |
c6b750e1 | 4174 | fi |
9e07f89d NN |
4175 | if test -z "$CC"; then |
4176 | # Extract the first word of "cc", so it can be a program name with args. | |
4177 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4179 | $as_echo_n "checking for $ac_word... " >&6; } | |
4180 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4181 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4182 | else |
4183 | if test -n "$CC"; then | |
4184 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4185 | else | |
9e07f89d | 4186 | ac_prog_rejected=no |
c6b750e1 DJ |
4187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4188 | for as_dir in $PATH | |
4189 | do | |
4190 | IFS=$as_save_IFS | |
4191 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4192 | for ac_exec_ext in '' $ac_executable_extensions; do |
4193 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 DJ |
4194 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4195 | ac_prog_rejected=yes | |
4196 | continue | |
4197 | fi | |
4198 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4199 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4200 | break 2 |
4201 | fi | |
4202 | done | |
81ecdfbb RW |
4203 | done |
4204 | IFS=$as_save_IFS | |
c6b750e1 | 4205 | |
9e07f89d NN |
4206 | if test $ac_prog_rejected = yes; then |
4207 | # We found a bogon in the path, so make sure we never use it. | |
4208 | set dummy $ac_cv_prog_CC | |
4209 | shift | |
c6b750e1 | 4210 | if test $# != 0; then |
9e07f89d NN |
4211 | # We chose a different compiler from the bogus one. |
4212 | # However, it has the same basename, so the bogon will be chosen | |
4213 | # first if we set CC to just the basename; use the full file name. | |
4214 | shift | |
c6b750e1 | 4215 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
4216 | fi |
4217 | fi | |
4218 | fi | |
4219 | fi | |
c6b750e1 | 4220 | CC=$ac_cv_prog_CC |
9e07f89d | 4221 | if test -n "$CC"; then |
81ecdfbb RW |
4222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4223 | $as_echo "$CC" >&6; } | |
9e07f89d | 4224 | else |
81ecdfbb RW |
4225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4226 | $as_echo "no" >&6; } | |
9e07f89d NN |
4227 | fi |
4228 | ||
81ecdfbb | 4229 | |
c6b750e1 DJ |
4230 | fi |
4231 | if test -z "$CC"; then | |
4232 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4233 | for ac_prog in cl.exe |
c6b750e1 DJ |
4234 | do |
4235 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4236 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4238 | $as_echo_n "checking for $ac_word... " >&6; } | |
4239 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4240 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4241 | else |
4242 | if test -n "$CC"; then | |
4243 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4244 | else | |
c6b750e1 DJ |
4245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4246 | for as_dir in $PATH | |
4247 | do | |
4248 | IFS=$as_save_IFS | |
4249 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4250 | for ac_exec_ext in '' $ac_executable_extensions; do |
4251 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4252 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4253 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 4254 | break 2 |
376a0e54 | 4255 | fi |
c6b750e1 | 4256 | done |
81ecdfbb RW |
4257 | done |
4258 | IFS=$as_save_IFS | |
cac3d6c4 | 4259 | |
c6b750e1 DJ |
4260 | fi |
4261 | fi | |
4262 | CC=$ac_cv_prog_CC | |
4263 | if test -n "$CC"; then | |
81ecdfbb RW |
4264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4265 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 4266 | else |
81ecdfbb RW |
4267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4268 | $as_echo "no" >&6; } | |
9e07f89d | 4269 | fi |
cac3d6c4 | 4270 | |
81ecdfbb | 4271 | |
c6b750e1 DJ |
4272 | test -n "$CC" && break |
4273 | done | |
cac3d6c4 | 4274 | fi |
c6b750e1 DJ |
4275 | if test -z "$CC"; then |
4276 | ac_ct_CC=$CC | |
81ecdfbb | 4277 | for ac_prog in cl.exe |
c6b750e1 DJ |
4278 | do |
4279 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4280 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4282 | $as_echo_n "checking for $ac_word... " >&6; } | |
4283 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4284 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 4285 | else |
c6b750e1 DJ |
4286 | if test -n "$ac_ct_CC"; then |
4287 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 4288 | else |
c6b750e1 DJ |
4289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4290 | for as_dir in $PATH | |
4291 | do | |
4292 | IFS=$as_save_IFS | |
4293 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4294 | for ac_exec_ext in '' $ac_executable_extensions; do |
4295 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4296 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4297 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4298 | break 2 |
4299 | fi | |
4300 | done | |
81ecdfbb RW |
4301 | done |
4302 | IFS=$as_save_IFS | |
c6b750e1 | 4303 | |
cac3d6c4 CM |
4304 | fi |
4305 | fi | |
c6b750e1 DJ |
4306 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4307 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4309 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 4310 | else |
81ecdfbb RW |
4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4312 | $as_echo "no" >&6; } | |
cac3d6c4 | 4313 | fi |
376a0e54 | 4314 | |
81ecdfbb | 4315 | |
c6b750e1 DJ |
4316 | test -n "$ac_ct_CC" && break |
4317 | done | |
4318 | ||
81ecdfbb RW |
4319 | if test "x$ac_ct_CC" = x; then |
4320 | CC="" | |
4321 | else | |
4322 | case $cross_compiling:$ac_tool_warned in | |
4323 | yes:) | |
4324 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4325 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4326 | ac_tool_warned=yes ;; | |
4327 | esac | |
4328 | CC=$ac_ct_CC | |
4329 | fi | |
c6b750e1 DJ |
4330 | fi |
4331 | ||
4332 | fi | |
4333 | ||
4334 | ||
81ecdfbb RW |
4335 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4336 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4337 | as_fn_error "no acceptable C compiler found in \$PATH | |
4338 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 DJ |
4339 | |
4340 | # Provide some information about the compiler. | |
81ecdfbb RW |
4341 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4342 | set X $ac_compile | |
4343 | ac_compiler=$2 | |
4344 | for ac_option in --version -v -V -qversion; do | |
4345 | { { ac_try="$ac_compiler $ac_option >&5" | |
4346 | case "(($ac_try" in | |
4347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4348 | *) ac_try_echo=$ac_try;; | |
4349 | esac | |
4350 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4351 | $as_echo "$ac_try_echo"; } >&5 | |
4352 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4353 | ac_status=$? |
81ecdfbb RW |
4354 | if test -s conftest.err; then |
4355 | sed '10a\ | |
4356 | ... rest of stderr output deleted ... | |
4357 | 10q' conftest.err >conftest.er1 | |
4358 | cat conftest.er1 >&5 | |
4359 | rm -f conftest.er1 conftest.err | |
4360 | fi | |
4361 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4362 | test $ac_status = 0; } | |
4363 | done | |
c6b750e1 | 4364 | |
81ecdfbb | 4365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4366 | /* end confdefs.h. */ |
4367 | ||
4368 | int | |
4369 | main () | |
4370 | { | |
4371 | ||
4372 | ; | |
4373 | return 0; | |
4374 | } | |
4375 | _ACEOF | |
4376 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 4377 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
c6b750e1 DJ |
4378 | # Try to create an executable without -o first, disregard a.out. |
4379 | # It will help us diagnose broken compilers, and finding out an intuition | |
4380 | # of exeext. | |
81ecdfbb RW |
4381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4382 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4383 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4384 | ||
4385 | # The possible output files: | |
4386 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4387 | ||
4388 | ac_rmfiles= | |
4389 | for ac_file in $ac_files | |
4390 | do | |
4391 | case $ac_file in | |
4392 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4393 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4394 | esac | |
4395 | done | |
4396 | rm -f $ac_rmfiles | |
4397 | ||
4398 | if { { ac_try="$ac_link_default" | |
4399 | case "(($ac_try" in | |
4400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4401 | *) ac_try_echo=$ac_try;; | |
4402 | esac | |
4403 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4404 | $as_echo "$ac_try_echo"; } >&5 | |
4405 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4406 | ac_status=$? |
81ecdfbb RW |
4407 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4408 | test $ac_status = 0; }; then : | |
4409 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4410 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4411 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4412 | # so that the user can short-circuit this test for compilers unknown to | |
4413 | # Autoconf. | |
4414 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4415 | do |
4416 | test -f "$ac_file" || continue | |
4417 | case $ac_file in | |
81ecdfbb | 4418 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4419 | ;; |
4420 | [ab].out ) | |
4421 | # We found the default executable, but exeext='' is most | |
4422 | # certainly right. | |
4423 | break;; | |
4424 | *.* ) | |
81ecdfbb RW |
4425 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4426 | then :; else | |
4427 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4428 | fi | |
4429 | # We set ac_cv_exeext here because the later test for it is not | |
4430 | # safe: cross compilers may not add the suffix if given an `-o' | |
4431 | # argument, so we may need to know it at that point already. | |
4432 | # Even if this section looks crufty: it has the advantage of | |
4433 | # actually working. | |
c6b750e1 DJ |
4434 | break;; |
4435 | * ) | |
4436 | break;; | |
4437 | esac | |
4438 | done | |
81ecdfbb RW |
4439 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4440 | ||
c6b750e1 | 4441 | else |
81ecdfbb RW |
4442 | ac_file='' |
4443 | fi | |
4444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4445 | $as_echo "$ac_file" >&6; } | |
4446 | if test -z "$ac_file"; then : | |
4447 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4448 | sed 's/^/| /' conftest.$ac_ext >&5 |
4449 | ||
81ecdfbb RW |
4450 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4451 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4452 | { as_fn_set_status 77 | |
4453 | as_fn_error "C compiler cannot create executables | |
4454 | See \`config.log' for more details." "$LINENO" 5; }; } | |
c6b750e1 | 4455 | fi |
c6b750e1 | 4456 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4457 | |
81ecdfbb | 4458 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4459 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4461 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
c6b750e1 DJ |
4462 | # If not cross compiling, check that we can run a simple program. |
4463 | if test "$cross_compiling" != yes; then | |
4464 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
4465 | { { case "(($ac_try" in |
4466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4467 | *) ac_try_echo=$ac_try;; | |
4468 | esac | |
4469 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4470 | $as_echo "$ac_try_echo"; } >&5 | |
4471 | (eval "$ac_try") 2>&5 | |
c6b750e1 | 4472 | ac_status=$? |
81ecdfbb RW |
4473 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4474 | test $ac_status = 0; }; }; then | |
c6b750e1 DJ |
4475 | cross_compiling=no |
4476 | else | |
4477 | if test "$cross_compiling" = maybe; then | |
4478 | cross_compiling=yes | |
4479 | else | |
81ecdfbb RW |
4480 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4481 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4482 | as_fn_error "cannot run C compiled programs. | |
c6b750e1 | 4483 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 4484 | See \`config.log' for more details." "$LINENO" 5; } |
c6b750e1 DJ |
4485 | fi |
4486 | fi | |
4487 | fi | |
81ecdfbb RW |
4488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4489 | $as_echo "yes" >&6; } | |
c6b750e1 | 4490 | |
81ecdfbb | 4491 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
c6b750e1 | 4492 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 4493 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4494 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4496 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4498 | $as_echo "$cross_compiling" >&6; } | |
4499 | ||
4500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4501 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4502 | if { { ac_try="$ac_link" | |
4503 | case "(($ac_try" in | |
4504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4505 | *) ac_try_echo=$ac_try;; | |
4506 | esac | |
4507 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4508 | $as_echo "$ac_try_echo"; } >&5 | |
4509 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4510 | ac_status=$? |
81ecdfbb RW |
4511 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4512 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4513 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4514 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4515 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4516 | # `rm'. | |
4517 | for ac_file in conftest.exe conftest conftest.*; do | |
4518 | test -f "$ac_file" || continue | |
4519 | case $ac_file in | |
81ecdfbb | 4520 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4521 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4522 | break;; |
4523 | * ) break;; | |
4524 | esac | |
4525 | done | |
4526 | else | |
81ecdfbb RW |
4527 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4528 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4529 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4530 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4531 | fi |
c6b750e1 | 4532 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
4533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4534 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4535 | |
4536 | rm -f conftest.$ac_ext | |
4537 | EXEEXT=$ac_cv_exeext | |
4538 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4540 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4541 | if test "${ac_cv_objext+set}" = set; then : | |
4542 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4543 | else |
81ecdfbb | 4544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4545 | /* end confdefs.h. */ |
4546 | ||
4547 | int | |
4548 | main () | |
4549 | { | |
4550 | ||
4551 | ; | |
4552 | return 0; | |
4553 | } | |
4554 | _ACEOF | |
4555 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4556 | if { { ac_try="$ac_compile" |
4557 | case "(($ac_try" in | |
4558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4559 | *) ac_try_echo=$ac_try;; | |
4560 | esac | |
4561 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4562 | $as_echo "$ac_try_echo"; } >&5 | |
4563 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4564 | ac_status=$? |
81ecdfbb RW |
4565 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4566 | test $ac_status = 0; }; then : | |
4567 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4568 | test -f "$ac_file" || continue; | |
c6b750e1 | 4569 | case $ac_file in |
81ecdfbb | 4570 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4571 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4572 | break;; | |
4573 | esac | |
4574 | done | |
cac3d6c4 | 4575 | else |
81ecdfbb | 4576 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4577 | sed 's/^/| /' conftest.$ac_ext >&5 |
4578 | ||
81ecdfbb RW |
4579 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4580 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4581 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4582 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4583 | fi |
c6b750e1 DJ |
4584 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4585 | fi | |
81ecdfbb RW |
4586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4587 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4588 | OBJEXT=$ac_cv_objext |
4589 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4591 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4592 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4593 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4594 | else |
81ecdfbb | 4595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4596 | /* end confdefs.h. */ |
4597 | ||
4598 | int | |
4599 | main () | |
4600 | { | |
4601 | #ifndef __GNUC__ | |
4602 | choke me | |
4603 | #endif | |
4604 | ||
4605 | ; | |
4606 | return 0; | |
4607 | } | |
4608 | _ACEOF | |
81ecdfbb | 4609 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4610 | ac_compiler_gnu=yes |
4611 | else | |
81ecdfbb | 4612 | ac_compiler_gnu=no |
c6b750e1 | 4613 | fi |
81ecdfbb | 4614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4615 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4616 | ||
4617 | fi | |
81ecdfbb RW |
4618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4619 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4620 | if test $ac_compiler_gnu = yes; then | |
4621 | GCC=yes | |
4622 | else | |
4623 | GCC= | |
4624 | fi | |
c6b750e1 DJ |
4625 | ac_test_CFLAGS=${CFLAGS+set} |
4626 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4628 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4629 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4630 | $as_echo_n "(cached) " >&6 | |
4631 | else | |
4632 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4633 | ac_c_werror_flag=yes | |
4634 | ac_cv_prog_cc_g=no | |
4635 | CFLAGS="-g" | |
4636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4637 | /* end confdefs.h. */ |
4638 | ||
4639 | int | |
4640 | main () | |
4641 | { | |
4642 | ||
4643 | ; | |
4644 | return 0; | |
4645 | } | |
4646 | _ACEOF | |
81ecdfbb | 4647 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4648 | ac_cv_prog_cc_g=yes |
4649 | else | |
81ecdfbb RW |
4650 | CFLAGS="" |
4651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4652 | /* end confdefs.h. */ | |
4653 | ||
4654 | int | |
4655 | main () | |
4656 | { | |
4657 | ||
4658 | ; | |
4659 | return 0; | |
4660 | } | |
4661 | _ACEOF | |
4662 | if ac_fn_c_try_compile "$LINENO"; then : | |
4663 | ||
4664 | else | |
4665 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4666 | CFLAGS="-g" | |
4667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4668 | /* end confdefs.h. */ | |
cac3d6c4 | 4669 | |
81ecdfbb RW |
4670 | int |
4671 | main () | |
4672 | { | |
4673 | ||
4674 | ; | |
4675 | return 0; | |
4676 | } | |
4677 | _ACEOF | |
4678 | if ac_fn_c_try_compile "$LINENO"; then : | |
4679 | ac_cv_prog_cc_g=yes | |
4680 | fi | |
4681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4682 | fi |
81ecdfbb | 4683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4684 | fi |
81ecdfbb RW |
4685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4686 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4687 | fi | |
4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4689 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4690 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4691 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4692 | elif test $ac_cv_prog_cc_g = yes; then |
4693 | if test "$GCC" = yes; then | |
4694 | CFLAGS="-g -O2" | |
4695 | else | |
4696 | CFLAGS="-g" | |
4697 | fi | |
4698 | else | |
4699 | if test "$GCC" = yes; then | |
4700 | CFLAGS="-O2" | |
4701 | else | |
4702 | CFLAGS= | |
4703 | fi | |
4704 | fi | |
81ecdfbb RW |
4705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4706 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4707 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4708 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4709 | else |
81ecdfbb | 4710 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4711 | ac_save_CC=$CC |
81ecdfbb | 4712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4713 | /* end confdefs.h. */ |
4714 | #include <stdarg.h> | |
4715 | #include <stdio.h> | |
4716 | #include <sys/types.h> | |
4717 | #include <sys/stat.h> | |
4718 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4719 | struct buf { int x; }; | |
4720 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4721 | static char *e (p, i) | |
4722 | char **p; | |
4723 | int i; | |
4724 | { | |
4725 | return p[i]; | |
4726 | } | |
4727 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4728 | { | |
4729 | char *s; | |
4730 | va_list v; | |
4731 | va_start (v,p); | |
4732 | s = g (p, va_arg (v,int)); | |
4733 | va_end (v); | |
4734 | return s; | |
4735 | } | |
4736 | ||
4737 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4738 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4739 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4740 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4741 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4742 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4743 | that's true only with -std. */ |
c6b750e1 DJ |
4744 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4745 | ||
81ecdfbb RW |
4746 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4747 | inside strings and character constants. */ | |
4748 | #define FOO(x) 'x' | |
4749 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4750 | ||
c6b750e1 DJ |
4751 | int test (int i, double x); |
4752 | struct s1 {int (*f) (int a);}; | |
4753 | struct s2 {int (*f) (double a);}; | |
4754 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4755 | int argc; | |
4756 | char **argv; | |
4757 | int | |
4758 | main () | |
4759 | { | |
4760 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4761 | ; | |
4762 | return 0; | |
4763 | } | |
4764 | _ACEOF | |
81ecdfbb RW |
4765 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4766 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4767 | do |
4768 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4769 | if ac_fn_c_try_compile "$LINENO"; then : |
4770 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4771 | fi |
81ecdfbb RW |
4772 | rm -f core conftest.err conftest.$ac_objext |
4773 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4774 | done |
81ecdfbb | 4775 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4776 | CC=$ac_save_CC |
4777 | ||
4778 | fi | |
81ecdfbb RW |
4779 | # AC_CACHE_VAL |
4780 | case "x$ac_cv_prog_cc_c89" in | |
4781 | x) | |
4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4783 | $as_echo "none needed" >&6; } ;; | |
4784 | xno) | |
4785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4786 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4787 | *) |
81ecdfbb RW |
4788 | CC="$CC $ac_cv_prog_cc_c89" |
4789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4790 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4791 | esac |
81ecdfbb | 4792 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4793 | |
c6b750e1 DJ |
4794 | fi |
4795 | ||
c6b750e1 DJ |
4796 | ac_ext=c |
4797 | ac_cpp='$CPP $CPPFLAGS' | |
4798 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4799 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4800 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4801 | |
81ecdfbb | 4802 | ac_ext=cpp |
18f6b6ee PB |
4803 | ac_cpp='$CXXCPP $CPPFLAGS' |
4804 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4805 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4806 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
4807 | if test -z "$CXX"; then |
4808 | if test -n "$CCC"; then | |
4809 | CXX=$CCC | |
4810 | else | |
4811 | if test -n "$ac_tool_prefix"; then | |
4812 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
4813 | do |
4814 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4815 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4817 | $as_echo_n "checking for $ac_word... " >&6; } | |
4818 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4819 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4820 | else |
4821 | if test -n "$CXX"; then | |
4822 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4823 | else | |
4824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4825 | for as_dir in $PATH | |
4826 | do | |
4827 | IFS=$as_save_IFS | |
4828 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4829 | for ac_exec_ext in '' $ac_executable_extensions; do |
4830 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4831 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
4833 | break 2 |
4834 | fi | |
4835 | done | |
81ecdfbb RW |
4836 | done |
4837 | IFS=$as_save_IFS | |
512b7dfb | 4838 | |
18f6b6ee PB |
4839 | fi |
4840 | fi | |
4841 | CXX=$ac_cv_prog_CXX | |
4842 | if test -n "$CXX"; then | |
81ecdfbb RW |
4843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4844 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 4845 | else |
81ecdfbb RW |
4846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4847 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4848 | fi |
4849 | ||
81ecdfbb | 4850 | |
18f6b6ee PB |
4851 | test -n "$CXX" && break |
4852 | done | |
4853 | fi | |
4854 | if test -z "$CXX"; then | |
4855 | ac_ct_CXX=$CXX | |
81ecdfbb | 4856 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
4857 | do |
4858 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4859 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4861 | $as_echo_n "checking for $ac_word... " >&6; } | |
4862 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4863 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4864 | else |
4865 | if test -n "$ac_ct_CXX"; then | |
4866 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4867 | else | |
4868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4869 | for as_dir in $PATH | |
4870 | do | |
4871 | IFS=$as_save_IFS | |
4872 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4873 | for ac_exec_ext in '' $ac_executable_extensions; do |
4874 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4875 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4876 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 4877 | break 2 |
512b7dfb | 4878 | fi |
18f6b6ee | 4879 | done |
81ecdfbb RW |
4880 | done |
4881 | IFS=$as_save_IFS | |
512b7dfb | 4882 | |
18f6b6ee PB |
4883 | fi |
4884 | fi | |
4885 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4886 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4888 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 4889 | else |
81ecdfbb RW |
4890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4891 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4892 | fi |
4893 | ||
81ecdfbb | 4894 | |
18f6b6ee PB |
4895 | test -n "$ac_ct_CXX" && break |
4896 | done | |
18f6b6ee | 4897 | |
81ecdfbb RW |
4898 | if test "x$ac_ct_CXX" = x; then |
4899 | CXX="g++" | |
4900 | else | |
4901 | case $cross_compiling:$ac_tool_warned in | |
4902 | yes:) | |
4903 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4904 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4905 | ac_tool_warned=yes ;; | |
4906 | esac | |
4907 | CXX=$ac_ct_CXX | |
4908 | fi | |
18f6b6ee PB |
4909 | fi |
4910 | ||
81ecdfbb RW |
4911 | fi |
4912 | fi | |
18f6b6ee | 4913 | # Provide some information about the compiler. |
81ecdfbb RW |
4914 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4915 | set X $ac_compile | |
4916 | ac_compiler=$2 | |
4917 | for ac_option in --version -v -V -qversion; do | |
4918 | { { ac_try="$ac_compiler $ac_option >&5" | |
4919 | case "(($ac_try" in | |
4920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4921 | *) ac_try_echo=$ac_try;; | |
4922 | esac | |
4923 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4924 | $as_echo "$ac_try_echo"; } >&5 | |
4925 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 4926 | ac_status=$? |
81ecdfbb RW |
4927 | if test -s conftest.err; then |
4928 | sed '10a\ | |
4929 | ... rest of stderr output deleted ... | |
4930 | 10q' conftest.err >conftest.er1 | |
4931 | cat conftest.er1 >&5 | |
4932 | rm -f conftest.er1 conftest.err | |
4933 | fi | |
4934 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4935 | test $ac_status = 0; } | |
4936 | done | |
18f6b6ee | 4937 | |
81ecdfbb RW |
4938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4939 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4940 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4941 | $as_echo_n "(cached) " >&6 | |
18f6b6ee | 4942 | else |
81ecdfbb | 4943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
4944 | /* end confdefs.h. */ |
4945 | ||
4946 | int | |
4947 | main () | |
4948 | { | |
4949 | #ifndef __GNUC__ | |
4950 | choke me | |
4951 | #endif | |
4952 | ||
4953 | ; | |
4954 | return 0; | |
4955 | } | |
4956 | _ACEOF | |
81ecdfbb | 4957 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4958 | ac_compiler_gnu=yes |
4959 | else | |
81ecdfbb | 4960 | ac_compiler_gnu=no |
18f6b6ee | 4961 | fi |
81ecdfbb | 4962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
4963 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4964 | ||
4965 | fi | |
81ecdfbb RW |
4966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4967 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4968 | if test $ac_compiler_gnu = yes; then | |
4969 | GXX=yes | |
4970 | else | |
4971 | GXX= | |
4972 | fi | |
18f6b6ee PB |
4973 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4974 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
4975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4976 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4977 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4978 | $as_echo_n "(cached) " >&6 | |
4979 | else | |
4980 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4981 | ac_cxx_werror_flag=yes | |
4982 | ac_cv_prog_cxx_g=no | |
4983 | CXXFLAGS="-g" | |
4984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
4985 | /* end confdefs.h. */ |
4986 | ||
4987 | int | |
4988 | main () | |
4989 | { | |
4990 | ||
4991 | ; | |
4992 | return 0; | |
4993 | } | |
4994 | _ACEOF | |
81ecdfbb | 4995 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4996 | ac_cv_prog_cxx_g=yes |
4997 | else | |
81ecdfbb RW |
4998 | CXXFLAGS="" |
4999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 5000 | /* end confdefs.h. */ |
81ecdfbb | 5001 | |
18f6b6ee PB |
5002 | int |
5003 | main () | |
5004 | { | |
81ecdfbb | 5005 | |
18f6b6ee PB |
5006 | ; |
5007 | return 0; | |
5008 | } | |
5009 | _ACEOF | |
81ecdfbb | 5010 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 5011 | |
81ecdfbb RW |
5012 | else |
5013 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5014 | CXXFLAGS="-g" | |
5015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 5016 | /* end confdefs.h. */ |
81ecdfbb | 5017 | |
18f6b6ee PB |
5018 | int |
5019 | main () | |
5020 | { | |
81ecdfbb | 5021 | |
18f6b6ee PB |
5022 | ; |
5023 | return 0; | |
5024 | } | |
5025 | _ACEOF | |
81ecdfbb RW |
5026 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5027 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 5028 | fi |
81ecdfbb RW |
5029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5030 | fi | |
5031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5032 | fi | |
5033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5034 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5035 | fi | |
5036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5037 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5038 | if test "$ac_test_CXXFLAGS" = set; then | |
5039 | CXXFLAGS=$ac_save_CXXFLAGS | |
5040 | elif test $ac_cv_prog_cxx_g = yes; then | |
5041 | if test "$GXX" = yes; then | |
5042 | CXXFLAGS="-g -O2" | |
5043 | else | |
5044 | CXXFLAGS="-g" | |
5045 | fi | |
5046 | else | |
5047 | if test "$GXX" = yes; then | |
5048 | CXXFLAGS="-O2" | |
5049 | else | |
5050 | CXXFLAGS= | |
5051 | fi | |
18f6b6ee | 5052 | fi |
18f6b6ee PB |
5053 | ac_ext=c |
5054 | ac_cpp='$CPP $CPPFLAGS' | |
5055 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5056 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5057 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5058 | ||
5059 | ||
5060 | # We must set the default linker to the linker used by gcc for the correct | |
5061 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5062 | # set the LD default to the ld used by gcc. | |
5063 | if test -z "$LD"; then | |
5064 | if test "$GCC" = yes; then | |
5065 | case $build in | |
5066 | *-*-mingw*) | |
5067 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5068 | *) | |
5069 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5070 | esac | |
5071 | case $gcc_prog_ld in | |
5072 | # Accept absolute paths. | |
5073 | [\\/]* | [A-Za-z]:[\\/]*) | |
5074 | LD="$gcc_prog_ld" ;; | |
5075 | esac | |
5076 | fi | |
512b7dfb PB |
5077 | fi |
5078 | ||
b3676d82 EB |
5079 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5080 | have_static_libs=no | |
5081 | if test "$GCC" = yes; then | |
5082 | saved_LDFLAGS="$LDFLAGS" | |
5083 | ||
5084 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5086 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5087 | ac_ext=cpp | |
5088 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5089 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5090 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5091 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5092 | ||
5093 | ||
5094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5095 | /* end confdefs.h. */ | |
a882be68 EB |
5096 | |
5097 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5098 | #error -static-libstdc++ not implemented | |
5099 | #endif | |
b3676d82 EB |
5100 | int main() {} |
5101 | _ACEOF | |
5102 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5104 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5105 | else | |
5106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5107 | $as_echo "no" >&6; } | |
5108 | fi | |
5109 | rm -f core conftest.err conftest.$ac_objext \ | |
5110 | conftest$ac_exeext conftest.$ac_ext | |
5111 | ac_ext=c | |
5112 | ac_cpp='$CPP $CPPFLAGS' | |
5113 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5114 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5115 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5116 | ||
5117 | ||
5118 | LDFLAGS="$saved_LDFLAGS" | |
5119 | fi | |
5120 | ||
512b7dfb PB |
5121 | |
5122 | ||
5123 | ||
c6b750e1 | 5124 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5125 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
5126 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
5127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5128 | $as_echo_n "checking for $ac_word... " >&6; } | |
5129 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
5130 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 5131 | else |
512b7dfb PB |
5132 | if test -n "$GNATBIND"; then |
5133 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 5134 | else |
c6b750e1 DJ |
5135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5136 | for as_dir in $PATH | |
5137 | do | |
5138 | IFS=$as_save_IFS | |
5139 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5140 | for ac_exec_ext in '' $ac_executable_extensions; do |
5141 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5142 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 5143 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5144 | break 2 |
5145 | fi | |
5146 | done | |
81ecdfbb RW |
5147 | done |
5148 | IFS=$as_save_IFS | |
c6b750e1 | 5149 | |
9e07f89d NN |
5150 | fi |
5151 | fi | |
512b7dfb PB |
5152 | GNATBIND=$ac_cv_prog_GNATBIND |
5153 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
5154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5155 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 5156 | else |
81ecdfbb RW |
5157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5158 | $as_echo "no" >&6; } | |
9e07f89d NN |
5159 | fi |
5160 | ||
81ecdfbb | 5161 | |
c6b750e1 | 5162 | fi |
512b7dfb PB |
5163 | if test -z "$ac_cv_prog_GNATBIND"; then |
5164 | ac_ct_GNATBIND=$GNATBIND | |
5165 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
5166 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
5167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5168 | $as_echo_n "checking for $ac_word... " >&6; } | |
5169 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
5170 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 5171 | else |
512b7dfb PB |
5172 | if test -n "$ac_ct_GNATBIND"; then |
5173 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 5174 | else |
c6b750e1 DJ |
5175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5176 | for as_dir in $PATH | |
5177 | do | |
5178 | IFS=$as_save_IFS | |
5179 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5180 | for ac_exec_ext in '' $ac_executable_extensions; do |
5181 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5182 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 5183 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5184 | break 2 |
5185 | fi | |
5186 | done | |
81ecdfbb RW |
5187 | done |
5188 | IFS=$as_save_IFS | |
c6b750e1 | 5189 | |
9e07f89d NN |
5190 | fi |
5191 | fi | |
512b7dfb PB |
5192 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5193 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
5194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5195 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 5196 | else |
81ecdfbb RW |
5197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5198 | $as_echo "no" >&6; } | |
9e07f89d NN |
5199 | fi |
5200 | ||
81ecdfbb RW |
5201 | if test "x$ac_ct_GNATBIND" = x; then |
5202 | GNATBIND="no" | |
5203 | else | |
5204 | case $cross_compiling:$ac_tool_warned in | |
5205 | yes:) | |
5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5207 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5208 | ac_tool_warned=yes ;; | |
5209 | esac | |
5210 | GNATBIND=$ac_ct_GNATBIND | |
5211 | fi | |
24ff9987 | 5212 | else |
512b7dfb | 5213 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
5214 | fi |
5215 | ||
7df2cd5d | 5216 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5217 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
5218 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
5219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5220 | $as_echo_n "checking for $ac_word... " >&6; } | |
5221 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
5222 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 5223 | else |
512b7dfb PB |
5224 | if test -n "$GNATMAKE"; then |
5225 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5226 | else |
5227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5228 | for as_dir in $PATH | |
5229 | do | |
5230 | IFS=$as_save_IFS | |
5231 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5232 | for ac_exec_ext in '' $ac_executable_extensions; do |
5233 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5234 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 5235 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5236 | break 2 |
5237 | fi | |
5238 | done | |
81ecdfbb RW |
5239 | done |
5240 | IFS=$as_save_IFS | |
7df2cd5d PB |
5241 | |
5242 | fi | |
5243 | fi | |
512b7dfb PB |
5244 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5245 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
5246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5247 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 5248 | else |
81ecdfbb RW |
5249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5250 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5251 | fi |
5252 | ||
81ecdfbb | 5253 | |
7df2cd5d | 5254 | fi |
512b7dfb PB |
5255 | if test -z "$ac_cv_prog_GNATMAKE"; then |
5256 | ac_ct_GNATMAKE=$GNATMAKE | |
5257 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
5258 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
5259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5260 | $as_echo_n "checking for $ac_word... " >&6; } | |
5261 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
5262 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 5263 | else |
512b7dfb PB |
5264 | if test -n "$ac_ct_GNATMAKE"; then |
5265 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5266 | else |
5267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5268 | for as_dir in $PATH | |
5269 | do | |
5270 | IFS=$as_save_IFS | |
5271 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5272 | for ac_exec_ext in '' $ac_executable_extensions; do |
5273 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5274 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 5275 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5276 | break 2 |
5277 | fi | |
5278 | done | |
81ecdfbb RW |
5279 | done |
5280 | IFS=$as_save_IFS | |
7df2cd5d | 5281 | |
7df2cd5d PB |
5282 | fi |
5283 | fi | |
512b7dfb PB |
5284 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5285 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
5286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5287 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 5288 | else |
81ecdfbb RW |
5289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5290 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5291 | fi |
5292 | ||
81ecdfbb RW |
5293 | if test "x$ac_ct_GNATMAKE" = x; then |
5294 | GNATMAKE="no" | |
5295 | else | |
5296 | case $cross_compiling:$ac_tool_warned in | |
5297 | yes:) | |
5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5299 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5300 | ac_tool_warned=yes ;; | |
5301 | esac | |
5302 | GNATMAKE=$ac_ct_GNATMAKE | |
5303 | fi | |
7df2cd5d | 5304 | else |
512b7dfb | 5305 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
5306 | fi |
5307 | ||
81ecdfbb RW |
5308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5309 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
5310 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
5311 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
5312 | else |
5313 | cat >conftest.adb <<EOF | |
5314 | procedure conftest is begin null; end conftest; | |
5315 | EOF | |
5316 | acx_cv_cc_gcc_supports_ada=no | |
5317 | # There is a bug in old released versions of GCC which causes the | |
5318 | # driver to exit successfully when the appropriate language module | |
5319 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5320 | # Therefore we must check for the error message as well as an | |
5321 | # unsuccessful exit. | |
b8908782 DD |
5322 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5323 | # given a .adb file, but produce no object file. So we must check | |
5324 | # if an object file was really produced to guard against this. | |
9e07f89d | 5325 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 5326 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 5327 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
5328 | fi |
5329 | rm -f conftest.* | |
5330 | fi | |
81ecdfbb RW |
5331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5332 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 5333 | |
64b986c0 | 5334 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
5335 | have_gnat=yes |
5336 | else | |
5337 | have_gnat=no | |
5338 | fi | |
5339 | ||
81ecdfbb RW |
5340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5341 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5342 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5343 | $as_echo_n "(cached) " >&6 | |
b8908782 DD |
5344 | else |
5345 | echo abfoo >t1 | |
5346 | echo cdfoo >t2 | |
5347 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
4b1cb4fe DD |
5348 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5349 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5350 | : | |
5351 | else | |
5352 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5353 | fi | |
5354 | fi | |
b8908782 DD |
5355 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5356 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 5357 | : |
b8908782 DD |
5358 | else |
5359 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5360 | fi | |
5361 | fi | |
5362 | rm t1 t2 | |
5363 | ||
5364 | fi | |
81ecdfbb RW |
5365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5366 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
5367 | do_compare="$gcc_cv_prog_cmp_skip" |
5368 | ||
5369 | ||
9e07f89d | 5370 | |
ffdd6afc ILT |
5371 | # Check whether --enable-bootstrap was given. |
5372 | if test "${enable_bootstrap+set}" = set; then : | |
5373 | enableval=$enable_bootstrap; | |
5374 | else | |
5375 | enable_bootstrap=default | |
5376 | fi | |
5377 | ||
5378 | ||
5379 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5380 | if test -r $srcdir/gcc/configure; then | |
5381 | have_compiler=yes | |
5382 | else | |
5383 | have_compiler=no | |
5384 | fi | |
5385 | ||
5386 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5387 | *:*:*:no) ;; | |
5388 | ||
5389 | # Default behavior. Enable bootstrap if we have a compiler | |
5390 | # and we are in a native configuration. | |
5391 | yes:$build:$build:default) | |
5392 | enable_bootstrap=yes ;; | |
5393 | ||
5394 | *:*:*:default) | |
5395 | enable_bootstrap=no ;; | |
5396 | ||
5397 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5398 | yes:$build:$build:yes) | |
5399 | ;; | |
5400 | ||
5401 | # Other configurations, but we have a compiler. Assume the user knows | |
5402 | # what he's doing. | |
5403 | yes:*:*:yes) | |
5404 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5405 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5406 | ;; | |
5407 | ||
5408 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5409 | no:*:*:yes) | |
5410 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5411 | ||
5412 | # Fail if wrong command line | |
5413 | *) | |
5414 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5415 | ;; | |
5416 | esac | |
5417 | ||
d5f2ee2e KG |
5418 | # Used for setting $lt_cv_objdir |
5419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5420 | $as_echo_n "checking for objdir... " >&6; } | |
5421 | if test "${lt_cv_objdir+set}" = set; then : | |
5422 | $as_echo_n "(cached) " >&6 | |
5423 | else | |
5424 | rm -f .libs 2>/dev/null | |
5425 | mkdir .libs 2>/dev/null | |
5426 | if test -d .libs; then | |
5427 | lt_cv_objdir=.libs | |
5428 | else | |
5429 | # MS-DOS does not allow filenames that begin with a dot. | |
5430 | lt_cv_objdir=_libs | |
5431 | fi | |
5432 | rmdir .libs 2>/dev/null | |
5433 | fi | |
5434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5435 | $as_echo "$lt_cv_objdir" >&6; } | |
5436 | objdir=$lt_cv_objdir | |
5437 | ||
5438 | ||
5439 | ||
5440 | ||
5441 | ||
5442 | cat >>confdefs.h <<_ACEOF | |
5443 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5444 | _ACEOF | |
5445 | ||
5446 | ||
5447 | ||
e8a5fa9c | 5448 | # Check for GMP, MPFR and MPC |
d9b76ff9 | 5449 | gmplibs="-lmpc -lmpfr -lgmp" |
4b1cb4fe | 5450 | gmpinc= |
4b900473 | 5451 | have_gmp=no |
e8a5fa9c RW |
5452 | |
5453 | # Specify a location for mpc | |
5454 | # check for this first so it ends up on the link line before mpfr. | |
5455 | ||
81ecdfbb RW |
5456 | # Check whether --with-mpc was given. |
5457 | if test "${with_mpc+set}" = set; then : | |
5458 | withval=$with_mpc; | |
5459 | fi | |
e8a5fa9c | 5460 | |
e8a5fa9c | 5461 | |
e552509b | 5462 | # Check whether --with-mpc-include was given. |
81ecdfbb RW |
5463 | if test "${with_mpc_include+set}" = set; then : |
5464 | withval=$with_mpc_include; | |
5465 | fi | |
e8a5fa9c | 5466 | |
e8a5fa9c | 5467 | |
e552509b | 5468 | # Check whether --with-mpc-lib was given. |
81ecdfbb RW |
5469 | if test "${with_mpc_lib+set}" = set; then : |
5470 | withval=$with_mpc_lib; | |
5471 | fi | |
e8a5fa9c | 5472 | |
e8a5fa9c RW |
5473 | |
5474 | if test "x$with_mpc" != x; then | |
d9b76ff9 KG |
5475 | gmplibs="-L$with_mpc/lib $gmplibs" |
5476 | gmpinc="-I$with_mpc/include $gmpinc" | |
e8a5fa9c RW |
5477 | fi |
5478 | if test "x$with_mpc_include" != x; then | |
d9b76ff9 | 5479 | gmpinc="-I$with_mpc_include $gmpinc" |
e8a5fa9c RW |
5480 | fi |
5481 | if test "x$with_mpc_lib" != x; then | |
d9b76ff9 | 5482 | gmplibs="-L$with_mpc_lib $gmplibs" |
e8a5fa9c RW |
5483 | fi |
5484 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
d5f2ee2e | 5485 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
d9b76ff9 | 5486 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
e8a5fa9c RW |
5487 | # Do not test the mpc version. Assume that it is sufficient, since |
5488 | # it is in the source tree, and the library has not been built yet | |
5489 | # but it would be included on the link line in the version check below | |
5490 | # hence making the test fail. | |
d9b76ff9 | 5491 | have_gmp=yes |
e8a5fa9c | 5492 | fi |
4b900473 | 5493 | |
11b04d1f DD |
5494 | # Specify a location for mpfr |
5495 | # check for this first so it ends up on the link line before gmp. | |
c6b750e1 | 5496 | |
81ecdfbb RW |
5497 | # Check whether --with-mpfr-dir was given. |
5498 | if test "${with_mpfr_dir+set}" = set; then : | |
5499 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5500 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5501 | fi | |
5502 | ||
11b04d1f DD |
5503 | |
5504 | ||
81ecdfbb RW |
5505 | # Check whether --with-mpfr was given. |
5506 | if test "${with_mpfr+set}" = set; then : | |
5507 | withval=$with_mpfr; | |
5508 | fi | |
c6b750e1 | 5509 | |
11b04d1f | 5510 | |
e552509b | 5511 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
5512 | if test "${with_mpfr_include+set}" = set; then : |
5513 | withval=$with_mpfr_include; | |
5514 | fi | |
c6b750e1 | 5515 | |
8a0d8a5c | 5516 | |
e552509b | 5517 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
5518 | if test "${with_mpfr_lib+set}" = set; then : |
5519 | withval=$with_mpfr_lib; | |
5520 | fi | |
8a0d8a5c | 5521 | |
11b04d1f DD |
5522 | |
5523 | if test "x$with_mpfr" != x; then | |
5524 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 5525 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 5526 | fi |
8a0d8a5c | 5527 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 5528 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
5529 | fi |
5530 | if test "x$with_mpfr_lib" != x; then | |
5531 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5532 | fi | |
4b900473 | 5533 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
58b1dd21 NC |
5534 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
5535 | if test -d ${srcdir}/mpfr/src; then | |
5536 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" | |
5537 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5538 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
5539 | else | |
5540 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" | |
5541 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" | |
5542 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" | |
5543 | fi | |
4b900473 PB |
5544 | # Do not test the mpfr version. Assume that it is sufficient, since |
5545 | # it is in the source tree, and the library has not been built yet | |
5546 | # but it would be included on the link line in the version check below | |
5547 | # hence making the test fail. | |
5548 | have_gmp=yes | |
5549 | fi | |
11b04d1f | 5550 | |
4b1cb4fe | 5551 | # Specify a location for gmp |
c6b750e1 | 5552 | |
81ecdfbb RW |
5553 | # Check whether --with-gmp-dir was given. |
5554 | if test "${with_gmp_dir+set}" = set; then : | |
5555 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5556 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5557 | fi | |
5558 | ||
4b1cb4fe DD |
5559 | |
5560 | ||
81ecdfbb RW |
5561 | # Check whether --with-gmp was given. |
5562 | if test "${with_gmp+set}" = set; then : | |
5563 | withval=$with_gmp; | |
5564 | fi | |
c6b750e1 | 5565 | |
4b1cb4fe | 5566 | |
e552509b | 5567 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
5568 | if test "${with_gmp_include+set}" = set; then : |
5569 | withval=$with_gmp_include; | |
5570 | fi | |
c6b750e1 | 5571 | |
8a0d8a5c | 5572 | |
e552509b | 5573 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
5574 | if test "${with_gmp_lib+set}" = set; then : |
5575 | withval=$with_gmp_lib; | |
5576 | fi | |
8a0d8a5c PB |
5577 | |
5578 | ||
4b1cb4fe | 5579 | |
11b04d1f DD |
5580 | if test "x$with_gmp" != x; then |
5581 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5582 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 5583 | fi |
8a0d8a5c PB |
5584 | if test "x$with_gmp_include" != x; then |
5585 | gmpinc="-I$with_gmp_include $gmpinc" | |
5586 | fi | |
5587 | if test "x$with_gmp_lib" != x; then | |
5588 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5589 | fi | |
4b900473 | 5590 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 5591 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5592 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 5593 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 5594 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
7ec59b9e | 5595 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
4b900473 PB |
5596 | # Do not test the gmp version. Assume that it is sufficient, since |
5597 | # it is in the source tree, and the library has not been built yet | |
5598 | # but it would be included on the link line in the version check below | |
5599 | # hence making the test fail. | |
5600 | have_gmp=yes | |
5601 | fi | |
4b1cb4fe | 5602 | |
ceb92e78 | 5603 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
5604 | have_gmp=yes |
5605 | saved_CFLAGS="$CFLAGS" | |
5606 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
5607 | # Check for the recommended and required versions of GMP. |
5608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5609 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
a009f2e7 RW |
5610 | |
5611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a6b5846e KG |
5612 | /* end confdefs.h. */ |
5613 | #include "gmp.h" | |
5614 | int | |
5615 | main () | |
5616 | { | |
5617 | ||
5618 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5619 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8e71395b | 5620 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
a6b5846e KG |
5621 | choke me |
5622 | #endif | |
5623 | ||
5624 | ; | |
5625 | return 0; | |
5626 | } | |
5627 | _ACEOF | |
5628 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 5629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5630 | /* end confdefs.h. */ |
a6b5846e | 5631 | #include <gmp.h> |
c6b750e1 DJ |
5632 | int |
5633 | main () | |
5634 | { | |
4b1cb4fe | 5635 | |
a6b5846e KG |
5636 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5637 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5638 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
5639 | choke me |
5640 | #endif | |
c6b750e1 DJ |
5641 | |
5642 | ; | |
5643 | return 0; | |
5644 | } | |
5645 | _ACEOF | |
81ecdfbb RW |
5646 | if ac_fn_c_try_compile "$LINENO"; then : |
5647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5648 | $as_echo "yes" >&6; } | |
a6b5846e KG |
5649 | else |
5650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5651 | $as_echo "buggy but acceptable" >&6; } | |
5652 | fi | |
5653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 5654 | else |
81ecdfbb RW |
5655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5656 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5657 | fi |
81ecdfbb | 5658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 5659 | |
e8a5fa9c | 5660 | # If we have GMP, check the MPFR version. |
4b900473 | 5661 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
5662 | # Check for the recommended and required versions of MPFR. |
5663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5664 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 5665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5666 | /* end confdefs.h. */ |
9b134994 | 5667 | #include <gmp.h> |
4b900473 | 5668 | #include <mpfr.h> |
c6b750e1 DJ |
5669 | int |
5670 | main () | |
5671 | { | |
9b134994 | 5672 | |
7ec59b9e | 5673 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
4b900473 PB |
5674 | choke me |
5675 | #endif | |
c6b750e1 DJ |
5676 | |
5677 | ; | |
5678 | return 0; | |
5679 | } | |
5680 | _ACEOF | |
81ecdfbb RW |
5681 | if ac_fn_c_try_compile "$LINENO"; then : |
5682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 5683 | /* end confdefs.h. */ |
4b1cb4fe | 5684 | #include <gmp.h> |
4b900473 | 5685 | #include <mpfr.h> |
c6b750e1 DJ |
5686 | int |
5687 | main () | |
5688 | { | |
9dbaa842 | 5689 | |
a6b5846e | 5690 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
4b900473 PB |
5691 | choke me |
5692 | #endif | |
e8a5fa9c RW |
5693 | |
5694 | ; | |
5695 | return 0; | |
5696 | } | |
5697 | _ACEOF | |
81ecdfbb RW |
5698 | if ac_fn_c_try_compile "$LINENO"; then : |
5699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5700 | $as_echo "yes" >&6; } | |
e8a5fa9c | 5701 | else |
81ecdfbb RW |
5702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5703 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 5704 | fi |
81ecdfbb | 5705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 5706 | else |
81ecdfbb RW |
5707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5708 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 5709 | fi |
81ecdfbb | 5710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5711 | fi |
5712 | ||
5713 | # Check for the MPC header version. | |
d9b76ff9 | 5714 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 5715 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5717 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
5719 | /* end confdefs.h. */ |
5720 | #include <mpc.h> | |
5721 | int | |
5722 | main () | |
5723 | { | |
5724 | ||
a6b5846e KG |
5725 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5726 | choke me | |
5727 | #endif | |
5728 | ||
5729 | ; | |
5730 | return 0; | |
5731 | } | |
5732 | _ACEOF | |
5733 | if ac_fn_c_try_compile "$LINENO"; then : | |
5734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5735 | /* end confdefs.h. */ | |
5736 | #include <mpc.h> | |
5737 | int | |
5738 | main () | |
5739 | { | |
5740 | ||
5741 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
5742 | choke me |
5743 | #endif | |
5744 | ||
5745 | ; | |
5746 | return 0; | |
5747 | } | |
5748 | _ACEOF | |
81ecdfbb RW |
5749 | if ac_fn_c_try_compile "$LINENO"; then : |
5750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 5751 | $as_echo "yes" >&6; } |
a6b5846e KG |
5752 | else |
5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5754 | $as_echo "buggy but acceptable" >&6; } | |
5755 | fi | |
5756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 5757 | else |
81ecdfbb | 5758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 5759 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 5760 | fi |
81ecdfbb | 5761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5762 | fi |
5763 | ||
5764 | # Now check the MPFR library. | |
5765 | if test x"$have_gmp" = xyes; then | |
5766 | saved_LIBS="$LIBS" | |
5767 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
5768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5769 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 5770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 5771 | /* end confdefs.h. */ |
d9b76ff9 | 5772 | #include <mpc.h> |
e8a5fa9c RW |
5773 | int |
5774 | main () | |
5775 | { | |
5776 | ||
5777 | mpfr_t n; | |
5778 | mpfr_t x; | |
d9b76ff9 | 5779 | mpc_t c; |
e8a5fa9c RW |
5780 | int t; |
5781 | mpfr_init (n); | |
5782 | mpfr_init (x); | |
5783 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5784 | mpfr_erfc (n, x, GMP_RNDN); | |
5785 | mpfr_subnormalize (x, t, GMP_RNDN); | |
d9b76ff9 KG |
5786 | mpfr_clear(n); |
5787 | mpfr_clear(x); | |
5788 | mpc_init2 (c, 53); | |
5789 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5790 | mpc_cosh (c, c, MPC_RNDNN); | |
5791 | mpc_pow (c, c, c, MPC_RNDNN); | |
5792 | mpc_acosh (c, c, MPC_RNDNN); | |
5793 | mpc_clear (c); | |
c6b750e1 DJ |
5794 | |
5795 | ; | |
5796 | return 0; | |
5797 | } | |
5798 | _ACEOF | |
81ecdfbb RW |
5799 | if ac_fn_c_try_link "$LINENO"; then : |
5800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5801 | $as_echo "yes" >&6; } | |
c6b750e1 | 5802 | else |
81ecdfbb RW |
5803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5804 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5805 | fi |
81ecdfbb RW |
5806 | rm -f core conftest.err conftest.$ac_objext \ |
5807 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
5808 | LIBS="$saved_LIBS" |
5809 | fi | |
5810 | ||
4b900473 | 5811 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 5812 | |
a6b5846e KG |
5813 | # The library versions listed in the error message below should match |
5814 | # the HARD-minimums enforced above. | |
4b900473 | 5815 | if test x$have_gmp != xyes; then |
7ec59b9e | 5816 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
d9b76ff9 KG |
5817 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5818 | their locations. Source code for these libraries can be found at | |
5819 | their respective hosting sites as well as at | |
5820 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5821 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5822 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5823 | make sure that you have installed both the libraries and the header | |
5824 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 5825 | fi |
9dbaa842 DD |
5826 | fi |
5827 | ||
e8a5fa9c RW |
5828 | # Flags needed for both GMP, MPFR and/or MPC. |
5829 | ||
5830 | ||
5831 | ||
4b1cb4fe DD |
5832 | |
5833 | ||
5834 | ||
7ec59b9e | 5835 | |
29383458 JM |
5836 | # Allow host libstdc++ to be specified for static linking with PPL. |
5837 | ||
81ecdfbb RW |
5838 | # Check whether --with-host-libstdcxx was given. |
5839 | if test "${with_host_libstdcxx+set}" = set; then : | |
5840 | withval=$with_host_libstdcxx; | |
5841 | fi | |
29383458 | 5842 | |
29383458 JM |
5843 | |
5844 | case $with_host_libstdcxx in | |
5845 | no|yes) | |
81ecdfbb | 5846 | as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5 |
29383458 JM |
5847 | ;; |
5848 | esac | |
e28c595f | 5849 | |
b3676d82 | 5850 | # Libraries to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5851 | |
b3676d82 EB |
5852 | # Check whether --with-stage1-libs was given. |
5853 | if test "${with_stage1_libs+set}" = set; then : | |
5854 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5855 | stage1_libs= | |
e8a5fa9c | 5856 | else |
b3676d82 | 5857 | stage1_libs=$withval |
e8a5fa9c RW |
5858 | fi |
5859 | else | |
b3676d82 | 5860 | stage1_libs=$with_host_libstdcxx |
81ecdfbb RW |
5861 | fi |
5862 | ||
e8a5fa9c RW |
5863 | |
5864 | ||
b3676d82 | 5865 | # Linker flags to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5866 | |
b3676d82 EB |
5867 | # Check whether --with-stage1-ldflags was given. |
5868 | if test "${with_stage1_ldflags+set}" = set; then : | |
5869 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5870 | stage1_ldflags= | |
e8a5fa9c | 5871 | else |
b3676d82 | 5872 | stage1_ldflags=$withval |
e8a5fa9c RW |
5873 | fi |
5874 | else | |
b3676d82 EB |
5875 | stage1_ldflags= |
5876 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5877 | # if supported. But if the user explicitly specified the libraries to use, | |
5878 | # trust that they are doing what they want. | |
5879 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5880 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5881 | fi | |
81ecdfbb RW |
5882 | fi |
5883 | ||
e8a5fa9c RW |
5884 | |
5885 | ||
e8a5fa9c RW |
5886 | # Libraries to use for stage2 and later builds. This defaults to the |
5887 | # argument passed to --with-host-libstdcxx. | |
5888 | ||
81ecdfbb RW |
5889 | # Check whether --with-boot-libs was given. |
5890 | if test "${with_boot_libs+set}" = set; then : | |
5891 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5892 | poststage1_libs= |
5893 | else | |
5894 | poststage1_libs=$withval | |
5895 | fi | |
5896 | else | |
5897 | poststage1_libs=$with_host_libstdcxx | |
81ecdfbb RW |
5898 | fi |
5899 | ||
e8a5fa9c RW |
5900 | |
5901 | ||
143754cd NC |
5902 | # Linker flags to use for stage2 and later builds. |
5903 | ||
5904 | # Check whether --with-boot-ldflags was given. | |
5905 | if test "${with_boot_ldflags+set}" = set; then : | |
5906 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5907 | poststage1_ldflags= | |
5908 | else | |
5909 | poststage1_ldflags=$withval | |
5910 | fi | |
5911 | else | |
5912 | poststage1_ldflags= | |
4f11b223 ILT |
5913 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5914 | # statically. But if the user explicitly specified the libraries to | |
5915 | # use, trust that they are doing what they want. | |
5916 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
5917 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5918 | fi | |
5919 | fi | |
5920 | ||
5921 | ||
5922 | ||
1b6c0831 L |
5923 | # GCC GRAPHITE dependency ISL. |
5924 | # Basic setup is inlined here, actual checks are in config/isl.m4 | |
e28c595f JM |
5925 | |
5926 | ||
7ec59b9e L |
5927 | # Check whether --with-isl was given. |
5928 | if test "${with_isl+set}" = set; then : | |
5929 | withval=$with_isl; | |
81ecdfbb | 5930 | fi |
e28c595f | 5931 | |
e28c595f | 5932 | |
1b6c0831 | 5933 | # Treat --without-isl as a request to disable |
8e71395b | 5934 | # GRAPHITE support and skip all following checks. |
1b6c0831 | 5935 | if test "x$with_isl" != "xno"; then |
8e71395b L |
5936 | # Check for ISL |
5937 | ||
5938 | ||
7ec59b9e L |
5939 | # Check whether --with-isl-include was given. |
5940 | if test "${with_isl_include+set}" = set; then : | |
5941 | withval=$with_isl_include; | |
81ecdfbb RW |
5942 | fi |
5943 | ||
e28c595f | 5944 | |
7ec59b9e L |
5945 | # Check whether --with-isl-lib was given. |
5946 | if test "${with_isl_lib+set}" = set; then : | |
5947 | withval=$with_isl_lib; | |
81ecdfbb | 5948 | fi |
e28c595f | 5949 | |
e28c595f | 5950 | |
7ec59b9e L |
5951 | # Check whether --enable-isl-version-check was given. |
5952 | if test "${enable_isl_version_check+set}" = set; then : | |
5953 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5954 | else | |
5955 | ENABLE_ISL_CHECK=yes | |
b123da99 SP |
5956 | fi |
5957 | ||
5958 | ||
7ec59b9e L |
5959 | # Initialize isllibs and islinc. |
5960 | case $with_isl in | |
5961 | no) | |
5962 | isllibs= | |
5963 | islinc= | |
5964 | ;; | |
5965 | "" | yes) | |
5966 | ;; | |
5967 | *) | |
5968 | isllibs="-L$with_isl/lib" | |
5969 | islinc="-I$with_isl/include" | |
5970 | ;; | |
5971 | esac | |
5972 | if test "x${with_isl_include}" != x ; then | |
5973 | islinc="-I$with_isl_include" | |
5974 | fi | |
5975 | if test "x${with_isl_lib}" != x; then | |
5976 | isllibs="-L$with_isl_lib" | |
5977 | fi | |
5978 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5979 | && test -d ${srcdir}/isl; then | |
5980 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5981 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5982 | ENABLE_ISL_CHECK=no | |
3dae1673 JBG |
5983 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5 |
5984 | $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;} | |
7ec59b9e | 5985 | fi |
b123da99 | 5986 | |
1b6c0831 | 5987 | isllibs="${isllibs} -lisl" |
b123da99 | 5988 | |
e28c595f | 5989 | |
b3fc79f8 JBG |
5990 | |
5991 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
5992 | _isl_saved_CFLAGS=$CFLAGS | |
5993 | _isl_saved_LDFLAGS=$LDFLAGS | |
5994 | _isl_saved_LIBS=$LIBS | |
5995 | ||
5996 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
5997 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}" | |
5998 | LIBS="${_isl_saved_LIBS} -lisl" | |
5999 | ||
1b6c0831 L |
6000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5 |
6001 | $as_echo_n "checking for compatible ISL... " >&6; } | |
6002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b3fc79f8 | 6003 | /* end confdefs.h. */ |
1b6c0831 | 6004 | #include <isl/val.h> |
b3fc79f8 JBG |
6005 | int |
6006 | main () | |
6007 | { | |
1b6c0831 | 6008 | ; |
b3fc79f8 JBG |
6009 | ; |
6010 | return 0; | |
6011 | } | |
6012 | _ACEOF | |
1b6c0831 | 6013 | if ac_fn_c_try_link "$LINENO"; then : |
b3fc79f8 JBG |
6014 | gcc_cv_isl=yes |
6015 | else | |
6016 | gcc_cv_isl=no | |
6017 | fi | |
1b6c0831 L |
6018 | rm -f core conftest.err conftest.$ac_objext \ |
6019 | conftest$ac_exeext conftest.$ac_ext | |
b3fc79f8 JBG |
6020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
6021 | $as_echo "$gcc_cv_isl" >&6; } | |
6022 | ||
6023 | CFLAGS=$_isl_saved_CFLAGS | |
6024 | LDFLAGS=$_isl_saved_LDFLAGS | |
6025 | LIBS=$_isl_saved_LIBS | |
6026 | fi | |
6027 | ||
6028 | ||
e28c595f | 6029 | |
e28c595f | 6030 | |
7ec59b9e L |
6031 | |
6032 | ||
7ec59b9e L |
6033 | if test "x${with_isl}" = xno; then |
6034 | graphite_requested=no | |
6035 | elif test "x${with_isl}" != x \ | |
6036 | || test "x${with_isl_include}" != x \ | |
6037 | || test "x${with_isl_lib}" != x ; then | |
6038 | graphite_requested=yes | |
6039 | else | |
6040 | graphite_requested=no | |
b123da99 | 6041 | fi |
e28c595f | 6042 | |
e28c595f JM |
6043 | |
6044 | ||
7ec59b9e L |
6045 | if test "${gcc_cv_isl}" = no ; then |
6046 | isllibs= | |
6047 | islinc= | |
6048 | fi | |
e28c595f | 6049 | |
7ec59b9e L |
6050 | if test "${graphite_requested}" = yes \ |
6051 | && test "x${isllibs}" = x \ | |
6052 | && test "x${islinc}" = x ; then | |
e28c595f | 6053 | |
7ec59b9e L |
6054 | as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5 |
6055 | fi | |
e552509b | 6056 | |
e28c595f | 6057 | |
e552509b ILT |
6058 | fi |
6059 | ||
1b6c0831 | 6060 | # If the ISL check failed, disable builds of in-tree variant of ISL |
8e71395b | 6061 | if test "x$with_isl" = xno || |
8e71395b | 6062 | test "x$gcc_cv_isl" = xno; then |
1b6c0831 | 6063 | noconfigdirs="$noconfigdirs isl" |
8e71395b | 6064 | islinc= |
7ec59b9e L |
6065 | fi |
6066 | ||
8e71395b L |
6067 | |
6068 | ||
6069 | ||
700d40ca ILT |
6070 | # Check for LTO support. |
6071 | # Check whether --enable-lto was given. | |
6072 | if test "${enable_lto+set}" = set; then : | |
6073 | enableval=$enable_lto; enable_lto=$enableval | |
6074 | else | |
6075 | enable_lto=yes; default_enable_lto=yes | |
6076 | fi | |
6077 | ||
6078 | ||
143754cd | 6079 | |
e49e5c92 DK |
6080 | |
6081 | ||
6082 | target_elf=no | |
6083 | case $target in | |
6084 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
090bc50f | 6085 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
1b6c0831 L |
6086 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
6087 | nvptx-*-none) | |
e49e5c92 DK |
6088 | target_elf=no |
6089 | ;; | |
6090 | *) | |
6091 | target_elf=yes | |
6092 | ;; | |
6093 | esac | |
6094 | ||
6095 | if test $target_elf = yes; then : | |
74cea91b DK |
6096 | # ELF platforms build the lto-plugin always. |
6097 | build_lto_plugin=yes | |
e49e5c92 | 6098 | |
e49e5c92 DK |
6099 | else |
6100 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 6101 | case $target in |
899b04ef | 6102 | *-apple-darwin9* | *-cygwin* | *-mingw*) ;; |
74cea91b | 6103 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
6104 | *) enable_lto=no ;; |
6105 | esac | |
e49e5c92 | 6106 | else |
29821356 RW |
6107 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6108 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
6109 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6110 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6111 | # -flto it won't be needed until after installation anyway. | |
6112 | case $target in | |
a8eb3f0a | 6113 | *-cygwin* | *-mingw* | *-apple-darwin*) ;; |
e49e5c92 DK |
6114 | *) if test x"$enable_lto" = x"yes"; then |
6115 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6116 | fi | |
6117 | ;; | |
6118 | esac | |
6119 | fi | |
a8eb3f0a | 6120 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 6121 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 6122 | case $target in |
74cea91b | 6123 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
6124 | *) ;; |
6125 | esac | |
74cea91b | 6126 | |
e49e5c92 DK |
6127 | fi |
6128 | ||
700d40ca | 6129 | |
1b6c0831 L |
6130 | # Check whether --enable-linker-plugin-configure-flags was given. |
6131 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6132 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6133 | else | |
6134 | extra_linker_plugin_configure_flags= | |
6135 | fi | |
6136 | ||
6137 | ||
6138 | # Check whether --enable-linker-plugin-flags was given. | |
6139 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6140 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6141 | else | |
6142 | extra_linker_plugin_flags= | |
6143 | fi | |
6144 | ||
6145 | ||
6146 | ||
e28c595f | 6147 | |
7ec59b9e | 6148 | # By default, C and C++ are the only stage 1 languages. |
9b134994 | 6149 | stage1_languages=,c, |
1d39f329 | 6150 | |
e8a5fa9c | 6151 | # Target libraries that we bootstrap. |
2aa2364a | 6152 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 6153 | |
9e07f89d NN |
6154 | # Figure out what language subdirectories are present. |
6155 | # Look if the user specified --enable-languages="..."; if not, use | |
6156 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6157 | # go away some day. | |
6158 | # NB: embedded tabs in this IF block -- do not untabify | |
6159 | if test -d ${srcdir}/gcc; then | |
6160 | if test x"${enable_languages+set}" != xset; then | |
6161 | if test x"${LANGUAGES+set}" = xset; then | |
6162 | enable_languages="${LANGUAGES}" | |
6163 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
6164 | else | |
6165 | enable_languages=all | |
6166 | fi | |
6167 | else | |
6168 | if test x"${enable_languages}" = x || | |
6169 | test x"${enable_languages}" = xyes; | |
6170 | then | |
6171 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
6172 | exit 1 | |
6173 | fi | |
6174 | fi | |
6175 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6176 | ||
096f7d00 DE |
6177 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6178 | # and make the substitution. | |
6179 | case ,${enable_languages}, in | |
6180 | *,f95,*) | |
6181 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
6182 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
6183 | ;; | |
6184 | esac | |
6185 | ||
7ec59b9e L |
6186 | # If bootstrapping, C++ must be enabled. |
6187 | case ",$enable_languages,:$enable_bootstrap" in | |
6188 | *,c++,*:*) ;; | |
6189 | *:yes) | |
ffdd6afc ILT |
6190 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6191 | enable_languages="${enable_languages},c++" | |
6192 | else | |
7ec59b9e | 6193 | as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5 |
ffdd6afc ILT |
6194 | fi |
6195 | ;; | |
6196 | esac | |
6197 | ||
9e07f89d NN |
6198 | # First scan to see if an enabled language requires some other language. |
6199 | # We assume that a given config-lang.in will list all the language | |
6200 | # front ends it requires, even if some are required indirectly. | |
6201 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6202 | case ${lang_frag} in | |
6203 | ..) ;; | |
6204 | # The odd quoting in the next line works around | |
6205 | # an apparent bug in bash 1.12 on linux. | |
6206 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6207 | *) | |
e552509b ILT |
6208 | # From the config-lang.in, get $language, $lang_requires, and |
6209 | # $lang_requires_boot_languages. | |
9e07f89d NN |
6210 | language= |
6211 | lang_requires= | |
e552509b | 6212 | lang_requires_boot_languages= |
9e07f89d | 6213 | . ${lang_frag} |
e552509b | 6214 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
6215 | case ,${enable_languages}, in |
6216 | *,$other,*) ;; | |
6217 | *,all,*) ;; | |
6218 | *,$language,*) | |
6219 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6220 | enable_languages="${enable_languages},${other}" | |
6221 | ;; | |
6222 | esac | |
6223 | done | |
e552509b ILT |
6224 | for other in ${lang_requires_boot_languages} ; do |
6225 | if test "$other" != "c"; then | |
6226 | case ,${enable_stage1_languages}, in | |
6227 | *,$other,*) ;; | |
6228 | *,all,*) ;; | |
6229 | *) | |
6230 | case ,${enable_languages}, in | |
6231 | *,$language,*) | |
6232 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6233 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6234 | ;; | |
6235 | esac | |
6236 | ;; | |
6237 | esac | |
6238 | fi | |
6239 | done | |
9e07f89d NN |
6240 | ;; |
6241 | esac | |
6242 | done | |
6243 | ||
9b134994 | 6244 | new_enable_languages=,c, |
700d40ca ILT |
6245 | |
6246 | # If LTO is enabled, add the LTO front end. | |
700d40ca | 6247 | if test "$enable_lto" = "yes" ; then |
6811fb56 RW |
6248 | case ,${enable_languages}, in |
6249 | *,lto,*) ;; | |
6250 | *) enable_languages="${enable_languages},lto" ;; | |
6251 | esac | |
a8eb3f0a | 6252 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca | 6253 | configdirs="$configdirs lto-plugin" |
700d40ca ILT |
6254 | fi |
6255 | fi | |
6256 | ||
1b6c0831 L |
6257 | # If we're building an offloading compiler, add the LTO front end. |
6258 | if test x"$enable_as_accelerator_for" != x ; then | |
6259 | case ,${enable_languages}, in | |
6260 | *,lto,*) ;; | |
6261 | *) enable_languages="${enable_languages},lto" ;; | |
6262 | esac | |
6263 | fi | |
700d40ca | 6264 | |
9e07f89d | 6265 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 6266 | potential_languages=,c, |
9e07f89d | 6267 | |
9e1a94f4 ILT |
6268 | enabled_target_libs= |
6269 | disabled_target_libs= | |
6270 | ||
9e07f89d NN |
6271 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6272 | case ${lang_frag} in | |
6273 | ..) ;; | |
6274 | # The odd quoting in the next line works around | |
6275 | # an apparent bug in bash 1.12 on linux. | |
6276 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6277 | *) | |
c6b750e1 | 6278 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 6279 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
6280 | language= |
6281 | target_libs= | |
6282 | lang_dirs= | |
64ce424c | 6283 | subdir_requires= |
9b134994 PB |
6284 | boot_language=no |
6285 | build_by_default=yes | |
9e07f89d | 6286 | . ${lang_frag} |
9b134994 PB |
6287 | if test x${language} = x; then |
6288 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6289 | exit 1 | |
6290 | fi | |
6291 | ||
ffdd6afc | 6292 | if test "$language" = "c++"; then |
7ec59b9e | 6293 | boot_language=yes |
e8a5fa9c RW |
6294 | fi |
6295 | ||
8e71395b | 6296 | add_this_lang=no |
9b134994 PB |
6297 | case ,${enable_languages}, in |
6298 | *,${language},*) | |
7ec59b9e L |
6299 | # Language was explicitly selected; include it |
6300 | # unless it is C, which is enabled by default. | |
6301 | if test "$language" != "c"; then | |
6302 | add_this_lang=yes | |
6303 | fi | |
9e07f89d | 6304 | ;; |
9b134994 PB |
6305 | *,all,*) |
6306 | # 'all' was selected, select it if it is a default language | |
8e71395b L |
6307 | if test "$language" != "c"; then |
6308 | add_this_lang=${build_by_default} | |
6309 | fi | |
9e07f89d NN |
6310 | ;; |
6311 | esac | |
4b1cb4fe | 6312 | |
64ce424c | 6313 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 6314 | for i in $subdir_requires; do |
3d3adb43 | 6315 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
64ce424c PB |
6316 | case ,${enable_languages}, in |
6317 | *,${language},*) | |
6318 | # Specifically requested language; tell them. | |
81ecdfbb | 6319 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c PB |
6320 | ;; |
6321 | *) | |
6322 | # Silently disable. | |
9b134994 | 6323 | add_this_lang=unsupported |
64ce424c PB |
6324 | ;; |
6325 | esac | |
6326 | done | |
6327 | ||
9b134994 PB |
6328 | # Disable Ada if no preexisting GNAT is available. |
6329 | case ,${enable_languages},:${language}:${have_gnat} in | |
6330 | *,${language},*:ada:no) | |
6331 | # Specifically requested language; tell them. | |
81ecdfbb | 6332 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
9b134994 PB |
6333 | ;; |
6334 | *:ada:no) | |
6335 | # Silently disable. | |
6336 | add_this_lang=unsupported | |
6337 | ;; | |
6338 | esac | |
6339 | ||
59f7ec45 HPN |
6340 | # Disable a language that is unsupported by the target. |
6341 | case " $unsupported_languages " in | |
6342 | *" $language "*) | |
9b134994 | 6343 | add_this_lang=unsupported |
59f7ec45 HPN |
6344 | ;; |
6345 | esac | |
6346 | ||
4b1cb4fe | 6347 | case $add_this_lang in |
9b134994 | 6348 | unsupported) |
9e07f89d | 6349 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
6350 | disabled_target_libs="$disabled_target_libs $target_libs" |
6351 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 6352 | ;; |
9b134994 PB |
6353 | no) |
6354 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
6355 | disabled_target_libs="$disabled_target_libs $target_libs" |
6356 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
6357 | potential_languages="${potential_languages}${language}," |
6358 | ;; | |
6359 | yes) | |
6360 | new_enable_languages="${new_enable_languages}${language}," | |
6361 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 6362 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 6363 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
6364 | case "${boot_language}:,$enable_stage1_languages," in |
6365 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 6366 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
6367 | case ",$stage1_languages," in |
6368 | *,$language,* | ,yes, | ,all,) ;; | |
6369 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6370 | esac | |
e8a5fa9c RW |
6371 | # We need to bootstrap any supporting libraries. |
6372 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
1d39f329 NN |
6373 | ;; |
6374 | esac | |
6375 | ;; | |
9e07f89d NN |
6376 | esac |
6377 | ;; | |
6378 | esac | |
6379 | done | |
6380 | ||
9e1a94f4 ILT |
6381 | # Add target libraries which are only needed for disabled languages |
6382 | # to noconfigdirs. | |
6383 | if test -n "$disabled_target_libs"; then | |
6384 | for dir in $disabled_target_libs; do | |
6385 | case " $enabled_target_libs " in | |
6386 | *" ${dir} "*) ;; | |
6387 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6388 | esac | |
6389 | done | |
6390 | fi | |
6391 | ||
81ecdfbb RW |
6392 | # Check whether --enable-stage1-languages was given. |
6393 | if test "${enable_stage1_languages+set}" = set; then : | |
6394 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
6395 | ,no,|,,) |
6396 | # Set it to something that will have no effect in the loop below | |
6397 | enable_stage1_languages=c ;; | |
6398 | ,yes,) | |
6399 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6400 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6401 | *,all,*) | |
6402 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6403 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6404 | esac | |
6405 | ||
6406 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6407 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6408 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6409 | case $potential_languages in | |
6410 | *,$i,*) | |
6411 | case $stage1_languages in | |
6412 | *,$i,*) ;; | |
6413 | *) stage1_languages="$stage1_languages$i," ;; | |
6414 | esac ;; | |
6415 | *) | |
6416 | case $missing_languages in | |
6417 | *,$i,*) ;; | |
6418 | *) missing_languages="$missing_languages$i," ;; | |
6419 | esac ;; | |
6420 | esac | |
6421 | done | |
81ecdfbb RW |
6422 | fi |
6423 | ||
9b134994 PB |
6424 | |
6425 | # Remove leading/trailing commas that were added for simplicity | |
6426 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 6427 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
6428 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6429 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6430 | ||
9e07f89d | 6431 | if test "x$missing_languages" != x; then |
81ecdfbb | 6432 | as_fn_error " |
27258dd4 | 6433 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 6434 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 6435 | fi |
9e07f89d NN |
6436 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6437 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 6438 | enable_languages="$new_enable_languages" |
9e07f89d | 6439 | fi |
9b134994 | 6440 | |
c6b750e1 | 6441 | |
81ec575a | 6442 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
6443 | fi |
6444 | ||
a6df5a19 PB |
6445 | # Handle --disable-<component> generically. |
6446 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6447 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
6448 | varname=`echo $dirname | sed -e s/+/_/g` |
6449 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
6450 | noconfigdirs="$noconfigdirs $dir" |
6451 | fi | |
6452 | done | |
6453 | ||
4f0ef2d8 | 6454 | # Check for Boehm's garbage collector |
81ecdfbb RW |
6455 | # Check whether --enable-objc-gc was given. |
6456 | if test "${enable_objc_gc+set}" = set; then : | |
6457 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
4f0ef2d8 | 6458 | *,objc,*:*:yes:*target-boehm-gc*) |
81ecdfbb | 6459 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
4f0ef2d8 CD |
6460 | ;; |
6461 | esac | |
81ecdfbb RW |
6462 | fi |
6463 | ||
4f0ef2d8 CD |
6464 | |
6465 | # Make sure we only build Boehm's garbage collector if required. | |
d42c4017 DA |
6466 | case ,${enable_languages},:${enable_objc_gc} in |
6467 | *,objc,*:yes) | |
4f0ef2d8 CD |
6468 | # Keep target-boehm-gc if requested for Objective-C. |
6469 | ;; | |
4f0ef2d8 | 6470 | *) |
d42c4017 DA |
6471 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6472 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6473 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6474 | fi | |
4f0ef2d8 CD |
6475 | ;; |
6476 | esac | |
6477 | ||
1b6c0831 | 6478 | # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
7ec59b9e | 6479 | case ,${enable_languages}, in |
1b6c0831 L |
6480 | *,c++,*) |
6481 | # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++ | |
6482 | case "${noconfigdirs}" in | |
6483 | *target-libstdc++-v3*) | |
6484 | noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer" | |
6485 | ;; | |
6486 | *) ;; | |
6487 | esac | |
6488 | ;; | |
7ec59b9e | 6489 | *) |
1b6c0831 | 6490 | noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
7ec59b9e L |
6491 | ;; |
6492 | esac | |
6493 | ||
caeba88f AL |
6494 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6495 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
6496 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6497 | ||
6498 | notsupp="" | |
6499 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 6500 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
6501 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6502 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6503 | if test -r $srcdir/$dirname/configure ; then | |
6504 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6505 | true | |
6506 | else | |
6507 | notsupp="$notsupp $dir" | |
6508 | fi | |
6509 | fi | |
6510 | fi | |
caeba88f AL |
6511 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6512 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6513 | if test -r $srcdir/$dirname/configure ; then | |
6514 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6515 | true | |
6516 | else | |
6517 | notsupp="$notsupp $dir" | |
6518 | fi | |
6519 | fi | |
6520 | fi | |
9e07f89d NN |
6521 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6522 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6523 | if test -r $srcdir/$dirname/configure ; then | |
6524 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6525 | true | |
6526 | else | |
6527 | notsupp="$notsupp $dir" | |
6528 | fi | |
6529 | fi | |
6530 | fi | |
6531 | done | |
6532 | ||
9e07f89d NN |
6533 | # Quietly strip out all directories which aren't configurable in this tree. |
6534 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6535 | # is now the case. | |
6a9cf61e PB |
6536 | build_configdirs_all="$build_configdirs" |
6537 | build_configdirs= | |
6538 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 6539 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
6540 | if test -f ${srcdir}/$j/configure ; then |
6541 | build_configdirs="${build_configdirs} $i" | |
6542 | fi | |
6543 | done | |
6544 | ||
9e07f89d NN |
6545 | configdirs_all="$configdirs" |
6546 | configdirs= | |
6547 | for i in ${configdirs_all} ; do | |
6548 | if test -f ${srcdir}/$i/configure ; then | |
6549 | configdirs="${configdirs} $i" | |
6550 | fi | |
6551 | done | |
6a9cf61e | 6552 | |
9e07f89d NN |
6553 | target_configdirs_all="$target_configdirs" |
6554 | target_configdirs= | |
6555 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 6556 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
6557 | if test -f ${srcdir}/$j/configure ; then |
6558 | target_configdirs="${target_configdirs} $i" | |
6559 | fi | |
6560 | done | |
6561 | ||
091021fa L |
6562 | # Exclude target-zlib if target-libjava isn't built. |
6563 | case ${target_configdirs} in | |
6564 | *target-libjava*) | |
6565 | ;; | |
6566 | *) | |
6567 | target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`" | |
6568 | ;; | |
6569 | esac | |
6570 | ||
1b6c0831 L |
6571 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6572 | # so we have to add it after the preceding checks. | |
6573 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6574 | then | |
6575 | case " $configdirs " in | |
6576 | *" libiberty "*) | |
6577 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6578 | configdirs="$configdirs libiberty-linker-plugin" | |
6579 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6580 | --with-libiberty=../libiberty-linker-plugin";; | |
6581 | *) | |
6582 | as_fn_error "libiberty missing" "$LINENO" 5;; | |
6583 | esac | |
6584 | fi | |
6585 | ||
6586 | # Sometimes we have special requirements for the host libiberty. | |
6587 | extra_host_libiberty_configure_flags= | |
6588 | case " $configdirs " in | |
6589 | *" lto-plugin "* | *" libcc1 "*) | |
6590 | # When these are to be built as shared libraries, the same applies to | |
6591 | # libiberty. | |
6592 | extra_host_libiberty_configure_flags=--enable-shared | |
6593 | ;; | |
6594 | esac | |
6595 | ||
6596 | ||
9e07f89d NN |
6597 | # Produce a warning message for the subdirs we can't configure. |
6598 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6599 | # FSF releases, it's important to let people know when their machine isn't | |
6600 | # supported by the one or two programs in a package. | |
6601 | ||
6602 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6603 | # If $appdirs is non-empty, at least one of those directories must still | |
6604 | # be configured, or we error out. (E.g., if the gas release supports a | |
6605 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6606 | # pretend that all is well.) | |
6607 | if test -n "$appdirs" ; then | |
6608 | for dir in $appdirs ; do | |
6609 | if test -r $dir/Makefile.in ; then | |
6610 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6611 | appdirs="" | |
6612 | break | |
6613 | fi | |
6a9cf61e | 6614 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
6615 | appdirs="" |
6616 | break | |
6617 | fi | |
6618 | fi | |
6619 | done | |
6620 | if test -n "$appdirs" ; then | |
6621 | echo "*** This configuration is not supported by this package." 1>&2 | |
6622 | exit 1 | |
6623 | fi | |
6624 | fi | |
6625 | # Okay, some application will build, or we don't care to check. Still | |
6626 | # notify of subdirs not getting built. | |
6627 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6628 | echo " ${notsupp}" 1>&2 | |
6629 | echo " (Any other directories should still work fine.)" 1>&2 | |
6630 | fi | |
6631 | ||
6632 | case "$host" in | |
6633 | *msdosdjgpp*) | |
6634 | enable_gdbtk=no ;; | |
6635 | esac | |
6636 | ||
18f6b6ee PB |
6637 | # To find our prefix, in gcc_cv_tool_prefix. |
6638 | ||
6639 | # The user is always right. | |
6640 | if test "${PATH_SEPARATOR+set}" != set; then | |
6641 | echo "#! /bin/sh" >conf$$.sh | |
6642 | echo "exit 0" >>conf$$.sh | |
6643 | chmod +x conf$$.sh | |
6644 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6645 | PATH_SEPARATOR=';' | |
6646 | else | |
6647 | PATH_SEPARATOR=: | |
6648 | fi | |
6649 | rm -f conf$$.sh | |
6650 | fi | |
6651 | ||
6652 | ||
6653 | ||
6654 | if test "x$exec_prefix" = xNONE; then | |
6655 | if test "x$prefix" = xNONE; then | |
6656 | gcc_cv_tool_prefix=$ac_default_prefix | |
6657 | else | |
6658 | gcc_cv_tool_prefix=$prefix | |
6659 | fi | |
6660 | else | |
6661 | gcc_cv_tool_prefix=$exec_prefix | |
6662 | fi | |
6663 | ||
6664 | # If there is no compiler in the tree, use the PATH only. In any | |
6665 | # case, if there is no compiler in the tree nobody should use | |
6666 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6667 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6668 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6669 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6670 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6671 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6672 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6673 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6674 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6675 | else | |
6676 | gcc_cv_tool_dirs= | |
6677 | fi | |
6678 | ||
6679 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6680 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6681 | fi | |
6682 | ||
6683 | ||
6684 | ||
9e07f89d NN |
6685 | copy_dirs= |
6686 | ||
c6b750e1 | 6687 | |
81ecdfbb RW |
6688 | # Check whether --with-build-sysroot was given. |
6689 | if test "${with_build_sysroot+set}" = set; then : | |
6690 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
6691 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6692 | fi | |
6693 | else | |
6694 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 6695 | fi |
a19b6204 MM |
6696 | |
6697 | ||
8a6ee3ab | 6698 | |
81ecdfbb RW |
6699 | |
6700 | # Check whether --with-debug-prefix-map was given. | |
6701 | if test "${with_debug_prefix_map+set}" = set; then : | |
6702 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
6703 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6704 | for debug_map in $withval; do | |
6705 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6706 | done | |
6707 | fi | |
6708 | else | |
6709 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
6710 | fi |
6711 | ||
8a6ee3ab JM |
6712 | |
6713 | ||
7f6ef0c0 PB |
6714 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6715 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6716 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6717 | # We want to ensure that TARGET libraries (which we know are built with | |
6718 | # gcc) are built with "-O2 -g", so include those options when setting | |
6719 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6720 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
6721 | if test "x${is_cross_compiler}" = xyes; then |
6722 | CFLAGS_FOR_TARGET="-g -O2" | |
6723 | else | |
6724 | CFLAGS_FOR_TARGET=$CFLAGS | |
6725 | case " $CFLAGS " in | |
6726 | *" -O2 "*) ;; | |
6727 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6728 | esac | |
6729 | case " $CFLAGS " in | |
6730 | *" -g "* | *" -g3 "*) ;; | |
6731 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6732 | esac | |
6733 | fi | |
7f6ef0c0 PB |
6734 | fi |
6735 | ||
6736 | ||
6737 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
6738 | if test "x${is_cross_compiler}" = xyes; then |
6739 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6740 | else | |
6741 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6742 | case " $CXXFLAGS " in | |
6743 | *" -O2 "*) ;; | |
6744 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6745 | esac | |
6746 | case " $CXXFLAGS " in | |
6747 | *" -g "* | *" -g3 "*) ;; | |
6748 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6749 | esac | |
6750 | fi | |
7f6ef0c0 PB |
6751 | fi |
6752 | ||
6753 | ||
91c1f14c DK |
6754 | |
6755 | ||
9e07f89d NN |
6756 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6757 | # the named directory are copied to $(tooldir)/sys-include. | |
6758 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6759 | if test x${is_cross_compiler} = xno ; then | |
6760 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6761 | exit 1 | |
6762 | fi | |
6763 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 6764 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 6765 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
6766 | fi |
6767 | fi | |
6768 | ||
6769 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6770 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6771 | # are permitted. | |
6772 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6773 | if test x${is_cross_compiler} = xno ; then | |
6774 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6775 | exit 1 | |
6776 | fi | |
6777 | if test x"${with_libs}" != xyes ; then | |
6778 | # Copy the libraries in reverse order, so that files in the first named | |
6779 | # library override files in subsequent libraries. | |
18f6b6ee | 6780 | x=${gcc_cv_tool_prefix} |
9e07f89d | 6781 | for l in ${with_libs}; do |
c6b750e1 | 6782 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
6783 | done |
6784 | fi | |
6785 | fi | |
6786 | ||
700d40ca | 6787 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
6788 | # |
6789 | # This is done by determining whether or not the appropriate directory | |
6790 | # is available, and by checking whether or not specific configurations | |
6791 | # have requested that this magic not happen. | |
c6b750e1 DJ |
6792 | # |
6793 | # The command line options always override the explicit settings in | |
2429c060 PB |
6794 | # configure.in, and the settings in configure.in override this magic. |
6795 | # | |
c6b750e1 | 6796 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 6797 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
6798 | # --without-gnu-ld options for the configure script. Similarly, if |
6799 | # the default is to use the included zlib and you don't want to do that, | |
6800 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
6801 | |
6802 | if test x${use_gnu_as} = x && | |
6803 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6804 | with_gnu_as=yes | |
6805 | extra_host_args="$extra_host_args --with-gnu-as" | |
6806 | fi | |
6807 | ||
6808 | if test x${use_gnu_ld} = x && | |
93f9b408 | 6809 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
6810 | with_gnu_ld=yes |
6811 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6812 | fi | |
6813 | ||
700d40ca ILT |
6814 | if test x${use_included_zlib} = x && |
6815 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6816 | : | |
6817 | else | |
6818 | with_system_zlib=yes | |
6819 | extra_host_args="$extra_host_args --with-system-zlib" | |
6820 | fi | |
6821 | ||
2429c060 PB |
6822 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6823 | # can detect this case. | |
6824 | ||
6825 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6826 | with_newlib=yes | |
6827 | extra_host_args="$extra_host_args --with-newlib" | |
6828 | fi | |
6829 | ||
9e07f89d NN |
6830 | # Handle ${copy_dirs} |
6831 | set fnord ${copy_dirs} | |
6832 | shift | |
6833 | while test $# != 0 ; do | |
6834 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6835 | : | |
6836 | else | |
6837 | echo Copying $1 to $2 | |
6838 | ||
6839 | # Use the install script to create the directory and all required | |
6840 | # parent directories. | |
6841 | if test -d $2 ; then | |
6842 | : | |
6843 | else | |
6844 | echo >config.temp | |
6845 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6846 | fi | |
6847 | ||
6848 | # Copy the directory, assuming we have tar. | |
6849 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6850 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6851 | ||
6852 | # It is the responsibility of the user to correctly adjust all | |
6853 | # symlinks. If somebody can figure out how to handle them correctly | |
6854 | # here, feel free to add the code. | |
6855 | ||
6856 | echo $1 > $2/COPIED | |
6857 | fi | |
6858 | shift; shift | |
6859 | done | |
6860 | ||
2429c060 PB |
6861 | # Determine a target-dependent exec_prefix that the installed |
6862 | # gcc will search in. Keep this list sorted by triplet, with | |
6863 | # the *-*-osname triplets last. | |
6864 | md_exec_prefix= | |
6865 | case "${target}" in | |
521ec477 | 6866 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
6867 | md_exec_prefix=/dev/env/DJDIR/bin |
6868 | ;; | |
2429c060 | 6869 | *-*-hpux* | \ |
2429c060 | 6870 | *-*-nto-qnx* | \ |
1f111696 | 6871 | *-*-solaris2*) |
2429c060 PB |
6872 | md_exec_prefix=/usr/ccs/bin |
6873 | ;; | |
6874 | esac | |
6875 | ||
a0da8069 NN |
6876 | extra_arflags_for_target= |
6877 | extra_nmflags_for_target= | |
6878 | extra_ranlibflags_for_target= | |
6879 | target_makefile_frag=/dev/null | |
6880 | case "${target}" in | |
77d7106f AM |
6881 | spu-*-*) |
6882 | target_makefile_frag="config/mt-spu" | |
6883 | ;; | |
a9d58c06 | 6884 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
429acdec RS |
6885 | target_makefile_frag="config/mt-sde" |
6886 | ;; | |
f3b1e08e RS |
6887 | mipsisa*-*-elfoabi*) |
6888 | target_makefile_frag="config/mt-mips-elfoabi" | |
6889 | ;; | |
e7c8859c RS |
6890 | mips*-*-*linux* | mips*-*-gnu*) |
6891 | target_makefile_frag="config/mt-mips-gnu" | |
6892 | ;; | |
d9e042ac SL |
6893 | nios2-*-elf*) |
6894 | target_makefile_frag="config/mt-nios2-elf" | |
6895 | ;; | |
29383458 | 6896 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 6897 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
6898 | ;; |
6899 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 6900 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
6901 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6902 | # harmless if we're using GNU nm or ar. | |
6903 | extra_arflags_for_target=" -X32_64" | |
6904 | extra_nmflags_for_target=" -B -X32_64" | |
6905 | ;; | |
a0da8069 NN |
6906 | esac |
6907 | ||
6908 | alphaieee_frag=/dev/null | |
6909 | case $target in | |
6910 | alpha*-*-*) | |
6911 | # This just makes sure to use the -mieee option to build target libs. | |
6912 | # This should probably be set individually by each library. | |
6913 | alphaieee_frag="config/mt-alphaieee" | |
6914 | ;; | |
6915 | esac | |
6916 | ||
6917 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6918 | # the target libraries, similarly if it is not specified, use -Os | |
6919 | # on selected platforms. | |
6920 | ospace_frag=/dev/null | |
6921 | case "${enable_target_optspace}:${target}" in | |
6922 | yes:*) | |
6923 | ospace_frag="config/mt-ospace" | |
6924 | ;; | |
6925 | :d30v-*) | |
6926 | ospace_frag="config/mt-d30v" | |
6927 | ;; | |
6928 | :m32r-* | :d10v-* | :fr30-*) | |
6929 | ospace_frag="config/mt-ospace" | |
6930 | ;; | |
6931 | no:* | :*) | |
6932 | ;; | |
6933 | *) | |
6934 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6935 | ;; | |
6936 | esac | |
6937 | ||
a0da8069 NN |
6938 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6939 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 6940 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
6941 | build_tooldir=${tooldir} |
6942 | ||
a0da8069 NN |
6943 | # Create a .gdbinit file which runs the one in srcdir |
6944 | # and tells GDB to look there for source files. | |
6945 | ||
6946 | if test -r ${srcdir}/.gdbinit ; then | |
6947 | case ${srcdir} in | |
6948 | .) ;; | |
6949 | *) cat > ./.gdbinit <<EOF | |
6950 | # ${NO_EDIT} | |
6951 | dir ${srcdir} | |
6952 | dir . | |
6953 | source ${srcdir}/.gdbinit | |
6954 | EOF | |
6955 | ;; | |
6956 | esac | |
6957 | fi | |
6958 | ||
a0da8069 NN |
6959 | # Make sure that the compiler is able to generate an executable. If it |
6960 | # can't, we are probably in trouble. We don't care whether we can run the | |
6961 | # executable--we might be using a cross compiler--we only care whether it | |
6962 | # can be created. At this point the main configure script has set CC. | |
6963 | we_are_ok=no | |
6964 | echo "int main () { return 0; }" > conftest.c | |
6965 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
6966 | if test $? = 0 ; then | |
6967 | if test -s conftest || test -s conftest.exe ; then | |
6968 | we_are_ok=yes | |
6969 | fi | |
c6b750e1 | 6970 | fi |
a0da8069 NN |
6971 | case $we_are_ok in |
6972 | no) | |
6973 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
6974 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
6975 | rm -f conftest* | |
6976 | exit 1 | |
6977 | ;; | |
6978 | esac | |
6979 | rm -f conftest* | |
6980 | ||
3bbd2f8f | 6981 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
6982 | case "${host}" in |
6983 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 6984 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 6985 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
6986 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
6987 | esac | |
6988 | ||
3bbd2f8f | 6989 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
6990 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
6991 | # built executables to PATH. | |
3bbd2f8f AL |
6992 | if test "$RPATH_ENVVAR" = PATH; then |
6993 | GCC_SHLIB_SUBDIR=/shlib | |
6994 | else | |
6995 | GCC_SHLIB_SUBDIR= | |
6996 | fi | |
6997 | ||
730af8ee | 6998 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
6999 | case $enable_bootstrap in | |
7000 | yes) | |
7001 | bootstrap_suffix=bootstrap | |
7002 | BUILD_CONFIG=bootstrap-debug | |
7003 | ;; | |
7004 | no) | |
7005 | bootstrap_suffix=no-bootstrap | |
7006 | BUILD_CONFIG= | |
7007 | ;; | |
7008 | esac | |
7009 | ||
7010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
7011 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7012 | ||
7013 | ||
7014 | # Check whether --with-build-config was given. | |
7015 | if test "${with_build_config+set}" = set; then : | |
7016 | withval=$with_build_config; case $with_build_config in | |
7017 | yes) with_build_config= ;; | |
7018 | no) with_build_config= BUILD_CONFIG= ;; | |
7019 | esac | |
7020 | fi | |
7021 | ||
7022 | ||
7023 | if test "x${with_build_config}" != x; then | |
7024 | BUILD_CONFIG=$with_build_config | |
7025 | else | |
7026 | case $BUILD_CONFIG in | |
7027 | bootstrap-debug) | |
7028 | if echo "int f (void) { return 0; }" > conftest.c && | |
7029 | ${CC} -c conftest.c && | |
7030 | mv conftest.o conftest.o.g0 && | |
7031 | ${CC} -c -g conftest.c && | |
7032 | mv conftest.o conftest.o.g && | |
7033 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7034 | : | |
7035 | else | |
7036 | BUILD_CONFIG= | |
7037 | fi | |
7038 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7039 | ;; | |
7040 | esac | |
7041 | fi | |
7042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7043 | $as_echo "$BUILD_CONFIG" >&6; } | |
7044 | ||
7045 | ||
7046 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7048 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7049 | # Check whether --enable-vtable-verify was given. | |
7050 | if test "${enable_vtable_verify+set}" = set; then : | |
7051 | enableval=$enable_vtable_verify; case "$enableval" in | |
7052 | yes) enable_vtable_verify=yes ;; | |
7053 | no) enable_vtable_verify=no ;; | |
7054 | *) enable_vtable_verify=no;; | |
7055 | esac | |
7056 | else | |
7057 | enable_vtable_verify=no | |
7058 | fi | |
7059 | ||
7060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7061 | $as_echo "$enable_vtable_verify" >&6; } | |
7062 | ||
a0da8069 NN |
7063 | # Record target_configdirs and the configure arguments for target and |
7064 | # build configuration in Makefile. | |
7065 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 7066 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
201f096f | 7067 | bootstrap_fixincludes=no |
a0da8069 | 7068 | |
2aa2364a JR |
7069 | # If we are building libgomp, bootstrap it. |
7070 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7071 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7072 | fi | |
7073 | ||
730af8ee | 7074 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7075 | # or bootstrap-ubsan, bootstrap it. | |
7076 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7077 | case "$BUILD_CONFIG" in | |
7078 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7079 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
201f096f | 7080 | bootstrap_fixincludes=yes |
730af8ee | 7081 | ;; |
7082 | esac | |
5eb08693 L |
7083 | fi |
7084 | ||
730af8ee | 7085 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7086 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7087 | test "$enable_vtable_verify" != no; then | |
95e43135 JBG |
7088 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7089 | fi | |
7090 | ||
1b6c0831 L |
7091 | # If we are building libmpx, bootstrap it. |
7092 | if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then | |
7093 | bootstrap_target_libs=${bootstrap_target_libs}target-libmpx, | |
7094 | fi | |
7095 | ||
a0da8069 NN |
7096 | # Determine whether gdb needs tk/tcl or not. |
7097 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7098 | # and in that case we want gdb to be built without tk. Ugh! | |
7099 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7100 | # so we should be able to put the 'maybe's in unconditionally and | |
7101 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7102 | # 100% sure that that's safe though. | |
c180f501 | 7103 | |
675c6968 | 7104 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
7105 | case "$enable_gdbtk" in |
7106 | no) | |
7107 | GDB_TK="" ;; | |
c180f501 AC |
7108 | yes) |
7109 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 7110 | *) |
c180f501 AC |
7111 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7112 | # distro. Eventually someone will fix this and move Insight, nee | |
7113 | # gdbtk to a separate directory. | |
7114 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7115 | GDB_TK="${gdb_tk}" | |
7116 | else | |
7117 | GDB_TK="" | |
7118 | fi | |
7119 | ;; | |
a0da8069 | 7120 | esac |
907be67c DJ |
7121 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7122 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 7123 | |
6bd3dfaa | 7124 | # Strip out unwanted targets. |
dd12c3a8 NN |
7125 | |
7126 | # While at that, we remove Makefiles if we were started for recursive | |
7127 | # configuration, so that the top-level Makefile reconfigures them, | |
7128 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 7129 | |
06a51eac RW |
7130 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7131 | # but now we're fixing up the Makefile ourselves with the additional | |
7132 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7133 | # extrasub-{build,host,target} not because there is any reason to split | |
7134 | # the substitutions up that way, but only to remain below the limit of | |
7135 | # 99 commands in a script, for HP-UX sed. | |
7136 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
dd12c3a8 | 7137 | |
16b1ad29 RW |
7138 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7139 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7140 | yes:yes:*\ gold\ *:*) | |
7141 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
7142 | ;; | |
7143 | esac | |
7144 | ||
06a51eac | 7145 | extrasub_build= |
6a9cf61e | 7146 | for module in ${build_configdirs} ; do |
498d4a71 CF |
7147 | if test -z "${no_recursion}" \ |
7148 | && test -f ${build_subdir}/${module}/Makefile; then | |
7149 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7150 | rm -f ${build_subdir}/${module}/Makefile | |
7151 | fi | |
06a51eac | 7152 | extrasub_build="$extrasub_build |
498d4a71 CF |
7153 | /^@if build-$module\$/d |
7154 | /^@endif build-$module\$/d | |
7155 | /^@if build-$module-$bootstrap_suffix\$/d | |
7156 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7157 | done | |
06a51eac | 7158 | extrasub_host= |
498d4a71 | 7159 | for module in ${configdirs} ; do |
80911fe1 | 7160 | if test -z "${no_recursion}"; then |
8cf39b1b | 7161 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
7162 | if test -f ${file}; then |
7163 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7164 | rm -f ${file} | |
7165 | fi | |
7166 | done | |
498d4a71 | 7167 | fi |
201f096f | 7168 | case ${module},${bootstrap_fixincludes} in |
7169 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7170 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7171 | esac | |
06a51eac | 7172 | extrasub_host="$extrasub_host |
498d4a71 CF |
7173 | /^@if $module\$/d |
7174 | /^@endif $module\$/d | |
201f096f | 7175 | /^@if $module-$host_bootstrap_suffix\$/d |
7176 | /^@endif $module-$host_bootstrap_suffix\$/d" | |
498d4a71 | 7177 | done |
06a51eac | 7178 | extrasub_target= |
498d4a71 CF |
7179 | for module in ${target_configdirs} ; do |
7180 | if test -z "${no_recursion}" \ | |
7181 | && test -f ${target_subdir}/${module}/Makefile; then | |
7182 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7183 | rm -f ${target_subdir}/${module}/Makefile | |
7184 | fi | |
e8a5fa9c RW |
7185 | |
7186 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7187 | case $bootstrap_target_libs in | |
7188 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7189 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7190 | esac | |
7191 | ||
06a51eac | 7192 | extrasub_target="$extrasub_target |
498d4a71 CF |
7193 | /^@if target-$module\$/d |
7194 | /^@endif target-$module\$/d | |
e8a5fa9c RW |
7195 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7196 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
7197 | done |
7198 | ||
06a51eac RW |
7199 | # Do the final fixup along with target modules. |
7200 | extrasub_target="$extrasub_target | |
6bd3dfaa | 7201 | /^@if /,/^@endif /d" |
a0da8069 NN |
7202 | |
7203 | # Create the serialization dependencies. This uses a temporary file. | |
7204 | ||
81ecdfbb RW |
7205 | # Check whether --enable-serial-configure was given. |
7206 | if test "${enable_serial_configure+set}" = set; then : | |
7207 | enableval=$enable_serial_configure; | |
7208 | fi | |
e6bfb94a AO |
7209 | |
7210 | ||
1047cb91 DD |
7211 | case ${enable_serial_configure} in |
7212 | yes) | |
7213 | enable_serial_build_configure=yes | |
7214 | enable_serial_host_configure=yes | |
7215 | enable_serial_target_configure=yes | |
7216 | ;; | |
7217 | esac | |
7218 | ||
a0da8069 NN |
7219 | # These force 'configure's to be done one at a time, to avoid problems |
7220 | # with contention over a shared config.cache. | |
7221 | rm -f serdep.tmp | |
e6bfb94a | 7222 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 7223 | olditem= |
1047cb91 | 7224 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
7225 | for item in ${build_configdirs} ; do |
7226 | case ${olditem} in | |
7227 | "") ;; | |
e6bfb94a | 7228 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7229 | esac |
7230 | olditem=${item} | |
7231 | done | |
7232 | olditem= | |
1047cb91 | 7233 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
7234 | for item in ${configdirs} ; do |
7235 | case ${olditem} in | |
7236 | "") ;; | |
e6bfb94a | 7237 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7238 | esac |
7239 | olditem=${item} | |
7240 | done | |
7241 | olditem= | |
1047cb91 | 7242 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
7243 | for item in ${target_configdirs} ; do |
7244 | case ${olditem} in | |
7245 | "") ;; | |
e6bfb94a | 7246 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7247 | esac |
7248 | olditem=${item} | |
7249 | done | |
7250 | serialization_dependencies=serdep.tmp | |
7251 | ||
7252 | ||
e6bfb94a | 7253 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 7254 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
7255 | # might not want to pass down to subconfigures. The exception being |
7256 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7257 | # files altogether, and which should be passed on to subconfigures. | |
7258 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7259 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 7260 | baseargs= |
65b4571a | 7261 | tbaseargs= |
c6b750e1 DJ |
7262 | keep_next=no |
7263 | skip_next=no | |
7264 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
7265 | for ac_arg |
7266 | do | |
c6b750e1 DJ |
7267 | if test X"$skip_next" = X"yes"; then |
7268 | skip_next=no | |
7269 | continue | |
7270 | fi | |
7271 | if test X"$keep_next" = X"yes"; then | |
7272 | case $ac_arg in | |
7273 | *\'*) | |
7274 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7275 | esac | |
7276 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7277 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
7278 | keep_next=no |
7279 | continue | |
7280 | fi | |
7281 | ||
7282 | # Handle separated arguments. Based on the logic generated by | |
7283 | # autoconf 2.59. | |
7284 | case $ac_arg in | |
7285 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7286 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7287 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7288 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7289 | separate_arg=no | |
7290 | ;; | |
7291 | -*) | |
7292 | separate_arg=yes | |
7293 | ;; | |
7294 | *) | |
7295 | separate_arg=no | |
7296 | ;; | |
7297 | esac | |
7298 | ||
65b4571a AO |
7299 | skip_targ=no |
7300 | case $ac_arg in | |
7301 | ||
7302 | --with-* | --without-*) | |
7303 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7304 | ||
7305 | case $libopt in | |
7306 | *[-_]include) | |
7307 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7308 | ;; | |
7309 | *[-_]lib) | |
7310 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7311 | ;; | |
7312 | *) | |
7313 | lib=$libopt | |
7314 | ;; | |
7315 | esac | |
7316 | ||
7317 | ||
7318 | case $lib in | |
1b6c0831 | 7319 | mpc | mpfr | gmp | isl) |
65b4571a AO |
7320 | # If we're processing --with-$lib, --with-$lib-include or |
7321 | # --with-$lib-lib, for one of the libs above, and target is | |
7322 | # different from host, don't pass the current argument to any | |
7323 | # target library's configure. | |
7324 | if test x$is_cross_compiler = xyes; then | |
7325 | skip_targ=yes | |
7326 | fi | |
7327 | ;; | |
7328 | esac | |
7329 | ;; | |
7330 | esac | |
7331 | ||
c6b750e1 | 7332 | case "$ac_arg" in |
30167e0a NC |
7333 | --cache-file=/dev/null | \ |
7334 | -cache-file=/dev/null ) | |
7335 | # Handled here to avoid the test to skip args below. | |
7336 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7337 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
7338 | # Assert: $separate_arg should always be no. |
7339 | keep_next=$separate_arg | |
7340 | ;; | |
c6b750e1 DJ |
7341 | --no*) |
7342 | continue | |
7343 | ;; | |
7344 | --c* | \ | |
7345 | --sr* | \ | |
7346 | --ho* | \ | |
7347 | --bu* | \ | |
7348 | --t* | \ | |
7349 | --program-* | \ | |
7350 | -cache_file* | \ | |
7351 | -srcdir* | \ | |
7352 | -host* | \ | |
7353 | -build* | \ | |
7354 | -target* | \ | |
7355 | -program-prefix* | \ | |
7356 | -program-suffix* | \ | |
7357 | -program-transform-name* ) | |
7358 | skip_next=$separate_arg | |
7359 | continue | |
7360 | ;; | |
7361 | -*) | |
7362 | # An option. Add it. | |
7363 | case $ac_arg in | |
7364 | *\'*) | |
7365 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7366 | esac | |
7367 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
7368 | if test X"$skip_targ" = Xno; then |
7369 | tbaseargs="$tbaseargs '$ac_arg'" | |
7370 | fi | |
c6b750e1 DJ |
7371 | keep_next=$separate_arg |
7372 | ;; | |
7373 | *) | |
7374 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7375 | # pass it down; let the Makefile handle this. | |
7376 | continue | |
7377 | ;; | |
7378 | esac | |
7379 | done | |
7380 | # Remove the initial space we just introduced and, as these will be | |
7381 | # expanded by make, quote '$'. | |
7382 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 7383 | |
f27d4f92 DJ |
7384 | # Add in --program-transform-name, after --program-prefix and |
7385 | # --program-suffix have been applied to it. Autoconf has already | |
7386 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7387 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 7388 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
7389 | # Also, because we want to override the logic in subdir configure scripts to |
7390 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7391 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7392 | ${program_transform_name} | |
7393 | EOF_SED | |
7394 | gcc_transform_name=`cat conftestsed.out` | |
7395 | rm -f conftestsed.out | |
7396 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 7397 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
7398 | if test "$silent" = yes; then |
7399 | baseargs="$baseargs --silent" | |
65b4571a | 7400 | tbaseargs="$tbaseargs --silent" |
2444379b | 7401 | fi |
34a0f3cf | 7402 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 7403 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 7404 | |
4074d5f2 RW |
7405 | # Record and document user additions to sub configure arguments. |
7406 | ||
7407 | ||
7408 | ||
7409 | ||
a0da8069 NN |
7410 | # For the build-side libraries, we just need to pretend we're native, |
7411 | # and not use the same cache file. Multilibs are neither needed nor | |
1b6c0831 L |
7412 | # desired. We can't even use the same cache file for all build-side |
7413 | # libraries, as they're compiled differently; some with C, some with | |
7414 | # C++ or with different feature-enabling options. | |
7415 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
a0da8069 NN |
7416 | |
7417 | # For host modules, accept cache file option, or specification as blank. | |
7418 | case "${cache_file}" in | |
7419 | "") # empty | |
7420 | cache_file_option="" ;; | |
7421 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7422 | cache_file_option="--cache-file=${cache_file}" ;; | |
7423 | *) # relative path | |
7424 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7425 | esac | |
7426 | ||
82252c06 NN |
7427 | # Host dirs don't like to share a cache file either, horribly enough. |
7428 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 7429 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 7430 | |
65b4571a | 7431 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
7432 | |
7433 | # Passing a --with-cross-host argument lets the target libraries know | |
7434 | # whether they are being built with a cross-compiler or being built | |
7435 | # native. However, it would be better to use other mechanisms to make the | |
7436 | # sorts of decisions they want to make on this basis. Please consider | |
7437 | # this option to be deprecated. FIXME. | |
7438 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 7439 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
7440 | fi |
7441 | ||
afc0578d | 7442 | # Special user-friendly check for native x86_64-linux build, if |
7443 | # multilib is not explicitly enabled. | |
7444 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7445 | x86_64-*linux*:yes:$build:$build:) | |
7446 | # Make sure we have a developement environment that handles 32-bit | |
7447 | dev64=no | |
7448 | echo "int main () { return 0; }" > conftest.c | |
7449 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7450 | if test $? = 0 ; then | |
7451 | if test -s conftest || test -s conftest.exe ; then | |
7452 | dev64=yes | |
7453 | fi | |
7454 | fi | |
7455 | rm -f conftest* | |
7456 | if test x${dev64} != xyes ; then | |
7457 | as_fn_error "I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5 | |
7458 | fi | |
7459 | ;; | |
7460 | esac | |
7461 | ||
938d2b74 RW |
7462 | # Default to --enable-multilib. |
7463 | if test x${enable_multilib} = x ; then | |
a0da8069 | 7464 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 7465 | fi |
a0da8069 NN |
7466 | |
7467 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7468 | # changed from the earlier setting of with_newlib. | |
7469 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7470 | target_configargs="--with-newlib ${target_configargs}" | |
7471 | fi | |
7472 | ||
95036d20 NN |
7473 | # Different target subdirs use different values of certain variables |
7474 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7475 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7476 | # it doesn't automatically accept command-line overrides of them. | |
7477 | # This means it's not safe for target subdirs to share a cache file, | |
7478 | # which is disgusting, but there you have it. Hopefully this can be | |
7479 | # fixed in future. It's still worthwhile to use a cache file for each | |
7480 | # directory. I think. | |
7481 | ||
ae380b45 MS |
7482 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7483 | # We need to pass --target, as newer autoconf's requires consistency | |
7484 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 7485 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 7486 | |
a0da8069 NN |
7487 | FLAGS_FOR_TARGET= |
7488 | case " $target_configdirs " in | |
7489 | *" newlib "*) | |
7490 | case " $target_configargs " in | |
7491 | *" --with-newlib "*) | |
7492 | case "$target" in | |
1f53ca9a | 7493 | *-cygwin*) |
6d94c122 | 7494 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
1f53ca9a | 7495 | ;; |
a0da8069 NN |
7496 | esac |
7497 | ||
7498 | # If we're not building GCC, don't discard standard headers. | |
7499 | if test -d ${srcdir}/gcc; then | |
7500 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7501 | ||
7502 | if test "${build}" != "${host}"; then | |
7503 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7504 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7505 | # to it. This is right: we don't want to search that directory | |
7506 | # for binaries, but we want the header files in there, so add | |
7507 | # them explicitly. | |
e552509b | 7508 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
7509 | |
7510 | # Someone might think of using the pre-installed headers on | |
7511 | # Canadian crosses, in case the installed compiler is not fully | |
7512 | # compatible with the compiler being built. In this case, it | |
7513 | # would be better to flag an error than risking having | |
7514 | # incompatible object files being constructed. We can't | |
7515 | # guarantee that an error will be flagged, but let's hope the | |
7516 | # compiler will do it, when presented with incompatible header | |
7517 | # files. | |
7518 | fi | |
7519 | fi | |
7520 | ||
7521 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 7522 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
7523 | # Here host == target, so we don't need to build gcc, |
7524 | # so we don't want to discard standard headers. | |
7525 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7526 | ;; | |
7527 | *) | |
7528 | # If we're building newlib, use its generic headers last, but search | |
7529 | # for any libc-related directories first (so make it the last -B | |
7530 | # switch). | |
7531 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
691bb5a1 DD |
7532 | |
7533 | # If we're building libgloss, find the startup file, simulator library | |
7534 | # and linker script. | |
7535 | case " $target_configdirs " in | |
7536 | *" libgloss "*) | |
7537 | # Look for startup file, simulator library and maybe linker script. | |
7538 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7539 | # Look for libnosys.a in case the target needs it. | |
7540 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7541 | # Most targets have the linker script in the source directory. | |
7542 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7543 | ;; | |
7544 | esac | |
a0da8069 NN |
7545 | ;; |
7546 | esac | |
7547 | ;; | |
7548 | esac | |
7549 | ;; | |
7550 | esac | |
1f53ca9a | 7551 | |
45055374 | 7552 | case "$target" in |
1f53ca9a AO |
7553 | x86_64-*mingw* | *-w64-mingw*) |
7554 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7555 | # however, use a symlink named 'mingw' in ${prefix} . | |
7556 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7557 | ;; | |
7558 | *-mingw*) | |
7559 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7560 | 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' | |
7561 | ;; | |
45055374 | 7562 | esac |
a0da8069 | 7563 | |
5fbad20a DD |
7564 | # Allow the user to override the flags for |
7565 | # our build compiler if desired. | |
c66487f8 NC |
7566 | if test x"${build}" = x"${host}" ; then |
7567 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7568 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7569 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7570 | fi | |
5fbad20a | 7571 | |
a0da8069 NN |
7572 | # On Canadian crosses, we'll be searching the right directories for |
7573 | # the previously-installed cross compiler, so don't bother to add | |
7574 | # flags for directories within the install tree of the compiler | |
7575 | # being built; programs in there won't even run. | |
7576 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7577 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 7578 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
a0da8069 NN |
7579 | fi |
7580 | ||
7581 | if test "x${use_gnu_ld}" = x && | |
7582 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7583 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 7584 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
7585 | fi |
7586 | ||
a481dbb7 DD |
7587 | # Search for other target-specific linker scripts and such. |
7588 | case "${target}" in | |
4e206d7e DB |
7589 | mep*) |
7590 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7591 | ;; | |
7592 | esac | |
7593 | ||
a0da8069 | 7594 | # Makefile fragments. |
3e707e94 PB |
7595 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7596 | do | |
7597 | eval fragval=\$$frag | |
7598 | if test $fragval != /dev/null; then | |
7599 | eval $frag=${srcdir}/$fragval | |
7600 | fi | |
7601 | done | |
a0da8069 NN |
7602 | |
7603 | ||
7604 | ||
7605 | ||
7606 | ||
7607 | # Miscellanea: directories, flags, etc. | |
7608 | ||
7609 | ||
7610 | ||
7611 | ||
7612 | ||
7613 | ||
7614 | ||
3bbd2f8f | 7615 | |
6a9cf61e | 7616 | # Build module lists & subconfigure args. |
a0da8069 NN |
7617 | |
7618 | ||
7619 | ||
be01d343 PB |
7620 | # Host module lists & subconfigure args. |
7621 | ||
7622 | ||
7623 | ||
911e63d0 | 7624 | |
be01d343 PB |
7625 | # Target module lists & subconfigure args. |
7626 | ||
7627 | ||
7628 | ||
7629 | # Build tools. | |
7630 | ||
7631 | ||
7632 | ||
1576798e PB |
7633 | |
7634 | ||
7635 | ||
7636 | ||
7637 | ||
7638 | ||
7639 | ||
7640 | ||
7641 | ||
7642 | ||
7643 | ||
7644 | ||
7645 | ||
7646 | ||
be01d343 PB |
7647 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7648 | # on the build machine. These are used if the Makefile can't locate these | |
7649 | # programs in objdir. | |
7650 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7651 | ||
7652 | for ac_prog in 'bison -y' byacc yacc | |
7653 | do | |
c6b750e1 | 7654 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7655 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7657 | $as_echo_n "checking for $ac_word... " >&6; } | |
7658 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7659 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7660 | else |
7661 | if test -n "$YACC"; then | |
7662 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7663 | else | |
c6b750e1 DJ |
7664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7665 | for as_dir in $PATH | |
7666 | do | |
7667 | IFS=$as_save_IFS | |
7668 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7669 | for ac_exec_ext in '' $ac_executable_extensions; do |
7670 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7671 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 7672 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7673 | break 2 |
7674 | fi | |
7675 | done | |
81ecdfbb RW |
7676 | done |
7677 | IFS=$as_save_IFS | |
c6b750e1 | 7678 | |
be01d343 PB |
7679 | fi |
7680 | fi | |
c6b750e1 | 7681 | YACC=$ac_cv_prog_YACC |
be01d343 | 7682 | if test -n "$YACC"; then |
81ecdfbb RW |
7683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7684 | $as_echo "$YACC" >&6; } | |
be01d343 | 7685 | else |
81ecdfbb RW |
7686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7687 | $as_echo "no" >&6; } | |
be01d343 PB |
7688 | fi |
7689 | ||
81ecdfbb | 7690 | |
c6b750e1 | 7691 | test -n "$YACC" && break |
be01d343 PB |
7692 | done |
7693 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7694 | ||
7695 | case " $build_configdirs " in | |
7696 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
7697 | esac |
7698 | ||
7699 | for ac_prog in bison | |
7700 | do | |
c6b750e1 | 7701 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7702 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7704 | $as_echo_n "checking for $ac_word... " >&6; } | |
7705 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7706 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7707 | else |
7708 | if test -n "$BISON"; then | |
7709 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7710 | else | |
c6b750e1 DJ |
7711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7712 | for as_dir in $PATH | |
7713 | do | |
7714 | IFS=$as_save_IFS | |
7715 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7716 | for ac_exec_ext in '' $ac_executable_extensions; do |
7717 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7718 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 7719 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7720 | break 2 |
7721 | fi | |
7722 | done | |
81ecdfbb RW |
7723 | done |
7724 | IFS=$as_save_IFS | |
c6b750e1 | 7725 | |
be01d343 PB |
7726 | fi |
7727 | fi | |
c6b750e1 | 7728 | BISON=$ac_cv_prog_BISON |
be01d343 | 7729 | if test -n "$BISON"; then |
81ecdfbb RW |
7730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7731 | $as_echo "$BISON" >&6; } | |
be01d343 | 7732 | else |
81ecdfbb RW |
7733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7734 | $as_echo "no" >&6; } | |
be01d343 PB |
7735 | fi |
7736 | ||
81ecdfbb | 7737 | |
c6b750e1 | 7738 | test -n "$BISON" && break |
be01d343 PB |
7739 | done |
7740 | test -n "$BISON" || BISON="$MISSING bison" | |
7741 | ||
7742 | case " $build_configdirs " in | |
7743 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7744 | esac | |
7745 | ||
7746 | for ac_prog in gm4 gnum4 m4 | |
7747 | do | |
c6b750e1 | 7748 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7749 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7751 | $as_echo_n "checking for $ac_word... " >&6; } | |
7752 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7753 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7754 | else |
7755 | if test -n "$M4"; then | |
7756 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7757 | else | |
c6b750e1 DJ |
7758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7759 | for as_dir in $PATH | |
7760 | do | |
7761 | IFS=$as_save_IFS | |
7762 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7763 | for ac_exec_ext in '' $ac_executable_extensions; do |
7764 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7765 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 7766 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7767 | break 2 |
7768 | fi | |
7769 | done | |
81ecdfbb RW |
7770 | done |
7771 | IFS=$as_save_IFS | |
c6b750e1 | 7772 | |
be01d343 PB |
7773 | fi |
7774 | fi | |
c6b750e1 | 7775 | M4=$ac_cv_prog_M4 |
be01d343 | 7776 | if test -n "$M4"; then |
81ecdfbb RW |
7777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7778 | $as_echo "$M4" >&6; } | |
be01d343 | 7779 | else |
81ecdfbb RW |
7780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7781 | $as_echo "no" >&6; } | |
be01d343 PB |
7782 | fi |
7783 | ||
81ecdfbb | 7784 | |
c6b750e1 | 7785 | test -n "$M4" && break |
be01d343 PB |
7786 | done |
7787 | test -n "$M4" || M4="$MISSING m4" | |
7788 | ||
7789 | case " $build_configdirs " in | |
7790 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7791 | esac | |
7792 | ||
7793 | for ac_prog in flex lex | |
7794 | do | |
c6b750e1 | 7795 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7796 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7798 | $as_echo_n "checking for $ac_word... " >&6; } | |
7799 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7800 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7801 | else |
7802 | if test -n "$LEX"; then | |
7803 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7804 | else | |
c6b750e1 DJ |
7805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7806 | for as_dir in $PATH | |
7807 | do | |
7808 | IFS=$as_save_IFS | |
7809 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7810 | for ac_exec_ext in '' $ac_executable_extensions; do |
7811 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7812 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 7813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7814 | break 2 |
7815 | fi | |
7816 | done | |
81ecdfbb RW |
7817 | done |
7818 | IFS=$as_save_IFS | |
c6b750e1 | 7819 | |
be01d343 PB |
7820 | fi |
7821 | fi | |
c6b750e1 | 7822 | LEX=$ac_cv_prog_LEX |
be01d343 | 7823 | if test -n "$LEX"; then |
81ecdfbb RW |
7824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7825 | $as_echo "$LEX" >&6; } | |
be01d343 | 7826 | else |
81ecdfbb RW |
7827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7828 | $as_echo "no" >&6; } | |
be01d343 PB |
7829 | fi |
7830 | ||
81ecdfbb | 7831 | |
c6b750e1 | 7832 | test -n "$LEX" && break |
be01d343 PB |
7833 | done |
7834 | test -n "$LEX" || LEX="$MISSING flex" | |
7835 | ||
7836 | case " $build_configdirs " in | |
7837 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7838 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7839 | esac | |
7840 | ||
7841 | for ac_prog in flex | |
7842 | do | |
c6b750e1 | 7843 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7844 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7846 | $as_echo_n "checking for $ac_word... " >&6; } | |
7847 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7848 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7849 | else |
7850 | if test -n "$FLEX"; then | |
7851 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7852 | else | |
c6b750e1 DJ |
7853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7854 | for as_dir in $PATH | |
7855 | do | |
7856 | IFS=$as_save_IFS | |
7857 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7858 | for ac_exec_ext in '' $ac_executable_extensions; do |
7859 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7860 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 7861 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7862 | break 2 |
7863 | fi | |
7864 | done | |
81ecdfbb RW |
7865 | done |
7866 | IFS=$as_save_IFS | |
c6b750e1 | 7867 | |
be01d343 PB |
7868 | fi |
7869 | fi | |
c6b750e1 | 7870 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 7871 | if test -n "$FLEX"; then |
81ecdfbb RW |
7872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7873 | $as_echo "$FLEX" >&6; } | |
be01d343 | 7874 | else |
81ecdfbb RW |
7875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7876 | $as_echo "no" >&6; } | |
be01d343 PB |
7877 | fi |
7878 | ||
81ecdfbb | 7879 | |
c6b750e1 | 7880 | test -n "$FLEX" && break |
be01d343 PB |
7881 | done |
7882 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7883 | ||
7884 | case " $build_configdirs " in | |
7885 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7886 | esac | |
7887 | ||
7888 | for ac_prog in makeinfo | |
7889 | do | |
c6b750e1 | 7890 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7891 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7893 | $as_echo_n "checking for $ac_word... " >&6; } | |
7894 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7895 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7896 | else |
7897 | if test -n "$MAKEINFO"; then | |
7898 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7899 | else | |
c6b750e1 DJ |
7900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7901 | for as_dir in $PATH | |
7902 | do | |
7903 | IFS=$as_save_IFS | |
7904 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7905 | for ac_exec_ext in '' $ac_executable_extensions; do |
7906 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7907 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 7908 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7909 | break 2 |
7910 | fi | |
7911 | done | |
81ecdfbb RW |
7912 | done |
7913 | IFS=$as_save_IFS | |
c6b750e1 | 7914 | |
be01d343 PB |
7915 | fi |
7916 | fi | |
c6b750e1 | 7917 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 7918 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
7919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7920 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 7921 | else |
81ecdfbb RW |
7922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7923 | $as_echo "no" >&6; } | |
be01d343 PB |
7924 | fi |
7925 | ||
81ecdfbb | 7926 | |
c6b750e1 | 7927 | test -n "$MAKEINFO" && break |
be01d343 PB |
7928 | done |
7929 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7930 | ||
7931 | case " $build_configdirs " in | |
7932 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7933 | *) | |
7934 | ||
10ad8ef3 | 7935 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
7936 | # higher, else we use the "missing" dummy. |
7937 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 7938 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
7939 | : |
7940 | else | |
7941 | MAKEINFO="$MISSING makeinfo" | |
7942 | fi | |
7943 | ;; | |
7944 | ||
7945 | esac | |
a0da8069 | 7946 | |
be01d343 | 7947 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 7948 | |
be01d343 PB |
7949 | for ac_prog in expect |
7950 | do | |
c6b750e1 | 7951 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7952 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7954 | $as_echo_n "checking for $ac_word... " >&6; } | |
7955 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7956 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7957 | else |
7958 | if test -n "$EXPECT"; then | |
7959 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7960 | else | |
c6b750e1 DJ |
7961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7962 | for as_dir in $PATH | |
7963 | do | |
7964 | IFS=$as_save_IFS | |
7965 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7966 | for ac_exec_ext in '' $ac_executable_extensions; do |
7967 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7968 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 7969 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7970 | break 2 |
7971 | fi | |
7972 | done | |
81ecdfbb RW |
7973 | done |
7974 | IFS=$as_save_IFS | |
c6b750e1 | 7975 | |
be01d343 PB |
7976 | fi |
7977 | fi | |
c6b750e1 | 7978 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 7979 | if test -n "$EXPECT"; then |
81ecdfbb RW |
7980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
7981 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 7982 | else |
81ecdfbb RW |
7983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7984 | $as_echo "no" >&6; } | |
be01d343 | 7985 | fi |
a0da8069 | 7986 | |
81ecdfbb | 7987 | |
c6b750e1 | 7988 | test -n "$EXPECT" && break |
be01d343 PB |
7989 | done |
7990 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 7991 | |
be01d343 PB |
7992 | case " $configdirs " in |
7993 | *" expect "*) | |
7994 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
7995 | ;; | |
7996 | esac | |
a0da8069 | 7997 | |
be01d343 PB |
7998 | for ac_prog in runtest |
7999 | do | |
c6b750e1 | 8000 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8001 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8003 | $as_echo_n "checking for $ac_word... " >&6; } | |
8004 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
8005 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8006 | else |
8007 | if test -n "$RUNTEST"; then | |
8008 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
8009 | else | |
c6b750e1 DJ |
8010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8011 | for as_dir in $PATH | |
8012 | do | |
8013 | IFS=$as_save_IFS | |
8014 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8015 | for ac_exec_ext in '' $ac_executable_extensions; do |
8016 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8017 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 8018 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8019 | break 2 |
8020 | fi | |
8021 | done | |
81ecdfbb RW |
8022 | done |
8023 | IFS=$as_save_IFS | |
c6b750e1 | 8024 | |
be01d343 PB |
8025 | fi |
8026 | fi | |
c6b750e1 | 8027 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 8028 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
8029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8030 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 8031 | else |
81ecdfbb RW |
8032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8033 | $as_echo "no" >&6; } | |
be01d343 | 8034 | fi |
a0da8069 | 8035 | |
81ecdfbb | 8036 | |
c6b750e1 | 8037 | test -n "$RUNTEST" && break |
be01d343 PB |
8038 | done |
8039 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 8040 | |
be01d343 PB |
8041 | case " $configdirs " in |
8042 | *" dejagnu "*) | |
6b89cc21 | 8043 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
8044 | ;; |
8045 | esac | |
a0da8069 NN |
8046 | |
8047 | ||
a0da8069 | 8048 | # Host tools. |
859789af AC |
8049 | ncn_tool_prefix= |
8050 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8051 | ncn_target_tool_prefix= | |
8052 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8053 | ||
9a819804 AO |
8054 | |
8055 | ||
8056 | if test -n "$AR"; then | |
8057 | ac_cv_prog_AR=$AR | |
8058 | elif test -n "$ac_cv_prog_AR"; then | |
8059 | AR=$ac_cv_prog_AR | |
8060 | fi | |
8061 | ||
8062 | if test -n "$ac_cv_prog_AR"; then | |
8063 | for ncn_progname in ar; do | |
8064 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8065 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8067 | $as_echo_n "checking for $ac_word... " >&6; } | |
8068 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8069 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8070 | else |
8071 | if test -n "$AR"; then | |
8072 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8073 | else | |
8074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8075 | for as_dir in $PATH | |
8076 | do | |
8077 | IFS=$as_save_IFS | |
8078 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8079 | for ac_exec_ext in '' $ac_executable_extensions; do |
8080 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8081 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8082 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8083 | break 2 |
8084 | fi | |
8085 | done | |
81ecdfbb RW |
8086 | done |
8087 | IFS=$as_save_IFS | |
9a819804 AO |
8088 | |
8089 | fi | |
8090 | fi | |
8091 | AR=$ac_cv_prog_AR | |
8092 | if test -n "$AR"; then | |
81ecdfbb RW |
8093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8094 | $as_echo "$AR" >&6; } | |
9a819804 | 8095 | else |
81ecdfbb RW |
8096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8097 | $as_echo "no" >&6; } | |
9a819804 AO |
8098 | fi |
8099 | ||
81ecdfbb | 8100 | |
9a819804 AO |
8101 | done |
8102 | fi | |
8103 | ||
8104 | for ncn_progname in ar; do | |
05cbd757 PB |
8105 | if test -n "$ncn_tool_prefix"; then |
8106 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8107 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8109 | $as_echo_n "checking for $ac_word... " >&6; } | |
8110 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8111 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8112 | else |
8113 | if test -n "$AR"; then | |
8114 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8115 | else | |
c6b750e1 DJ |
8116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8117 | for as_dir in $PATH | |
8118 | do | |
8119 | IFS=$as_save_IFS | |
8120 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8121 | for ac_exec_ext in '' $ac_executable_extensions; do |
8122 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8123 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8124 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8125 | break 2 |
8126 | fi | |
8127 | done | |
81ecdfbb RW |
8128 | done |
8129 | IFS=$as_save_IFS | |
c6b750e1 | 8130 | |
859789af AC |
8131 | fi |
8132 | fi | |
c6b750e1 | 8133 | AR=$ac_cv_prog_AR |
859789af | 8134 | if test -n "$AR"; then |
81ecdfbb RW |
8135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8136 | $as_echo "$AR" >&6; } | |
859789af | 8137 | else |
81ecdfbb RW |
8138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8139 | $as_echo "no" >&6; } | |
859789af AC |
8140 | fi |
8141 | ||
81ecdfbb | 8142 | |
05cbd757 PB |
8143 | fi |
8144 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8145 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8146 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8148 | $as_echo_n "checking for $ac_word... " >&6; } | |
8149 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8150 | $as_echo_n "(cached) " >&6 | |
859789af | 8151 | else |
05cbd757 PB |
8152 | if test -n "$AR"; then |
8153 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 8154 | else |
c6b750e1 DJ |
8155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8156 | for as_dir in $PATH | |
8157 | do | |
8158 | IFS=$as_save_IFS | |
8159 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8160 | for ac_exec_ext in '' $ac_executable_extensions; do |
8161 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8162 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8163 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8164 | break 2 |
8165 | fi | |
8166 | done | |
81ecdfbb RW |
8167 | done |
8168 | IFS=$as_save_IFS | |
c6b750e1 | 8169 | |
859789af AC |
8170 | fi |
8171 | fi | |
c6b750e1 | 8172 | AR=$ac_cv_prog_AR |
05cbd757 | 8173 | if test -n "$AR"; then |
81ecdfbb RW |
8174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8175 | $as_echo "$AR" >&6; } | |
859789af | 8176 | else |
81ecdfbb RW |
8177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8178 | $as_echo "no" >&6; } | |
859789af | 8179 | fi |
c6b750e1 | 8180 | |
81ecdfbb | 8181 | |
05cbd757 PB |
8182 | fi |
8183 | test -n "$ac_cv_prog_AR" && break | |
8184 | done | |
8185 | ||
8186 | if test -z "$ac_cv_prog_AR" ; then | |
8187 | set dummy ar | |
8188 | if test $build = $host ; then | |
8189 | AR="$2" | |
859789af | 8190 | else |
05cbd757 | 8191 | AR="${ncn_tool_prefix}$2" |
859789af | 8192 | fi |
859789af AC |
8193 | fi |
8194 | ||
9a819804 AO |
8195 | |
8196 | ||
8197 | if test -n "$AS"; then | |
8198 | ac_cv_prog_AS=$AS | |
8199 | elif test -n "$ac_cv_prog_AS"; then | |
8200 | AS=$ac_cv_prog_AS | |
8201 | fi | |
8202 | ||
8203 | if test -n "$ac_cv_prog_AS"; then | |
8204 | for ncn_progname in as; do | |
8205 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8206 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8208 | $as_echo_n "checking for $ac_word... " >&6; } | |
8209 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8210 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8211 | else |
8212 | if test -n "$AS"; then | |
8213 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8214 | else | |
8215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8216 | for as_dir in $PATH | |
8217 | do | |
8218 | IFS=$as_save_IFS | |
8219 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8220 | for ac_exec_ext in '' $ac_executable_extensions; do |
8221 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8222 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8223 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8224 | break 2 |
8225 | fi | |
8226 | done | |
81ecdfbb RW |
8227 | done |
8228 | IFS=$as_save_IFS | |
9a819804 AO |
8229 | |
8230 | fi | |
8231 | fi | |
8232 | AS=$ac_cv_prog_AS | |
8233 | if test -n "$AS"; then | |
81ecdfbb RW |
8234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8235 | $as_echo "$AS" >&6; } | |
9a819804 | 8236 | else |
81ecdfbb RW |
8237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8238 | $as_echo "no" >&6; } | |
9a819804 AO |
8239 | fi |
8240 | ||
81ecdfbb | 8241 | |
9a819804 AO |
8242 | done |
8243 | fi | |
8244 | ||
8245 | for ncn_progname in as; do | |
05cbd757 PB |
8246 | if test -n "$ncn_tool_prefix"; then |
8247 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8248 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8250 | $as_echo_n "checking for $ac_word... " >&6; } | |
8251 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8252 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8253 | else |
8254 | if test -n "$AS"; then | |
8255 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
8256 | else |
8257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8258 | for as_dir in $PATH | |
8259 | do | |
8260 | IFS=$as_save_IFS | |
8261 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8262 | for ac_exec_ext in '' $ac_executable_extensions; do |
8263 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8264 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8265 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8266 | break 2 |
8267 | fi | |
8268 | done | |
81ecdfbb RW |
8269 | done |
8270 | IFS=$as_save_IFS | |
c6b750e1 | 8271 | |
859789af AC |
8272 | fi |
8273 | fi | |
c6b750e1 | 8274 | AS=$ac_cv_prog_AS |
859789af | 8275 | if test -n "$AS"; then |
81ecdfbb RW |
8276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8277 | $as_echo "$AS" >&6; } | |
859789af | 8278 | else |
81ecdfbb RW |
8279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8280 | $as_echo "no" >&6; } | |
859789af AC |
8281 | fi |
8282 | ||
81ecdfbb | 8283 | |
05cbd757 PB |
8284 | fi |
8285 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8286 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8287 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8289 | $as_echo_n "checking for $ac_word... " >&6; } | |
8290 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8291 | $as_echo_n "(cached) " >&6 | |
859789af | 8292 | else |
05cbd757 PB |
8293 | if test -n "$AS"; then |
8294 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 8295 | else |
c6b750e1 DJ |
8296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8297 | for as_dir in $PATH | |
8298 | do | |
8299 | IFS=$as_save_IFS | |
8300 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8301 | for ac_exec_ext in '' $ac_executable_extensions; do |
8302 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8303 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8304 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8305 | break 2 |
8306 | fi | |
8307 | done | |
81ecdfbb RW |
8308 | done |
8309 | IFS=$as_save_IFS | |
c6b750e1 | 8310 | |
859789af AC |
8311 | fi |
8312 | fi | |
c6b750e1 | 8313 | AS=$ac_cv_prog_AS |
05cbd757 | 8314 | if test -n "$AS"; then |
81ecdfbb RW |
8315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8316 | $as_echo "$AS" >&6; } | |
859789af | 8317 | else |
81ecdfbb RW |
8318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8319 | $as_echo "no" >&6; } | |
859789af | 8320 | fi |
c6b750e1 | 8321 | |
81ecdfbb | 8322 | |
05cbd757 PB |
8323 | fi |
8324 | test -n "$ac_cv_prog_AS" && break | |
8325 | done | |
8326 | ||
8327 | if test -z "$ac_cv_prog_AS" ; then | |
8328 | set dummy as | |
8329 | if test $build = $host ; then | |
8330 | AS="$2" | |
859789af | 8331 | else |
05cbd757 | 8332 | AS="${ncn_tool_prefix}$2" |
859789af | 8333 | fi |
859789af AC |
8334 | fi |
8335 | ||
9a819804 AO |
8336 | |
8337 | ||
8338 | if test -n "$DLLTOOL"; then | |
8339 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8340 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8341 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8342 | fi | |
8343 | ||
8344 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8345 | for ncn_progname in dlltool; do | |
8346 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8347 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8349 | $as_echo_n "checking for $ac_word... " >&6; } | |
8350 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8351 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8352 | else |
8353 | if test -n "$DLLTOOL"; then | |
8354 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8355 | else | |
8356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8357 | for as_dir in $PATH | |
8358 | do | |
8359 | IFS=$as_save_IFS | |
8360 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8361 | for ac_exec_ext in '' $ac_executable_extensions; do |
8362 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8363 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8364 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8365 | break 2 |
8366 | fi | |
8367 | done | |
81ecdfbb RW |
8368 | done |
8369 | IFS=$as_save_IFS | |
9a819804 AO |
8370 | |
8371 | fi | |
8372 | fi | |
8373 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8374 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
8375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8376 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 8377 | else |
81ecdfbb RW |
8378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8379 | $as_echo "no" >&6; } | |
9a819804 AO |
8380 | fi |
8381 | ||
81ecdfbb | 8382 | |
9a819804 AO |
8383 | done |
8384 | fi | |
8385 | ||
8386 | for ncn_progname in dlltool; do | |
05cbd757 PB |
8387 | if test -n "$ncn_tool_prefix"; then |
8388 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8389 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8391 | $as_echo_n "checking for $ac_word... " >&6; } | |
8392 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8393 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8394 | else |
8395 | if test -n "$DLLTOOL"; then | |
8396 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8397 | else | |
c6b750e1 DJ |
8398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8399 | for as_dir in $PATH | |
8400 | do | |
8401 | IFS=$as_save_IFS | |
8402 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8403 | for ac_exec_ext in '' $ac_executable_extensions; do |
8404 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8405 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8406 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8407 | break 2 |
8408 | fi | |
8409 | done | |
81ecdfbb RW |
8410 | done |
8411 | IFS=$as_save_IFS | |
c6b750e1 | 8412 | |
859789af AC |
8413 | fi |
8414 | fi | |
c6b750e1 | 8415 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 8416 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8418 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8419 | else |
81ecdfbb RW |
8420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8421 | $as_echo "no" >&6; } | |
859789af AC |
8422 | fi |
8423 | ||
81ecdfbb | 8424 | |
05cbd757 PB |
8425 | fi |
8426 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8427 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8428 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8430 | $as_echo_n "checking for $ac_word... " >&6; } | |
8431 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8432 | $as_echo_n "(cached) " >&6 | |
859789af | 8433 | else |
05cbd757 PB |
8434 | if test -n "$DLLTOOL"; then |
8435 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 8436 | else |
c6b750e1 DJ |
8437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8438 | for as_dir in $PATH | |
8439 | do | |
8440 | IFS=$as_save_IFS | |
8441 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8442 | for ac_exec_ext in '' $ac_executable_extensions; do |
8443 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8444 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8446 | break 2 |
8447 | fi | |
8448 | done | |
81ecdfbb RW |
8449 | done |
8450 | IFS=$as_save_IFS | |
c6b750e1 | 8451 | |
859789af AC |
8452 | fi |
8453 | fi | |
c6b750e1 | 8454 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 8455 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8457 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8458 | else |
81ecdfbb RW |
8459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8460 | $as_echo "no" >&6; } | |
859789af | 8461 | fi |
c6b750e1 | 8462 | |
81ecdfbb | 8463 | |
05cbd757 PB |
8464 | fi |
8465 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8466 | done | |
8467 | ||
8468 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8469 | set dummy dlltool | |
8470 | if test $build = $host ; then | |
8471 | DLLTOOL="$2" | |
859789af | 8472 | else |
05cbd757 | 8473 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 8474 | fi |
859789af AC |
8475 | fi |
8476 | ||
9a819804 AO |
8477 | |
8478 | ||
8479 | if test -n "$LD"; then | |
8480 | ac_cv_prog_LD=$LD | |
8481 | elif test -n "$ac_cv_prog_LD"; then | |
8482 | LD=$ac_cv_prog_LD | |
8483 | fi | |
8484 | ||
8485 | if test -n "$ac_cv_prog_LD"; then | |
8486 | for ncn_progname in ld; do | |
8487 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8488 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8490 | $as_echo_n "checking for $ac_word... " >&6; } | |
8491 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8492 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8493 | else |
8494 | if test -n "$LD"; then | |
8495 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8496 | else | |
8497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8498 | for as_dir in $PATH | |
8499 | do | |
8500 | IFS=$as_save_IFS | |
8501 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8502 | for ac_exec_ext in '' $ac_executable_extensions; do |
8503 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8504 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8505 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8506 | break 2 |
8507 | fi | |
8508 | done | |
81ecdfbb RW |
8509 | done |
8510 | IFS=$as_save_IFS | |
9a819804 AO |
8511 | |
8512 | fi | |
8513 | fi | |
8514 | LD=$ac_cv_prog_LD | |
8515 | if test -n "$LD"; then | |
81ecdfbb RW |
8516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8517 | $as_echo "$LD" >&6; } | |
9a819804 | 8518 | else |
81ecdfbb RW |
8519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8520 | $as_echo "no" >&6; } | |
9a819804 AO |
8521 | fi |
8522 | ||
81ecdfbb | 8523 | |
9a819804 AO |
8524 | done |
8525 | fi | |
8526 | ||
8527 | for ncn_progname in ld; do | |
05cbd757 PB |
8528 | if test -n "$ncn_tool_prefix"; then |
8529 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8530 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8532 | $as_echo_n "checking for $ac_word... " >&6; } | |
8533 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8534 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8535 | else |
8536 | if test -n "$LD"; then | |
8537 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8538 | else | |
c6b750e1 DJ |
8539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8540 | for as_dir in $PATH | |
8541 | do | |
8542 | IFS=$as_save_IFS | |
8543 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8544 | for ac_exec_ext in '' $ac_executable_extensions; do |
8545 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8546 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8547 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8548 | break 2 |
8549 | fi | |
8550 | done | |
81ecdfbb RW |
8551 | done |
8552 | IFS=$as_save_IFS | |
c6b750e1 | 8553 | |
859789af AC |
8554 | fi |
8555 | fi | |
c6b750e1 | 8556 | LD=$ac_cv_prog_LD |
859789af | 8557 | if test -n "$LD"; then |
81ecdfbb RW |
8558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8559 | $as_echo "$LD" >&6; } | |
859789af | 8560 | else |
81ecdfbb RW |
8561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8562 | $as_echo "no" >&6; } | |
859789af AC |
8563 | fi |
8564 | ||
81ecdfbb | 8565 | |
05cbd757 PB |
8566 | fi |
8567 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8568 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8569 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8571 | $as_echo_n "checking for $ac_word... " >&6; } | |
8572 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8573 | $as_echo_n "(cached) " >&6 | |
859789af | 8574 | else |
05cbd757 PB |
8575 | if test -n "$LD"; then |
8576 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 8577 | else |
c6b750e1 DJ |
8578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8579 | for as_dir in $PATH | |
8580 | do | |
8581 | IFS=$as_save_IFS | |
8582 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8583 | for ac_exec_ext in '' $ac_executable_extensions; do |
8584 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8585 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8586 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8587 | break 2 |
8588 | fi | |
8589 | done | |
81ecdfbb RW |
8590 | done |
8591 | IFS=$as_save_IFS | |
c6b750e1 | 8592 | |
859789af AC |
8593 | fi |
8594 | fi | |
c6b750e1 | 8595 | LD=$ac_cv_prog_LD |
05cbd757 | 8596 | if test -n "$LD"; then |
81ecdfbb RW |
8597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8598 | $as_echo "$LD" >&6; } | |
859789af | 8599 | else |
81ecdfbb RW |
8600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8601 | $as_echo "no" >&6; } | |
859789af | 8602 | fi |
c6b750e1 | 8603 | |
81ecdfbb | 8604 | |
05cbd757 PB |
8605 | fi |
8606 | test -n "$ac_cv_prog_LD" && break | |
8607 | done | |
8608 | ||
8609 | if test -z "$ac_cv_prog_LD" ; then | |
8610 | set dummy ld | |
8611 | if test $build = $host ; then | |
8612 | LD="$2" | |
859789af | 8613 | else |
05cbd757 | 8614 | LD="${ncn_tool_prefix}$2" |
859789af | 8615 | fi |
859789af AC |
8616 | fi |
8617 | ||
9a819804 AO |
8618 | |
8619 | ||
8620 | if test -n "$LIPO"; then | |
8621 | ac_cv_prog_LIPO=$LIPO | |
8622 | elif test -n "$ac_cv_prog_LIPO"; then | |
8623 | LIPO=$ac_cv_prog_LIPO | |
8624 | fi | |
8625 | ||
8626 | if test -n "$ac_cv_prog_LIPO"; then | |
8627 | for ncn_progname in lipo; do | |
8628 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8629 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8631 | $as_echo_n "checking for $ac_word... " >&6; } | |
8632 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8633 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8634 | else |
8635 | if test -n "$LIPO"; then | |
8636 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8637 | else | |
8638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8639 | for as_dir in $PATH | |
8640 | do | |
8641 | IFS=$as_save_IFS | |
8642 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8643 | for ac_exec_ext in '' $ac_executable_extensions; do |
8644 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8645 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8646 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8647 | break 2 |
8648 | fi | |
8649 | done | |
81ecdfbb RW |
8650 | done |
8651 | IFS=$as_save_IFS | |
9a819804 AO |
8652 | |
8653 | fi | |
8654 | fi | |
8655 | LIPO=$ac_cv_prog_LIPO | |
8656 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8658 | $as_echo "$LIPO" >&6; } | |
9a819804 | 8659 | else |
81ecdfbb RW |
8660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8661 | $as_echo "no" >&6; } | |
9a819804 AO |
8662 | fi |
8663 | ||
81ecdfbb | 8664 | |
9a819804 AO |
8665 | done |
8666 | fi | |
8667 | ||
8668 | for ncn_progname in lipo; do | |
be01d343 PB |
8669 | if test -n "$ncn_tool_prefix"; then |
8670 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8671 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8673 | $as_echo_n "checking for $ac_word... " >&6; } | |
8674 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8675 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8676 | else |
8677 | if test -n "$LIPO"; then | |
8678 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8679 | else | |
c6b750e1 DJ |
8680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8681 | for as_dir in $PATH | |
8682 | do | |
8683 | IFS=$as_save_IFS | |
8684 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8685 | for ac_exec_ext in '' $ac_executable_extensions; do |
8686 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8687 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8688 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8689 | break 2 |
8690 | fi | |
8691 | done | |
81ecdfbb RW |
8692 | done |
8693 | IFS=$as_save_IFS | |
c6b750e1 | 8694 | |
be01d343 PB |
8695 | fi |
8696 | fi | |
c6b750e1 | 8697 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8698 | if test -n "$LIPO"; then |
81ecdfbb RW |
8699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8700 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8701 | else |
81ecdfbb RW |
8702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8703 | $as_echo "no" >&6; } | |
be01d343 PB |
8704 | fi |
8705 | ||
81ecdfbb | 8706 | |
be01d343 PB |
8707 | fi |
8708 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8709 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8710 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8712 | $as_echo_n "checking for $ac_word... " >&6; } | |
8713 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8714 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8715 | else |
8716 | if test -n "$LIPO"; then | |
8717 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8718 | else | |
c6b750e1 DJ |
8719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8720 | for as_dir in $PATH | |
8721 | do | |
8722 | IFS=$as_save_IFS | |
8723 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8724 | for ac_exec_ext in '' $ac_executable_extensions; do |
8725 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8726 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8728 | break 2 |
8729 | fi | |
8730 | done | |
81ecdfbb RW |
8731 | done |
8732 | IFS=$as_save_IFS | |
c6b750e1 | 8733 | |
be01d343 PB |
8734 | fi |
8735 | fi | |
c6b750e1 | 8736 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8737 | if test -n "$LIPO"; then |
81ecdfbb RW |
8738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8739 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8740 | else |
81ecdfbb RW |
8741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8742 | $as_echo "no" >&6; } | |
be01d343 | 8743 | fi |
c6b750e1 | 8744 | |
81ecdfbb | 8745 | |
be01d343 PB |
8746 | fi |
8747 | test -n "$ac_cv_prog_LIPO" && break | |
8748 | done | |
8749 | ||
8750 | if test -z "$ac_cv_prog_LIPO" ; then | |
8751 | set dummy lipo | |
8752 | if test $build = $host ; then | |
8753 | LIPO="$2" | |
8754 | else | |
8755 | LIPO="${ncn_tool_prefix}$2" | |
8756 | fi | |
8757 | fi | |
8758 | ||
9a819804 AO |
8759 | |
8760 | ||
8761 | if test -n "$NM"; then | |
8762 | ac_cv_prog_NM=$NM | |
8763 | elif test -n "$ac_cv_prog_NM"; then | |
8764 | NM=$ac_cv_prog_NM | |
8765 | fi | |
8766 | ||
8767 | if test -n "$ac_cv_prog_NM"; then | |
8768 | for ncn_progname in nm; do | |
8769 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8770 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8772 | $as_echo_n "checking for $ac_word... " >&6; } | |
8773 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8774 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8775 | else |
8776 | if test -n "$NM"; then | |
8777 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8778 | else | |
c6b750e1 DJ |
8779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8780 | for as_dir in $PATH | |
8781 | do | |
8782 | IFS=$as_save_IFS | |
8783 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8784 | for ac_exec_ext in '' $ac_executable_extensions; do |
8785 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8786 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8788 | break 2 |
8789 | fi | |
8790 | done | |
81ecdfbb RW |
8791 | done |
8792 | IFS=$as_save_IFS | |
c6b750e1 | 8793 | |
859789af AC |
8794 | fi |
8795 | fi | |
c6b750e1 | 8796 | NM=$ac_cv_prog_NM |
859789af | 8797 | if test -n "$NM"; then |
81ecdfbb RW |
8798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8799 | $as_echo "$NM" >&6; } | |
859789af | 8800 | else |
81ecdfbb RW |
8801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8802 | $as_echo "no" >&6; } | |
859789af AC |
8803 | fi |
8804 | ||
81ecdfbb | 8805 | |
9a819804 AO |
8806 | done |
8807 | fi | |
8808 | ||
8809 | for ncn_progname in nm; do | |
8810 | if test -n "$ncn_tool_prefix"; then | |
8811 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8812 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8814 | $as_echo_n "checking for $ac_word... " >&6; } | |
8815 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8816 | $as_echo_n "(cached) " >&6 | |
859789af | 8817 | else |
05cbd757 PB |
8818 | if test -n "$NM"; then |
8819 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 8820 | else |
c6b750e1 DJ |
8821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8822 | for as_dir in $PATH | |
8823 | do | |
8824 | IFS=$as_save_IFS | |
8825 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8826 | for ac_exec_ext in '' $ac_executable_extensions; do |
8827 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8828 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8829 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8830 | break 2 |
8831 | fi | |
8832 | done | |
81ecdfbb RW |
8833 | done |
8834 | IFS=$as_save_IFS | |
c6b750e1 | 8835 | |
859789af AC |
8836 | fi |
8837 | fi | |
c6b750e1 | 8838 | NM=$ac_cv_prog_NM |
05cbd757 | 8839 | if test -n "$NM"; then |
81ecdfbb RW |
8840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8841 | $as_echo "$NM" >&6; } | |
859789af | 8842 | else |
81ecdfbb RW |
8843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8844 | $as_echo "no" >&6; } | |
859789af | 8845 | fi |
c6b750e1 | 8846 | |
81ecdfbb | 8847 | |
05cbd757 | 8848 | fi |
9a819804 AO |
8849 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8850 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8851 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8853 | $as_echo_n "checking for $ac_word... " >&6; } | |
8854 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8855 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8856 | else |
8857 | if test -n "$NM"; then | |
8858 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8859 | else | |
8860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8861 | for as_dir in $PATH | |
8862 | do | |
8863 | IFS=$as_save_IFS | |
8864 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8865 | for ac_exec_ext in '' $ac_executable_extensions; do |
8866 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8867 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8869 | break 2 |
8870 | fi | |
8871 | done | |
81ecdfbb RW |
8872 | done |
8873 | IFS=$as_save_IFS | |
9a819804 AO |
8874 | |
8875 | fi | |
8876 | fi | |
8877 | NM=$ac_cv_prog_NM | |
8878 | if test -n "$NM"; then | |
81ecdfbb RW |
8879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8880 | $as_echo "$NM" >&6; } | |
9a819804 | 8881 | else |
81ecdfbb RW |
8882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8883 | $as_echo "no" >&6; } | |
9a819804 AO |
8884 | fi |
8885 | ||
81ecdfbb | 8886 | |
9a819804 AO |
8887 | fi |
8888 | test -n "$ac_cv_prog_NM" && break | |
8889 | done | |
8890 | ||
8891 | if test -z "$ac_cv_prog_NM" ; then | |
8892 | set dummy nm | |
8893 | if test $build = $host ; then | |
8894 | NM="$2" | |
8895 | else | |
8896 | NM="${ncn_tool_prefix}$2" | |
8897 | fi | |
8898 | fi | |
8899 | ||
8900 | ||
8901 | ||
8902 | if test -n "$RANLIB"; then | |
8903 | ac_cv_prog_RANLIB=$RANLIB | |
8904 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8905 | RANLIB=$ac_cv_prog_RANLIB | |
8906 | fi | |
8907 | ||
8908 | if test -n "$ac_cv_prog_RANLIB"; then | |
8909 | for ncn_progname in ranlib; do | |
8910 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8911 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8913 | $as_echo_n "checking for $ac_word... " >&6; } | |
8914 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8915 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8916 | else |
8917 | if test -n "$RANLIB"; then | |
8918 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8919 | else | |
8920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8921 | for as_dir in $PATH | |
8922 | do | |
8923 | IFS=$as_save_IFS | |
8924 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8925 | for ac_exec_ext in '' $ac_executable_extensions; do |
8926 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8927 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 8928 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8929 | break 2 |
8930 | fi | |
8931 | done | |
81ecdfbb RW |
8932 | done |
8933 | IFS=$as_save_IFS | |
9a819804 AO |
8934 | |
8935 | fi | |
8936 | fi | |
8937 | RANLIB=$ac_cv_prog_RANLIB | |
8938 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
8939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8940 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 8941 | else |
81ecdfbb RW |
8942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8943 | $as_echo "no" >&6; } | |
9a819804 AO |
8944 | fi |
8945 | ||
81ecdfbb | 8946 | |
9a819804 AO |
8947 | done |
8948 | fi | |
859789af | 8949 | |
9a819804 | 8950 | for ncn_progname in ranlib; do |
05cbd757 PB |
8951 | if test -n "$ncn_tool_prefix"; then |
8952 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8953 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8955 | $as_echo_n "checking for $ac_word... " >&6; } | |
8956 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8957 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8958 | else |
8959 | if test -n "$RANLIB"; then | |
8960 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8961 | else | |
c6b750e1 DJ |
8962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8963 | for as_dir in $PATH | |
8964 | do | |
8965 | IFS=$as_save_IFS | |
8966 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8967 | for ac_exec_ext in '' $ac_executable_extensions; do |
8968 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8969 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8970 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8971 | break 2 |
8972 | fi | |
8973 | done | |
81ecdfbb RW |
8974 | done |
8975 | IFS=$as_save_IFS | |
c6b750e1 | 8976 | |
859789af AC |
8977 | fi |
8978 | fi | |
c6b750e1 | 8979 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 8980 | if test -n "$RANLIB"; then |
81ecdfbb RW |
8981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8982 | $as_echo "$RANLIB" >&6; } | |
859789af | 8983 | else |
81ecdfbb RW |
8984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8985 | $as_echo "no" >&6; } | |
859789af AC |
8986 | fi |
8987 | ||
81ecdfbb | 8988 | |
05cbd757 PB |
8989 | fi |
8990 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
8991 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8992 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8994 | $as_echo_n "checking for $ac_word... " >&6; } | |
8995 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8996 | $as_echo_n "(cached) " >&6 | |
859789af | 8997 | else |
05cbd757 PB |
8998 | if test -n "$RANLIB"; then |
8999 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 9000 | else |
c6b750e1 DJ |
9001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9002 | for as_dir in $PATH | |
9003 | do | |
9004 | IFS=$as_save_IFS | |
9005 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9006 | for ac_exec_ext in '' $ac_executable_extensions; do |
9007 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9008 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 9009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9010 | break 2 |
9011 | fi | |
9012 | done | |
81ecdfbb RW |
9013 | done |
9014 | IFS=$as_save_IFS | |
c6b750e1 | 9015 | |
859789af AC |
9016 | fi |
9017 | fi | |
c6b750e1 | 9018 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 9019 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9021 | $as_echo "$RANLIB" >&6; } | |
859789af | 9022 | else |
81ecdfbb RW |
9023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9024 | $as_echo "no" >&6; } | |
859789af | 9025 | fi |
c6b750e1 | 9026 | |
81ecdfbb | 9027 | |
859789af | 9028 | fi |
05cbd757 PB |
9029 | test -n "$ac_cv_prog_RANLIB" && break |
9030 | done | |
9031 | ||
9032 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 9033 | RANLIB="true" |
859789af AC |
9034 | fi |
9035 | ||
9a819804 AO |
9036 | |
9037 | ||
9038 | if test -n "$STRIP"; then | |
9039 | ac_cv_prog_STRIP=$STRIP | |
9040 | elif test -n "$ac_cv_prog_STRIP"; then | |
9041 | STRIP=$ac_cv_prog_STRIP | |
9042 | fi | |
9043 | ||
9044 | if test -n "$ac_cv_prog_STRIP"; then | |
9045 | for ncn_progname in strip; do | |
9046 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9047 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9049 | $as_echo_n "checking for $ac_word... " >&6; } | |
9050 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9051 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9052 | else |
9053 | if test -n "$STRIP"; then | |
9054 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9055 | else | |
9056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9057 | for as_dir in $PATH | |
9058 | do | |
9059 | IFS=$as_save_IFS | |
9060 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9061 | for ac_exec_ext in '' $ac_executable_extensions; do |
9062 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9063 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9065 | break 2 |
9066 | fi | |
9067 | done | |
81ecdfbb RW |
9068 | done |
9069 | IFS=$as_save_IFS | |
9a819804 AO |
9070 | |
9071 | fi | |
9072 | fi | |
9073 | STRIP=$ac_cv_prog_STRIP | |
9074 | if test -n "$STRIP"; then | |
81ecdfbb RW |
9075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9076 | $as_echo "$STRIP" >&6; } | |
9a819804 | 9077 | else |
81ecdfbb RW |
9078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9079 | $as_echo "no" >&6; } | |
9a819804 AO |
9080 | fi |
9081 | ||
81ecdfbb | 9082 | |
9a819804 AO |
9083 | done |
9084 | fi | |
9085 | ||
9086 | for ncn_progname in strip; do | |
be01d343 PB |
9087 | if test -n "$ncn_tool_prefix"; then |
9088 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9089 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9091 | $as_echo_n "checking for $ac_word... " >&6; } | |
9092 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9093 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
9094 | else |
9095 | if test -n "$STRIP"; then | |
9096 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9097 | else | |
c6b750e1 DJ |
9098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9099 | for as_dir in $PATH | |
9100 | do | |
9101 | IFS=$as_save_IFS | |
9102 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9103 | for ac_exec_ext in '' $ac_executable_extensions; do |
9104 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9105 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9106 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9107 | break 2 |
9108 | fi | |
9109 | done | |
81ecdfbb RW |
9110 | done |
9111 | IFS=$as_save_IFS | |
c6b750e1 | 9112 | |
be01d343 PB |
9113 | fi |
9114 | fi | |
c6b750e1 | 9115 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9116 | if test -n "$STRIP"; then |
81ecdfbb RW |
9117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9118 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9119 | else |
81ecdfbb RW |
9120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9121 | $as_echo "no" >&6; } | |
be01d343 PB |
9122 | fi |
9123 | ||
81ecdfbb | 9124 | |
be01d343 PB |
9125 | fi |
9126 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9127 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9128 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9130 | $as_echo_n "checking for $ac_word... " >&6; } | |
9131 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9132 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
9133 | else |
9134 | if test -n "$STRIP"; then | |
9135 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9136 | else | |
c6b750e1 DJ |
9137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9138 | for as_dir in $PATH | |
9139 | do | |
9140 | IFS=$as_save_IFS | |
9141 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9142 | for ac_exec_ext in '' $ac_executable_extensions; do |
9143 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9144 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9146 | break 2 |
9147 | fi | |
9148 | done | |
81ecdfbb RW |
9149 | done |
9150 | IFS=$as_save_IFS | |
c6b750e1 | 9151 | |
be01d343 PB |
9152 | fi |
9153 | fi | |
c6b750e1 | 9154 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9155 | if test -n "$STRIP"; then |
81ecdfbb RW |
9156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9157 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9158 | else |
81ecdfbb RW |
9159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9160 | $as_echo "no" >&6; } | |
be01d343 | 9161 | fi |
c6b750e1 | 9162 | |
81ecdfbb | 9163 | |
be01d343 PB |
9164 | fi |
9165 | test -n "$ac_cv_prog_STRIP" && break | |
9166 | done | |
9167 | ||
9168 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 9169 | STRIP="true" |
be01d343 PB |
9170 | fi |
9171 | ||
9a819804 AO |
9172 | |
9173 | ||
9174 | if test -n "$WINDRES"; then | |
9175 | ac_cv_prog_WINDRES=$WINDRES | |
9176 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9177 | WINDRES=$ac_cv_prog_WINDRES | |
9178 | fi | |
9179 | ||
9180 | if test -n "$ac_cv_prog_WINDRES"; then | |
9181 | for ncn_progname in windres; do | |
9182 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9183 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9185 | $as_echo_n "checking for $ac_word... " >&6; } | |
9186 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9187 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9188 | else |
9189 | if test -n "$WINDRES"; then | |
9190 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9191 | else | |
9192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9193 | for as_dir in $PATH | |
9194 | do | |
9195 | IFS=$as_save_IFS | |
9196 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9197 | for ac_exec_ext in '' $ac_executable_extensions; do |
9198 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9199 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9200 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9201 | break 2 |
9202 | fi | |
9203 | done | |
81ecdfbb RW |
9204 | done |
9205 | IFS=$as_save_IFS | |
9a819804 AO |
9206 | |
9207 | fi | |
9208 | fi | |
9209 | WINDRES=$ac_cv_prog_WINDRES | |
9210 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
9211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9212 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 9213 | else |
81ecdfbb RW |
9214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9215 | $as_echo "no" >&6; } | |
9a819804 AO |
9216 | fi |
9217 | ||
81ecdfbb | 9218 | |
9a819804 AO |
9219 | done |
9220 | fi | |
9221 | ||
9222 | for ncn_progname in windres; do | |
05cbd757 PB |
9223 | if test -n "$ncn_tool_prefix"; then |
9224 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9225 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9227 | $as_echo_n "checking for $ac_word... " >&6; } | |
9228 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9229 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9230 | else |
9231 | if test -n "$WINDRES"; then | |
9232 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9233 | else | |
c6b750e1 DJ |
9234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9235 | for as_dir in $PATH | |
9236 | do | |
9237 | IFS=$as_save_IFS | |
9238 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9239 | for ac_exec_ext in '' $ac_executable_extensions; do |
9240 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9241 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9243 | break 2 |
9244 | fi | |
9245 | done | |
81ecdfbb RW |
9246 | done |
9247 | IFS=$as_save_IFS | |
c6b750e1 | 9248 | |
859789af AC |
9249 | fi |
9250 | fi | |
c6b750e1 | 9251 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 9252 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9254 | $as_echo "$WINDRES" >&6; } | |
859789af | 9255 | else |
81ecdfbb RW |
9256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9257 | $as_echo "no" >&6; } | |
859789af AC |
9258 | fi |
9259 | ||
81ecdfbb | 9260 | |
05cbd757 PB |
9261 | fi |
9262 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9263 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9264 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9266 | $as_echo_n "checking for $ac_word... " >&6; } | |
9267 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9268 | $as_echo_n "(cached) " >&6 | |
859789af | 9269 | else |
05cbd757 PB |
9270 | if test -n "$WINDRES"; then |
9271 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 9272 | else |
c6b750e1 DJ |
9273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9274 | for as_dir in $PATH | |
9275 | do | |
9276 | IFS=$as_save_IFS | |
9277 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9278 | for ac_exec_ext in '' $ac_executable_extensions; do |
9279 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9280 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9281 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9282 | break 2 |
9283 | fi | |
9284 | done | |
81ecdfbb RW |
9285 | done |
9286 | IFS=$as_save_IFS | |
c6b750e1 | 9287 | |
859789af AC |
9288 | fi |
9289 | fi | |
c6b750e1 | 9290 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 9291 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9293 | $as_echo "$WINDRES" >&6; } | |
859789af | 9294 | else |
81ecdfbb RW |
9295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9296 | $as_echo "no" >&6; } | |
859789af | 9297 | fi |
c6b750e1 | 9298 | |
81ecdfbb | 9299 | |
05cbd757 PB |
9300 | fi |
9301 | test -n "$ac_cv_prog_WINDRES" && break | |
9302 | done | |
9303 | ||
9304 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9305 | set dummy windres | |
9306 | if test $build = $host ; then | |
9307 | WINDRES="$2" | |
859789af | 9308 | else |
05cbd757 | 9309 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 9310 | fi |
859789af AC |
9311 | fi |
9312 | ||
9a819804 AO |
9313 | |
9314 | ||
0c24b341 NC |
9315 | if test -n "$WINDMC"; then |
9316 | ac_cv_prog_WINDMC=$WINDMC | |
9317 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9318 | WINDMC=$ac_cv_prog_WINDMC | |
9319 | fi | |
9320 | ||
9321 | if test -n "$ac_cv_prog_WINDMC"; then | |
9322 | for ncn_progname in windmc; do | |
9323 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9324 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9326 | $as_echo_n "checking for $ac_word... " >&6; } | |
9327 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9328 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9329 | else |
9330 | if test -n "$WINDMC"; then | |
9331 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9332 | else | |
9333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9334 | for as_dir in $PATH | |
9335 | do | |
9336 | IFS=$as_save_IFS | |
9337 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9338 | for ac_exec_ext in '' $ac_executable_extensions; do |
9339 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9340 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9341 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9342 | break 2 |
9343 | fi | |
9344 | done | |
81ecdfbb RW |
9345 | done |
9346 | IFS=$as_save_IFS | |
0c24b341 NC |
9347 | |
9348 | fi | |
9349 | fi | |
9350 | WINDMC=$ac_cv_prog_WINDMC | |
9351 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9353 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9354 | else |
81ecdfbb RW |
9355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9356 | $as_echo "no" >&6; } | |
0c24b341 NC |
9357 | fi |
9358 | ||
81ecdfbb | 9359 | |
0c24b341 NC |
9360 | done |
9361 | fi | |
9362 | ||
9363 | for ncn_progname in windmc; do | |
9364 | if test -n "$ncn_tool_prefix"; then | |
9365 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9366 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9368 | $as_echo_n "checking for $ac_word... " >&6; } | |
9369 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9370 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9371 | else |
9372 | if test -n "$WINDMC"; then | |
9373 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9374 | else | |
9375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9376 | for as_dir in $PATH | |
9377 | do | |
9378 | IFS=$as_save_IFS | |
9379 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9380 | for ac_exec_ext in '' $ac_executable_extensions; do |
9381 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9382 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9384 | break 2 |
9385 | fi | |
9386 | done | |
81ecdfbb RW |
9387 | done |
9388 | IFS=$as_save_IFS | |
0c24b341 NC |
9389 | |
9390 | fi | |
9391 | fi | |
9392 | WINDMC=$ac_cv_prog_WINDMC | |
9393 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9395 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9396 | else |
81ecdfbb RW |
9397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9398 | $as_echo "no" >&6; } | |
0c24b341 NC |
9399 | fi |
9400 | ||
81ecdfbb | 9401 | |
0c24b341 NC |
9402 | fi |
9403 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9404 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9405 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9407 | $as_echo_n "checking for $ac_word... " >&6; } | |
9408 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9409 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9410 | else |
9411 | if test -n "$WINDMC"; then | |
9412 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9413 | else | |
9414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9415 | for as_dir in $PATH | |
9416 | do | |
9417 | IFS=$as_save_IFS | |
9418 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9419 | for ac_exec_ext in '' $ac_executable_extensions; do |
9420 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9421 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9422 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9423 | break 2 |
9424 | fi | |
9425 | done | |
81ecdfbb RW |
9426 | done |
9427 | IFS=$as_save_IFS | |
0c24b341 NC |
9428 | |
9429 | fi | |
9430 | fi | |
9431 | WINDMC=$ac_cv_prog_WINDMC | |
9432 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9434 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9435 | else |
81ecdfbb RW |
9436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9437 | $as_echo "no" >&6; } | |
0c24b341 NC |
9438 | fi |
9439 | ||
81ecdfbb | 9440 | |
0c24b341 NC |
9441 | fi |
9442 | test -n "$ac_cv_prog_WINDMC" && break | |
9443 | done | |
9444 | ||
9445 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9446 | set dummy windmc | |
9447 | if test $build = $host ; then | |
9448 | WINDMC="$2" | |
9449 | else | |
9450 | WINDMC="${ncn_tool_prefix}$2" | |
9451 | fi | |
9452 | fi | |
9453 | ||
9454 | ||
9455 | ||
9a819804 AO |
9456 | if test -n "$OBJCOPY"; then |
9457 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9458 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9459 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9460 | fi | |
9461 | ||
9462 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9463 | for ncn_progname in objcopy; do | |
9464 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9465 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9467 | $as_echo_n "checking for $ac_word... " >&6; } | |
9468 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9469 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9470 | else |
9471 | if test -n "$OBJCOPY"; then | |
9472 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9473 | else | |
9474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9475 | for as_dir in $PATH | |
9476 | do | |
9477 | IFS=$as_save_IFS | |
9478 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9479 | for ac_exec_ext in '' $ac_executable_extensions; do |
9480 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9481 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9482 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9483 | break 2 |
9484 | fi | |
9485 | done | |
81ecdfbb RW |
9486 | done |
9487 | IFS=$as_save_IFS | |
9a819804 AO |
9488 | |
9489 | fi | |
9490 | fi | |
9491 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9492 | if test -n "$OBJCOPY"; then | |
81ecdfbb RW |
9493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9494 | $as_echo "$OBJCOPY" >&6; } | |
9a819804 | 9495 | else |
81ecdfbb RW |
9496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9497 | $as_echo "no" >&6; } | |
9a819804 AO |
9498 | fi |
9499 | ||
81ecdfbb | 9500 | |
9a819804 AO |
9501 | done |
9502 | fi | |
9503 | ||
9504 | for ncn_progname in objcopy; do | |
05cbd757 PB |
9505 | if test -n "$ncn_tool_prefix"; then |
9506 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9507 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9509 | $as_echo_n "checking for $ac_word... " >&6; } | |
9510 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9511 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9512 | else |
9513 | if test -n "$OBJCOPY"; then | |
9514 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9515 | else | |
c6b750e1 DJ |
9516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9517 | for as_dir in $PATH | |
9518 | do | |
9519 | IFS=$as_save_IFS | |
9520 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9521 | for ac_exec_ext in '' $ac_executable_extensions; do |
9522 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9523 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9524 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9525 | break 2 |
9526 | fi | |
9527 | done | |
81ecdfbb RW |
9528 | done |
9529 | IFS=$as_save_IFS | |
c6b750e1 | 9530 | |
859789af AC |
9531 | fi |
9532 | fi | |
c6b750e1 | 9533 | OBJCOPY=$ac_cv_prog_OBJCOPY |
859789af | 9534 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9536 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9537 | else |
81ecdfbb RW |
9538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9539 | $as_echo "no" >&6; } | |
859789af AC |
9540 | fi |
9541 | ||
81ecdfbb | 9542 | |
05cbd757 PB |
9543 | fi |
9544 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9545 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9546 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9548 | $as_echo_n "checking for $ac_word... " >&6; } | |
9549 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9550 | $as_echo_n "(cached) " >&6 | |
859789af | 9551 | else |
05cbd757 PB |
9552 | if test -n "$OBJCOPY"; then |
9553 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
859789af | 9554 | else |
c6b750e1 DJ |
9555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9556 | for as_dir in $PATH | |
9557 | do | |
9558 | IFS=$as_save_IFS | |
9559 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9560 | for ac_exec_ext in '' $ac_executable_extensions; do |
9561 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9562 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9563 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9564 | break 2 |
9565 | fi | |
9566 | done | |
81ecdfbb RW |
9567 | done |
9568 | IFS=$as_save_IFS | |
c6b750e1 | 9569 | |
859789af AC |
9570 | fi |
9571 | fi | |
c6b750e1 | 9572 | OBJCOPY=$ac_cv_prog_OBJCOPY |
05cbd757 | 9573 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9575 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9576 | else |
81ecdfbb RW |
9577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9578 | $as_echo "no" >&6; } | |
859789af | 9579 | fi |
c6b750e1 | 9580 | |
81ecdfbb | 9581 | |
05cbd757 PB |
9582 | fi |
9583 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9584 | done | |
9585 | ||
9586 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9587 | set dummy objcopy | |
9588 | if test $build = $host ; then | |
9589 | OBJCOPY="$2" | |
859789af | 9590 | else |
05cbd757 | 9591 | OBJCOPY="${ncn_tool_prefix}$2" |
859789af | 9592 | fi |
859789af AC |
9593 | fi |
9594 | ||
9a819804 AO |
9595 | |
9596 | ||
9597 | if test -n "$OBJDUMP"; then | |
9598 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9599 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9600 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9601 | fi | |
9602 | ||
9603 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9604 | for ncn_progname in objdump; do | |
9605 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9606 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9608 | $as_echo_n "checking for $ac_word... " >&6; } | |
9609 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9610 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9611 | else |
9612 | if test -n "$OBJDUMP"; then | |
9613 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9614 | else | |
9615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9616 | for as_dir in $PATH | |
9617 | do | |
9618 | IFS=$as_save_IFS | |
9619 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9620 | for ac_exec_ext in '' $ac_executable_extensions; do |
9621 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9622 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9623 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9624 | break 2 |
9625 | fi | |
9626 | done | |
81ecdfbb RW |
9627 | done |
9628 | IFS=$as_save_IFS | |
9a819804 AO |
9629 | |
9630 | fi | |
9631 | fi | |
9632 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9633 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
9634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9635 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 9636 | else |
81ecdfbb RW |
9637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9638 | $as_echo "no" >&6; } | |
9a819804 AO |
9639 | fi |
9640 | ||
81ecdfbb | 9641 | |
9a819804 AO |
9642 | done |
9643 | fi | |
9644 | ||
9645 | for ncn_progname in objdump; do | |
05cbd757 PB |
9646 | if test -n "$ncn_tool_prefix"; then |
9647 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9648 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9650 | $as_echo_n "checking for $ac_word... " >&6; } | |
9651 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9652 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9653 | else |
9654 | if test -n "$OBJDUMP"; then | |
9655 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9656 | else | |
c6b750e1 DJ |
9657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9658 | for as_dir in $PATH | |
9659 | do | |
9660 | IFS=$as_save_IFS | |
9661 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9662 | for ac_exec_ext in '' $ac_executable_extensions; do |
9663 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9664 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9665 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9666 | break 2 |
9667 | fi | |
9668 | done | |
81ecdfbb RW |
9669 | done |
9670 | IFS=$as_save_IFS | |
c6b750e1 | 9671 | |
859789af AC |
9672 | fi |
9673 | fi | |
c6b750e1 | 9674 | OBJDUMP=$ac_cv_prog_OBJDUMP |
859789af | 9675 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9677 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9678 | else |
81ecdfbb RW |
9679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9680 | $as_echo "no" >&6; } | |
859789af AC |
9681 | fi |
9682 | ||
81ecdfbb | 9683 | |
05cbd757 PB |
9684 | fi |
9685 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9686 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9687 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9689 | $as_echo_n "checking for $ac_word... " >&6; } | |
9690 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9691 | $as_echo_n "(cached) " >&6 | |
859789af | 9692 | else |
05cbd757 PB |
9693 | if test -n "$OBJDUMP"; then |
9694 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 9695 | else |
c6b750e1 DJ |
9696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9697 | for as_dir in $PATH | |
9698 | do | |
9699 | IFS=$as_save_IFS | |
9700 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9701 | for ac_exec_ext in '' $ac_executable_extensions; do |
9702 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9703 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9705 | break 2 |
9706 | fi | |
9707 | done | |
81ecdfbb RW |
9708 | done |
9709 | IFS=$as_save_IFS | |
c6b750e1 | 9710 | |
859789af AC |
9711 | fi |
9712 | fi | |
c6b750e1 | 9713 | OBJDUMP=$ac_cv_prog_OBJDUMP |
05cbd757 | 9714 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9716 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9717 | else |
81ecdfbb RW |
9718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9719 | $as_echo "no" >&6; } | |
859789af | 9720 | fi |
c6b750e1 | 9721 | |
81ecdfbb | 9722 | |
05cbd757 PB |
9723 | fi |
9724 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9725 | done | |
9726 | ||
9727 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9728 | set dummy objdump | |
9729 | if test $build = $host ; then | |
9730 | OBJDUMP="$2" | |
859789af | 9731 | else |
05cbd757 | 9732 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 9733 | fi |
859789af AC |
9734 | fi |
9735 | ||
a0da8069 NN |
9736 | |
9737 | ||
b121d7d4 DD |
9738 | if test -n "$READELF"; then |
9739 | ac_cv_prog_READELF=$READELF | |
9740 | elif test -n "$ac_cv_prog_READELF"; then | |
9741 | READELF=$ac_cv_prog_READELF | |
9742 | fi | |
9743 | ||
9744 | if test -n "$ac_cv_prog_READELF"; then | |
9745 | for ncn_progname in readelf; do | |
9746 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9747 | set dummy ${ncn_progname}; ac_word=$2 | |
9748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9749 | $as_echo_n "checking for $ac_word... " >&6; } | |
9750 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9751 | $as_echo_n "(cached) " >&6 | |
9752 | else | |
9753 | if test -n "$READELF"; then | |
9754 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9755 | else | |
9756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9757 | for as_dir in $PATH | |
9758 | do | |
9759 | IFS=$as_save_IFS | |
9760 | test -z "$as_dir" && as_dir=. | |
9761 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9762 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9763 | ac_cv_prog_READELF="${ncn_progname}" | |
9764 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9765 | break 2 | |
9766 | fi | |
9767 | done | |
9768 | done | |
9769 | IFS=$as_save_IFS | |
9770 | ||
9771 | fi | |
9772 | fi | |
9773 | READELF=$ac_cv_prog_READELF | |
9774 | if test -n "$READELF"; then | |
9775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9776 | $as_echo "$READELF" >&6; } | |
9777 | else | |
9778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9779 | $as_echo "no" >&6; } | |
9780 | fi | |
9781 | ||
9782 | ||
9783 | done | |
9784 | fi | |
9785 | ||
9786 | for ncn_progname in readelf; do | |
9787 | if test -n "$ncn_tool_prefix"; then | |
9788 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9789 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9791 | $as_echo_n "checking for $ac_word... " >&6; } | |
9792 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9793 | $as_echo_n "(cached) " >&6 | |
9794 | else | |
9795 | if test -n "$READELF"; then | |
9796 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9797 | else | |
9798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9799 | for as_dir in $PATH | |
9800 | do | |
9801 | IFS=$as_save_IFS | |
9802 | test -z "$as_dir" && as_dir=. | |
9803 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9804 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9805 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" | |
9806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9807 | break 2 | |
9808 | fi | |
9809 | done | |
9810 | done | |
9811 | IFS=$as_save_IFS | |
9812 | ||
9813 | fi | |
9814 | fi | |
9815 | READELF=$ac_cv_prog_READELF | |
9816 | if test -n "$READELF"; then | |
9817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9818 | $as_echo "$READELF" >&6; } | |
9819 | else | |
9820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9821 | $as_echo "no" >&6; } | |
9822 | fi | |
9823 | ||
9824 | ||
9825 | fi | |
9826 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9827 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9828 | set dummy ${ncn_progname}; ac_word=$2 | |
9829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9830 | $as_echo_n "checking for $ac_word... " >&6; } | |
9831 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9832 | $as_echo_n "(cached) " >&6 | |
9833 | else | |
9834 | if test -n "$READELF"; then | |
9835 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9836 | else | |
9837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9838 | for as_dir in $PATH | |
9839 | do | |
9840 | IFS=$as_save_IFS | |
9841 | test -z "$as_dir" && as_dir=. | |
9842 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9843 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9844 | ac_cv_prog_READELF="${ncn_progname}" | |
9845 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9846 | break 2 | |
9847 | fi | |
9848 | done | |
9849 | done | |
9850 | IFS=$as_save_IFS | |
9851 | ||
9852 | fi | |
9853 | fi | |
9854 | READELF=$ac_cv_prog_READELF | |
9855 | if test -n "$READELF"; then | |
9856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9857 | $as_echo "$READELF" >&6; } | |
9858 | else | |
9859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9860 | $as_echo "no" >&6; } | |
9861 | fi | |
9862 | ||
9863 | ||
9864 | fi | |
9865 | test -n "$ac_cv_prog_READELF" && break | |
9866 | done | |
9867 | ||
9868 | if test -z "$ac_cv_prog_READELF" ; then | |
9869 | set dummy readelf | |
9870 | if test $build = $host ; then | |
9871 | READELF="$2" | |
9872 | else | |
9873 | READELF="${ncn_tool_prefix}$2" | |
9874 | fi | |
9875 | fi | |
9876 | ||
9877 | ||
9878 | ||
a0da8069 NN |
9879 | |
9880 | ||
9881 | ||
be01d343 | 9882 | # Target tools. |
c6b750e1 | 9883 | |
81ecdfbb RW |
9884 | # Check whether --with-build-time-tools was given. |
9885 | if test "${with_build_time_tools+set}" = set; then : | |
9886 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
9887 | x/*) ;; |
9888 | *) | |
9889 | with_build_time_tools= | |
81ecdfbb RW |
9890 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9891 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
9892 | ;; |
9893 | esac | |
859789af | 9894 | else |
2429c060 | 9895 | with_build_time_tools= |
81ecdfbb RW |
9896 | fi |
9897 | ||
859789af | 9898 | |
9a819804 AO |
9899 | |
9900 | ||
9901 | if test -n "$CC_FOR_TARGET"; then | |
9902 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9903 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9904 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9905 | fi | |
9906 | ||
9907 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9908 | for ncn_progname in cc gcc; do | |
9909 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9910 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9912 | $as_echo_n "checking for $ac_word... " >&6; } | |
9913 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9914 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9915 | else |
9916 | if test -n "$CC_FOR_TARGET"; then | |
9917 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9918 | else | |
9919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9920 | for as_dir in $PATH | |
9921 | do | |
9922 | IFS=$as_save_IFS | |
9923 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9924 | for ac_exec_ext in '' $ac_executable_extensions; do |
9925 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9926 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9928 | break 2 |
9929 | fi | |
9930 | done | |
81ecdfbb RW |
9931 | done |
9932 | IFS=$as_save_IFS | |
9a819804 AO |
9933 | |
9934 | fi | |
9935 | fi | |
9936 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9937 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
9938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9939 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 9940 | else |
81ecdfbb RW |
9941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9942 | $as_echo "no" >&6; } | |
9a819804 AO |
9943 | fi |
9944 | ||
81ecdfbb | 9945 | |
9a819804 AO |
9946 | done |
9947 | fi | |
9948 | ||
9949 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 9950 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
9951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9952 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
9953 | if test -x $with_build_time_tools/${ncn_progname}; then |
9954 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
9955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9956 | $as_echo "yes" >&6; } | |
cac3d6c4 | 9957 | break |
2429c060 | 9958 | else |
81ecdfbb RW |
9959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9960 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
9961 | fi |
9962 | done | |
55db4b87 PB |
9963 | fi |
9964 | ||
2429c060 PB |
9965 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
9966 | for ncn_progname in cc gcc; do | |
9967 | if test -n "$ncn_target_tool_prefix"; then | |
9968 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9969 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9971 | $as_echo_n "checking for $ac_word... " >&6; } | |
9972 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9973 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
9974 | else |
9975 | if test -n "$CC_FOR_TARGET"; then | |
9976 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9977 | else | |
c6b750e1 DJ |
9978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9979 | for as_dir in $PATH | |
9980 | do | |
9981 | IFS=$as_save_IFS | |
9982 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9983 | for ac_exec_ext in '' $ac_executable_extensions; do |
9984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9985 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 9986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9987 | break 2 |
9988 | fi | |
9989 | done | |
81ecdfbb RW |
9990 | done |
9991 | IFS=$as_save_IFS | |
c6b750e1 | 9992 | |
55db4b87 PB |
9993 | fi |
9994 | fi | |
c6b750e1 | 9995 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 9996 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
9997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9998 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 9999 | else |
81ecdfbb RW |
10000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10001 | $as_echo "no" >&6; } | |
55db4b87 PB |
10002 | fi |
10003 | ||
81ecdfbb | 10004 | |
2429c060 PB |
10005 | fi |
10006 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10007 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10008 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10010 | $as_echo_n "checking for $ac_word... " >&6; } | |
10011 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
10012 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10013 | else |
05cbd757 PB |
10014 | if test -n "$CC_FOR_TARGET"; then |
10015 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10016 | else |
c6b750e1 DJ |
10017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10018 | for as_dir in $PATH | |
10019 | do | |
10020 | IFS=$as_save_IFS | |
10021 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10022 | for ac_exec_ext in '' $ac_executable_extensions; do |
10023 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10024 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10025 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10026 | break 2 |
10027 | fi | |
10028 | done | |
81ecdfbb RW |
10029 | done |
10030 | IFS=$as_save_IFS | |
c6b750e1 | 10031 | |
55db4b87 PB |
10032 | fi |
10033 | fi | |
c6b750e1 | 10034 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 10035 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10037 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10038 | else |
81ecdfbb RW |
10039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10040 | $as_echo "no" >&6; } | |
55db4b87 | 10041 | fi |
c6b750e1 | 10042 | |
81ecdfbb | 10043 | |
2429c060 PB |
10044 | fi |
10045 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10046 | done | |
10047 | fi | |
c6b750e1 | 10048 | |
05cbd757 PB |
10049 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10050 | set dummy cc gcc | |
10051 | if test $build = $target ; then | |
10052 | CC_FOR_TARGET="$2" | |
55db4b87 | 10053 | else |
05cbd757 | 10054 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10055 | fi |
d3f5afc4 MS |
10056 | else |
10057 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
10058 | fi |
10059 | ||
9a819804 AO |
10060 | |
10061 | ||
10062 | if test -n "$CXX_FOR_TARGET"; then | |
10063 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10064 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10065 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10066 | fi | |
10067 | ||
10068 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10069 | for ncn_progname in c++ g++ cxx gxx; do | |
10070 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10071 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10073 | $as_echo_n "checking for $ac_word... " >&6; } | |
10074 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10075 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10076 | else |
10077 | if test -n "$CXX_FOR_TARGET"; then | |
10078 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10079 | else | |
10080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10081 | for as_dir in $PATH | |
10082 | do | |
10083 | IFS=$as_save_IFS | |
10084 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10085 | for ac_exec_ext in '' $ac_executable_extensions; do |
10086 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10087 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10088 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10089 | break 2 |
10090 | fi | |
10091 | done | |
81ecdfbb RW |
10092 | done |
10093 | IFS=$as_save_IFS | |
9a819804 AO |
10094 | |
10095 | fi | |
10096 | fi | |
10097 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10098 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
10099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10100 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 10101 | else |
81ecdfbb RW |
10102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10103 | $as_echo "no" >&6; } | |
9a819804 AO |
10104 | fi |
10105 | ||
81ecdfbb | 10106 | |
9a819804 AO |
10107 | done |
10108 | fi | |
10109 | ||
10110 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10111 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
10112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10113 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10114 | if test -x $with_build_time_tools/${ncn_progname}; then |
10115 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10117 | $as_echo "yes" >&6; } | |
2429c060 PB |
10118 | break |
10119 | else | |
81ecdfbb RW |
10120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10121 | $as_echo "no" >&6; } | |
2429c060 PB |
10122 | fi |
10123 | done | |
10124 | fi | |
10125 | ||
10126 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10127 | for ncn_progname in c++ g++ cxx gxx; do | |
10128 | if test -n "$ncn_target_tool_prefix"; then | |
10129 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10130 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10132 | $as_echo_n "checking for $ac_word... " >&6; } | |
10133 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10134 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10135 | else |
10136 | if test -n "$CXX_FOR_TARGET"; then | |
10137 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10138 | else | |
c6b750e1 DJ |
10139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10140 | for as_dir in $PATH | |
10141 | do | |
10142 | IFS=$as_save_IFS | |
10143 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10144 | for ac_exec_ext in '' $ac_executable_extensions; do |
10145 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10146 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10147 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10148 | break 2 |
10149 | fi | |
10150 | done | |
81ecdfbb RW |
10151 | done |
10152 | IFS=$as_save_IFS | |
c6b750e1 | 10153 | |
55db4b87 PB |
10154 | fi |
10155 | fi | |
c6b750e1 | 10156 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 10157 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10159 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10160 | else |
81ecdfbb RW |
10161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10162 | $as_echo "no" >&6; } | |
55db4b87 PB |
10163 | fi |
10164 | ||
81ecdfbb | 10165 | |
2429c060 PB |
10166 | fi |
10167 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10168 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10169 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10171 | $as_echo_n "checking for $ac_word... " >&6; } | |
10172 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10173 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10174 | else |
05cbd757 PB |
10175 | if test -n "$CXX_FOR_TARGET"; then |
10176 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10177 | else |
c6b750e1 DJ |
10178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10179 | for as_dir in $PATH | |
10180 | do | |
10181 | IFS=$as_save_IFS | |
10182 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10183 | for ac_exec_ext in '' $ac_executable_extensions; do |
10184 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10185 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10187 | break 2 |
10188 | fi | |
10189 | done | |
81ecdfbb RW |
10190 | done |
10191 | IFS=$as_save_IFS | |
c6b750e1 | 10192 | |
55db4b87 PB |
10193 | fi |
10194 | fi | |
c6b750e1 | 10195 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 10196 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10198 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10199 | else |
81ecdfbb RW |
10200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10201 | $as_echo "no" >&6; } | |
55db4b87 | 10202 | fi |
c6b750e1 | 10203 | |
81ecdfbb | 10204 | |
2429c060 PB |
10205 | fi |
10206 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10207 | done | |
10208 | fi | |
c6b750e1 | 10209 | |
05cbd757 PB |
10210 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10211 | set dummy c++ g++ cxx gxx | |
10212 | if test $build = $target ; then | |
10213 | CXX_FOR_TARGET="$2" | |
55db4b87 | 10214 | else |
05cbd757 | 10215 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10216 | fi |
d3f5afc4 MS |
10217 | else |
10218 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
10219 | fi |
10220 | ||
9a819804 AO |
10221 | |
10222 | ||
10223 | if test -n "$GCC_FOR_TARGET"; then | |
10224 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10225 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10226 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10227 | fi | |
10228 | ||
10229 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10230 | for ncn_progname in gcc; do | |
10231 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10232 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10234 | $as_echo_n "checking for $ac_word... " >&6; } | |
10235 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10236 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10237 | else |
10238 | if test -n "$GCC_FOR_TARGET"; then | |
10239 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10240 | else | |
10241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10242 | for as_dir in $PATH | |
10243 | do | |
10244 | IFS=$as_save_IFS | |
10245 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10246 | for ac_exec_ext in '' $ac_executable_extensions; do |
10247 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10248 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10249 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10250 | break 2 |
10251 | fi | |
10252 | done | |
81ecdfbb RW |
10253 | done |
10254 | IFS=$as_save_IFS | |
9a819804 AO |
10255 | |
10256 | fi | |
10257 | fi | |
10258 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10259 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
10260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10261 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 10262 | else |
81ecdfbb RW |
10263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10264 | $as_echo "no" >&6; } | |
9a819804 AO |
10265 | fi |
10266 | ||
81ecdfbb | 10267 | |
9a819804 AO |
10268 | done |
10269 | fi | |
10270 | ||
10271 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10272 | for ncn_progname in gcc; do |
81ecdfbb RW |
10273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10274 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10275 | if test -x $with_build_time_tools/${ncn_progname}; then |
10276 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10278 | $as_echo "yes" >&6; } | |
2429c060 PB |
10279 | break |
10280 | else | |
81ecdfbb RW |
10281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10282 | $as_echo "no" >&6; } | |
2429c060 PB |
10283 | fi |
10284 | done | |
10285 | fi | |
10286 | ||
10287 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10288 | for ncn_progname in gcc; do | |
10289 | if test -n "$ncn_target_tool_prefix"; then | |
10290 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10291 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10293 | $as_echo_n "checking for $ac_word... " >&6; } | |
10294 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10295 | $as_echo_n "(cached) " >&6 | |
859789af | 10296 | else |
2429c060 PB |
10297 | if test -n "$GCC_FOR_TARGET"; then |
10298 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10299 | else |
c6b750e1 DJ |
10300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10301 | for as_dir in $PATH | |
10302 | do | |
10303 | IFS=$as_save_IFS | |
10304 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10305 | for ac_exec_ext in '' $ac_executable_extensions; do |
10306 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10307 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10308 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10309 | break 2 |
10310 | fi | |
10311 | done | |
81ecdfbb RW |
10312 | done |
10313 | IFS=$as_save_IFS | |
c6b750e1 | 10314 | |
55db4b87 PB |
10315 | fi |
10316 | fi | |
c6b750e1 | 10317 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 10318 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10320 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10321 | else |
81ecdfbb RW |
10322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10323 | $as_echo "no" >&6; } | |
55db4b87 PB |
10324 | fi |
10325 | ||
81ecdfbb | 10326 | |
2429c060 PB |
10327 | fi |
10328 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10329 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10330 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10332 | $as_echo_n "checking for $ac_word... " >&6; } | |
10333 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10334 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10335 | else |
05cbd757 PB |
10336 | if test -n "$GCC_FOR_TARGET"; then |
10337 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10338 | else |
c6b750e1 DJ |
10339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10340 | for as_dir in $PATH | |
10341 | do | |
10342 | IFS=$as_save_IFS | |
10343 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10344 | for ac_exec_ext in '' $ac_executable_extensions; do |
10345 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10346 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10348 | break 2 |
10349 | fi | |
10350 | done | |
81ecdfbb RW |
10351 | done |
10352 | IFS=$as_save_IFS | |
c6b750e1 | 10353 | |
55db4b87 PB |
10354 | fi |
10355 | fi | |
c6b750e1 | 10356 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 10357 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10359 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10360 | else |
81ecdfbb RW |
10361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10362 | $as_echo "no" >&6; } | |
55db4b87 | 10363 | fi |
c6b750e1 | 10364 | |
81ecdfbb | 10365 | |
2429c060 PB |
10366 | fi |
10367 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10368 | done | |
10369 | fi | |
c6b750e1 | 10370 | |
05cbd757 PB |
10371 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10372 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
10373 | else |
10374 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
10375 | fi |
10376 | ||
9a819804 AO |
10377 | |
10378 | ||
10379 | if test -n "$GCJ_FOR_TARGET"; then | |
10380 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10381 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10382 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10383 | fi | |
10384 | ||
10385 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10386 | for ncn_progname in gcj; do | |
10387 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10388 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
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_GCJ_FOR_TARGET+set}" = set; then : | |
10392 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10393 | else |
10394 | if test -n "$GCJ_FOR_TARGET"; then | |
10395 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10396 | else | |
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=. | |
81ecdfbb RW |
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 | |
9a819804 | 10404 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10405 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10406 | break 2 |
10407 | fi | |
10408 | done | |
81ecdfbb RW |
10409 | done |
10410 | IFS=$as_save_IFS | |
9a819804 AO |
10411 | |
10412 | fi | |
10413 | fi | |
10414 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10415 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10417 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10418 | else |
81ecdfbb RW |
10419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10420 | $as_echo "no" >&6; } | |
9a819804 AO |
10421 | fi |
10422 | ||
81ecdfbb | 10423 | |
9a819804 AO |
10424 | done |
10425 | fi | |
10426 | ||
10427 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10428 | for ncn_progname in gcj; do |
81ecdfbb RW |
10429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10430 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10431 | if test -x $with_build_time_tools/${ncn_progname}; then |
10432 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10434 | $as_echo "yes" >&6; } | |
2429c060 PB |
10435 | break |
10436 | else | |
81ecdfbb RW |
10437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10438 | $as_echo "no" >&6; } | |
2429c060 PB |
10439 | fi |
10440 | done | |
10441 | fi | |
10442 | ||
10443 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10444 | for ncn_progname in gcj; do | |
10445 | if test -n "$ncn_target_tool_prefix"; then | |
10446 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10447 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10449 | $as_echo_n "checking for $ac_word... " >&6; } | |
10450 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10451 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10452 | else |
10453 | if test -n "$GCJ_FOR_TARGET"; then | |
10454 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10455 | else | |
c6b750e1 DJ |
10456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10457 | for as_dir in $PATH | |
10458 | do | |
10459 | IFS=$as_save_IFS | |
10460 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10461 | for ac_exec_ext in '' $ac_executable_extensions; do |
10462 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10463 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10464 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10465 | break 2 |
10466 | fi | |
10467 | done | |
81ecdfbb RW |
10468 | done |
10469 | IFS=$as_save_IFS | |
c6b750e1 | 10470 | |
55db4b87 PB |
10471 | fi |
10472 | fi | |
9a819804 AO |
10473 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10474 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10476 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10477 | else |
81ecdfbb RW |
10478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10479 | $as_echo "no" >&6; } | |
9a819804 AO |
10480 | fi |
10481 | ||
81ecdfbb | 10482 | |
9a819804 AO |
10483 | fi |
10484 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10485 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10486 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10488 | $as_echo_n "checking for $ac_word... " >&6; } | |
10489 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10490 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10491 | else |
10492 | if test -n "$GCJ_FOR_TARGET"; then | |
10493 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10494 | else | |
10495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10496 | for as_dir in $PATH | |
10497 | do | |
10498 | IFS=$as_save_IFS | |
10499 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10500 | for ac_exec_ext in '' $ac_executable_extensions; do |
10501 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10502 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10503 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10504 | break 2 |
10505 | fi | |
10506 | done | |
81ecdfbb RW |
10507 | done |
10508 | IFS=$as_save_IFS | |
9a819804 AO |
10509 | |
10510 | fi | |
10511 | fi | |
10512 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10513 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10515 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10516 | else |
81ecdfbb RW |
10517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10518 | $as_echo "no" >&6; } | |
9a819804 AO |
10519 | fi |
10520 | ||
81ecdfbb | 10521 | |
9a819804 AO |
10522 | fi |
10523 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10524 | done | |
10525 | fi | |
10526 | ||
10527 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10528 | set dummy gcj | |
10529 | if test $build = $target ; then | |
10530 | GCJ_FOR_TARGET="$2" | |
10531 | else | |
10532 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10533 | fi | |
d3f5afc4 MS |
10534 | else |
10535 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
9a819804 AO |
10536 | fi |
10537 | ||
10538 | ||
10539 | ||
10540 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10541 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10542 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10543 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
10544 | fi |
10545 | ||
9a819804 AO |
10546 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10547 | for ncn_progname in gfortran; do | |
10548 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10549 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10551 | $as_echo_n "checking for $ac_word... " >&6; } | |
10552 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10553 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10554 | else |
9a819804 AO |
10555 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10556 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10557 | else |
c6b750e1 DJ |
10558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10559 | for as_dir in $PATH | |
10560 | do | |
10561 | IFS=$as_save_IFS | |
10562 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10563 | for ac_exec_ext in '' $ac_executable_extensions; do |
10564 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10565 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10566 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10567 | break 2 |
10568 | fi | |
10569 | done | |
81ecdfbb RW |
10570 | done |
10571 | IFS=$as_save_IFS | |
c6b750e1 | 10572 | |
55db4b87 PB |
10573 | fi |
10574 | fi | |
9a819804 AO |
10575 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10576 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
10577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10578 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10579 | else |
81ecdfbb RW |
10580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10581 | $as_echo "no" >&6; } | |
55db4b87 | 10582 | fi |
c6b750e1 | 10583 | |
81ecdfbb | 10584 | |
2429c060 PB |
10585 | done |
10586 | fi | |
c6b750e1 | 10587 | |
9a819804 | 10588 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 10589 | for ncn_progname in gfortran; do |
81ecdfbb RW |
10590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10591 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10592 | if test -x $with_build_time_tools/${ncn_progname}; then |
10593 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10595 | $as_echo "yes" >&6; } | |
2429c060 PB |
10596 | break |
10597 | else | |
81ecdfbb RW |
10598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10599 | $as_echo "no" >&6; } | |
2429c060 PB |
10600 | fi |
10601 | done | |
10602 | fi | |
10603 | ||
10604 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10605 | for ncn_progname in gfortran; do | |
10606 | if test -n "$ncn_target_tool_prefix"; then | |
10607 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10608 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10610 | $as_echo_n "checking for $ac_word... " >&6; } | |
10611 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10612 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10613 | else |
10614 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10615 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10616 | else | |
c6b750e1 DJ |
10617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10618 | for as_dir in $PATH | |
10619 | do | |
10620 | IFS=$as_save_IFS | |
10621 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10622 | for ac_exec_ext in '' $ac_executable_extensions; do |
10623 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10624 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10625 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10626 | break 2 |
10627 | fi | |
10628 | done | |
81ecdfbb RW |
10629 | done |
10630 | IFS=$as_save_IFS | |
c6b750e1 | 10631 | |
55db4b87 PB |
10632 | fi |
10633 | fi | |
c6b750e1 | 10634 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
55db4b87 | 10635 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10637 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10638 | else |
81ecdfbb RW |
10639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10640 | $as_echo "no" >&6; } | |
55db4b87 PB |
10641 | fi |
10642 | ||
81ecdfbb | 10643 | |
2429c060 PB |
10644 | fi |
10645 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10646 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10647 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10649 | $as_echo_n "checking for $ac_word... " >&6; } | |
10650 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10651 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10652 | else |
05cbd757 | 10653 | if test -n "$GFORTRAN_FOR_TARGET"; then |
c6b750e1 DJ |
10654 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10655 | else | |
10656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10657 | for as_dir in $PATH | |
10658 | do | |
10659 | IFS=$as_save_IFS | |
10660 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10661 | for ac_exec_ext in '' $ac_executable_extensions; do |
10662 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10663 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10664 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10665 | break 2 |
10666 | fi | |
10667 | done | |
81ecdfbb RW |
10668 | done |
10669 | IFS=$as_save_IFS | |
c6b750e1 | 10670 | |
55db4b87 PB |
10671 | fi |
10672 | fi | |
c6b750e1 | 10673 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
05cbd757 | 10674 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10676 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10677 | else |
81ecdfbb RW |
10678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10679 | $as_echo "no" >&6; } | |
55db4b87 | 10680 | fi |
c6b750e1 | 10681 | |
81ecdfbb | 10682 | |
2429c060 PB |
10683 | fi |
10684 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10685 | done | |
10686 | fi | |
c6b750e1 | 10687 | |
05cbd757 PB |
10688 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10689 | set dummy gfortran | |
10690 | if test $build = $target ; then | |
10691 | GFORTRAN_FOR_TARGET="$2" | |
55db4b87 | 10692 | else |
05cbd757 | 10693 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10694 | fi |
d3f5afc4 MS |
10695 | else |
10696 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
859789af AC |
10697 | fi |
10698 | ||
2429c060 PB |
10699 | |
10700 | ||
e552509b ILT |
10701 | if test -n "$GOC_FOR_TARGET"; then |
10702 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10703 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10704 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10705 | fi | |
10706 | ||
10707 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10708 | for ncn_progname in gccgo; do | |
10709 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10710 | set dummy ${ncn_progname}; ac_word=$2 | |
10711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10712 | $as_echo_n "checking for $ac_word... " >&6; } | |
10713 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10714 | $as_echo_n "(cached) " >&6 | |
10715 | else | |
10716 | if test -n "$GOC_FOR_TARGET"; then | |
10717 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10718 | else | |
10719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10720 | for as_dir in $PATH | |
10721 | do | |
10722 | IFS=$as_save_IFS | |
10723 | test -z "$as_dir" && as_dir=. | |
10724 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10725 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10726 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10728 | break 2 | |
10729 | fi | |
10730 | done | |
10731 | done | |
10732 | IFS=$as_save_IFS | |
10733 | ||
10734 | fi | |
10735 | fi | |
10736 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10737 | if test -n "$GOC_FOR_TARGET"; then | |
10738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10739 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10740 | else | |
10741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10742 | $as_echo "no" >&6; } | |
10743 | fi | |
10744 | ||
10745 | ||
10746 | done | |
10747 | fi | |
10748 | ||
10749 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10750 | for ncn_progname in gccgo; do | |
10751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10752 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10753 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10754 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10756 | $as_echo "yes" >&6; } | |
10757 | break | |
10758 | else | |
10759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10760 | $as_echo "no" >&6; } | |
10761 | fi | |
10762 | done | |
10763 | fi | |
10764 | ||
10765 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10766 | for ncn_progname in gccgo; do | |
10767 | if test -n "$ncn_target_tool_prefix"; then | |
10768 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10769 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10771 | $as_echo_n "checking for $ac_word... " >&6; } | |
10772 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10773 | $as_echo_n "(cached) " >&6 | |
10774 | else | |
10775 | if test -n "$GOC_FOR_TARGET"; then | |
10776 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10777 | else | |
10778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10779 | for as_dir in $PATH | |
10780 | do | |
10781 | IFS=$as_save_IFS | |
10782 | test -z "$as_dir" && as_dir=. | |
10783 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10784 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10785 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10787 | break 2 | |
10788 | fi | |
10789 | done | |
10790 | done | |
10791 | IFS=$as_save_IFS | |
10792 | ||
10793 | fi | |
10794 | fi | |
10795 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10796 | if test -n "$GOC_FOR_TARGET"; then | |
10797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10798 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10799 | else | |
10800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10801 | $as_echo "no" >&6; } | |
10802 | fi | |
10803 | ||
10804 | ||
10805 | fi | |
10806 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10807 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10808 | set dummy ${ncn_progname}; ac_word=$2 | |
10809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10810 | $as_echo_n "checking for $ac_word... " >&6; } | |
10811 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10812 | $as_echo_n "(cached) " >&6 | |
10813 | else | |
10814 | if test -n "$GOC_FOR_TARGET"; then | |
10815 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10816 | else | |
10817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10818 | for as_dir in $PATH | |
10819 | do | |
10820 | IFS=$as_save_IFS | |
10821 | test -z "$as_dir" && as_dir=. | |
10822 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10823 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10824 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10826 | break 2 | |
10827 | fi | |
10828 | done | |
10829 | done | |
10830 | IFS=$as_save_IFS | |
10831 | ||
10832 | fi | |
10833 | fi | |
10834 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10835 | if test -n "$GOC_FOR_TARGET"; then | |
10836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10837 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10838 | else | |
10839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10840 | $as_echo "no" >&6; } | |
10841 | fi | |
10842 | ||
10843 | ||
10844 | fi | |
10845 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10846 | done | |
10847 | fi | |
10848 | ||
10849 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10850 | set dummy gccgo | |
10851 | if test $build = $target ; then | |
10852 | GOC_FOR_TARGET="$2" | |
10853 | else | |
10854 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10855 | fi | |
10856 | else | |
10857 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10858 | fi | |
10859 | ||
10860 | ||
10861 | ||
2429c060 PB |
10862 | cat > conftest.c << \EOF |
10863 | #ifdef __GNUC__ | |
10864 | gcc_yay; | |
10865 | #endif | |
10866 | EOF | |
10867 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10868 | have_gcc_for_target=yes | |
859789af | 10869 | else |
2429c060 PB |
10870 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
10871 | have_gcc_for_target=no | |
859789af | 10872 | fi |
2429c060 PB |
10873 | rm conftest.c |
10874 | ||
10875 | ||
10876 | ||
859789af | 10877 | |
2429c060 PB |
10878 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
10879 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10881 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10882 | if test -x $with_build_time_tools/ar; then |
10883 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10884 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
10885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10886 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 10887 | else |
81ecdfbb RW |
10888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10889 | $as_echo "no" >&6; } | |
3a35eeb3 | 10890 | fi |
2429c060 PB |
10891 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10892 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
10893 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10894 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 10895 | fi |
2429c060 | 10896 | fi |
c6b750e1 | 10897 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10898 | # Extract the first word of "ar", so it can be a program name with args. |
10899 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
10900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10901 | $as_echo_n "checking for $ac_word... " >&6; } | |
10902 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10903 | $as_echo_n "(cached) " >&6 | |
859789af | 10904 | else |
c6b750e1 DJ |
10905 | case $AR_FOR_TARGET in |
10906 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10907 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10908 | ;; | |
2429c060 | 10909 | *) |
c6b750e1 DJ |
10910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10911 | for as_dir in $gcc_cv_tool_dirs | |
10912 | do | |
10913 | IFS=$as_save_IFS | |
10914 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10915 | for ac_exec_ext in '' $ac_executable_extensions; do |
10916 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10917 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10918 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10919 | break 2 |
10920 | fi | |
10921 | done | |
81ecdfbb RW |
10922 | done |
10923 | IFS=$as_save_IFS | |
c6b750e1 | 10924 | |
2429c060 PB |
10925 | ;; |
10926 | esac | |
859789af | 10927 | fi |
c6b750e1 | 10928 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 10929 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10931 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 10932 | else |
81ecdfbb RW |
10933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10934 | $as_echo "no" >&6; } | |
859789af | 10935 | fi |
05cbd757 | 10936 | |
81ecdfbb | 10937 | |
2429c060 PB |
10938 | fi |
10939 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
10940 | |
10941 | ||
10942 | if test -n "$AR_FOR_TARGET"; then | |
10943 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10944 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10945 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10946 | fi | |
10947 | ||
10948 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10949 | for ncn_progname in ar; do | |
10950 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10951 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10953 | $as_echo_n "checking for $ac_word... " >&6; } | |
10954 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10955 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10956 | else |
10957 | if test -n "$AR_FOR_TARGET"; then | |
10958 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10959 | else | |
10960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10961 | for as_dir in $PATH | |
10962 | do | |
10963 | IFS=$as_save_IFS | |
10964 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10965 | for ac_exec_ext in '' $ac_executable_extensions; do |
10966 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10967 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10968 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10969 | break 2 |
10970 | fi | |
10971 | done | |
81ecdfbb RW |
10972 | done |
10973 | IFS=$as_save_IFS | |
9a819804 AO |
10974 | |
10975 | fi | |
10976 | fi | |
10977 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10978 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
10979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10980 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 10981 | else |
81ecdfbb RW |
10982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10983 | $as_echo "no" >&6; } | |
9a819804 AO |
10984 | fi |
10985 | ||
81ecdfbb | 10986 | |
9a819804 AO |
10987 | done |
10988 | fi | |
10989 | ||
10990 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10991 | for ncn_progname in ar; do |
81ecdfbb RW |
10992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10993 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10994 | if test -x $with_build_time_tools/${ncn_progname}; then |
10995 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10997 | $as_echo "yes" >&6; } | |
2429c060 PB |
10998 | break |
10999 | else | |
81ecdfbb RW |
11000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11001 | $as_echo "no" >&6; } | |
2429c060 PB |
11002 | fi |
11003 | done | |
859789af AC |
11004 | fi |
11005 | ||
2429c060 PB |
11006 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
11007 | for ncn_progname in ar; do | |
11008 | if test -n "$ncn_target_tool_prefix"; then | |
11009 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 11010 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11012 | $as_echo_n "checking for $ac_word... " >&6; } | |
11013 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11014 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 11015 | else |
2429c060 PB |
11016 | if test -n "$AR_FOR_TARGET"; then |
11017 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 11018 | else |
c6b750e1 DJ |
11019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11020 | for as_dir in $PATH | |
11021 | do | |
11022 | IFS=$as_save_IFS | |
11023 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11024 | for ac_exec_ext in '' $ac_executable_extensions; do |
11025 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11026 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11028 | break 2 |
11029 | fi | |
11030 | done | |
81ecdfbb RW |
11031 | done |
11032 | IFS=$as_save_IFS | |
c6b750e1 | 11033 | |
7e0f7140 GK |
11034 | fi |
11035 | fi | |
c6b750e1 | 11036 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 11037 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11039 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 11040 | else |
81ecdfbb RW |
11041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11042 | $as_echo "no" >&6; } | |
7e0f7140 GK |
11043 | fi |
11044 | ||
81ecdfbb | 11045 | |
2429c060 PB |
11046 | fi |
11047 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
11048 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 11049 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11051 | $as_echo_n "checking for $ac_word... " >&6; } | |
11052 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11053 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 11054 | else |
2429c060 PB |
11055 | if test -n "$AR_FOR_TARGET"; then |
11056 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 11057 | else |
c6b750e1 DJ |
11058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11059 | for as_dir in $PATH | |
11060 | do | |
11061 | IFS=$as_save_IFS | |
11062 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11063 | for ac_exec_ext in '' $ac_executable_extensions; do |
11064 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11065 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11066 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11067 | break 2 |
11068 | fi | |
11069 | done | |
81ecdfbb RW |
11070 | done |
11071 | IFS=$as_save_IFS | |
c6b750e1 | 11072 | |
7e0f7140 GK |
11073 | fi |
11074 | fi | |
c6b750e1 | 11075 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 11076 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11078 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 11079 | else |
81ecdfbb RW |
11080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11081 | $as_echo "no" >&6; } | |
7e0f7140 | 11082 | fi |
c6b750e1 | 11083 | |
81ecdfbb | 11084 | |
2429c060 PB |
11085 | fi |
11086 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11087 | done | |
11088 | fi | |
c6b750e1 | 11089 | |
2429c060 PB |
11090 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11091 | set dummy ar | |
7e0f7140 | 11092 | if test $build = $target ; then |
2429c060 | 11093 | AR_FOR_TARGET="$2" |
7e0f7140 | 11094 | else |
2429c060 | 11095 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 11096 | fi |
d3f5afc4 MS |
11097 | else |
11098 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
11099 | fi |
11100 | ||
3a35eeb3 PB |
11101 | else |
11102 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
11103 | fi |
11104 | ||
11105 | ||
11106 | ||
11107 | ||
11108 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11109 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11111 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11112 | if test -x $with_build_time_tools/as; then |
11113 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11114 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
11115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11116 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 11117 | else |
81ecdfbb RW |
11118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11119 | $as_echo "no" >&6; } | |
3a35eeb3 | 11120 | fi |
2429c060 PB |
11121 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11122 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
11123 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11124 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
11125 | fi |
11126 | fi | |
c6b750e1 | 11127 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11128 | # Extract the first word of "as", so it can be a program name with args. |
11129 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
11130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11131 | $as_echo_n "checking for $ac_word... " >&6; } | |
11132 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
11133 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11134 | else |
c6b750e1 DJ |
11135 | case $AS_FOR_TARGET in |
11136 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11137 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11138 | ;; | |
2429c060 | 11139 | *) |
c6b750e1 DJ |
11140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11141 | for as_dir in $gcc_cv_tool_dirs | |
11142 | do | |
11143 | IFS=$as_save_IFS | |
11144 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11145 | for ac_exec_ext in '' $ac_executable_extensions; do |
11146 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11147 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11148 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11149 | break 2 |
11150 | fi | |
11151 | done | |
81ecdfbb RW |
11152 | done |
11153 | IFS=$as_save_IFS | |
c6b750e1 | 11154 | |
2429c060 PB |
11155 | ;; |
11156 | esac | |
11157 | fi | |
c6b750e1 | 11158 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 11159 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11161 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11162 | else |
81ecdfbb RW |
11163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11164 | $as_echo "no" >&6; } | |
2429c060 PB |
11165 | fi |
11166 | ||
81ecdfbb | 11167 | |
2429c060 PB |
11168 | fi |
11169 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
11170 | |
11171 | ||
11172 | if test -n "$AS_FOR_TARGET"; then | |
11173 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11174 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11175 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11176 | fi | |
11177 | ||
11178 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11179 | for ncn_progname in as; do | |
11180 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11181 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11183 | $as_echo_n "checking for $ac_word... " >&6; } | |
11184 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11185 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11186 | else |
11187 | if test -n "$AS_FOR_TARGET"; then | |
11188 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11189 | else | |
11190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11191 | for as_dir in $PATH | |
11192 | do | |
11193 | IFS=$as_save_IFS | |
11194 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11195 | for ac_exec_ext in '' $ac_executable_extensions; do |
11196 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11197 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11199 | break 2 |
11200 | fi | |
11201 | done | |
81ecdfbb RW |
11202 | done |
11203 | IFS=$as_save_IFS | |
9a819804 AO |
11204 | |
11205 | fi | |
11206 | fi | |
11207 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11208 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
11209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11210 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 11211 | else |
81ecdfbb RW |
11212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11213 | $as_echo "no" >&6; } | |
9a819804 AO |
11214 | fi |
11215 | ||
81ecdfbb | 11216 | |
9a819804 AO |
11217 | done |
11218 | fi | |
11219 | ||
11220 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11221 | for ncn_progname in as; do |
81ecdfbb RW |
11222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11223 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11224 | if test -x $with_build_time_tools/${ncn_progname}; then |
11225 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11227 | $as_echo "yes" >&6; } | |
2429c060 PB |
11228 | break |
11229 | else | |
81ecdfbb RW |
11230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11231 | $as_echo "no" >&6; } | |
2429c060 PB |
11232 | fi |
11233 | done | |
11234 | fi | |
11235 | ||
11236 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11237 | for ncn_progname in as; do | |
11238 | if test -n "$ncn_target_tool_prefix"; then | |
11239 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11240 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11242 | $as_echo_n "checking for $ac_word... " >&6; } | |
11243 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11244 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11245 | else |
11246 | if test -n "$AS_FOR_TARGET"; then | |
11247 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11248 | else | |
c6b750e1 DJ |
11249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11250 | for as_dir in $PATH | |
11251 | do | |
11252 | IFS=$as_save_IFS | |
11253 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11254 | for ac_exec_ext in '' $ac_executable_extensions; do |
11255 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11256 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11257 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11258 | break 2 |
11259 | fi | |
11260 | done | |
81ecdfbb RW |
11261 | done |
11262 | IFS=$as_save_IFS | |
c6b750e1 | 11263 | |
2429c060 PB |
11264 | fi |
11265 | fi | |
c6b750e1 | 11266 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11267 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11269 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11270 | else |
81ecdfbb RW |
11271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11272 | $as_echo "no" >&6; } | |
2429c060 PB |
11273 | fi |
11274 | ||
81ecdfbb | 11275 | |
2429c060 PB |
11276 | fi |
11277 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11278 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11279 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11281 | $as_echo_n "checking for $ac_word... " >&6; } | |
11282 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11283 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11284 | else |
11285 | if test -n "$AS_FOR_TARGET"; then | |
11286 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11287 | else | |
c6b750e1 DJ |
11288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11289 | for as_dir in $PATH | |
11290 | do | |
11291 | IFS=$as_save_IFS | |
11292 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11293 | for ac_exec_ext in '' $ac_executable_extensions; do |
11294 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11295 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11296 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11297 | break 2 |
11298 | fi | |
11299 | done | |
81ecdfbb RW |
11300 | done |
11301 | IFS=$as_save_IFS | |
c6b750e1 | 11302 | |
2429c060 PB |
11303 | fi |
11304 | fi | |
c6b750e1 | 11305 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11306 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11308 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11309 | else |
81ecdfbb RW |
11310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11311 | $as_echo "no" >&6; } | |
2429c060 | 11312 | fi |
c6b750e1 | 11313 | |
81ecdfbb | 11314 | |
2429c060 PB |
11315 | fi |
11316 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11317 | done | |
11318 | fi | |
c6b750e1 | 11319 | |
2429c060 PB |
11320 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11321 | set dummy as | |
11322 | if test $build = $target ; then | |
11323 | AS_FOR_TARGET="$2" | |
11324 | else | |
11325 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11326 | fi | |
d3f5afc4 MS |
11327 | else |
11328 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
11329 | fi |
11330 | ||
3a35eeb3 PB |
11331 | else |
11332 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
11333 | fi |
11334 | ||
11335 | ||
11336 | ||
11337 | ||
11338 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11339 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11341 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11342 | if test -x $with_build_time_tools/dlltool; then |
11343 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11344 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
11345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11346 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 11347 | else |
81ecdfbb RW |
11348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11349 | $as_echo "no" >&6; } | |
3a35eeb3 | 11350 | fi |
2429c060 PB |
11351 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11352 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
11353 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11354 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
11355 | fi |
11356 | fi | |
c6b750e1 | 11357 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11358 | # Extract the first word of "dlltool", so it can be a program name with args. |
11359 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
11360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11361 | $as_echo_n "checking for $ac_word... " >&6; } | |
11362 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11363 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11364 | else |
c6b750e1 DJ |
11365 | case $DLLTOOL_FOR_TARGET in |
11366 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11367 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11368 | ;; | |
2429c060 | 11369 | *) |
c6b750e1 DJ |
11370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11371 | for as_dir in $gcc_cv_tool_dirs | |
11372 | do | |
11373 | IFS=$as_save_IFS | |
11374 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11375 | for ac_exec_ext in '' $ac_executable_extensions; do |
11376 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11377 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11378 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11379 | break 2 |
11380 | fi | |
11381 | done | |
81ecdfbb RW |
11382 | done |
11383 | IFS=$as_save_IFS | |
c6b750e1 | 11384 | |
2429c060 PB |
11385 | ;; |
11386 | esac | |
11387 | fi | |
c6b750e1 | 11388 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 11389 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11391 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11392 | else |
81ecdfbb RW |
11393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11394 | $as_echo "no" >&6; } | |
2429c060 PB |
11395 | fi |
11396 | ||
81ecdfbb | 11397 | |
2429c060 PB |
11398 | fi |
11399 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
11400 | |
11401 | ||
11402 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11403 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11404 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11405 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11406 | fi | |
11407 | ||
11408 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11409 | for ncn_progname in dlltool; do | |
11410 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11411 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11413 | $as_echo_n "checking for $ac_word... " >&6; } | |
11414 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11415 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11416 | else |
11417 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11418 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11419 | else | |
11420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11421 | for as_dir in $PATH | |
11422 | do | |
11423 | IFS=$as_save_IFS | |
11424 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11425 | for ac_exec_ext in '' $ac_executable_extensions; do |
11426 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11427 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11428 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11429 | break 2 |
11430 | fi | |
11431 | done | |
81ecdfbb RW |
11432 | done |
11433 | IFS=$as_save_IFS | |
9a819804 AO |
11434 | |
11435 | fi | |
11436 | fi | |
11437 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11438 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
11439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11440 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 11441 | else |
81ecdfbb RW |
11442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11443 | $as_echo "no" >&6; } | |
9a819804 AO |
11444 | fi |
11445 | ||
81ecdfbb | 11446 | |
9a819804 AO |
11447 | done |
11448 | fi | |
11449 | ||
11450 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11451 | for ncn_progname in dlltool; do |
81ecdfbb RW |
11452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11453 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11454 | if test -x $with_build_time_tools/${ncn_progname}; then |
11455 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11457 | $as_echo "yes" >&6; } | |
2429c060 PB |
11458 | break |
11459 | else | |
81ecdfbb RW |
11460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11461 | $as_echo "no" >&6; } | |
2429c060 PB |
11462 | fi |
11463 | done | |
11464 | fi | |
11465 | ||
11466 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11467 | for ncn_progname in dlltool; do | |
11468 | if test -n "$ncn_target_tool_prefix"; then | |
11469 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11470 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11472 | $as_echo_n "checking for $ac_word... " >&6; } | |
11473 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11474 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11475 | else |
11476 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11477 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11478 | else | |
c6b750e1 DJ |
11479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11480 | for as_dir in $PATH | |
11481 | do | |
11482 | IFS=$as_save_IFS | |
11483 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11484 | for ac_exec_ext in '' $ac_executable_extensions; do |
11485 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11486 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11487 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11488 | break 2 |
11489 | fi | |
11490 | done | |
81ecdfbb RW |
11491 | done |
11492 | IFS=$as_save_IFS | |
c6b750e1 | 11493 | |
2429c060 PB |
11494 | fi |
11495 | fi | |
c6b750e1 | 11496 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11497 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11499 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11500 | else |
81ecdfbb RW |
11501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11502 | $as_echo "no" >&6; } | |
2429c060 PB |
11503 | fi |
11504 | ||
81ecdfbb | 11505 | |
2429c060 PB |
11506 | fi |
11507 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11508 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11509 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11511 | $as_echo_n "checking for $ac_word... " >&6; } | |
11512 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11513 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11514 | else |
11515 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11516 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11517 | else | |
c6b750e1 DJ |
11518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11519 | for as_dir in $PATH | |
11520 | do | |
11521 | IFS=$as_save_IFS | |
11522 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11523 | for ac_exec_ext in '' $ac_executable_extensions; do |
11524 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11525 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11526 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11527 | break 2 |
11528 | fi | |
11529 | done | |
81ecdfbb RW |
11530 | done |
11531 | IFS=$as_save_IFS | |
c6b750e1 | 11532 | |
2429c060 PB |
11533 | fi |
11534 | fi | |
c6b750e1 | 11535 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11536 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11538 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11539 | else |
81ecdfbb RW |
11540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11541 | $as_echo "no" >&6; } | |
2429c060 | 11542 | fi |
c6b750e1 | 11543 | |
81ecdfbb | 11544 | |
2429c060 PB |
11545 | fi |
11546 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11547 | done | |
11548 | fi | |
c6b750e1 | 11549 | |
2429c060 PB |
11550 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11551 | set dummy dlltool | |
11552 | if test $build = $target ; then | |
11553 | DLLTOOL_FOR_TARGET="$2" | |
11554 | else | |
11555 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11556 | fi | |
d3f5afc4 MS |
11557 | else |
11558 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
2429c060 PB |
11559 | fi |
11560 | ||
3a35eeb3 PB |
11561 | else |
11562 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
2429c060 PB |
11563 | fi |
11564 | ||
11565 | ||
11566 | ||
11567 | ||
11568 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11569 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11571 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11572 | if test -x $with_build_time_tools/ld; then |
11573 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11574 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
11575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11576 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 11577 | else |
81ecdfbb RW |
11578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11579 | $as_echo "no" >&6; } | |
3a35eeb3 | 11580 | fi |
2429c060 PB |
11581 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11582 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
11583 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11584 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
11585 | fi |
11586 | fi | |
c6b750e1 | 11587 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11588 | # Extract the first word of "ld", so it can be a program name with args. |
11589 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
11590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11591 | $as_echo_n "checking for $ac_word... " >&6; } | |
11592 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11593 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11594 | else |
c6b750e1 DJ |
11595 | case $LD_FOR_TARGET in |
11596 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11597 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11598 | ;; | |
2429c060 | 11599 | *) |
c6b750e1 DJ |
11600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11601 | for as_dir in $gcc_cv_tool_dirs | |
11602 | do | |
11603 | IFS=$as_save_IFS | |
11604 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11605 | for ac_exec_ext in '' $ac_executable_extensions; do |
11606 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11607 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11608 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11609 | break 2 |
11610 | fi | |
11611 | done | |
81ecdfbb RW |
11612 | done |
11613 | IFS=$as_save_IFS | |
c6b750e1 | 11614 | |
2429c060 PB |
11615 | ;; |
11616 | esac | |
11617 | fi | |
c6b750e1 | 11618 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 11619 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11621 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11622 | else |
81ecdfbb RW |
11623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11624 | $as_echo "no" >&6; } | |
2429c060 PB |
11625 | fi |
11626 | ||
81ecdfbb | 11627 | |
2429c060 PB |
11628 | fi |
11629 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
11630 | |
11631 | ||
11632 | if test -n "$LD_FOR_TARGET"; then | |
11633 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11634 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11635 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11636 | fi | |
11637 | ||
11638 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11639 | for ncn_progname in ld; do | |
11640 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11641 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11643 | $as_echo_n "checking for $ac_word... " >&6; } | |
11644 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11645 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11646 | else |
11647 | if test -n "$LD_FOR_TARGET"; then | |
11648 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11649 | else | |
11650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11651 | for as_dir in $PATH | |
11652 | do | |
11653 | IFS=$as_save_IFS | |
11654 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11655 | for ac_exec_ext in '' $ac_executable_extensions; do |
11656 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11657 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11658 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11659 | break 2 |
11660 | fi | |
11661 | done | |
81ecdfbb RW |
11662 | done |
11663 | IFS=$as_save_IFS | |
9a819804 AO |
11664 | |
11665 | fi | |
11666 | fi | |
11667 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11668 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
11669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11670 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 11671 | else |
81ecdfbb RW |
11672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11673 | $as_echo "no" >&6; } | |
9a819804 AO |
11674 | fi |
11675 | ||
81ecdfbb | 11676 | |
9a819804 AO |
11677 | done |
11678 | fi | |
11679 | ||
11680 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11681 | for ncn_progname in ld; do |
81ecdfbb RW |
11682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11683 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11684 | if test -x $with_build_time_tools/${ncn_progname}; then |
11685 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11687 | $as_echo "yes" >&6; } | |
2429c060 PB |
11688 | break |
11689 | else | |
81ecdfbb RW |
11690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11691 | $as_echo "no" >&6; } | |
2429c060 PB |
11692 | fi |
11693 | done | |
11694 | fi | |
11695 | ||
11696 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11697 | for ncn_progname in ld; do | |
11698 | if test -n "$ncn_target_tool_prefix"; then | |
11699 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11700 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11702 | $as_echo_n "checking for $ac_word... " >&6; } | |
11703 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11704 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11705 | else |
11706 | if test -n "$LD_FOR_TARGET"; then | |
11707 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11708 | else | |
c6b750e1 DJ |
11709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11710 | for as_dir in $PATH | |
11711 | do | |
11712 | IFS=$as_save_IFS | |
11713 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11714 | for ac_exec_ext in '' $ac_executable_extensions; do |
11715 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11716 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11717 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11718 | break 2 |
11719 | fi | |
11720 | done | |
81ecdfbb RW |
11721 | done |
11722 | IFS=$as_save_IFS | |
c6b750e1 | 11723 | |
2429c060 PB |
11724 | fi |
11725 | fi | |
c6b750e1 | 11726 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11727 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11729 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11730 | else |
81ecdfbb RW |
11731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11732 | $as_echo "no" >&6; } | |
2429c060 PB |
11733 | fi |
11734 | ||
81ecdfbb | 11735 | |
2429c060 PB |
11736 | fi |
11737 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11738 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11739 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11741 | $as_echo_n "checking for $ac_word... " >&6; } | |
11742 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11743 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11744 | else |
11745 | if test -n "$LD_FOR_TARGET"; then | |
11746 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11747 | else | |
c6b750e1 DJ |
11748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11749 | for as_dir in $PATH | |
11750 | do | |
11751 | IFS=$as_save_IFS | |
11752 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11753 | for ac_exec_ext in '' $ac_executable_extensions; do |
11754 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11755 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11756 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11757 | break 2 |
11758 | fi | |
11759 | done | |
81ecdfbb RW |
11760 | done |
11761 | IFS=$as_save_IFS | |
c6b750e1 | 11762 | |
2429c060 PB |
11763 | fi |
11764 | fi | |
c6b750e1 | 11765 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11766 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11768 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11769 | else |
81ecdfbb RW |
11770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11771 | $as_echo "no" >&6; } | |
2429c060 | 11772 | fi |
c6b750e1 | 11773 | |
81ecdfbb | 11774 | |
2429c060 PB |
11775 | fi |
11776 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11777 | done | |
11778 | fi | |
c6b750e1 | 11779 | |
2429c060 PB |
11780 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11781 | set dummy ld | |
11782 | if test $build = $target ; then | |
11783 | LD_FOR_TARGET="$2" | |
11784 | else | |
11785 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11786 | fi | |
d3f5afc4 MS |
11787 | else |
11788 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
11789 | fi |
11790 | ||
3a35eeb3 PB |
11791 | else |
11792 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
11793 | fi |
11794 | ||
11795 | ||
11796 | ||
11797 | ||
11798 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11799 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11801 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11802 | if test -x $with_build_time_tools/lipo; then |
11803 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11804 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
11805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11806 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 11807 | else |
81ecdfbb RW |
11808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11809 | $as_echo "no" >&6; } | |
3a35eeb3 | 11810 | fi |
2429c060 PB |
11811 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11812 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
11813 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11814 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
11815 | fi |
11816 | fi | |
9a819804 AO |
11817 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11818 | # Extract the first word of "lipo", so it can be a program name with args. | |
11819 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
11820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11821 | $as_echo_n "checking for $ac_word... " >&6; } | |
11822 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11823 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11824 | else |
11825 | case $LIPO_FOR_TARGET in | |
11826 | [\\/]* | ?:[\\/]*) | |
11827 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11828 | ;; | |
11829 | *) | |
11830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11831 | for as_dir in $gcc_cv_tool_dirs | |
11832 | do | |
11833 | IFS=$as_save_IFS | |
11834 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11835 | for ac_exec_ext in '' $ac_executable_extensions; do |
11836 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11837 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11839 | break 2 |
11840 | fi | |
11841 | done | |
81ecdfbb RW |
11842 | done |
11843 | IFS=$as_save_IFS | |
9a819804 AO |
11844 | |
11845 | ;; | |
11846 | esac | |
11847 | fi | |
11848 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 11849 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11851 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 11852 | else |
81ecdfbb RW |
11853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11854 | $as_echo "no" >&6; } | |
9a819804 AO |
11855 | fi |
11856 | ||
81ecdfbb | 11857 | |
9a819804 AO |
11858 | fi |
11859 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11860 | ||
11861 | ||
11862 | if test -n "$LIPO_FOR_TARGET"; then | |
11863 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11864 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11865 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11866 | fi | |
11867 | ||
11868 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11869 | for ncn_progname in lipo; do | |
11870 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11871 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11873 | $as_echo_n "checking for $ac_word... " >&6; } | |
11874 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11875 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11876 | else |
9a819804 AO |
11877 | if test -n "$LIPO_FOR_TARGET"; then |
11878 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11879 | else | |
11880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11881 | for as_dir in $PATH | |
c6b750e1 DJ |
11882 | do |
11883 | IFS=$as_save_IFS | |
11884 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11885 | for ac_exec_ext in '' $ac_executable_extensions; do |
11886 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11887 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11888 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11889 | break 2 |
11890 | fi | |
11891 | done | |
81ecdfbb RW |
11892 | done |
11893 | IFS=$as_save_IFS | |
c6b750e1 | 11894 | |
2429c060 | 11895 | fi |
9a819804 AO |
11896 | fi |
11897 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 11898 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11900 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11901 | else |
81ecdfbb RW |
11902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11903 | $as_echo "no" >&6; } | |
2429c060 PB |
11904 | fi |
11905 | ||
81ecdfbb | 11906 | |
9a819804 | 11907 | done |
2429c060 | 11908 | fi |
9a819804 AO |
11909 | |
11910 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11911 | for ncn_progname in lipo; do |
81ecdfbb RW |
11912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11913 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11914 | if test -x $with_build_time_tools/${ncn_progname}; then |
11915 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11917 | $as_echo "yes" >&6; } | |
2429c060 PB |
11918 | break |
11919 | else | |
81ecdfbb RW |
11920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11921 | $as_echo "no" >&6; } | |
2429c060 PB |
11922 | fi |
11923 | done | |
11924 | fi | |
11925 | ||
11926 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11927 | for ncn_progname in lipo; do | |
11928 | if test -n "$ncn_target_tool_prefix"; then | |
11929 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11930 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11932 | $as_echo_n "checking for $ac_word... " >&6; } | |
11933 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11934 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11935 | else |
11936 | if test -n "$LIPO_FOR_TARGET"; then | |
11937 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11938 | else | |
c6b750e1 DJ |
11939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11940 | for as_dir in $PATH | |
11941 | do | |
11942 | IFS=$as_save_IFS | |
11943 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11944 | for ac_exec_ext in '' $ac_executable_extensions; do |
11945 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11946 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11947 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11948 | break 2 |
11949 | fi | |
11950 | done | |
81ecdfbb RW |
11951 | done |
11952 | IFS=$as_save_IFS | |
c6b750e1 | 11953 | |
2429c060 PB |
11954 | fi |
11955 | fi | |
c6b750e1 | 11956 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11957 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11959 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11960 | else |
81ecdfbb RW |
11961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11962 | $as_echo "no" >&6; } | |
2429c060 PB |
11963 | fi |
11964 | ||
81ecdfbb | 11965 | |
2429c060 PB |
11966 | fi |
11967 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11968 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11969 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11971 | $as_echo_n "checking for $ac_word... " >&6; } | |
11972 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11973 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11974 | else |
11975 | if test -n "$LIPO_FOR_TARGET"; then | |
11976 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11977 | else | |
c6b750e1 DJ |
11978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11979 | for as_dir in $PATH | |
11980 | do | |
11981 | IFS=$as_save_IFS | |
11982 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11983 | for ac_exec_ext in '' $ac_executable_extensions; do |
11984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11985 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11987 | break 2 |
11988 | fi | |
11989 | done | |
81ecdfbb RW |
11990 | done |
11991 | IFS=$as_save_IFS | |
c6b750e1 | 11992 | |
2429c060 PB |
11993 | fi |
11994 | fi | |
c6b750e1 | 11995 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11996 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11998 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11999 | else |
81ecdfbb RW |
12000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12001 | $as_echo "no" >&6; } | |
2429c060 | 12002 | fi |
c6b750e1 | 12003 | |
81ecdfbb | 12004 | |
2429c060 PB |
12005 | fi |
12006 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
12007 | done | |
12008 | fi | |
c6b750e1 | 12009 | |
2429c060 PB |
12010 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
12011 | set dummy lipo | |
12012 | if test $build = $target ; then | |
12013 | LIPO_FOR_TARGET="$2" | |
12014 | else | |
12015 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12016 | fi | |
d3f5afc4 MS |
12017 | else |
12018 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
12019 | fi |
12020 | ||
3a35eeb3 PB |
12021 | else |
12022 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
12023 | fi |
12024 | ||
12025 | ||
12026 | ||
12027 | ||
12028 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
12029 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
12031 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12032 | if test -x $with_build_time_tools/nm; then |
12033 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
12034 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
12035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
12036 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 12037 | else |
81ecdfbb RW |
12038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12039 | $as_echo "no" >&6; } | |
3a35eeb3 | 12040 | fi |
2429c060 PB |
12041 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12042 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
12043 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
12044 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
12045 | fi |
12046 | fi | |
c6b750e1 | 12047 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12048 | # Extract the first word of "nm", so it can be a program name with args. |
12049 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
12050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12051 | $as_echo_n "checking for $ac_word... " >&6; } | |
12052 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
12053 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12054 | else |
c6b750e1 DJ |
12055 | case $NM_FOR_TARGET in |
12056 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12057 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
12058 | ;; | |
2429c060 | 12059 | *) |
c6b750e1 DJ |
12060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12061 | for as_dir in $gcc_cv_tool_dirs | |
12062 | do | |
12063 | IFS=$as_save_IFS | |
12064 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12065 | for ac_exec_ext in '' $ac_executable_extensions; do |
12066 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12067 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12068 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12069 | break 2 |
12070 | fi | |
12071 | done | |
81ecdfbb RW |
12072 | done |
12073 | IFS=$as_save_IFS | |
c6b750e1 | 12074 | |
2429c060 PB |
12075 | ;; |
12076 | esac | |
12077 | fi | |
c6b750e1 | 12078 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 12079 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12081 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 12082 | else |
81ecdfbb RW |
12083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12084 | $as_echo "no" >&6; } | |
2429c060 PB |
12085 | fi |
12086 | ||
81ecdfbb | 12087 | |
2429c060 PB |
12088 | fi |
12089 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
12090 | |
12091 | ||
12092 | if test -n "$NM_FOR_TARGET"; then | |
12093 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12094 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12095 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12096 | fi | |
12097 | ||
12098 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12099 | for ncn_progname in nm; do | |
12100 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12101 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12103 | $as_echo_n "checking for $ac_word... " >&6; } | |
12104 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12105 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12106 | else |
12107 | if test -n "$NM_FOR_TARGET"; then | |
12108 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12109 | else | |
12110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12111 | for as_dir in $PATH | |
12112 | do | |
12113 | IFS=$as_save_IFS | |
12114 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12115 | for ac_exec_ext in '' $ac_executable_extensions; do |
12116 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12117 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12118 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12119 | break 2 |
12120 | fi | |
12121 | done | |
81ecdfbb RW |
12122 | done |
12123 | IFS=$as_save_IFS | |
9a819804 AO |
12124 | |
12125 | fi | |
12126 | fi | |
12127 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12128 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
12129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12130 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 12131 | else |
81ecdfbb RW |
12132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12133 | $as_echo "no" >&6; } | |
9a819804 AO |
12134 | fi |
12135 | ||
81ecdfbb | 12136 | |
9a819804 AO |
12137 | done |
12138 | fi | |
12139 | ||
12140 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12141 | for ncn_progname in nm; do |
81ecdfbb RW |
12142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12143 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12144 | if test -x $with_build_time_tools/${ncn_progname}; then |
12145 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12147 | $as_echo "yes" >&6; } | |
2429c060 PB |
12148 | break |
12149 | else | |
81ecdfbb RW |
12150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12151 | $as_echo "no" >&6; } | |
2429c060 PB |
12152 | fi |
12153 | done | |
12154 | fi | |
12155 | ||
12156 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12157 | for ncn_progname in nm; do | |
12158 | if test -n "$ncn_target_tool_prefix"; then | |
12159 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12160 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12162 | $as_echo_n "checking for $ac_word... " >&6; } | |
12163 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12164 | $as_echo_n "(cached) " >&6 | |
859789af | 12165 | else |
55db4b87 PB |
12166 | if test -n "$NM_FOR_TARGET"; then |
12167 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12168 | else |
c6b750e1 DJ |
12169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12170 | for as_dir in $PATH | |
12171 | do | |
12172 | IFS=$as_save_IFS | |
12173 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12174 | for ac_exec_ext in '' $ac_executable_extensions; do |
12175 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12176 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12178 | break 2 |
12179 | fi | |
12180 | done | |
81ecdfbb RW |
12181 | done |
12182 | IFS=$as_save_IFS | |
c6b750e1 | 12183 | |
859789af AC |
12184 | fi |
12185 | fi | |
c6b750e1 | 12186 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 12187 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12189 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12190 | else |
81ecdfbb RW |
12191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12192 | $as_echo "no" >&6; } | |
859789af AC |
12193 | fi |
12194 | ||
81ecdfbb | 12195 | |
2429c060 PB |
12196 | fi |
12197 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12198 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12199 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12201 | $as_echo_n "checking for $ac_word... " >&6; } | |
12202 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12203 | $as_echo_n "(cached) " >&6 | |
859789af | 12204 | else |
05cbd757 PB |
12205 | if test -n "$NM_FOR_TARGET"; then |
12206 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12207 | else |
c6b750e1 DJ |
12208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12209 | for as_dir in $PATH | |
12210 | do | |
12211 | IFS=$as_save_IFS | |
12212 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12213 | for ac_exec_ext in '' $ac_executable_extensions; do |
12214 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12215 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12217 | break 2 |
12218 | fi | |
12219 | done | |
81ecdfbb RW |
12220 | done |
12221 | IFS=$as_save_IFS | |
c6b750e1 | 12222 | |
859789af AC |
12223 | fi |
12224 | fi | |
c6b750e1 | 12225 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 12226 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12228 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12229 | else |
81ecdfbb RW |
12230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12231 | $as_echo "no" >&6; } | |
859789af | 12232 | fi |
c6b750e1 | 12233 | |
81ecdfbb | 12234 | |
2429c060 PB |
12235 | fi |
12236 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12237 | done | |
12238 | fi | |
c6b750e1 | 12239 | |
05cbd757 PB |
12240 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12241 | set dummy nm | |
12242 | if test $build = $target ; then | |
12243 | NM_FOR_TARGET="$2" | |
859789af | 12244 | else |
05cbd757 | 12245 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 12246 | fi |
d3f5afc4 MS |
12247 | else |
12248 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
12249 | fi |
12250 | ||
3a35eeb3 PB |
12251 | else |
12252 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
12253 | fi |
12254 | ||
12255 | ||
12256 | ||
12257 | ||
6b91c541 AP |
12258 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12259 | if test -n "$with_build_time_tools"; then | |
12260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12261 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12262 | if test -x $with_build_time_tools/objcopy; then | |
12263 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12264 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12266 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12267 | else | |
12268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12269 | $as_echo "no" >&6; } | |
12270 | fi | |
12271 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12272 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12273 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12274 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12275 | fi | |
12276 | fi | |
12277 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12278 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12279 | set dummy objcopy; ac_word=$2 | |
12280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12281 | $as_echo_n "checking for $ac_word... " >&6; } | |
12282 | if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12283 | $as_echo_n "(cached) " >&6 | |
12284 | else | |
12285 | case $OBJCOPY_FOR_TARGET in | |
12286 | [\\/]* | ?:[\\/]*) | |
12287 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12288 | ;; | |
12289 | *) | |
12290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12291 | for as_dir in $gcc_cv_tool_dirs | |
12292 | do | |
12293 | IFS=$as_save_IFS | |
12294 | test -z "$as_dir" && as_dir=. | |
12295 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12296 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12297 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12298 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12299 | break 2 | |
12300 | fi | |
12301 | done | |
12302 | done | |
12303 | IFS=$as_save_IFS | |
12304 | ||
12305 | ;; | |
12306 | esac | |
12307 | fi | |
12308 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12309 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12311 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12312 | else | |
12313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12314 | $as_echo "no" >&6; } | |
12315 | fi | |
12316 | ||
12317 | ||
12318 | fi | |
12319 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12320 | ||
12321 | ||
12322 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12323 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12324 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12325 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12326 | fi | |
12327 | ||
12328 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12329 | for ncn_progname in objcopy; do | |
12330 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12331 | set dummy ${ncn_progname}; ac_word=$2 | |
12332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12333 | $as_echo_n "checking for $ac_word... " >&6; } | |
12334 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12335 | $as_echo_n "(cached) " >&6 | |
12336 | else | |
12337 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12338 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12339 | else | |
12340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12341 | for as_dir in $PATH | |
12342 | do | |
12343 | IFS=$as_save_IFS | |
12344 | test -z "$as_dir" && as_dir=. | |
12345 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12346 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12347 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12348 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12349 | break 2 | |
12350 | fi | |
12351 | done | |
12352 | done | |
12353 | IFS=$as_save_IFS | |
12354 | ||
12355 | fi | |
12356 | fi | |
12357 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12358 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12360 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12361 | else | |
12362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12363 | $as_echo "no" >&6; } | |
12364 | fi | |
12365 | ||
12366 | ||
12367 | done | |
12368 | fi | |
12369 | ||
12370 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12371 | for ncn_progname in objcopy; do | |
12372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12373 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12374 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12375 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12377 | $as_echo "yes" >&6; } | |
12378 | break | |
12379 | else | |
12380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12381 | $as_echo "no" >&6; } | |
12382 | fi | |
12383 | done | |
12384 | fi | |
12385 | ||
12386 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12387 | for ncn_progname in objcopy; do | |
12388 | if test -n "$ncn_target_tool_prefix"; then | |
12389 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12390 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12392 | $as_echo_n "checking for $ac_word... " >&6; } | |
12393 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12394 | $as_echo_n "(cached) " >&6 | |
12395 | else | |
12396 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12397 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12398 | else | |
12399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12400 | for as_dir in $PATH | |
12401 | do | |
12402 | IFS=$as_save_IFS | |
12403 | test -z "$as_dir" && as_dir=. | |
12404 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12405 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12406 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12407 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12408 | break 2 | |
12409 | fi | |
12410 | done | |
12411 | done | |
12412 | IFS=$as_save_IFS | |
12413 | ||
12414 | fi | |
12415 | fi | |
12416 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12417 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12419 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12420 | else | |
12421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12422 | $as_echo "no" >&6; } | |
12423 | fi | |
12424 | ||
12425 | ||
12426 | fi | |
12427 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12428 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12429 | set dummy ${ncn_progname}; ac_word=$2 | |
12430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12431 | $as_echo_n "checking for $ac_word... " >&6; } | |
12432 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12433 | $as_echo_n "(cached) " >&6 | |
12434 | else | |
12435 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12436 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12437 | else | |
12438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12439 | for as_dir in $PATH | |
12440 | do | |
12441 | IFS=$as_save_IFS | |
12442 | test -z "$as_dir" && as_dir=. | |
12443 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12444 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12445 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12446 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12447 | break 2 | |
12448 | fi | |
12449 | done | |
12450 | done | |
12451 | IFS=$as_save_IFS | |
12452 | ||
12453 | fi | |
12454 | fi | |
12455 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12456 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12458 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12459 | else | |
12460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12461 | $as_echo "no" >&6; } | |
12462 | fi | |
12463 | ||
12464 | ||
12465 | fi | |
12466 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12467 | done | |
12468 | fi | |
12469 | ||
12470 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12471 | set dummy objcopy | |
12472 | if test $build = $target ; then | |
12473 | OBJCOPY_FOR_TARGET="$2" | |
12474 | else | |
12475 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12476 | fi | |
12477 | else | |
12478 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12479 | fi | |
12480 | ||
12481 | else | |
12482 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12483 | fi | |
12484 | ||
12485 | ||
12486 | ||
12487 | ||
2429c060 PB |
12488 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12489 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12491 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12492 | if test -x $with_build_time_tools/objdump; then |
12493 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12494 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
12495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12496 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12497 | else |
81ecdfbb RW |
12498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12499 | $as_echo "no" >&6; } | |
3a35eeb3 | 12500 | fi |
2429c060 PB |
12501 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12502 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
12503 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12504 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
12505 | fi |
12506 | fi | |
c6b750e1 | 12507 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12508 | # Extract the first word of "objdump", so it can be a program name with args. |
12509 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
12510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12511 | $as_echo_n "checking for $ac_word... " >&6; } | |
12512 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12513 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12514 | else |
c6b750e1 DJ |
12515 | case $OBJDUMP_FOR_TARGET in |
12516 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12517 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12518 | ;; | |
2429c060 | 12519 | *) |
c6b750e1 DJ |
12520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12521 | for as_dir in $gcc_cv_tool_dirs | |
12522 | do | |
12523 | IFS=$as_save_IFS | |
12524 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12525 | for ac_exec_ext in '' $ac_executable_extensions; do |
12526 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12527 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12528 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12529 | break 2 |
12530 | fi | |
12531 | done | |
81ecdfbb RW |
12532 | done |
12533 | IFS=$as_save_IFS | |
c6b750e1 | 12534 | |
2429c060 PB |
12535 | ;; |
12536 | esac | |
12537 | fi | |
c6b750e1 | 12538 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 12539 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12541 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 12542 | else |
81ecdfbb RW |
12543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12544 | $as_echo "no" >&6; } | |
2429c060 PB |
12545 | fi |
12546 | ||
81ecdfbb | 12547 | |
2429c060 PB |
12548 | fi |
12549 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
12550 | |
12551 | ||
12552 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12553 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12554 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12555 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12556 | fi | |
12557 | ||
12558 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12559 | for ncn_progname in objdump; do | |
12560 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12561 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12563 | $as_echo_n "checking for $ac_word... " >&6; } | |
12564 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12565 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12566 | else |
12567 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12568 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12569 | else | |
12570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12571 | for as_dir in $PATH | |
12572 | do | |
12573 | IFS=$as_save_IFS | |
12574 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12575 | for ac_exec_ext in '' $ac_executable_extensions; do |
12576 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12577 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12578 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12579 | break 2 |
12580 | fi | |
12581 | done | |
81ecdfbb RW |
12582 | done |
12583 | IFS=$as_save_IFS | |
9a819804 AO |
12584 | |
12585 | fi | |
12586 | fi | |
12587 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12588 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
12589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12590 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 12591 | else |
81ecdfbb RW |
12592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12593 | $as_echo "no" >&6; } | |
9a819804 AO |
12594 | fi |
12595 | ||
81ecdfbb | 12596 | |
9a819804 AO |
12597 | done |
12598 | fi | |
12599 | ||
12600 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12601 | for ncn_progname in objdump; do |
81ecdfbb RW |
12602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12603 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12604 | if test -x $with_build_time_tools/${ncn_progname}; then |
12605 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12607 | $as_echo "yes" >&6; } | |
2429c060 PB |
12608 | break |
12609 | else | |
81ecdfbb RW |
12610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12611 | $as_echo "no" >&6; } | |
2429c060 PB |
12612 | fi |
12613 | done | |
12614 | fi | |
12615 | ||
12616 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12617 | for ncn_progname in objdump; do | |
12618 | if test -n "$ncn_target_tool_prefix"; then | |
12619 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12620 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12622 | $as_echo_n "checking for $ac_word... " >&6; } | |
12623 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12624 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12625 | else |
12626 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12627 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12628 | else | |
c6b750e1 DJ |
12629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12630 | for as_dir in $PATH | |
12631 | do | |
12632 | IFS=$as_save_IFS | |
12633 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12634 | for ac_exec_ext in '' $ac_executable_extensions; do |
12635 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12636 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12637 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12638 | break 2 |
12639 | fi | |
12640 | done | |
81ecdfbb RW |
12641 | done |
12642 | IFS=$as_save_IFS | |
c6b750e1 | 12643 | |
5ae72758 DJ |
12644 | fi |
12645 | fi | |
c6b750e1 | 12646 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12647 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12649 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12650 | else |
81ecdfbb RW |
12651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12652 | $as_echo "no" >&6; } | |
5ae72758 DJ |
12653 | fi |
12654 | ||
81ecdfbb | 12655 | |
2429c060 PB |
12656 | fi |
12657 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12658 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12659 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12661 | $as_echo_n "checking for $ac_word... " >&6; } | |
12662 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12663 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12664 | else |
12665 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12666 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12667 | else | |
c6b750e1 DJ |
12668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12669 | for as_dir in $PATH | |
12670 | do | |
12671 | IFS=$as_save_IFS | |
12672 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12673 | for ac_exec_ext in '' $ac_executable_extensions; do |
12674 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12675 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12676 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12677 | break 2 |
12678 | fi | |
12679 | done | |
81ecdfbb RW |
12680 | done |
12681 | IFS=$as_save_IFS | |
c6b750e1 | 12682 | |
5ae72758 DJ |
12683 | fi |
12684 | fi | |
c6b750e1 | 12685 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12686 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12688 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12689 | else |
81ecdfbb RW |
12690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12691 | $as_echo "no" >&6; } | |
5ae72758 | 12692 | fi |
c6b750e1 | 12693 | |
81ecdfbb | 12694 | |
2429c060 PB |
12695 | fi |
12696 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12697 | done | |
12698 | fi | |
c6b750e1 | 12699 | |
5ae72758 DJ |
12700 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12701 | set dummy objdump | |
12702 | if test $build = $target ; then | |
12703 | OBJDUMP_FOR_TARGET="$2" | |
12704 | else | |
12705 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12706 | fi | |
d3f5afc4 MS |
12707 | else |
12708 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
12709 | fi |
12710 | ||
3a35eeb3 PB |
12711 | else |
12712 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
12713 | fi |
12714 | ||
12715 | ||
12716 | ||
12717 | ||
12718 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12719 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12721 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12722 | if test -x $with_build_time_tools/ranlib; then |
12723 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12724 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
12725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12726 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 12727 | else |
81ecdfbb RW |
12728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12729 | $as_echo "no" >&6; } | |
3a35eeb3 | 12730 | fi |
2429c060 PB |
12731 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12732 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
12733 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12734 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
12735 | fi |
12736 | fi | |
c6b750e1 | 12737 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12738 | # Extract the first word of "ranlib", so it can be a program name with args. |
12739 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
12740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12741 | $as_echo_n "checking for $ac_word... " >&6; } | |
12742 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12743 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12744 | else |
c6b750e1 DJ |
12745 | case $RANLIB_FOR_TARGET in |
12746 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12747 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12748 | ;; | |
2429c060 | 12749 | *) |
c6b750e1 DJ |
12750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12751 | for as_dir in $gcc_cv_tool_dirs | |
12752 | do | |
12753 | IFS=$as_save_IFS | |
12754 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12755 | for ac_exec_ext in '' $ac_executable_extensions; do |
12756 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12757 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12759 | break 2 |
12760 | fi | |
12761 | done | |
81ecdfbb RW |
12762 | done |
12763 | IFS=$as_save_IFS | |
c6b750e1 | 12764 | |
2429c060 PB |
12765 | ;; |
12766 | esac | |
12767 | fi | |
c6b750e1 | 12768 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 12769 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12771 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 12772 | else |
81ecdfbb RW |
12773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12774 | $as_echo "no" >&6; } | |
2429c060 PB |
12775 | fi |
12776 | ||
81ecdfbb | 12777 | |
2429c060 PB |
12778 | fi |
12779 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
12780 | |
12781 | ||
12782 | if test -n "$RANLIB_FOR_TARGET"; then | |
12783 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12784 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12785 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12786 | fi | |
12787 | ||
12788 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12789 | for ncn_progname in ranlib; do | |
12790 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12791 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12793 | $as_echo_n "checking for $ac_word... " >&6; } | |
12794 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12795 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12796 | else |
12797 | if test -n "$RANLIB_FOR_TARGET"; then | |
12798 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12799 | else | |
12800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12801 | for as_dir in $PATH | |
12802 | do | |
12803 | IFS=$as_save_IFS | |
12804 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12805 | for ac_exec_ext in '' $ac_executable_extensions; do |
12806 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12807 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12808 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12809 | break 2 |
12810 | fi | |
12811 | done | |
81ecdfbb RW |
12812 | done |
12813 | IFS=$as_save_IFS | |
9a819804 AO |
12814 | |
12815 | fi | |
12816 | fi | |
12817 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12818 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
12819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12820 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 12821 | else |
81ecdfbb RW |
12822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12823 | $as_echo "no" >&6; } | |
9a819804 AO |
12824 | fi |
12825 | ||
81ecdfbb | 12826 | |
9a819804 AO |
12827 | done |
12828 | fi | |
12829 | ||
12830 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12831 | for ncn_progname in ranlib; do |
81ecdfbb RW |
12832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12833 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12834 | if test -x $with_build_time_tools/${ncn_progname}; then |
12835 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12837 | $as_echo "yes" >&6; } | |
2429c060 PB |
12838 | break |
12839 | else | |
81ecdfbb RW |
12840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12841 | $as_echo "no" >&6; } | |
2429c060 PB |
12842 | fi |
12843 | done | |
12844 | fi | |
12845 | ||
12846 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12847 | for ncn_progname in ranlib; do | |
12848 | if test -n "$ncn_target_tool_prefix"; then | |
12849 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12850 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12852 | $as_echo_n "checking for $ac_word... " >&6; } | |
12853 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12854 | $as_echo_n "(cached) " >&6 | |
859789af | 12855 | else |
55db4b87 PB |
12856 | if test -n "$RANLIB_FOR_TARGET"; then |
12857 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12858 | else |
c6b750e1 DJ |
12859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12860 | for as_dir in $PATH | |
12861 | do | |
12862 | IFS=$as_save_IFS | |
12863 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12864 | for ac_exec_ext in '' $ac_executable_extensions; do |
12865 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12866 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12867 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12868 | break 2 |
12869 | fi | |
12870 | done | |
81ecdfbb RW |
12871 | done |
12872 | IFS=$as_save_IFS | |
c6b750e1 | 12873 | |
859789af AC |
12874 | fi |
12875 | fi | |
c6b750e1 | 12876 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 12877 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12879 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12880 | else |
81ecdfbb RW |
12881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12882 | $as_echo "no" >&6; } | |
859789af AC |
12883 | fi |
12884 | ||
81ecdfbb | 12885 | |
2429c060 PB |
12886 | fi |
12887 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12888 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12889 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12891 | $as_echo_n "checking for $ac_word... " >&6; } | |
12892 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12893 | $as_echo_n "(cached) " >&6 | |
859789af | 12894 | else |
05cbd757 PB |
12895 | if test -n "$RANLIB_FOR_TARGET"; then |
12896 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12897 | else |
c6b750e1 DJ |
12898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12899 | for as_dir in $PATH | |
12900 | do | |
12901 | IFS=$as_save_IFS | |
12902 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12903 | for ac_exec_ext in '' $ac_executable_extensions; do |
12904 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12905 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12906 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12907 | break 2 |
12908 | fi | |
12909 | done | |
81ecdfbb RW |
12910 | done |
12911 | IFS=$as_save_IFS | |
c6b750e1 | 12912 | |
859789af AC |
12913 | fi |
12914 | fi | |
c6b750e1 | 12915 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 12916 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12918 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12919 | else |
81ecdfbb RW |
12920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12921 | $as_echo "no" >&6; } | |
859789af | 12922 | fi |
c6b750e1 | 12923 | |
81ecdfbb | 12924 | |
2429c060 PB |
12925 | fi |
12926 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12927 | done | |
12928 | fi | |
c6b750e1 | 12929 | |
2429c060 PB |
12930 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12931 | set dummy ranlib | |
12932 | if test $build = $target ; then | |
12933 | RANLIB_FOR_TARGET="$2" | |
12934 | else | |
12935 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 12936 | fi |
d3f5afc4 MS |
12937 | else |
12938 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 12939 | fi |
05cbd757 | 12940 | |
3a35eeb3 PB |
12941 | else |
12942 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
12943 | fi |
12944 | ||
2429c060 PB |
12945 | |
12946 | ||
12947 | ||
b121d7d4 DD |
12948 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
12949 | if test -n "$with_build_time_tools"; then | |
12950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
12951 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
12952 | if test -x $with_build_time_tools/readelf; then | |
12953 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
12954 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
12956 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
12957 | else | |
12958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12959 | $as_echo "no" >&6; } | |
12960 | fi | |
12961 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12962 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
12963 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
12964 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12965 | fi | |
12966 | fi | |
12967 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12968 | # Extract the first word of "readelf", so it can be a program name with args. | |
12969 | set dummy readelf; ac_word=$2 | |
12970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12971 | $as_echo_n "checking for $ac_word... " >&6; } | |
12972 | if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then : | |
12973 | $as_echo_n "(cached) " >&6 | |
12974 | else | |
12975 | case $READELF_FOR_TARGET in | |
12976 | [\\/]* | ?:[\\/]*) | |
12977 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
12978 | ;; | |
12979 | *) | |
12980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12981 | for as_dir in $gcc_cv_tool_dirs | |
12982 | do | |
12983 | IFS=$as_save_IFS | |
12984 | test -z "$as_dir" && as_dir=. | |
12985 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12986 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12987 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12988 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12989 | break 2 | |
12990 | fi | |
12991 | done | |
12992 | done | |
12993 | IFS=$as_save_IFS | |
12994 | ||
12995 | ;; | |
12996 | esac | |
12997 | fi | |
12998 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12999 | if test -n "$READELF_FOR_TARGET"; then | |
13000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13001 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13002 | else | |
13003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13004 | $as_echo "no" >&6; } | |
13005 | fi | |
13006 | ||
13007 | ||
13008 | fi | |
13009 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
13010 | ||
13011 | ||
13012 | if test -n "$READELF_FOR_TARGET"; then | |
13013 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13014 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13015 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13016 | fi | |
13017 | ||
13018 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13019 | for ncn_progname in readelf; do | |
13020 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13021 | set dummy ${ncn_progname}; ac_word=$2 | |
13022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13023 | $as_echo_n "checking for $ac_word... " >&6; } | |
13024 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13025 | $as_echo_n "(cached) " >&6 | |
13026 | else | |
13027 | if test -n "$READELF_FOR_TARGET"; then | |
13028 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13029 | else | |
13030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13031 | for as_dir in $PATH | |
13032 | do | |
13033 | IFS=$as_save_IFS | |
13034 | test -z "$as_dir" && as_dir=. | |
13035 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13036 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13037 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
13038 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13039 | break 2 | |
13040 | fi | |
13041 | done | |
13042 | done | |
13043 | IFS=$as_save_IFS | |
13044 | ||
13045 | fi | |
13046 | fi | |
13047 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13048 | if test -n "$READELF_FOR_TARGET"; then | |
13049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13050 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13051 | else | |
13052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13053 | $as_echo "no" >&6; } | |
13054 | fi | |
13055 | ||
13056 | ||
13057 | done | |
13058 | fi | |
13059 | ||
13060 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13061 | for ncn_progname in readelf; do | |
13062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13063 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13064 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13065 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13067 | $as_echo "yes" >&6; } | |
13068 | break | |
13069 | else | |
13070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13071 | $as_echo "no" >&6; } | |
13072 | fi | |
13073 | done | |
13074 | fi | |
13075 | ||
13076 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13077 | for ncn_progname in readelf; do | |
13078 | if test -n "$ncn_target_tool_prefix"; then | |
13079 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13080 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13082 | $as_echo_n "checking for $ac_word... " >&6; } | |
13083 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13084 | $as_echo_n "(cached) " >&6 | |
13085 | else | |
13086 | if test -n "$READELF_FOR_TARGET"; then | |
13087 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13088 | else | |
13089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13090 | for as_dir in $PATH | |
13091 | do | |
13092 | IFS=$as_save_IFS | |
13093 | test -z "$as_dir" && as_dir=. | |
13094 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13095 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13096 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
13097 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13098 | break 2 | |
13099 | fi | |
13100 | done | |
13101 | done | |
13102 | IFS=$as_save_IFS | |
13103 | ||
13104 | fi | |
13105 | fi | |
13106 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13107 | if test -n "$READELF_FOR_TARGET"; then | |
13108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13109 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13110 | else | |
13111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13112 | $as_echo "no" >&6; } | |
13113 | fi | |
13114 | ||
13115 | ||
13116 | fi | |
13117 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
13118 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13119 | set dummy ${ncn_progname}; ac_word=$2 | |
13120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13121 | $as_echo_n "checking for $ac_word... " >&6; } | |
13122 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13123 | $as_echo_n "(cached) " >&6 | |
13124 | else | |
13125 | if test -n "$READELF_FOR_TARGET"; then | |
13126 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13127 | else | |
13128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13129 | for as_dir in $PATH | |
13130 | do | |
13131 | IFS=$as_save_IFS | |
13132 | test -z "$as_dir" && as_dir=. | |
13133 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13134 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13135 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
13136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13137 | break 2 | |
13138 | fi | |
13139 | done | |
13140 | done | |
13141 | IFS=$as_save_IFS | |
13142 | ||
13143 | fi | |
13144 | fi | |
13145 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13146 | if test -n "$READELF_FOR_TARGET"; then | |
13147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13148 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13149 | else | |
13150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13151 | $as_echo "no" >&6; } | |
13152 | fi | |
13153 | ||
13154 | ||
13155 | fi | |
13156 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
13157 | done | |
13158 | fi | |
13159 | ||
13160 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
13161 | set dummy readelf | |
13162 | if test $build = $target ; then | |
13163 | READELF_FOR_TARGET="$2" | |
13164 | else | |
13165 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13166 | fi | |
13167 | else | |
13168 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13169 | fi | |
13170 | ||
13171 | else | |
13172 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13173 | fi | |
13174 | ||
13175 | ||
13176 | ||
13177 | ||
2429c060 PB |
13178 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13179 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13181 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13182 | if test -x $with_build_time_tools/strip; then |
13183 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13184 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
13185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13186 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 13187 | else |
81ecdfbb RW |
13188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13189 | $as_echo "no" >&6; } | |
3a35eeb3 | 13190 | fi |
2429c060 PB |
13191 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13192 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
13193 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13194 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
13195 | fi |
13196 | fi | |
c6b750e1 | 13197 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13198 | # Extract the first word of "strip", so it can be a program name with args. |
13199 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
13200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13201 | $as_echo_n "checking for $ac_word... " >&6; } | |
13202 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
13203 | $as_echo_n "(cached) " >&6 | |
2429c060 | 13204 | else |
c6b750e1 DJ |
13205 | case $STRIP_FOR_TARGET in |
13206 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13207 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13208 | ;; | |
2429c060 | 13209 | *) |
c6b750e1 DJ |
13210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13211 | for as_dir in $gcc_cv_tool_dirs | |
13212 | do | |
13213 | IFS=$as_save_IFS | |
13214 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13215 | for ac_exec_ext in '' $ac_executable_extensions; do |
13216 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13217 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13218 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13219 | break 2 |
13220 | fi | |
13221 | done | |
81ecdfbb RW |
13222 | done |
13223 | IFS=$as_save_IFS | |
c6b750e1 | 13224 | |
2429c060 PB |
13225 | ;; |
13226 | esac | |
13227 | fi | |
c6b750e1 | 13228 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 13229 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13231 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 13232 | else |
81ecdfbb RW |
13233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13234 | $as_echo "no" >&6; } | |
2429c060 PB |
13235 | fi |
13236 | ||
81ecdfbb | 13237 | |
2429c060 PB |
13238 | fi |
13239 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
13240 | |
13241 | ||
13242 | if test -n "$STRIP_FOR_TARGET"; then | |
13243 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13244 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13245 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13246 | fi | |
13247 | ||
13248 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13249 | for ncn_progname in strip; do | |
13250 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13251 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13253 | $as_echo_n "checking for $ac_word... " >&6; } | |
13254 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13255 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
13256 | else |
13257 | if test -n "$STRIP_FOR_TARGET"; then | |
13258 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13259 | else | |
13260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13261 | for as_dir in $PATH | |
13262 | do | |
13263 | IFS=$as_save_IFS | |
13264 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13265 | for ac_exec_ext in '' $ac_executable_extensions; do |
13266 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 13267 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13269 | break 2 |
13270 | fi | |
13271 | done | |
81ecdfbb RW |
13272 | done |
13273 | IFS=$as_save_IFS | |
9a819804 AO |
13274 | |
13275 | fi | |
13276 | fi | |
13277 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13278 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
13279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13280 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 13281 | else |
81ecdfbb RW |
13282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13283 | $as_echo "no" >&6; } | |
9a819804 AO |
13284 | fi |
13285 | ||
81ecdfbb | 13286 | |
9a819804 AO |
13287 | done |
13288 | fi | |
13289 | ||
13290 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13291 | for ncn_progname in strip; do |
81ecdfbb RW |
13292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13293 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13294 | if test -x $with_build_time_tools/${ncn_progname}; then |
13295 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13297 | $as_echo "yes" >&6; } | |
2429c060 PB |
13298 | break |
13299 | else | |
81ecdfbb RW |
13300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13301 | $as_echo "no" >&6; } | |
2429c060 PB |
13302 | fi |
13303 | done | |
13304 | fi | |
13305 | ||
13306 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13307 | for ncn_progname in strip; do | |
13308 | if test -n "$ncn_target_tool_prefix"; then | |
13309 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13310 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13312 | $as_echo_n "checking for $ac_word... " >&6; } | |
13313 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13314 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
13315 | else |
13316 | if test -n "$STRIP_FOR_TARGET"; then | |
13317 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
13318 | else |
13319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13320 | for as_dir in $PATH | |
13321 | do | |
13322 | IFS=$as_save_IFS | |
13323 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13324 | for ac_exec_ext in '' $ac_executable_extensions; do |
13325 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13326 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13327 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13328 | break 2 |
13329 | fi | |
13330 | done | |
81ecdfbb RW |
13331 | done |
13332 | IFS=$as_save_IFS | |
c6b750e1 | 13333 | |
7e0f7140 GK |
13334 | fi |
13335 | fi | |
c6b750e1 | 13336 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13337 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13339 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13340 | else |
81ecdfbb RW |
13341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13342 | $as_echo "no" >&6; } | |
7e0f7140 GK |
13343 | fi |
13344 | ||
81ecdfbb | 13345 | |
2429c060 PB |
13346 | fi |
13347 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13348 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13349 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13351 | $as_echo_n "checking for $ac_word... " >&6; } | |
13352 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13353 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
13354 | else |
13355 | if test -n "$STRIP_FOR_TARGET"; then | |
13356 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13357 | else | |
c6b750e1 DJ |
13358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13359 | for as_dir in $PATH | |
13360 | do | |
13361 | IFS=$as_save_IFS | |
13362 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13363 | for ac_exec_ext in '' $ac_executable_extensions; do |
13364 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13365 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13366 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13367 | break 2 |
13368 | fi | |
13369 | done | |
81ecdfbb RW |
13370 | done |
13371 | IFS=$as_save_IFS | |
c6b750e1 | 13372 | |
7e0f7140 GK |
13373 | fi |
13374 | fi | |
c6b750e1 | 13375 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13376 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13378 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13379 | else |
81ecdfbb RW |
13380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13381 | $as_echo "no" >&6; } | |
7e0f7140 | 13382 | fi |
c6b750e1 | 13383 | |
81ecdfbb | 13384 | |
2429c060 PB |
13385 | fi |
13386 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13387 | done | |
13388 | fi | |
c6b750e1 | 13389 | |
7e0f7140 GK |
13390 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13391 | set dummy strip | |
13392 | if test $build = $target ; then | |
13393 | STRIP_FOR_TARGET="$2" | |
13394 | else | |
13395 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13396 | fi | |
d3f5afc4 MS |
13397 | else |
13398 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
13399 | fi |
13400 | ||
3a35eeb3 PB |
13401 | else |
13402 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
13403 | fi |
13404 | ||
13405 | ||
13406 | ||
13407 | ||
13408 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13409 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13411 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13412 | if test -x $with_build_time_tools/windres; then |
13413 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13414 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
13415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13416 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 13417 | else |
81ecdfbb RW |
13418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13419 | $as_echo "no" >&6; } | |
3a35eeb3 | 13420 | fi |
2429c060 PB |
13421 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13422 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
13423 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13424 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
13425 | fi |
13426 | fi | |
c6b750e1 | 13427 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13428 | # Extract the first word of "windres", so it can be a program name with args. |
13429 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
13430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13431 | $as_echo_n "checking for $ac_word... " >&6; } | |
13432 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
13433 | $as_echo_n "(cached) " >&6 | |
2429c060 | 13434 | else |
c6b750e1 DJ |
13435 | case $WINDRES_FOR_TARGET in |
13436 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13437 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13438 | ;; | |
2429c060 | 13439 | *) |
c6b750e1 DJ |
13440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13441 | for as_dir in $gcc_cv_tool_dirs | |
13442 | do | |
13443 | IFS=$as_save_IFS | |
13444 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13445 | for ac_exec_ext in '' $ac_executable_extensions; do |
13446 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13447 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13448 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13449 | break 2 |
13450 | fi | |
13451 | done | |
81ecdfbb RW |
13452 | done |
13453 | IFS=$as_save_IFS | |
c6b750e1 | 13454 | |
2429c060 PB |
13455 | ;; |
13456 | esac | |
13457 | fi | |
c6b750e1 | 13458 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 13459 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13461 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 13462 | else |
81ecdfbb RW |
13463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13464 | $as_echo "no" >&6; } | |
2429c060 PB |
13465 | fi |
13466 | ||
81ecdfbb | 13467 | |
2429c060 PB |
13468 | fi |
13469 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
13470 | |
13471 | ||
13472 | if test -n "$WINDRES_FOR_TARGET"; then | |
13473 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13474 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13475 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13476 | fi | |
13477 | ||
13478 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13479 | for ncn_progname in windres; do | |
13480 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13481 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13483 | $as_echo_n "checking for $ac_word... " >&6; } | |
13484 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13485 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
13486 | else |
13487 | if test -n "$WINDRES_FOR_TARGET"; then | |
13488 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13489 | else | |
13490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13491 | for as_dir in $PATH | |
13492 | do | |
13493 | IFS=$as_save_IFS | |
13494 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13495 | for ac_exec_ext in '' $ac_executable_extensions; do |
13496 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 13497 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13498 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13499 | break 2 |
13500 | fi | |
13501 | done | |
81ecdfbb RW |
13502 | done |
13503 | IFS=$as_save_IFS | |
9a819804 AO |
13504 | |
13505 | fi | |
13506 | fi | |
13507 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13508 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
13509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13510 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 13511 | else |
81ecdfbb RW |
13512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13513 | $as_echo "no" >&6; } | |
9a819804 AO |
13514 | fi |
13515 | ||
81ecdfbb | 13516 | |
9a819804 AO |
13517 | done |
13518 | fi | |
13519 | ||
13520 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13521 | for ncn_progname in windres; do |
81ecdfbb RW |
13522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13523 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13524 | if test -x $with_build_time_tools/${ncn_progname}; then |
13525 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13527 | $as_echo "yes" >&6; } | |
2429c060 PB |
13528 | break |
13529 | else | |
81ecdfbb RW |
13530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13531 | $as_echo "no" >&6; } | |
2429c060 PB |
13532 | fi |
13533 | done | |
13534 | fi | |
13535 | ||
13536 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13537 | for ncn_progname in windres; do | |
13538 | if test -n "$ncn_target_tool_prefix"; then | |
13539 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13540 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13542 | $as_echo_n "checking for $ac_word... " >&6; } | |
13543 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13544 | $as_echo_n "(cached) " >&6 | |
859789af | 13545 | else |
55db4b87 PB |
13546 | if test -n "$WINDRES_FOR_TARGET"; then |
13547 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13548 | else |
c6b750e1 DJ |
13549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13550 | for as_dir in $PATH | |
13551 | do | |
13552 | IFS=$as_save_IFS | |
13553 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13554 | for ac_exec_ext in '' $ac_executable_extensions; do |
13555 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13556 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13557 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13558 | break 2 |
13559 | fi | |
13560 | done | |
81ecdfbb RW |
13561 | done |
13562 | IFS=$as_save_IFS | |
c6b750e1 | 13563 | |
859789af AC |
13564 | fi |
13565 | fi | |
c6b750e1 | 13566 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 13567 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13569 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13570 | else |
81ecdfbb RW |
13571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13572 | $as_echo "no" >&6; } | |
859789af AC |
13573 | fi |
13574 | ||
81ecdfbb | 13575 | |
2429c060 PB |
13576 | fi |
13577 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13578 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13579 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13581 | $as_echo_n "checking for $ac_word... " >&6; } | |
13582 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13583 | $as_echo_n "(cached) " >&6 | |
859789af | 13584 | else |
05cbd757 PB |
13585 | if test -n "$WINDRES_FOR_TARGET"; then |
13586 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13587 | else |
c6b750e1 DJ |
13588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13589 | for as_dir in $PATH | |
13590 | do | |
13591 | IFS=$as_save_IFS | |
13592 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13593 | for ac_exec_ext in '' $ac_executable_extensions; do |
13594 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13595 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13596 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13597 | break 2 |
13598 | fi | |
13599 | done | |
81ecdfbb RW |
13600 | done |
13601 | IFS=$as_save_IFS | |
c6b750e1 | 13602 | |
859789af AC |
13603 | fi |
13604 | fi | |
c6b750e1 | 13605 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 13606 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13608 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13609 | else |
81ecdfbb RW |
13610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13611 | $as_echo "no" >&6; } | |
859789af | 13612 | fi |
c6b750e1 | 13613 | |
81ecdfbb | 13614 | |
2429c060 PB |
13615 | fi |
13616 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13617 | done | |
13618 | fi | |
c6b750e1 | 13619 | |
05cbd757 PB |
13620 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13621 | set dummy windres | |
13622 | if test $build = $target ; then | |
13623 | WINDRES_FOR_TARGET="$2" | |
859789af | 13624 | else |
05cbd757 | 13625 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 13626 | fi |
d3f5afc4 MS |
13627 | else |
13628 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
13629 | fi |
13630 | ||
3a35eeb3 PB |
13631 | else |
13632 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
13633 | fi |
13634 | ||
852e5f18 | 13635 | |
0c24b341 NC |
13636 | |
13637 | ||
13638 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13639 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13641 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13642 | if test -x $with_build_time_tools/windmc; then |
13643 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13644 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
13645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13646 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13647 | else |
81ecdfbb RW |
13648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13649 | $as_echo "no" >&6; } | |
0c24b341 NC |
13650 | fi |
13651 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13652 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
13653 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
13654 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13655 | fi | |
13656 | fi | |
13657 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13658 | # Extract the first word of "windmc", so it can be a program name with args. | |
13659 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
13660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13661 | $as_echo_n "checking for $ac_word... " >&6; } | |
13662 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13663 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13664 | else |
13665 | case $WINDMC_FOR_TARGET in | |
13666 | [\\/]* | ?:[\\/]*) | |
13667 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13668 | ;; | |
13669 | *) | |
13670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13671 | for as_dir in $gcc_cv_tool_dirs | |
13672 | do | |
13673 | IFS=$as_save_IFS | |
13674 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13675 | for ac_exec_ext in '' $ac_executable_extensions; do |
13676 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13677 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13679 | break 2 |
13680 | fi | |
13681 | done | |
81ecdfbb RW |
13682 | done |
13683 | IFS=$as_save_IFS | |
0c24b341 NC |
13684 | |
13685 | ;; | |
13686 | esac | |
13687 | fi | |
13688 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 13689 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
13690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13691 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13692 | else |
81ecdfbb RW |
13693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13694 | $as_echo "no" >&6; } | |
0c24b341 NC |
13695 | fi |
13696 | ||
81ecdfbb | 13697 | |
0c24b341 NC |
13698 | fi |
13699 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13700 | ||
13701 | ||
13702 | if test -n "$WINDMC_FOR_TARGET"; then | |
13703 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13704 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13705 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13706 | fi | |
13707 | ||
13708 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13709 | for ncn_progname in windmc; do | |
13710 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13711 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13713 | $as_echo_n "checking for $ac_word... " >&6; } | |
13714 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13715 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13716 | else |
13717 | if test -n "$WINDMC_FOR_TARGET"; then | |
13718 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13719 | else | |
13720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13721 | for as_dir in $PATH | |
13722 | do | |
13723 | IFS=$as_save_IFS | |
13724 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13725 | for ac_exec_ext in '' $ac_executable_extensions; do |
13726 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13727 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13729 | break 2 |
13730 | fi | |
13731 | done | |
81ecdfbb RW |
13732 | done |
13733 | IFS=$as_save_IFS | |
0c24b341 NC |
13734 | |
13735 | fi | |
13736 | fi | |
13737 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13738 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13740 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13741 | else |
81ecdfbb RW |
13742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13743 | $as_echo "no" >&6; } | |
0c24b341 NC |
13744 | fi |
13745 | ||
81ecdfbb | 13746 | |
0c24b341 NC |
13747 | done |
13748 | fi | |
13749 | ||
13750 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13751 | for ncn_progname in windmc; do | |
81ecdfbb RW |
13752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13753 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13754 | if test -x $with_build_time_tools/${ncn_progname}; then |
13755 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13757 | $as_echo "yes" >&6; } | |
0c24b341 NC |
13758 | break |
13759 | else | |
81ecdfbb RW |
13760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13761 | $as_echo "no" >&6; } | |
0c24b341 NC |
13762 | fi |
13763 | done | |
13764 | fi | |
13765 | ||
13766 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13767 | for ncn_progname in windmc; do | |
13768 | if test -n "$ncn_target_tool_prefix"; then | |
13769 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13770 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13772 | $as_echo_n "checking for $ac_word... " >&6; } | |
13773 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13774 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13775 | else |
13776 | if test -n "$WINDMC_FOR_TARGET"; then | |
13777 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13778 | else | |
13779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13780 | for as_dir in $PATH | |
13781 | do | |
13782 | IFS=$as_save_IFS | |
13783 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13784 | for ac_exec_ext in '' $ac_executable_extensions; do |
13785 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13786 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13788 | break 2 |
13789 | fi | |
13790 | done | |
81ecdfbb RW |
13791 | done |
13792 | IFS=$as_save_IFS | |
0c24b341 NC |
13793 | |
13794 | fi | |
13795 | fi | |
13796 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13797 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13799 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13800 | else |
81ecdfbb RW |
13801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13802 | $as_echo "no" >&6; } | |
0c24b341 NC |
13803 | fi |
13804 | ||
81ecdfbb | 13805 | |
0c24b341 NC |
13806 | fi |
13807 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13808 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13809 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13811 | $as_echo_n "checking for $ac_word... " >&6; } | |
13812 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13813 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13814 | else |
13815 | if test -n "$WINDMC_FOR_TARGET"; then | |
13816 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13817 | else | |
13818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13819 | for as_dir in $PATH | |
13820 | do | |
13821 | IFS=$as_save_IFS | |
13822 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13823 | for ac_exec_ext in '' $ac_executable_extensions; do |
13824 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13825 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13827 | break 2 |
13828 | fi | |
13829 | done | |
81ecdfbb RW |
13830 | done |
13831 | IFS=$as_save_IFS | |
0c24b341 NC |
13832 | |
13833 | fi | |
13834 | fi | |
13835 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13836 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13838 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13839 | else |
81ecdfbb RW |
13840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13841 | $as_echo "no" >&6; } | |
0c24b341 NC |
13842 | fi |
13843 | ||
81ecdfbb | 13844 | |
0c24b341 NC |
13845 | fi |
13846 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13847 | done | |
13848 | fi | |
13849 | ||
13850 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13851 | set dummy windmc | |
13852 | if test $build = $target ; then | |
13853 | WINDMC_FOR_TARGET="$2" | |
13854 | else | |
13855 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13856 | fi | |
13857 | else | |
13858 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
13859 | fi | |
13860 | ||
13861 | else | |
13862 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13863 | fi | |
13864 | ||
13865 | ||
be01d343 PB |
13866 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13867 | ||
81ecdfbb RW |
13868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13869 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 13870 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13871 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13872 | # We already found the complete path | |
b8025f34 | 13873 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13875 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13876 | else |
13877 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13879 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13880 | fi |
be01d343 PB |
13881 | else |
13882 | ok=yes | |
13883 | case " ${configdirs} " in | |
13884 | *" binutils "*) ;; | |
13885 | *) ok=no ;; | |
13886 | esac | |
c6b750e1 | 13887 | |
be01d343 PB |
13888 | if test $ok = yes; then |
13889 | # An in-tree tool is available and we can use it | |
13890 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
13891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13892 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13893 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13894 | # We already found the complete path | |
b8025f34 | 13895 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13897 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13898 | elif test "x$target" = "x$host"; then |
13899 | # We can use an host tool | |
13900 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
13901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13902 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13903 | else |
13904 | # We need a cross tool | |
81ecdfbb RW |
13905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13906 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13907 | fi |
13908 | fi | |
4b900473 | 13909 | |
81ecdfbb RW |
13910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13911 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 13912 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13913 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13914 | # We already found the complete path | |
b8025f34 | 13915 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13917 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13918 | else |
13919 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13921 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13922 | fi |
be01d343 PB |
13923 | else |
13924 | ok=yes | |
13925 | case " ${configdirs} " in | |
13926 | *" gas "*) ;; | |
13927 | *) ok=no ;; | |
13928 | esac | |
c6b750e1 | 13929 | |
be01d343 PB |
13930 | if test $ok = yes; then |
13931 | # An in-tree tool is available and we can use it | |
13932 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
13933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13934 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13935 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13936 | # We already found the complete path | |
b8025f34 | 13937 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13939 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13940 | elif test "x$target" = "x$host"; then |
13941 | # We can use an host tool | |
13942 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
13943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13944 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13945 | else |
13946 | # We need a cross tool | |
81ecdfbb RW |
13947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13948 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13949 | fi |
13950 | fi | |
4b900473 | 13951 | |
81ecdfbb RW |
13952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13953 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 13954 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13955 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13956 | # We already found the complete path | |
b8025f34 | 13957 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13959 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13960 | else |
13961 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13963 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13964 | fi |
be01d343 PB |
13965 | else |
13966 | ok=yes | |
13967 | case " ${configdirs} " in | |
13968 | *" gcc "*) ;; | |
13969 | *) ok=no ;; | |
13970 | esac | |
c6b750e1 | 13971 | |
be01d343 PB |
13972 | if test $ok = yes; then |
13973 | # An in-tree tool is available and we can use it | |
13974 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13976 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13977 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13978 | # We already found the complete path | |
b8025f34 | 13979 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13981 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13982 | elif test "x$target" = "x$host"; then |
13983 | # We can use an host tool | |
13984 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
13985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13986 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13987 | else |
13988 | # We need a cross tool | |
81ecdfbb RW |
13989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13990 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13991 | fi |
13992 | fi | |
4b900473 | 13993 | |
81ecdfbb RW |
13994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13995 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 13996 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13997 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13998 | # We already found the complete path | |
b8025f34 | 13999 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
14000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14001 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14002 | else |
14003 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14005 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14006 | fi |
be01d343 PB |
14007 | else |
14008 | ok=yes | |
14009 | case " ${configdirs} " in | |
14010 | *" gcc "*) ;; | |
14011 | *) ok=no ;; | |
14012 | esac | |
14013 | case ,${enable_languages}, in | |
14014 | *,c++,*) ;; | |
14015 | *) ok=no ;; | |
14016 | esac | |
14017 | if test $ok = yes; then | |
14018 | # An in-tree tool is available and we can use it | |
95e43135 | 14019 | 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' |
81ecdfbb RW |
14020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14021 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14022 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14023 | # We already found the complete path | |
b8025f34 | 14024 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
14025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14026 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14027 | elif test "x$target" = "x$host"; then |
14028 | # We can use an host tool | |
14029 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
14030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14031 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14032 | else |
14033 | # We need a cross tool | |
81ecdfbb RW |
14034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14035 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14036 | fi |
14037 | fi | |
4b900473 | 14038 | |
81ecdfbb RW |
14039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
14040 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 14041 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14042 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14043 | # We already found the complete path | |
b8025f34 | 14044 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
14045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14046 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14047 | else |
14048 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14050 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14051 | fi |
be01d343 PB |
14052 | else |
14053 | ok=yes | |
14054 | case " ${configdirs} " in | |
14055 | *" gcc "*) ;; | |
14056 | *) ok=no ;; | |
14057 | esac | |
14058 | case ,${enable_languages}, in | |
14059 | *,c++,*) ;; | |
14060 | *) ok=no ;; | |
14061 | esac | |
14062 | if test $ok = yes; then | |
14063 | # An in-tree tool is available and we can use it | |
95e43135 | 14064 | 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' |
81ecdfbb RW |
14065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14066 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14067 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14068 | # We already found the complete path | |
b8025f34 | 14069 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
14070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14071 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14072 | elif test "x$target" = "x$host"; then |
14073 | # We can use an host tool | |
14074 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
14075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14076 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14077 | else |
14078 | # We need a cross tool | |
81ecdfbb RW |
14079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14080 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14081 | fi |
14082 | fi | |
4b900473 | 14083 | |
81ecdfbb RW |
14084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
14085 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 14086 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14087 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14088 | # We already found the complete path | |
b8025f34 | 14089 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
14090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14091 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14092 | else |
14093 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14095 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14096 | fi |
be01d343 PB |
14097 | else |
14098 | ok=yes | |
14099 | case " ${configdirs} " in | |
14100 | *" binutils "*) ;; | |
14101 | *) ok=no ;; | |
14102 | esac | |
c6b750e1 | 14103 | |
be01d343 PB |
14104 | if test $ok = yes; then |
14105 | # An in-tree tool is available and we can use it | |
14106 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
14107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14108 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14109 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14110 | # We already found the complete path | |
b8025f34 | 14111 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
14112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14113 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14114 | elif test "x$target" = "x$host"; then |
14115 | # We can use an host tool | |
14116 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
14117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14118 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14119 | else |
14120 | # We need a cross tool | |
81ecdfbb RW |
14121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14122 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14123 | fi |
14124 | fi | |
4b900473 | 14125 | |
81ecdfbb RW |
14126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
14127 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 14128 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14129 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14130 | # We already found the complete path | |
b8025f34 | 14131 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
14132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14133 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14134 | else |
14135 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14137 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14138 | fi |
be01d343 PB |
14139 | else |
14140 | ok=yes | |
14141 | case " ${configdirs} " in | |
14142 | *" gcc "*) ;; | |
14143 | *) ok=no ;; | |
14144 | esac | |
c6b750e1 | 14145 | |
be01d343 PB |
14146 | if test $ok = yes; then |
14147 | # An in-tree tool is available and we can use it | |
14148 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14150 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14151 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14152 | # We already found the complete path | |
b8025f34 | 14153 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
14154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14155 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14156 | elif test "x$target" = "x$host"; then |
14157 | # We can use an host tool | |
14158 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
14159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14160 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14161 | else |
14162 | # We need a cross tool | |
81ecdfbb RW |
14163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14164 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14165 | fi |
14166 | fi | |
4b900473 | 14167 | |
81ecdfbb RW |
14168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
14169 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
be01d343 | 14170 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14171 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14172 | # We already found the complete path | |
b8025f34 | 14173 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
14174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14175 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14176 | else |
14177 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14179 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14180 | fi |
be01d343 PB |
14181 | else |
14182 | ok=yes | |
14183 | case " ${configdirs} " in | |
14184 | *" gcc "*) ;; | |
14185 | *) ok=no ;; | |
14186 | esac | |
14187 | case ,${enable_languages}, in | |
14188 | *,java,*) ;; | |
14189 | *) ok=no ;; | |
14190 | esac | |
14191 | if test $ok = yes; then | |
14192 | # An in-tree tool is available and we can use it | |
14193 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14195 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14196 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14197 | # We already found the complete path | |
b8025f34 | 14198 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
14199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14200 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14201 | elif test "x$target" = "x$host"; then |
14202 | # We can use an host tool | |
14203 | GCJ_FOR_TARGET='$(GCJ)' | |
81ecdfbb RW |
14204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14205 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14206 | else |
14207 | # We need a cross tool | |
81ecdfbb RW |
14208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14209 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14210 | fi |
14211 | fi | |
4b900473 | 14212 | |
81ecdfbb RW |
14213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14214 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 14215 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14216 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14217 | # We already found the complete path | |
b8025f34 | 14218 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14220 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14221 | else |
14222 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14224 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14225 | fi |
be01d343 PB |
14226 | else |
14227 | ok=yes | |
14228 | case " ${configdirs} " in | |
14229 | *" gcc "*) ;; | |
14230 | *) ok=no ;; | |
14231 | esac | |
14232 | case ,${enable_languages}, in | |
14233 | *,fortran,*) ;; | |
14234 | *) ok=no ;; | |
14235 | esac | |
14236 | if test $ok = yes; then | |
14237 | # An in-tree tool is available and we can use it | |
14238 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14240 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14241 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14242 | # We already found the complete path | |
b8025f34 | 14243 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14245 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14246 | elif test "x$target" = "x$host"; then |
14247 | # We can use an host tool | |
14248 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
14249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14250 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14251 | else |
14252 | # We need a cross tool | |
81ecdfbb RW |
14253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14254 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14255 | fi |
14256 | fi | |
4b900473 | 14257 | |
e552509b ILT |
14258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14259 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14260 | if test "x${build}" != "x${host}" ; then | |
14261 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14262 | # We already found the complete path | |
14263 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14265 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14266 | else | |
14267 | # Canadian cross, just use what we found | |
14268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14269 | $as_echo "pre-installed" >&6; } | |
14270 | fi | |
14271 | else | |
14272 | ok=yes | |
14273 | case " ${configdirs} " in | |
14274 | *" gcc "*) ;; | |
14275 | *) ok=no ;; | |
14276 | esac | |
14277 | case ,${enable_languages}, in | |
14278 | *,go,*) ;; | |
14279 | *) ok=no ;; | |
14280 | esac | |
14281 | if test $ok = yes; then | |
14282 | # An in-tree tool is available and we can use it | |
14283 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14285 | $as_echo "just compiled" >&6; } | |
14286 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14287 | # We already found the complete path | |
14288 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14290 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14291 | elif test "x$target" = "x$host"; then | |
14292 | # We can use an host tool | |
14293 | GOC_FOR_TARGET='$(GOC)' | |
14294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14295 | $as_echo "host tool" >&6; } | |
14296 | else | |
14297 | # We need a cross tool | |
14298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14299 | $as_echo "pre-installed" >&6; } | |
14300 | fi | |
14301 | fi | |
14302 | ||
81ecdfbb RW |
14303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14304 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 14305 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14306 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14307 | # We already found the complete path | |
b8025f34 | 14308 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14310 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14311 | else |
14312 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14314 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14315 | fi |
be01d343 PB |
14316 | else |
14317 | ok=yes | |
14318 | case " ${configdirs} " in | |
14319 | *" ld "*) ;; | |
14320 | *) ok=no ;; | |
14321 | esac | |
c6b750e1 | 14322 | |
be01d343 PB |
14323 | if test $ok = yes; then |
14324 | # An in-tree tool is available and we can use it | |
14325 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
14326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14327 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14328 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14329 | # We already found the complete path | |
b8025f34 | 14330 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14332 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14333 | elif test "x$target" = "x$host"; then |
14334 | # We can use an host tool | |
14335 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
14336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14337 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14338 | else |
14339 | # We need a cross tool | |
81ecdfbb RW |
14340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14341 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14342 | fi |
14343 | fi | |
4b900473 | 14344 | |
81ecdfbb RW |
14345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14346 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 14347 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14348 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14349 | # We already found the complete path | |
b8025f34 | 14350 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14352 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14353 | else |
14354 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14356 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14357 | fi |
be01d343 | 14358 | else |
2429c060 PB |
14359 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14360 | # We already found the complete path | |
b8025f34 | 14361 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14363 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 14364 | elif test "x$target" = "x$host"; then |
be01d343 PB |
14365 | # We can use an host tool |
14366 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
14367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14368 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14369 | else |
14370 | # We need a cross tool | |
81ecdfbb RW |
14371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14372 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14373 | fi |
14374 | fi | |
4b900473 | 14375 | |
81ecdfbb RW |
14376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14377 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 14378 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14379 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14380 | # We already found the complete path | |
b8025f34 | 14381 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14383 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14384 | else |
14385 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14387 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14388 | fi |
be01d343 PB |
14389 | else |
14390 | ok=yes | |
14391 | case " ${configdirs} " in | |
14392 | *" binutils "*) ;; | |
14393 | *) ok=no ;; | |
14394 | esac | |
c6b750e1 | 14395 | |
be01d343 PB |
14396 | if test $ok = yes; then |
14397 | # An in-tree tool is available and we can use it | |
14398 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
14399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14400 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14401 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14402 | # We already found the complete path | |
b8025f34 | 14403 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14405 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14406 | elif test "x$target" = "x$host"; then |
14407 | # We can use an host tool | |
14408 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
14409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14410 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14411 | else |
14412 | # We need a cross tool | |
81ecdfbb RW |
14413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14414 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14415 | fi |
14416 | fi | |
4b900473 | 14417 | |
6b91c541 AP |
14418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14419 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14420 | if test "x${build}" != "x${host}" ; then | |
14421 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14422 | # We already found the complete path | |
14423 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14425 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14426 | else | |
14427 | # Canadian cross, just use what we found | |
14428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14429 | $as_echo "pre-installed" >&6; } | |
14430 | fi | |
14431 | else | |
14432 | ok=yes | |
14433 | case " ${configdirs} " in | |
14434 | *" binutils "*) ;; | |
14435 | *) ok=no ;; | |
14436 | esac | |
14437 | ||
14438 | if test $ok = yes; then | |
14439 | # An in-tree tool is available and we can use it | |
14440 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14442 | $as_echo "just compiled" >&6; } | |
14443 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14444 | # We already found the complete path | |
14445 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14447 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14448 | elif test "x$target" = "x$host"; then | |
14449 | # We can use an host tool | |
1b6c0831 | 14450 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
6b91c541 AP |
14451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14452 | $as_echo "host tool" >&6; } | |
14453 | else | |
14454 | # We need a cross tool | |
14455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14456 | $as_echo "pre-installed" >&6; } | |
14457 | fi | |
14458 | fi | |
14459 | ||
81ecdfbb RW |
14460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14461 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 14462 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14463 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14464 | # We already found the complete path | |
b8025f34 | 14465 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14467 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14468 | else |
14469 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14471 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14472 | fi |
be01d343 PB |
14473 | else |
14474 | ok=yes | |
14475 | case " ${configdirs} " in | |
14476 | *" binutils "*) ;; | |
14477 | *) ok=no ;; | |
14478 | esac | |
c6b750e1 | 14479 | |
be01d343 PB |
14480 | if test $ok = yes; then |
14481 | # An in-tree tool is available and we can use it | |
14482 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
14483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14484 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14485 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14486 | # We already found the complete path | |
b8025f34 | 14487 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14489 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14490 | elif test "x$target" = "x$host"; then |
14491 | # We can use an host tool | |
14492 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
14493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14494 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14495 | else |
14496 | # We need a cross tool | |
81ecdfbb RW |
14497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14498 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14499 | fi |
14500 | fi | |
4b900473 | 14501 | |
81ecdfbb RW |
14502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14503 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 14504 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14505 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14506 | # We already found the complete path | |
b8025f34 | 14507 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14509 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14510 | else |
14511 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14513 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14514 | fi |
be01d343 PB |
14515 | else |
14516 | ok=yes | |
14517 | case " ${configdirs} " in | |
14518 | *" binutils "*) ;; | |
14519 | *) ok=no ;; | |
14520 | esac | |
c6b750e1 | 14521 | |
be01d343 PB |
14522 | if test $ok = yes; then |
14523 | # An in-tree tool is available and we can use it | |
14524 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
14525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14526 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14527 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14528 | # We already found the complete path | |
b8025f34 | 14529 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14531 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14532 | elif test "x$target" = "x$host"; then |
14533 | # We can use an host tool | |
14534 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
14535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14536 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14537 | else |
14538 | # We need a cross tool | |
81ecdfbb RW |
14539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14540 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14541 | fi |
14542 | fi | |
4b900473 | 14543 | |
b121d7d4 DD |
14544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14545 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14546 | if test "x${build}" != "x${host}" ; then | |
14547 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14548 | # We already found the complete path | |
14549 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14551 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14552 | else | |
14553 | # Canadian cross, just use what we found | |
14554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14555 | $as_echo "pre-installed" >&6; } | |
14556 | fi | |
14557 | else | |
14558 | ok=yes | |
14559 | case " ${configdirs} " in | |
14560 | *" binutils "*) ;; | |
14561 | *) ok=no ;; | |
14562 | esac | |
14563 | ||
14564 | if test $ok = yes; then | |
14565 | # An in-tree tool is available and we can use it | |
14566 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14568 | $as_echo "just compiled" >&6; } | |
14569 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14570 | # We already found the complete path | |
14571 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14573 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14574 | elif test "x$target" = "x$host"; then | |
14575 | # We can use an host tool | |
14576 | READELF_FOR_TARGET='$(READELF)' | |
14577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14578 | $as_echo "host tool" >&6; } | |
14579 | else | |
14580 | # We need a cross tool | |
14581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14582 | $as_echo "pre-installed" >&6; } | |
14583 | fi | |
14584 | fi | |
14585 | ||
81ecdfbb RW |
14586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14587 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 14588 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14589 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14590 | # We already found the complete path | |
b8025f34 | 14591 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14593 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14594 | else |
14595 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14597 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14598 | fi |
be01d343 PB |
14599 | else |
14600 | ok=yes | |
14601 | case " ${configdirs} " in | |
14602 | *" binutils "*) ;; | |
14603 | *) ok=no ;; | |
14604 | esac | |
c6b750e1 | 14605 | |
be01d343 PB |
14606 | if test $ok = yes; then |
14607 | # An in-tree tool is available and we can use it | |
9b980aa1 | 14608 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
14609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14610 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14611 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14612 | # We already found the complete path | |
b8025f34 | 14613 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14615 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14616 | elif test "x$target" = "x$host"; then |
14617 | # We can use an host tool | |
14618 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
14619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14620 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14621 | else |
14622 | # We need a cross tool | |
81ecdfbb RW |
14623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14624 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14625 | fi |
14626 | fi | |
4b900473 | 14627 | |
81ecdfbb RW |
14628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14629 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 14630 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14631 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14632 | # We already found the complete path | |
b8025f34 | 14633 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14635 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14636 | else |
14637 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14639 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14640 | fi |
be01d343 PB |
14641 | else |
14642 | ok=yes | |
14643 | case " ${configdirs} " in | |
14644 | *" binutils "*) ;; | |
14645 | *) ok=no ;; | |
14646 | esac | |
c6b750e1 | 14647 | |
be01d343 PB |
14648 | if test $ok = yes; then |
14649 | # An in-tree tool is available and we can use it | |
14650 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
14651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14652 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14653 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14654 | # We already found the complete path | |
b8025f34 | 14655 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14657 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14658 | elif test "x$target" = "x$host"; then |
14659 | # We can use an host tool | |
14660 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
14661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14662 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14663 | else |
14664 | # We need a cross tool | |
81ecdfbb RW |
14665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14666 | $as_echo "pre-installed" >&6; } | |
be01d343 | 14667 | fi |
a0da8069 | 14668 | fi |
54752a6b | 14669 | |
81ecdfbb RW |
14670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14671 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
14672 | if test "x${build}" != "x${host}" ; then |
14673 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14674 | # We already found the complete path | |
14675 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14677 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14678 | else |
14679 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14681 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14682 | fi |
14683 | else | |
14684 | ok=yes | |
14685 | case " ${configdirs} " in | |
14686 | *" binutils "*) ;; | |
14687 | *) ok=no ;; | |
14688 | esac | |
14689 | ||
14690 | if test $ok = yes; then | |
14691 | # An in-tree tool is available and we can use it | |
14692 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
14693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14694 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
14695 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14696 | # We already found the complete path | |
14697 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14699 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14700 | elif test "x$target" = "x$host"; then |
14701 | # We can use an host tool | |
14702 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
14703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14704 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
14705 | else |
14706 | # We need a cross tool | |
81ecdfbb RW |
14707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14708 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14709 | fi |
14710 | fi | |
14711 | ||
54752a6b NN |
14712 | |
14713 | ||
be01d343 | 14714 | |
4b900473 | 14715 | |
a0da8069 NN |
14716 | # Certain tools may need extra flags. |
14717 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14718 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14719 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14720 | ||
be01d343 PB |
14721 | # When building target libraries, except in a Canadian cross, we use |
14722 | # the same toolchain as the compiler we just built. | |
14723 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14724 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14725 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14726 | if test $host = $build; then | |
14727 | case " $configdirs " in | |
14728 | *" gcc "*) | |
14729 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14730 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14731 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14732 | ;; | |
14733 | esac | |
14734 | fi | |
14735 | ||
14736 | ||
14737 | ||
14738 | ||
14739 | ||
81ecdfbb RW |
14740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14741 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14742 | # Check whether --enable-maintainer-mode was given. | |
14743 | if test "${enable_maintainer_mode+set}" = set; then : | |
14744 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
14745 | else |
14746 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
14747 | fi |
14748 | ||
14749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14750 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
14751 | |
14752 | ||
14753 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14754 | MAINTAINER_MODE_TRUE= | |
14755 | MAINTAINER_MODE_FALSE='#' | |
14756 | else | |
14757 | MAINTAINER_MODE_TRUE='#' | |
14758 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 14759 | fi |
3d5e36ae AO |
14760 | MAINT=$MAINTAINER_MODE_TRUE |
14761 | ||
1d39f329 NN |
14762 | # --------------------- |
14763 | # GCC bootstrap support | |
14764 | # --------------------- | |
14765 | ||
14766 | # Stage specific cflags for build. | |
14767 | stage1_cflags="-g" | |
14768 | case $build in | |
14769 | vax-*-*) | |
14770 | case ${GCC} in | |
14771 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14772 | *) stage1_cflags="-g -J" ;; | |
14773 | esac ;; | |
1d39f329 NN |
14774 | esac |
14775 | ||
1d89b610 | 14776 | |
1d39f329 | 14777 | |
8a0d8a5c | 14778 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
14779 | # Check whether --enable-stage1-checking was given. |
14780 | if test "${enable_stage1_checking+set}" = set; then : | |
14781 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 14782 | else |
5566c1fa | 14783 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
2abc4e65 | 14784 | stage1_checking=--enable-checking=yes,types |
8a0d8a5c | 14785 | else |
5566c1fa | 14786 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 14787 | fi |
81ecdfbb | 14788 | fi |
8a0d8a5c PB |
14789 | |
14790 | ||
c6b750e1 | 14791 | |
81ecdfbb RW |
14792 | # Enable -Werror in bootstrap stage2 and later. |
14793 | # Check whether --enable-werror was given. | |
14794 | if test "${enable_werror+set}" = set; then : | |
14795 | enableval=$enable_werror; | |
1d39f329 | 14796 | else |
a0323144 | 14797 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
1d39f329 | 14798 | enable_werror=yes |
79fcd0ec PB |
14799 | else |
14800 | enable_werror=no | |
14801 | fi | |
81ecdfbb RW |
14802 | fi |
14803 | ||
1a6f2dc7 NN |
14804 | case ${enable_werror} in |
14805 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14806 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
14807 | esac |
14808 | ||
14809 | ||
82033c9b JBG |
14810 | # Enable --enable-host-shared. |
14811 | # Check whether --enable-host-shared was given. | |
14812 | if test "${enable_host_shared+set}" = set; then : | |
14813 | enableval=$enable_host_shared; host_shared=$enableval | |
14814 | else | |
14815 | host_shared=no | |
14816 | fi | |
14817 | ||
14818 | ||
14819 | ||
1b6c0831 L |
14820 | # PR jit/64780: Require the user to explicitly specify |
14821 | # --enable-host-shared if the jit is enabled, hinting | |
14822 | # that they might want to do a separate configure/build of | |
14823 | # the jit, to avoid users from slowing down the rest of the | |
14824 | # compiler by enabling the jit. | |
14825 | if test ${host_shared} = "no" ; then | |
14826 | case "${enable_languages}" in | |
14827 | *jit*) | |
14828 | as_fn_error " | |
14829 | Enabling language \"jit\" requires --enable-host-shared. | |
14830 | ||
14831 | --enable-host-shared typically slows the rest of the compiler down by | |
14832 | a few %, so you must explicitly enable it. | |
14833 | ||
14834 | If you want to build both the jit and the regular compiler, it is often | |
14835 | best to do this via two separate configure/builds, in separate | |
14836 | directories, to avoid imposing the performance cost of | |
14837 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
14838 | ;; | |
14839 | *) | |
14840 | ;; | |
14841 | esac | |
14842 | fi | |
14843 | ||
e8a5fa9c RW |
14844 | # Specify what files to not compare during bootstrap. |
14845 | ||
14846 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14847 | case "$target" in | |
14848 | hppa*64*-*-hpux*) ;; | |
14849 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
1488e230 | 14850 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
e8a5fa9c RW |
14851 | esac |
14852 | ||
14853 | ||
81ecdfbb RW |
14854 | ac_config_files="$ac_config_files Makefile" |
14855 | ||
c6b750e1 | 14856 | cat >confcache <<\_ACEOF |
a0da8069 NN |
14857 | # This file is a shell script that caches the results of configure |
14858 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
14859 | # scripts and configure runs, see configure's option --config-cache. |
14860 | # It is not useful on other systems. If it contains results you don't | |
14861 | # want to keep, you may remove or edit it. | |
a0da8069 | 14862 | # |
c6b750e1 DJ |
14863 | # config.status only pays attention to the cache file if you give it |
14864 | # the --recheck option to rerun configure. | |
a0da8069 | 14865 | # |
c6b750e1 DJ |
14866 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14867 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14868 | # following values. | |
14869 | ||
14870 | _ACEOF | |
14871 | ||
a0da8069 NN |
14872 | # The following way of writing the cache mishandles newlines in values, |
14873 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14874 | # So, we kill variables containing newlines. |
a0da8069 NN |
14875 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14876 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14877 | ( |
14878 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14879 | eval ac_val=\$$ac_var | |
14880 | case $ac_val in #( | |
14881 | *${as_nl}*) | |
14882 | case $ac_var in #( | |
14883 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14884 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14885 | esac | |
14886 | case $ac_var in #( | |
14887 | _ | IFS | as_nl) ;; #( | |
14888 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14889 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14890 | esac ;; | |
14891 | esac | |
14892 | done | |
14893 | ||
c6b750e1 | 14894 | (set) 2>&1 | |
81ecdfbb RW |
14895 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14896 | *${as_nl}ac_space=\ *) | |
14897 | # `set' does not quote correctly, so add quotes: double-quote | |
14898 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
14899 | sed -n \ |
14900 | "s/'/'\\\\''/g; | |
14901 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14902 | ;; #( |
c6b750e1 DJ |
14903 | *) |
14904 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14905 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 14906 | ;; |
81ecdfbb RW |
14907 | esac | |
14908 | sort | |
14909 | ) | | |
c6b750e1 | 14910 | sed ' |
81ecdfbb | 14911 | /^ac_cv_env_/b end |
c6b750e1 | 14912 | t clear |
81ecdfbb | 14913 | :clear |
c6b750e1 DJ |
14914 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14915 | t end | |
81ecdfbb RW |
14916 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14917 | :end' >>confcache | |
14918 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14919 | if test -w "$cache_file"; then | |
14920 | test "x$cache_file" != "x/dev/null" && | |
14921 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14922 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
c6b750e1 | 14923 | cat confcache >$cache_file |
a0da8069 | 14924 | else |
81ecdfbb RW |
14925 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14926 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 14927 | fi |
852e5f18 | 14928 | fi |
a0da8069 | 14929 | rm -f confcache |
852e5f18 | 14930 | |
a0da8069 NN |
14931 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14932 | # Let make expand exec_prefix. | |
14933 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 14934 | |
a0da8069 NN |
14935 | # Transform confdefs.h into DEFS. |
14936 | # Protect against shell expansion while executing Makefile rules. | |
14937 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
14938 | # |
14939 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 14940 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 14941 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
14942 | ac_script=' |
14943 | :mline | |
14944 | /\\$/{ | |
14945 | N | |
14946 | s,\\\n,, | |
14947 | b mline | |
14948 | } | |
c6b750e1 | 14949 | t clear |
81ecdfbb RW |
14950 | :clear |
14951 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 14952 | t quote |
81ecdfbb | 14953 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 14954 | t quote |
81ecdfbb RW |
14955 | b any |
14956 | :quote | |
14957 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14958 | s/\[/\\&/g | |
14959 | s/\]/\\&/g | |
14960 | s/\$/$$/g | |
14961 | H | |
14962 | :any | |
14963 | ${ | |
14964 | g | |
14965 | s/^\n// | |
14966 | s/\n/ /g | |
14967 | p | |
14968 | } | |
14969 | ' | |
14970 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
14971 | |
14972 | ||
14973 | ac_libobjs= | |
14974 | ac_ltlibobjs= | |
14975 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14976 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14977 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14978 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14979 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14980 | # will be set to the directory where LIBOBJS objects are built. | |
14981 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14982 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
14983 | done |
14984 | LIBOBJS=$ac_libobjs | |
852e5f18 | 14985 | |
c6b750e1 | 14986 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 14987 | |
cac3d6c4 | 14988 | |
c6b750e1 DJ |
14989 | |
14990 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 14991 | ac_write_fail=0 |
c6b750e1 DJ |
14992 | ac_clean_files_save=$ac_clean_files |
14993 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14994 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14995 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14996 | as_write_fail=0 | |
14997 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
14998 | #! $SHELL |
14999 | # Generated by $as_me. | |
a0da8069 | 15000 | # Run this file to recreate the current configuration. |
a0da8069 | 15001 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 15002 | # configure, is in config.log if it exists. |
376a0e54 | 15003 | |
c6b750e1 DJ |
15004 | debug=false |
15005 | ac_cs_recheck=false | |
15006 | ac_cs_silent=false | |
c6b750e1 | 15007 | |
81ecdfbb RW |
15008 | SHELL=\${CONFIG_SHELL-$SHELL} |
15009 | export SHELL | |
15010 | _ASEOF | |
15011 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15012 | ## -------------------- ## | |
15013 | ## M4sh Initialization. ## | |
15014 | ## -------------------- ## | |
15015 | ||
15016 | # Be more Bourne compatible | |
15017 | DUALCASE=1; export DUALCASE # for MKS sh | |
15018 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
15019 | emulate sh |
15020 | NULLCMD=: | |
81ecdfbb | 15021 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
15022 | # is contrary to our usage. Disable this feature. |
15023 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
15024 | setopt NO_GLOB_SUBST |
15025 | else | |
15026 | case `(set -o) 2>/dev/null` in #( | |
15027 | *posix*) : | |
15028 | set -o posix ;; #( | |
15029 | *) : | |
15030 | ;; | |
15031 | esac | |
c6b750e1 | 15032 | fi |
c6b750e1 | 15033 | |
81ecdfbb RW |
15034 | |
15035 | as_nl=' | |
15036 | ' | |
15037 | export as_nl | |
15038 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15039 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15040 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15041 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15042 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15043 | # but without wasting forks for bash or zsh. | |
15044 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15045 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15046 | as_echo='print -r --' | |
15047 | as_echo_n='print -rn --' | |
15048 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15049 | as_echo='printf %s\n' | |
15050 | as_echo_n='printf %s' | |
15051 | else | |
15052 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15053 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15054 | as_echo_n='/usr/ucb/echo -n' | |
15055 | else | |
15056 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15057 | as_echo_n_body='eval | |
15058 | arg=$1; | |
15059 | case $arg in #( | |
15060 | *"$as_nl"*) | |
15061 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15062 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15063 | esac; | |
15064 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15065 | ' | |
15066 | export as_echo_n_body | |
15067 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15068 | fi | |
15069 | export as_echo_body | |
15070 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
15071 | fi |
15072 | ||
81ecdfbb RW |
15073 | # The user is always right. |
15074 | if test "${PATH_SEPARATOR+set}" != set; then | |
15075 | PATH_SEPARATOR=: | |
15076 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15077 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15078 | PATH_SEPARATOR=';' | |
15079 | } | |
15080 | fi | |
15081 | ||
15082 | ||
15083 | # IFS | |
15084 | # We need space, tab and new line, in precisely that order. Quoting is | |
15085 | # there to prevent editors from complaining about space-tab. | |
15086 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15087 | # splitting by setting IFS to empty value.) | |
15088 | IFS=" "" $as_nl" | |
15089 | ||
15090 | # Find who we are. Look in the path if we contain no directory separator. | |
15091 | case $0 in #(( | |
15092 | *[\\/]* ) as_myself=$0 ;; | |
15093 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15094 | for as_dir in $PATH | |
15095 | do | |
15096 | IFS=$as_save_IFS | |
15097 | test -z "$as_dir" && as_dir=. | |
15098 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15099 | done | |
15100 | IFS=$as_save_IFS | |
15101 | ||
15102 | ;; | |
15103 | esac | |
15104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15105 | # in which case we are not to be found in the path. | |
15106 | if test "x$as_myself" = x; then | |
15107 | as_myself=$0 | |
15108 | fi | |
15109 | if test ! -f "$as_myself"; then | |
15110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15111 | exit 1 | |
15112 | fi | |
c6b750e1 | 15113 | |
81ecdfbb RW |
15114 | # Unset variables that we do not need and which cause bugs (e.g. in |
15115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15116 | # suppresses any "Segmentation fault" message there. '((' could | |
15117 | # trigger a bug in pdksh 5.2.14. | |
15118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15119 | do eval test x\${$as_var+set} = xset \ | |
15120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15121 | done | |
c6b750e1 DJ |
15122 | PS1='$ ' |
15123 | PS2='> ' | |
15124 | PS4='+ ' | |
15125 | ||
15126 | # NLS nuisances. | |
81ecdfbb RW |
15127 | LC_ALL=C |
15128 | export LC_ALL | |
15129 | LANGUAGE=C | |
15130 | export LANGUAGE | |
15131 | ||
15132 | # CDPATH. | |
15133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15134 | ||
15135 | ||
15136 | # as_fn_error ERROR [LINENO LOG_FD] | |
15137 | # --------------------------------- | |
15138 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
15139 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
15140 | # script with status $?, using 1 if that was 0. | |
15141 | as_fn_error () | |
15142 | { | |
15143 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
15144 | if test "$3"; then | |
15145 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15146 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
c6b750e1 | 15147 | fi |
81ecdfbb RW |
15148 | $as_echo "$as_me: error: $1" >&2 |
15149 | as_fn_exit $as_status | |
15150 | } # as_fn_error | |
15151 | ||
15152 | ||
15153 | # as_fn_set_status STATUS | |
15154 | # ----------------------- | |
15155 | # Set $? to STATUS, without forking. | |
15156 | as_fn_set_status () | |
15157 | { | |
15158 | return $1 | |
15159 | } # as_fn_set_status | |
15160 | ||
15161 | # as_fn_exit STATUS | |
15162 | # ----------------- | |
15163 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15164 | as_fn_exit () | |
15165 | { | |
15166 | set +e | |
15167 | as_fn_set_status $1 | |
15168 | exit $1 | |
15169 | } # as_fn_exit | |
15170 | ||
15171 | # as_fn_unset VAR | |
15172 | # --------------- | |
15173 | # Portably unset VAR. | |
15174 | as_fn_unset () | |
15175 | { | |
15176 | { eval $1=; unset $1;} | |
15177 | } | |
15178 | as_unset=as_fn_unset | |
15179 | # as_fn_append VAR VALUE | |
15180 | # ---------------------- | |
15181 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15182 | # advantage of any shell optimizations that allow amortized linear growth over | |
15183 | # repeated appends, instead of the typical quadratic growth present in naive | |
15184 | # implementations. | |
15185 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15186 | eval 'as_fn_append () | |
15187 | { | |
15188 | eval $1+=\$2 | |
15189 | }' | |
15190 | else | |
15191 | as_fn_append () | |
15192 | { | |
15193 | eval $1=\$$1\$2 | |
15194 | } | |
15195 | fi # as_fn_append | |
15196 | ||
15197 | # as_fn_arith ARG... | |
15198 | # ------------------ | |
15199 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15200 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15201 | # must be portable across $(()) and expr. | |
15202 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15203 | eval 'as_fn_arith () | |
15204 | { | |
15205 | as_val=$(( $* )) | |
15206 | }' | |
15207 | else | |
15208 | as_fn_arith () | |
15209 | { | |
15210 | as_val=`expr "$@" || test $? -eq 1` | |
15211 | } | |
15212 | fi # as_fn_arith | |
15213 | ||
c6b750e1 | 15214 | |
81ecdfbb RW |
15215 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15216 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
15217 | as_expr=expr |
15218 | else | |
15219 | as_expr=false | |
15220 | fi | |
15221 | ||
81ecdfbb | 15222 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
15223 | as_basename=basename |
15224 | else | |
15225 | as_basename=false | |
15226 | fi | |
15227 | ||
81ecdfbb RW |
15228 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15229 | as_dirname=dirname | |
15230 | else | |
15231 | as_dirname=false | |
15232 | fi | |
c6b750e1 | 15233 | |
81ecdfbb | 15234 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
15235 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15236 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15237 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15238 | $as_echo X/"$0" | | |
15239 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15240 | s//\1/ | |
15241 | q | |
15242 | } | |
15243 | /^X\/\(\/\/\)$/{ | |
15244 | s//\1/ | |
15245 | q | |
15246 | } | |
15247 | /^X\/\(\/\).*/{ | |
15248 | s//\1/ | |
15249 | q | |
15250 | } | |
15251 | s/.*/./; q'` | |
c6b750e1 | 15252 | |
c6b750e1 DJ |
15253 | # Avoid depending upon Character Ranges. |
15254 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15255 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15256 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15257 | as_cr_digits='0123456789' | |
15258 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15259 | ||
81ecdfbb RW |
15260 | ECHO_C= ECHO_N= ECHO_T= |
15261 | case `echo -n x` in #((((( | |
15262 | -n*) | |
15263 | case `echo 'xy\c'` in | |
15264 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15265 | xy) ECHO_C='\c';; | |
15266 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15267 | ECHO_T=' ';; | |
15268 | esac;; | |
15269 | *) | |
15270 | ECHO_N='-n';; | |
c6b750e1 DJ |
15271 | esac |
15272 | ||
81ecdfbb RW |
15273 | rm -f conf$$ conf$$.exe conf$$.file |
15274 | if test -d conf$$.dir; then | |
15275 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 15276 | else |
81ecdfbb RW |
15277 | rm -f conf$$.dir |
15278 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 15279 | fi |
81ecdfbb RW |
15280 | if (echo >conf$$.file) 2>/dev/null; then |
15281 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 15282 | as_ln_s='ln -s' |
81ecdfbb RW |
15283 | # ... but there are two gotchas: |
15284 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15285 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15286 | # In both cases, we have to default to `cp -p'. | |
15287 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15288 | as_ln_s='cp -p' | |
15289 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15290 | as_ln_s=ln | |
15291 | else | |
15292 | as_ln_s='cp -p' | |
c6b750e1 | 15293 | fi |
c6b750e1 DJ |
15294 | else |
15295 | as_ln_s='cp -p' | |
15296 | fi | |
81ecdfbb RW |
15297 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15298 | rmdir conf$$.dir 2>/dev/null | |
15299 | ||
15300 | ||
15301 | # as_fn_mkdir_p | |
15302 | # ------------- | |
15303 | # Create "$as_dir" as a directory, including parents if necessary. | |
15304 | as_fn_mkdir_p () | |
15305 | { | |
15306 | ||
15307 | case $as_dir in #( | |
15308 | -*) as_dir=./$as_dir;; | |
15309 | esac | |
15310 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15311 | as_dirs= | |
15312 | while :; do | |
15313 | case $as_dir in #( | |
15314 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15315 | *) as_qdir=$as_dir;; | |
15316 | esac | |
15317 | as_dirs="'$as_qdir' $as_dirs" | |
15318 | as_dir=`$as_dirname -- "$as_dir" || | |
15319 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15320 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15321 | X"$as_dir" : 'X\(//\)$' \| \ | |
15322 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15323 | $as_echo X"$as_dir" | | |
15324 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15325 | s//\1/ | |
15326 | q | |
15327 | } | |
15328 | /^X\(\/\/\)[^/].*/{ | |
15329 | s//\1/ | |
15330 | q | |
15331 | } | |
15332 | /^X\(\/\/\)$/{ | |
15333 | s//\1/ | |
15334 | q | |
15335 | } | |
15336 | /^X\(\/\).*/{ | |
15337 | s//\1/ | |
15338 | q | |
15339 | } | |
15340 | s/.*/./; q'` | |
15341 | test -d "$as_dir" && break | |
15342 | done | |
15343 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15344 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
15345 | ||
c6b750e1 | 15346 | |
81ecdfbb | 15347 | } # as_fn_mkdir_p |
c6b750e1 | 15348 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 15349 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
15350 | else |
15351 | test -d ./-p && rmdir ./-p | |
15352 | as_mkdir_p=false | |
15353 | fi | |
15354 | ||
81ecdfbb RW |
15355 | if test -x / >/dev/null 2>&1; then |
15356 | as_test_x='test -x' | |
15357 | else | |
15358 | if ls -dL / >/dev/null 2>&1; then | |
15359 | as_ls_L_option=L | |
15360 | else | |
15361 | as_ls_L_option= | |
15362 | fi | |
15363 | as_test_x=' | |
15364 | eval sh -c '\'' | |
15365 | if test -d "$1"; then | |
15366 | test -d "$1/."; | |
15367 | else | |
15368 | case $1 in #( | |
15369 | -*)set "./$1";; | |
15370 | esac; | |
15371 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
15372 | ???[sx]*):;;*)false;;esac;fi | |
15373 | '\'' sh | |
15374 | ' | |
15375 | fi | |
15376 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
15377 | |
15378 | # Sed expression to map a string onto a valid CPP name. | |
15379 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15380 | ||
15381 | # Sed expression to map a string onto a valid variable name. | |
15382 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15383 | ||
15384 | ||
c6b750e1 | 15385 | exec 6>&1 |
81ecdfbb RW |
15386 | ## ----------------------------------- ## |
15387 | ## Main body of $CONFIG_STATUS script. ## | |
15388 | ## ----------------------------------- ## | |
15389 | _ASEOF | |
15390 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15391 | ||
15392 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15393 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 15394 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
15395 | # values after options handling. |
15396 | ac_log=" | |
c6b750e1 | 15397 | This file was extended by $as_me, which was |
81ecdfbb | 15398 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
15399 | |
15400 | CONFIG_FILES = $CONFIG_FILES | |
15401 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15402 | CONFIG_LINKS = $CONFIG_LINKS | |
15403 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15404 | $ $0 $@ | |
15405 | ||
81ecdfbb RW |
15406 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15407 | " | |
15408 | ||
c6b750e1 DJ |
15409 | _ACEOF |
15410 | ||
81ecdfbb RW |
15411 | case $ac_config_files in *" |
15412 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15413 | esac | |
c6b750e1 | 15414 | |
c6b750e1 | 15415 | |
c6b750e1 | 15416 | |
81ecdfbb RW |
15417 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15418 | # Files that config.status was made for. | |
15419 | config_files="$ac_config_files" | |
c6b750e1 | 15420 | |
81ecdfbb | 15421 | _ACEOF |
c6b750e1 | 15422 | |
81ecdfbb | 15423 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15424 | ac_cs_usage="\ |
81ecdfbb RW |
15425 | \`$as_me' instantiates files and other configuration actions |
15426 | from templates according to the current configuration. Unless the files | |
15427 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 15428 | |
81ecdfbb | 15429 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
15430 | |
15431 | -h, --help print this help, then exit | |
81ecdfbb RW |
15432 | -V, --version print version number and configuration settings, then exit |
15433 | -q, --quiet, --silent | |
15434 | do not print progress messages | |
c6b750e1 DJ |
15435 | -d, --debug don't remove temporary files |
15436 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
15437 | --file=FILE[:TEMPLATE] |
15438 | instantiate the configuration file FILE | |
c6b750e1 DJ |
15439 | |
15440 | Configuration files: | |
15441 | $config_files | |
15442 | ||
81ecdfbb | 15443 | Report bugs to the package provider." |
c6b750e1 | 15444 | |
81ecdfbb RW |
15445 | _ACEOF |
15446 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
c6b750e1 DJ |
15447 | ac_cs_version="\\ |
15448 | config.status | |
81ecdfbb RW |
15449 | configured by $0, generated by GNU Autoconf 2.64, |
15450 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
c6b750e1 | 15451 | |
81ecdfbb | 15452 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
15453 | This config.status script is free software; the Free Software Foundation |
15454 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
15455 | |
15456 | ac_pwd='$ac_pwd' | |
15457 | srcdir='$srcdir' | |
15458 | INSTALL='$INSTALL' | |
8e957354 | 15459 | AWK='$AWK' |
81ecdfbb | 15460 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
15461 | _ACEOF |
15462 | ||
81ecdfbb RW |
15463 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15464 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
15465 | ac_need_defaults=: |
15466 | while test $# != 0 | |
a0da8069 | 15467 | do |
c6b750e1 DJ |
15468 | case $1 in |
15469 | --*=*) | |
81ecdfbb RW |
15470 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15471 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
15472 | ac_shift=: |
15473 | ;; | |
81ecdfbb | 15474 | *) |
c6b750e1 DJ |
15475 | ac_option=$1 |
15476 | ac_optarg=$2 | |
15477 | ac_shift=shift | |
15478 | ;; | |
c6b750e1 DJ |
15479 | esac |
15480 | ||
15481 | case $ac_option in | |
15482 | # Handling of the options. | |
a0da8069 | 15483 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 15484 | ac_cs_recheck=: ;; |
81ecdfbb RW |
15485 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15486 | $as_echo "$ac_cs_version"; exit ;; | |
15487 | --debug | --debu | --deb | --de | --d | -d ) | |
c6b750e1 DJ |
15488 | debug=: ;; |
15489 | --file | --fil | --fi | --f ) | |
15490 | $ac_shift | |
81ecdfbb RW |
15491 | case $ac_optarg in |
15492 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15493 | esac | |
15494 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 15495 | ac_need_defaults=false;; |
81ecdfbb RW |
15496 | --he | --h | --help | --hel | -h ) |
15497 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
15498 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15499 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15500 | ac_cs_silent=: ;; | |
15501 | ||
15502 | # This is an error. | |
81ecdfbb RW |
15503 | -*) as_fn_error "unrecognized option: \`$1' |
15504 | Try \`$0 --help' for more information." ;; | |
c6b750e1 | 15505 | |
81ecdfbb RW |
15506 | *) as_fn_append ac_config_targets " $1" |
15507 | ac_need_defaults=false ;; | |
c6b750e1 | 15508 | |
376a0e54 | 15509 | esac |
c6b750e1 | 15510 | shift |
376a0e54 CM |
15511 | done |
15512 | ||
c6b750e1 | 15513 | ac_configure_extra_args= |
376a0e54 | 15514 | |
c6b750e1 DJ |
15515 | if $ac_cs_silent; then |
15516 | exec 6>/dev/null | |
15517 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15518 | fi | |
376a0e54 | 15519 | |
c6b750e1 | 15520 | _ACEOF |
81ecdfbb | 15521 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 15522 | if \$ac_cs_recheck; then |
81ecdfbb RW |
15523 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15524 | shift | |
15525 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15526 | CONFIG_SHELL='$SHELL' | |
15527 | export CONFIG_SHELL | |
15528 | exec "\$@" | |
c6b750e1 DJ |
15529 | fi |
15530 | ||
15531 | _ACEOF | |
81ecdfbb RW |
15532 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15533 | exec 5>>config.log | |
15534 | { | |
15535 | echo | |
15536 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15537 | ## Running $as_me. ## | |
15538 | _ASBOX | |
15539 | $as_echo "$ac_log" | |
15540 | } >&5 | |
c6b750e1 | 15541 | |
81ecdfbb RW |
15542 | _ACEOF |
15543 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
15544 | # |
15545 | # INIT-COMMANDS | |
15546 | # | |
15547 | extrasub_build="$extrasub_build" | |
15548 | extrasub_host="$extrasub_host" | |
15549 | extrasub_target="$extrasub_target" | |
15550 | ||
81ecdfbb | 15551 | _ACEOF |
c6b750e1 | 15552 | |
81ecdfbb | 15553 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15554 | |
81ecdfbb | 15555 | # Handling of arguments. |
c6b750e1 DJ |
15556 | for ac_config_target in $ac_config_targets |
15557 | do | |
81ecdfbb RW |
15558 | case $ac_config_target in |
15559 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15560 | ||
15561 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
c6b750e1 DJ |
15562 | esac |
15563 | done | |
15564 | ||
81ecdfbb | 15565 | |
c6b750e1 DJ |
15566 | # If the user did not use the arguments to specify the items to instantiate, |
15567 | # then the envvar interface is used. Set only those that are not. | |
15568 | # We use the long form for the default assignment because of an extremely | |
15569 | # bizarre bug on SunOS 4.1.3. | |
15570 | if $ac_need_defaults; then | |
15571 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15572 | fi | |
15573 | ||
15574 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 15575 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 15576 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
15577 | # Hook for its removal unless debugging. |
15578 | # Note that there is a small window in which the directory will not be cleaned: | |
15579 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
15580 | $debug || |
15581 | { | |
81ecdfbb RW |
15582 | tmp= |
15583 | trap 'exit_status=$? | |
15584 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15585 | ' 0 | |
15586 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 15587 | } |
c6b750e1 DJ |
15588 | # Create a (secure) tmp directory for tmp files. |
15589 | ||
15590 | { | |
81ecdfbb | 15591 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
c6b750e1 DJ |
15592 | test -n "$tmp" && test -d "$tmp" |
15593 | } || | |
15594 | { | |
81ecdfbb RW |
15595 | tmp=./conf$$-$RANDOM |
15596 | (umask 077 && mkdir "$tmp") | |
15597 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
15598 | ||
15599 | # Set up the scripts for CONFIG_FILES section. | |
15600 | # No need to generate them if there are no CONFIG_FILES. | |
15601 | # This happens for instance with `./config.status config.h'. | |
15602 | if test -n "$CONFIG_FILES"; then | |
15603 | ||
15604 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15605 | ac_cs_awk_getline=: | |
15606 | ac_cs_awk_pipe_init= | |
15607 | ac_cs_awk_read_file=' | |
15608 | while ((getline aline < (F[key])) > 0) | |
15609 | print(aline) | |
15610 | close(F[key])' | |
15611 | ac_cs_awk_pipe_fini= | |
15612 | else | |
15613 | ac_cs_awk_getline=false | |
15614 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15615 | ac_cs_awk_read_file=' | |
15616 | print "|#_!!_#|" | |
15617 | print "cat " F[key] " &&" | |
15618 | '$ac_cs_awk_pipe_init | |
15619 | # The final `:' finishes the AND list. | |
15620 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15621 | fi | |
15622 | ac_cr=`echo X | tr X '\015'` | |
15623 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15624 | # But we know of no other shell where ac_cr would be empty at this | |
15625 | # point, so we can use a bashism as a fallback. | |
15626 | if test "x$ac_cr" = x; then | |
15627 | eval ac_cr=\$\'\\r\' | |
15628 | fi | |
15629 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15630 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15631 | ac_cs_awk_cr='\r' | |
15632 | else | |
15633 | ac_cs_awk_cr=$ac_cr | |
15634 | fi | |
15635 | ||
15636 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15637 | _ACEOF | |
15638 | ||
15639 | # Create commands to substitute file output variables. | |
c6b750e1 | 15640 | { |
81ecdfbb RW |
15641 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
15642 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
15643 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
15644 | echo "_ACAWK" && | |
15645 | echo "_ACEOF" | |
15646 | } >conf$$files.sh && | |
15647 | . ./conf$$files.sh || | |
15648 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15649 | rm -f conf$$files.sh | |
c6b750e1 | 15650 | |
81ecdfbb RW |
15651 | { |
15652 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15653 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15654 | echo "_ACEOF" | |
15655 | } >conf$$subs.sh || | |
15656 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15657 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15658 | ac_delim='%!_!# ' | |
15659 | for ac_last_try in false false false false false :; do | |
15660 | . ./conf$$subs.sh || | |
15661 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15662 | ||
15663 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15664 | if test $ac_delim_n = $ac_delim_num; then | |
15665 | break | |
15666 | elif $ac_last_try; then | |
15667 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15668 | else | |
15669 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15670 | fi | |
15671 | done | |
15672 | rm -f conf$$subs.sh | |
15673 | ||
15674 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15675 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
c6b750e1 | 15676 | _ACEOF |
81ecdfbb RW |
15677 | sed -n ' |
15678 | h | |
15679 | s/^/S["/; s/!.*/"]=/ | |
15680 | p | |
15681 | g | |
15682 | s/^[^!]*!// | |
15683 | :repl | |
15684 | t repl | |
15685 | s/'"$ac_delim"'$// | |
15686 | t delim | |
15687 | :nl | |
15688 | h | |
15689 | s/\(.\{148\}\).*/\1/ | |
15690 | t more1 | |
15691 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15692 | p | |
15693 | n | |
15694 | b repl | |
15695 | :more1 | |
15696 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15697 | p | |
15698 | g | |
15699 | s/.\{148\}// | |
15700 | t nl | |
15701 | :delim | |
15702 | h | |
15703 | s/\(.\{148\}\).*/\1/ | |
15704 | t more2 | |
15705 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15706 | p | |
15707 | b | |
15708 | :more2 | |
15709 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15710 | p | |
15711 | g | |
15712 | s/.\{148\}// | |
15713 | t delim | |
15714 | ' <conf$$subs.awk | sed ' | |
15715 | /^[^""]/{ | |
15716 | N | |
15717 | s/\n// | |
15718 | } | |
15719 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15720 | rm -f conf$$subs.awk | |
15721 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15722 | _ACAWK | |
15723 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15724 | for (key in S) S_is_set[key] = 1 | |
15725 | FS = "\a" | |
15726 | \$ac_cs_awk_pipe_init | |
15727 | } | |
15728 | { | |
15729 | line = $ 0 | |
15730 | nfields = split(line, field, "@") | |
15731 | substed = 0 | |
15732 | len = length(field[1]) | |
15733 | for (i = 2; i < nfields; i++) { | |
15734 | key = field[i] | |
15735 | keylen = length(key) | |
15736 | if (S_is_set[key]) { | |
15737 | value = S[key] | |
15738 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15739 | len += length(value) + length(field[++i]) | |
15740 | substed = 1 | |
15741 | } else | |
15742 | len += 1 + keylen | |
15743 | } | |
15744 | if (nfields == 3 && !substed) { | |
15745 | key = field[2] | |
15746 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15747 | \$ac_cs_awk_read_file | |
15748 | next | |
15749 | } | |
15750 | } | |
15751 | print line | |
15752 | } | |
15753 | \$ac_cs_awk_pipe_fini | |
15754 | _ACAWK | |
15755 | _ACEOF | |
15756 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15757 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15758 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15759 | else | |
15760 | cat | |
15761 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15762 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15763 | _ACEOF | |
15764 | ||
15765 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15766 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15767 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15768 | # (actually we leave an empty line to preserve line numbers). | |
15769 | if test "x$srcdir" = x.; then | |
15770 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15771 | s/:*\$(srcdir):*/:/ | |
15772 | s/:*\${srcdir}:*/:/ | |
15773 | s/:*@srcdir@:*/:/ | |
15774 | s/^\([^=]*=[ ]*\):*/\1/ | |
15775 | s/:*$// | |
15776 | s/^[^=]*=[ ]*$// | |
15777 | }' | |
15778 | fi | |
c6b750e1 | 15779 | |
81ecdfbb RW |
15780 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15781 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 15782 | |
c6b750e1 | 15783 | |
81ecdfbb RW |
15784 | eval set X " :F $CONFIG_FILES " |
15785 | shift | |
15786 | for ac_tag | |
15787 | do | |
15788 | case $ac_tag in | |
15789 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15790 | esac | |
15791 | case $ac_mode$ac_tag in | |
15792 | :[FHL]*:*);; | |
15793 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15794 | :[FH]-) ac_tag=-:-;; | |
15795 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15796 | esac | |
15797 | ac_save_IFS=$IFS | |
15798 | IFS=: | |
15799 | set x $ac_tag | |
15800 | IFS=$ac_save_IFS | |
15801 | shift | |
15802 | ac_file=$1 | |
15803 | shift | |
252b5132 | 15804 | |
81ecdfbb RW |
15805 | case $ac_mode in |
15806 | :L) ac_source=$1;; | |
15807 | :[FH]) | |
15808 | ac_file_inputs= | |
15809 | for ac_f | |
15810 | do | |
15811 | case $ac_f in | |
15812 | -) ac_f="$tmp/stdin";; | |
15813 | *) # Look for the file first in the build tree, then in the source tree | |
15814 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15815 | # because $ac_f cannot contain `:'. | |
15816 | test -f "$ac_f" || | |
15817 | case $ac_f in | |
15818 | [\\/$]*) false;; | |
15819 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15820 | esac || | |
15821 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15822 | esac | |
15823 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15824 | as_fn_append ac_file_inputs " '$ac_f'" | |
15825 | done | |
c6b750e1 | 15826 | |
81ecdfbb RW |
15827 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15828 | # use $as_me), people would be surprised to read: | |
15829 | # /* config.h. Generated by config.status. */ | |
15830 | configure_input='Generated from '` | |
15831 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15832 | `' by configure.' | |
15833 | if test x"$ac_file" != x-; then | |
15834 | configure_input="$ac_file. $configure_input" | |
15835 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15836 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 15837 | fi |
81ecdfbb RW |
15838 | # Neutralize special characters interpreted by sed in replacement strings. |
15839 | case $configure_input in #( | |
15840 | *\&* | *\|* | *\\* ) | |
15841 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15842 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15843 | *) ac_sed_conf_input=$configure_input;; | |
15844 | esac | |
cac3d6c4 | 15845 | |
81ecdfbb RW |
15846 | case $ac_tag in |
15847 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15848 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15849 | esac | |
15850 | ;; | |
a0da8069 | 15851 | esac |
252b5132 | 15852 | |
81ecdfbb | 15853 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
15854 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15855 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15856 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15857 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15858 | $as_echo X"$ac_file" | | |
15859 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15860 | s//\1/ | |
15861 | q | |
15862 | } | |
15863 | /^X\(\/\/\)[^/].*/{ | |
15864 | s//\1/ | |
15865 | q | |
15866 | } | |
15867 | /^X\(\/\/\)$/{ | |
15868 | s//\1/ | |
15869 | q | |
15870 | } | |
15871 | /^X\(\/\).*/{ | |
15872 | s//\1/ | |
15873 | q | |
15874 | } | |
15875 | s/.*/./; q'` | |
15876 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 15877 | ac_builddir=. |
252b5132 | 15878 | |
81ecdfbb RW |
15879 | case "$ac_dir" in |
15880 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15881 | *) | |
15882 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15883 | # A ".." for each directory in $ac_dir_suffix. | |
15884 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15885 | case $ac_top_builddir_sub in | |
15886 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15887 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15888 | esac ;; | |
15889 | esac | |
15890 | ac_abs_top_builddir=$ac_pwd | |
15891 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15892 | # for backward compatibility: | |
15893 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
15894 | |
15895 | case $srcdir in | |
81ecdfbb | 15896 | .) # We are building in place. |
c6b750e1 | 15897 | ac_srcdir=. |
81ecdfbb RW |
15898 | ac_top_srcdir=$ac_top_builddir_sub |
15899 | ac_abs_top_srcdir=$ac_pwd ;; | |
15900 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 15901 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15902 | ac_top_srcdir=$srcdir |
15903 | ac_abs_top_srcdir=$srcdir ;; | |
15904 | *) # Relative name. | |
15905 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15906 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15907 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 15908 | esac |
81ecdfbb | 15909 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 15910 | |
252b5132 | 15911 | |
81ecdfbb RW |
15912 | case $ac_mode in |
15913 | :F) | |
15914 | # | |
15915 | # CONFIG_FILE | |
15916 | # | |
c6b750e1 DJ |
15917 | |
15918 | case $INSTALL in | |
15919 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 15920 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 15921 | esac |
81ecdfbb | 15922 | _ACEOF |
252b5132 | 15923 | |
81ecdfbb RW |
15924 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15925 | # If the template does not know about datarootdir, expand it. | |
15926 | # FIXME: This hack should be removed a few years after 2.60. | |
15927 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15928 | ac_sed_dataroot=' | |
15929 | /datarootdir/ { | |
15930 | p | |
15931 | q | |
15932 | } | |
15933 | /@datadir@/p | |
15934 | /@docdir@/p | |
15935 | /@infodir@/p | |
15936 | /@localedir@/p | |
15937 | /@mandir@/p' | |
15938 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15939 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15940 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15941 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15942 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 15943 | _ACEOF |
81ecdfbb RW |
15944 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15945 | ac_datarootdir_hack=' | |
15946 | s&@datadir@&$datadir&g | |
15947 | s&@docdir@&$docdir&g | |
15948 | s&@infodir@&$infodir&g | |
15949 | s&@localedir@&$localedir&g | |
15950 | s&@mandir@&$mandir&g | |
15951 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15952 | esac | |
15953 | _ACEOF | |
15954 | ||
15955 | # Neutralize VPATH when `$srcdir' = `.'. | |
15956 | # Shell code in configure.ac might set extrasub. | |
15957 | # FIXME: do we really want to maintain this feature? | |
15958 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15959 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
15960 | $extrasub |
15961 | _ACEOF | |
81ecdfbb | 15962 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
15963 | :t |
15964 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
15965 | s|@configure_input@|$ac_sed_conf_input|;t t |
15966 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15967 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15968 | s&@srcdir@&$ac_srcdir&;t t | |
15969 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15970 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15971 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15972 | s&@builddir@&$ac_builddir&;t t | |
15973 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15974 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15975 | s&@INSTALL@&$ac_INSTALL&;t t | |
15976 | $ac_datarootdir_hack | |
15977 | " | |
15978 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15979 | if $ac_cs_awk_getline; then | |
15980 | $AWK -f "$tmp/subs.awk" | |
15981 | else | |
15982 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15983 | fi >$tmp/out \ | |
15984 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15985 | ||
15986 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15987 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15988 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15989 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15990 | which seems to be undefined. Please make sure it is defined." >&5 | |
15991 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15992 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15993 | ||
15994 | rm -f "$tmp/stdin" | |
15995 | case $ac_file in | |
15996 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
15997 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15998 | esac \ | |
15999 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
16000 | ;; | |
c148b4cb | 16001 | |
c148b4cb | 16002 | |
c148b4cb | 16003 | |
81ecdfbb RW |
16004 | esac |
16005 | ||
06a51eac RW |
16006 | |
16007 | case $ac_file$ac_mode in | |
16008 | "Makefile":F) sed "$extrasub_build" Makefile | | |
16009 | sed "$extrasub_host" | | |
16010 | sed "$extrasub_target" > mf$$ | |
16011 | mv -f mf$$ Makefile ;; | |
16012 | ||
16013 | esac | |
81ecdfbb RW |
16014 | done # for ac_tag |
16015 | ||
16016 | ||
16017 | as_fn_exit 0 | |
c6b750e1 | 16018 | _ACEOF |
c6b750e1 DJ |
16019 | ac_clean_files=$ac_clean_files_save |
16020 | ||
81ecdfbb RW |
16021 | test $ac_write_fail = 0 || |
16022 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
16023 | ||
c6b750e1 DJ |
16024 | |
16025 | # configure is writing to config.log, and then calls config.status. | |
16026 | # config.status does its own redirection, appending to config.log. | |
16027 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16028 | # by configure, so config.status won't be able to write to it; its | |
16029 | # output is simply discarded. So we exec the FD to /dev/null, | |
16030 | # effectively closing config.log, so it can be properly (re)opened and | |
16031 | # appended to by config.status. When coming back to configure, we | |
16032 | # need to make the FD available again. | |
16033 | if test "$no_create" != yes; then | |
16034 | ac_cs_success=: | |
16035 | ac_config_status_args= | |
16036 | test "$silent" = yes && | |
16037 | ac_config_status_args="$ac_config_status_args --quiet" | |
16038 | exec 5>/dev/null | |
16039 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16040 | exec 5>>config.log | |
16041 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16042 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
16043 | $ac_cs_success || as_fn_exit $? |
16044 | fi | |
16045 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
16046 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16047 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 16048 | fi |
c148b4cb | 16049 |