]>
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 [email protected] 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 | |
ffdd6afc | 559 | POSTSTAGE1_CONFIGURE_FLAGS |
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 | |
574 | RANLIB_FOR_TARGET | |
575 | OBJDUMP_FOR_TARGET | |
576 | NM_FOR_TARGET | |
577 | LIPO_FOR_TARGET | |
578 | LD_FOR_TARGET | |
579 | DLLTOOL_FOR_TARGET | |
580 | AS_FOR_TARGET | |
581 | AR_FOR_TARGET | |
e552509b | 582 | GOC_FOR_TARGET |
81ecdfbb RW |
583 | GFORTRAN_FOR_TARGET |
584 | GCJ_FOR_TARGET | |
585 | GCC_FOR_TARGET | |
586 | CXX_FOR_TARGET | |
587 | CC_FOR_TARGET | |
588 | OBJDUMP | |
589 | OBJCOPY | |
590 | WINDMC | |
591 | WINDRES | |
592 | STRIP | |
593 | RANLIB | |
594 | NM | |
595 | LIPO | |
596 | LD | |
597 | DLLTOOL | |
598 | AS | |
599 | AR | |
600 | RUNTEST | |
601 | EXPECT | |
602 | MAKEINFO | |
603 | FLEX | |
604 | LEX | |
605 | M4 | |
606 | BISON | |
607 | YACC | |
81ecdfbb RW |
608 | WINDRES_FOR_BUILD |
609 | WINDMC_FOR_BUILD | |
610 | RANLIB_FOR_BUILD | |
611 | NM_FOR_BUILD | |
612 | LD_FOR_BUILD | |
613 | LDFLAGS_FOR_BUILD | |
e552509b | 614 | GOC_FOR_BUILD |
81ecdfbb RW |
615 | GFORTRAN_FOR_BUILD |
616 | GCJ_FOR_BUILD | |
617 | DLLTOOL_FOR_BUILD | |
618 | CXX_FOR_BUILD | |
619 | CXXFLAGS_FOR_BUILD | |
620 | CFLAGS_FOR_BUILD | |
621 | CC_FOR_BUILD | |
622 | AS_FOR_BUILD | |
623 | AR_FOR_BUILD | |
911e63d0 | 624 | target_configdirs |
81ecdfbb | 625 | configdirs |
81ecdfbb | 626 | build_configdirs |
81ecdfbb RW |
627 | INSTALL_GDB_TK |
628 | GDB_TK | |
629 | CONFIGURE_GDB_TK | |
630 | build_tooldir | |
631 | tooldir | |
632 | GCC_SHLIB_SUBDIR | |
633 | RPATH_ENVVAR | |
4074d5f2 RW |
634 | target_configargs |
635 | host_configargs | |
636 | build_configargs | |
96655cc4 | 637 | BUILD_CONFIG |
91c1f14c | 638 | LDFLAGS_FOR_TARGET |
81ecdfbb RW |
639 | CXXFLAGS_FOR_TARGET |
640 | CFLAGS_FOR_TARGET | |
641 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
642 | SYSROOT_CFLAGS_FOR_TARGET | |
643 | stage1_languages | |
700d40ca | 644 | extra_host_libiberty_configure_flags |
81ecdfbb RW |
645 | clooginc |
646 | clooglibs | |
647 | pplinc | |
648 | ppllibs | |
81ecdfbb | 649 | poststage1_ldflags |
143754cd | 650 | poststage1_libs |
81ecdfbb RW |
651 | stage1_libs |
652 | stage1_ldflags | |
653 | extra_mpc_mpfr_configure_flags | |
654 | extra_mpc_gmp_configure_flags | |
655 | extra_mpfr_configure_flags | |
656 | gmpinc | |
657 | gmplibs | |
658 | do_compare | |
659 | GNATMAKE | |
660 | GNATBIND | |
661 | ac_ct_CXX | |
662 | CXXFLAGS | |
663 | CXX | |
664 | OBJEXT | |
665 | EXEEXT | |
666 | ac_ct_CC | |
667 | CPPFLAGS | |
668 | LDFLAGS | |
669 | CFLAGS | |
670 | CC | |
ffdd6afc | 671 | EXTRA_CONFIGARGS_LIBJAVA |
81ecdfbb RW |
672 | target_subdir |
673 | host_subdir | |
674 | build_subdir | |
675 | build_libsubdir | |
8e957354 PB |
676 | AWK |
677 | SED | |
81ecdfbb RW |
678 | LN_S |
679 | LN | |
680 | INSTALL_DATA | |
681 | INSTALL_SCRIPT | |
682 | INSTALL_PROGRAM | |
683 | target_os | |
684 | target_vendor | |
685 | target_cpu | |
686 | target | |
687 | host_os | |
688 | host_vendor | |
689 | host_cpu | |
690 | host | |
691 | target_noncanonical | |
692 | host_noncanonical | |
693 | build_noncanonical | |
694 | build_os | |
695 | build_vendor | |
696 | build_cpu | |
697 | build | |
698 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
699 | target_alias | |
700 | host_alias | |
701 | build_alias | |
702 | LIBS | |
703 | ECHO_T | |
704 | ECHO_N | |
705 | ECHO_C | |
706 | DEFS | |
707 | mandir | |
708 | localedir | |
709 | libdir | |
710 | psdir | |
711 | pdfdir | |
712 | dvidir | |
713 | htmldir | |
714 | infodir | |
715 | docdir | |
716 | oldincludedir | |
717 | includedir | |
718 | localstatedir | |
719 | sharedstatedir | |
720 | sysconfdir | |
721 | datadir | |
722 | datarootdir | |
723 | libexecdir | |
724 | sbindir | |
725 | bindir | |
726 | program_transform_name | |
727 | prefix | |
728 | exec_prefix | |
729 | PACKAGE_URL | |
730 | PACKAGE_BUGREPORT | |
731 | PACKAGE_STRING | |
732 | PACKAGE_VERSION | |
733 | PACKAGE_TARNAME | |
734 | PACKAGE_NAME | |
735 | PATH_SEPARATOR | |
736 | SHELL' | |
737 | ac_subst_files='serialization_dependencies | |
738 | host_makefile_frag | |
739 | target_makefile_frag | |
740 | alphaieee_frag | |
741 | ospace_frag' | |
742 | ac_user_opts=' | |
743 | enable_option_checking | |
744 | with_build_libsubdir | |
745 | enable_gold | |
c7791212 | 746 | enable_ld |
89a1e9c3 PB |
747 | enable_libquadmath |
748 | enable_libquadmath_support | |
81ecdfbb RW |
749 | enable_libada |
750 | enable_libssp | |
ffdd6afc ILT |
751 | enable_static_libjava |
752 | enable_bootstrap | |
81ecdfbb | 753 | enable_build_with_cxx |
ffdd6afc | 754 | enable_build_poststage1_with_cxx |
81ecdfbb RW |
755 | with_mpc |
756 | with_mpc_include | |
757 | with_mpc_lib | |
758 | with_mpfr_dir | |
759 | with_mpfr | |
760 | with_mpfr_include | |
761 | with_mpfr_lib | |
762 | with_gmp_dir | |
763 | with_gmp | |
764 | with_gmp_include | |
765 | with_gmp_lib | |
766 | with_host_libstdcxx | |
767 | with_stage1_ldflags | |
768 | with_stage1_libs | |
81ecdfbb | 769 | with_boot_libs |
143754cd | 770 | with_boot_ldflags |
81ecdfbb RW |
771 | with_ppl |
772 | with_ppl_include | |
773 | with_ppl_lib | |
774 | enable_ppl_version_check | |
775 | with_cloog | |
776 | with_cloog_include | |
777 | with_cloog_lib | |
e552509b | 778 | enable_cloog_backend |
81ecdfbb | 779 | enable_cloog_version_check |
700d40ca | 780 | enable_lto |
81ecdfbb RW |
781 | enable_stage1_languages |
782 | enable_objc_gc | |
783 | with_build_sysroot | |
784 | with_debug_prefix_map | |
96655cc4 | 785 | with_build_config |
81ecdfbb RW |
786 | enable_serial_configure |
787 | with_build_time_tools | |
788 | enable_maintainer_mode | |
789 | enable_stage1_checking | |
790 | enable_werror | |
81ecdfbb RW |
791 | ' |
792 | ac_precious_vars='build_alias | |
793 | host_alias | |
794 | target_alias | |
795 | CC | |
796 | CFLAGS | |
797 | LDFLAGS | |
798 | LIBS | |
799 | CPPFLAGS | |
800 | CXX | |
801 | CXXFLAGS | |
802 | CCC | |
4074d5f2 RW |
803 | build_configargs |
804 | host_configargs | |
805 | target_configargs | |
81ecdfbb RW |
806 | AR |
807 | AS | |
808 | DLLTOOL | |
809 | LD | |
810 | LIPO | |
811 | NM | |
812 | RANLIB | |
813 | STRIP | |
814 | WINDRES | |
815 | WINDMC | |
816 | OBJCOPY | |
817 | OBJDUMP | |
818 | CC_FOR_TARGET | |
819 | CXX_FOR_TARGET | |
820 | GCC_FOR_TARGET | |
821 | GCJ_FOR_TARGET | |
822 | GFORTRAN_FOR_TARGET | |
e552509b | 823 | GOC_FOR_TARGET |
81ecdfbb RW |
824 | AR_FOR_TARGET |
825 | AS_FOR_TARGET | |
826 | DLLTOOL_FOR_TARGET | |
827 | LD_FOR_TARGET | |
828 | LIPO_FOR_TARGET | |
829 | NM_FOR_TARGET | |
830 | OBJDUMP_FOR_TARGET | |
831 | RANLIB_FOR_TARGET | |
832 | STRIP_FOR_TARGET | |
833 | WINDRES_FOR_TARGET | |
834 | WINDMC_FOR_TARGET' | |
835 | ||
a0da8069 NN |
836 | |
837 | # Initialize some variables set by options. | |
c6b750e1 DJ |
838 | ac_init_help= |
839 | ac_init_version=false | |
81ecdfbb RW |
840 | ac_unrecognized_opts= |
841 | ac_unrecognized_sep= | |
a0da8069 NN |
842 | # The variables have the same names as the options, with |
843 | # dashes changed to underlines. | |
c6b750e1 | 844 | cache_file=/dev/null |
a0da8069 | 845 | exec_prefix=NONE |
a0da8069 | 846 | no_create= |
a0da8069 NN |
847 | no_recursion= |
848 | prefix=NONE | |
849 | program_prefix=NONE | |
850 | program_suffix=NONE | |
851 | program_transform_name=s,x,x, | |
852 | silent= | |
853 | site= | |
854 | srcdir= | |
a0da8069 NN |
855 | verbose= |
856 | x_includes=NONE | |
857 | x_libraries=NONE | |
c6b750e1 DJ |
858 | |
859 | # Installation directory options. | |
860 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
861 | # and all the variables that are supposed to be based on exec_prefix | |
862 | # by default will actually change. | |
863 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 864 | # (The list follows the same order as the GNU Coding Standards.) |
a0da8069 NN |
865 | bindir='${exec_prefix}/bin' |
866 | sbindir='${exec_prefix}/sbin' | |
867 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
868 | datarootdir='${prefix}/share' |
869 | datadir='${datarootdir}' | |
a0da8069 NN |
870 | sysconfdir='${prefix}/etc' |
871 | sharedstatedir='${prefix}/com' | |
872 | localstatedir='${prefix}/var' | |
a0da8069 NN |
873 | includedir='${prefix}/include' |
874 | oldincludedir='/usr/include' | |
81ecdfbb RW |
875 | docdir='${datarootdir}/doc/${PACKAGE}' |
876 | infodir='${datarootdir}/info' | |
877 | htmldir='${docdir}' | |
878 | dvidir='${docdir}' | |
879 | pdfdir='${docdir}' | |
880 | psdir='${docdir}' | |
881 | libdir='${exec_prefix}/lib' | |
882 | localedir='${datarootdir}/locale' | |
883 | mandir='${datarootdir}/man' | |
252b5132 | 884 | |
a0da8069 | 885 | ac_prev= |
81ecdfbb | 886 | ac_dashdash= |
a0da8069 NN |
887 | for ac_option |
888 | do | |
a0da8069 NN |
889 | # If the previous option needs an argument, assign it. |
890 | if test -n "$ac_prev"; then | |
81ecdfbb | 891 | eval $ac_prev=\$ac_option |
a0da8069 NN |
892 | ac_prev= |
893 | continue | |
894 | fi | |
252b5132 | 895 | |
81ecdfbb RW |
896 | case $ac_option in |
897 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
898 | *) ac_optarg=yes ;; | |
899 | esac | |
a0da8069 NN |
900 | |
901 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
902 | ||
81ecdfbb RW |
903 | case $ac_dashdash$ac_option in |
904 | --) | |
905 | ac_dashdash=yes ;; | |
a0da8069 NN |
906 | |
907 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
908 | ac_prev=bindir ;; | |
909 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
c6b750e1 | 910 | bindir=$ac_optarg ;; |
a0da8069 NN |
911 | |
912 | -build | --build | --buil | --bui | --bu) | |
c6b750e1 | 913 | ac_prev=build_alias ;; |
a0da8069 | 914 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
c6b750e1 | 915 | build_alias=$ac_optarg ;; |
a0da8069 NN |
916 | |
917 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
918 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
919 | ac_prev=cache_file ;; | |
920 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
921 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
c6b750e1 DJ |
922 | cache_file=$ac_optarg ;; |
923 | ||
924 | --config-cache | -C) | |
925 | cache_file=config.cache ;; | |
a0da8069 | 926 | |
81ecdfbb | 927 | -datadir | --datadir | --datadi | --datad) |
a0da8069 | 928 | ac_prev=datadir ;; |
81ecdfbb | 929 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
c6b750e1 | 930 | datadir=$ac_optarg ;; |
a0da8069 | 931 | |
81ecdfbb RW |
932 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
933 | | --dataroo | --dataro | --datar) | |
934 | ac_prev=datarootdir ;; | |
935 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
936 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
937 | datarootdir=$ac_optarg ;; | |
938 | ||
a0da8069 | 939 | -disable-* | --disable-*) |
81ecdfbb | 940 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a0da8069 | 941 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
942 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
943 | as_fn_error "invalid feature name: $ac_useropt" | |
944 | ac_useropt_orig=$ac_useropt | |
945 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
946 | case $ac_user_opts in | |
947 | *" | |
948 | "enable_$ac_useropt" | |
949 | "*) ;; | |
950 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
951 | ac_unrecognized_sep=', ';; | |
952 | esac | |
953 | eval enable_$ac_useropt=no ;; | |
954 | ||
955 | -docdir | --docdir | --docdi | --doc | --do) | |
956 | ac_prev=docdir ;; | |
957 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
958 | docdir=$ac_optarg ;; | |
959 | ||
960 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
961 | ac_prev=dvidir ;; | |
962 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
963 | dvidir=$ac_optarg ;; | |
a0da8069 NN |
964 | |
965 | -enable-* | --enable-*) | |
81ecdfbb | 966 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a0da8069 | 967 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
968 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
969 | as_fn_error "invalid feature name: $ac_useropt" | |
970 | ac_useropt_orig=$ac_useropt | |
971 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
972 | case $ac_user_opts in | |
973 | *" | |
974 | "enable_$ac_useropt" | |
975 | "*) ;; | |
976 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
977 | ac_unrecognized_sep=', ';; | |
a0da8069 | 978 | esac |
81ecdfbb | 979 | eval enable_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
980 | |
981 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
982 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
983 | | --exec | --exe | --ex) | |
984 | ac_prev=exec_prefix ;; | |
985 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
986 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
987 | | --exec=* | --exe=* | --ex=*) | |
c6b750e1 | 988 | exec_prefix=$ac_optarg ;; |
a0da8069 NN |
989 | |
990 | -gas | --gas | --ga | --g) | |
991 | # Obsolete; use --with-gas. | |
992 | with_gas=yes ;; | |
993 | ||
c6b750e1 DJ |
994 | -help | --help | --hel | --he | -h) |
995 | ac_init_help=long ;; | |
996 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
997 | ac_init_help=recursive ;; | |
998 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
999 | ac_init_help=short ;; | |
a0da8069 NN |
1000 | |
1001 | -host | --host | --hos | --ho) | |
c6b750e1 | 1002 | ac_prev=host_alias ;; |
a0da8069 | 1003 | -host=* | --host=* | --hos=* | --ho=*) |
c6b750e1 | 1004 | host_alias=$ac_optarg ;; |
a0da8069 | 1005 | |
81ecdfbb RW |
1006 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1007 | ac_prev=htmldir ;; | |
1008 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1009 | | --ht=*) | |
1010 | htmldir=$ac_optarg ;; | |
1011 | ||
a0da8069 NN |
1012 | -includedir | --includedir | --includedi | --included | --include \ |
1013 | | --includ | --inclu | --incl | --inc) | |
1014 | ac_prev=includedir ;; | |
1015 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1016 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
c6b750e1 | 1017 | includedir=$ac_optarg ;; |
a0da8069 NN |
1018 | |
1019 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1020 | ac_prev=infodir ;; | |
1021 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
c6b750e1 | 1022 | infodir=$ac_optarg ;; |
a0da8069 NN |
1023 | |
1024 | -libdir | --libdir | --libdi | --libd) | |
1025 | ac_prev=libdir ;; | |
1026 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
c6b750e1 | 1027 | libdir=$ac_optarg ;; |
a0da8069 NN |
1028 | |
1029 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1030 | | --libexe | --libex | --libe) | |
1031 | ac_prev=libexecdir ;; | |
1032 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1033 | | --libexe=* | --libex=* | --libe=*) | |
c6b750e1 | 1034 | libexecdir=$ac_optarg ;; |
a0da8069 | 1035 | |
81ecdfbb RW |
1036 | -localedir | --localedir | --localedi | --localed | --locale) |
1037 | ac_prev=localedir ;; | |
1038 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1039 | localedir=$ac_optarg ;; | |
1040 | ||
a0da8069 | 1041 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1042 | | --localstate | --localstat | --localsta | --localst | --locals) |
a0da8069 NN |
1043 | ac_prev=localstatedir ;; |
1044 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1045 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
c6b750e1 | 1046 | localstatedir=$ac_optarg ;; |
a0da8069 NN |
1047 | |
1048 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1049 | ac_prev=mandir ;; | |
1050 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
c6b750e1 | 1051 | mandir=$ac_optarg ;; |
a0da8069 NN |
1052 | |
1053 | -nfp | --nfp | --nf) | |
1054 | # Obsolete; use --without-fp. | |
1055 | with_fp=no ;; | |
1056 | ||
1057 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c6b750e1 | 1058 | | --no-cr | --no-c | -n) |
a0da8069 NN |
1059 | no_create=yes ;; |
1060 | ||
1061 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1062 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1063 | no_recursion=yes ;; | |
1064 | ||
1065 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1066 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1067 | | --oldin | --oldi | --old | --ol | --o) | |
1068 | ac_prev=oldincludedir ;; | |
1069 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1070 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1071 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
c6b750e1 | 1072 | oldincludedir=$ac_optarg ;; |
a0da8069 NN |
1073 | |
1074 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1075 | ac_prev=prefix ;; | |
1076 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
c6b750e1 | 1077 | prefix=$ac_optarg ;; |
a0da8069 NN |
1078 | |
1079 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1080 | | --program-pre | --program-pr | --program-p) | |
1081 | ac_prev=program_prefix ;; | |
1082 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1083 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
c6b750e1 | 1084 | program_prefix=$ac_optarg ;; |
a0da8069 NN |
1085 | |
1086 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1087 | | --program-suf | --program-su | --program-s) | |
1088 | ac_prev=program_suffix ;; | |
1089 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1090 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
c6b750e1 | 1091 | program_suffix=$ac_optarg ;; |
a0da8069 NN |
1092 | |
1093 | -program-transform-name | --program-transform-name \ | |
1094 | | --program-transform-nam | --program-transform-na \ | |
1095 | | --program-transform-n | --program-transform- \ | |
1096 | | --program-transform | --program-transfor \ | |
1097 | | --program-transfo | --program-transf \ | |
1098 | | --program-trans | --program-tran \ | |
1099 | | --progr-tra | --program-tr | --program-t) | |
1100 | ac_prev=program_transform_name ;; | |
1101 | -program-transform-name=* | --program-transform-name=* \ | |
1102 | | --program-transform-nam=* | --program-transform-na=* \ | |
1103 | | --program-transform-n=* | --program-transform-=* \ | |
1104 | | --program-transform=* | --program-transfor=* \ | |
1105 | | --program-transfo=* | --program-transf=* \ | |
1106 | | --program-trans=* | --program-tran=* \ | |
1107 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
c6b750e1 | 1108 | program_transform_name=$ac_optarg ;; |
a0da8069 | 1109 | |
81ecdfbb RW |
1110 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1111 | ac_prev=pdfdir ;; | |
1112 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1113 | pdfdir=$ac_optarg ;; | |
1114 | ||
1115 | -psdir | --psdir | --psdi | --psd | --ps) | |
1116 | ac_prev=psdir ;; | |
1117 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1118 | psdir=$ac_optarg ;; | |
1119 | ||
a0da8069 NN |
1120 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1121 | | -silent | --silent | --silen | --sile | --sil) | |
1122 | silent=yes ;; | |
1123 | ||
1124 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1125 | ac_prev=sbindir ;; | |
1126 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1127 | | --sbi=* | --sb=*) | |
c6b750e1 | 1128 | sbindir=$ac_optarg ;; |
a0da8069 NN |
1129 | |
1130 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1131 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1132 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1133 | | --sha | --sh) | |
1134 | ac_prev=sharedstatedir ;; | |
1135 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1136 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1137 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1138 | | --sha=* | --sh=*) | |
c6b750e1 | 1139 | sharedstatedir=$ac_optarg ;; |
a0da8069 NN |
1140 | |
1141 | -site | --site | --sit) | |
1142 | ac_prev=site ;; | |
1143 | -site=* | --site=* | --sit=*) | |
c6b750e1 | 1144 | site=$ac_optarg ;; |
a0da8069 NN |
1145 | |
1146 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1147 | ac_prev=srcdir ;; | |
1148 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
c6b750e1 | 1149 | srcdir=$ac_optarg ;; |
a0da8069 NN |
1150 | |
1151 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1152 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1153 | ac_prev=sysconfdir ;; | |
1154 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1155 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
c6b750e1 | 1156 | sysconfdir=$ac_optarg ;; |
a0da8069 NN |
1157 | |
1158 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
c6b750e1 | 1159 | ac_prev=target_alias ;; |
a0da8069 | 1160 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
c6b750e1 | 1161 | target_alias=$ac_optarg ;; |
a0da8069 NN |
1162 | |
1163 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1164 | verbose=yes ;; | |
1165 | ||
c6b750e1 DJ |
1166 | -version | --version | --versio | --versi | --vers | -V) |
1167 | ac_init_version=: ;; | |
a0da8069 NN |
1168 | |
1169 | -with-* | --with-*) | |
81ecdfbb | 1170 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a0da8069 | 1171 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1172 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1173 | as_fn_error "invalid package name: $ac_useropt" | |
1174 | ac_useropt_orig=$ac_useropt | |
1175 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1176 | case $ac_user_opts in | |
1177 | *" | |
1178 | "with_$ac_useropt" | |
1179 | "*) ;; | |
1180 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1181 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1182 | esac |
81ecdfbb | 1183 | eval with_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1184 | |
1185 | -without-* | --without-*) | |
81ecdfbb | 1186 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a0da8069 | 1187 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1188 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1189 | as_fn_error "invalid package name: $ac_useropt" | |
1190 | ac_useropt_orig=$ac_useropt | |
1191 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1192 | case $ac_user_opts in | |
1193 | *" | |
1194 | "with_$ac_useropt" | |
1195 | "*) ;; | |
1196 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1197 | ac_unrecognized_sep=', ';; | |
1198 | esac | |
1199 | eval with_$ac_useropt=no ;; | |
a0da8069 NN |
1200 | |
1201 | --x) | |
1202 | # Obsolete; use --with-x. | |
1203 | with_x=yes ;; | |
1204 | ||
1205 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1206 | | --x-incl | --x-inc | --x-in | --x-i) | |
1207 | ac_prev=x_includes ;; | |
1208 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1209 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
c6b750e1 | 1210 | x_includes=$ac_optarg ;; |
a0da8069 NN |
1211 | |
1212 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1213 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1214 | ac_prev=x_libraries ;; | |
1215 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1216 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
c6b750e1 | 1217 | x_libraries=$ac_optarg ;; |
a0da8069 | 1218 | |
81ecdfbb RW |
1219 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1220 | Try \`$0 --help' for more information." | |
a0da8069 NN |
1221 | ;; |
1222 | ||
c6b750e1 DJ |
1223 | *=*) |
1224 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1225 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1226 | case $ac_envvar in #( |
1227 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1228 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1229 | esac | |
1230 | eval $ac_envvar=\$ac_optarg | |
c6b750e1 DJ |
1231 | export $ac_envvar ;; |
1232 | ||
a0da8069 | 1233 | *) |
c6b750e1 | 1234 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1235 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
c6b750e1 | 1236 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1237 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
c6b750e1 | 1238 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
a0da8069 NN |
1239 | ;; |
1240 | ||
1241 | esac | |
1242 | done | |
1243 | ||
1244 | if test -n "$ac_prev"; then | |
c6b750e1 | 1245 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1246 | as_fn_error "missing argument to $ac_option" |
a0da8069 | 1247 | fi |
a0da8069 | 1248 | |
81ecdfbb RW |
1249 | if test -n "$ac_unrecognized_opts"; then |
1250 | case $enable_option_checking in | |
1251 | no) ;; | |
1252 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1253 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
c6b750e1 | 1254 | esac |
81ecdfbb | 1255 | fi |
a0da8069 | 1256 | |
81ecdfbb RW |
1257 | # Check all directory arguments for consistency. |
1258 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1259 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1260 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1261 | libdir localedir mandir | |
a0da8069 | 1262 | do |
81ecdfbb RW |
1263 | eval ac_val=\$$ac_var |
1264 | # Remove trailing slashes. | |
1265 | case $ac_val in | |
1266 | */ ) | |
1267 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1268 | eval $ac_var=\$ac_val;; | |
1269 | esac | |
1270 | # Be sure to have absolute directory names. | |
c6b750e1 | 1271 | case $ac_val in |
81ecdfbb RW |
1272 | [\\/$]* | ?:[\\/]* ) continue;; |
1273 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a0da8069 | 1274 | esac |
81ecdfbb | 1275 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
a0da8069 NN |
1276 | done |
1277 | ||
c6b750e1 DJ |
1278 | # There might be people who depend on the old broken behavior: `$host' |
1279 | # used to hold the argument of --host etc. | |
1280 | # FIXME: To remove some day. | |
1281 | build=$build_alias | |
1282 | host=$host_alias | |
1283 | target=$target_alias | |
376a0e54 | 1284 | |
c6b750e1 DJ |
1285 | # FIXME: To remove some day. |
1286 | if test "x$host_alias" != x; then | |
1287 | if test "x$build_alias" = x; then | |
1288 | cross_compiling=maybe | |
81ecdfbb | 1289 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
c6b750e1 DJ |
1290 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1291 | elif test "x$build_alias" != "x$host_alias"; then | |
1292 | cross_compiling=yes | |
1293 | fi | |
1294 | fi | |
1295 | ||
1296 | ac_tool_prefix= | |
1297 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1298 | ||
1299 | test "$silent" = yes && exec 6>/dev/null | |
a0da8069 | 1300 | |
a0da8069 | 1301 | |
81ecdfbb RW |
1302 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1303 | ac_ls_di=`ls -di .` && | |
1304 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1305 | as_fn_error "working directory cannot be determined" | |
1306 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1307 | as_fn_error "pwd does not report name of working directory" | |
1308 | ||
1309 | ||
a0da8069 NN |
1310 | # Find the source files, if location was not specified. |
1311 | if test -z "$srcdir"; then | |
1312 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1313 | # Try the directory containing this script, then the parent directory. |
1314 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1315 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1316 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1317 | X"$as_myself" : 'X\(//\)$' \| \ | |
1318 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1319 | $as_echo X"$as_myself" | | |
1320 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1321 | s//\1/ | |
1322 | q | |
1323 | } | |
1324 | /^X\(\/\/\)[^/].*/{ | |
1325 | s//\1/ | |
1326 | q | |
1327 | } | |
1328 | /^X\(\/\/\)$/{ | |
1329 | s//\1/ | |
1330 | q | |
1331 | } | |
1332 | /^X\(\/\).*/{ | |
1333 | s//\1/ | |
1334 | q | |
1335 | } | |
1336 | s/.*/./; q'` | |
a0da8069 | 1337 | srcdir=$ac_confdir |
81ecdfbb | 1338 | if test ! -r "$srcdir/$ac_unique_file"; then |
a0da8069 NN |
1339 | srcdir=.. |
1340 | fi | |
1341 | else | |
1342 | ac_srcdir_defaulted=no | |
1343 | fi | |
81ecdfbb RW |
1344 | if test ! -r "$srcdir/$ac_unique_file"; then |
1345 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1346 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1347 | fi | |
1348 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1349 | ac_abs_confdir=`( | |
1350 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1351 | pwd)` | |
1352 | # When building in place, set srcdir=. | |
1353 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1354 | srcdir=. | |
1355 | fi | |
1356 | # Remove unnecessary trailing slashes from srcdir. | |
1357 | # Double slashes in file names in object file debugging info | |
1358 | # mess up M-x gdb in Emacs. | |
1359 | case $srcdir in | |
1360 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1361 | esac | |
6d0cd39e AM |
1362 | case $srcdir in |
1363 | *" "*) | |
1364 | as_fn_error "path to source, $srcdir, contains spaces" | |
1365 | ;; | |
1366 | esac | |
9cc8ae67 PB |
1367 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1368 | ||
81ecdfbb RW |
1369 | for ac_var in $ac_precious_vars; do |
1370 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1371 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1372 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1373 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1374 | done | |
c6b750e1 DJ |
1375 | |
1376 | # | |
1377 | # Report the --help message. | |
1378 | # | |
1379 | if test "$ac_init_help" = "long"; then | |
1380 | # Omit some internal or obsolete options to make the list less imposing. | |
1381 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1382 | cat <<_ACEOF | |
1383 | \`configure' configures this package to adapt to many kinds of systems. | |
1384 | ||
1385 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1386 | ||
1387 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1388 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1389 | ||
1390 | Defaults for the options are specified in brackets. | |
1391 | ||
1392 | Configuration: | |
1393 | -h, --help display this help and exit | |
1394 | --help=short display options specific to this package | |
1395 | --help=recursive display the short help of all the included packages | |
1396 | -V, --version display version information and exit | |
1397 | -q, --quiet, --silent do not print \`checking...' messages | |
1398 | --cache-file=FILE cache test results in FILE [disabled] | |
1399 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1400 | -n, --no-create do not create output files | |
1401 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1402 | ||
c6b750e1 DJ |
1403 | Installation directories: |
1404 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1405 | [$ac_default_prefix] |
c6b750e1 | 1406 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1407 | [PREFIX] |
c6b750e1 DJ |
1408 | |
1409 | By default, \`make install' will install all the files in | |
1410 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1411 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1412 | for instance \`--prefix=\$HOME'. | |
1413 | ||
1414 | For better control, use the options below. | |
1415 | ||
1416 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1417 | --bindir=DIR user executables [EPREFIX/bin] |
1418 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1419 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1420 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1421 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1422 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1423 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1424 | --includedir=DIR C header files [PREFIX/include] | |
1425 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1426 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1427 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1428 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1429 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1430 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1431 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1432 | --htmldir=DIR html documentation [DOCDIR] | |
1433 | --dvidir=DIR dvi documentation [DOCDIR] | |
1434 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1435 | --psdir=DIR ps documentation [DOCDIR] | |
c6b750e1 DJ |
1436 | _ACEOF |
1437 | ||
1438 | cat <<\_ACEOF | |
1439 | ||
1440 | Program names: | |
1441 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1442 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1443 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1444 | ||
1445 | System types: | |
1446 | --build=BUILD configure for building on BUILD [guessed] | |
1447 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1448 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1449 | _ACEOF | |
a0da8069 | 1450 | fi |
a0da8069 | 1451 | |
c6b750e1 DJ |
1452 | if test -n "$ac_init_help"; then |
1453 | ||
1454 | cat <<\_ACEOF | |
1455 | ||
1456 | Optional Features: | |
81ecdfbb | 1457 | --disable-option-checking ignore unrecognized --enable/--with options |
c6b750e1 DJ |
1458 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1459 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
c7791212 | 1460 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7837304f | 1461 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
89a1e9c3 PB |
1462 | --disable-libquadmath do not build libquadmath directory |
1463 | --disable-libquadmath-support | |
1464 | disable libquadmath support for Fortran | |
521ec477 DD |
1465 | --enable-libada build libada directory |
1466 | --enable-libssp build libssp directory | |
ffdd6afc ILT |
1467 | --enable-static-libjava[=ARG] |
1468 | build static libjava [default=no] | |
1469 | --enable-bootstrap enable bootstrapping [yes if native build] | |
e8a5fa9c | 1470 | --enable-build-with-cxx build with C++ compiler instead of C compiler |
ffdd6afc ILT |
1471 | --enable-build-poststage1-with-cxx |
1472 | build stages 2 and 3 with C++, not C | |
7837304f AS |
1473 | --disable-ppl-version-check |
1474 | disable check for PPL version | |
ceca0218 PB |
1475 | --enable-cloog-backend[=BACKEND] |
1476 | set the CLooG BACKEND used to either isl, ppl or | |
1477 | ppl-legacy (default) | |
e552509b ILT |
1478 | --disable-cloog-version-check |
1479 | disable check for CLooG version | |
700d40ca | 1480 | --enable-lto enable link time optimization support |
7837304f AS |
1481 | --enable-stage1-languages[=all] |
1482 | choose additional languages to build during stage1. | |
1483 | Mostly useful for compiler development | |
1484 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1485 | Objective-C runtime | |
521ec477 | 1486 | --enable-serial-[{host,target,build}-]configure |
7837304f AS |
1487 | force sequential configuration of sub-packages for |
1488 | the host, target or build machine, or all | |
1489 | sub-packages | |
1490 | --enable-maintainer-mode | |
1491 | enable make rules and dependencies not useful (and | |
1492 | sometimes confusing) to the casual installer | |
1493 | --enable-stage1-checking[=all] | |
1494 | choose additional checking for stage1 of the | |
1495 | compiler | |
c6b750e1 DJ |
1496 | --enable-werror enable -Werror in bootstrap stage2 and later |
1497 | ||
1498 | Optional Packages: | |
1499 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1500 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1501 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
7837304f AS |
1502 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1503 | Equivalent to --with-mpc-include=PATH/include plus | |
1504 | --with-mpc-lib=PATH/lib | |
1505 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1506 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
521ec477 DD |
1507 | --with-mpfr-dir=PATH this option has been REMOVED |
1508 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
7837304f AS |
1509 | Equivalent to --with-mpfr-include=PATH/include plus |
1510 | --with-mpfr-lib=PATH/lib | |
c6b750e1 | 1511 | --with-mpfr-include=PATH |
521ec477 DD |
1512 | specify directory for installed MPFR include files |
1513 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1514 | --with-gmp-dir=PATH this option has been REMOVED | |
7837304f AS |
1515 | --with-gmp=PATH specify prefix directory for the installed GMP |
1516 | package. Equivalent to | |
1517 | --with-gmp-include=PATH/include plus | |
1518 | --with-gmp-lib=PATH/lib | |
521ec477 DD |
1519 | --with-gmp-include=PATH specify directory for installed GMP include files |
1520 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
7837304f AS |
1521 | --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when |
1522 | linking with PPL | |
1523 | --with-stage1-ldflags=FLAGS | |
1524 | linker flags for stage1 | |
1525 | --with-stage1-libs=LIBS libraries for stage1 | |
1526 | --with-boot-libs=LIBS libraries for stage2 and later | |
1527 | --with-boot-ldflags=FLAGS | |
1528 | linker flags for stage2 and later | |
1529 | --with-ppl=PATH specify prefix directory for the installed PPL | |
1530 | package. Equivalent to | |
1531 | --with-ppl-include=PATH/include plus | |
1532 | --with-ppl-lib=PATH/lib | |
1533 | --with-ppl-include=PATH specify directory for installed PPL include files | |
1534 | --with-ppl-lib=PATH specify directory for the installed PPL library | |
e552509b ILT |
1535 | --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL |
1536 | package. Equivalent to | |
1537 | --with-cloog-include=PATH/include plus | |
1538 | --with-cloog-lib=PATH/lib | |
1539 | --with-cloog-include=PATH | |
1540 | Specify directory for installed CLooG include files | |
1541 | --with-cloog-lib=PATH Specify the directory for the installed CLooG | |
1542 | library | |
521ec477 | 1543 | --with-build-sysroot=SYSROOT |
c6b750e1 | 1544 | use sysroot as the system root during the build |
8a6ee3ab | 1545 | --with-debug-prefix-map='A=B C=D ...' |
7837304f AS |
1546 | map A to B, C to D ... in debug information |
1547 | --with-build-config='NAME NAME2...' | |
1548 | use config/NAME.mk build configuration | |
521ec477 | 1549 | --with-build-time-tools=PATH |
c6b750e1 | 1550 | use given path to find target tools during the build |
c6b750e1 DJ |
1551 | |
1552 | Some influential environment variables: | |
1553 | CC C compiler command | |
1554 | CFLAGS C compiler flags | |
1555 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1556 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1557 | LIBS libraries to pass to the linker, e.g. -l<library> |
1558 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1559 | you have headers in a nonstandard directory <include dir> | |
18f6b6ee PB |
1560 | CXX C++ compiler command |
1561 | CXXFLAGS C++ compiler flags | |
4074d5f2 RW |
1562 | build_configargs |
1563 | additional configure arguments for build directories | |
1564 | host_configargs | |
1565 | additional configure arguments for host directories | |
1566 | target_configargs | |
1567 | additional configure arguments for target directories | |
9a819804 AO |
1568 | AR AR for the host |
1569 | AS AS for the host | |
1570 | DLLTOOL DLLTOOL for the host | |
1571 | LD LD for the host | |
1572 | LIPO LIPO for the host | |
1573 | NM NM for the host | |
1574 | RANLIB RANLIB for the host | |
1575 | STRIP STRIP for the host | |
1576 | WINDRES WINDRES for the host | |
0c24b341 | 1577 | WINDMC WINDMC for the host |
9a819804 AO |
1578 | OBJCOPY OBJCOPY for the host |
1579 | OBJDUMP OBJDUMP for the host | |
1580 | CC_FOR_TARGET | |
1581 | CC for the target | |
1582 | CXX_FOR_TARGET | |
1583 | CXX for the target | |
1584 | GCC_FOR_TARGET | |
1585 | GCC for the target | |
1586 | GCJ_FOR_TARGET | |
1587 | GCJ for the target | |
1588 | GFORTRAN_FOR_TARGET | |
1589 | GFORTRAN for the target | |
e552509b ILT |
1590 | GOC_FOR_TARGET |
1591 | GOC for the target | |
9a819804 AO |
1592 | AR_FOR_TARGET |
1593 | AR for the target | |
1594 | AS_FOR_TARGET | |
1595 | AS for the target | |
1596 | DLLTOOL_FOR_TARGET | |
1597 | DLLTOOL for the target | |
1598 | LD_FOR_TARGET | |
1599 | LD for the target | |
1600 | LIPO_FOR_TARGET | |
1601 | LIPO for the target | |
1602 | NM_FOR_TARGET | |
1603 | NM for the target | |
1604 | OBJDUMP_FOR_TARGET | |
1605 | OBJDUMP for the target | |
1606 | RANLIB_FOR_TARGET | |
1607 | RANLIB for the target | |
1608 | STRIP_FOR_TARGET | |
1609 | STRIP for the target | |
1610 | WINDRES_FOR_TARGET | |
1611 | WINDRES for the target | |
0c24b341 NC |
1612 | WINDMC_FOR_TARGET |
1613 | WINDMC for the target | |
c6b750e1 DJ |
1614 | |
1615 | Use these variables to override the choices made by `configure' or to help | |
1616 | it to find libraries and programs with nonstandard names/locations. | |
1617 | ||
81ecdfbb | 1618 | Report bugs to the package provider. |
c6b750e1 | 1619 | _ACEOF |
81ecdfbb | 1620 | ac_status=$? |
c6b750e1 DJ |
1621 | fi |
1622 | ||
1623 | if test "$ac_init_help" = "recursive"; then | |
1624 | # If there are subdirs, report their specific --help. | |
c6b750e1 | 1625 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1626 | test -d "$ac_dir" || |
1627 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1628 | continue | |
c6b750e1 DJ |
1629 | ac_builddir=. |
1630 | ||
81ecdfbb RW |
1631 | case "$ac_dir" in |
1632 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1633 | *) | |
1634 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1635 | # A ".." for each directory in $ac_dir_suffix. | |
1636 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1637 | case $ac_top_builddir_sub in | |
1638 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1639 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1640 | esac ;; | |
1641 | esac | |
1642 | ac_abs_top_builddir=$ac_pwd | |
1643 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1644 | # for backward compatibility: | |
1645 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
1646 | |
1647 | case $srcdir in | |
81ecdfbb | 1648 | .) # We are building in place. |
c6b750e1 | 1649 | ac_srcdir=. |
81ecdfbb RW |
1650 | ac_top_srcdir=$ac_top_builddir_sub |
1651 | ac_abs_top_srcdir=$ac_pwd ;; | |
1652 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 1653 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1654 | ac_top_srcdir=$srcdir |
1655 | ac_abs_top_srcdir=$srcdir ;; | |
1656 | *) # Relative name. | |
1657 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1658 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1659 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 1660 | esac |
81ecdfbb RW |
1661 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1662 | ||
1663 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1664 | # Check for guested configure. | |
1665 | if test -f "$ac_srcdir/configure.gnu"; then | |
1666 | echo && | |
1667 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1668 | elif test -f "$ac_srcdir/configure"; then | |
1669 | echo && | |
1670 | $SHELL "$ac_srcdir/configure" --help=recursive | |
c6b750e1 | 1671 | else |
81ecdfbb RW |
1672 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1673 | fi || ac_status=$? | |
1674 | cd "$ac_pwd" || { ac_status=$?; break; } | |
c6b750e1 DJ |
1675 | done |
1676 | fi | |
1677 | ||
81ecdfbb | 1678 | test -n "$ac_init_help" && exit $ac_status |
c6b750e1 DJ |
1679 | if $ac_init_version; then |
1680 | cat <<\_ACEOF | |
81ecdfbb RW |
1681 | configure |
1682 | generated by GNU Autoconf 2.64 | |
c6b750e1 | 1683 | |
81ecdfbb | 1684 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
1685 | This configure script is free software; the Free Software Foundation |
1686 | gives unlimited permission to copy, distribute and modify it. | |
1687 | _ACEOF | |
81ecdfbb | 1688 | exit |
c6b750e1 | 1689 | fi |
81ecdfbb RW |
1690 | |
1691 | ## ------------------------ ## | |
1692 | ## Autoconf initialization. ## | |
1693 | ## ------------------------ ## | |
1694 | ||
1695 | # ac_fn_c_try_compile LINENO | |
1696 | # -------------------------- | |
1697 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1698 | ac_fn_c_try_compile () | |
1699 | { | |
1700 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1701 | rm -f conftest.$ac_objext | |
1702 | if { { ac_try="$ac_compile" | |
1703 | case "(($ac_try" in | |
1704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1705 | *) ac_try_echo=$ac_try;; | |
1706 | esac | |
1707 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1708 | $as_echo "$ac_try_echo"; } >&5 | |
1709 | (eval "$ac_compile") 2>conftest.err | |
1710 | ac_status=$? | |
1711 | if test -s conftest.err; then | |
1712 | grep -v '^ *+' conftest.err >conftest.er1 | |
1713 | cat conftest.er1 >&5 | |
1714 | mv -f conftest.er1 conftest.err | |
1715 | fi | |
1716 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1717 | test $ac_status = 0; } && { | |
1718 | test -z "$ac_c_werror_flag" || | |
1719 | test ! -s conftest.err | |
1720 | } && test -s conftest.$ac_objext; then : | |
1721 | ac_retval=0 | |
1722 | else | |
1723 | $as_echo "$as_me: failed program was:" >&5 | |
1724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1725 | ||
1726 | ac_retval=1 | |
1727 | fi | |
1728 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1729 | return $ac_retval | |
1730 | ||
1731 | } # ac_fn_c_try_compile | |
1732 | ||
1733 | # ac_fn_cxx_try_compile LINENO | |
1734 | # ---------------------------- | |
1735 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1736 | ac_fn_cxx_try_compile () | |
1737 | { | |
1738 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1739 | rm -f conftest.$ac_objext | |
1740 | if { { ac_try="$ac_compile" | |
1741 | case "(($ac_try" in | |
1742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1743 | *) ac_try_echo=$ac_try;; | |
1744 | esac | |
1745 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1746 | $as_echo "$ac_try_echo"; } >&5 | |
1747 | (eval "$ac_compile") 2>conftest.err | |
1748 | ac_status=$? | |
1749 | if test -s conftest.err; then | |
1750 | grep -v '^ *+' conftest.err >conftest.er1 | |
1751 | cat conftest.er1 >&5 | |
1752 | mv -f conftest.er1 conftest.err | |
1753 | fi | |
1754 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1755 | test $ac_status = 0; } && { | |
1756 | test -z "$ac_cxx_werror_flag" || | |
1757 | test ! -s conftest.err | |
1758 | } && test -s conftest.$ac_objext; then : | |
1759 | ac_retval=0 | |
1760 | else | |
1761 | $as_echo "$as_me: failed program was:" >&5 | |
1762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1763 | ||
1764 | ac_retval=1 | |
1765 | fi | |
1766 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1767 | return $ac_retval | |
1768 | ||
1769 | } # ac_fn_cxx_try_compile | |
1770 | ||
1771 | # ac_fn_c_try_link LINENO | |
1772 | # ----------------------- | |
1773 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1774 | ac_fn_c_try_link () | |
1775 | { | |
1776 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1777 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1778 | if { { ac_try="$ac_link" | |
1779 | case "(($ac_try" in | |
1780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1781 | *) ac_try_echo=$ac_try;; | |
1782 | esac | |
1783 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1784 | $as_echo "$ac_try_echo"; } >&5 | |
1785 | (eval "$ac_link") 2>conftest.err | |
1786 | ac_status=$? | |
1787 | if test -s conftest.err; then | |
1788 | grep -v '^ *+' conftest.err >conftest.er1 | |
1789 | cat conftest.er1 >&5 | |
1790 | mv -f conftest.er1 conftest.err | |
1791 | fi | |
1792 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1793 | test $ac_status = 0; } && { | |
1794 | test -z "$ac_c_werror_flag" || | |
1795 | test ! -s conftest.err | |
1796 | } && test -s conftest$ac_exeext && { | |
1797 | test "$cross_compiling" = yes || | |
1798 | $as_test_x conftest$ac_exeext | |
1799 | }; then : | |
1800 | ac_retval=0 | |
1801 | else | |
1802 | $as_echo "$as_me: failed program was:" >&5 | |
1803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1804 | ||
1805 | ac_retval=1 | |
1806 | fi | |
1807 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1808 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1809 | # interfere with the next link command; also delete a directory that is | |
1810 | # left behind by Apple's compiler. We do this before executing the actions. | |
1811 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1812 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1813 | return $ac_retval | |
1814 | ||
1815 | } # ac_fn_c_try_link | |
1816 | cat >config.log <<_ACEOF | |
c6b750e1 DJ |
1817 | This file contains any messages produced by compilers while |
1818 | running configure, to aid debugging if configure makes a mistake. | |
1819 | ||
1820 | It was created by $as_me, which was | |
81ecdfbb | 1821 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
1822 | |
1823 | $ $0 $@ | |
1824 | ||
1825 | _ACEOF | |
81ecdfbb | 1826 | exec 5>>config.log |
c6b750e1 DJ |
1827 | { |
1828 | cat <<_ASUNAME | |
1829 | ## --------- ## | |
1830 | ## Platform. ## | |
1831 | ## --------- ## | |
1832 | ||
1833 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1834 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1835 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1836 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1837 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1838 | ||
1839 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1840 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1841 | ||
1842 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1843 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1844 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 1845 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
c6b750e1 DJ |
1846 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1847 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1848 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1849 | ||
1850 | _ASUNAME | |
1851 | ||
1852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1853 | for as_dir in $PATH | |
1854 | do | |
1855 | IFS=$as_save_IFS | |
1856 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1857 | $as_echo "PATH: $as_dir" |
1858 | done | |
1859 | IFS=$as_save_IFS | |
c6b750e1 DJ |
1860 | |
1861 | } >&5 | |
1862 | ||
1863 | cat >&5 <<_ACEOF | |
1864 | ||
1865 | ||
1866 | ## ----------- ## | |
1867 | ## Core tests. ## | |
1868 | ## ----------- ## | |
1869 | ||
1870 | _ACEOF | |
1871 | ||
1872 | ||
1873 | # Keep a trace of the command line. | |
1874 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1875 | # Strip out --silent because we don't want to record it for future runs. | |
1876 | # Also quote any args containing shell meta-characters. | |
1877 | # Make two passes to allow for proper duplicate-argument suppression. | |
1878 | ac_configure_args= | |
1879 | ac_configure_args0= | |
1880 | ac_configure_args1= | |
c6b750e1 DJ |
1881 | ac_must_keep_next=false |
1882 | for ac_pass in 1 2 | |
1883 | do | |
1884 | for ac_arg | |
1885 | do | |
1886 | case $ac_arg in | |
1887 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1888 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1889 | | -silent | --silent | --silen | --sile | --sil) | |
1890 | continue ;; | |
81ecdfbb RW |
1891 | *\'*) |
1892 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c6b750e1 DJ |
1893 | esac |
1894 | case $ac_pass in | |
81ecdfbb | 1895 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
c6b750e1 | 1896 | 2) |
81ecdfbb | 1897 | as_fn_append ac_configure_args1 " '$ac_arg'" |
c6b750e1 DJ |
1898 | if test $ac_must_keep_next = true; then |
1899 | ac_must_keep_next=false # Got value, back to normal. | |
1900 | else | |
1901 | case $ac_arg in | |
1902 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1903 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1904 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1905 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1906 | case "$ac_configure_args0 " in | |
1907 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1908 | esac | |
1909 | ;; | |
1910 | -* ) ac_must_keep_next=true ;; | |
1911 | esac | |
1912 | fi | |
81ecdfbb | 1913 | as_fn_append ac_configure_args " '$ac_arg'" |
c6b750e1 DJ |
1914 | ;; |
1915 | esac | |
1916 | done | |
1917 | done | |
81ecdfbb RW |
1918 | { ac_configure_args0=; unset ac_configure_args0;} |
1919 | { ac_configure_args1=; unset ac_configure_args1;} | |
c6b750e1 DJ |
1920 | |
1921 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1922 | # config.log. We remove comments because anyway the quotes in there | |
1923 | # would cause problems or look ugly. | |
81ecdfbb RW |
1924 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1925 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
c6b750e1 DJ |
1926 | trap 'exit_status=$? |
1927 | # Save into config.log some information that might help in debugging. | |
1928 | { | |
1929 | echo | |
1930 | ||
1931 | cat <<\_ASBOX | |
1932 | ## ---------------- ## | |
1933 | ## Cache variables. ## | |
1934 | ## ---------------- ## | |
1935 | _ASBOX | |
1936 | echo | |
1937 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
1938 | ( |
1939 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1940 | eval ac_val=\$$ac_var | |
1941 | case $ac_val in #( | |
1942 | *${as_nl}*) | |
1943 | case $ac_var in #( | |
1944 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1945 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1946 | esac | |
1947 | case $ac_var in #( | |
1948 | _ | IFS | as_nl) ;; #( | |
1949 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1950 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1951 | esac ;; | |
1952 | esac | |
1953 | done | |
c6b750e1 | 1954 | (set) 2>&1 | |
81ecdfbb RW |
1955 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1956 | *${as_nl}ac_space=\ *) | |
c6b750e1 | 1957 | sed -n \ |
81ecdfbb RW |
1958 | "s/'\''/'\''\\\\'\'''\''/g; |
1959 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1960 | ;; #( | |
c6b750e1 | 1961 | *) |
81ecdfbb | 1962 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 1963 | ;; |
81ecdfbb RW |
1964 | esac | |
1965 | sort | |
1966 | ) | |
c6b750e1 DJ |
1967 | echo |
1968 | ||
1969 | cat <<\_ASBOX | |
1970 | ## ----------------- ## | |
1971 | ## Output variables. ## | |
1972 | ## ----------------- ## | |
1973 | _ASBOX | |
1974 | echo | |
1975 | for ac_var in $ac_subst_vars | |
1976 | do | |
81ecdfbb RW |
1977 | eval ac_val=\$$ac_var |
1978 | case $ac_val in | |
1979 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1980 | esac | |
1981 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
1982 | done | sort |
1983 | echo | |
1984 | ||
1985 | if test -n "$ac_subst_files"; then | |
1986 | cat <<\_ASBOX | |
81ecdfbb RW |
1987 | ## ------------------- ## |
1988 | ## File substitutions. ## | |
1989 | ## ------------------- ## | |
c6b750e1 DJ |
1990 | _ASBOX |
1991 | echo | |
1992 | for ac_var in $ac_subst_files | |
1993 | do | |
81ecdfbb RW |
1994 | eval ac_val=\$$ac_var |
1995 | case $ac_val in | |
1996 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1997 | esac | |
1998 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
1999 | done | sort |
2000 | echo | |
2001 | fi | |
2002 | ||
2003 | if test -s confdefs.h; then | |
2004 | cat <<\_ASBOX | |
2005 | ## ----------- ## | |
2006 | ## confdefs.h. ## | |
2007 | ## ----------- ## | |
2008 | _ASBOX | |
2009 | echo | |
81ecdfbb | 2010 | cat confdefs.h |
c6b750e1 DJ |
2011 | echo |
2012 | fi | |
2013 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2014 | $as_echo "$as_me: caught signal $ac_signal" |
2015 | $as_echo "$as_me: exit $exit_status" | |
c6b750e1 | 2016 | } >&5 |
81ecdfbb RW |
2017 | rm -f core *.core core.conftest.* && |
2018 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
c6b750e1 | 2019 | exit $exit_status |
81ecdfbb | 2020 | ' 0 |
c6b750e1 | 2021 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2022 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
c6b750e1 DJ |
2023 | done |
2024 | ac_signal=0 | |
2025 | ||
2026 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2027 | rm -f -r conftest* confdefs.h |
2028 | ||
2029 | $as_echo "/* confdefs.h */" > confdefs.h | |
c6b750e1 DJ |
2030 | |
2031 | # Predefined preprocessor variables. | |
2032 | ||
2033 | cat >>confdefs.h <<_ACEOF | |
2034 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2035 | _ACEOF | |
2036 | ||
c6b750e1 DJ |
2037 | cat >>confdefs.h <<_ACEOF |
2038 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2039 | _ACEOF | |
2040 | ||
c6b750e1 DJ |
2041 | cat >>confdefs.h <<_ACEOF |
2042 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2043 | _ACEOF | |
2044 | ||
c6b750e1 DJ |
2045 | cat >>confdefs.h <<_ACEOF |
2046 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2047 | _ACEOF | |
2048 | ||
c6b750e1 DJ |
2049 | cat >>confdefs.h <<_ACEOF |
2050 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2051 | _ACEOF | |
2052 | ||
81ecdfbb RW |
2053 | cat >>confdefs.h <<_ACEOF |
2054 | #define PACKAGE_URL "$PACKAGE_URL" | |
2055 | _ACEOF | |
2056 | ||
c6b750e1 DJ |
2057 | |
2058 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2059 | # Prefer an explicitly selected file to automatically selected ones. |
2060 | ac_site_file1=NONE | |
2061 | ac_site_file2=NONE | |
2062 | if test -n "$CONFIG_SITE"; then | |
2063 | ac_site_file1=$CONFIG_SITE | |
2064 | elif test "x$prefix" != xNONE; then | |
2065 | ac_site_file1=$prefix/share/config.site | |
2066 | ac_site_file2=$prefix/etc/config.site | |
2067 | else | |
2068 | ac_site_file1=$ac_default_prefix/share/config.site | |
2069 | ac_site_file2=$ac_default_prefix/etc/config.site | |
a0da8069 | 2070 | fi |
81ecdfbb RW |
2071 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2072 | do | |
2073 | test "x$ac_site_file" = xNONE && continue | |
a0da8069 | 2074 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2075 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2076 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
c6b750e1 | 2077 | sed 's/^/| /' "$ac_site_file" >&5 |
a0da8069 NN |
2078 | . "$ac_site_file" |
2079 | fi | |
2080 | done | |
2081 | ||
2082 | if test -r "$cache_file"; then | |
c6b750e1 DJ |
2083 | # Some versions of bash will fail to source /dev/null (special |
2084 | # files actually), so we avoid doing that. | |
2085 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2086 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2087 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
c6b750e1 | 2088 | case $cache_file in |
81ecdfbb RW |
2089 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2090 | *) . "./$cache_file";; | |
c6b750e1 DJ |
2091 | esac |
2092 | fi | |
a0da8069 | 2093 | else |
81ecdfbb RW |
2094 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2095 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
c6b750e1 DJ |
2096 | >$cache_file |
2097 | fi | |
2098 | ||
2099 | # Check that the precious variables saved in the cache have kept the same | |
2100 | # value. | |
2101 | ac_cache_corrupted=false | |
81ecdfbb | 2102 | for ac_var in $ac_precious_vars; do |
c6b750e1 DJ |
2103 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2104 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2105 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2106 | eval ac_new_val=\$ac_env_${ac_var}_value | |
c6b750e1 DJ |
2107 | case $ac_old_set,$ac_new_set in |
2108 | set,) | |
81ecdfbb RW |
2109 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2110 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
c6b750e1 DJ |
2111 | ac_cache_corrupted=: ;; |
2112 | ,set) | |
81ecdfbb RW |
2113 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2114 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
c6b750e1 DJ |
2115 | ac_cache_corrupted=: ;; |
2116 | ,);; | |
2117 | *) | |
2118 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2119 | # differences in whitespace do not lead to failure. |
2120 | ac_old_val_w=`echo x $ac_old_val` | |
2121 | ac_new_val_w=`echo x $ac_new_val` | |
2122 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2123 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2124 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2125 | ac_cache_corrupted=: | |
2126 | else | |
2127 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2128 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2129 | eval $ac_var=\$ac_old_val | |
2130 | fi | |
2131 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2132 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2133 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2134 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
c6b750e1 DJ |
2135 | fi;; |
2136 | esac | |
2137 | # Pass precious variables to config.status. | |
2138 | if test "$ac_new_set" = set; then | |
2139 | case $ac_new_val in | |
81ecdfbb | 2140 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c6b750e1 DJ |
2141 | *) ac_arg=$ac_var=$ac_new_val ;; |
2142 | esac | |
2143 | case " $ac_configure_args " in | |
2144 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2145 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
c6b750e1 DJ |
2146 | esac |
2147 | fi | |
2148 | done | |
2149 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2150 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2151 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2152 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2153 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2154 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
a0da8069 | 2155 | fi |
81ecdfbb RW |
2156 | ## -------------------- ## |
2157 | ## Main body of script. ## | |
2158 | ## -------------------- ## | |
a0da8069 NN |
2159 | |
2160 | ac_ext=c | |
a0da8069 | 2161 | ac_cpp='$CPP $CPPFLAGS' |
c6b750e1 DJ |
2162 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2163 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2164 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2165 | ||
2166 | ||
2167 | ||
2168 | ||
c6b750e1 DJ |
2169 | |
2170 | ||
34a0f3cf | 2171 | |
c6b750e1 | 2172 | |
5b553f7e RW |
2173 | |
2174 | progname=$0 | |
2175 | # if PWD already has a value, it is probably wrong. | |
2176 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2177 | ||
2178 | # Export original configure arguments for use by sub-configures. | |
2179 | # Quote arguments with shell meta charatcers. | |
2180 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2181 | set -- "$progname" "$@" | |
2182 | for ac_arg | |
2183 | do | |
2184 | case "$ac_arg" in | |
2185 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2186 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2187 | # if the argument is of the form -foo=baz, quote the baz part only | |
2188 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2189 | *) ;; | |
2190 | esac | |
2191 | # Add the quoted argument to the list. | |
2192 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2193 | done | |
2194 | if test "$silent" = yes; then | |
2195 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2196 | fi | |
2197 | # Remove the initial space we just introduced and, as these will be | |
2198 | # expanded by make, quote '$'. | |
2199 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2200 | ||
c6b750e1 DJ |
2201 | |
2202 | # Find the build, host, and target systems. | |
a0da8069 | 2203 | ac_aux_dir= |
81ecdfbb RW |
2204 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2205 | for ac_t in install-sh install.sh shtool; do | |
2206 | if test -f "$ac_dir/$ac_t"; then | |
2207 | ac_aux_dir=$ac_dir | |
2208 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2209 | break 2 | |
2210 | fi | |
2211 | done | |
a0da8069 NN |
2212 | done |
2213 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2214 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a0da8069 | 2215 | fi |
81ecdfbb RW |
2216 | |
2217 | # These three variables are undocumented and unsupported, | |
2218 | # and are intended to be withdrawn in a future Autoconf release. | |
2219 | # They can cause serious problems if a builder's source tree is in a directory | |
2220 | # whose full name contains unusual characters. | |
2221 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2222 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2223 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2224 | ||
a0da8069 | 2225 | |
c6b750e1 | 2226 | # Make sure we can run config.sub. |
81ecdfbb RW |
2227 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2228 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2229 | ||
2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2231 | $as_echo_n "checking build system type... " >&6; } | |
2232 | if test "${ac_cv_build+set}" = set; then : | |
2233 | $as_echo_n "(cached) " >&6 | |
2234 | else | |
2235 | ac_build_alias=$build_alias | |
2236 | test "x$ac_build_alias" = x && | |
2237 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2238 | test "x$ac_build_alias" = x && | |
2239 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2240 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2241 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2242 | ||
2243 | fi | |
2244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2245 | $as_echo "$ac_cv_build" >&6; } | |
2246 | case $ac_cv_build in | |
2247 | *-*-*) ;; | |
2248 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2249 | esac | |
c6b750e1 | 2250 | build=$ac_cv_build |
81ecdfbb RW |
2251 | ac_save_IFS=$IFS; IFS='-' |
2252 | set x $ac_cv_build | |
2253 | shift | |
2254 | build_cpu=$1 | |
2255 | build_vendor=$2 | |
2256 | shift; shift | |
2257 | # Remember, the first character of IFS is used to create $*, | |
2258 | # except with old shells: | |
2259 | build_os=$* | |
2260 | IFS=$ac_save_IFS | |
2261 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
a0da8069 | 2262 | |
a0da8069 | 2263 | |
c6b750e1 DJ |
2264 | case ${build_alias} in |
2265 | "") build_noncanonical=${build} ;; | |
2266 | *) build_noncanonical=${build_alias} ;; | |
cac3d6c4 CM |
2267 | esac |
2268 | ||
2269 | ||
cac3d6c4 | 2270 | |
c6b750e1 DJ |
2271 | case ${host_alias} in |
2272 | "") host_noncanonical=${build_noncanonical} ;; | |
2273 | *) host_noncanonical=${host_alias} ;; | |
cac3d6c4 CM |
2274 | esac |
2275 | ||
cac3d6c4 | 2276 | |
c6b750e1 DJ |
2277 | |
2278 | case ${target_alias} in | |
2279 | "") target_noncanonical=${host_noncanonical} ;; | |
2280 | *) target_noncanonical=${target_alias} ;; | |
cac3d6c4 CM |
2281 | esac |
2282 | ||
cac3d6c4 | 2283 | |
c6b750e1 DJ |
2284 | |
2285 | ||
2286 | test "$host_noncanonical" = "$target_noncanonical" && | |
a0da8069 NN |
2287 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2288 | NONENONEs,x,x, && | |
c6b750e1 | 2289 | program_transform_name=s,y,y, |
cac3d6c4 | 2290 | |
81ecdfbb RW |
2291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2292 | $as_echo_n "checking host system type... " >&6; } | |
2293 | if test "${ac_cv_host+set}" = set; then : | |
2294 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 2295 | else |
81ecdfbb RW |
2296 | if test "x$host_alias" = x; then |
2297 | ac_cv_host=$ac_cv_build | |
2298 | else | |
2299 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2300 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2301 | fi | |
c6b750e1 DJ |
2302 | |
2303 | fi | |
81ecdfbb RW |
2304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2305 | $as_echo "$ac_cv_host" >&6; } | |
2306 | case $ac_cv_host in | |
2307 | *-*-*) ;; | |
2308 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2309 | esac | |
c6b750e1 | 2310 | host=$ac_cv_host |
81ecdfbb RW |
2311 | ac_save_IFS=$IFS; IFS='-' |
2312 | set x $ac_cv_host | |
2313 | shift | |
2314 | host_cpu=$1 | |
2315 | host_vendor=$2 | |
2316 | shift; shift | |
2317 | # Remember, the first character of IFS is used to create $*, | |
2318 | # except with old shells: | |
2319 | host_os=$* | |
2320 | IFS=$ac_save_IFS | |
2321 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2322 | |
2323 | ||
81ecdfbb RW |
2324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2325 | $as_echo_n "checking target system type... " >&6; } | |
2326 | if test "${ac_cv_target+set}" = set; then : | |
2327 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 2328 | else |
81ecdfbb RW |
2329 | if test "x$target_alias" = x; then |
2330 | ac_cv_target=$ac_cv_host | |
2331 | else | |
2332 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2333 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2334 | fi | |
c6b750e1 | 2335 | |
cac3d6c4 | 2336 | fi |
81ecdfbb RW |
2337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2338 | $as_echo "$ac_cv_target" >&6; } | |
2339 | case $ac_cv_target in | |
2340 | *-*-*) ;; | |
2341 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2342 | esac | |
c6b750e1 | 2343 | target=$ac_cv_target |
81ecdfbb RW |
2344 | ac_save_IFS=$IFS; IFS='-' |
2345 | set x $ac_cv_target | |
2346 | shift | |
2347 | target_cpu=$1 | |
2348 | target_vendor=$2 | |
2349 | shift; shift | |
2350 | # Remember, the first character of IFS is used to create $*, | |
2351 | # except with old shells: | |
2352 | target_os=$* | |
2353 | IFS=$ac_save_IFS | |
2354 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2355 | |
2356 | ||
2357 | # The aliases save the names the user supplied, while $host etc. | |
2358 | # will get canonicalized. | |
2359 | test -n "$target_alias" && | |
2360 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2361 | NONENONEs,x,x, && | |
2362 | program_prefix=${target_alias}- | |
81ecdfbb | 2363 | |
a0da8069 | 2364 | test "$program_prefix" != NONE && |
81ecdfbb | 2365 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
a0da8069 NN |
2366 | # Use a double $ so make ignores it. |
2367 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2368 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2369 | # Double any \ or $. | |
c6b750e1 | 2370 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2371 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2372 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
cac3d6c4 | 2373 | |
a0da8069 NN |
2374 | |
2375 | ||
e5c3f801 NN |
2376 | # Get 'install' or 'install-sh' and its variants. |
2377 | # Find a good install program. We prefer a C program (faster), | |
2378 | # so one script is as good as another. But avoid the broken or | |
2379 | # incompatible versions: | |
2380 | # SysV /etc/install, /usr/sbin/install | |
2381 | # SunOS /usr/etc/install | |
2382 | # IRIX /sbin/install | |
2383 | # AIX /bin/install | |
c6b750e1 | 2384 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5c3f801 NN |
2385 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2386 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2387 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c6b750e1 | 2388 | # OS/2's system install, which has a completely different semantic |
e5c3f801 | 2389 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2390 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2392 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5c3f801 | 2393 | if test -z "$INSTALL"; then |
81ecdfbb RW |
2394 | if test "${ac_cv_path_install+set}" = set; then : |
2395 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
2396 | else |
2397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2398 | for as_dir in $PATH | |
2399 | do | |
2400 | IFS=$as_save_IFS | |
2401 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2402 | # Account for people who put trailing slashes in PATH elements. |
2403 | case $as_dir/ in #(( | |
2404 | ./ | .// | /[cC]/* | \ | |
c6b750e1 | 2405 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2406 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
c6b750e1 DJ |
2407 | /usr/ucb/* ) ;; |
2408 | *) | |
2409 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2410 | # Don't use installbsd from OSF since it installs stuff as root | |
2411 | # by default. | |
2412 | for ac_prog in ginstall scoinst install; do | |
2413 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 2414 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
e5c3f801 | 2415 | if test $ac_prog = install && |
c6b750e1 | 2416 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e5c3f801 NN |
2417 | # AIX install. It has an incompatible calling convention. |
2418 | : | |
c6b750e1 DJ |
2419 | elif test $ac_prog = install && |
2420 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2421 | # program-specific install script used by HP pwplus--don't use. | |
2422 | : | |
e5c3f801 | 2423 | else |
58c85be7 RW |
2424 | rm -rf conftest.one conftest.two conftest.dir |
2425 | echo one > conftest.one | |
2426 | echo two > conftest.two | |
2427 | mkdir conftest.dir | |
2428 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2429 | test -s conftest.one && test -s conftest.two && | |
2430 | test -s conftest.dir/conftest.one && | |
2431 | test -s conftest.dir/conftest.two | |
2432 | then | |
2433 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2434 | break 3 | |
2435 | fi | |
e5c3f801 NN |
2436 | fi |
2437 | fi | |
2438 | done | |
c6b750e1 DJ |
2439 | done |
2440 | ;; | |
2441 | esac | |
81ecdfbb RW |
2442 | |
2443 | done | |
2444 | IFS=$as_save_IFS | |
c6b750e1 | 2445 | |
58c85be7 | 2446 | rm -rf conftest.one conftest.two conftest.dir |
e5c3f801 NN |
2447 | |
2448 | fi | |
2449 | if test "${ac_cv_path_install+set}" = set; then | |
c6b750e1 | 2450 | INSTALL=$ac_cv_path_install |
e5c3f801 | 2451 | else |
58c85be7 RW |
2452 | # As a last resort, use the slow shell script. Don't cache a |
2453 | # value for INSTALL within a source directory, because that will | |
e5c3f801 | 2454 | # break other packages using the cache if that directory is |
58c85be7 | 2455 | # removed, or if the value is a relative name. |
c6b750e1 | 2456 | INSTALL=$ac_install_sh |
e5c3f801 NN |
2457 | fi |
2458 | fi | |
81ecdfbb RW |
2459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2460 | $as_echo "$INSTALL" >&6; } | |
e5c3f801 NN |
2461 | |
2462 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2463 | # It thinks the first close brace ends the variable substitution. | |
2464 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2465 | ||
c6b750e1 | 2466 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
e5c3f801 NN |
2467 | |
2468 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2469 | ||
81ecdfbb RW |
2470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2471 | $as_echo_n "checking whether ln works... " >&6; } | |
2472 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2473 | $as_echo_n "(cached) " >&6 | |
656fdd47 PB |
2474 | else |
2475 | rm -f conftestdata_t | |
2476 | echo >conftestdata_f | |
2477 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2478 | then | |
2479 | acx_cv_prog_LN=ln | |
2480 | else | |
2481 | acx_cv_prog_LN=no | |
2482 | fi | |
2483 | rm -f conftestdata_f conftestdata_t | |
2484 | ||
2485 | fi | |
2486 | if test $acx_cv_prog_LN = no; then | |
2487 | LN="cp" | |
81ecdfbb RW |
2488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2489 | $as_echo "no, using $LN" >&6; } | |
656fdd47 PB |
2490 | else |
2491 | LN="$acx_cv_prog_LN" | |
81ecdfbb RW |
2492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2493 | $as_echo "yes" >&6; } | |
656fdd47 PB |
2494 | fi |
2495 | ||
81ecdfbb RW |
2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2497 | $as_echo_n "checking whether ln -s works... " >&6; } | |
c6b750e1 DJ |
2498 | LN_S=$as_ln_s |
2499 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2501 | $as_echo "yes" >&6; } | |
cac3d6c4 | 2502 | else |
81ecdfbb RW |
2503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2504 | $as_echo "no, using $LN_S" >&6; } | |
dfdffa2c PB |
2505 | fi |
2506 | ||
8e957354 PB |
2507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2508 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2509 | if test "${ac_cv_path_SED+set}" = set; then : | |
2510 | $as_echo_n "(cached) " >&6 | |
2511 | else | |
2512 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2513 | for ac_i in 1 2 3 4 5 6 7; do | |
2514 | ac_script="$ac_script$as_nl$ac_script" | |
2515 | done | |
2516 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2517 | { ac_script=; unset ac_script;} | |
2518 | if test -z "$SED"; then | |
2519 | ac_path_SED_found=false | |
2520 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2522 | for as_dir in $PATH | |
2523 | do | |
2524 | IFS=$as_save_IFS | |
2525 | test -z "$as_dir" && as_dir=. | |
2526 | for ac_prog in sed gsed; do | |
2527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2528 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2529 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2530 | # Check for GNU ac_path_SED and select it if it is found. | |
2531 | # Check for GNU $ac_path_SED | |
2532 | case `"$ac_path_SED" --version 2>&1` in | |
2533 | *GNU*) | |
2534 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2535 | *) | |
2536 | ac_count=0 | |
2537 | $as_echo_n 0123456789 >"conftest.in" | |
2538 | while : | |
2539 | do | |
2540 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2541 | mv "conftest.tmp" "conftest.in" | |
2542 | cp "conftest.in" "conftest.nl" | |
2543 | $as_echo '' >> "conftest.nl" | |
2544 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2545 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2546 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2547 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2548 | # Best one so far, save it but keep looking for a better one | |
2549 | ac_cv_path_SED="$ac_path_SED" | |
2550 | ac_path_SED_max=$ac_count | |
2551 | fi | |
2552 | # 10*(2^10) chars as input seems more than enough | |
2553 | test $ac_count -gt 10 && break | |
2554 | done | |
2555 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2556 | esac | |
2557 | ||
2558 | $ac_path_SED_found && break 3 | |
2559 | done | |
2560 | done | |
2561 | done | |
2562 | IFS=$as_save_IFS | |
2563 | if test -z "$ac_cv_path_SED"; then | |
2564 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2565 | fi | |
2566 | else | |
2567 | ac_cv_path_SED=$SED | |
2568 | fi | |
2569 | ||
2570 | fi | |
2571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2572 | $as_echo "$ac_cv_path_SED" >&6; } | |
2573 | SED="$ac_cv_path_SED" | |
2574 | rm -f conftest.sed | |
2575 | ||
2576 | for ac_prog in gawk mawk nawk awk | |
2577 | do | |
2578 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2579 | set dummy $ac_prog; ac_word=$2 | |
2580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2581 | $as_echo_n "checking for $ac_word... " >&6; } | |
2582 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2583 | $as_echo_n "(cached) " >&6 | |
2584 | else | |
2585 | if test -n "$AWK"; then | |
2586 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2587 | else | |
2588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2589 | for as_dir in $PATH | |
2590 | do | |
2591 | IFS=$as_save_IFS | |
2592 | test -z "$as_dir" && as_dir=. | |
2593 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2594 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2595 | ac_cv_prog_AWK="$ac_prog" | |
2596 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2597 | break 2 | |
2598 | fi | |
2599 | done | |
2600 | done | |
2601 | IFS=$as_save_IFS | |
2602 | ||
2603 | fi | |
2604 | fi | |
2605 | AWK=$ac_cv_prog_AWK | |
2606 | if test -n "$AWK"; then | |
2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2608 | $as_echo "$AWK" >&6; } | |
2609 | else | |
2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2611 | $as_echo "no" >&6; } | |
2612 | fi | |
2613 | ||
2614 | ||
2615 | test -n "$AWK" && break | |
2616 | done | |
2617 | ||
e5c3f801 | 2618 | |
0fdbe983 DJ |
2619 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2620 | ||
2621 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2622 | # a relative path. | |
2623 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2624 | INSTALL="${srcpwd}/install-sh -c" | |
2625 | fi | |
2626 | ||
a0da8069 NN |
2627 | # Set srcdir to "." if that's what it is. |
2628 | # This is important for multilib support. | |
2629 | pwd=`${PWDCMD-pwd}` | |
a0da8069 NN |
2630 | if test "${pwd}" = "${srcpwd}" ; then |
2631 | srcdir=. | |
252b5132 RH |
2632 | fi |
2633 | ||
a0da8069 | 2634 | topsrcdir=$srcpwd |
252b5132 | 2635 | |
a0da8069 | 2636 | extra_host_args= |
afefada0 | 2637 | |
a0da8069 NN |
2638 | ### To add a new directory to the tree, first choose whether it is a target |
2639 | ### or a host dependent tool. Then put it into the appropriate list | |
2640 | ### (library or tools, host or target), doing a dependency sort. | |
252b5132 | 2641 | |
c6b750e1 | 2642 | # Subdirs will be configured in the order listed in build_configdirs, |
a0da8069 | 2643 | # configdirs, or target_configdirs; see the serialization section below. |
252b5132 | 2644 | |
c6b750e1 DJ |
2645 | # Dependency sorting is only needed when *configuration* must be done in |
2646 | # a particular order. In all cases a dependency should be specified in | |
a0da8069 | 2647 | # the Makefile, whether or not it's implicitly specified here. |
252b5132 | 2648 | |
a0da8069 NN |
2649 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2650 | # cause circular dependencies and break everything horribly. | |
252b5132 | 2651 | |
6a9cf61e PB |
2652 | # these library is used by various programs built for the build |
2653 | # environment | |
2654 | # | |
2655 | build_libs="build-libiberty" | |
2656 | ||
2657 | # these tools are built for the build environment | |
a90ef4bf | 2658 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
6a9cf61e | 2659 | |
a0da8069 NN |
2660 | # these libraries are used by various programs built for the host environment |
2661 | # | |
a90ef4bf | 2662 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv" |
a0da8069 | 2663 | |
a0da8069 NN |
2664 | # these tools are built for the host environment |
2665 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2666 | # know that we are building the simulator. | |
2667 | # binutils, gas and ld appear in that order because it makes sense to run | |
2668 | # "make check" in that particular order. | |
e6de499b | 2669 | # If --enable-gold is used, "gold" may replace "ld". |
a90ef4bf | 2670 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools" |
a0da8069 NN |
2671 | |
2672 | # libgcj represents the runtime libraries only used by gcj. | |
2673 | libgcj="target-libffi \ | |
a0da8069 | 2674 | target-zlib \ |
a0da8069 NN |
2675 | target-libjava" |
2676 | ||
2677 | # these libraries are built for the target environment, and are built after | |
2678 | # the host libraries and the host tools (which may be a cross compiler) | |
ffdd6afc | 2679 | # Note that libiberty is not a target library. |
b1299c4e | 2680 | target_libraries="target-libgcc \ |
a0da8069 NN |
2681 | target-libgloss \ |
2682 | target-newlib \ | |
cff87f51 | 2683 | target-libgomp \ |
b9459e83 | 2684 | target-libstdc++-v3 \ |
4b1cb4fe | 2685 | target-libmudflap \ |
bb780410 | 2686 | target-libssp \ |
e552509b | 2687 | target-libquadmath \ |
4b1cb4fe | 2688 | target-libgfortran \ |
4f0ef2d8 | 2689 | target-boehm-gc \ |
83326456 | 2690 | ${libgcj} \ |
a2592b1b | 2691 | target-libobjc \ |
e552509b ILT |
2692 | target-libada \ |
2693 | target-libgo" | |
a0da8069 | 2694 | |
9c14acb8 NN |
2695 | # these tools are built using the target libraries, and are intended to |
2696 | # run only in the target environment | |
a0da8069 | 2697 | # |
9c14acb8 | 2698 | # note: any program that *uses* libraries that are in the "target_libraries" |
0377a422 | 2699 | # list belongs in this list. |
a0da8069 | 2700 | # |
a90ef4bf | 2701 | target_tools="target-rda" |
252b5132 | 2702 | |
a0da8069 | 2703 | ################################################################################ |
252b5132 | 2704 | |
a0da8069 NN |
2705 | ## All tools belong in one of the four categories, and are assigned above |
2706 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2707 | ## is important because configure will choke if they ever get through. | |
2708 | ## ${configdirs} is directories we build using the host tools. | |
2709 | ## ${target_configdirs} is directories we build using the target tools. | |
a0da8069 | 2710 | configdirs=`echo ${host_libs} ${host_tools}` |
9c14acb8 | 2711 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
ee025550 | 2712 | build_configdirs=`echo ${build_libs} ${build_tools}` |
dd12c3a8 | 2713 | |
9cc8ae67 PB |
2714 | |
2715 | ||
a0da8069 | 2716 | ################################################################################ |
252b5132 | 2717 | |
a0da8069 | 2718 | srcname="gnu development package" |
252b5132 | 2719 | |
a0da8069 NN |
2720 | # This gets set non-empty for some net releases of packages. |
2721 | appdirs="" | |
252b5132 | 2722 | |
a0da8069 NN |
2723 | # Define is_cross_compiler to save on calls to 'test'. |
2724 | is_cross_compiler= | |
2725 | if test x"${host}" = x"${target}" ; then | |
2726 | is_cross_compiler=no | |
252b5132 | 2727 | else |
a0da8069 | 2728 | is_cross_compiler=yes |
c6b750e1 | 2729 | fi |
252b5132 | 2730 | |
9175bfc0 | 2731 | # Find the build and target subdir names. |
dd12c3a8 | 2732 | |
66a79c16 DJ |
2733 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2734 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2735 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2736 | # However, they still use the build modules, because the corresponding | |
2737 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2738 | # finishes. So: | |
2739 | # - build_subdir is where we find build modules, and never changes. | |
2740 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2741 | ||
2742 | # Prefix 'build-' so this never conflicts with target_subdir. | |
dd12c3a8 | 2743 | build_subdir="build-${build_noncanonical}" |
c6b750e1 | 2744 | |
81ecdfbb RW |
2745 | # Check whether --with-build-libsubdir was given. |
2746 | if test "${with_build_libsubdir+set}" = set; then : | |
2747 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
66a79c16 DJ |
2748 | else |
2749 | build_libsubdir="$build_subdir" | |
81ecdfbb RW |
2750 | fi |
2751 | ||
b00612cc PB |
2752 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2753 | if ( test $srcdir = . && test -d gcc ) \ | |
2754 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2755 | host_subdir="host-${host_noncanonical}" | |
2756 | else | |
2757 | host_subdir=. | |
2758 | fi | |
dd12c3a8 NN |
2759 | # No prefix. |
2760 | target_subdir=${target_noncanonical} | |
c6b750e1 | 2761 | |
2fd0b40b RW |
2762 | # Be sure to cover against remnants of an in-tree build. |
2763 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2764 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2765 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2766 | fi | |
252b5132 | 2767 | |
a0da8069 NN |
2768 | # Skipdirs are removed silently. |
2769 | skipdirs= | |
2770 | # Noconfigdirs are removed loudly. | |
2771 | noconfigdirs="" | |
252b5132 | 2772 | |
a0da8069 NN |
2773 | use_gnu_ld= |
2774 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2775 | if test x$with_gnu_ld = xno ; then | |
2776 | use_gnu_ld=no | |
93f9b408 | 2777 | noconfigdirs="$noconfigdirs ld gold" |
252b5132 RH |
2778 | fi |
2779 | ||
a0da8069 NN |
2780 | use_gnu_as= |
2781 | # Make sure we don't let GNU as be added if we didn't want it. | |
2782 | if test x$with_gnu_as = xno ; then | |
2783 | use_gnu_as=no | |
2784 | noconfigdirs="$noconfigdirs gas" | |
252b5132 RH |
2785 | fi |
2786 | ||
700d40ca ILT |
2787 | use_included_zlib= |
2788 | # Make sure we don't let ZLIB be added if we didn't want it. | |
2789 | if test x$with_system_zlib = xyes ; then | |
2790 | use_included_zlib=no | |
2791 | noconfigdirs="$noconfigdirs zlib" | |
2792 | fi | |
2793 | ||
c6b750e1 | 2794 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2795 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2796 | |
a0da8069 NN |
2797 | case ${with_x} in |
2798 | yes | "") ;; # the default value for this tree is that X11 is available | |
2799 | no) | |
675c6968 | 2800 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2801 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2802 | enable_gdbtk=no |
a0da8069 NN |
2803 | ;; |
2804 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2805 | esac | |
252b5132 | 2806 | |
0377a422 | 2807 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2808 | # Remove these if host=target. |
2809 | cross_only="target-libgloss target-newlib target-opcodes" | |
2810 | ||
2811 | case $is_cross_compiler in | |
2812 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2813 | esac |
252b5132 | 2814 | |
a0da8069 NN |
2815 | # If both --with-headers and --with-libs are specified, default to |
2816 | # --without-newlib. | |
32be62b5 RS |
2817 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2818 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
2819 | if test x"${with_newlib}" = x ; then |
2820 | with_newlib=no | |
2821 | fi | |
252b5132 RH |
2822 | fi |
2823 | ||
a0da8069 NN |
2824 | # Recognize --with-newlib/--without-newlib. |
2825 | case ${with_newlib} in | |
2826 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2827 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2828 | esac | |
252b5132 | 2829 | |
c7791212 NC |
2830 | # Handle --enable-gold, --enable-ld. |
2831 | # --disable-gold [--enable-ld] | |
2832 | # Build only ld. Default option. | |
d3b50760 L |
2833 | # --enable-gold [--enable-ld] |
2834 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2835 | # as "ld.bfd" and "ld". | |
2836 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
2837 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2838 | # install ld as "ld.bfd". | |
2839 | # --enable-gold[=default] --disable-ld | |
2840 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2841 | # --enable-gold --enable-ld=default | |
d3b50760 L |
2842 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2843 | # and ld.bfd). | |
c7791212 NC |
2844 | # In other words, ld is default |
2845 | # --enable-gold=default --enable-ld=default | |
2846 | # Error. | |
2847 | ||
2848 | default_ld= | |
81ecdfbb RW |
2849 | # Check whether --enable-gold was given. |
2850 | if test "${enable_gold+set}" = set; then : | |
2851 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
2852 | else |
2853 | ENABLE_GOLD=no | |
81ecdfbb RW |
2854 | fi |
2855 | ||
c7791212 NC |
2856 | case "${ENABLE_GOLD}" in |
2857 | yes|default) | |
e6de499b NC |
2858 | # Check for ELF target. |
2859 | is_elf=no | |
2860 | case "${target}" in | |
2861 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2862 | | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ | |
5b806d27 NC |
2863 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
2864 | | *-*-solaris2* | *-*-nto*) | |
e6de499b NC |
2865 | case "${target}" in |
2866 | *-*-linux*aout* | *-*-linux*oldld*) | |
2867 | ;; | |
2868 | *) | |
2869 | is_elf=yes | |
2870 | ;; | |
2871 | esac | |
2872 | esac | |
2873 | ||
2874 | if test "$is_elf" = "yes"; then | |
2875 | # Check for target supported by gold. | |
93f9b408 | 2876 | case "${target}" in |
e6de499b | 2877 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*) |
c7791212 NC |
2878 | configdirs="$configdirs gold" |
2879 | if test x${ENABLE_GOLD} = xdefault; then | |
2880 | default_ld=gold | |
2881 | fi | |
e6de499b | 2882 | ENABLE_GOLD=yes |
93f9b408 ILT |
2883 | ;; |
2884 | esac | |
e6de499b NC |
2885 | fi |
2886 | ;; | |
2887 | no) | |
2888 | ;; | |
2889 | *) | |
2890 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2891 | ;; | |
c7791212 NC |
2892 | esac |
2893 | ||
2894 | # Check whether --enable-ld was given. | |
2895 | if test "${enable_ld+set}" = set; then : | |
2896 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2897 | else | |
2898 | ENABLE_LD=yes | |
2899 | fi | |
2900 | ||
2901 | ||
2902 | case "${ENABLE_LD}" in | |
2903 | default) | |
d3b50760 | 2904 | if test x${default_ld} != x; then |
c7791212 NC |
2905 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
2906 | fi | |
2907 | ;; | |
2908 | yes) | |
2909 | ;; | |
2910 | no) | |
2911 | if test x${ENABLE_GOLD} != xyes; then | |
2912 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
2913 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
2914 | fi | |
2915 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
2916 | ;; | |
2917 | *) | |
2918 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
2919 | ;; | |
2920 | esac | |
93f9b408 | 2921 | |
a0da8069 | 2922 | # Configure extra directories which are host specific |
252b5132 | 2923 | |
a0da8069 NN |
2924 | case "${host}" in |
2925 | *-cygwin*) | |
2926 | configdirs="$configdirs libtermcap" ;; | |
2927 | esac | |
252b5132 | 2928 | |
59f7ec45 HPN |
2929 | # A target can indicate whether a language isn't supported for some reason. |
2930 | # Only spaces may be used in this macro; not newlines or tabs. | |
2931 | unsupported_languages= | |
2932 | ||
c6b750e1 | 2933 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
2934 | # target this usually means that a port of the program doesn't |
2935 | # exist yet. | |
252b5132 | 2936 | |
a0da8069 | 2937 | case "${host}" in |
3516a403 | 2938 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 2939 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 2940 | ;; |
a0da8069 | 2941 | esac |
252b5132 | 2942 | |
4b1cb4fe | 2943 | |
89a1e9c3 PB |
2944 | # Check whether --enable-libquadmath was given. |
2945 | if test "${enable_libquadmath+set}" = set; then : | |
2946 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
2947 | else | |
2948 | ENABLE_LIBQUADMATH=yes | |
2949 | fi | |
2950 | ||
2951 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
2952 | noconfigdirs="$noconfigdirs target-libquadmath" | |
2953 | fi | |
2954 | ||
2955 | ||
2956 | # Check whether --enable-libquadmath-support was given. | |
2957 | if test "${enable_libquadmath_support+set}" = set; then : | |
2958 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
2959 | else | |
2960 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
2961 | fi | |
2962 | ||
2963 | enable_libquadmath_support= | |
2964 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
2965 | enable_libquadmath_support=no | |
2966 | fi | |
2967 | ||
2968 | ||
81ecdfbb RW |
2969 | # Check whether --enable-libada was given. |
2970 | if test "${enable_libada+set}" = set; then : | |
2971 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
2972 | else |
2973 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
2974 | fi |
2975 | ||
a2592b1b | 2976 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 2977 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
2978 | fi |
2979 | ||
81ecdfbb RW |
2980 | # Check whether --enable-libssp was given. |
2981 | if test "${enable_libssp+set}" = set; then : | |
2982 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
2983 | else |
2984 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
2985 | fi |
2986 | ||
5f128533 | 2987 | |
a0da8069 NN |
2988 | # Save it here so that, even in case of --enable-libgcj, if the Java |
2989 | # front-end isn't enabled, we still get libgcj disabled. | |
2990 | libgcj_saved=$libgcj | |
2991 | case $enable_libgcj in | |
2992 | yes) | |
2993 | # If we reset it here, it won't get added to noconfigdirs in the | |
2994 | # target-specific build rules, so it will be forcibly enabled | |
2995 | # (unless the Java language itself isn't enabled). | |
2996 | libgcj= | |
2997 | ;; | |
2998 | no) | |
2999 | # Make sure we get it printed in the list of not supported target libs. | |
9e1a94f4 ILT |
3000 | # Don't disable libffi, though, other languages use it. |
3001 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
33d23ee8 ILT |
3002 | # Clear libgcj_saved so that even if java is enabled libffi won't be |
3003 | # built. | |
3004 | libgcj_saved= | |
a0da8069 NN |
3005 | ;; |
3006 | esac | |
252b5132 | 3007 | |
ffdd6afc ILT |
3008 | # Check whether --enable-static-libjava was given. |
3009 | if test "${enable_static_libjava+set}" = set; then : | |
3010 | enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval | |
3011 | else | |
3012 | ENABLE_STATIC_LIBJAVA=no | |
3013 | fi | |
3014 | ||
3015 | enable_static_libjava= | |
3016 | if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then | |
3017 | enable_static_libjava=yes | |
3018 | fi | |
3019 | ||
3020 | if test x$enable_static_libjava != xyes ; then | |
3021 | EXTRA_CONFIGARGS_LIBJAVA=--disable-static | |
3022 | fi | |
3023 | ||
4b1cb4fe | 3024 | |
a6df5a19 PB |
3025 | # Disable libmudflap on some systems. |
3026 | if test x$enable_libmudflap = x ; then | |
3e707e94 | 3027 | case "${target}" in |
29383458 | 3028 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu) |
3d6dfe0f | 3029 | # Enable libmudflap by default in GNU and friends. |
3e707e94 PB |
3030 | ;; |
3031 | *-*-freebsd*) | |
3032 | # Enable libmudflap by default in FreeBSD. | |
3033 | ;; | |
3034 | *) | |
3035 | # Disable it by default everywhere else. | |
3036 | noconfigdirs="$noconfigdirs target-libmudflap" | |
3037 | ;; | |
3038 | esac | |
a6df5a19 | 3039 | fi |
4b1cb4fe | 3040 | |
a6df5a19 PB |
3041 | # Disable libgomp on non POSIX hosted systems. |
3042 | if test x$enable_libgomp = x ; then | |
b3ded179 PB |
3043 | # Enable libgomp by default on hosted POSIX systems. |
3044 | case "${target}" in | |
29383458 | 3045 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
b3ded179 | 3046 | ;; |
5b806d27 | 3047 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
b3ded179 | 3048 | ;; |
1f111696 | 3049 | *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*) |
b3ded179 PB |
3050 | ;; |
3051 | *-*-darwin* | *-*-aix*) | |
3052 | ;; | |
3053 | *) | |
3054 | noconfigdirs="$noconfigdirs target-libgomp" | |
3055 | ;; | |
3056 | esac | |
a6df5a19 | 3057 | fi |
b3ded179 | 3058 | |
065a5627 JM |
3059 | # Disable libssp for some systems. |
3060 | case "${target}" in | |
3061 | avr-*-*) | |
c5f5c3c2 | 3062 | # No hosted I/O support. |
065a5627 JM |
3063 | noconfigdirs="$noconfigdirs target-libssp" |
3064 | ;; | |
3065 | powerpc-*-aix* | rs6000-*-aix*) | |
3066 | noconfigdirs="$noconfigdirs target-libssp" | |
3067 | ;; | |
065a5627 JM |
3068 | esac |
3069 | ||
065a5627 JM |
3070 | # Disable libstdc++-v3 for some systems. |
3071 | case "${target}" in | |
3072 | *-*-vxworks*) | |
3073 | # VxWorks uses the Dinkumware C++ library. | |
3074 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3075 | ;; | |
3076 | arm*-wince-pe*) | |
3077 | # the C++ libraries don't build on top of CE's C libraries | |
3078 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3079 | ;; | |
3080 | avr-*-*) | |
3081 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3082 | ;; | |
3083 | esac | |
3084 | ||
3085 | # Disable Fortran for some systems. | |
3086 | case "${target}" in | |
3087 | mmix-*-*) | |
3088 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3089 | unsupported_languages="$unsupported_languages fortran" | |
3090 | ;; | |
3091 | esac | |
3092 | ||
0827f9a6 | 3093 | # Disable Java if libffi is not supported. |
9863d716 | 3094 | case "${target}" in |
0827f9a6 JM |
3095 | alpha*-*-*) |
3096 | ;; | |
3097 | arm*-*-*) | |
3098 | ;; | |
3099 | cris-*-*) | |
3100 | ;; | |
3101 | frv-*-*) | |
3102 | ;; | |
3103 | hppa*-*-linux*) | |
3104 | ;; | |
3105 | hppa*-*-hpux*) | |
3106 | ;; | |
3107 | i?86-*-*) | |
3108 | ;; | |
3109 | ia64*-*-*) | |
3110 | ;; | |
3111 | m32r*-*-*) | |
3112 | ;; | |
3113 | m68k-*-*) | |
3114 | ;; | |
3115 | mips-sgi-irix6.* | mips*-*-rtems*) | |
3116 | ;; | |
3117 | mips*-*-linux*) | |
3118 | ;; | |
3119 | powerpc*-*-linux*) | |
3120 | ;; | |
3121 | powerpc-*-darwin*) | |
3122 | ;; | |
3123 | powerpc-*-aix* | rs6000-*-aix*) | |
3124 | ;; | |
3125 | powerpc-*-freebsd*) | |
3126 | ;; | |
3127 | powerpc64-*-freebsd*) | |
3128 | ;; | |
3129 | powerpc*-*-rtems*) | |
9863d716 | 3130 | ;; |
0827f9a6 JM |
3131 | s390-*-* | s390x-*-*) |
3132 | ;; | |
3133 | sh-*-* | sh[34]*-*-*) | |
3134 | ;; | |
3135 | sh64-*-* | sh5*-*-*) | |
3136 | ;; | |
3137 | sparc*-*-*) | |
3138 | ;; | |
3139 | x86_64-*-*) | |
3140 | ;; | |
3141 | *-*-*) | |
3142 | unsupported_languages="$unsupported_languages java" | |
3143 | ;; | |
3144 | esac | |
3145 | ||
3146 | # Disable Java, libgcj or related libraries for some systems. | |
3147 | case "${target}" in | |
9863d716 JM |
3148 | powerpc-*-darwin*) |
3149 | ;; | |
3150 | i[3456789]86-*-darwin*) | |
3151 | ;; | |
3152 | x86_64-*-darwin[912]*) | |
3153 | ;; | |
3154 | *-*-darwin*) | |
3155 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3156 | ;; | |
9863d716 JM |
3157 | *-*-netware*) |
3158 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3159 | ;; | |
3160 | *-*-rtems*) | |
3161 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3162 | ;; | |
3163 | *-*-tpf*) | |
3164 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3165 | ;; | |
3166 | *-*-uclinux*) | |
3167 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3168 | ;; | |
3169 | *-*-vxworks*) | |
3170 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3171 | ;; | |
9863d716 JM |
3172 | alpha*-*-*vms*) |
3173 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3174 | ;; | |
0827f9a6 | 3175 | arm-wince-pe) |
9863d716 JM |
3176 | noconfigdirs="$noconfigdirs ${libgcj}" |
3177 | ;; | |
9863d716 JM |
3178 | arm*-*-symbianelf*) |
3179 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3180 | ;; | |
9863d716 | 3181 | bfin-*-*) |
9863d716 JM |
3182 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3183 | ;; | |
9863d716 JM |
3184 | cris-*-* | crisv32-*-*) |
3185 | unsupported_languages="$unsupported_languages java" | |
3186 | case "${target}" in | |
3187 | *-*-linux*) | |
3188 | ;; | |
3189 | *) # See PR46792 regarding target-libffi. | |
3190 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3191 | esac | |
3192 | ;; | |
9863d716 JM |
3193 | hppa*64*-*-linux*) |
3194 | # In this case, it's because the hppa64-linux target is for | |
3195 | # the kernel only at this point and has no libc, and thus no | |
3196 | # headers, crt*.o, etc., all of which are needed by these. | |
82ae827f | 3197 | unsupported_languages="$unsupported_languages java" |
9863d716 | 3198 | ;; |
82ae827f | 3199 | hppa*64*-*-hpux*) |
9863d716 JM |
3200 | noconfigdirs="$noconfigdirs ${libgcj}" |
3201 | ;; | |
3202 | hppa*-hp-hpux11*) | |
3203 | ;; | |
82ae827f | 3204 | hppa*-*-hpux*) |
9863d716 JM |
3205 | # According to Alexandre Oliva <[email protected]>, libjava won't |
3206 | # build on HP-UX 10.20. | |
3207 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3208 | ;; | |
9863d716 JM |
3209 | ia64*-*-*vms*) |
3210 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3211 | ;; | |
9863d716 JM |
3212 | i[3456789]86-w64-mingw*) |
3213 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3214 | ;; | |
3215 | i[3456789]86-*-mingw*) | |
3216 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3217 | ;; | |
3218 | x86_64-*-mingw*) | |
3219 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3220 | ;; | |
9863d716 JM |
3221 | mmix-*-*) |
3222 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
9863d716 JM |
3223 | ;; |
3224 | powerpc-*-aix*) | |
3225 | # copied from rs6000-*-* entry | |
3226 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3227 | ;; | |
9863d716 JM |
3228 | rs6000-*-aix*) |
3229 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3230 | ;; | |
9863d716 JM |
3231 | mips*-*-irix6*) |
3232 | # Linking libjava exceeds command-line length limits on at least | |
3233 | # IRIX 6.2, but not on IRIX 6.5. | |
3234 | # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham | |
3235 | # <[email protected]> | |
3236 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3237 | ;; | |
9863d716 JM |
3238 | *-*-lynxos*) |
3239 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3240 | ;; | |
9863d716 JM |
3241 | esac |
3242 | ||
691bb5a1 DD |
3243 | # Default libgloss CPU subdirectory. |
3244 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3245 | |
ff46fb8f JM |
3246 | case "${target}" in |
3247 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3248 | libgloss_dir=wince | |
3249 | ;; | |
3250 | arm*-*-*) | |
3251 | libgloss_dir=arm | |
3252 | ;; | |
3253 | cris-*-* | crisv32-*-*) | |
3254 | libgloss_dir=cris | |
3255 | ;; | |
3256 | hppa*-*-*) | |
3257 | libgloss_dir=pa | |
3258 | ;; | |
3259 | i[3456789]86-*-*) | |
3260 | libgloss_dir=i386 | |
3261 | ;; | |
3262 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3263 | libgloss_dir=m68hc11 | |
3264 | ;; | |
3265 | m68*-*-* | fido-*-*) | |
3266 | libgloss_dir=m68k | |
3267 | ;; | |
3268 | mips*-*-*) | |
3269 | libgloss_dir=mips | |
3270 | ;; | |
3271 | powerpc*-*-*) | |
3272 | libgloss_dir=rs6000 | |
3273 | ;; | |
3274 | sparc*-*-*) | |
3275 | libgloss_dir=sparc | |
3276 | ;; | |
3277 | esac | |
3278 | ||
c7e4b184 | 3279 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3280 | case "${target}" in |
c7e4b184 JM |
3281 | alpha*-dec-osf*) |
3282 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3283 | ;; | |
3284 | i[3456789]86-*-linux*) | |
3285 | # This section makes it possible to build newlib natively on linux. | |
3286 | # If we are using a cross compiler then don't configure newlib. | |
3287 | if test x${is_cross_compiler} != xno ; then | |
3288 | noconfigdirs="$noconfigdirs target-newlib" | |
3289 | fi | |
3290 | noconfigdirs="$noconfigdirs target-libgloss" | |
3291 | # If we are not using a cross compiler, do configure newlib. | |
3292 | # Note however, that newlib will only be configured in this situation | |
3293 | # if the --with-newlib option has been given, because otherwise | |
3294 | # 'target-newlib' will appear in skipdirs. | |
3295 | ;; | |
3296 | i[3456789]86-*-rdos*) | |
3297 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3298 | ;; | |
3299 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3300 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3301 | ;; | |
3302 | sparc-*-sunos4*) | |
3303 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3304 | ;; | |
3305 | *-*-aix*) | |
3306 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3307 | ;; | |
3308 | *-*-beos*) | |
3309 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3310 | ;; | |
a0da8069 | 3311 | *-*-chorusos) |
b2f14e4a | 3312 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3313 | ;; |
c7e4b184 JM |
3314 | *-*-dragonfly*) |
3315 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3316 | ;; | |
3317 | *-*-freebsd*) | |
3318 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3319 | ;; | |
3320 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3321 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3322 | ;; | |
3323 | *-*-lynxos*) | |
3324 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3325 | ;; | |
3326 | *-*-mingw*) | |
3327 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3328 | ;; | |
3329 | *-*-netbsd*) | |
3330 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3331 | ;; | |
3332 | *-*-netware*) | |
3333 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3334 | ;; | |
3335 | *-*-tpf*) | |
3336 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3337 | ;; | |
3338 | *-*-uclinux*) | |
3339 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3340 | ;; | |
3341 | *-*-vxworks*) | |
3342 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3343 | ;; | |
3344 | esac | |
3345 | ||
3346 | case "${target}" in | |
3347 | *-*-chorusos) | |
3348 | ;; | |
24741ab2 | 3349 | powerpc-*-darwin*) |
9d39db92 | 3350 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3351 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3352 | ;; |
85bd1942 TG |
3353 | i[3456789]86-*-darwin*) |
3354 | noconfigdirs="$noconfigdirs ld gprof" | |
3355 | noconfigdirs="$noconfigdirs sim target-rda" | |
3356 | ;; | |
e8a5fa9c | 3357 | x86_64-*-darwin[912]*) |
652dec25 TG |
3358 | noconfigdirs="$noconfigdirs ld gas gprof" |
3359 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3360 | ;; |
04d1ab34 | 3361 | *-*-darwin*) |
d320aacb | 3362 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3363 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3364 | ;; |
5b806d27 | 3365 | *-*-dragonfly*) |
5b806d27 | 3366 | ;; |
de0b4a87 | 3367 | *-*-freebsd*) |
4b1cb4fe DD |
3368 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3369 | && test -f /usr/local/include/gmp.h; then | |
3370 | with_gmp=/usr/local | |
3371 | fi | |
4b1cb4fe | 3372 | ;; |
f8a495c8 NC |
3373 | *-*-kaos*) |
3374 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3375 | noconfigdirs="$noconfigdirs target-libgloss" |
3376 | ;; | |
a0da8069 | 3377 | *-*-netbsd*) |
a0da8069 | 3378 | ;; |
2a3124ca | 3379 | *-*-netware*) |
a0da8069 NN |
3380 | ;; |
3381 | *-*-rtems*) | |
9863d716 | 3382 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3383 | ;; |
1587117a EC |
3384 | # The tpf target doesn't support gdb yet. |
3385 | *-*-tpf*) | |
c7e4b184 | 3386 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3387 | ;; |
c1968181 | 3388 | *-*-uclinux*) |
c7e4b184 | 3389 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3390 | ;; |
a0da8069 | 3391 | *-*-vxworks*) |
a0da8069 NN |
3392 | ;; |
3393 | alpha*-dec-osf*) | |
3394 | # ld works, but does not support shared libraries. | |
a0da8069 | 3395 | # gas doesn't generate exception information. |
c7e4b184 | 3396 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3397 | ;; |
3398 | alpha*-*-*vms*) | |
9863d716 | 3399 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3400 | ;; |
a0da8069 NN |
3401 | alpha*-*-*) |
3402 | # newlib is not 64 bit ready | |
9863d716 | 3403 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3404 | ;; |
a0da8069 | 3405 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3406 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 NN |
3407 | ;; |
3408 | arc-*-*) | |
782cb41f | 3409 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3410 | ;; |
a0da8069 | 3411 | arm-*-pe*) |
9863d716 | 3412 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3413 | ;; |
a0da8069 | 3414 | arm-*-riscix*) |
b2f14e4a | 3415 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3416 | ;; |
a0da8069 | 3417 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3418 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3419 | ;; |
b2f14e4a JM |
3420 | tic54x-*-*) |
3421 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3422 | ;; |
52310858 | 3423 | cr16-*-*) |
9863d716 | 3424 | noconfigdirs="$noconfigdirs gdb" |
52310858 | 3425 | ;; |
a0da8069 | 3426 | d10v-*-*) |
b2f14e4a | 3427 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3428 | ;; |
3429 | d30v-*-*) | |
b2f14e4a | 3430 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3431 | ;; |
3432 | fr30-*-elf*) | |
9863d716 | 3433 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3434 | ;; |
20135e4c | 3435 | moxie-*-*) |
20135e4c NC |
3436 | noconfigdirs="$noconfigdirs gprof" |
3437 | ;; | |
a0da8069 | 3438 | h8300*-*-*) |
9863d716 | 3439 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3440 | ;; |
3441 | h8500-*-*) | |
b2f14e4a | 3442 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3443 | ;; |
caeba88f | 3444 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3445 | ;; |
93cc359e | 3446 | hppa*64*-*-linux*) |
a0da8069 | 3447 | ;; |
f0ff0f90 | 3448 | hppa*-*-linux*) |
5dcac624 | 3449 | ;; |
a0da8069 | 3450 | hppa*-*-*elf* | \ |
a0da8069 NN |
3451 | hppa*-*-lites* | \ |
3452 | hppa*-*-openbsd* | \ | |
3453 | hppa*64*-*-*) | |
4f0ef2d8 CD |
3454 | ;; |
3455 | hppa*-hp-hpux11*) | |
0377a422 | 3456 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3457 | ;; |
691bb5a1 | 3458 | hppa*-*-pro*) |
691bb5a1 | 3459 | ;; |
a0da8069 | 3460 | hppa*-*-*) |
9863d716 | 3461 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3462 | ;; |
b07c2aad | 3463 | i960-*-*) |
b2f14e4a | 3464 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3465 | ;; |
a0da8069 NN |
3466 | ia64*-*-elf*) |
3467 | # No gdb support yet. | |
0377a422 | 3468 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3469 | ;; |
3470 | ia64*-**-hpux*) | |
92c9a463 | 3471 | # No ld support yet. |
9863d716 | 3472 | noconfigdirs="$noconfigdirs libgui itcl ld" |
a0da8069 | 3473 | ;; |
19e99079 NC |
3474 | ia64*-*-*vms*) |
3475 | # No gdb or ld support yet. | |
9863d716 | 3476 | noconfigdirs="$noconfigdirs readline libgui itcl gdb ld" |
19e99079 | 3477 | ;; |
1f53ca9a | 3478 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3479 | ;; |
3480 | i[3456789]86-*-mingw*) | |
45055374 | 3481 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3482 | ;; |
a0da8069 NN |
3483 | *-*-cygwin*) |
3484 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3485 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3486 | # always build newlib if winsup directory is present. |
45055374 | 3487 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3488 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3489 | elif test -d "$srcdir/newlib"; then |
45055374 | 3490 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3491 | fi |
c6b750e1 | 3492 | ;; |
ec11bdc6 | 3493 | i[3456789]86-*-pe) |
782cb41f | 3494 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3495 | ;; |
ec11bdc6 | 3496 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3497 | # The linker does not yet know about weak symbols in COFF, |
3498 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3499 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3500 | ;; |
ec11bdc6 | 3501 | i[3456789]86-*-sco*) |
b2f14e4a | 3502 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3503 | ;; |
cff32a7c | 3504 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
a0da8069 NN |
3505 | noconfigdirs="$noconfigdirs target-libgloss" |
3506 | ;; | |
ec11bdc6 | 3507 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3508 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3509 | ;; |
ec11bdc6 | 3510 | i[3456789]86-*-beos*) |
c7e4b184 | 3511 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3512 | ;; |
b59bea8a | 3513 | i[3456789]86-*-rdos*) |
c7e4b184 | 3514 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3515 | ;; |
a0da8069 | 3516 | mmix-*-*) |
9863d716 | 3517 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3518 | ;; |
4970f871 | 3519 | mt-*-*) |
cdb9b172 AH |
3520 | noconfigdirs="$noconfigdirs sim" |
3521 | ;; | |
a0da8069 NN |
3522 | powerpc-*-aix*) |
3523 | # copied from rs6000-*-* entry | |
c7e4b184 | 3524 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3525 | ;; |
93cc359e | 3526 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 3527 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 3528 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
3529 | # always build newlib. |
3530 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3531 | ;; | |
3532 | # This is temporary until we can link against shared libraries | |
3533 | powerpcle-*-solaris*) | |
b2f14e4a | 3534 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
3535 | ;; |
3536 | powerpc-*-beos*) | |
c7e4b184 | 3537 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3538 | ;; |
a0da8069 | 3539 | rs6000-*-lynxos*) |
c7e4b184 | 3540 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3541 | ;; |
3542 | rs6000-*-aix*) | |
c7e4b184 | 3543 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3544 | ;; |
3545 | rs6000-*-*) | |
9863d716 | 3546 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3547 | ;; |
3548 | m68k-apollo-*) | |
b2f14e4a | 3549 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 3550 | ;; |
25a07265 | 3551 | microblaze*) |
9863d716 | 3552 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 3553 | ;; |
5bd8be13 | 3554 | mips*-sde-elf*) |
5bd8be13 RS |
3555 | if test x$with_newlib = xyes; then |
3556 | noconfigdirs="$noconfigdirs gprof" | |
3557 | fi | |
5bd8be13 | 3558 | ;; |
a0da8069 | 3559 | mips*-*-irix5*) |
b2f14e4a | 3560 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
3561 | ;; |
3562 | mips*-*-irix6*) | |
9863d716 | 3563 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3564 | ;; |
a0da8069 | 3565 | mips*-*-bsd*) |
b2f14e4a | 3566 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3567 | ;; |
a0da8069 | 3568 | mips*-*-linux*) |
a0da8069 NN |
3569 | ;; |
3570 | mips*-*-*) | |
9863d716 | 3571 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3572 | ;; |
dbf85af7 | 3573 | sh-*-* | sh64-*-*) |
e8a5fa9c RW |
3574 | case "${target}" in |
3575 | sh*-*-elf) | |
9863d716 | 3576 | ;; |
e8a5fa9c | 3577 | *) |
9863d716 | 3578 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 3579 | esac |
a0da8069 | 3580 | ;; |
a0da8069 | 3581 | sparc-*-sunos4*) |
c7e4b184 | 3582 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
3583 | use_gnu_ld=no |
3584 | fi | |
3585 | ;; | |
619a3713 | 3586 | tic6x-*-*) |
9863d716 | 3587 | noconfigdirs="$noconfigdirs gdb sim" |
619a3713 | 3588 | ;; |
eb4b2452 NC |
3589 | tilepro-*-* | tilegx-*-*) |
3590 | noconfigdirs="$noconfigdirs sim" | |
3591 | ;; | |
a0da8069 | 3592 | v810-*-*) |
b2f14e4a | 3593 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
3594 | ;; |
3595 | vax-*-*) | |
9863d716 | 3596 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3597 | ;; |
a0da8069 | 3598 | esac |
252b5132 | 3599 | |
a0da8069 NN |
3600 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3601 | # depends upon some newlib header files. | |
3602 | case "${noconfigdirs}" in | |
3603 | *target-libgloss*) ;; | |
3604 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3605 | esac | |
3606 | ||
a0da8069 | 3607 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
3608 | host_makefile_frag=/dev/null |
3609 | if test -d ${srcdir}/config ; then | |
3610 | case "${host}" in | |
ec11bdc6 | 3611 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
3612 | host_makefile_frag="config/mh-djgpp" |
3613 | ;; | |
3614 | *-cygwin*) | |
e33b51a6 | 3615 | |
81ecdfbb RW |
3616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3617 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 3618 | echo a >cygwin-cat-check |
1f53ca9a | 3619 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 3620 | rm cygwin-cat-check |
81ecdfbb RW |
3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3622 | $as_echo "yes" >&6; } | |
e33b51a6 | 3623 | else |
8ade07e9 | 3624 | rm cygwin-cat-check |
81ecdfbb RW |
3625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3626 | $as_echo "no" >&6; } | |
3627 | as_fn_error "The cat command does not ignore carriage return characters. | |
e33b51a6 NC |
3628 | Please either mount the build directory in binary mode or run the following |
3629 | commands before running any configure script: | |
3630 | set -o igncr | |
3631 | export SHELLOPTS | |
81ecdfbb | 3632 | " "$LINENO" 5 |
e33b51a6 | 3633 | fi |
e33b51a6 | 3634 | |
a0da8069 NN |
3635 | host_makefile_frag="config/mh-cygwin" |
3636 | ;; | |
8a1599ab | 3637 | *-mingw*) |
84e7906e | 3638 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 3639 | ;; |
a0da8069 NN |
3640 | *-interix*) |
3641 | host_makefile_frag="config/mh-interix" | |
3642 | ;; | |
da888c87 | 3643 | hppa*-hp-hpux10*) |
da888c87 | 3644 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 3645 | ;; |
3516a403 | 3646 | hppa*-hp-hpux*) |
da888c87 PB |
3647 | host_makefile_frag="config/mh-pa" |
3648 | ;; | |
3649 | hppa*-*) | |
3650 | host_makefile_frag="config/mh-pa" | |
3651 | ;; | |
e552509b ILT |
3652 | *-*-darwin*) |
3653 | host_makefile_frag="config/mh-darwin" | |
0df3d27f | 3654 | ;; |
f6d183c0 PB |
3655 | powerpc-*-aix*) |
3656 | host_makefile_frag="config/mh-ppc-aix" | |
3657 | ;; | |
3658 | rs6000-*-aix*) | |
3659 | host_makefile_frag="config/mh-ppc-aix" | |
3660 | ;; | |
a0da8069 NN |
3661 | esac |
3662 | fi | |
3663 | ||
9e07f89d | 3664 | if test "${build}" != "${host}" ; then |
1576798e PB |
3665 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3666 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 3667 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
1576798e PB |
3668 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3669 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
3670 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
e552509b | 3671 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
1576798e PB |
3672 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3673 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3674 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3675 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3676 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3677 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3678 | else | |
3679 | AR_FOR_BUILD="\$(AR)" | |
3680 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 3681 | CC_FOR_BUILD="\$(CC)" |
1576798e PB |
3682 | CXX_FOR_BUILD="\$(CXX)" |
3683 | GCJ_FOR_BUILD="\$(GCJ)" | |
3684 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
e552509b | 3685 | GOC_FOR_BUILD="\$(GOC)" |
1576798e PB |
3686 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3687 | LD_FOR_BUILD="\$(LD)" | |
3688 | NM_FOR_BUILD="\$(NM)" | |
3689 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3690 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3691 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
3692 | fi |
3693 | ||
3694 | ac_ext=c | |
c6b750e1 DJ |
3695 | ac_cpp='$CPP $CPPFLAGS' |
3696 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3697 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3698 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3699 | if test -n "$ac_tool_prefix"; then | |
3700 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3701 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3703 | $as_echo_n "checking for $ac_word... " >&6; } | |
3704 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3705 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
3706 | else |
3707 | if test -n "$CC"; then | |
3708 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3709 | else | |
3710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3711 | for as_dir in $PATH | |
3712 | do | |
3713 | IFS=$as_save_IFS | |
3714 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3715 | for ac_exec_ext in '' $ac_executable_extensions; do |
3716 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3717 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 3718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3719 | break 2 |
3720 | fi | |
3721 | done | |
81ecdfbb RW |
3722 | done |
3723 | IFS=$as_save_IFS | |
c6b750e1 DJ |
3724 | |
3725 | fi | |
3726 | fi | |
3727 | CC=$ac_cv_prog_CC | |
3728 | if test -n "$CC"; then | |
81ecdfbb RW |
3729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3730 | $as_echo "$CC" >&6; } | |
c6b750e1 | 3731 | else |
81ecdfbb RW |
3732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3733 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3734 | fi |
3735 | ||
81ecdfbb | 3736 | |
c6b750e1 DJ |
3737 | fi |
3738 | if test -z "$ac_cv_prog_CC"; then | |
3739 | ac_ct_CC=$CC | |
6a9cf61e | 3740 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 3741 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
3742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3743 | $as_echo_n "checking for $ac_word... " >&6; } | |
3744 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3745 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
3746 | else |
3747 | if test -n "$ac_ct_CC"; then | |
3748 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3749 | else | |
3750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3751 | for as_dir in $PATH | |
3752 | do | |
3753 | IFS=$as_save_IFS | |
3754 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3755 | for ac_exec_ext in '' $ac_executable_extensions; do |
3756 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3757 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 3758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3759 | break 2 |
3760 | fi | |
3761 | done | |
81ecdfbb RW |
3762 | done |
3763 | IFS=$as_save_IFS | |
c6b750e1 DJ |
3764 | |
3765 | fi | |
3766 | fi | |
3767 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3768 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3770 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 3771 | else |
81ecdfbb RW |
3772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3773 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3774 | fi |
3775 | ||
81ecdfbb RW |
3776 | if test "x$ac_ct_CC" = x; then |
3777 | CC="" | |
3778 | else | |
3779 | case $cross_compiling:$ac_tool_warned in | |
3780 | yes:) | |
3781 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3782 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3783 | ac_tool_warned=yes ;; | |
3784 | esac | |
3785 | CC=$ac_ct_CC | |
3786 | fi | |
c6b750e1 DJ |
3787 | else |
3788 | CC="$ac_cv_prog_CC" | |
3789 | fi | |
3790 | ||
3791 | if test -z "$CC"; then | |
81ecdfbb RW |
3792 | if test -n "$ac_tool_prefix"; then |
3793 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 3794 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
3795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3796 | $as_echo_n "checking for $ac_word... " >&6; } | |
3797 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3798 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
3799 | else |
3800 | if test -n "$CC"; then | |
3801 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3802 | else | |
c6b750e1 DJ |
3803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3804 | for as_dir in $PATH | |
3805 | do | |
3806 | IFS=$as_save_IFS | |
3807 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3808 | for ac_exec_ext in '' $ac_executable_extensions; do |
3809 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3810 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 3811 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3812 | break 2 |
3813 | fi | |
3814 | done | |
81ecdfbb RW |
3815 | done |
3816 | IFS=$as_save_IFS | |
c6b750e1 | 3817 | |
9e07f89d NN |
3818 | fi |
3819 | fi | |
c6b750e1 | 3820 | CC=$ac_cv_prog_CC |
9e07f89d | 3821 | if test -n "$CC"; then |
81ecdfbb RW |
3822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3823 | $as_echo "$CC" >&6; } | |
c6b750e1 | 3824 | else |
81ecdfbb RW |
3825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3826 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3827 | fi |
3828 | ||
c6b750e1 | 3829 | |
81ecdfbb | 3830 | fi |
c6b750e1 | 3831 | fi |
9e07f89d NN |
3832 | if test -z "$CC"; then |
3833 | # Extract the first word of "cc", so it can be a program name with args. | |
3834 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
3835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3836 | $as_echo_n "checking for $ac_word... " >&6; } | |
3837 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3838 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
3839 | else |
3840 | if test -n "$CC"; then | |
3841 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3842 | else | |
9e07f89d | 3843 | ac_prog_rejected=no |
c6b750e1 DJ |
3844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3845 | for as_dir in $PATH | |
3846 | do | |
3847 | IFS=$as_save_IFS | |
3848 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3849 | for ac_exec_ext in '' $ac_executable_extensions; do |
3850 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 DJ |
3851 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3852 | ac_prog_rejected=yes | |
3853 | continue | |
3854 | fi | |
3855 | ac_cv_prog_CC="cc" | |
81ecdfbb | 3856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3857 | break 2 |
3858 | fi | |
3859 | done | |
81ecdfbb RW |
3860 | done |
3861 | IFS=$as_save_IFS | |
c6b750e1 | 3862 | |
9e07f89d NN |
3863 | if test $ac_prog_rejected = yes; then |
3864 | # We found a bogon in the path, so make sure we never use it. | |
3865 | set dummy $ac_cv_prog_CC | |
3866 | shift | |
c6b750e1 | 3867 | if test $# != 0; then |
9e07f89d NN |
3868 | # We chose a different compiler from the bogus one. |
3869 | # However, it has the same basename, so the bogon will be chosen | |
3870 | # first if we set CC to just the basename; use the full file name. | |
3871 | shift | |
c6b750e1 | 3872 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
3873 | fi |
3874 | fi | |
3875 | fi | |
3876 | fi | |
c6b750e1 | 3877 | CC=$ac_cv_prog_CC |
9e07f89d | 3878 | if test -n "$CC"; then |
81ecdfbb RW |
3879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3880 | $as_echo "$CC" >&6; } | |
9e07f89d | 3881 | else |
81ecdfbb RW |
3882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3883 | $as_echo "no" >&6; } | |
9e07f89d NN |
3884 | fi |
3885 | ||
81ecdfbb | 3886 | |
c6b750e1 DJ |
3887 | fi |
3888 | if test -z "$CC"; then | |
3889 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 3890 | for ac_prog in cl.exe |
c6b750e1 DJ |
3891 | do |
3892 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3893 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
3894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3895 | $as_echo_n "checking for $ac_word... " >&6; } | |
3896 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3897 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
3898 | else |
3899 | if test -n "$CC"; then | |
3900 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3901 | else | |
c6b750e1 DJ |
3902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3903 | for as_dir in $PATH | |
3904 | do | |
3905 | IFS=$as_save_IFS | |
3906 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3907 | for ac_exec_ext in '' $ac_executable_extensions; do |
3908 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3909 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 3910 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 3911 | break 2 |
376a0e54 | 3912 | fi |
c6b750e1 | 3913 | done |
81ecdfbb RW |
3914 | done |
3915 | IFS=$as_save_IFS | |
cac3d6c4 | 3916 | |
c6b750e1 DJ |
3917 | fi |
3918 | fi | |
3919 | CC=$ac_cv_prog_CC | |
3920 | if test -n "$CC"; then | |
81ecdfbb RW |
3921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3922 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 3923 | else |
81ecdfbb RW |
3924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3925 | $as_echo "no" >&6; } | |
9e07f89d | 3926 | fi |
cac3d6c4 | 3927 | |
81ecdfbb | 3928 | |
c6b750e1 DJ |
3929 | test -n "$CC" && break |
3930 | done | |
cac3d6c4 | 3931 | fi |
c6b750e1 DJ |
3932 | if test -z "$CC"; then |
3933 | ac_ct_CC=$CC | |
81ecdfbb | 3934 | for ac_prog in cl.exe |
c6b750e1 DJ |
3935 | do |
3936 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3937 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3939 | $as_echo_n "checking for $ac_word... " >&6; } | |
3940 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3941 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 3942 | else |
c6b750e1 DJ |
3943 | if test -n "$ac_ct_CC"; then |
3944 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 3945 | else |
c6b750e1 DJ |
3946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3947 | for as_dir in $PATH | |
3948 | do | |
3949 | IFS=$as_save_IFS | |
3950 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3951 | for ac_exec_ext in '' $ac_executable_extensions; do |
3952 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3953 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 3954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3955 | break 2 |
3956 | fi | |
3957 | done | |
81ecdfbb RW |
3958 | done |
3959 | IFS=$as_save_IFS | |
c6b750e1 | 3960 | |
cac3d6c4 CM |
3961 | fi |
3962 | fi | |
c6b750e1 DJ |
3963 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3964 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3966 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 3967 | else |
81ecdfbb RW |
3968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3969 | $as_echo "no" >&6; } | |
cac3d6c4 | 3970 | fi |
376a0e54 | 3971 | |
81ecdfbb | 3972 | |
c6b750e1 DJ |
3973 | test -n "$ac_ct_CC" && break |
3974 | done | |
3975 | ||
81ecdfbb RW |
3976 | if test "x$ac_ct_CC" = x; then |
3977 | CC="" | |
3978 | else | |
3979 | case $cross_compiling:$ac_tool_warned in | |
3980 | yes:) | |
3981 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3982 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3983 | ac_tool_warned=yes ;; | |
3984 | esac | |
3985 | CC=$ac_ct_CC | |
3986 | fi | |
c6b750e1 DJ |
3987 | fi |
3988 | ||
3989 | fi | |
3990 | ||
3991 | ||
81ecdfbb RW |
3992 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3993 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3994 | as_fn_error "no acceptable C compiler found in \$PATH | |
3995 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 DJ |
3996 | |
3997 | # Provide some information about the compiler. | |
81ecdfbb RW |
3998 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3999 | set X $ac_compile | |
4000 | ac_compiler=$2 | |
4001 | for ac_option in --version -v -V -qversion; do | |
4002 | { { ac_try="$ac_compiler $ac_option >&5" | |
4003 | case "(($ac_try" in | |
4004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4005 | *) ac_try_echo=$ac_try;; | |
4006 | esac | |
4007 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4008 | $as_echo "$ac_try_echo"; } >&5 | |
4009 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4010 | ac_status=$? |
81ecdfbb RW |
4011 | if test -s conftest.err; then |
4012 | sed '10a\ | |
4013 | ... rest of stderr output deleted ... | |
4014 | 10q' conftest.err >conftest.er1 | |
4015 | cat conftest.er1 >&5 | |
4016 | rm -f conftest.er1 conftest.err | |
4017 | fi | |
4018 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4019 | test $ac_status = 0; } | |
4020 | done | |
c6b750e1 | 4021 | |
81ecdfbb | 4022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4023 | /* end confdefs.h. */ |
4024 | ||
4025 | int | |
4026 | main () | |
4027 | { | |
4028 | ||
4029 | ; | |
4030 | return 0; | |
4031 | } | |
4032 | _ACEOF | |
4033 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 4034 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
c6b750e1 DJ |
4035 | # Try to create an executable without -o first, disregard a.out. |
4036 | # It will help us diagnose broken compilers, and finding out an intuition | |
4037 | # of exeext. | |
81ecdfbb RW |
4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4039 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4040 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4041 | ||
4042 | # The possible output files: | |
4043 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4044 | ||
4045 | ac_rmfiles= | |
4046 | for ac_file in $ac_files | |
4047 | do | |
4048 | case $ac_file in | |
4049 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4050 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4051 | esac | |
4052 | done | |
4053 | rm -f $ac_rmfiles | |
4054 | ||
4055 | if { { ac_try="$ac_link_default" | |
4056 | case "(($ac_try" in | |
4057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4058 | *) ac_try_echo=$ac_try;; | |
4059 | esac | |
4060 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4061 | $as_echo "$ac_try_echo"; } >&5 | |
4062 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4063 | ac_status=$? |
81ecdfbb RW |
4064 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4065 | test $ac_status = 0; }; then : | |
4066 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4067 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4068 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4069 | # so that the user can short-circuit this test for compilers unknown to | |
4070 | # Autoconf. | |
4071 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4072 | do |
4073 | test -f "$ac_file" || continue | |
4074 | case $ac_file in | |
81ecdfbb | 4075 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4076 | ;; |
4077 | [ab].out ) | |
4078 | # We found the default executable, but exeext='' is most | |
4079 | # certainly right. | |
4080 | break;; | |
4081 | *.* ) | |
81ecdfbb RW |
4082 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4083 | then :; else | |
4084 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4085 | fi | |
4086 | # We set ac_cv_exeext here because the later test for it is not | |
4087 | # safe: cross compilers may not add the suffix if given an `-o' | |
4088 | # argument, so we may need to know it at that point already. | |
4089 | # Even if this section looks crufty: it has the advantage of | |
4090 | # actually working. | |
c6b750e1 DJ |
4091 | break;; |
4092 | * ) | |
4093 | break;; | |
4094 | esac | |
4095 | done | |
81ecdfbb RW |
4096 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4097 | ||
c6b750e1 | 4098 | else |
81ecdfbb RW |
4099 | ac_file='' |
4100 | fi | |
4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4102 | $as_echo "$ac_file" >&6; } | |
4103 | if test -z "$ac_file"; then : | |
4104 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4105 | sed 's/^/| /' conftest.$ac_ext >&5 |
4106 | ||
81ecdfbb RW |
4107 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4108 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4109 | { as_fn_set_status 77 | |
4110 | as_fn_error "C compiler cannot create executables | |
4111 | See \`config.log' for more details." "$LINENO" 5; }; } | |
c6b750e1 | 4112 | fi |
c6b750e1 | 4113 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4114 | |
81ecdfbb | 4115 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4116 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4118 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
c6b750e1 DJ |
4119 | # If not cross compiling, check that we can run a simple program. |
4120 | if test "$cross_compiling" != yes; then | |
4121 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
4122 | { { case "(($ac_try" in |
4123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4124 | *) ac_try_echo=$ac_try;; | |
4125 | esac | |
4126 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4127 | $as_echo "$ac_try_echo"; } >&5 | |
4128 | (eval "$ac_try") 2>&5 | |
c6b750e1 | 4129 | ac_status=$? |
81ecdfbb RW |
4130 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4131 | test $ac_status = 0; }; }; then | |
c6b750e1 DJ |
4132 | cross_compiling=no |
4133 | else | |
4134 | if test "$cross_compiling" = maybe; then | |
4135 | cross_compiling=yes | |
4136 | else | |
81ecdfbb RW |
4137 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4138 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4139 | as_fn_error "cannot run C compiled programs. | |
c6b750e1 | 4140 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 4141 | See \`config.log' for more details." "$LINENO" 5; } |
c6b750e1 DJ |
4142 | fi |
4143 | fi | |
4144 | fi | |
81ecdfbb RW |
4145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4146 | $as_echo "yes" >&6; } | |
c6b750e1 | 4147 | |
81ecdfbb | 4148 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
c6b750e1 | 4149 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 4150 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4151 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4153 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4155 | $as_echo "$cross_compiling" >&6; } | |
4156 | ||
4157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4158 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4159 | if { { ac_try="$ac_link" | |
4160 | case "(($ac_try" in | |
4161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4162 | *) ac_try_echo=$ac_try;; | |
4163 | esac | |
4164 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4165 | $as_echo "$ac_try_echo"; } >&5 | |
4166 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4167 | ac_status=$? |
81ecdfbb RW |
4168 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4169 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4170 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4171 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4172 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4173 | # `rm'. | |
4174 | for ac_file in conftest.exe conftest conftest.*; do | |
4175 | test -f "$ac_file" || continue | |
4176 | case $ac_file in | |
81ecdfbb | 4177 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4178 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4179 | break;; |
4180 | * ) break;; | |
4181 | esac | |
4182 | done | |
4183 | else | |
81ecdfbb RW |
4184 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4185 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4186 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4187 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4188 | fi |
c6b750e1 | 4189 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
4190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4191 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4192 | |
4193 | rm -f conftest.$ac_ext | |
4194 | EXEEXT=$ac_cv_exeext | |
4195 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
4196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4197 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4198 | if test "${ac_cv_objext+set}" = set; then : | |
4199 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4200 | else |
81ecdfbb | 4201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4202 | /* end confdefs.h. */ |
4203 | ||
4204 | int | |
4205 | main () | |
4206 | { | |
4207 | ||
4208 | ; | |
4209 | return 0; | |
4210 | } | |
4211 | _ACEOF | |
4212 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4213 | if { { ac_try="$ac_compile" |
4214 | case "(($ac_try" in | |
4215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4216 | *) ac_try_echo=$ac_try;; | |
4217 | esac | |
4218 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4219 | $as_echo "$ac_try_echo"; } >&5 | |
4220 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4221 | ac_status=$? |
81ecdfbb RW |
4222 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4223 | test $ac_status = 0; }; then : | |
4224 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4225 | test -f "$ac_file" || continue; | |
c6b750e1 | 4226 | case $ac_file in |
81ecdfbb | 4227 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4228 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4229 | break;; | |
4230 | esac | |
4231 | done | |
cac3d6c4 | 4232 | else |
81ecdfbb | 4233 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4234 | sed 's/^/| /' conftest.$ac_ext >&5 |
4235 | ||
81ecdfbb RW |
4236 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4237 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4238 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4239 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4240 | fi |
c6b750e1 DJ |
4241 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4242 | fi | |
81ecdfbb RW |
4243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4244 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4245 | OBJEXT=$ac_cv_objext |
4246 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4248 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4249 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4250 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4251 | else |
81ecdfbb | 4252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4253 | /* end confdefs.h. */ |
4254 | ||
4255 | int | |
4256 | main () | |
4257 | { | |
4258 | #ifndef __GNUC__ | |
4259 | choke me | |
4260 | #endif | |
4261 | ||
4262 | ; | |
4263 | return 0; | |
4264 | } | |
4265 | _ACEOF | |
81ecdfbb | 4266 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4267 | ac_compiler_gnu=yes |
4268 | else | |
81ecdfbb | 4269 | ac_compiler_gnu=no |
c6b750e1 | 4270 | fi |
81ecdfbb | 4271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4272 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4273 | ||
4274 | fi | |
81ecdfbb RW |
4275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4276 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4277 | if test $ac_compiler_gnu = yes; then | |
4278 | GCC=yes | |
4279 | else | |
4280 | GCC= | |
4281 | fi | |
c6b750e1 DJ |
4282 | ac_test_CFLAGS=${CFLAGS+set} |
4283 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4285 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4286 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4287 | $as_echo_n "(cached) " >&6 | |
4288 | else | |
4289 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4290 | ac_c_werror_flag=yes | |
4291 | ac_cv_prog_cc_g=no | |
4292 | CFLAGS="-g" | |
4293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4294 | /* end confdefs.h. */ |
4295 | ||
4296 | int | |
4297 | main () | |
4298 | { | |
4299 | ||
4300 | ; | |
4301 | return 0; | |
4302 | } | |
4303 | _ACEOF | |
81ecdfbb | 4304 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4305 | ac_cv_prog_cc_g=yes |
4306 | else | |
81ecdfbb RW |
4307 | CFLAGS="" |
4308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4309 | /* end confdefs.h. */ | |
4310 | ||
4311 | int | |
4312 | main () | |
4313 | { | |
4314 | ||
4315 | ; | |
4316 | return 0; | |
4317 | } | |
4318 | _ACEOF | |
4319 | if ac_fn_c_try_compile "$LINENO"; then : | |
4320 | ||
4321 | else | |
4322 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4323 | CFLAGS="-g" | |
4324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4325 | /* end confdefs.h. */ | |
cac3d6c4 | 4326 | |
81ecdfbb RW |
4327 | int |
4328 | main () | |
4329 | { | |
4330 | ||
4331 | ; | |
4332 | return 0; | |
4333 | } | |
4334 | _ACEOF | |
4335 | if ac_fn_c_try_compile "$LINENO"; then : | |
4336 | ac_cv_prog_cc_g=yes | |
4337 | fi | |
4338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4339 | fi |
81ecdfbb | 4340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4341 | fi |
81ecdfbb RW |
4342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4343 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4344 | fi | |
4345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4346 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4347 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4348 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4349 | elif test $ac_cv_prog_cc_g = yes; then |
4350 | if test "$GCC" = yes; then | |
4351 | CFLAGS="-g -O2" | |
4352 | else | |
4353 | CFLAGS="-g" | |
4354 | fi | |
4355 | else | |
4356 | if test "$GCC" = yes; then | |
4357 | CFLAGS="-O2" | |
4358 | else | |
4359 | CFLAGS= | |
4360 | fi | |
4361 | fi | |
81ecdfbb RW |
4362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4363 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4364 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4365 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4366 | else |
81ecdfbb | 4367 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4368 | ac_save_CC=$CC |
81ecdfbb | 4369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4370 | /* end confdefs.h. */ |
4371 | #include <stdarg.h> | |
4372 | #include <stdio.h> | |
4373 | #include <sys/types.h> | |
4374 | #include <sys/stat.h> | |
4375 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4376 | struct buf { int x; }; | |
4377 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4378 | static char *e (p, i) | |
4379 | char **p; | |
4380 | int i; | |
4381 | { | |
4382 | return p[i]; | |
4383 | } | |
4384 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4385 | { | |
4386 | char *s; | |
4387 | va_list v; | |
4388 | va_start (v,p); | |
4389 | s = g (p, va_arg (v,int)); | |
4390 | va_end (v); | |
4391 | return s; | |
4392 | } | |
4393 | ||
4394 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4395 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4396 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4397 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4398 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4399 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4400 | that's true only with -std. */ |
c6b750e1 DJ |
4401 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4402 | ||
81ecdfbb RW |
4403 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4404 | inside strings and character constants. */ | |
4405 | #define FOO(x) 'x' | |
4406 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4407 | ||
c6b750e1 DJ |
4408 | int test (int i, double x); |
4409 | struct s1 {int (*f) (int a);}; | |
4410 | struct s2 {int (*f) (double a);}; | |
4411 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4412 | int argc; | |
4413 | char **argv; | |
4414 | int | |
4415 | main () | |
4416 | { | |
4417 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4418 | ; | |
4419 | return 0; | |
4420 | } | |
4421 | _ACEOF | |
81ecdfbb RW |
4422 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4423 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4424 | do |
4425 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4426 | if ac_fn_c_try_compile "$LINENO"; then : |
4427 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4428 | fi |
81ecdfbb RW |
4429 | rm -f core conftest.err conftest.$ac_objext |
4430 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4431 | done |
81ecdfbb | 4432 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4433 | CC=$ac_save_CC |
4434 | ||
4435 | fi | |
81ecdfbb RW |
4436 | # AC_CACHE_VAL |
4437 | case "x$ac_cv_prog_cc_c89" in | |
4438 | x) | |
4439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4440 | $as_echo "none needed" >&6; } ;; | |
4441 | xno) | |
4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4443 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4444 | *) |
81ecdfbb RW |
4445 | CC="$CC $ac_cv_prog_cc_c89" |
4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4447 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4448 | esac |
81ecdfbb | 4449 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4450 | |
c6b750e1 DJ |
4451 | fi |
4452 | ||
c6b750e1 DJ |
4453 | ac_ext=c |
4454 | ac_cpp='$CPP $CPPFLAGS' | |
4455 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4456 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4457 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4458 | |
81ecdfbb | 4459 | ac_ext=cpp |
18f6b6ee PB |
4460 | ac_cpp='$CXXCPP $CPPFLAGS' |
4461 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4462 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4463 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
4464 | if test -z "$CXX"; then |
4465 | if test -n "$CCC"; then | |
4466 | CXX=$CCC | |
4467 | else | |
4468 | if test -n "$ac_tool_prefix"; then | |
4469 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
4470 | do |
4471 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4472 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4474 | $as_echo_n "checking for $ac_word... " >&6; } | |
4475 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4476 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4477 | else |
4478 | if test -n "$CXX"; then | |
4479 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4480 | else | |
4481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4482 | for as_dir in $PATH | |
4483 | do | |
4484 | IFS=$as_save_IFS | |
4485 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4486 | for ac_exec_ext in '' $ac_executable_extensions; do |
4487 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4488 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4489 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
4490 | break 2 |
4491 | fi | |
4492 | done | |
81ecdfbb RW |
4493 | done |
4494 | IFS=$as_save_IFS | |
512b7dfb | 4495 | |
18f6b6ee PB |
4496 | fi |
4497 | fi | |
4498 | CXX=$ac_cv_prog_CXX | |
4499 | if test -n "$CXX"; then | |
81ecdfbb RW |
4500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4501 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 4502 | else |
81ecdfbb RW |
4503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4504 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4505 | fi |
4506 | ||
81ecdfbb | 4507 | |
18f6b6ee PB |
4508 | test -n "$CXX" && break |
4509 | done | |
4510 | fi | |
4511 | if test -z "$CXX"; then | |
4512 | ac_ct_CXX=$CXX | |
81ecdfbb | 4513 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
4514 | do |
4515 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4516 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4518 | $as_echo_n "checking for $ac_word... " >&6; } | |
4519 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4520 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4521 | else |
4522 | if test -n "$ac_ct_CXX"; then | |
4523 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4524 | else | |
4525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4526 | for as_dir in $PATH | |
4527 | do | |
4528 | IFS=$as_save_IFS | |
4529 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4530 | for ac_exec_ext in '' $ac_executable_extensions; do |
4531 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4532 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4533 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 4534 | break 2 |
512b7dfb | 4535 | fi |
18f6b6ee | 4536 | done |
81ecdfbb RW |
4537 | done |
4538 | IFS=$as_save_IFS | |
512b7dfb | 4539 | |
18f6b6ee PB |
4540 | fi |
4541 | fi | |
4542 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4543 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
4544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4545 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 4546 | else |
81ecdfbb RW |
4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4548 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4549 | fi |
4550 | ||
81ecdfbb | 4551 | |
18f6b6ee PB |
4552 | test -n "$ac_ct_CXX" && break |
4553 | done | |
18f6b6ee | 4554 | |
81ecdfbb RW |
4555 | if test "x$ac_ct_CXX" = x; then |
4556 | CXX="g++" | |
4557 | else | |
4558 | case $cross_compiling:$ac_tool_warned in | |
4559 | yes:) | |
4560 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4561 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4562 | ac_tool_warned=yes ;; | |
4563 | esac | |
4564 | CXX=$ac_ct_CXX | |
4565 | fi | |
18f6b6ee PB |
4566 | fi |
4567 | ||
81ecdfbb RW |
4568 | fi |
4569 | fi | |
18f6b6ee | 4570 | # Provide some information about the compiler. |
81ecdfbb RW |
4571 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4572 | set X $ac_compile | |
4573 | ac_compiler=$2 | |
4574 | for ac_option in --version -v -V -qversion; do | |
4575 | { { ac_try="$ac_compiler $ac_option >&5" | |
4576 | case "(($ac_try" in | |
4577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4578 | *) ac_try_echo=$ac_try;; | |
4579 | esac | |
4580 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4581 | $as_echo "$ac_try_echo"; } >&5 | |
4582 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 4583 | ac_status=$? |
81ecdfbb RW |
4584 | if test -s conftest.err; then |
4585 | sed '10a\ | |
4586 | ... rest of stderr output deleted ... | |
4587 | 10q' conftest.err >conftest.er1 | |
4588 | cat conftest.er1 >&5 | |
4589 | rm -f conftest.er1 conftest.err | |
4590 | fi | |
4591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4592 | test $ac_status = 0; } | |
4593 | done | |
18f6b6ee | 4594 | |
81ecdfbb RW |
4595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4596 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4597 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4598 | $as_echo_n "(cached) " >&6 | |
18f6b6ee | 4599 | else |
81ecdfbb | 4600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
4601 | /* end confdefs.h. */ |
4602 | ||
4603 | int | |
4604 | main () | |
4605 | { | |
4606 | #ifndef __GNUC__ | |
4607 | choke me | |
4608 | #endif | |
4609 | ||
4610 | ; | |
4611 | return 0; | |
4612 | } | |
4613 | _ACEOF | |
81ecdfbb | 4614 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4615 | ac_compiler_gnu=yes |
4616 | else | |
81ecdfbb | 4617 | ac_compiler_gnu=no |
18f6b6ee | 4618 | fi |
81ecdfbb | 4619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
4620 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4621 | ||
4622 | fi | |
81ecdfbb RW |
4623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4624 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4625 | if test $ac_compiler_gnu = yes; then | |
4626 | GXX=yes | |
4627 | else | |
4628 | GXX= | |
4629 | fi | |
18f6b6ee PB |
4630 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4631 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
4632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4633 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4634 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4635 | $as_echo_n "(cached) " >&6 | |
4636 | else | |
4637 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4638 | ac_cxx_werror_flag=yes | |
4639 | ac_cv_prog_cxx_g=no | |
4640 | CXXFLAGS="-g" | |
4641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
4642 | /* end confdefs.h. */ |
4643 | ||
4644 | int | |
4645 | main () | |
4646 | { | |
4647 | ||
4648 | ; | |
4649 | return 0; | |
4650 | } | |
4651 | _ACEOF | |
81ecdfbb | 4652 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4653 | ac_cv_prog_cxx_g=yes |
4654 | else | |
81ecdfbb RW |
4655 | CXXFLAGS="" |
4656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4657 | /* end confdefs.h. */ |
81ecdfbb | 4658 | |
18f6b6ee PB |
4659 | int |
4660 | main () | |
4661 | { | |
81ecdfbb | 4662 | |
18f6b6ee PB |
4663 | ; |
4664 | return 0; | |
4665 | } | |
4666 | _ACEOF | |
81ecdfbb | 4667 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 4668 | |
81ecdfbb RW |
4669 | else |
4670 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4671 | CXXFLAGS="-g" | |
4672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4673 | /* end confdefs.h. */ |
81ecdfbb | 4674 | |
18f6b6ee PB |
4675 | int |
4676 | main () | |
4677 | { | |
81ecdfbb | 4678 | |
18f6b6ee PB |
4679 | ; |
4680 | return 0; | |
4681 | } | |
4682 | _ACEOF | |
81ecdfbb RW |
4683 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4684 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 4685 | fi |
81ecdfbb RW |
4686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4687 | fi | |
4688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4689 | fi | |
4690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4691 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4692 | fi | |
4693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4694 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4695 | if test "$ac_test_CXXFLAGS" = set; then | |
4696 | CXXFLAGS=$ac_save_CXXFLAGS | |
4697 | elif test $ac_cv_prog_cxx_g = yes; then | |
4698 | if test "$GXX" = yes; then | |
4699 | CXXFLAGS="-g -O2" | |
4700 | else | |
4701 | CXXFLAGS="-g" | |
4702 | fi | |
4703 | else | |
4704 | if test "$GXX" = yes; then | |
4705 | CXXFLAGS="-O2" | |
4706 | else | |
4707 | CXXFLAGS= | |
4708 | fi | |
18f6b6ee | 4709 | fi |
18f6b6ee PB |
4710 | ac_ext=c |
4711 | ac_cpp='$CPP $CPPFLAGS' | |
4712 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4713 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4714 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4715 | ||
4716 | ||
4717 | # We must set the default linker to the linker used by gcc for the correct | |
4718 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
4719 | # set the LD default to the ld used by gcc. | |
4720 | if test -z "$LD"; then | |
4721 | if test "$GCC" = yes; then | |
4722 | case $build in | |
4723 | *-*-mingw*) | |
4724 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
4725 | *) | |
4726 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
4727 | esac | |
4728 | case $gcc_prog_ld in | |
4729 | # Accept absolute paths. | |
4730 | [\\/]* | [A-Za-z]:[\\/]*) | |
4731 | LD="$gcc_prog_ld" ;; | |
4732 | esac | |
4733 | fi | |
512b7dfb PB |
4734 | fi |
4735 | ||
4736 | ||
4737 | ||
4738 | ||
c6b750e1 | 4739 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
4740 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
4741 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
4742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4743 | $as_echo_n "checking for $ac_word... " >&6; } | |
4744 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
4745 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 4746 | else |
512b7dfb PB |
4747 | if test -n "$GNATBIND"; then |
4748 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 4749 | else |
c6b750e1 DJ |
4750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4751 | for as_dir in $PATH | |
4752 | do | |
4753 | IFS=$as_save_IFS | |
4754 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4755 | for ac_exec_ext in '' $ac_executable_extensions; do |
4756 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4757 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 4758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4759 | break 2 |
4760 | fi | |
4761 | done | |
81ecdfbb RW |
4762 | done |
4763 | IFS=$as_save_IFS | |
c6b750e1 | 4764 | |
9e07f89d NN |
4765 | fi |
4766 | fi | |
512b7dfb PB |
4767 | GNATBIND=$ac_cv_prog_GNATBIND |
4768 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
4769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
4770 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 4771 | else |
81ecdfbb RW |
4772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4773 | $as_echo "no" >&6; } | |
9e07f89d NN |
4774 | fi |
4775 | ||
81ecdfbb | 4776 | |
c6b750e1 | 4777 | fi |
512b7dfb PB |
4778 | if test -z "$ac_cv_prog_GNATBIND"; then |
4779 | ac_ct_GNATBIND=$GNATBIND | |
4780 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
4781 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4783 | $as_echo_n "checking for $ac_word... " >&6; } | |
4784 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
4785 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 4786 | else |
512b7dfb PB |
4787 | if test -n "$ac_ct_GNATBIND"; then |
4788 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 4789 | else |
c6b750e1 DJ |
4790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4791 | for as_dir in $PATH | |
4792 | do | |
4793 | IFS=$as_save_IFS | |
4794 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4795 | for ac_exec_ext in '' $ac_executable_extensions; do |
4796 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4797 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 4798 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4799 | break 2 |
4800 | fi | |
4801 | done | |
81ecdfbb RW |
4802 | done |
4803 | IFS=$as_save_IFS | |
c6b750e1 | 4804 | |
9e07f89d NN |
4805 | fi |
4806 | fi | |
512b7dfb PB |
4807 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
4808 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
4809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
4810 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 4811 | else |
81ecdfbb RW |
4812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4813 | $as_echo "no" >&6; } | |
9e07f89d NN |
4814 | fi |
4815 | ||
81ecdfbb RW |
4816 | if test "x$ac_ct_GNATBIND" = x; then |
4817 | GNATBIND="no" | |
4818 | else | |
4819 | case $cross_compiling:$ac_tool_warned in | |
4820 | yes:) | |
4821 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4822 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4823 | ac_tool_warned=yes ;; | |
4824 | esac | |
4825 | GNATBIND=$ac_ct_GNATBIND | |
4826 | fi | |
24ff9987 | 4827 | else |
512b7dfb | 4828 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
4829 | fi |
4830 | ||
7df2cd5d | 4831 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
4832 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
4833 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
4834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4835 | $as_echo_n "checking for $ac_word... " >&6; } | |
4836 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
4837 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 4838 | else |
512b7dfb PB |
4839 | if test -n "$GNATMAKE"; then |
4840 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
4841 | else |
4842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4843 | for as_dir in $PATH | |
4844 | do | |
4845 | IFS=$as_save_IFS | |
4846 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4847 | for ac_exec_ext in '' $ac_executable_extensions; do |
4848 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4849 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 4850 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
4851 | break 2 |
4852 | fi | |
4853 | done | |
81ecdfbb RW |
4854 | done |
4855 | IFS=$as_save_IFS | |
7df2cd5d PB |
4856 | |
4857 | fi | |
4858 | fi | |
512b7dfb PB |
4859 | GNATMAKE=$ac_cv_prog_GNATMAKE |
4860 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
4861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
4862 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 4863 | else |
81ecdfbb RW |
4864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4865 | $as_echo "no" >&6; } | |
7df2cd5d PB |
4866 | fi |
4867 | ||
81ecdfbb | 4868 | |
7df2cd5d | 4869 | fi |
512b7dfb PB |
4870 | if test -z "$ac_cv_prog_GNATMAKE"; then |
4871 | ac_ct_GNATMAKE=$GNATMAKE | |
4872 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
4873 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
4874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4875 | $as_echo_n "checking for $ac_word... " >&6; } | |
4876 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
4877 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 4878 | else |
512b7dfb PB |
4879 | if test -n "$ac_ct_GNATMAKE"; then |
4880 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
4881 | else |
4882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4883 | for as_dir in $PATH | |
4884 | do | |
4885 | IFS=$as_save_IFS | |
4886 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4887 | for ac_exec_ext in '' $ac_executable_extensions; do |
4888 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4889 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 4890 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
4891 | break 2 |
4892 | fi | |
4893 | done | |
81ecdfbb RW |
4894 | done |
4895 | IFS=$as_save_IFS | |
7df2cd5d | 4896 | |
7df2cd5d PB |
4897 | fi |
4898 | fi | |
512b7dfb PB |
4899 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
4900 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
4901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
4902 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 4903 | else |
81ecdfbb RW |
4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4905 | $as_echo "no" >&6; } | |
7df2cd5d PB |
4906 | fi |
4907 | ||
81ecdfbb RW |
4908 | if test "x$ac_ct_GNATMAKE" = x; then |
4909 | GNATMAKE="no" | |
4910 | else | |
4911 | case $cross_compiling:$ac_tool_warned in | |
4912 | yes:) | |
4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4914 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4915 | ac_tool_warned=yes ;; | |
4916 | esac | |
4917 | GNATMAKE=$ac_ct_GNATMAKE | |
4918 | fi | |
7df2cd5d | 4919 | else |
512b7dfb | 4920 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
4921 | fi |
4922 | ||
81ecdfbb RW |
4923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
4924 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
4925 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
4926 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4927 | else |
4928 | cat >conftest.adb <<EOF | |
4929 | procedure conftest is begin null; end conftest; | |
4930 | EOF | |
4931 | acx_cv_cc_gcc_supports_ada=no | |
4932 | # There is a bug in old released versions of GCC which causes the | |
4933 | # driver to exit successfully when the appropriate language module | |
4934 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
4935 | # Therefore we must check for the error message as well as an | |
4936 | # unsuccessful exit. | |
b8908782 DD |
4937 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
4938 | # given a .adb file, but produce no object file. So we must check | |
4939 | # if an object file was really produced to guard against this. | |
9e07f89d | 4940 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 4941 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 4942 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
4943 | fi |
4944 | rm -f conftest.* | |
4945 | fi | |
81ecdfbb RW |
4946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
4947 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 4948 | |
512b7dfb | 4949 | if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
4950 | have_gnat=yes |
4951 | else | |
4952 | have_gnat=no | |
4953 | fi | |
4954 | ||
81ecdfbb RW |
4955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
4956 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
4957 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
4958 | $as_echo_n "(cached) " >&6 | |
b8908782 DD |
4959 | else |
4960 | echo abfoo >t1 | |
4961 | echo cdfoo >t2 | |
4962 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
4b1cb4fe DD |
4963 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
4964 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
4965 | : | |
4966 | else | |
4967 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
4968 | fi | |
4969 | fi | |
b8908782 DD |
4970 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
4971 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 4972 | : |
b8908782 DD |
4973 | else |
4974 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
4975 | fi | |
4976 | fi | |
4977 | rm t1 t2 | |
4978 | ||
4979 | fi | |
81ecdfbb RW |
4980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
4981 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
4982 | do_compare="$gcc_cv_prog_cmp_skip" |
4983 | ||
4984 | ||
9e07f89d | 4985 | |
ffdd6afc ILT |
4986 | # Check whether --enable-bootstrap was given. |
4987 | if test "${enable_bootstrap+set}" = set; then : | |
4988 | enableval=$enable_bootstrap; | |
4989 | else | |
4990 | enable_bootstrap=default | |
4991 | fi | |
4992 | ||
4993 | ||
4994 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
4995 | if test -r $srcdir/gcc/configure; then | |
4996 | have_compiler=yes | |
4997 | else | |
4998 | have_compiler=no | |
4999 | fi | |
5000 | ||
5001 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5002 | *:*:*:no) ;; | |
5003 | ||
5004 | # Default behavior. Enable bootstrap if we have a compiler | |
5005 | # and we are in a native configuration. | |
5006 | yes:$build:$build:default) | |
5007 | enable_bootstrap=yes ;; | |
5008 | ||
5009 | *:*:*:default) | |
5010 | enable_bootstrap=no ;; | |
5011 | ||
5012 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5013 | yes:$build:$build:yes) | |
5014 | ;; | |
5015 | ||
5016 | # Other configurations, but we have a compiler. Assume the user knows | |
5017 | # what he's doing. | |
5018 | yes:*:*:yes) | |
5019 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5020 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5021 | ;; | |
5022 | ||
5023 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5024 | no:*:*:yes) | |
5025 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5026 | ||
5027 | # Fail if wrong command line | |
5028 | *) | |
5029 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5030 | ;; | |
5031 | esac | |
5032 | ||
e8a5fa9c | 5033 | # See if we are building gcc with C++. |
81ecdfbb RW |
5034 | # Check whether --enable-build-with-cxx was given. |
5035 | if test "${enable_build_with_cxx+set}" = set; then : | |
5036 | enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval | |
e8a5fa9c RW |
5037 | else |
5038 | ENABLE_BUILD_WITH_CXX=no | |
81ecdfbb RW |
5039 | fi |
5040 | ||
e8a5fa9c | 5041 | |
ffdd6afc ILT |
5042 | # Build stage1 with C and build stages 2 and 3 with C++. |
5043 | # Check whether --enable-build-poststage1-with-cxx was given. | |
5044 | if test "${enable_build_poststage1_with_cxx+set}" = set; then : | |
5045 | enableval=$enable_build_poststage1_with_cxx; ENABLE_BUILD_POSTSTAGE1_WITH_CXX=$enableval | |
5046 | else | |
5047 | ENABLE_BUILD_POSTSTAGE1_WITH_CXX=yes | |
5048 | fi | |
5049 | ||
5050 | ||
d5f2ee2e KG |
5051 | # Used for setting $lt_cv_objdir |
5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5053 | $as_echo_n "checking for objdir... " >&6; } | |
5054 | if test "${lt_cv_objdir+set}" = set; then : | |
5055 | $as_echo_n "(cached) " >&6 | |
5056 | else | |
5057 | rm -f .libs 2>/dev/null | |
5058 | mkdir .libs 2>/dev/null | |
5059 | if test -d .libs; then | |
5060 | lt_cv_objdir=.libs | |
5061 | else | |
5062 | # MS-DOS does not allow filenames that begin with a dot. | |
5063 | lt_cv_objdir=_libs | |
5064 | fi | |
5065 | rmdir .libs 2>/dev/null | |
5066 | fi | |
5067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5068 | $as_echo "$lt_cv_objdir" >&6; } | |
5069 | objdir=$lt_cv_objdir | |
5070 | ||
5071 | ||
5072 | ||
5073 | ||
5074 | ||
5075 | cat >>confdefs.h <<_ACEOF | |
5076 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5077 | _ACEOF | |
5078 | ||
5079 | ||
5080 | ||
e8a5fa9c | 5081 | # Check for GMP, MPFR and MPC |
d9b76ff9 | 5082 | gmplibs="-lmpc -lmpfr -lgmp" |
4b1cb4fe | 5083 | gmpinc= |
4b900473 | 5084 | have_gmp=no |
e8a5fa9c RW |
5085 | |
5086 | # Specify a location for mpc | |
5087 | # check for this first so it ends up on the link line before mpfr. | |
5088 | ||
81ecdfbb RW |
5089 | # Check whether --with-mpc was given. |
5090 | if test "${with_mpc+set}" = set; then : | |
5091 | withval=$with_mpc; | |
5092 | fi | |
e8a5fa9c | 5093 | |
e8a5fa9c | 5094 | |
e552509b | 5095 | # Check whether --with-mpc-include was given. |
81ecdfbb RW |
5096 | if test "${with_mpc_include+set}" = set; then : |
5097 | withval=$with_mpc_include; | |
5098 | fi | |
e8a5fa9c | 5099 | |
e8a5fa9c | 5100 | |
e552509b | 5101 | # Check whether --with-mpc-lib was given. |
81ecdfbb RW |
5102 | if test "${with_mpc_lib+set}" = set; then : |
5103 | withval=$with_mpc_lib; | |
5104 | fi | |
e8a5fa9c | 5105 | |
e8a5fa9c RW |
5106 | |
5107 | if test "x$with_mpc" != x; then | |
d9b76ff9 KG |
5108 | gmplibs="-L$with_mpc/lib $gmplibs" |
5109 | gmpinc="-I$with_mpc/include $gmpinc" | |
e8a5fa9c RW |
5110 | fi |
5111 | if test "x$with_mpc_include" != x; then | |
d9b76ff9 | 5112 | gmpinc="-I$with_mpc_include $gmpinc" |
e8a5fa9c RW |
5113 | fi |
5114 | if test "x$with_mpc_lib" != x; then | |
d9b76ff9 | 5115 | gmplibs="-L$with_mpc_lib $gmplibs" |
e8a5fa9c RW |
5116 | fi |
5117 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
d5f2ee2e | 5118 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
d9b76ff9 | 5119 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
e8a5fa9c RW |
5120 | # Do not test the mpc version. Assume that it is sufficient, since |
5121 | # it is in the source tree, and the library has not been built yet | |
5122 | # but it would be included on the link line in the version check below | |
5123 | # hence making the test fail. | |
d9b76ff9 | 5124 | have_gmp=yes |
e8a5fa9c | 5125 | fi |
4b900473 | 5126 | |
11b04d1f DD |
5127 | # Specify a location for mpfr |
5128 | # check for this first so it ends up on the link line before gmp. | |
c6b750e1 | 5129 | |
81ecdfbb RW |
5130 | # Check whether --with-mpfr-dir was given. |
5131 | if test "${with_mpfr_dir+set}" = set; then : | |
5132 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5133 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5134 | fi | |
5135 | ||
11b04d1f DD |
5136 | |
5137 | ||
81ecdfbb RW |
5138 | # Check whether --with-mpfr was given. |
5139 | if test "${with_mpfr+set}" = set; then : | |
5140 | withval=$with_mpfr; | |
5141 | fi | |
c6b750e1 | 5142 | |
11b04d1f | 5143 | |
e552509b | 5144 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
5145 | if test "${with_mpfr_include+set}" = set; then : |
5146 | withval=$with_mpfr_include; | |
5147 | fi | |
c6b750e1 | 5148 | |
8a0d8a5c | 5149 | |
e552509b | 5150 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
5151 | if test "${with_mpfr_lib+set}" = set; then : |
5152 | withval=$with_mpfr_lib; | |
5153 | fi | |
8a0d8a5c | 5154 | |
11b04d1f DD |
5155 | |
5156 | if test "x$with_mpfr" != x; then | |
5157 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 5158 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 5159 | fi |
8a0d8a5c | 5160 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 5161 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
5162 | fi |
5163 | if test "x$with_mpfr_lib" != x; then | |
5164 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5165 | fi | |
4b900473 | 5166 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
d5f2ee2e | 5167 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5168 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" |
d5f2ee2e | 5169 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" |
4b900473 PB |
5170 | # Do not test the mpfr version. Assume that it is sufficient, since |
5171 | # it is in the source tree, and the library has not been built yet | |
5172 | # but it would be included on the link line in the version check below | |
5173 | # hence making the test fail. | |
5174 | have_gmp=yes | |
5175 | fi | |
11b04d1f | 5176 | |
4b1cb4fe | 5177 | # Specify a location for gmp |
c6b750e1 | 5178 | |
81ecdfbb RW |
5179 | # Check whether --with-gmp-dir was given. |
5180 | if test "${with_gmp_dir+set}" = set; then : | |
5181 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5182 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5183 | fi | |
5184 | ||
4b1cb4fe DD |
5185 | |
5186 | ||
81ecdfbb RW |
5187 | # Check whether --with-gmp was given. |
5188 | if test "${with_gmp+set}" = set; then : | |
5189 | withval=$with_gmp; | |
5190 | fi | |
c6b750e1 | 5191 | |
4b1cb4fe | 5192 | |
e552509b | 5193 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
5194 | if test "${with_gmp_include+set}" = set; then : |
5195 | withval=$with_gmp_include; | |
5196 | fi | |
c6b750e1 | 5197 | |
8a0d8a5c | 5198 | |
e552509b | 5199 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
5200 | if test "${with_gmp_lib+set}" = set; then : |
5201 | withval=$with_gmp_lib; | |
5202 | fi | |
8a0d8a5c PB |
5203 | |
5204 | ||
4b1cb4fe | 5205 | |
11b04d1f DD |
5206 | if test "x$with_gmp" != x; then |
5207 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5208 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 5209 | fi |
8a0d8a5c PB |
5210 | if test "x$with_gmp_include" != x; then |
5211 | gmpinc="-I$with_gmp_include $gmpinc" | |
5212 | fi | |
5213 | if test "x$with_gmp_lib" != x; then | |
5214 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5215 | fi | |
4b900473 | 5216 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 5217 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5218 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 5219 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 5220 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
4b900473 PB |
5221 | # Do not test the gmp version. Assume that it is sufficient, since |
5222 | # it is in the source tree, and the library has not been built yet | |
5223 | # but it would be included on the link line in the version check below | |
5224 | # hence making the test fail. | |
5225 | have_gmp=yes | |
5226 | fi | |
4b1cb4fe | 5227 | |
ceb92e78 | 5228 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
5229 | have_gmp=yes |
5230 | saved_CFLAGS="$CFLAGS" | |
5231 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
5232 | # Check for the recommended and required versions of GMP. |
5233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5234 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
a009f2e7 RW |
5235 | |
5236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a6b5846e KG |
5237 | /* end confdefs.h. */ |
5238 | #include "gmp.h" | |
5239 | int | |
5240 | main () | |
5241 | { | |
5242 | ||
5243 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5244 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5245 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0) | |
5246 | choke me | |
5247 | #endif | |
5248 | ||
5249 | ; | |
5250 | return 0; | |
5251 | } | |
5252 | _ACEOF | |
5253 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 5254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5255 | /* end confdefs.h. */ |
a6b5846e | 5256 | #include <gmp.h> |
c6b750e1 DJ |
5257 | int |
5258 | main () | |
5259 | { | |
4b1cb4fe | 5260 | |
a6b5846e KG |
5261 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5262 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5263 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
5264 | choke me |
5265 | #endif | |
c6b750e1 DJ |
5266 | |
5267 | ; | |
5268 | return 0; | |
5269 | } | |
5270 | _ACEOF | |
81ecdfbb RW |
5271 | if ac_fn_c_try_compile "$LINENO"; then : |
5272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5273 | $as_echo "yes" >&6; } | |
a6b5846e KG |
5274 | else |
5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5276 | $as_echo "buggy but acceptable" >&6; } | |
5277 | fi | |
5278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 5279 | else |
81ecdfbb RW |
5280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5281 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5282 | fi |
81ecdfbb | 5283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 5284 | |
e8a5fa9c | 5285 | # If we have GMP, check the MPFR version. |
4b900473 | 5286 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
5287 | # Check for the recommended and required versions of MPFR. |
5288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5289 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 5290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5291 | /* end confdefs.h. */ |
9b134994 | 5292 | #include <gmp.h> |
4b900473 | 5293 | #include <mpfr.h> |
c6b750e1 DJ |
5294 | int |
5295 | main () | |
5296 | { | |
9b134994 | 5297 | |
ef699244 | 5298 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1) |
4b900473 PB |
5299 | choke me |
5300 | #endif | |
c6b750e1 DJ |
5301 | |
5302 | ; | |
5303 | return 0; | |
5304 | } | |
5305 | _ACEOF | |
81ecdfbb RW |
5306 | if ac_fn_c_try_compile "$LINENO"; then : |
5307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 5308 | /* end confdefs.h. */ |
4b1cb4fe | 5309 | #include <gmp.h> |
4b900473 | 5310 | #include <mpfr.h> |
c6b750e1 DJ |
5311 | int |
5312 | main () | |
5313 | { | |
9dbaa842 | 5314 | |
a6b5846e | 5315 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
4b900473 PB |
5316 | choke me |
5317 | #endif | |
e8a5fa9c RW |
5318 | |
5319 | ; | |
5320 | return 0; | |
5321 | } | |
5322 | _ACEOF | |
81ecdfbb RW |
5323 | if ac_fn_c_try_compile "$LINENO"; then : |
5324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5325 | $as_echo "yes" >&6; } | |
e8a5fa9c | 5326 | else |
81ecdfbb RW |
5327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5328 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 5329 | fi |
81ecdfbb | 5330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 5331 | else |
81ecdfbb RW |
5332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5333 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 5334 | fi |
81ecdfbb | 5335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5336 | fi |
5337 | ||
5338 | # Check for the MPC header version. | |
d9b76ff9 | 5339 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 5340 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
5341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5342 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
5344 | /* end confdefs.h. */ |
5345 | #include <mpc.h> | |
5346 | int | |
5347 | main () | |
5348 | { | |
5349 | ||
a6b5846e KG |
5350 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5351 | choke me | |
5352 | #endif | |
5353 | ||
5354 | ; | |
5355 | return 0; | |
5356 | } | |
5357 | _ACEOF | |
5358 | if ac_fn_c_try_compile "$LINENO"; then : | |
5359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5360 | /* end confdefs.h. */ | |
5361 | #include <mpc.h> | |
5362 | int | |
5363 | main () | |
5364 | { | |
5365 | ||
5366 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
5367 | choke me |
5368 | #endif | |
5369 | ||
5370 | ; | |
5371 | return 0; | |
5372 | } | |
5373 | _ACEOF | |
81ecdfbb RW |
5374 | if ac_fn_c_try_compile "$LINENO"; then : |
5375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 5376 | $as_echo "yes" >&6; } |
a6b5846e KG |
5377 | else |
5378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5379 | $as_echo "buggy but acceptable" >&6; } | |
5380 | fi | |
5381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 5382 | else |
81ecdfbb | 5383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 5384 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 5385 | fi |
81ecdfbb | 5386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5387 | fi |
5388 | ||
5389 | # Now check the MPFR library. | |
5390 | if test x"$have_gmp" = xyes; then | |
5391 | saved_LIBS="$LIBS" | |
5392 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
5393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5394 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 5395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 5396 | /* end confdefs.h. */ |
d9b76ff9 | 5397 | #include <mpc.h> |
e8a5fa9c RW |
5398 | int |
5399 | main () | |
5400 | { | |
5401 | ||
5402 | mpfr_t n; | |
5403 | mpfr_t x; | |
d9b76ff9 | 5404 | mpc_t c; |
e8a5fa9c RW |
5405 | int t; |
5406 | mpfr_init (n); | |
5407 | mpfr_init (x); | |
5408 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5409 | mpfr_erfc (n, x, GMP_RNDN); | |
5410 | mpfr_subnormalize (x, t, GMP_RNDN); | |
d9b76ff9 KG |
5411 | mpfr_clear(n); |
5412 | mpfr_clear(x); | |
5413 | mpc_init2 (c, 53); | |
5414 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5415 | mpc_cosh (c, c, MPC_RNDNN); | |
5416 | mpc_pow (c, c, c, MPC_RNDNN); | |
5417 | mpc_acosh (c, c, MPC_RNDNN); | |
5418 | mpc_clear (c); | |
c6b750e1 DJ |
5419 | |
5420 | ; | |
5421 | return 0; | |
5422 | } | |
5423 | _ACEOF | |
81ecdfbb RW |
5424 | if ac_fn_c_try_link "$LINENO"; then : |
5425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5426 | $as_echo "yes" >&6; } | |
c6b750e1 | 5427 | else |
81ecdfbb RW |
5428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5429 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5430 | fi |
81ecdfbb RW |
5431 | rm -f core conftest.err conftest.$ac_objext \ |
5432 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
5433 | LIBS="$saved_LIBS" |
5434 | fi | |
5435 | ||
4b900473 | 5436 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 5437 | |
a6b5846e KG |
5438 | # The library versions listed in the error message below should match |
5439 | # the HARD-minimums enforced above. | |
4b900473 | 5440 | if test x$have_gmp != xyes; then |
a6b5846e | 5441 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+. |
d9b76ff9 KG |
5442 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5443 | their locations. Source code for these libraries can be found at | |
5444 | their respective hosting sites as well as at | |
5445 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5446 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5447 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5448 | make sure that you have installed both the libraries and the header | |
5449 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 5450 | fi |
9dbaa842 DD |
5451 | fi |
5452 | ||
e8a5fa9c RW |
5453 | # Flags needed for both GMP, MPFR and/or MPC. |
5454 | ||
5455 | ||
5456 | ||
4b1cb4fe DD |
5457 | |
5458 | ||
5459 | ||
29383458 JM |
5460 | # Allow host libstdc++ to be specified for static linking with PPL. |
5461 | ||
81ecdfbb RW |
5462 | # Check whether --with-host-libstdcxx was given. |
5463 | if test "${with_host_libstdcxx+set}" = set; then : | |
5464 | withval=$with_host_libstdcxx; | |
5465 | fi | |
29383458 | 5466 | |
29383458 JM |
5467 | |
5468 | case $with_host_libstdcxx in | |
5469 | no|yes) | |
81ecdfbb | 5470 | as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5 |
29383458 JM |
5471 | ;; |
5472 | esac | |
e28c595f | 5473 | |
e8a5fa9c RW |
5474 | # Linker flags to use for stage1 or when not boostrapping. |
5475 | ||
81ecdfbb RW |
5476 | # Check whether --with-stage1-ldflags was given. |
5477 | if test "${with_stage1_ldflags+set}" = set; then : | |
5478 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5479 | stage1_ldflags= |
5480 | else | |
5481 | stage1_ldflags=$withval | |
5482 | fi | |
5483 | else | |
5484 | stage1_ldflags= | |
81ecdfbb RW |
5485 | fi |
5486 | ||
e8a5fa9c RW |
5487 | |
5488 | ||
5489 | # Libraries to use for stage1 or when not bootstrapping. | |
5490 | ||
81ecdfbb RW |
5491 | # Check whether --with-stage1-libs was given. |
5492 | if test "${with_stage1_libs+set}" = set; then : | |
5493 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5494 | stage1_libs= |
5495 | else | |
5496 | stage1_libs=$withval | |
5497 | fi | |
5498 | else | |
5499 | stage1_libs=$with_host_libstdcxx | |
81ecdfbb RW |
5500 | fi |
5501 | ||
e8a5fa9c RW |
5502 | |
5503 | ||
e8a5fa9c RW |
5504 | # Libraries to use for stage2 and later builds. This defaults to the |
5505 | # argument passed to --with-host-libstdcxx. | |
5506 | ||
81ecdfbb RW |
5507 | # Check whether --with-boot-libs was given. |
5508 | if test "${with_boot_libs+set}" = set; then : | |
5509 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5510 | poststage1_libs= |
5511 | else | |
5512 | poststage1_libs=$withval | |
5513 | fi | |
5514 | else | |
5515 | poststage1_libs=$with_host_libstdcxx | |
81ecdfbb RW |
5516 | fi |
5517 | ||
e8a5fa9c RW |
5518 | |
5519 | ||
143754cd NC |
5520 | # Linker flags to use for stage2 and later builds. |
5521 | ||
5522 | # Check whether --with-boot-ldflags was given. | |
5523 | if test "${with_boot_ldflags+set}" = set; then : | |
5524 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5525 | poststage1_ldflags= | |
5526 | else | |
5527 | poststage1_ldflags=$withval | |
5528 | fi | |
5529 | else | |
5530 | poststage1_ldflags= | |
4f11b223 ILT |
5531 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5532 | # statically. But if the user explicitly specified the libraries to | |
5533 | # use, trust that they are doing what they want. | |
5534 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
5535 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5536 | fi | |
5537 | fi | |
5538 | ||
5539 | ||
5540 | ||
e28c595f | 5541 | # Check for PPL |
b123da99 | 5542 | ppllibs= |
e28c595f | 5543 | pplinc= |
b123da99 | 5544 | pwllib= |
e28c595f JM |
5545 | |
5546 | ||
81ecdfbb RW |
5547 | # Check whether --with-ppl was given. |
5548 | if test "${with_ppl+set}" = set; then : | |
5549 | withval=$with_ppl; | |
81ecdfbb | 5550 | fi |
e28c595f | 5551 | |
e28c595f | 5552 | |
e552509b | 5553 | # Check whether --with-ppl-include was given. |
81ecdfbb RW |
5554 | if test "${with_ppl_include+set}" = set; then : |
5555 | withval=$with_ppl_include; | |
5556 | fi | |
5557 | ||
e28c595f | 5558 | |
e552509b | 5559 | # Check whether --with-ppl-lib was given. |
81ecdfbb RW |
5560 | if test "${with_ppl_lib+set}" = set; then : |
5561 | withval=$with_ppl_lib; | |
5562 | fi | |
e28c595f | 5563 | |
e28c595f | 5564 | |
b123da99 SP |
5565 | # Check whether --enable-ppl-version-check was given. |
5566 | if test "${enable_ppl_version_check+set}" = set; then : | |
5567 | enableval=$enable_ppl_version_check; | |
5568 | fi | |
5569 | ||
5570 | ||
29383458 | 5571 | case $with_ppl in |
b123da99 | 5572 | yes | no | "") |
1f53ca9a | 5573 | ;; |
29383458 | 5574 | *) |
b123da99 | 5575 | ppllibs="-L$with_ppl/lib" |
29383458 | 5576 | pplinc="-I$with_ppl/include $pplinc" |
b123da99 SP |
5577 | if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then |
5578 | with_ppl=yes | |
5579 | else | |
5580 | as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5 | |
5581 | fi | |
29383458 JM |
5582 | ;; |
5583 | esac | |
b123da99 SP |
5584 | |
5585 | if test x"$with_ppl_include" != x; then | |
e28c595f | 5586 | pplinc="-I$with_ppl_include $pplinc" |
b123da99 | 5587 | with_ppl=yes |
e28c595f | 5588 | fi |
b123da99 | 5589 | |
e28c595f | 5590 | if test "x$with_ppl_lib" != x; then |
b123da99 SP |
5591 | ppllibs="-L$with_ppl_lib" |
5592 | with_ppl=yes | |
e28c595f | 5593 | fi |
b123da99 SP |
5594 | |
5595 | if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then | |
5596 | if test x"$enable_watchdog" = xyes; then | |
5597 | pwllib="-lpwl" | |
5598 | fi | |
5599 | ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir" | |
1f53ca9a AO |
5600 | pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C ' |
5601 | enable_ppl_version_check=no | |
b123da99 | 5602 | with_ppl=yes |
e28c595f JM |
5603 | fi |
5604 | ||
86ed8cf6 | 5605 | if test "x$with_ppl" != xno; then |
b123da99 | 5606 | if test "x$pwllib" = x; then |
0e8ad34f RO |
5607 | saved_LIBS="$LIBS" |
5608 | LIBS="$LIBS $ppllibs -lstdc++ -lm" | |
b123da99 SP |
5609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5 |
5610 | $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; } | |
5611 | if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then : | |
5612 | $as_echo_n "(cached) " >&6 | |
5613 | else | |
5614 | ac_check_lib_save_LIBS=$LIBS | |
5615 | LIBS="-lpwl $LIBS" | |
5616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5617 | /* end confdefs.h. */ | |
5618 | ||
5619 | /* Override any GCC internal prototype to avoid an error. | |
5620 | Use char because int might match the return type of a GCC | |
5621 | builtin and then its argument prototype would still apply. */ | |
5622 | #ifdef __cplusplus | |
5623 | extern "C" | |
5624 | #endif | |
5625 | char PWL_handle_timeout (); | |
5626 | int | |
5627 | main () | |
5628 | { | |
5629 | return PWL_handle_timeout (); | |
5630 | ; | |
5631 | return 0; | |
5632 | } | |
5633 | _ACEOF | |
5634 | if ac_fn_c_try_link "$LINENO"; then : | |
5635 | ac_cv_lib_pwl_PWL_handle_timeout=yes | |
e28c595f | 5636 | else |
b123da99 SP |
5637 | ac_cv_lib_pwl_PWL_handle_timeout=no |
5638 | fi | |
5639 | rm -f core conftest.err conftest.$ac_objext \ | |
5640 | conftest$ac_exeext conftest.$ac_ext | |
5641 | LIBS=$ac_check_lib_save_LIBS | |
5642 | fi | |
5643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5 | |
5644 | $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; } | |
5645 | if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then : | |
5646 | pwllib="-lpwl" | |
81ecdfbb RW |
5647 | fi |
5648 | ||
0e8ad34f | 5649 | LIBS="$saved_LIBS" |
b123da99 | 5650 | fi |
e28c595f | 5651 | |
b123da99 SP |
5652 | ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx" |
5653 | ||
5654 | if test "$enable_ppl_version_check" != no; then | |
5655 | saved_CFLAGS="$CFLAGS" | |
5656 | CFLAGS="$CFLAGS $pplinc $gmpinc" | |
5657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5 | |
5658 | $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; } | |
5659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e28c595f JM |
5660 | /* end confdefs.h. */ |
5661 | #include "ppl_c.h" | |
5662 | int | |
5663 | main () | |
5664 | { | |
5665 | ||
b123da99 SP |
5666 | #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11 |
5667 | choke me | |
5668 | #endif | |
e28c595f JM |
5669 | |
5670 | ; | |
5671 | return 0; | |
5672 | } | |
5673 | _ACEOF | |
81ecdfbb RW |
5674 | if ac_fn_c_try_compile "$LINENO"; then : |
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5676 | $as_echo "yes" >&6; } | |
e28c595f | 5677 | else |
81ecdfbb | 5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1f53ca9a | 5679 | $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no |
e28c595f | 5680 | fi |
81ecdfbb | 5681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b123da99 SP |
5682 | CFLAGS="$saved_CFLAGS" |
5683 | fi | |
e28c595f JM |
5684 | fi |
5685 | ||
5686 | # Flags needed for PPL | |
5687 | ||
5688 | ||
5689 | ||
5690 | ||
5691 | # Check for CLOOG | |
e552509b | 5692 | |
e28c595f JM |
5693 | |
5694 | ||
81ecdfbb RW |
5695 | # Check whether --with-cloog was given. |
5696 | if test "${with_cloog+set}" = set; then : | |
5697 | withval=$with_cloog; | |
81ecdfbb RW |
5698 | fi |
5699 | ||
e28c595f | 5700 | |
e552509b | 5701 | # Check whether --with-cloog-include was given. |
81ecdfbb RW |
5702 | if test "${with_cloog_include+set}" = set; then : |
5703 | withval=$with_cloog_include; | |
5704 | fi | |
e28c595f | 5705 | |
e28c595f | 5706 | |
e552509b | 5707 | # Check whether --with-cloog-lib was given. |
81ecdfbb RW |
5708 | if test "${with_cloog_lib+set}" = set; then : |
5709 | withval=$with_cloog_lib; | |
5710 | fi | |
e28c595f | 5711 | |
e28c595f | 5712 | |
e552509b ILT |
5713 | # Check whether --enable-cloog-backend was given. |
5714 | if test "${enable_cloog_backend+set}" = set; then : | |
5715 | enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then | |
5716 | cloog_backend=isl | |
5717 | elif test "x${enableval}" = "xppl"; then | |
5718 | cloog_backend=ppl | |
5719 | else | |
5720 | cloog_backend=ppl-legacy | |
5721 | fi | |
5722 | else | |
5723 | cloog_backend=ppl-legacy | |
5724 | fi | |
5725 | ||
5726 | # Check whether --enable-cloog-version-check was given. | |
5727 | if test "${enable_cloog_version_check+set}" = set; then : | |
5728 | enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval | |
5729 | else | |
5730 | ENABLE_CLOOG_CHECK=yes | |
5731 | fi | |
5732 | ||
5733 | ||
5734 | # Initialize clooglibs and clooginc. | |
5735 | case $with_cloog in | |
5736 | no) | |
5737 | clooglibs= | |
5738 | clooginc= | |
5739 | ;; | |
5740 | "" | yes) | |
5741 | ;; | |
5742 | *) | |
5743 | clooglibs="-L$with_cloog/lib" | |
5744 | clooginc="-I$with_cloog/include" | |
5745 | ;; | |
5746 | esac | |
5747 | if test "x${with_cloog_include}" != x ; then | |
5748 | clooginc="-I$with_cloog_include" | |
5749 | fi | |
5750 | if test "x${with_cloog_lib}" != x; then | |
5751 | clooglibs="-L$with_cloog_lib" | |
5752 | fi | |
5753 | ||
5754 | ||
5755 | ||
5756 | ||
5757 | ||
1f53ca9a | 5758 | if test "x$with_ppl" = "xno"; then |
8d8eef9a RW |
5759 | |
5760 | ||
5761 | ||
5762 | if test "x${with_cloog}" = xno; then | |
5763 | graphite_requested=no | |
5764 | elif test "x${with_cloog}" != x \ | |
5765 | || test "x${with_cloog_include}" != x \ | |
5766 | || test "x${with_cloog_lib}" != x ; then | |
5767 | graphite_requested=yes | |
5768 | else | |
5769 | graphite_requested=no | |
5770 | fi | |
5771 | ||
5772 | ||
5773 | if test "${graphite_requested}" = yes; then | |
5774 | as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5 | |
5775 | fi | |
1f53ca9a AO |
5776 | with_cloog=no |
5777 | fi | |
e552509b ILT |
5778 | if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \ |
5779 | && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then | |
5780 | clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' ' | |
5781 | clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include ' | |
5782 | fi | |
5783 | if test "x$with_cloog" != "xno"; then | |
1f53ca9a | 5784 | |
e552509b ILT |
5785 | |
5786 | ||
5787 | _cloog_saved_CFLAGS=$CFLAGS | |
5788 | _cloog_saved_CPPFLAGS=$CPPFLAGS | |
5789 | _cloog_saved_LDFLAGS=$LDFLAGS | |
5790 | _cloog_saved_LIBS=$LIBS | |
5791 | ||
5792 | _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG" | |
5793 | ||
5794 | CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}" | |
5795 | CPPFLAGS="${CPPFLAGS} ${_cloogorginc}" | |
5796 | LDFLAGS="${LDFLAGS} ${clooglibs}" | |
5797 | ||
5798 | case $cloog_backend in | |
5799 | "ppl-legacy") | |
5800 | CFLAGS="${CFLAGS} ${pplinc}" | |
5801 | LDFLAGS="${LDFLAGS} ${ppllibs}" | |
5802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5 | |
5803 | $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; } | |
5804 | if test "${gcc_cv_cloog_type+set}" = set; then : | |
5805 | $as_echo_n "(cached) " >&6 | |
5806 | else | |
5807 | LIBS="-lcloog ${_cloog_saved_LIBS}" | |
5808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5809 | /* end confdefs.h. */ | |
5810 | #include "cloog/cloog.h" | |
5811 | int | |
5812 | main () | |
5813 | { | |
5814 | #ifndef CLOOG_PPL_BACKEND | |
5815 | choke me | |
5816 | #endif | |
5817 | ; | |
5818 | return 0; | |
5819 | } | |
5820 | _ACEOF | |
5821 | if ac_fn_c_try_link "$LINENO"; then : | |
5822 | gcc_cv_cloog_type="PPL Legacy" | |
5823 | else | |
5824 | gcc_cv_cloog_type=no | |
5825 | fi | |
5826 | rm -f core conftest.err conftest.$ac_objext \ | |
5827 | conftest$ac_exeext conftest.$ac_ext | |
e28c595f | 5828 | fi |
e552509b ILT |
5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 |
5830 | $as_echo "$gcc_cv_cloog_type" >&6; } | |
5831 | ;; | |
5832 | "isl") | |
5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5 | |
5834 | $as_echo_n "checking for installed CLooG ISL... " >&6; } | |
5835 | if test "${gcc_cv_cloog_type+set}" = set; then : | |
5836 | $as_echo_n "(cached) " >&6 | |
5837 | else | |
5838 | LIBS="-lcloog-isl ${_cloog_saved_LIBS}" | |
5839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5840 | /* end confdefs.h. */ | |
5841 | #include "cloog/cloog.h" | |
5842 | int | |
5843 | main () | |
5844 | { | |
5845 | cloog_version () | |
5846 | ; | |
5847 | return 0; | |
5848 | } | |
5849 | _ACEOF | |
5850 | if ac_fn_c_try_link "$LINENO"; then : | |
5851 | gcc_cv_cloog_type="ISL" | |
5852 | else | |
5853 | gcc_cv_cloog_type=no | |
e28c595f | 5854 | fi |
e552509b ILT |
5855 | rm -f core conftest.err conftest.$ac_objext \ |
5856 | conftest$ac_exeext conftest.$ac_ext | |
e28c595f | 5857 | fi |
e552509b ILT |
5858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 |
5859 | $as_echo "$gcc_cv_cloog_type" >&6; } | |
5860 | ;; | |
5861 | "ppl") | |
5862 | CFLAGS="${CFLAGS} ${pplinc}" | |
5863 | LDFLAGS="${LDFLAGS} ${ppllibs}" | |
5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5 | |
5865 | $as_echo_n "checking for installed CLooG PPL... " >&6; } | |
5866 | if test "${gcc_cv_cloog_type+set}" = set; then : | |
5867 | $as_echo_n "(cached) " >&6 | |
e28c595f | 5868 | else |
e552509b ILT |
5869 | LIBS="-lcloog-ppl ${_cloog_saved_LIBS}" |
5870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5871 | /* end confdefs.h. */ | |
5872 | #include "cloog/cloog.h" | |
5873 | #include "cloog/ppl/cloog.h" | |
5874 | int | |
5875 | main () | |
5876 | { | |
5877 | cloog_version () | |
5878 | ; | |
5879 | return 0; | |
5880 | } | |
5881 | _ACEOF | |
5882 | if ac_fn_c_try_link "$LINENO"; then : | |
5883 | gcc_cv_cloog_type="PPL" | |
5884 | else | |
5885 | gcc_cv_cloog_type=no | |
81ecdfbb | 5886 | fi |
e552509b ILT |
5887 | rm -f core conftest.err conftest.$ac_objext \ |
5888 | conftest$ac_exeext conftest.$ac_ext | |
5889 | fi | |
5890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 | |
5891 | $as_echo "$gcc_cv_cloog_type" >&6; } | |
5892 | ;; | |
5893 | *) | |
5894 | gcc_cv_cloog_type="" | |
5895 | esac | |
5896 | ||
5897 | case $gcc_cv_cloog_type in | |
5898 | "PPL Legacy") | |
5899 | clooginc="${clooginc}" | |
5900 | clooglibs="${clooglibs} -lcloog" | |
5901 | cloog_org=no | |
5902 | ;; | |
5903 | "ISL") | |
5904 | clooginc="${clooginc} ${_cloogorginc}" | |
b123da99 | 5905 | clooglibs="${clooglibs} -lcloog-isl -lisl" |
e552509b ILT |
5906 | cloog_org=yes |
5907 | ;; | |
5908 | "PPL") | |
5909 | clooginc="${clooginc} ${_cloogorginc}" | |
5910 | clooglibs="${clooglibs} -lcloog-ppl" | |
5911 | cloog_org=yes | |
5912 | ;; | |
5913 | *) | |
5914 | clooglibs= | |
5915 | clooginc= | |
5916 | cloog_org= | |
5917 | ;; | |
5918 | esac | |
81ecdfbb | 5919 | |
e552509b ILT |
5920 | LIBS=$_cloog_saved_LIBS |
5921 | CFLAGS=$_cloog_saved_CFLAGS | |
5922 | CPPFLAGS=$_cloog_saved_CPPFLAGS | |
5923 | LDFLAGS=$_cloog_saved_LDFLAGS | |
e28c595f | 5924 | |
e552509b ILT |
5925 | |
5926 | ||
5927 | ||
5928 | ||
5929 | if test "${ENABLE_CLOOG_CHECK}" = yes ; then | |
5930 | _cloog_saved_CFLAGS=$CFLAGS | |
5931 | _cloog_saved_LDFLAGS=$LDFLAGS | |
5932 | ||
5933 | CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}" | |
5934 | LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}" | |
5935 | ||
5936 | if test "${cloog_org}" = yes ; then | |
8d8eef9a RW |
5937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5 |
5938 | $as_echo_n "checking for version 0.16.1 of CLooG... " >&6; } | |
e552509b ILT |
5939 | if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then : |
5940 | $as_echo_n "(cached) " >&6 | |
5941 | else | |
5942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5943 | /* end confdefs.h. */ | |
5944 | #include "cloog/cloog.h" | |
5945 | int | |
5946 | main () | |
5947 | { | |
5948 | #if CLOOG_VERSION_MAJOR != 0 \ | |
8d8eef9a RW |
5949 | || CLOOG_VERSION_MINOR != 16 \ |
5950 | || CLOOG_VERSION_REVISION < 1 | |
e552509b ILT |
5951 | choke me |
5952 | #endif | |
5953 | ; | |
5954 | return 0; | |
5955 | } | |
5956 | _ACEOF | |
5957 | if ac_fn_c_try_compile "$LINENO"; then : | |
5958 | gcc_cv_cloog_ct_0_14_0=yes | |
5959 | else | |
5960 | gcc_cv_cloog_ct_0_14_0=no | |
5961 | fi | |
5962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5963 | fi | |
5964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5 | |
5965 | $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; } | |
5966 | elif test "${cloog_org}" = no ; then | |
5967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5 | |
143754cd | 5968 | $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; } |
e552509b ILT |
5969 | if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then : |
5970 | $as_echo_n "(cached) " >&6 | |
5971 | else | |
81ecdfbb | 5972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e28c595f JM |
5973 | /* end confdefs.h. */ |
5974 | #include "cloog/cloog.h" | |
5975 | int | |
5976 | main () | |
5977 | { | |
e552509b ILT |
5978 | #if CLOOG_VERSION_MAJOR != 0 \ |
5979 | || CLOOG_VERSION_MINOR != 15 \ | |
5980 | || CLOOG_VERSION_REVISION < 5 | |
5981 | choke me | |
5982 | #endif | |
e28c595f JM |
5983 | ; |
5984 | return 0; | |
5985 | } | |
5986 | _ACEOF | |
a009f2e7 RW |
5987 | if ac_fn_c_try_compile "$LINENO"; then : |
5988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5989 | /* end confdefs.h. */ | |
5990 | #include "cloog/cloog.h" | |
5991 | int | |
5992 | main () | |
5993 | { | |
e552509b ILT |
5994 | #if CLOOG_VERSION_MAJOR != 0 \ |
5995 | || CLOOG_VERSION_MINOR != 15 \ | |
5996 | || CLOOG_VERSION_REVISION < 9 | |
5997 | choke me | |
5998 | #endif | |
a009f2e7 RW |
5999 | ; |
6000 | return 0; | |
6001 | } | |
6002 | _ACEOF | |
81ecdfbb | 6003 | if ac_fn_c_try_compile "$LINENO"; then : |
e552509b | 6004 | gcc_cv_cloog_ct_0_15_5=yes |
a009f2e7 | 6005 | else |
e552509b | 6006 | gcc_cv_cloog_ct_0_15_5="buggy but acceptable" |
a009f2e7 RW |
6007 | fi |
6008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e28c595f | 6009 | else |
e552509b | 6010 | gcc_cv_cloog_ct_0_15_5=no |
e28c595f | 6011 | fi |
81ecdfbb | 6012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e28c595f | 6013 | fi |
e552509b ILT |
6014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5 |
6015 | $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; } | |
6016 | fi | |
6017 | ||
6018 | CFLAGS=$_cloog_saved_CFLAGS | |
6019 | LDFLAGS=$_cloog_saved_LDFLAGS | |
6020 | fi | |
6021 | ||
6022 | ||
6023 | ||
e28c595f | 6024 | |
e28c595f JM |
6025 | |
6026 | ||
6027 | ||
8d8eef9a RW |
6028 | if test "x${with_cloog}" = xno; then |
6029 | graphite_requested=no | |
6030 | elif test "x${with_cloog}" != x \ | |
e552509b ILT |
6031 | || test "x${with_cloog_include}" != x \ |
6032 | || test "x${with_cloog_lib}" != x ; then | |
6033 | graphite_requested=yes | |
6034 | else | |
6035 | graphite_requested=no | |
6036 | fi | |
6037 | ||
6038 | ||
6039 | ||
6040 | if test "${gcc_cv_cloog_ct_0_14_0}" = no \ | |
6041 | || test "${gcc_cv_cloog_rt_0_14_0}" = no \ | |
6042 | || test "${gcc_cv_cloog_ct_0_15_5}" = no; then | |
6043 | clooglibs= | |
6044 | clooginc= | |
6045 | fi | |
6046 | ||
6047 | if test "${graphite_requested}" = yes \ | |
6048 | && test "x${clooglibs}" = x \ | |
6049 | && test "x${clooginc}" = x ; then | |
6050 | ||
8d8eef9a | 6051 | as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5 |
e552509b ILT |
6052 | fi |
6053 | ||
6054 | ||
6055 | fi | |
6056 | ||
700d40ca ILT |
6057 | # Check for LTO support. |
6058 | # Check whether --enable-lto was given. | |
6059 | if test "${enable_lto+set}" = set; then : | |
6060 | enableval=$enable_lto; enable_lto=$enableval | |
6061 | else | |
6062 | enable_lto=yes; default_enable_lto=yes | |
6063 | fi | |
6064 | ||
6065 | ||
143754cd | 6066 | |
e49e5c92 DK |
6067 | |
6068 | ||
6069 | target_elf=no | |
6070 | case $target in | |
6071 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
090bc50f | 6072 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
a009f2e7 | 6073 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*) |
e49e5c92 DK |
6074 | target_elf=no |
6075 | ;; | |
6076 | *) | |
6077 | target_elf=yes | |
6078 | ;; | |
6079 | esac | |
6080 | ||
6081 | if test $target_elf = yes; then : | |
74cea91b DK |
6082 | # ELF platforms build the lto-plugin always. |
6083 | build_lto_plugin=yes | |
e49e5c92 | 6084 | |
e49e5c92 DK |
6085 | else |
6086 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 6087 | case $target in |
899b04ef | 6088 | *-apple-darwin9* | *-cygwin* | *-mingw*) ;; |
74cea91b | 6089 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
6090 | *) enable_lto=no ;; |
6091 | esac | |
e49e5c92 | 6092 | else |
29821356 RW |
6093 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6094 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
6095 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6096 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6097 | # -flto it won't be needed until after installation anyway. | |
6098 | case $target in | |
a8eb3f0a | 6099 | *-cygwin* | *-mingw* | *-apple-darwin*) ;; |
e49e5c92 DK |
6100 | *) if test x"$enable_lto" = x"yes"; then |
6101 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6102 | fi | |
6103 | ;; | |
6104 | esac | |
6105 | fi | |
a8eb3f0a | 6106 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 6107 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 6108 | case $target in |
74cea91b | 6109 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
6110 | *) ;; |
6111 | esac | |
74cea91b | 6112 | |
e49e5c92 DK |
6113 | fi |
6114 | ||
700d40ca | 6115 | |
e28c595f | 6116 | |
947f426e | 6117 | # By default, C is the only stage 1 language. |
9b134994 | 6118 | stage1_languages=,c, |
1d39f329 | 6119 | |
e8a5fa9c | 6120 | # Target libraries that we bootstrap. |
2aa2364a | 6121 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 6122 | |
9e07f89d NN |
6123 | # Figure out what language subdirectories are present. |
6124 | # Look if the user specified --enable-languages="..."; if not, use | |
6125 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6126 | # go away some day. | |
6127 | # NB: embedded tabs in this IF block -- do not untabify | |
6128 | if test -d ${srcdir}/gcc; then | |
6129 | if test x"${enable_languages+set}" != xset; then | |
6130 | if test x"${LANGUAGES+set}" = xset; then | |
6131 | enable_languages="${LANGUAGES}" | |
6132 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
6133 | else | |
6134 | enable_languages=all | |
6135 | fi | |
6136 | else | |
6137 | if test x"${enable_languages}" = x || | |
6138 | test x"${enable_languages}" = xyes; | |
6139 | then | |
6140 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
6141 | exit 1 | |
6142 | fi | |
6143 | fi | |
6144 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6145 | ||
096f7d00 DE |
6146 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6147 | # and make the substitution. | |
6148 | case ,${enable_languages}, in | |
6149 | *,f95,*) | |
6150 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
6151 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
6152 | ;; | |
6153 | esac | |
6154 | ||
ffdd6afc ILT |
6155 | # If bootstrapping, then using --enable-build-with-cxx or |
6156 | # --enable-build-poststage1-with-cxx requires enabling C++. | |
6157 | case ",$enable_languages,:,$ENABLE_BUILD_WITH_CXX,$ENABLE_BUILD_POSTSTAGE1_WITH_CXX,:$enable_bootstrap" in | |
6158 | *,c++,*:*:*) ;; | |
6159 | *:*,yes,*:yes) | |
6160 | if test -f ${srcdir}/gcc/cp/config-lang.in; then | |
6161 | enable_languages="${enable_languages},c++" | |
6162 | else | |
6163 | as_fn_error "bootstrapping with --enable-build-with-cxx or --enable-build-poststage1-with-cxx requires c++ sources" "$LINENO" 5 | |
6164 | fi | |
6165 | ;; | |
6166 | esac | |
6167 | ||
9e07f89d NN |
6168 | # First scan to see if an enabled language requires some other language. |
6169 | # We assume that a given config-lang.in will list all the language | |
6170 | # front ends it requires, even if some are required indirectly. | |
6171 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6172 | case ${lang_frag} in | |
6173 | ..) ;; | |
6174 | # The odd quoting in the next line works around | |
6175 | # an apparent bug in bash 1.12 on linux. | |
6176 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6177 | *) | |
e552509b ILT |
6178 | # From the config-lang.in, get $language, $lang_requires, and |
6179 | # $lang_requires_boot_languages. | |
9e07f89d NN |
6180 | language= |
6181 | lang_requires= | |
e552509b | 6182 | lang_requires_boot_languages= |
9e07f89d | 6183 | . ${lang_frag} |
e552509b | 6184 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
6185 | case ,${enable_languages}, in |
6186 | *,$other,*) ;; | |
6187 | *,all,*) ;; | |
6188 | *,$language,*) | |
6189 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6190 | enable_languages="${enable_languages},${other}" | |
6191 | ;; | |
6192 | esac | |
6193 | done | |
e552509b ILT |
6194 | for other in ${lang_requires_boot_languages} ; do |
6195 | if test "$other" != "c"; then | |
6196 | case ,${enable_stage1_languages}, in | |
6197 | *,$other,*) ;; | |
6198 | *,all,*) ;; | |
6199 | *) | |
6200 | case ,${enable_languages}, in | |
6201 | *,$language,*) | |
6202 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6203 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6204 | ;; | |
6205 | esac | |
6206 | ;; | |
6207 | esac | |
6208 | fi | |
6209 | done | |
9e07f89d NN |
6210 | ;; |
6211 | esac | |
6212 | done | |
6213 | ||
9b134994 | 6214 | new_enable_languages=,c, |
700d40ca ILT |
6215 | |
6216 | # If LTO is enabled, add the LTO front end. | |
6217 | extra_host_libiberty_configure_flags= | |
6218 | if test "$enable_lto" = "yes" ; then | |
6811fb56 RW |
6219 | case ,${enable_languages}, in |
6220 | *,lto,*) ;; | |
6221 | *) enable_languages="${enable_languages},lto" ;; | |
6222 | esac | |
a8eb3f0a | 6223 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca ILT |
6224 | configdirs="$configdirs lto-plugin" |
6225 | extra_host_libiberty_configure_flags=--enable-shared | |
6226 | fi | |
6227 | fi | |
6228 | ||
6229 | ||
9e07f89d | 6230 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 6231 | potential_languages=,c, |
9e07f89d | 6232 | |
9e1a94f4 ILT |
6233 | enabled_target_libs= |
6234 | disabled_target_libs= | |
6235 | ||
9e07f89d NN |
6236 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6237 | case ${lang_frag} in | |
6238 | ..) ;; | |
6239 | # The odd quoting in the next line works around | |
6240 | # an apparent bug in bash 1.12 on linux. | |
6241 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6242 | *) | |
c6b750e1 | 6243 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 6244 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
6245 | language= |
6246 | target_libs= | |
6247 | lang_dirs= | |
64ce424c | 6248 | subdir_requires= |
9b134994 PB |
6249 | boot_language=no |
6250 | build_by_default=yes | |
9e07f89d | 6251 | . ${lang_frag} |
9b134994 PB |
6252 | if test x${language} = x; then |
6253 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6254 | exit 1 | |
6255 | fi | |
6256 | ||
ffdd6afc ILT |
6257 | if test "$language" = "c++"; then |
6258 | if test "$ENABLE_BUILD_WITH_CXX" = "yes" \ | |
6259 | || test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then | |
6260 | boot_language=yes | |
6261 | fi | |
e8a5fa9c RW |
6262 | fi |
6263 | ||
9b134994 PB |
6264 | case ,${enable_languages}, in |
6265 | *,${language},*) | |
9e07f89d NN |
6266 | # Language was explicitly selected; include it. |
6267 | add_this_lang=yes | |
6268 | ;; | |
9b134994 PB |
6269 | *,all,*) |
6270 | # 'all' was selected, select it if it is a default language | |
6271 | add_this_lang=${build_by_default} | |
9e07f89d NN |
6272 | ;; |
6273 | *) | |
6274 | add_this_lang=no | |
6275 | ;; | |
6276 | esac | |
4b1cb4fe | 6277 | |
64ce424c | 6278 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 6279 | for i in $subdir_requires; do |
3d3adb43 | 6280 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
64ce424c PB |
6281 | case ,${enable_languages}, in |
6282 | *,${language},*) | |
6283 | # Specifically requested language; tell them. | |
81ecdfbb | 6284 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c PB |
6285 | ;; |
6286 | *) | |
6287 | # Silently disable. | |
9b134994 | 6288 | add_this_lang=unsupported |
64ce424c PB |
6289 | ;; |
6290 | esac | |
6291 | done | |
6292 | ||
9b134994 PB |
6293 | # Disable Ada if no preexisting GNAT is available. |
6294 | case ,${enable_languages},:${language}:${have_gnat} in | |
6295 | *,${language},*:ada:no) | |
6296 | # Specifically requested language; tell them. | |
81ecdfbb | 6297 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
9b134994 PB |
6298 | ;; |
6299 | *:ada:no) | |
6300 | # Silently disable. | |
6301 | add_this_lang=unsupported | |
6302 | ;; | |
6303 | esac | |
6304 | ||
59f7ec45 HPN |
6305 | # Disable a language that is unsupported by the target. |
6306 | case " $unsupported_languages " in | |
6307 | *" $language "*) | |
9b134994 | 6308 | add_this_lang=unsupported |
59f7ec45 HPN |
6309 | ;; |
6310 | esac | |
6311 | ||
4b1cb4fe | 6312 | case $add_this_lang in |
9b134994 | 6313 | unsupported) |
9e07f89d | 6314 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
6315 | disabled_target_libs="$disabled_target_libs $target_libs" |
6316 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 6317 | ;; |
9b134994 PB |
6318 | no) |
6319 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
6320 | disabled_target_libs="$disabled_target_libs $target_libs" |
6321 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
6322 | potential_languages="${potential_languages}${language}," |
6323 | ;; | |
6324 | yes) | |
6325 | new_enable_languages="${new_enable_languages}${language}," | |
6326 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 6327 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 6328 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
6329 | case "${boot_language}:,$enable_stage1_languages," in |
6330 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 6331 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
6332 | case ",$stage1_languages," in |
6333 | *,$language,* | ,yes, | ,all,) ;; | |
6334 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6335 | esac | |
e8a5fa9c RW |
6336 | # We need to bootstrap any supporting libraries. |
6337 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
1d39f329 NN |
6338 | ;; |
6339 | esac | |
6340 | ;; | |
9e07f89d NN |
6341 | esac |
6342 | ;; | |
6343 | esac | |
6344 | done | |
6345 | ||
9e1a94f4 ILT |
6346 | # Add target libraries which are only needed for disabled languages |
6347 | # to noconfigdirs. | |
6348 | if test -n "$disabled_target_libs"; then | |
6349 | for dir in $disabled_target_libs; do | |
6350 | case " $enabled_target_libs " in | |
6351 | *" ${dir} "*) ;; | |
6352 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6353 | esac | |
6354 | done | |
6355 | fi | |
6356 | ||
81ecdfbb RW |
6357 | # Check whether --enable-stage1-languages was given. |
6358 | if test "${enable_stage1_languages+set}" = set; then : | |
6359 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
6360 | ,no,|,,) |
6361 | # Set it to something that will have no effect in the loop below | |
6362 | enable_stage1_languages=c ;; | |
6363 | ,yes,) | |
6364 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6365 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6366 | *,all,*) | |
6367 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6368 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6369 | esac | |
6370 | ||
6371 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6372 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6373 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6374 | case $potential_languages in | |
6375 | *,$i,*) | |
6376 | case $stage1_languages in | |
6377 | *,$i,*) ;; | |
6378 | *) stage1_languages="$stage1_languages$i," ;; | |
6379 | esac ;; | |
6380 | *) | |
6381 | case $missing_languages in | |
6382 | *,$i,*) ;; | |
6383 | *) missing_languages="$missing_languages$i," ;; | |
6384 | esac ;; | |
6385 | esac | |
6386 | done | |
81ecdfbb RW |
6387 | fi |
6388 | ||
9b134994 PB |
6389 | |
6390 | # Remove leading/trailing commas that were added for simplicity | |
6391 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 6392 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
6393 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6394 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6395 | ||
9e07f89d | 6396 | if test "x$missing_languages" != x; then |
81ecdfbb | 6397 | as_fn_error " |
27258dd4 | 6398 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 6399 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 6400 | fi |
9e07f89d NN |
6401 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6402 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 6403 | enable_languages="$new_enable_languages" |
9e07f89d | 6404 | fi |
9b134994 | 6405 | |
c6b750e1 | 6406 | |
81ec575a | 6407 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
6408 | fi |
6409 | ||
a6df5a19 PB |
6410 | # Handle --disable-<component> generically. |
6411 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6412 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
6413 | varname=`echo $dirname | sed -e s/+/_/g` |
6414 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
6415 | noconfigdirs="$noconfigdirs $dir" |
6416 | fi | |
6417 | done | |
6418 | ||
4f0ef2d8 | 6419 | # Check for Boehm's garbage collector |
81ecdfbb RW |
6420 | # Check whether --enable-objc-gc was given. |
6421 | if test "${enable_objc_gc+set}" = set; then : | |
6422 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
4f0ef2d8 | 6423 | *,objc,*:*:yes:*target-boehm-gc*) |
81ecdfbb | 6424 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
4f0ef2d8 CD |
6425 | ;; |
6426 | esac | |
81ecdfbb RW |
6427 | fi |
6428 | ||
4f0ef2d8 CD |
6429 | |
6430 | # Make sure we only build Boehm's garbage collector if required. | |
d42c4017 DA |
6431 | case ,${enable_languages},:${enable_objc_gc} in |
6432 | *,objc,*:yes) | |
4f0ef2d8 CD |
6433 | # Keep target-boehm-gc if requested for Objective-C. |
6434 | ;; | |
4f0ef2d8 | 6435 | *) |
d42c4017 DA |
6436 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6437 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6438 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6439 | fi | |
4f0ef2d8 CD |
6440 | ;; |
6441 | esac | |
6442 | ||
caeba88f AL |
6443 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6444 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
6445 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6446 | ||
6447 | notsupp="" | |
6448 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 6449 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
6450 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6451 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6452 | if test -r $srcdir/$dirname/configure ; then | |
6453 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6454 | true | |
6455 | else | |
6456 | notsupp="$notsupp $dir" | |
6457 | fi | |
6458 | fi | |
6459 | fi | |
caeba88f AL |
6460 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6461 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6462 | if test -r $srcdir/$dirname/configure ; then | |
6463 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6464 | true | |
6465 | else | |
6466 | notsupp="$notsupp $dir" | |
6467 | fi | |
6468 | fi | |
6469 | fi | |
9e07f89d NN |
6470 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6471 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6472 | if test -r $srcdir/$dirname/configure ; then | |
6473 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6474 | true | |
6475 | else | |
6476 | notsupp="$notsupp $dir" | |
6477 | fi | |
6478 | fi | |
6479 | fi | |
6480 | done | |
6481 | ||
9e07f89d NN |
6482 | # Quietly strip out all directories which aren't configurable in this tree. |
6483 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6484 | # is now the case. | |
6a9cf61e PB |
6485 | build_configdirs_all="$build_configdirs" |
6486 | build_configdirs= | |
6487 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 6488 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
6489 | if test -f ${srcdir}/$j/configure ; then |
6490 | build_configdirs="${build_configdirs} $i" | |
6491 | fi | |
6492 | done | |
6493 | ||
9e07f89d NN |
6494 | configdirs_all="$configdirs" |
6495 | configdirs= | |
6496 | for i in ${configdirs_all} ; do | |
6497 | if test -f ${srcdir}/$i/configure ; then | |
6498 | configdirs="${configdirs} $i" | |
6499 | fi | |
6500 | done | |
6a9cf61e | 6501 | |
9e07f89d NN |
6502 | target_configdirs_all="$target_configdirs" |
6503 | target_configdirs= | |
6504 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 6505 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
6506 | if test -f ${srcdir}/$j/configure ; then |
6507 | target_configdirs="${target_configdirs} $i" | |
6508 | fi | |
6509 | done | |
6510 | ||
6511 | # Produce a warning message for the subdirs we can't configure. | |
6512 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6513 | # FSF releases, it's important to let people know when their machine isn't | |
6514 | # supported by the one or two programs in a package. | |
6515 | ||
6516 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6517 | # If $appdirs is non-empty, at least one of those directories must still | |
6518 | # be configured, or we error out. (E.g., if the gas release supports a | |
6519 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6520 | # pretend that all is well.) | |
6521 | if test -n "$appdirs" ; then | |
6522 | for dir in $appdirs ; do | |
6523 | if test -r $dir/Makefile.in ; then | |
6524 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6525 | appdirs="" | |
6526 | break | |
6527 | fi | |
6a9cf61e | 6528 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
6529 | appdirs="" |
6530 | break | |
6531 | fi | |
6532 | fi | |
6533 | done | |
6534 | if test -n "$appdirs" ; then | |
6535 | echo "*** This configuration is not supported by this package." 1>&2 | |
6536 | exit 1 | |
6537 | fi | |
6538 | fi | |
6539 | # Okay, some application will build, or we don't care to check. Still | |
6540 | # notify of subdirs not getting built. | |
6541 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6542 | echo " ${notsupp}" 1>&2 | |
6543 | echo " (Any other directories should still work fine.)" 1>&2 | |
6544 | fi | |
6545 | ||
6546 | case "$host" in | |
6547 | *msdosdjgpp*) | |
6548 | enable_gdbtk=no ;; | |
6549 | esac | |
6550 | ||
18f6b6ee PB |
6551 | # To find our prefix, in gcc_cv_tool_prefix. |
6552 | ||
6553 | # The user is always right. | |
6554 | if test "${PATH_SEPARATOR+set}" != set; then | |
6555 | echo "#! /bin/sh" >conf$$.sh | |
6556 | echo "exit 0" >>conf$$.sh | |
6557 | chmod +x conf$$.sh | |
6558 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6559 | PATH_SEPARATOR=';' | |
6560 | else | |
6561 | PATH_SEPARATOR=: | |
6562 | fi | |
6563 | rm -f conf$$.sh | |
6564 | fi | |
6565 | ||
6566 | ||
6567 | ||
6568 | if test "x$exec_prefix" = xNONE; then | |
6569 | if test "x$prefix" = xNONE; then | |
6570 | gcc_cv_tool_prefix=$ac_default_prefix | |
6571 | else | |
6572 | gcc_cv_tool_prefix=$prefix | |
6573 | fi | |
6574 | else | |
6575 | gcc_cv_tool_prefix=$exec_prefix | |
6576 | fi | |
6577 | ||
6578 | # If there is no compiler in the tree, use the PATH only. In any | |
6579 | # case, if there is no compiler in the tree nobody should use | |
6580 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6581 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6582 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6583 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6584 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6585 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6586 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6587 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6588 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6589 | else | |
6590 | gcc_cv_tool_dirs= | |
6591 | fi | |
6592 | ||
6593 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6594 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6595 | fi | |
6596 | ||
6597 | ||
6598 | ||
9e07f89d NN |
6599 | copy_dirs= |
6600 | ||
c6b750e1 | 6601 | |
81ecdfbb RW |
6602 | # Check whether --with-build-sysroot was given. |
6603 | if test "${with_build_sysroot+set}" = set; then : | |
6604 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
6605 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6606 | fi | |
6607 | else | |
6608 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 6609 | fi |
a19b6204 MM |
6610 | |
6611 | ||
8a6ee3ab | 6612 | |
81ecdfbb RW |
6613 | |
6614 | # Check whether --with-debug-prefix-map was given. | |
6615 | if test "${with_debug_prefix_map+set}" = set; then : | |
6616 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
6617 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6618 | for debug_map in $withval; do | |
6619 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6620 | done | |
6621 | fi | |
6622 | else | |
6623 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
6624 | fi |
6625 | ||
8a6ee3ab JM |
6626 | |
6627 | ||
7f6ef0c0 PB |
6628 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6629 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6630 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6631 | # We want to ensure that TARGET libraries (which we know are built with | |
6632 | # gcc) are built with "-O2 -g", so include those options when setting | |
6633 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6634 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
6635 | CFLAGS_FOR_TARGET=$CFLAGS | |
6636 | case " $CFLAGS " in | |
6637 | *" -O2 "*) ;; | |
6638 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;; | |
6639 | esac | |
6640 | case " $CFLAGS " in | |
6641 | *" -g "* | *" -g3 "*) ;; | |
6642 | *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;; | |
6643 | esac | |
6644 | fi | |
6645 | ||
6646 | ||
6647 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
6648 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6649 | case " $CXXFLAGS " in | |
6650 | *" -O2 "*) ;; | |
6651 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;; | |
6652 | esac | |
6653 | case " $CXXFLAGS " in | |
6654 | *" -g "* | *" -g3 "*) ;; | |
6655 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;; | |
6656 | esac | |
6657 | fi | |
6658 | ||
6659 | ||
91c1f14c DK |
6660 | |
6661 | ||
9e07f89d NN |
6662 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6663 | # the named directory are copied to $(tooldir)/sys-include. | |
6664 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6665 | if test x${is_cross_compiler} = xno ; then | |
6666 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6667 | exit 1 | |
6668 | fi | |
6669 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 6670 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 6671 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
6672 | fi |
6673 | fi | |
6674 | ||
6675 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6676 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6677 | # are permitted. | |
6678 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6679 | if test x${is_cross_compiler} = xno ; then | |
6680 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6681 | exit 1 | |
6682 | fi | |
6683 | if test x"${with_libs}" != xyes ; then | |
6684 | # Copy the libraries in reverse order, so that files in the first named | |
6685 | # library override files in subsequent libraries. | |
18f6b6ee | 6686 | x=${gcc_cv_tool_prefix} |
9e07f89d | 6687 | for l in ${with_libs}; do |
c6b750e1 | 6688 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
6689 | done |
6690 | fi | |
6691 | fi | |
6692 | ||
700d40ca | 6693 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
6694 | # |
6695 | # This is done by determining whether or not the appropriate directory | |
6696 | # is available, and by checking whether or not specific configurations | |
6697 | # have requested that this magic not happen. | |
c6b750e1 DJ |
6698 | # |
6699 | # The command line options always override the explicit settings in | |
2429c060 PB |
6700 | # configure.in, and the settings in configure.in override this magic. |
6701 | # | |
c6b750e1 | 6702 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 6703 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
6704 | # --without-gnu-ld options for the configure script. Similarly, if |
6705 | # the default is to use the included zlib and you don't want to do that, | |
6706 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
6707 | |
6708 | if test x${use_gnu_as} = x && | |
6709 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6710 | with_gnu_as=yes | |
6711 | extra_host_args="$extra_host_args --with-gnu-as" | |
6712 | fi | |
6713 | ||
6714 | if test x${use_gnu_ld} = x && | |
93f9b408 | 6715 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
6716 | with_gnu_ld=yes |
6717 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6718 | fi | |
6719 | ||
700d40ca ILT |
6720 | if test x${use_included_zlib} = x && |
6721 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6722 | : | |
6723 | else | |
6724 | with_system_zlib=yes | |
6725 | extra_host_args="$extra_host_args --with-system-zlib" | |
6726 | fi | |
6727 | ||
2429c060 PB |
6728 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6729 | # can detect this case. | |
6730 | ||
6731 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6732 | with_newlib=yes | |
6733 | extra_host_args="$extra_host_args --with-newlib" | |
6734 | fi | |
6735 | ||
9e07f89d NN |
6736 | # Handle ${copy_dirs} |
6737 | set fnord ${copy_dirs} | |
6738 | shift | |
6739 | while test $# != 0 ; do | |
6740 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6741 | : | |
6742 | else | |
6743 | echo Copying $1 to $2 | |
6744 | ||
6745 | # Use the install script to create the directory and all required | |
6746 | # parent directories. | |
6747 | if test -d $2 ; then | |
6748 | : | |
6749 | else | |
6750 | echo >config.temp | |
6751 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6752 | fi | |
6753 | ||
6754 | # Copy the directory, assuming we have tar. | |
6755 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6756 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6757 | ||
6758 | # It is the responsibility of the user to correctly adjust all | |
6759 | # symlinks. If somebody can figure out how to handle them correctly | |
6760 | # here, feel free to add the code. | |
6761 | ||
6762 | echo $1 > $2/COPIED | |
6763 | fi | |
6764 | shift; shift | |
6765 | done | |
6766 | ||
2429c060 PB |
6767 | # Determine a target-dependent exec_prefix that the installed |
6768 | # gcc will search in. Keep this list sorted by triplet, with | |
6769 | # the *-*-osname triplets last. | |
6770 | md_exec_prefix= | |
6771 | case "${target}" in | |
521ec477 | 6772 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
6773 | md_exec_prefix=/dev/env/DJDIR/bin |
6774 | ;; | |
2429c060 | 6775 | *-*-hpux* | \ |
2429c060 | 6776 | *-*-nto-qnx* | \ |
1f111696 | 6777 | *-*-solaris2*) |
2429c060 PB |
6778 | md_exec_prefix=/usr/ccs/bin |
6779 | ;; | |
6780 | esac | |
6781 | ||
a0da8069 NN |
6782 | extra_arflags_for_target= |
6783 | extra_nmflags_for_target= | |
6784 | extra_ranlibflags_for_target= | |
6785 | target_makefile_frag=/dev/null | |
6786 | case "${target}" in | |
77d7106f AM |
6787 | spu-*-*) |
6788 | target_makefile_frag="config/mt-spu" | |
6789 | ;; | |
429acdec RS |
6790 | mips*-sde-elf*) |
6791 | target_makefile_frag="config/mt-sde" | |
6792 | ;; | |
f3b1e08e RS |
6793 | mipsisa*-*-elfoabi*) |
6794 | target_makefile_frag="config/mt-mips-elfoabi" | |
6795 | ;; | |
e7c8859c RS |
6796 | mips*-*-*linux* | mips*-*-gnu*) |
6797 | target_makefile_frag="config/mt-mips-gnu" | |
6798 | ;; | |
29383458 | 6799 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 6800 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
6801 | ;; |
6802 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 6803 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
6804 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6805 | # harmless if we're using GNU nm or ar. | |
6806 | extra_arflags_for_target=" -X32_64" | |
6807 | extra_nmflags_for_target=" -B -X32_64" | |
6808 | ;; | |
92f4e989 JM |
6809 | *-*-darwin[3-9]*) |
6810 | # ranlib before Darwin10 requires the -c flag to look at common symbols. | |
a0da8069 NN |
6811 | extra_ranlibflags_for_target=" -c" |
6812 | ;; | |
a0da8069 NN |
6813 | esac |
6814 | ||
6815 | alphaieee_frag=/dev/null | |
6816 | case $target in | |
6817 | alpha*-*-*) | |
6818 | # This just makes sure to use the -mieee option to build target libs. | |
6819 | # This should probably be set individually by each library. | |
6820 | alphaieee_frag="config/mt-alphaieee" | |
6821 | ;; | |
6822 | esac | |
6823 | ||
6824 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6825 | # the target libraries, similarly if it is not specified, use -Os | |
6826 | # on selected platforms. | |
6827 | ospace_frag=/dev/null | |
6828 | case "${enable_target_optspace}:${target}" in | |
6829 | yes:*) | |
6830 | ospace_frag="config/mt-ospace" | |
6831 | ;; | |
6832 | :d30v-*) | |
6833 | ospace_frag="config/mt-d30v" | |
6834 | ;; | |
6835 | :m32r-* | :d10v-* | :fr30-*) | |
6836 | ospace_frag="config/mt-ospace" | |
6837 | ;; | |
6838 | no:* | :*) | |
6839 | ;; | |
6840 | *) | |
6841 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6842 | ;; | |
6843 | esac | |
6844 | ||
a0da8069 NN |
6845 | # Default to using --with-stabs for certain targets. |
6846 | if test x${with_stabs} = x ; then | |
6847 | case "${target}" in | |
e31d1ea3 | 6848 | mips*-*-irix[56]*) |
a0da8069 NN |
6849 | ;; |
6850 | mips*-*-* | alpha*-*-osf*) | |
6851 | with_stabs=yes; | |
6852 | extra_host_args="${extra_host_args} --with-stabs" | |
6853 | ;; | |
6854 | esac | |
6855 | fi | |
6856 | ||
a0da8069 NN |
6857 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6858 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 6859 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
6860 | build_tooldir=${tooldir} |
6861 | ||
a0da8069 NN |
6862 | # Create a .gdbinit file which runs the one in srcdir |
6863 | # and tells GDB to look there for source files. | |
6864 | ||
6865 | if test -r ${srcdir}/.gdbinit ; then | |
6866 | case ${srcdir} in | |
6867 | .) ;; | |
6868 | *) cat > ./.gdbinit <<EOF | |
6869 | # ${NO_EDIT} | |
6870 | dir ${srcdir} | |
6871 | dir . | |
6872 | source ${srcdir}/.gdbinit | |
6873 | EOF | |
6874 | ;; | |
6875 | esac | |
6876 | fi | |
6877 | ||
a0da8069 NN |
6878 | # Make sure that the compiler is able to generate an executable. If it |
6879 | # can't, we are probably in trouble. We don't care whether we can run the | |
6880 | # executable--we might be using a cross compiler--we only care whether it | |
6881 | # can be created. At this point the main configure script has set CC. | |
6882 | we_are_ok=no | |
6883 | echo "int main () { return 0; }" > conftest.c | |
6884 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
6885 | if test $? = 0 ; then | |
6886 | if test -s conftest || test -s conftest.exe ; then | |
6887 | we_are_ok=yes | |
6888 | fi | |
c6b750e1 | 6889 | fi |
a0da8069 NN |
6890 | case $we_are_ok in |
6891 | no) | |
6892 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
6893 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
6894 | rm -f conftest* | |
6895 | exit 1 | |
6896 | ;; | |
6897 | esac | |
6898 | rm -f conftest* | |
6899 | ||
3bbd2f8f | 6900 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
6901 | case "${host}" in |
6902 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 6903 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 6904 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
6905 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
6906 | esac | |
6907 | ||
3bbd2f8f | 6908 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
6909 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
6910 | # built executables to PATH. | |
3bbd2f8f AL |
6911 | if test "$RPATH_ENVVAR" = PATH; then |
6912 | GCC_SHLIB_SUBDIR=/shlib | |
6913 | else | |
6914 | GCC_SHLIB_SUBDIR= | |
6915 | fi | |
6916 | ||
a0da8069 NN |
6917 | # Record target_configdirs and the configure arguments for target and |
6918 | # build configuration in Makefile. | |
6919 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 6920 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
a0da8069 | 6921 | |
2aa2364a JR |
6922 | # If we are building libgomp, bootstrap it. |
6923 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
6924 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
6925 | fi | |
6926 | ||
a0da8069 NN |
6927 | # Determine whether gdb needs tk/tcl or not. |
6928 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
6929 | # and in that case we want gdb to be built without tk. Ugh! | |
6930 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
6931 | # so we should be able to put the 'maybe's in unconditionally and | |
6932 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
6933 | # 100% sure that that's safe though. | |
c180f501 | 6934 | |
675c6968 | 6935 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
6936 | case "$enable_gdbtk" in |
6937 | no) | |
6938 | GDB_TK="" ;; | |
c180f501 AC |
6939 | yes) |
6940 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 6941 | *) |
c180f501 AC |
6942 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
6943 | # distro. Eventually someone will fix this and move Insight, nee | |
6944 | # gdbtk to a separate directory. | |
6945 | if test -d ${srcdir}/gdb/gdbtk ; then | |
6946 | GDB_TK="${gdb_tk}" | |
6947 | else | |
6948 | GDB_TK="" | |
6949 | fi | |
6950 | ;; | |
a0da8069 | 6951 | esac |
907be67c DJ |
6952 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
6953 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 6954 | |
6bd3dfaa | 6955 | # Strip out unwanted targets. |
dd12c3a8 NN |
6956 | |
6957 | # While at that, we remove Makefiles if we were started for recursive | |
6958 | # configuration, so that the top-level Makefile reconfigures them, | |
6959 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 6960 | |
06a51eac RW |
6961 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
6962 | # but now we're fixing up the Makefile ourselves with the additional | |
6963 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
6964 | # extrasub-{build,host,target} not because there is any reason to split | |
6965 | # the substitutions up that way, but only to remain below the limit of | |
6966 | # 99 commands in a script, for HP-UX sed. | |
6967 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
dd12c3a8 | 6968 | |
16b1ad29 RW |
6969 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
6970 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
6971 | yes:yes:*\ gold\ *:*) | |
6972 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
6973 | ;; | |
6974 | esac | |
6975 | ||
9cb3fa6f | 6976 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
96655cc4 | 6977 | case $enable_bootstrap in |
319cab08 | 6978 | yes) |
96655cc4 AO |
6979 | bootstrap_suffix=bootstrap |
6980 | BUILD_CONFIG=bootstrap-debug | |
6981 | ;; | |
319cab08 | 6982 | no) |
96655cc4 AO |
6983 | bootstrap_suffix=no-bootstrap |
6984 | BUILD_CONFIG= | |
6985 | ;; | |
319cab08 PB |
6986 | esac |
6987 | ||
96655cc4 AO |
6988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 |
6989 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
6990 | ||
6991 | ||
6992 | # Check whether --with-build-config was given. | |
6993 | if test "${with_build_config+set}" = set; then : | |
6994 | withval=$with_build_config; case $with_build_config in | |
6995 | yes) with_build_config= ;; | |
6996 | no) with_build_config= BUILD_CONFIG= ;; | |
6997 | esac | |
6998 | fi | |
6999 | ||
7000 | ||
7001 | if test "x${with_build_config}" != x; then | |
7002 | BUILD_CONFIG=$with_build_config | |
7003 | else | |
7004 | case $BUILD_CONFIG in | |
7005 | bootstrap-debug) | |
7006 | if echo "int f (void) { return 0; }" > conftest.c && | |
7007 | ${CC} -c conftest.c && | |
7008 | mv conftest.o conftest.o.g0 && | |
7009 | ${CC} -c -g conftest.c && | |
7010 | mv conftest.o conftest.o.g && | |
a009f2e7 | 7011 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then |
96655cc4 AO |
7012 | : |
7013 | else | |
7014 | BUILD_CONFIG= | |
7015 | fi | |
7016 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7017 | ;; | |
7018 | esac | |
7019 | fi | |
7020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7021 | $as_echo "$BUILD_CONFIG" >&6; } | |
7022 | ||
7023 | ||
06a51eac | 7024 | extrasub_build= |
6a9cf61e | 7025 | for module in ${build_configdirs} ; do |
498d4a71 CF |
7026 | if test -z "${no_recursion}" \ |
7027 | && test -f ${build_subdir}/${module}/Makefile; then | |
7028 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7029 | rm -f ${build_subdir}/${module}/Makefile | |
7030 | fi | |
06a51eac | 7031 | extrasub_build="$extrasub_build |
498d4a71 CF |
7032 | /^@if build-$module\$/d |
7033 | /^@endif build-$module\$/d | |
7034 | /^@if build-$module-$bootstrap_suffix\$/d | |
7035 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7036 | done | |
06a51eac | 7037 | extrasub_host= |
498d4a71 | 7038 | for module in ${configdirs} ; do |
80911fe1 | 7039 | if test -z "${no_recursion}"; then |
8cf39b1b | 7040 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
7041 | if test -f ${file}; then |
7042 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7043 | rm -f ${file} | |
7044 | fi | |
7045 | done | |
498d4a71 | 7046 | fi |
06a51eac | 7047 | extrasub_host="$extrasub_host |
498d4a71 CF |
7048 | /^@if $module\$/d |
7049 | /^@endif $module\$/d | |
7050 | /^@if $module-$bootstrap_suffix\$/d | |
7051 | /^@endif $module-$bootstrap_suffix\$/d" | |
7052 | done | |
06a51eac | 7053 | extrasub_target= |
498d4a71 CF |
7054 | for module in ${target_configdirs} ; do |
7055 | if test -z "${no_recursion}" \ | |
7056 | && test -f ${target_subdir}/${module}/Makefile; then | |
7057 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7058 | rm -f ${target_subdir}/${module}/Makefile | |
7059 | fi | |
e8a5fa9c RW |
7060 | |
7061 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7062 | case $bootstrap_target_libs in | |
7063 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7064 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7065 | esac | |
7066 | ||
06a51eac | 7067 | extrasub_target="$extrasub_target |
498d4a71 CF |
7068 | /^@if target-$module\$/d |
7069 | /^@endif target-$module\$/d | |
e8a5fa9c RW |
7070 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7071 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
7072 | done |
7073 | ||
06a51eac RW |
7074 | # Do the final fixup along with target modules. |
7075 | extrasub_target="$extrasub_target | |
6bd3dfaa | 7076 | /^@if /,/^@endif /d" |
a0da8069 NN |
7077 | |
7078 | # Create the serialization dependencies. This uses a temporary file. | |
7079 | ||
81ecdfbb RW |
7080 | # Check whether --enable-serial-configure was given. |
7081 | if test "${enable_serial_configure+set}" = set; then : | |
7082 | enableval=$enable_serial_configure; | |
7083 | fi | |
e6bfb94a AO |
7084 | |
7085 | ||
1047cb91 DD |
7086 | case ${enable_serial_configure} in |
7087 | yes) | |
7088 | enable_serial_build_configure=yes | |
7089 | enable_serial_host_configure=yes | |
7090 | enable_serial_target_configure=yes | |
7091 | ;; | |
7092 | esac | |
7093 | ||
a0da8069 NN |
7094 | # These force 'configure's to be done one at a time, to avoid problems |
7095 | # with contention over a shared config.cache. | |
7096 | rm -f serdep.tmp | |
e6bfb94a | 7097 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 7098 | olditem= |
1047cb91 | 7099 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
7100 | for item in ${build_configdirs} ; do |
7101 | case ${olditem} in | |
7102 | "") ;; | |
e6bfb94a | 7103 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7104 | esac |
7105 | olditem=${item} | |
7106 | done | |
7107 | olditem= | |
1047cb91 | 7108 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
7109 | for item in ${configdirs} ; do |
7110 | case ${olditem} in | |
7111 | "") ;; | |
e6bfb94a | 7112 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7113 | esac |
7114 | olditem=${item} | |
7115 | done | |
7116 | olditem= | |
1047cb91 | 7117 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
7118 | for item in ${target_configdirs} ; do |
7119 | case ${olditem} in | |
7120 | "") ;; | |
e6bfb94a | 7121 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7122 | esac |
7123 | olditem=${item} | |
7124 | done | |
7125 | serialization_dependencies=serdep.tmp | |
7126 | ||
7127 | ||
e6bfb94a | 7128 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 7129 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
7130 | # might not want to pass down to subconfigures. The exception being |
7131 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7132 | # files altogether, and which should be passed on to subconfigures. | |
7133 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7134 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 7135 | baseargs= |
65b4571a | 7136 | tbaseargs= |
c6b750e1 DJ |
7137 | keep_next=no |
7138 | skip_next=no | |
7139 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
7140 | for ac_arg |
7141 | do | |
c6b750e1 DJ |
7142 | if test X"$skip_next" = X"yes"; then |
7143 | skip_next=no | |
7144 | continue | |
7145 | fi | |
7146 | if test X"$keep_next" = X"yes"; then | |
7147 | case $ac_arg in | |
7148 | *\'*) | |
7149 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7150 | esac | |
7151 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7152 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
7153 | keep_next=no |
7154 | continue | |
7155 | fi | |
7156 | ||
7157 | # Handle separated arguments. Based on the logic generated by | |
7158 | # autoconf 2.59. | |
7159 | case $ac_arg in | |
7160 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7161 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7162 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7163 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7164 | separate_arg=no | |
7165 | ;; | |
7166 | -*) | |
7167 | separate_arg=yes | |
7168 | ;; | |
7169 | *) | |
7170 | separate_arg=no | |
7171 | ;; | |
7172 | esac | |
7173 | ||
65b4571a AO |
7174 | skip_targ=no |
7175 | case $ac_arg in | |
7176 | ||
7177 | --with-* | --without-*) | |
7178 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7179 | ||
7180 | case $libopt in | |
7181 | *[-_]include) | |
7182 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7183 | ;; | |
7184 | *[-_]lib) | |
7185 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7186 | ;; | |
7187 | *) | |
7188 | lib=$libopt | |
7189 | ;; | |
7190 | esac | |
7191 | ||
7192 | ||
7193 | case $lib in | |
7194 | mpc | mpfr | gmp | ppl | cloog) | |
7195 | # If we're processing --with-$lib, --with-$lib-include or | |
7196 | # --with-$lib-lib, for one of the libs above, and target is | |
7197 | # different from host, don't pass the current argument to any | |
7198 | # target library's configure. | |
7199 | if test x$is_cross_compiler = xyes; then | |
7200 | skip_targ=yes | |
7201 | fi | |
7202 | ;; | |
7203 | esac | |
7204 | ;; | |
7205 | esac | |
7206 | ||
c6b750e1 | 7207 | case "$ac_arg" in |
30167e0a NC |
7208 | --cache-file=/dev/null | \ |
7209 | -cache-file=/dev/null ) | |
7210 | # Handled here to avoid the test to skip args below. | |
7211 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7212 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
7213 | # Assert: $separate_arg should always be no. |
7214 | keep_next=$separate_arg | |
7215 | ;; | |
c6b750e1 DJ |
7216 | --no*) |
7217 | continue | |
7218 | ;; | |
7219 | --c* | \ | |
7220 | --sr* | \ | |
7221 | --ho* | \ | |
7222 | --bu* | \ | |
7223 | --t* | \ | |
7224 | --program-* | \ | |
7225 | -cache_file* | \ | |
7226 | -srcdir* | \ | |
7227 | -host* | \ | |
7228 | -build* | \ | |
7229 | -target* | \ | |
7230 | -program-prefix* | \ | |
7231 | -program-suffix* | \ | |
7232 | -program-transform-name* ) | |
7233 | skip_next=$separate_arg | |
7234 | continue | |
7235 | ;; | |
7236 | -*) | |
7237 | # An option. Add it. | |
7238 | case $ac_arg in | |
7239 | *\'*) | |
7240 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7241 | esac | |
7242 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
7243 | if test X"$skip_targ" = Xno; then |
7244 | tbaseargs="$tbaseargs '$ac_arg'" | |
7245 | fi | |
c6b750e1 DJ |
7246 | keep_next=$separate_arg |
7247 | ;; | |
7248 | *) | |
7249 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7250 | # pass it down; let the Makefile handle this. | |
7251 | continue | |
7252 | ;; | |
7253 | esac | |
7254 | done | |
7255 | # Remove the initial space we just introduced and, as these will be | |
7256 | # expanded by make, quote '$'. | |
7257 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 7258 | |
f27d4f92 DJ |
7259 | # Add in --program-transform-name, after --program-prefix and |
7260 | # --program-suffix have been applied to it. Autoconf has already | |
7261 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7262 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 7263 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
7264 | # Also, because we want to override the logic in subdir configure scripts to |
7265 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7266 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7267 | ${program_transform_name} | |
7268 | EOF_SED | |
7269 | gcc_transform_name=`cat conftestsed.out` | |
7270 | rm -f conftestsed.out | |
7271 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 7272 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
7273 | if test "$silent" = yes; then |
7274 | baseargs="$baseargs --silent" | |
65b4571a | 7275 | tbaseargs="$tbaseargs --silent" |
2444379b | 7276 | fi |
34a0f3cf | 7277 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 7278 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 7279 | |
4074d5f2 RW |
7280 | # Record and document user additions to sub configure arguments. |
7281 | ||
7282 | ||
7283 | ||
7284 | ||
a0da8069 NN |
7285 | # For the build-side libraries, we just need to pretend we're native, |
7286 | # and not use the same cache file. Multilibs are neither needed nor | |
7287 | # desired. | |
4074d5f2 | 7288 | build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}" |
a0da8069 NN |
7289 | |
7290 | # For host modules, accept cache file option, or specification as blank. | |
7291 | case "${cache_file}" in | |
7292 | "") # empty | |
7293 | cache_file_option="" ;; | |
7294 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7295 | cache_file_option="--cache-file=${cache_file}" ;; | |
7296 | *) # relative path | |
7297 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7298 | esac | |
7299 | ||
82252c06 NN |
7300 | # Host dirs don't like to share a cache file either, horribly enough. |
7301 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 7302 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 7303 | |
65b4571a | 7304 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
7305 | |
7306 | # Passing a --with-cross-host argument lets the target libraries know | |
7307 | # whether they are being built with a cross-compiler or being built | |
7308 | # native. However, it would be better to use other mechanisms to make the | |
7309 | # sorts of decisions they want to make on this basis. Please consider | |
7310 | # this option to be deprecated. FIXME. | |
7311 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 7312 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
7313 | fi |
7314 | ||
938d2b74 RW |
7315 | # Default to --enable-multilib. |
7316 | if test x${enable_multilib} = x ; then | |
a0da8069 | 7317 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 7318 | fi |
a0da8069 NN |
7319 | |
7320 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7321 | # changed from the earlier setting of with_newlib. | |
7322 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7323 | target_configargs="--with-newlib ${target_configargs}" | |
7324 | fi | |
7325 | ||
95036d20 NN |
7326 | # Different target subdirs use different values of certain variables |
7327 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7328 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7329 | # it doesn't automatically accept command-line overrides of them. | |
7330 | # This means it's not safe for target subdirs to share a cache file, | |
7331 | # which is disgusting, but there you have it. Hopefully this can be | |
7332 | # fixed in future. It's still worthwhile to use a cache file for each | |
7333 | # directory. I think. | |
7334 | ||
ae380b45 MS |
7335 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7336 | # We need to pass --target, as newer autoconf's requires consistency | |
7337 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 7338 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 7339 | |
a0da8069 NN |
7340 | FLAGS_FOR_TARGET= |
7341 | case " $target_configdirs " in | |
7342 | *" newlib "*) | |
7343 | case " $target_configargs " in | |
7344 | *" --with-newlib "*) | |
7345 | case "$target" in | |
1f53ca9a AO |
7346 | *-cygwin*) |
7347 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' | |
7348 | ;; | |
a0da8069 NN |
7349 | esac |
7350 | ||
7351 | # If we're not building GCC, don't discard standard headers. | |
7352 | if test -d ${srcdir}/gcc; then | |
7353 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7354 | ||
7355 | if test "${build}" != "${host}"; then | |
7356 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7357 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7358 | # to it. This is right: we don't want to search that directory | |
7359 | # for binaries, but we want the header files in there, so add | |
7360 | # them explicitly. | |
e552509b | 7361 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
7362 | |
7363 | # Someone might think of using the pre-installed headers on | |
7364 | # Canadian crosses, in case the installed compiler is not fully | |
7365 | # compatible with the compiler being built. In this case, it | |
7366 | # would be better to flag an error than risking having | |
7367 | # incompatible object files being constructed. We can't | |
7368 | # guarantee that an error will be flagged, but let's hope the | |
7369 | # compiler will do it, when presented with incompatible header | |
7370 | # files. | |
7371 | fi | |
7372 | fi | |
7373 | ||
7374 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 7375 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
7376 | # Here host == target, so we don't need to build gcc, |
7377 | # so we don't want to discard standard headers. | |
7378 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7379 | ;; | |
7380 | *) | |
7381 | # If we're building newlib, use its generic headers last, but search | |
7382 | # for any libc-related directories first (so make it the last -B | |
7383 | # switch). | |
7384 | 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 |
7385 | |
7386 | # If we're building libgloss, find the startup file, simulator library | |
7387 | # and linker script. | |
7388 | case " $target_configdirs " in | |
7389 | *" libgloss "*) | |
7390 | # Look for startup file, simulator library and maybe linker script. | |
7391 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7392 | # Look for libnosys.a in case the target needs it. | |
7393 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7394 | # Most targets have the linker script in the source directory. | |
7395 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7396 | ;; | |
7397 | esac | |
a0da8069 NN |
7398 | ;; |
7399 | esac | |
7400 | ;; | |
7401 | esac | |
7402 | ;; | |
7403 | esac | |
1f53ca9a | 7404 | |
45055374 | 7405 | case "$target" in |
1f53ca9a AO |
7406 | x86_64-*mingw* | *-w64-mingw*) |
7407 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7408 | # however, use a symlink named 'mingw' in ${prefix} . | |
7409 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7410 | ;; | |
7411 | *-mingw*) | |
7412 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7413 | 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' | |
7414 | ;; | |
45055374 | 7415 | esac |
a0da8069 | 7416 | |
5fbad20a DD |
7417 | # Allow the user to override the flags for |
7418 | # our build compiler if desired. | |
c66487f8 NC |
7419 | if test x"${build}" = x"${host}" ; then |
7420 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7421 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7422 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7423 | fi | |
5fbad20a | 7424 | |
a0da8069 NN |
7425 | # On Canadian crosses, we'll be searching the right directories for |
7426 | # the previously-installed cross compiler, so don't bother to add | |
7427 | # flags for directories within the install tree of the compiler | |
7428 | # being built; programs in there won't even run. | |
7429 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7430 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 7431 | 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 |
7432 | fi |
7433 | ||
7434 | if test "x${use_gnu_ld}" = x && | |
7435 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7436 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 7437 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
7438 | fi |
7439 | ||
a481dbb7 DD |
7440 | # Search for other target-specific linker scripts and such. |
7441 | case "${target}" in | |
4e206d7e DB |
7442 | mep*) |
7443 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7444 | ;; | |
7445 | esac | |
7446 | ||
a0da8069 | 7447 | # Makefile fragments. |
3e707e94 PB |
7448 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7449 | do | |
7450 | eval fragval=\$$frag | |
7451 | if test $fragval != /dev/null; then | |
7452 | eval $frag=${srcdir}/$fragval | |
7453 | fi | |
7454 | done | |
a0da8069 NN |
7455 | |
7456 | ||
7457 | ||
7458 | ||
7459 | ||
7460 | # Miscellanea: directories, flags, etc. | |
7461 | ||
7462 | ||
7463 | ||
7464 | ||
7465 | ||
7466 | ||
7467 | ||
3bbd2f8f | 7468 | |
6a9cf61e | 7469 | # Build module lists & subconfigure args. |
a0da8069 NN |
7470 | |
7471 | ||
7472 | ||
be01d343 PB |
7473 | # Host module lists & subconfigure args. |
7474 | ||
7475 | ||
7476 | ||
911e63d0 | 7477 | |
be01d343 PB |
7478 | # Target module lists & subconfigure args. |
7479 | ||
7480 | ||
7481 | ||
7482 | # Build tools. | |
7483 | ||
7484 | ||
7485 | ||
1576798e PB |
7486 | |
7487 | ||
7488 | ||
7489 | ||
7490 | ||
7491 | ||
7492 | ||
7493 | ||
7494 | ||
7495 | ||
7496 | ||
7497 | ||
7498 | ||
7499 | ||
be01d343 PB |
7500 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7501 | # on the build machine. These are used if the Makefile can't locate these | |
7502 | # programs in objdir. | |
7503 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7504 | ||
7505 | for ac_prog in 'bison -y' byacc yacc | |
7506 | do | |
c6b750e1 | 7507 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7508 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7510 | $as_echo_n "checking for $ac_word... " >&6; } | |
7511 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7512 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7513 | else |
7514 | if test -n "$YACC"; then | |
7515 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7516 | else | |
c6b750e1 DJ |
7517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7518 | for as_dir in $PATH | |
7519 | do | |
7520 | IFS=$as_save_IFS | |
7521 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7522 | for ac_exec_ext in '' $ac_executable_extensions; do |
7523 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7524 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 7525 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7526 | break 2 |
7527 | fi | |
7528 | done | |
81ecdfbb RW |
7529 | done |
7530 | IFS=$as_save_IFS | |
c6b750e1 | 7531 | |
be01d343 PB |
7532 | fi |
7533 | fi | |
c6b750e1 | 7534 | YACC=$ac_cv_prog_YACC |
be01d343 | 7535 | if test -n "$YACC"; then |
81ecdfbb RW |
7536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7537 | $as_echo "$YACC" >&6; } | |
be01d343 | 7538 | else |
81ecdfbb RW |
7539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7540 | $as_echo "no" >&6; } | |
be01d343 PB |
7541 | fi |
7542 | ||
81ecdfbb | 7543 | |
c6b750e1 | 7544 | test -n "$YACC" && break |
be01d343 PB |
7545 | done |
7546 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7547 | ||
7548 | case " $build_configdirs " in | |
7549 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
7550 | esac |
7551 | ||
7552 | for ac_prog in bison | |
7553 | do | |
c6b750e1 | 7554 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7555 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7557 | $as_echo_n "checking for $ac_word... " >&6; } | |
7558 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7559 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7560 | else |
7561 | if test -n "$BISON"; then | |
7562 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7563 | else | |
c6b750e1 DJ |
7564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7565 | for as_dir in $PATH | |
7566 | do | |
7567 | IFS=$as_save_IFS | |
7568 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7569 | for ac_exec_ext in '' $ac_executable_extensions; do |
7570 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7571 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 7572 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7573 | break 2 |
7574 | fi | |
7575 | done | |
81ecdfbb RW |
7576 | done |
7577 | IFS=$as_save_IFS | |
c6b750e1 | 7578 | |
be01d343 PB |
7579 | fi |
7580 | fi | |
c6b750e1 | 7581 | BISON=$ac_cv_prog_BISON |
be01d343 | 7582 | if test -n "$BISON"; then |
81ecdfbb RW |
7583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7584 | $as_echo "$BISON" >&6; } | |
be01d343 | 7585 | else |
81ecdfbb RW |
7586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7587 | $as_echo "no" >&6; } | |
be01d343 PB |
7588 | fi |
7589 | ||
81ecdfbb | 7590 | |
c6b750e1 | 7591 | test -n "$BISON" && break |
be01d343 PB |
7592 | done |
7593 | test -n "$BISON" || BISON="$MISSING bison" | |
7594 | ||
7595 | case " $build_configdirs " in | |
7596 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7597 | esac | |
7598 | ||
7599 | for ac_prog in gm4 gnum4 m4 | |
7600 | do | |
c6b750e1 | 7601 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7602 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7604 | $as_echo_n "checking for $ac_word... " >&6; } | |
7605 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7606 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7607 | else |
7608 | if test -n "$M4"; then | |
7609 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7610 | else | |
c6b750e1 DJ |
7611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7612 | for as_dir in $PATH | |
7613 | do | |
7614 | IFS=$as_save_IFS | |
7615 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7616 | for ac_exec_ext in '' $ac_executable_extensions; do |
7617 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7618 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 7619 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7620 | break 2 |
7621 | fi | |
7622 | done | |
81ecdfbb RW |
7623 | done |
7624 | IFS=$as_save_IFS | |
c6b750e1 | 7625 | |
be01d343 PB |
7626 | fi |
7627 | fi | |
c6b750e1 | 7628 | M4=$ac_cv_prog_M4 |
be01d343 | 7629 | if test -n "$M4"; then |
81ecdfbb RW |
7630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7631 | $as_echo "$M4" >&6; } | |
be01d343 | 7632 | else |
81ecdfbb RW |
7633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7634 | $as_echo "no" >&6; } | |
be01d343 PB |
7635 | fi |
7636 | ||
81ecdfbb | 7637 | |
c6b750e1 | 7638 | test -n "$M4" && break |
be01d343 PB |
7639 | done |
7640 | test -n "$M4" || M4="$MISSING m4" | |
7641 | ||
7642 | case " $build_configdirs " in | |
7643 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7644 | esac | |
7645 | ||
7646 | for ac_prog in flex lex | |
7647 | do | |
c6b750e1 | 7648 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7649 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7651 | $as_echo_n "checking for $ac_word... " >&6; } | |
7652 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7653 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7654 | else |
7655 | if test -n "$LEX"; then | |
7656 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7657 | else | |
c6b750e1 DJ |
7658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7659 | for as_dir in $PATH | |
7660 | do | |
7661 | IFS=$as_save_IFS | |
7662 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7663 | for ac_exec_ext in '' $ac_executable_extensions; do |
7664 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7665 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 7666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7667 | break 2 |
7668 | fi | |
7669 | done | |
81ecdfbb RW |
7670 | done |
7671 | IFS=$as_save_IFS | |
c6b750e1 | 7672 | |
be01d343 PB |
7673 | fi |
7674 | fi | |
c6b750e1 | 7675 | LEX=$ac_cv_prog_LEX |
be01d343 | 7676 | if test -n "$LEX"; then |
81ecdfbb RW |
7677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7678 | $as_echo "$LEX" >&6; } | |
be01d343 | 7679 | else |
81ecdfbb RW |
7680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7681 | $as_echo "no" >&6; } | |
be01d343 PB |
7682 | fi |
7683 | ||
81ecdfbb | 7684 | |
c6b750e1 | 7685 | test -n "$LEX" && break |
be01d343 PB |
7686 | done |
7687 | test -n "$LEX" || LEX="$MISSING flex" | |
7688 | ||
7689 | case " $build_configdirs " in | |
7690 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7691 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7692 | esac | |
7693 | ||
7694 | for ac_prog in flex | |
7695 | do | |
c6b750e1 | 7696 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7697 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7699 | $as_echo_n "checking for $ac_word... " >&6; } | |
7700 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7701 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7702 | else |
7703 | if test -n "$FLEX"; then | |
7704 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7705 | else | |
c6b750e1 DJ |
7706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7707 | for as_dir in $PATH | |
7708 | do | |
7709 | IFS=$as_save_IFS | |
7710 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7711 | for ac_exec_ext in '' $ac_executable_extensions; do |
7712 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7713 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 7714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7715 | break 2 |
7716 | fi | |
7717 | done | |
81ecdfbb RW |
7718 | done |
7719 | IFS=$as_save_IFS | |
c6b750e1 | 7720 | |
be01d343 PB |
7721 | fi |
7722 | fi | |
c6b750e1 | 7723 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 7724 | if test -n "$FLEX"; then |
81ecdfbb RW |
7725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7726 | $as_echo "$FLEX" >&6; } | |
be01d343 | 7727 | else |
81ecdfbb RW |
7728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7729 | $as_echo "no" >&6; } | |
be01d343 PB |
7730 | fi |
7731 | ||
81ecdfbb | 7732 | |
c6b750e1 | 7733 | test -n "$FLEX" && break |
be01d343 PB |
7734 | done |
7735 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7736 | ||
7737 | case " $build_configdirs " in | |
7738 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7739 | esac | |
7740 | ||
7741 | for ac_prog in makeinfo | |
7742 | do | |
c6b750e1 | 7743 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7744 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7746 | $as_echo_n "checking for $ac_word... " >&6; } | |
7747 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7748 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7749 | else |
7750 | if test -n "$MAKEINFO"; then | |
7751 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7752 | else | |
c6b750e1 DJ |
7753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7754 | for as_dir in $PATH | |
7755 | do | |
7756 | IFS=$as_save_IFS | |
7757 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7758 | for ac_exec_ext in '' $ac_executable_extensions; do |
7759 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7760 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 7761 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7762 | break 2 |
7763 | fi | |
7764 | done | |
81ecdfbb RW |
7765 | done |
7766 | IFS=$as_save_IFS | |
c6b750e1 | 7767 | |
be01d343 PB |
7768 | fi |
7769 | fi | |
c6b750e1 | 7770 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 7771 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
7772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7773 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 7774 | else |
81ecdfbb RW |
7775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7776 | $as_echo "no" >&6; } | |
be01d343 PB |
7777 | fi |
7778 | ||
81ecdfbb | 7779 | |
c6b750e1 | 7780 | test -n "$MAKEINFO" && break |
be01d343 PB |
7781 | done |
7782 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7783 | ||
7784 | case " $build_configdirs " in | |
7785 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7786 | *) | |
7787 | ||
10ad8ef3 | 7788 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
7789 | # higher, else we use the "missing" dummy. |
7790 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 7791 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
7792 | : |
7793 | else | |
7794 | MAKEINFO="$MISSING makeinfo" | |
7795 | fi | |
7796 | ;; | |
7797 | ||
7798 | esac | |
a0da8069 | 7799 | |
be01d343 | 7800 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 7801 | |
be01d343 PB |
7802 | for ac_prog in expect |
7803 | do | |
c6b750e1 | 7804 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7805 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7807 | $as_echo_n "checking for $ac_word... " >&6; } | |
7808 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7809 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7810 | else |
7811 | if test -n "$EXPECT"; then | |
7812 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7813 | else | |
c6b750e1 DJ |
7814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7815 | for as_dir in $PATH | |
7816 | do | |
7817 | IFS=$as_save_IFS | |
7818 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7819 | for ac_exec_ext in '' $ac_executable_extensions; do |
7820 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7821 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 7822 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7823 | break 2 |
7824 | fi | |
7825 | done | |
81ecdfbb RW |
7826 | done |
7827 | IFS=$as_save_IFS | |
c6b750e1 | 7828 | |
be01d343 PB |
7829 | fi |
7830 | fi | |
c6b750e1 | 7831 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 7832 | if test -n "$EXPECT"; then |
81ecdfbb RW |
7833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
7834 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 7835 | else |
81ecdfbb RW |
7836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7837 | $as_echo "no" >&6; } | |
be01d343 | 7838 | fi |
a0da8069 | 7839 | |
81ecdfbb | 7840 | |
c6b750e1 | 7841 | test -n "$EXPECT" && break |
be01d343 PB |
7842 | done |
7843 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 7844 | |
be01d343 PB |
7845 | case " $configdirs " in |
7846 | *" expect "*) | |
7847 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
7848 | ;; | |
7849 | esac | |
a0da8069 | 7850 | |
be01d343 PB |
7851 | for ac_prog in runtest |
7852 | do | |
c6b750e1 | 7853 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7854 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7856 | $as_echo_n "checking for $ac_word... " >&6; } | |
7857 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
7858 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7859 | else |
7860 | if test -n "$RUNTEST"; then | |
7861 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
7862 | else | |
c6b750e1 DJ |
7863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7864 | for as_dir in $PATH | |
7865 | do | |
7866 | IFS=$as_save_IFS | |
7867 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7868 | for ac_exec_ext in '' $ac_executable_extensions; do |
7869 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7870 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 7871 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7872 | break 2 |
7873 | fi | |
7874 | done | |
81ecdfbb RW |
7875 | done |
7876 | IFS=$as_save_IFS | |
c6b750e1 | 7877 | |
be01d343 PB |
7878 | fi |
7879 | fi | |
c6b750e1 | 7880 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 7881 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
7882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
7883 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 7884 | else |
81ecdfbb RW |
7885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7886 | $as_echo "no" >&6; } | |
be01d343 | 7887 | fi |
a0da8069 | 7888 | |
81ecdfbb | 7889 | |
c6b750e1 | 7890 | test -n "$RUNTEST" && break |
be01d343 PB |
7891 | done |
7892 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 7893 | |
be01d343 PB |
7894 | case " $configdirs " in |
7895 | *" dejagnu "*) | |
6b89cc21 | 7896 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
7897 | ;; |
7898 | esac | |
a0da8069 NN |
7899 | |
7900 | ||
a0da8069 | 7901 | # Host tools. |
859789af AC |
7902 | ncn_tool_prefix= |
7903 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
7904 | ncn_target_tool_prefix= | |
7905 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
7906 | ||
9a819804 AO |
7907 | |
7908 | ||
7909 | if test -n "$AR"; then | |
7910 | ac_cv_prog_AR=$AR | |
7911 | elif test -n "$ac_cv_prog_AR"; then | |
7912 | AR=$ac_cv_prog_AR | |
7913 | fi | |
7914 | ||
7915 | if test -n "$ac_cv_prog_AR"; then | |
7916 | for ncn_progname in ar; do | |
7917 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7918 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
7919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7920 | $as_echo_n "checking for $ac_word... " >&6; } | |
7921 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7922 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
7923 | else |
7924 | if test -n "$AR"; then | |
7925 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7926 | else | |
7927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7928 | for as_dir in $PATH | |
7929 | do | |
7930 | IFS=$as_save_IFS | |
7931 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7932 | for ac_exec_ext in '' $ac_executable_extensions; do |
7933 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 7934 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 7935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
7936 | break 2 |
7937 | fi | |
7938 | done | |
81ecdfbb RW |
7939 | done |
7940 | IFS=$as_save_IFS | |
9a819804 AO |
7941 | |
7942 | fi | |
7943 | fi | |
7944 | AR=$ac_cv_prog_AR | |
7945 | if test -n "$AR"; then | |
81ecdfbb RW |
7946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7947 | $as_echo "$AR" >&6; } | |
9a819804 | 7948 | else |
81ecdfbb RW |
7949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7950 | $as_echo "no" >&6; } | |
9a819804 AO |
7951 | fi |
7952 | ||
81ecdfbb | 7953 | |
9a819804 AO |
7954 | done |
7955 | fi | |
7956 | ||
7957 | for ncn_progname in ar; do | |
05cbd757 PB |
7958 | if test -n "$ncn_tool_prefix"; then |
7959 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7960 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
7961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7962 | $as_echo_n "checking for $ac_word... " >&6; } | |
7963 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7964 | $as_echo_n "(cached) " >&6 | |
859789af AC |
7965 | else |
7966 | if test -n "$AR"; then | |
7967 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7968 | else | |
c6b750e1 DJ |
7969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7970 | for as_dir in $PATH | |
7971 | do | |
7972 | IFS=$as_save_IFS | |
7973 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7974 | for ac_exec_ext in '' $ac_executable_extensions; do |
7975 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7976 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 7977 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7978 | break 2 |
7979 | fi | |
7980 | done | |
81ecdfbb RW |
7981 | done |
7982 | IFS=$as_save_IFS | |
c6b750e1 | 7983 | |
859789af AC |
7984 | fi |
7985 | fi | |
c6b750e1 | 7986 | AR=$ac_cv_prog_AR |
859789af | 7987 | if test -n "$AR"; then |
81ecdfbb RW |
7988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7989 | $as_echo "$AR" >&6; } | |
859789af | 7990 | else |
81ecdfbb RW |
7991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7992 | $as_echo "no" >&6; } | |
859789af AC |
7993 | fi |
7994 | ||
81ecdfbb | 7995 | |
05cbd757 PB |
7996 | fi |
7997 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
7998 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7999 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8001 | $as_echo_n "checking for $ac_word... " >&6; } | |
8002 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8003 | $as_echo_n "(cached) " >&6 | |
859789af | 8004 | else |
05cbd757 PB |
8005 | if test -n "$AR"; then |
8006 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 8007 | else |
c6b750e1 DJ |
8008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8009 | for as_dir in $PATH | |
8010 | do | |
8011 | IFS=$as_save_IFS | |
8012 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8013 | for ac_exec_ext in '' $ac_executable_extensions; do |
8014 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8015 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8016 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8017 | break 2 |
8018 | fi | |
8019 | done | |
81ecdfbb RW |
8020 | done |
8021 | IFS=$as_save_IFS | |
c6b750e1 | 8022 | |
859789af AC |
8023 | fi |
8024 | fi | |
c6b750e1 | 8025 | AR=$ac_cv_prog_AR |
05cbd757 | 8026 | if test -n "$AR"; then |
81ecdfbb RW |
8027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8028 | $as_echo "$AR" >&6; } | |
859789af | 8029 | else |
81ecdfbb RW |
8030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8031 | $as_echo "no" >&6; } | |
859789af | 8032 | fi |
c6b750e1 | 8033 | |
81ecdfbb | 8034 | |
05cbd757 PB |
8035 | fi |
8036 | test -n "$ac_cv_prog_AR" && break | |
8037 | done | |
8038 | ||
8039 | if test -z "$ac_cv_prog_AR" ; then | |
8040 | set dummy ar | |
8041 | if test $build = $host ; then | |
8042 | AR="$2" | |
859789af | 8043 | else |
05cbd757 | 8044 | AR="${ncn_tool_prefix}$2" |
859789af | 8045 | fi |
859789af AC |
8046 | fi |
8047 | ||
9a819804 AO |
8048 | |
8049 | ||
8050 | if test -n "$AS"; then | |
8051 | ac_cv_prog_AS=$AS | |
8052 | elif test -n "$ac_cv_prog_AS"; then | |
8053 | AS=$ac_cv_prog_AS | |
8054 | fi | |
8055 | ||
8056 | if test -n "$ac_cv_prog_AS"; then | |
8057 | for ncn_progname in as; do | |
8058 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8059 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8061 | $as_echo_n "checking for $ac_word... " >&6; } | |
8062 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8063 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8064 | else |
8065 | if test -n "$AS"; then | |
8066 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8067 | else | |
8068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8069 | for as_dir in $PATH | |
8070 | do | |
8071 | IFS=$as_save_IFS | |
8072 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8073 | for ac_exec_ext in '' $ac_executable_extensions; do |
8074 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8075 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8077 | break 2 |
8078 | fi | |
8079 | done | |
81ecdfbb RW |
8080 | done |
8081 | IFS=$as_save_IFS | |
9a819804 AO |
8082 | |
8083 | fi | |
8084 | fi | |
8085 | AS=$ac_cv_prog_AS | |
8086 | if test -n "$AS"; then | |
81ecdfbb RW |
8087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8088 | $as_echo "$AS" >&6; } | |
9a819804 | 8089 | else |
81ecdfbb RW |
8090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8091 | $as_echo "no" >&6; } | |
9a819804 AO |
8092 | fi |
8093 | ||
81ecdfbb | 8094 | |
9a819804 AO |
8095 | done |
8096 | fi | |
8097 | ||
8098 | for ncn_progname in as; do | |
05cbd757 PB |
8099 | if test -n "$ncn_tool_prefix"; then |
8100 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8101 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8103 | $as_echo_n "checking for $ac_word... " >&6; } | |
8104 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8105 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8106 | else |
8107 | if test -n "$AS"; then | |
8108 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
8109 | else |
8110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8111 | for as_dir in $PATH | |
8112 | do | |
8113 | IFS=$as_save_IFS | |
8114 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8115 | for ac_exec_ext in '' $ac_executable_extensions; do |
8116 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8117 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8118 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8119 | break 2 |
8120 | fi | |
8121 | done | |
81ecdfbb RW |
8122 | done |
8123 | IFS=$as_save_IFS | |
c6b750e1 | 8124 | |
859789af AC |
8125 | fi |
8126 | fi | |
c6b750e1 | 8127 | AS=$ac_cv_prog_AS |
859789af | 8128 | if test -n "$AS"; then |
81ecdfbb RW |
8129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8130 | $as_echo "$AS" >&6; } | |
859789af | 8131 | else |
81ecdfbb RW |
8132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8133 | $as_echo "no" >&6; } | |
859789af AC |
8134 | fi |
8135 | ||
81ecdfbb | 8136 | |
05cbd757 PB |
8137 | fi |
8138 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8139 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8140 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8142 | $as_echo_n "checking for $ac_word... " >&6; } | |
8143 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8144 | $as_echo_n "(cached) " >&6 | |
859789af | 8145 | else |
05cbd757 PB |
8146 | if test -n "$AS"; then |
8147 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 8148 | else |
c6b750e1 DJ |
8149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8150 | for as_dir in $PATH | |
8151 | do | |
8152 | IFS=$as_save_IFS | |
8153 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8154 | for ac_exec_ext in '' $ac_executable_extensions; do |
8155 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8156 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8157 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8158 | break 2 |
8159 | fi | |
8160 | done | |
81ecdfbb RW |
8161 | done |
8162 | IFS=$as_save_IFS | |
c6b750e1 | 8163 | |
859789af AC |
8164 | fi |
8165 | fi | |
c6b750e1 | 8166 | AS=$ac_cv_prog_AS |
05cbd757 | 8167 | if test -n "$AS"; then |
81ecdfbb RW |
8168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8169 | $as_echo "$AS" >&6; } | |
859789af | 8170 | else |
81ecdfbb RW |
8171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8172 | $as_echo "no" >&6; } | |
859789af | 8173 | fi |
c6b750e1 | 8174 | |
81ecdfbb | 8175 | |
05cbd757 PB |
8176 | fi |
8177 | test -n "$ac_cv_prog_AS" && break | |
8178 | done | |
8179 | ||
8180 | if test -z "$ac_cv_prog_AS" ; then | |
8181 | set dummy as | |
8182 | if test $build = $host ; then | |
8183 | AS="$2" | |
859789af | 8184 | else |
05cbd757 | 8185 | AS="${ncn_tool_prefix}$2" |
859789af | 8186 | fi |
859789af AC |
8187 | fi |
8188 | ||
9a819804 AO |
8189 | |
8190 | ||
8191 | if test -n "$DLLTOOL"; then | |
8192 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8193 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8194 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8195 | fi | |
8196 | ||
8197 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8198 | for ncn_progname in dlltool; do | |
8199 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8200 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8202 | $as_echo_n "checking for $ac_word... " >&6; } | |
8203 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8204 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8205 | else |
8206 | if test -n "$DLLTOOL"; then | |
8207 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8208 | else | |
8209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8210 | for as_dir in $PATH | |
8211 | do | |
8212 | IFS=$as_save_IFS | |
8213 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8214 | for ac_exec_ext in '' $ac_executable_extensions; do |
8215 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8216 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8217 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8218 | break 2 |
8219 | fi | |
8220 | done | |
81ecdfbb RW |
8221 | done |
8222 | IFS=$as_save_IFS | |
9a819804 AO |
8223 | |
8224 | fi | |
8225 | fi | |
8226 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8227 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
8228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8229 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 8230 | else |
81ecdfbb RW |
8231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8232 | $as_echo "no" >&6; } | |
9a819804 AO |
8233 | fi |
8234 | ||
81ecdfbb | 8235 | |
9a819804 AO |
8236 | done |
8237 | fi | |
8238 | ||
8239 | for ncn_progname in dlltool; do | |
05cbd757 PB |
8240 | if test -n "$ncn_tool_prefix"; then |
8241 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8242 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8244 | $as_echo_n "checking for $ac_word... " >&6; } | |
8245 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8246 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8247 | else |
8248 | if test -n "$DLLTOOL"; then | |
8249 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8250 | else | |
c6b750e1 DJ |
8251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8252 | for as_dir in $PATH | |
8253 | do | |
8254 | IFS=$as_save_IFS | |
8255 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8256 | for ac_exec_ext in '' $ac_executable_extensions; do |
8257 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8258 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8259 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8260 | break 2 |
8261 | fi | |
8262 | done | |
81ecdfbb RW |
8263 | done |
8264 | IFS=$as_save_IFS | |
c6b750e1 | 8265 | |
859789af AC |
8266 | fi |
8267 | fi | |
c6b750e1 | 8268 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 8269 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8271 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8272 | else |
81ecdfbb RW |
8273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8274 | $as_echo "no" >&6; } | |
859789af AC |
8275 | fi |
8276 | ||
81ecdfbb | 8277 | |
05cbd757 PB |
8278 | fi |
8279 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8280 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8281 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8283 | $as_echo_n "checking for $ac_word... " >&6; } | |
8284 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8285 | $as_echo_n "(cached) " >&6 | |
859789af | 8286 | else |
05cbd757 PB |
8287 | if test -n "$DLLTOOL"; then |
8288 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 8289 | else |
c6b750e1 DJ |
8290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8291 | for as_dir in $PATH | |
8292 | do | |
8293 | IFS=$as_save_IFS | |
8294 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8295 | for ac_exec_ext in '' $ac_executable_extensions; do |
8296 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8297 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8298 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8299 | break 2 |
8300 | fi | |
8301 | done | |
81ecdfbb RW |
8302 | done |
8303 | IFS=$as_save_IFS | |
c6b750e1 | 8304 | |
859789af AC |
8305 | fi |
8306 | fi | |
c6b750e1 | 8307 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 8308 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8310 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8311 | else |
81ecdfbb RW |
8312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8313 | $as_echo "no" >&6; } | |
859789af | 8314 | fi |
c6b750e1 | 8315 | |
81ecdfbb | 8316 | |
05cbd757 PB |
8317 | fi |
8318 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8319 | done | |
8320 | ||
8321 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8322 | set dummy dlltool | |
8323 | if test $build = $host ; then | |
8324 | DLLTOOL="$2" | |
859789af | 8325 | else |
05cbd757 | 8326 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 8327 | fi |
859789af AC |
8328 | fi |
8329 | ||
9a819804 AO |
8330 | |
8331 | ||
8332 | if test -n "$LD"; then | |
8333 | ac_cv_prog_LD=$LD | |
8334 | elif test -n "$ac_cv_prog_LD"; then | |
8335 | LD=$ac_cv_prog_LD | |
8336 | fi | |
8337 | ||
8338 | if test -n "$ac_cv_prog_LD"; then | |
8339 | for ncn_progname in ld; do | |
8340 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8341 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8343 | $as_echo_n "checking for $ac_word... " >&6; } | |
8344 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8345 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8346 | else |
8347 | if test -n "$LD"; then | |
8348 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8349 | else | |
8350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8351 | for as_dir in $PATH | |
8352 | do | |
8353 | IFS=$as_save_IFS | |
8354 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8355 | for ac_exec_ext in '' $ac_executable_extensions; do |
8356 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8357 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8358 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8359 | break 2 |
8360 | fi | |
8361 | done | |
81ecdfbb RW |
8362 | done |
8363 | IFS=$as_save_IFS | |
9a819804 AO |
8364 | |
8365 | fi | |
8366 | fi | |
8367 | LD=$ac_cv_prog_LD | |
8368 | if test -n "$LD"; then | |
81ecdfbb RW |
8369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8370 | $as_echo "$LD" >&6; } | |
9a819804 | 8371 | else |
81ecdfbb RW |
8372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8373 | $as_echo "no" >&6; } | |
9a819804 AO |
8374 | fi |
8375 | ||
81ecdfbb | 8376 | |
9a819804 AO |
8377 | done |
8378 | fi | |
8379 | ||
8380 | for ncn_progname in ld; do | |
05cbd757 PB |
8381 | if test -n "$ncn_tool_prefix"; then |
8382 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8383 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8385 | $as_echo_n "checking for $ac_word... " >&6; } | |
8386 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8387 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8388 | else |
8389 | if test -n "$LD"; then | |
8390 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8391 | else | |
c6b750e1 DJ |
8392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8393 | for as_dir in $PATH | |
8394 | do | |
8395 | IFS=$as_save_IFS | |
8396 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8397 | for ac_exec_ext in '' $ac_executable_extensions; do |
8398 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8399 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8400 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8401 | break 2 |
8402 | fi | |
8403 | done | |
81ecdfbb RW |
8404 | done |
8405 | IFS=$as_save_IFS | |
c6b750e1 | 8406 | |
859789af AC |
8407 | fi |
8408 | fi | |
c6b750e1 | 8409 | LD=$ac_cv_prog_LD |
859789af | 8410 | if test -n "$LD"; then |
81ecdfbb RW |
8411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8412 | $as_echo "$LD" >&6; } | |
859789af | 8413 | else |
81ecdfbb RW |
8414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8415 | $as_echo "no" >&6; } | |
859789af AC |
8416 | fi |
8417 | ||
81ecdfbb | 8418 | |
05cbd757 PB |
8419 | fi |
8420 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8421 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8422 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8424 | $as_echo_n "checking for $ac_word... " >&6; } | |
8425 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8426 | $as_echo_n "(cached) " >&6 | |
859789af | 8427 | else |
05cbd757 PB |
8428 | if test -n "$LD"; then |
8429 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 8430 | else |
c6b750e1 DJ |
8431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8432 | for as_dir in $PATH | |
8433 | do | |
8434 | IFS=$as_save_IFS | |
8435 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8436 | for ac_exec_ext in '' $ac_executable_extensions; do |
8437 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8438 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8439 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8440 | break 2 |
8441 | fi | |
8442 | done | |
81ecdfbb RW |
8443 | done |
8444 | IFS=$as_save_IFS | |
c6b750e1 | 8445 | |
859789af AC |
8446 | fi |
8447 | fi | |
c6b750e1 | 8448 | LD=$ac_cv_prog_LD |
05cbd757 | 8449 | if test -n "$LD"; then |
81ecdfbb RW |
8450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8451 | $as_echo "$LD" >&6; } | |
859789af | 8452 | else |
81ecdfbb RW |
8453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8454 | $as_echo "no" >&6; } | |
859789af | 8455 | fi |
c6b750e1 | 8456 | |
81ecdfbb | 8457 | |
05cbd757 PB |
8458 | fi |
8459 | test -n "$ac_cv_prog_LD" && break | |
8460 | done | |
8461 | ||
8462 | if test -z "$ac_cv_prog_LD" ; then | |
8463 | set dummy ld | |
8464 | if test $build = $host ; then | |
8465 | LD="$2" | |
859789af | 8466 | else |
05cbd757 | 8467 | LD="${ncn_tool_prefix}$2" |
859789af | 8468 | fi |
859789af AC |
8469 | fi |
8470 | ||
9a819804 AO |
8471 | |
8472 | ||
8473 | if test -n "$LIPO"; then | |
8474 | ac_cv_prog_LIPO=$LIPO | |
8475 | elif test -n "$ac_cv_prog_LIPO"; then | |
8476 | LIPO=$ac_cv_prog_LIPO | |
8477 | fi | |
8478 | ||
8479 | if test -n "$ac_cv_prog_LIPO"; then | |
8480 | for ncn_progname in lipo; do | |
8481 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8482 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8484 | $as_echo_n "checking for $ac_word... " >&6; } | |
8485 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8486 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8487 | else |
8488 | if test -n "$LIPO"; then | |
8489 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8490 | else | |
8491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8492 | for as_dir in $PATH | |
8493 | do | |
8494 | IFS=$as_save_IFS | |
8495 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8496 | for ac_exec_ext in '' $ac_executable_extensions; do |
8497 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8498 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8499 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8500 | break 2 |
8501 | fi | |
8502 | done | |
81ecdfbb RW |
8503 | done |
8504 | IFS=$as_save_IFS | |
9a819804 AO |
8505 | |
8506 | fi | |
8507 | fi | |
8508 | LIPO=$ac_cv_prog_LIPO | |
8509 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8511 | $as_echo "$LIPO" >&6; } | |
9a819804 | 8512 | else |
81ecdfbb RW |
8513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8514 | $as_echo "no" >&6; } | |
9a819804 AO |
8515 | fi |
8516 | ||
81ecdfbb | 8517 | |
9a819804 AO |
8518 | done |
8519 | fi | |
8520 | ||
8521 | for ncn_progname in lipo; do | |
be01d343 PB |
8522 | if test -n "$ncn_tool_prefix"; then |
8523 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8524 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8526 | $as_echo_n "checking for $ac_word... " >&6; } | |
8527 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8528 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8529 | else |
8530 | if test -n "$LIPO"; then | |
8531 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8532 | else | |
c6b750e1 DJ |
8533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8534 | for as_dir in $PATH | |
8535 | do | |
8536 | IFS=$as_save_IFS | |
8537 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8538 | for ac_exec_ext in '' $ac_executable_extensions; do |
8539 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8540 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8541 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8542 | break 2 |
8543 | fi | |
8544 | done | |
81ecdfbb RW |
8545 | done |
8546 | IFS=$as_save_IFS | |
c6b750e1 | 8547 | |
be01d343 PB |
8548 | fi |
8549 | fi | |
c6b750e1 | 8550 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8551 | if test -n "$LIPO"; then |
81ecdfbb RW |
8552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8553 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8554 | else |
81ecdfbb RW |
8555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8556 | $as_echo "no" >&6; } | |
be01d343 PB |
8557 | fi |
8558 | ||
81ecdfbb | 8559 | |
be01d343 PB |
8560 | fi |
8561 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8562 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8563 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8565 | $as_echo_n "checking for $ac_word... " >&6; } | |
8566 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8567 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8568 | else |
8569 | if test -n "$LIPO"; then | |
8570 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8571 | else | |
c6b750e1 DJ |
8572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8573 | for as_dir in $PATH | |
8574 | do | |
8575 | IFS=$as_save_IFS | |
8576 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8577 | for ac_exec_ext in '' $ac_executable_extensions; do |
8578 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8579 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8580 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8581 | break 2 |
8582 | fi | |
8583 | done | |
81ecdfbb RW |
8584 | done |
8585 | IFS=$as_save_IFS | |
c6b750e1 | 8586 | |
be01d343 PB |
8587 | fi |
8588 | fi | |
c6b750e1 | 8589 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8590 | if test -n "$LIPO"; then |
81ecdfbb RW |
8591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8592 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8593 | else |
81ecdfbb RW |
8594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8595 | $as_echo "no" >&6; } | |
be01d343 | 8596 | fi |
c6b750e1 | 8597 | |
81ecdfbb | 8598 | |
be01d343 PB |
8599 | fi |
8600 | test -n "$ac_cv_prog_LIPO" && break | |
8601 | done | |
8602 | ||
8603 | if test -z "$ac_cv_prog_LIPO" ; then | |
8604 | set dummy lipo | |
8605 | if test $build = $host ; then | |
8606 | LIPO="$2" | |
8607 | else | |
8608 | LIPO="${ncn_tool_prefix}$2" | |
8609 | fi | |
8610 | fi | |
8611 | ||
9a819804 AO |
8612 | |
8613 | ||
8614 | if test -n "$NM"; then | |
8615 | ac_cv_prog_NM=$NM | |
8616 | elif test -n "$ac_cv_prog_NM"; then | |
8617 | NM=$ac_cv_prog_NM | |
8618 | fi | |
8619 | ||
8620 | if test -n "$ac_cv_prog_NM"; then | |
8621 | for ncn_progname in nm; do | |
8622 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8623 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8625 | $as_echo_n "checking for $ac_word... " >&6; } | |
8626 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8627 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8628 | else |
8629 | if test -n "$NM"; then | |
8630 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8631 | else | |
c6b750e1 DJ |
8632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8633 | for as_dir in $PATH | |
8634 | do | |
8635 | IFS=$as_save_IFS | |
8636 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8637 | for ac_exec_ext in '' $ac_executable_extensions; do |
8638 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8639 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8640 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8641 | break 2 |
8642 | fi | |
8643 | done | |
81ecdfbb RW |
8644 | done |
8645 | IFS=$as_save_IFS | |
c6b750e1 | 8646 | |
859789af AC |
8647 | fi |
8648 | fi | |
c6b750e1 | 8649 | NM=$ac_cv_prog_NM |
859789af | 8650 | if test -n "$NM"; then |
81ecdfbb RW |
8651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8652 | $as_echo "$NM" >&6; } | |
859789af | 8653 | else |
81ecdfbb RW |
8654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8655 | $as_echo "no" >&6; } | |
859789af AC |
8656 | fi |
8657 | ||
81ecdfbb | 8658 | |
9a819804 AO |
8659 | done |
8660 | fi | |
8661 | ||
8662 | for ncn_progname in nm; do | |
8663 | if test -n "$ncn_tool_prefix"; then | |
8664 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8665 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8667 | $as_echo_n "checking for $ac_word... " >&6; } | |
8668 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8669 | $as_echo_n "(cached) " >&6 | |
859789af | 8670 | else |
05cbd757 PB |
8671 | if test -n "$NM"; then |
8672 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 8673 | else |
c6b750e1 DJ |
8674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8675 | for as_dir in $PATH | |
8676 | do | |
8677 | IFS=$as_save_IFS | |
8678 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8679 | for ac_exec_ext in '' $ac_executable_extensions; do |
8680 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8681 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8683 | break 2 |
8684 | fi | |
8685 | done | |
81ecdfbb RW |
8686 | done |
8687 | IFS=$as_save_IFS | |
c6b750e1 | 8688 | |
859789af AC |
8689 | fi |
8690 | fi | |
c6b750e1 | 8691 | NM=$ac_cv_prog_NM |
05cbd757 | 8692 | if test -n "$NM"; then |
81ecdfbb RW |
8693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8694 | $as_echo "$NM" >&6; } | |
859789af | 8695 | else |
81ecdfbb RW |
8696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8697 | $as_echo "no" >&6; } | |
859789af | 8698 | fi |
c6b750e1 | 8699 | |
81ecdfbb | 8700 | |
05cbd757 | 8701 | fi |
9a819804 AO |
8702 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8703 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8704 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8706 | $as_echo_n "checking for $ac_word... " >&6; } | |
8707 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8708 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8709 | else |
8710 | if test -n "$NM"; then | |
8711 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8712 | else | |
8713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8714 | for as_dir in $PATH | |
8715 | do | |
8716 | IFS=$as_save_IFS | |
8717 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8718 | for ac_exec_ext in '' $ac_executable_extensions; do |
8719 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8720 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8722 | break 2 |
8723 | fi | |
8724 | done | |
81ecdfbb RW |
8725 | done |
8726 | IFS=$as_save_IFS | |
9a819804 AO |
8727 | |
8728 | fi | |
8729 | fi | |
8730 | NM=$ac_cv_prog_NM | |
8731 | if test -n "$NM"; then | |
81ecdfbb RW |
8732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8733 | $as_echo "$NM" >&6; } | |
9a819804 | 8734 | else |
81ecdfbb RW |
8735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8736 | $as_echo "no" >&6; } | |
9a819804 AO |
8737 | fi |
8738 | ||
81ecdfbb | 8739 | |
9a819804 AO |
8740 | fi |
8741 | test -n "$ac_cv_prog_NM" && break | |
8742 | done | |
8743 | ||
8744 | if test -z "$ac_cv_prog_NM" ; then | |
8745 | set dummy nm | |
8746 | if test $build = $host ; then | |
8747 | NM="$2" | |
8748 | else | |
8749 | NM="${ncn_tool_prefix}$2" | |
8750 | fi | |
8751 | fi | |
8752 | ||
8753 | ||
8754 | ||
8755 | if test -n "$RANLIB"; then | |
8756 | ac_cv_prog_RANLIB=$RANLIB | |
8757 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8758 | RANLIB=$ac_cv_prog_RANLIB | |
8759 | fi | |
8760 | ||
8761 | if test -n "$ac_cv_prog_RANLIB"; then | |
8762 | for ncn_progname in ranlib; do | |
8763 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8764 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8766 | $as_echo_n "checking for $ac_word... " >&6; } | |
8767 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8768 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8769 | else |
8770 | if test -n "$RANLIB"; then | |
8771 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8772 | else | |
8773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8774 | for as_dir in $PATH | |
8775 | do | |
8776 | IFS=$as_save_IFS | |
8777 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8778 | for ac_exec_ext in '' $ac_executable_extensions; do |
8779 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8780 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 8781 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8782 | break 2 |
8783 | fi | |
8784 | done | |
81ecdfbb RW |
8785 | done |
8786 | IFS=$as_save_IFS | |
9a819804 AO |
8787 | |
8788 | fi | |
8789 | fi | |
8790 | RANLIB=$ac_cv_prog_RANLIB | |
8791 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
8792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8793 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 8794 | else |
81ecdfbb RW |
8795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8796 | $as_echo "no" >&6; } | |
9a819804 AO |
8797 | fi |
8798 | ||
81ecdfbb | 8799 | |
9a819804 AO |
8800 | done |
8801 | fi | |
859789af | 8802 | |
9a819804 | 8803 | for ncn_progname in ranlib; do |
05cbd757 PB |
8804 | if test -n "$ncn_tool_prefix"; then |
8805 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8806 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8808 | $as_echo_n "checking for $ac_word... " >&6; } | |
8809 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8810 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8811 | else |
8812 | if test -n "$RANLIB"; then | |
8813 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8814 | else | |
c6b750e1 DJ |
8815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8816 | for as_dir in $PATH | |
8817 | do | |
8818 | IFS=$as_save_IFS | |
8819 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8820 | for ac_exec_ext in '' $ac_executable_extensions; do |
8821 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8822 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8823 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8824 | break 2 |
8825 | fi | |
8826 | done | |
81ecdfbb RW |
8827 | done |
8828 | IFS=$as_save_IFS | |
c6b750e1 | 8829 | |
859789af AC |
8830 | fi |
8831 | fi | |
c6b750e1 | 8832 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 8833 | if test -n "$RANLIB"; then |
81ecdfbb RW |
8834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8835 | $as_echo "$RANLIB" >&6; } | |
859789af | 8836 | else |
81ecdfbb RW |
8837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8838 | $as_echo "no" >&6; } | |
859789af AC |
8839 | fi |
8840 | ||
81ecdfbb | 8841 | |
05cbd757 PB |
8842 | fi |
8843 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
8844 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8845 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8847 | $as_echo_n "checking for $ac_word... " >&6; } | |
8848 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8849 | $as_echo_n "(cached) " >&6 | |
859789af | 8850 | else |
05cbd757 PB |
8851 | if test -n "$RANLIB"; then |
8852 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 8853 | else |
c6b750e1 DJ |
8854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8855 | for as_dir in $PATH | |
8856 | do | |
8857 | IFS=$as_save_IFS | |
8858 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8859 | for ac_exec_ext in '' $ac_executable_extensions; do |
8860 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8861 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 8862 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8863 | break 2 |
8864 | fi | |
8865 | done | |
81ecdfbb RW |
8866 | done |
8867 | IFS=$as_save_IFS | |
c6b750e1 | 8868 | |
859789af AC |
8869 | fi |
8870 | fi | |
c6b750e1 | 8871 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 8872 | if test -n "$RANLIB"; then |
81ecdfbb RW |
8873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8874 | $as_echo "$RANLIB" >&6; } | |
859789af | 8875 | else |
81ecdfbb RW |
8876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8877 | $as_echo "no" >&6; } | |
859789af | 8878 | fi |
c6b750e1 | 8879 | |
81ecdfbb | 8880 | |
859789af | 8881 | fi |
05cbd757 PB |
8882 | test -n "$ac_cv_prog_RANLIB" && break |
8883 | done | |
8884 | ||
8885 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 8886 | RANLIB="true" |
859789af AC |
8887 | fi |
8888 | ||
9a819804 AO |
8889 | |
8890 | ||
8891 | if test -n "$STRIP"; then | |
8892 | ac_cv_prog_STRIP=$STRIP | |
8893 | elif test -n "$ac_cv_prog_STRIP"; then | |
8894 | STRIP=$ac_cv_prog_STRIP | |
8895 | fi | |
8896 | ||
8897 | if test -n "$ac_cv_prog_STRIP"; then | |
8898 | for ncn_progname in strip; do | |
8899 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8900 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8902 | $as_echo_n "checking for $ac_word... " >&6; } | |
8903 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8904 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8905 | else |
8906 | if test -n "$STRIP"; then | |
8907 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8908 | else | |
8909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8910 | for as_dir in $PATH | |
8911 | do | |
8912 | IFS=$as_save_IFS | |
8913 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8914 | for ac_exec_ext in '' $ac_executable_extensions; do |
8915 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8916 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 8917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8918 | break 2 |
8919 | fi | |
8920 | done | |
81ecdfbb RW |
8921 | done |
8922 | IFS=$as_save_IFS | |
9a819804 AO |
8923 | |
8924 | fi | |
8925 | fi | |
8926 | STRIP=$ac_cv_prog_STRIP | |
8927 | if test -n "$STRIP"; then | |
81ecdfbb RW |
8928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8929 | $as_echo "$STRIP" >&6; } | |
9a819804 | 8930 | else |
81ecdfbb RW |
8931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8932 | $as_echo "no" >&6; } | |
9a819804 AO |
8933 | fi |
8934 | ||
81ecdfbb | 8935 | |
9a819804 AO |
8936 | done |
8937 | fi | |
8938 | ||
8939 | for ncn_progname in strip; do | |
be01d343 PB |
8940 | if test -n "$ncn_tool_prefix"; then |
8941 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8942 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8944 | $as_echo_n "checking for $ac_word... " >&6; } | |
8945 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8946 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8947 | else |
8948 | if test -n "$STRIP"; then | |
8949 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8950 | else | |
c6b750e1 DJ |
8951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8952 | for as_dir in $PATH | |
8953 | do | |
8954 | IFS=$as_save_IFS | |
8955 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8956 | for ac_exec_ext in '' $ac_executable_extensions; do |
8957 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8958 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8959 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8960 | break 2 |
8961 | fi | |
8962 | done | |
81ecdfbb RW |
8963 | done |
8964 | IFS=$as_save_IFS | |
c6b750e1 | 8965 | |
be01d343 PB |
8966 | fi |
8967 | fi | |
c6b750e1 | 8968 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 8969 | if test -n "$STRIP"; then |
81ecdfbb RW |
8970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8971 | $as_echo "$STRIP" >&6; } | |
be01d343 | 8972 | else |
81ecdfbb RW |
8973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8974 | $as_echo "no" >&6; } | |
be01d343 PB |
8975 | fi |
8976 | ||
81ecdfbb | 8977 | |
be01d343 PB |
8978 | fi |
8979 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
8980 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8981 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8983 | $as_echo_n "checking for $ac_word... " >&6; } | |
8984 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8985 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8986 | else |
8987 | if test -n "$STRIP"; then | |
8988 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8989 | else | |
c6b750e1 DJ |
8990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8991 | for as_dir in $PATH | |
8992 | do | |
8993 | IFS=$as_save_IFS | |
8994 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8995 | for ac_exec_ext in '' $ac_executable_extensions; do |
8996 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8997 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 8998 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8999 | break 2 |
9000 | fi | |
9001 | done | |
81ecdfbb RW |
9002 | done |
9003 | IFS=$as_save_IFS | |
c6b750e1 | 9004 | |
be01d343 PB |
9005 | fi |
9006 | fi | |
c6b750e1 | 9007 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9008 | if test -n "$STRIP"; then |
81ecdfbb RW |
9009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9010 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9011 | else |
81ecdfbb RW |
9012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9013 | $as_echo "no" >&6; } | |
be01d343 | 9014 | fi |
c6b750e1 | 9015 | |
81ecdfbb | 9016 | |
be01d343 PB |
9017 | fi |
9018 | test -n "$ac_cv_prog_STRIP" && break | |
9019 | done | |
9020 | ||
9021 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 9022 | STRIP="true" |
be01d343 PB |
9023 | fi |
9024 | ||
9a819804 AO |
9025 | |
9026 | ||
9027 | if test -n "$WINDRES"; then | |
9028 | ac_cv_prog_WINDRES=$WINDRES | |
9029 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9030 | WINDRES=$ac_cv_prog_WINDRES | |
9031 | fi | |
9032 | ||
9033 | if test -n "$ac_cv_prog_WINDRES"; then | |
9034 | for ncn_progname in windres; do | |
9035 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9036 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9038 | $as_echo_n "checking for $ac_word... " >&6; } | |
9039 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9040 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9041 | else |
9042 | if test -n "$WINDRES"; then | |
9043 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9044 | else | |
9045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9046 | for as_dir in $PATH | |
9047 | do | |
9048 | IFS=$as_save_IFS | |
9049 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9050 | for ac_exec_ext in '' $ac_executable_extensions; do |
9051 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9052 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9053 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9054 | break 2 |
9055 | fi | |
9056 | done | |
81ecdfbb RW |
9057 | done |
9058 | IFS=$as_save_IFS | |
9a819804 AO |
9059 | |
9060 | fi | |
9061 | fi | |
9062 | WINDRES=$ac_cv_prog_WINDRES | |
9063 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
9064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9065 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 9066 | else |
81ecdfbb RW |
9067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9068 | $as_echo "no" >&6; } | |
9a819804 AO |
9069 | fi |
9070 | ||
81ecdfbb | 9071 | |
9a819804 AO |
9072 | done |
9073 | fi | |
9074 | ||
9075 | for ncn_progname in windres; do | |
05cbd757 PB |
9076 | if test -n "$ncn_tool_prefix"; then |
9077 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9078 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9080 | $as_echo_n "checking for $ac_word... " >&6; } | |
9081 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9082 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9083 | else |
9084 | if test -n "$WINDRES"; then | |
9085 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9086 | else | |
c6b750e1 DJ |
9087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9088 | for as_dir in $PATH | |
9089 | do | |
9090 | IFS=$as_save_IFS | |
9091 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9092 | for ac_exec_ext in '' $ac_executable_extensions; do |
9093 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9094 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9095 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9096 | break 2 |
9097 | fi | |
9098 | done | |
81ecdfbb RW |
9099 | done |
9100 | IFS=$as_save_IFS | |
c6b750e1 | 9101 | |
859789af AC |
9102 | fi |
9103 | fi | |
c6b750e1 | 9104 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 9105 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9107 | $as_echo "$WINDRES" >&6; } | |
859789af | 9108 | else |
81ecdfbb RW |
9109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9110 | $as_echo "no" >&6; } | |
859789af AC |
9111 | fi |
9112 | ||
81ecdfbb | 9113 | |
05cbd757 PB |
9114 | fi |
9115 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9116 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9117 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9119 | $as_echo_n "checking for $ac_word... " >&6; } | |
9120 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9121 | $as_echo_n "(cached) " >&6 | |
859789af | 9122 | else |
05cbd757 PB |
9123 | if test -n "$WINDRES"; then |
9124 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 9125 | else |
c6b750e1 DJ |
9126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9127 | for as_dir in $PATH | |
9128 | do | |
9129 | IFS=$as_save_IFS | |
9130 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9131 | for ac_exec_ext in '' $ac_executable_extensions; do |
9132 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9133 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9134 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9135 | break 2 |
9136 | fi | |
9137 | done | |
81ecdfbb RW |
9138 | done |
9139 | IFS=$as_save_IFS | |
c6b750e1 | 9140 | |
859789af AC |
9141 | fi |
9142 | fi | |
c6b750e1 | 9143 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 9144 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9146 | $as_echo "$WINDRES" >&6; } | |
859789af | 9147 | else |
81ecdfbb RW |
9148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9149 | $as_echo "no" >&6; } | |
859789af | 9150 | fi |
c6b750e1 | 9151 | |
81ecdfbb | 9152 | |
05cbd757 PB |
9153 | fi |
9154 | test -n "$ac_cv_prog_WINDRES" && break | |
9155 | done | |
9156 | ||
9157 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9158 | set dummy windres | |
9159 | if test $build = $host ; then | |
9160 | WINDRES="$2" | |
859789af | 9161 | else |
05cbd757 | 9162 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 9163 | fi |
859789af AC |
9164 | fi |
9165 | ||
9a819804 AO |
9166 | |
9167 | ||
0c24b341 NC |
9168 | if test -n "$WINDMC"; then |
9169 | ac_cv_prog_WINDMC=$WINDMC | |
9170 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9171 | WINDMC=$ac_cv_prog_WINDMC | |
9172 | fi | |
9173 | ||
9174 | if test -n "$ac_cv_prog_WINDMC"; then | |
9175 | for ncn_progname in windmc; do | |
9176 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9177 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9179 | $as_echo_n "checking for $ac_word... " >&6; } | |
9180 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9181 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9182 | else |
9183 | if test -n "$WINDMC"; then | |
9184 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9185 | else | |
9186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9187 | for as_dir in $PATH | |
9188 | do | |
9189 | IFS=$as_save_IFS | |
9190 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9191 | for ac_exec_ext in '' $ac_executable_extensions; do |
9192 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9193 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9194 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9195 | break 2 |
9196 | fi | |
9197 | done | |
81ecdfbb RW |
9198 | done |
9199 | IFS=$as_save_IFS | |
0c24b341 NC |
9200 | |
9201 | fi | |
9202 | fi | |
9203 | WINDMC=$ac_cv_prog_WINDMC | |
9204 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9206 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9207 | else |
81ecdfbb RW |
9208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9209 | $as_echo "no" >&6; } | |
0c24b341 NC |
9210 | fi |
9211 | ||
81ecdfbb | 9212 | |
0c24b341 NC |
9213 | done |
9214 | fi | |
9215 | ||
9216 | for ncn_progname in windmc; do | |
9217 | if test -n "$ncn_tool_prefix"; then | |
9218 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9219 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9221 | $as_echo_n "checking for $ac_word... " >&6; } | |
9222 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9223 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9224 | else |
9225 | if test -n "$WINDMC"; then | |
9226 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9227 | else | |
9228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9229 | for as_dir in $PATH | |
9230 | do | |
9231 | IFS=$as_save_IFS | |
9232 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9233 | for ac_exec_ext in '' $ac_executable_extensions; do |
9234 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9235 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9236 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9237 | break 2 |
9238 | fi | |
9239 | done | |
81ecdfbb RW |
9240 | done |
9241 | IFS=$as_save_IFS | |
0c24b341 NC |
9242 | |
9243 | fi | |
9244 | fi | |
9245 | WINDMC=$ac_cv_prog_WINDMC | |
9246 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9248 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9249 | else |
81ecdfbb RW |
9250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9251 | $as_echo "no" >&6; } | |
0c24b341 NC |
9252 | fi |
9253 | ||
81ecdfbb | 9254 | |
0c24b341 NC |
9255 | fi |
9256 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9257 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9258 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9260 | $as_echo_n "checking for $ac_word... " >&6; } | |
9261 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9262 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9263 | else |
9264 | if test -n "$WINDMC"; then | |
9265 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9266 | else | |
9267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9268 | for as_dir in $PATH | |
9269 | do | |
9270 | IFS=$as_save_IFS | |
9271 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9272 | for ac_exec_ext in '' $ac_executable_extensions; do |
9273 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9274 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9275 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9276 | break 2 |
9277 | fi | |
9278 | done | |
81ecdfbb RW |
9279 | done |
9280 | IFS=$as_save_IFS | |
0c24b341 NC |
9281 | |
9282 | fi | |
9283 | fi | |
9284 | WINDMC=$ac_cv_prog_WINDMC | |
9285 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9287 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9288 | else |
81ecdfbb RW |
9289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9290 | $as_echo "no" >&6; } | |
0c24b341 NC |
9291 | fi |
9292 | ||
81ecdfbb | 9293 | |
0c24b341 NC |
9294 | fi |
9295 | test -n "$ac_cv_prog_WINDMC" && break | |
9296 | done | |
9297 | ||
9298 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9299 | set dummy windmc | |
9300 | if test $build = $host ; then | |
9301 | WINDMC="$2" | |
9302 | else | |
9303 | WINDMC="${ncn_tool_prefix}$2" | |
9304 | fi | |
9305 | fi | |
9306 | ||
9307 | ||
9308 | ||
9a819804 AO |
9309 | if test -n "$OBJCOPY"; then |
9310 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9311 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9312 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9313 | fi | |
9314 | ||
9315 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9316 | for ncn_progname in objcopy; do | |
9317 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9318 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9320 | $as_echo_n "checking for $ac_word... " >&6; } | |
9321 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9322 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9323 | else |
9324 | if test -n "$OBJCOPY"; then | |
9325 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9326 | else | |
9327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9328 | for as_dir in $PATH | |
9329 | do | |
9330 | IFS=$as_save_IFS | |
9331 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9332 | for ac_exec_ext in '' $ac_executable_extensions; do |
9333 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9334 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9335 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9336 | break 2 |
9337 | fi | |
9338 | done | |
81ecdfbb RW |
9339 | done |
9340 | IFS=$as_save_IFS | |
9a819804 AO |
9341 | |
9342 | fi | |
9343 | fi | |
9344 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9345 | if test -n "$OBJCOPY"; then | |
81ecdfbb RW |
9346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9347 | $as_echo "$OBJCOPY" >&6; } | |
9a819804 | 9348 | else |
81ecdfbb RW |
9349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9350 | $as_echo "no" >&6; } | |
9a819804 AO |
9351 | fi |
9352 | ||
81ecdfbb | 9353 | |
9a819804 AO |
9354 | done |
9355 | fi | |
9356 | ||
9357 | for ncn_progname in objcopy; do | |
05cbd757 PB |
9358 | if test -n "$ncn_tool_prefix"; then |
9359 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9360 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9362 | $as_echo_n "checking for $ac_word... " >&6; } | |
9363 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9364 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9365 | else |
9366 | if test -n "$OBJCOPY"; then | |
9367 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9368 | else | |
c6b750e1 DJ |
9369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9370 | for as_dir in $PATH | |
9371 | do | |
9372 | IFS=$as_save_IFS | |
9373 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9374 | for ac_exec_ext in '' $ac_executable_extensions; do |
9375 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9376 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9378 | break 2 |
9379 | fi | |
9380 | done | |
81ecdfbb RW |
9381 | done |
9382 | IFS=$as_save_IFS | |
c6b750e1 | 9383 | |
859789af AC |
9384 | fi |
9385 | fi | |
c6b750e1 | 9386 | OBJCOPY=$ac_cv_prog_OBJCOPY |
859789af | 9387 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9389 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9390 | else |
81ecdfbb RW |
9391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9392 | $as_echo "no" >&6; } | |
859789af AC |
9393 | fi |
9394 | ||
81ecdfbb | 9395 | |
05cbd757 PB |
9396 | fi |
9397 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9398 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9399 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9401 | $as_echo_n "checking for $ac_word... " >&6; } | |
9402 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9403 | $as_echo_n "(cached) " >&6 | |
859789af | 9404 | else |
05cbd757 PB |
9405 | if test -n "$OBJCOPY"; then |
9406 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
859789af | 9407 | else |
c6b750e1 DJ |
9408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9409 | for as_dir in $PATH | |
9410 | do | |
9411 | IFS=$as_save_IFS | |
9412 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9413 | for ac_exec_ext in '' $ac_executable_extensions; do |
9414 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9415 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9417 | break 2 |
9418 | fi | |
9419 | done | |
81ecdfbb RW |
9420 | done |
9421 | IFS=$as_save_IFS | |
c6b750e1 | 9422 | |
859789af AC |
9423 | fi |
9424 | fi | |
c6b750e1 | 9425 | OBJCOPY=$ac_cv_prog_OBJCOPY |
05cbd757 | 9426 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9428 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9429 | else |
81ecdfbb RW |
9430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9431 | $as_echo "no" >&6; } | |
859789af | 9432 | fi |
c6b750e1 | 9433 | |
81ecdfbb | 9434 | |
05cbd757 PB |
9435 | fi |
9436 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9437 | done | |
9438 | ||
9439 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9440 | set dummy objcopy | |
9441 | if test $build = $host ; then | |
9442 | OBJCOPY="$2" | |
859789af | 9443 | else |
05cbd757 | 9444 | OBJCOPY="${ncn_tool_prefix}$2" |
859789af | 9445 | fi |
859789af AC |
9446 | fi |
9447 | ||
9a819804 AO |
9448 | |
9449 | ||
9450 | if test -n "$OBJDUMP"; then | |
9451 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9452 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9453 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9454 | fi | |
9455 | ||
9456 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9457 | for ncn_progname in objdump; do | |
9458 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9459 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9461 | $as_echo_n "checking for $ac_word... " >&6; } | |
9462 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9463 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9464 | else |
9465 | if test -n "$OBJDUMP"; then | |
9466 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9467 | else | |
9468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9469 | for as_dir in $PATH | |
9470 | do | |
9471 | IFS=$as_save_IFS | |
9472 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9473 | for ac_exec_ext in '' $ac_executable_extensions; do |
9474 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9475 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9476 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9477 | break 2 |
9478 | fi | |
9479 | done | |
81ecdfbb RW |
9480 | done |
9481 | IFS=$as_save_IFS | |
9a819804 AO |
9482 | |
9483 | fi | |
9484 | fi | |
9485 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9486 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
9487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9488 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 9489 | else |
81ecdfbb RW |
9490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9491 | $as_echo "no" >&6; } | |
9a819804 AO |
9492 | fi |
9493 | ||
81ecdfbb | 9494 | |
9a819804 AO |
9495 | done |
9496 | fi | |
9497 | ||
9498 | for ncn_progname in objdump; do | |
05cbd757 PB |
9499 | if test -n "$ncn_tool_prefix"; then |
9500 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9501 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9503 | $as_echo_n "checking for $ac_word... " >&6; } | |
9504 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9505 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9506 | else |
9507 | if test -n "$OBJDUMP"; then | |
9508 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9509 | else | |
c6b750e1 DJ |
9510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9511 | for as_dir in $PATH | |
9512 | do | |
9513 | IFS=$as_save_IFS | |
9514 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9515 | for ac_exec_ext in '' $ac_executable_extensions; do |
9516 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9517 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9518 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9519 | break 2 |
9520 | fi | |
9521 | done | |
81ecdfbb RW |
9522 | done |
9523 | IFS=$as_save_IFS | |
c6b750e1 | 9524 | |
859789af AC |
9525 | fi |
9526 | fi | |
c6b750e1 | 9527 | OBJDUMP=$ac_cv_prog_OBJDUMP |
859789af | 9528 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9530 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9531 | else |
81ecdfbb RW |
9532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9533 | $as_echo "no" >&6; } | |
859789af AC |
9534 | fi |
9535 | ||
81ecdfbb | 9536 | |
05cbd757 PB |
9537 | fi |
9538 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9539 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9540 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9542 | $as_echo_n "checking for $ac_word... " >&6; } | |
9543 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9544 | $as_echo_n "(cached) " >&6 | |
859789af | 9545 | else |
05cbd757 PB |
9546 | if test -n "$OBJDUMP"; then |
9547 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 9548 | else |
c6b750e1 DJ |
9549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9550 | for as_dir in $PATH | |
9551 | do | |
9552 | IFS=$as_save_IFS | |
9553 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9554 | for ac_exec_ext in '' $ac_executable_extensions; do |
9555 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9556 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9557 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9558 | break 2 |
9559 | fi | |
9560 | done | |
81ecdfbb RW |
9561 | done |
9562 | IFS=$as_save_IFS | |
c6b750e1 | 9563 | |
859789af AC |
9564 | fi |
9565 | fi | |
c6b750e1 | 9566 | OBJDUMP=$ac_cv_prog_OBJDUMP |
05cbd757 | 9567 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9569 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9570 | else |
81ecdfbb RW |
9571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9572 | $as_echo "no" >&6; } | |
859789af | 9573 | fi |
c6b750e1 | 9574 | |
81ecdfbb | 9575 | |
05cbd757 PB |
9576 | fi |
9577 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9578 | done | |
9579 | ||
9580 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9581 | set dummy objdump | |
9582 | if test $build = $host ; then | |
9583 | OBJDUMP="$2" | |
859789af | 9584 | else |
05cbd757 | 9585 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 9586 | fi |
859789af AC |
9587 | fi |
9588 | ||
a0da8069 NN |
9589 | |
9590 | ||
9591 | ||
9592 | ||
9593 | ||
be01d343 | 9594 | # Target tools. |
c6b750e1 | 9595 | |
81ecdfbb RW |
9596 | # Check whether --with-build-time-tools was given. |
9597 | if test "${with_build_time_tools+set}" = set; then : | |
9598 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
9599 | x/*) ;; |
9600 | *) | |
9601 | with_build_time_tools= | |
81ecdfbb RW |
9602 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9603 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
9604 | ;; |
9605 | esac | |
859789af | 9606 | else |
2429c060 | 9607 | with_build_time_tools= |
81ecdfbb RW |
9608 | fi |
9609 | ||
859789af | 9610 | |
9a819804 AO |
9611 | |
9612 | ||
9613 | if test -n "$CC_FOR_TARGET"; then | |
9614 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9615 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9616 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9617 | fi | |
9618 | ||
9619 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9620 | for ncn_progname in cc gcc; do | |
9621 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9622 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9624 | $as_echo_n "checking for $ac_word... " >&6; } | |
9625 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9626 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9627 | else |
9628 | if test -n "$CC_FOR_TARGET"; then | |
9629 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9630 | else | |
9631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9632 | for as_dir in $PATH | |
9633 | do | |
9634 | IFS=$as_save_IFS | |
9635 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9636 | for ac_exec_ext in '' $ac_executable_extensions; do |
9637 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9638 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9639 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9640 | break 2 |
9641 | fi | |
9642 | done | |
81ecdfbb RW |
9643 | done |
9644 | IFS=$as_save_IFS | |
9a819804 AO |
9645 | |
9646 | fi | |
9647 | fi | |
9648 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9649 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
9650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9651 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 9652 | else |
81ecdfbb RW |
9653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9654 | $as_echo "no" >&6; } | |
9a819804 AO |
9655 | fi |
9656 | ||
81ecdfbb | 9657 | |
9a819804 AO |
9658 | done |
9659 | fi | |
9660 | ||
9661 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 9662 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
9663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9664 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
9665 | if test -x $with_build_time_tools/${ncn_progname}; then |
9666 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
9667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9668 | $as_echo "yes" >&6; } | |
cac3d6c4 | 9669 | break |
2429c060 | 9670 | else |
81ecdfbb RW |
9671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9672 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
9673 | fi |
9674 | done | |
55db4b87 PB |
9675 | fi |
9676 | ||
2429c060 PB |
9677 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
9678 | for ncn_progname in cc gcc; do | |
9679 | if test -n "$ncn_target_tool_prefix"; then | |
9680 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9681 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9683 | $as_echo_n "checking for $ac_word... " >&6; } | |
9684 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9685 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
9686 | else |
9687 | if test -n "$CC_FOR_TARGET"; then | |
9688 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9689 | else | |
c6b750e1 DJ |
9690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9691 | for as_dir in $PATH | |
9692 | do | |
9693 | IFS=$as_save_IFS | |
9694 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9695 | for ac_exec_ext in '' $ac_executable_extensions; do |
9696 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9697 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 9698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9699 | break 2 |
9700 | fi | |
9701 | done | |
81ecdfbb RW |
9702 | done |
9703 | IFS=$as_save_IFS | |
c6b750e1 | 9704 | |
55db4b87 PB |
9705 | fi |
9706 | fi | |
c6b750e1 | 9707 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 9708 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
9709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9710 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 9711 | else |
81ecdfbb RW |
9712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9713 | $as_echo "no" >&6; } | |
55db4b87 PB |
9714 | fi |
9715 | ||
81ecdfbb | 9716 | |
2429c060 PB |
9717 | fi |
9718 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
9719 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9720 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9722 | $as_echo_n "checking for $ac_word... " >&6; } | |
9723 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9724 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 9725 | else |
05cbd757 PB |
9726 | if test -n "$CC_FOR_TARGET"; then |
9727 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 9728 | else |
c6b750e1 DJ |
9729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9730 | for as_dir in $PATH | |
9731 | do | |
9732 | IFS=$as_save_IFS | |
9733 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9734 | for ac_exec_ext in '' $ac_executable_extensions; do |
9735 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9736 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9737 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9738 | break 2 |
9739 | fi | |
9740 | done | |
81ecdfbb RW |
9741 | done |
9742 | IFS=$as_save_IFS | |
c6b750e1 | 9743 | |
55db4b87 PB |
9744 | fi |
9745 | fi | |
c6b750e1 | 9746 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 9747 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
9748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9749 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 9750 | else |
81ecdfbb RW |
9751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9752 | $as_echo "no" >&6; } | |
55db4b87 | 9753 | fi |
c6b750e1 | 9754 | |
81ecdfbb | 9755 | |
2429c060 PB |
9756 | fi |
9757 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
9758 | done | |
9759 | fi | |
c6b750e1 | 9760 | |
05cbd757 PB |
9761 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
9762 | set dummy cc gcc | |
9763 | if test $build = $target ; then | |
9764 | CC_FOR_TARGET="$2" | |
55db4b87 | 9765 | else |
05cbd757 | 9766 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 9767 | fi |
d3f5afc4 MS |
9768 | else |
9769 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
9770 | fi |
9771 | ||
9a819804 AO |
9772 | |
9773 | ||
9774 | if test -n "$CXX_FOR_TARGET"; then | |
9775 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
9776 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9777 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9778 | fi | |
9779 | ||
9780 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9781 | for ncn_progname in c++ g++ cxx gxx; do | |
9782 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9783 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9785 | $as_echo_n "checking for $ac_word... " >&6; } | |
9786 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9787 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9788 | else |
9789 | if test -n "$CXX_FOR_TARGET"; then | |
9790 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9791 | else | |
9792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9793 | for as_dir in $PATH | |
9794 | do | |
9795 | IFS=$as_save_IFS | |
9796 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9797 | for ac_exec_ext in '' $ac_executable_extensions; do |
9798 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9799 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9800 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9801 | break 2 |
9802 | fi | |
9803 | done | |
81ecdfbb RW |
9804 | done |
9805 | IFS=$as_save_IFS | |
9a819804 AO |
9806 | |
9807 | fi | |
9808 | fi | |
9809 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9810 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
9811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9812 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 9813 | else |
81ecdfbb RW |
9814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9815 | $as_echo "no" >&6; } | |
9a819804 AO |
9816 | fi |
9817 | ||
81ecdfbb | 9818 | |
9a819804 AO |
9819 | done |
9820 | fi | |
9821 | ||
9822 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 9823 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
9824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9825 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
9826 | if test -x $with_build_time_tools/${ncn_progname}; then |
9827 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
9828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9829 | $as_echo "yes" >&6; } | |
2429c060 PB |
9830 | break |
9831 | else | |
81ecdfbb RW |
9832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9833 | $as_echo "no" >&6; } | |
2429c060 PB |
9834 | fi |
9835 | done | |
9836 | fi | |
9837 | ||
9838 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9839 | for ncn_progname in c++ g++ cxx gxx; do | |
9840 | if test -n "$ncn_target_tool_prefix"; then | |
9841 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9842 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9844 | $as_echo_n "checking for $ac_word... " >&6; } | |
9845 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9846 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
9847 | else |
9848 | if test -n "$CXX_FOR_TARGET"; then | |
9849 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9850 | else | |
c6b750e1 DJ |
9851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9852 | for as_dir in $PATH | |
9853 | do | |
9854 | IFS=$as_save_IFS | |
9855 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9856 | for ac_exec_ext in '' $ac_executable_extensions; do |
9857 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9858 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 9859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9860 | break 2 |
9861 | fi | |
9862 | done | |
81ecdfbb RW |
9863 | done |
9864 | IFS=$as_save_IFS | |
c6b750e1 | 9865 | |
55db4b87 PB |
9866 | fi |
9867 | fi | |
c6b750e1 | 9868 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 9869 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
9870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9871 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 9872 | else |
81ecdfbb RW |
9873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9874 | $as_echo "no" >&6; } | |
55db4b87 PB |
9875 | fi |
9876 | ||
81ecdfbb | 9877 | |
2429c060 PB |
9878 | fi |
9879 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
9880 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9881 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9883 | $as_echo_n "checking for $ac_word... " >&6; } | |
9884 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9885 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 9886 | else |
05cbd757 PB |
9887 | if test -n "$CXX_FOR_TARGET"; then |
9888 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 9889 | else |
c6b750e1 DJ |
9890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9891 | for as_dir in $PATH | |
9892 | do | |
9893 | IFS=$as_save_IFS | |
9894 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9895 | for ac_exec_ext in '' $ac_executable_extensions; do |
9896 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9897 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9899 | break 2 |
9900 | fi | |
9901 | done | |
81ecdfbb RW |
9902 | done |
9903 | IFS=$as_save_IFS | |
c6b750e1 | 9904 | |
55db4b87 PB |
9905 | fi |
9906 | fi | |
c6b750e1 | 9907 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 9908 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
9909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9910 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 9911 | else |
81ecdfbb RW |
9912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9913 | $as_echo "no" >&6; } | |
55db4b87 | 9914 | fi |
c6b750e1 | 9915 | |
81ecdfbb | 9916 | |
2429c060 PB |
9917 | fi |
9918 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
9919 | done | |
9920 | fi | |
c6b750e1 | 9921 | |
05cbd757 PB |
9922 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
9923 | set dummy c++ g++ cxx gxx | |
9924 | if test $build = $target ; then | |
9925 | CXX_FOR_TARGET="$2" | |
55db4b87 | 9926 | else |
05cbd757 | 9927 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 9928 | fi |
d3f5afc4 MS |
9929 | else |
9930 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
9931 | fi |
9932 | ||
9a819804 AO |
9933 | |
9934 | ||
9935 | if test -n "$GCC_FOR_TARGET"; then | |
9936 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
9937 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9938 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
9939 | fi | |
9940 | ||
9941 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9942 | for ncn_progname in gcc; do | |
9943 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9944 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9946 | $as_echo_n "checking for $ac_word... " >&6; } | |
9947 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
9948 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9949 | else |
9950 | if test -n "$GCC_FOR_TARGET"; then | |
9951 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
9952 | else | |
9953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9954 | for as_dir in $PATH | |
9955 | do | |
9956 | IFS=$as_save_IFS | |
9957 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9958 | for ac_exec_ext in '' $ac_executable_extensions; do |
9959 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9960 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9962 | break 2 |
9963 | fi | |
9964 | done | |
81ecdfbb RW |
9965 | done |
9966 | IFS=$as_save_IFS | |
9a819804 AO |
9967 | |
9968 | fi | |
9969 | fi | |
9970 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
9971 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
9972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
9973 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 9974 | else |
81ecdfbb RW |
9975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9976 | $as_echo "no" >&6; } | |
9a819804 AO |
9977 | fi |
9978 | ||
81ecdfbb | 9979 | |
9a819804 AO |
9980 | done |
9981 | fi | |
9982 | ||
9983 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 9984 | for ncn_progname in gcc; do |
81ecdfbb RW |
9985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9986 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
9987 | if test -x $with_build_time_tools/${ncn_progname}; then |
9988 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
9989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9990 | $as_echo "yes" >&6; } | |
2429c060 PB |
9991 | break |
9992 | else | |
81ecdfbb RW |
9993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9994 | $as_echo "no" >&6; } | |
2429c060 PB |
9995 | fi |
9996 | done | |
9997 | fi | |
9998 | ||
9999 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10000 | for ncn_progname in gcc; do | |
10001 | if test -n "$ncn_target_tool_prefix"; then | |
10002 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10003 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10005 | $as_echo_n "checking for $ac_word... " >&6; } | |
10006 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10007 | $as_echo_n "(cached) " >&6 | |
859789af | 10008 | else |
2429c060 PB |
10009 | if test -n "$GCC_FOR_TARGET"; then |
10010 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10011 | else |
c6b750e1 DJ |
10012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10013 | for as_dir in $PATH | |
10014 | do | |
10015 | IFS=$as_save_IFS | |
10016 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10017 | for ac_exec_ext in '' $ac_executable_extensions; do |
10018 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10019 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10020 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10021 | break 2 |
10022 | fi | |
10023 | done | |
81ecdfbb RW |
10024 | done |
10025 | IFS=$as_save_IFS | |
c6b750e1 | 10026 | |
55db4b87 PB |
10027 | fi |
10028 | fi | |
c6b750e1 | 10029 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 10030 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10032 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10033 | else |
81ecdfbb RW |
10034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10035 | $as_echo "no" >&6; } | |
55db4b87 PB |
10036 | fi |
10037 | ||
81ecdfbb | 10038 | |
2429c060 PB |
10039 | fi |
10040 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10041 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10042 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10044 | $as_echo_n "checking for $ac_word... " >&6; } | |
10045 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10046 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10047 | else |
05cbd757 PB |
10048 | if test -n "$GCC_FOR_TARGET"; then |
10049 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10050 | else |
c6b750e1 DJ |
10051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10052 | for as_dir in $PATH | |
10053 | do | |
10054 | IFS=$as_save_IFS | |
10055 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10056 | for ac_exec_ext in '' $ac_executable_extensions; do |
10057 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10058 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10059 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10060 | break 2 |
10061 | fi | |
10062 | done | |
81ecdfbb RW |
10063 | done |
10064 | IFS=$as_save_IFS | |
c6b750e1 | 10065 | |
55db4b87 PB |
10066 | fi |
10067 | fi | |
c6b750e1 | 10068 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 10069 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10071 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10072 | else |
81ecdfbb RW |
10073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10074 | $as_echo "no" >&6; } | |
55db4b87 | 10075 | fi |
c6b750e1 | 10076 | |
81ecdfbb | 10077 | |
2429c060 PB |
10078 | fi |
10079 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10080 | done | |
10081 | fi | |
c6b750e1 | 10082 | |
05cbd757 PB |
10083 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10084 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
10085 | else |
10086 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
10087 | fi |
10088 | ||
9a819804 AO |
10089 | |
10090 | ||
10091 | if test -n "$GCJ_FOR_TARGET"; then | |
10092 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10093 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10094 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10095 | fi | |
10096 | ||
10097 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10098 | for ncn_progname in gcj; do | |
10099 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10100 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10102 | $as_echo_n "checking for $ac_word... " >&6; } | |
10103 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10104 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10105 | else |
10106 | if test -n "$GCJ_FOR_TARGET"; then | |
10107 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10108 | else | |
10109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10110 | for as_dir in $PATH | |
10111 | do | |
10112 | IFS=$as_save_IFS | |
10113 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10114 | for ac_exec_ext in '' $ac_executable_extensions; do |
10115 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10116 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10118 | break 2 |
10119 | fi | |
10120 | done | |
81ecdfbb RW |
10121 | done |
10122 | IFS=$as_save_IFS | |
9a819804 AO |
10123 | |
10124 | fi | |
10125 | fi | |
10126 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10127 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10129 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10130 | else |
81ecdfbb RW |
10131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10132 | $as_echo "no" >&6; } | |
9a819804 AO |
10133 | fi |
10134 | ||
81ecdfbb | 10135 | |
9a819804 AO |
10136 | done |
10137 | fi | |
10138 | ||
10139 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10140 | for ncn_progname in gcj; do |
81ecdfbb RW |
10141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10142 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10143 | if test -x $with_build_time_tools/${ncn_progname}; then |
10144 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10146 | $as_echo "yes" >&6; } | |
2429c060 PB |
10147 | break |
10148 | else | |
81ecdfbb RW |
10149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10150 | $as_echo "no" >&6; } | |
2429c060 PB |
10151 | fi |
10152 | done | |
10153 | fi | |
10154 | ||
10155 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10156 | for ncn_progname in gcj; do | |
10157 | if test -n "$ncn_target_tool_prefix"; then | |
10158 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10159 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10161 | $as_echo_n "checking for $ac_word... " >&6; } | |
10162 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10163 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10164 | else |
10165 | if test -n "$GCJ_FOR_TARGET"; then | |
10166 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10167 | else | |
c6b750e1 DJ |
10168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10169 | for as_dir in $PATH | |
10170 | do | |
10171 | IFS=$as_save_IFS | |
10172 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10173 | for ac_exec_ext in '' $ac_executable_extensions; do |
10174 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10175 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10177 | break 2 |
10178 | fi | |
10179 | done | |
81ecdfbb RW |
10180 | done |
10181 | IFS=$as_save_IFS | |
c6b750e1 | 10182 | |
55db4b87 PB |
10183 | fi |
10184 | fi | |
9a819804 AO |
10185 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10186 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10188 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10189 | else |
81ecdfbb RW |
10190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10191 | $as_echo "no" >&6; } | |
9a819804 AO |
10192 | fi |
10193 | ||
81ecdfbb | 10194 | |
9a819804 AO |
10195 | fi |
10196 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10197 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10198 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10200 | $as_echo_n "checking for $ac_word... " >&6; } | |
10201 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10202 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10203 | else |
10204 | if test -n "$GCJ_FOR_TARGET"; then | |
10205 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10206 | else | |
10207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10208 | for as_dir in $PATH | |
10209 | do | |
10210 | IFS=$as_save_IFS | |
10211 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10212 | for ac_exec_ext in '' $ac_executable_extensions; do |
10213 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10214 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10215 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10216 | break 2 |
10217 | fi | |
10218 | done | |
81ecdfbb RW |
10219 | done |
10220 | IFS=$as_save_IFS | |
9a819804 AO |
10221 | |
10222 | fi | |
10223 | fi | |
10224 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10225 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10227 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10228 | else |
81ecdfbb RW |
10229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10230 | $as_echo "no" >&6; } | |
9a819804 AO |
10231 | fi |
10232 | ||
81ecdfbb | 10233 | |
9a819804 AO |
10234 | fi |
10235 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10236 | done | |
10237 | fi | |
10238 | ||
10239 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10240 | set dummy gcj | |
10241 | if test $build = $target ; then | |
10242 | GCJ_FOR_TARGET="$2" | |
10243 | else | |
10244 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10245 | fi | |
d3f5afc4 MS |
10246 | else |
10247 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
9a819804 AO |
10248 | fi |
10249 | ||
10250 | ||
10251 | ||
10252 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10253 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10254 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10255 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
10256 | fi |
10257 | ||
9a819804 AO |
10258 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10259 | for ncn_progname in gfortran; do | |
10260 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10261 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10263 | $as_echo_n "checking for $ac_word... " >&6; } | |
10264 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10265 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10266 | else |
9a819804 AO |
10267 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10268 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10269 | else |
c6b750e1 DJ |
10270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10271 | for as_dir in $PATH | |
10272 | do | |
10273 | IFS=$as_save_IFS | |
10274 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10275 | for ac_exec_ext in '' $ac_executable_extensions; do |
10276 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10277 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10279 | break 2 |
10280 | fi | |
10281 | done | |
81ecdfbb RW |
10282 | done |
10283 | IFS=$as_save_IFS | |
c6b750e1 | 10284 | |
55db4b87 PB |
10285 | fi |
10286 | fi | |
9a819804 AO |
10287 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10288 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
10289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10290 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10291 | else |
81ecdfbb RW |
10292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10293 | $as_echo "no" >&6; } | |
55db4b87 | 10294 | fi |
c6b750e1 | 10295 | |
81ecdfbb | 10296 | |
2429c060 PB |
10297 | done |
10298 | fi | |
c6b750e1 | 10299 | |
9a819804 | 10300 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 10301 | for ncn_progname in gfortran; do |
81ecdfbb RW |
10302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10303 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10304 | if test -x $with_build_time_tools/${ncn_progname}; then |
10305 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10307 | $as_echo "yes" >&6; } | |
2429c060 PB |
10308 | break |
10309 | else | |
81ecdfbb RW |
10310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10311 | $as_echo "no" >&6; } | |
2429c060 PB |
10312 | fi |
10313 | done | |
10314 | fi | |
10315 | ||
10316 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10317 | for ncn_progname in gfortran; do | |
10318 | if test -n "$ncn_target_tool_prefix"; then | |
10319 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10320 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10322 | $as_echo_n "checking for $ac_word... " >&6; } | |
10323 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10324 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10325 | else |
10326 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10327 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10328 | else | |
c6b750e1 DJ |
10329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10330 | for as_dir in $PATH | |
10331 | do | |
10332 | IFS=$as_save_IFS | |
10333 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10334 | for ac_exec_ext in '' $ac_executable_extensions; do |
10335 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10336 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10337 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10338 | break 2 |
10339 | fi | |
10340 | done | |
81ecdfbb RW |
10341 | done |
10342 | IFS=$as_save_IFS | |
c6b750e1 | 10343 | |
55db4b87 PB |
10344 | fi |
10345 | fi | |
c6b750e1 | 10346 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
55db4b87 | 10347 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10349 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10350 | else |
81ecdfbb RW |
10351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10352 | $as_echo "no" >&6; } | |
55db4b87 PB |
10353 | fi |
10354 | ||
81ecdfbb | 10355 | |
2429c060 PB |
10356 | fi |
10357 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10358 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10359 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10361 | $as_echo_n "checking for $ac_word... " >&6; } | |
10362 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10363 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10364 | else |
05cbd757 | 10365 | if test -n "$GFORTRAN_FOR_TARGET"; then |
c6b750e1 DJ |
10366 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10367 | else | |
10368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10369 | for as_dir in $PATH | |
10370 | do | |
10371 | IFS=$as_save_IFS | |
10372 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10373 | for ac_exec_ext in '' $ac_executable_extensions; do |
10374 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10375 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10376 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10377 | break 2 |
10378 | fi | |
10379 | done | |
81ecdfbb RW |
10380 | done |
10381 | IFS=$as_save_IFS | |
c6b750e1 | 10382 | |
55db4b87 PB |
10383 | fi |
10384 | fi | |
c6b750e1 | 10385 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
05cbd757 | 10386 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10388 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10389 | else |
81ecdfbb RW |
10390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10391 | $as_echo "no" >&6; } | |
55db4b87 | 10392 | fi |
c6b750e1 | 10393 | |
81ecdfbb | 10394 | |
2429c060 PB |
10395 | fi |
10396 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10397 | done | |
10398 | fi | |
c6b750e1 | 10399 | |
05cbd757 PB |
10400 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10401 | set dummy gfortran | |
10402 | if test $build = $target ; then | |
10403 | GFORTRAN_FOR_TARGET="$2" | |
55db4b87 | 10404 | else |
05cbd757 | 10405 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10406 | fi |
d3f5afc4 MS |
10407 | else |
10408 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
859789af AC |
10409 | fi |
10410 | ||
2429c060 PB |
10411 | |
10412 | ||
e552509b ILT |
10413 | if test -n "$GOC_FOR_TARGET"; then |
10414 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10415 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10416 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10417 | fi | |
10418 | ||
10419 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10420 | for ncn_progname in gccgo; do | |
10421 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10422 | set dummy ${ncn_progname}; ac_word=$2 | |
10423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10424 | $as_echo_n "checking for $ac_word... " >&6; } | |
10425 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10426 | $as_echo_n "(cached) " >&6 | |
10427 | else | |
10428 | if test -n "$GOC_FOR_TARGET"; then | |
10429 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10430 | else | |
10431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10432 | for as_dir in $PATH | |
10433 | do | |
10434 | IFS=$as_save_IFS | |
10435 | test -z "$as_dir" && as_dir=. | |
10436 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10437 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10438 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10439 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10440 | break 2 | |
10441 | fi | |
10442 | done | |
10443 | done | |
10444 | IFS=$as_save_IFS | |
10445 | ||
10446 | fi | |
10447 | fi | |
10448 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10449 | if test -n "$GOC_FOR_TARGET"; then | |
10450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10451 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10452 | else | |
10453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10454 | $as_echo "no" >&6; } | |
10455 | fi | |
10456 | ||
10457 | ||
10458 | done | |
10459 | fi | |
10460 | ||
10461 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10462 | for ncn_progname in gccgo; do | |
10463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10464 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10465 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10466 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10468 | $as_echo "yes" >&6; } | |
10469 | break | |
10470 | else | |
10471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10472 | $as_echo "no" >&6; } | |
10473 | fi | |
10474 | done | |
10475 | fi | |
10476 | ||
10477 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10478 | for ncn_progname in gccgo; do | |
10479 | if test -n "$ncn_target_tool_prefix"; then | |
10480 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10481 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10483 | $as_echo_n "checking for $ac_word... " >&6; } | |
10484 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10485 | $as_echo_n "(cached) " >&6 | |
10486 | else | |
10487 | if test -n "$GOC_FOR_TARGET"; then | |
10488 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10489 | else | |
10490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10491 | for as_dir in $PATH | |
10492 | do | |
10493 | IFS=$as_save_IFS | |
10494 | test -z "$as_dir" && as_dir=. | |
10495 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10496 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10497 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10498 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10499 | break 2 | |
10500 | fi | |
10501 | done | |
10502 | done | |
10503 | IFS=$as_save_IFS | |
10504 | ||
10505 | fi | |
10506 | fi | |
10507 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10508 | if test -n "$GOC_FOR_TARGET"; then | |
10509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10510 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10511 | else | |
10512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10513 | $as_echo "no" >&6; } | |
10514 | fi | |
10515 | ||
10516 | ||
10517 | fi | |
10518 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10519 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10520 | set dummy ${ncn_progname}; ac_word=$2 | |
10521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10522 | $as_echo_n "checking for $ac_word... " >&6; } | |
10523 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10524 | $as_echo_n "(cached) " >&6 | |
10525 | else | |
10526 | if test -n "$GOC_FOR_TARGET"; then | |
10527 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10528 | else | |
10529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10530 | for as_dir in $PATH | |
10531 | do | |
10532 | IFS=$as_save_IFS | |
10533 | test -z "$as_dir" && as_dir=. | |
10534 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10535 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10536 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10537 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10538 | break 2 | |
10539 | fi | |
10540 | done | |
10541 | done | |
10542 | IFS=$as_save_IFS | |
10543 | ||
10544 | fi | |
10545 | fi | |
10546 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10547 | if test -n "$GOC_FOR_TARGET"; then | |
10548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10549 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10550 | else | |
10551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10552 | $as_echo "no" >&6; } | |
10553 | fi | |
10554 | ||
10555 | ||
10556 | fi | |
10557 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10558 | done | |
10559 | fi | |
10560 | ||
10561 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10562 | set dummy gccgo | |
10563 | if test $build = $target ; then | |
10564 | GOC_FOR_TARGET="$2" | |
10565 | else | |
10566 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10567 | fi | |
10568 | else | |
10569 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10570 | fi | |
10571 | ||
10572 | ||
10573 | ||
2429c060 PB |
10574 | cat > conftest.c << \EOF |
10575 | #ifdef __GNUC__ | |
10576 | gcc_yay; | |
10577 | #endif | |
10578 | EOF | |
10579 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10580 | have_gcc_for_target=yes | |
859789af | 10581 | else |
2429c060 PB |
10582 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
10583 | have_gcc_for_target=no | |
859789af | 10584 | fi |
2429c060 PB |
10585 | rm conftest.c |
10586 | ||
10587 | ||
10588 | ||
859789af | 10589 | |
2429c060 PB |
10590 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
10591 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10593 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10594 | if test -x $with_build_time_tools/ar; then |
10595 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10596 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
10597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10598 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 10599 | else |
81ecdfbb RW |
10600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10601 | $as_echo "no" >&6; } | |
3a35eeb3 | 10602 | fi |
2429c060 PB |
10603 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10604 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
10605 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10606 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 10607 | fi |
2429c060 | 10608 | fi |
c6b750e1 | 10609 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10610 | # Extract the first word of "ar", so it can be a program name with args. |
10611 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
10612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10613 | $as_echo_n "checking for $ac_word... " >&6; } | |
10614 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10615 | $as_echo_n "(cached) " >&6 | |
859789af | 10616 | else |
c6b750e1 DJ |
10617 | case $AR_FOR_TARGET in |
10618 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10619 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10620 | ;; | |
2429c060 | 10621 | *) |
c6b750e1 DJ |
10622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10623 | for as_dir in $gcc_cv_tool_dirs | |
10624 | do | |
10625 | IFS=$as_save_IFS | |
10626 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10627 | for ac_exec_ext in '' $ac_executable_extensions; do |
10628 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10629 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10630 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10631 | break 2 |
10632 | fi | |
10633 | done | |
81ecdfbb RW |
10634 | done |
10635 | IFS=$as_save_IFS | |
c6b750e1 | 10636 | |
2429c060 PB |
10637 | ;; |
10638 | esac | |
859789af | 10639 | fi |
c6b750e1 | 10640 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 10641 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10643 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 10644 | else |
81ecdfbb RW |
10645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10646 | $as_echo "no" >&6; } | |
859789af | 10647 | fi |
05cbd757 | 10648 | |
81ecdfbb | 10649 | |
2429c060 PB |
10650 | fi |
10651 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
10652 | |
10653 | ||
10654 | if test -n "$AR_FOR_TARGET"; then | |
10655 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10656 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10657 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10658 | fi | |
10659 | ||
10660 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10661 | for ncn_progname in ar; do | |
10662 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10663 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10665 | $as_echo_n "checking for $ac_word... " >&6; } | |
10666 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10667 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10668 | else |
10669 | if test -n "$AR_FOR_TARGET"; then | |
10670 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10671 | else | |
10672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10673 | for as_dir in $PATH | |
10674 | do | |
10675 | IFS=$as_save_IFS | |
10676 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10677 | for ac_exec_ext in '' $ac_executable_extensions; do |
10678 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10679 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10680 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10681 | break 2 |
10682 | fi | |
10683 | done | |
81ecdfbb RW |
10684 | done |
10685 | IFS=$as_save_IFS | |
9a819804 AO |
10686 | |
10687 | fi | |
10688 | fi | |
10689 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10690 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
10691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10692 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 10693 | else |
81ecdfbb RW |
10694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10695 | $as_echo "no" >&6; } | |
9a819804 AO |
10696 | fi |
10697 | ||
81ecdfbb | 10698 | |
9a819804 AO |
10699 | done |
10700 | fi | |
10701 | ||
10702 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10703 | for ncn_progname in ar; do |
81ecdfbb RW |
10704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10705 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10706 | if test -x $with_build_time_tools/${ncn_progname}; then |
10707 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10709 | $as_echo "yes" >&6; } | |
2429c060 PB |
10710 | break |
10711 | else | |
81ecdfbb RW |
10712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10713 | $as_echo "no" >&6; } | |
2429c060 PB |
10714 | fi |
10715 | done | |
859789af AC |
10716 | fi |
10717 | ||
2429c060 PB |
10718 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
10719 | for ncn_progname in ar; do | |
10720 | if test -n "$ncn_target_tool_prefix"; then | |
10721 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10722 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10724 | $as_echo_n "checking for $ac_word... " >&6; } | |
10725 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10726 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 10727 | else |
2429c060 PB |
10728 | if test -n "$AR_FOR_TARGET"; then |
10729 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 10730 | else |
c6b750e1 DJ |
10731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10732 | for as_dir in $PATH | |
10733 | do | |
10734 | IFS=$as_save_IFS | |
10735 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10736 | for ac_exec_ext in '' $ac_executable_extensions; do |
10737 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10738 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10740 | break 2 |
10741 | fi | |
10742 | done | |
81ecdfbb RW |
10743 | done |
10744 | IFS=$as_save_IFS | |
c6b750e1 | 10745 | |
7e0f7140 GK |
10746 | fi |
10747 | fi | |
c6b750e1 | 10748 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 10749 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10751 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 10752 | else |
81ecdfbb RW |
10753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10754 | $as_echo "no" >&6; } | |
7e0f7140 GK |
10755 | fi |
10756 | ||
81ecdfbb | 10757 | |
2429c060 PB |
10758 | fi |
10759 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
10760 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 10761 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10763 | $as_echo_n "checking for $ac_word... " >&6; } | |
10764 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10765 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 10766 | else |
2429c060 PB |
10767 | if test -n "$AR_FOR_TARGET"; then |
10768 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 10769 | else |
c6b750e1 DJ |
10770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10771 | for as_dir in $PATH | |
10772 | do | |
10773 | IFS=$as_save_IFS | |
10774 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10775 | for ac_exec_ext in '' $ac_executable_extensions; do |
10776 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10777 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10778 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10779 | break 2 |
10780 | fi | |
10781 | done | |
81ecdfbb RW |
10782 | done |
10783 | IFS=$as_save_IFS | |
c6b750e1 | 10784 | |
7e0f7140 GK |
10785 | fi |
10786 | fi | |
c6b750e1 | 10787 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 10788 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10790 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 10791 | else |
81ecdfbb RW |
10792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10793 | $as_echo "no" >&6; } | |
7e0f7140 | 10794 | fi |
c6b750e1 | 10795 | |
81ecdfbb | 10796 | |
2429c060 PB |
10797 | fi |
10798 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
10799 | done | |
10800 | fi | |
c6b750e1 | 10801 | |
2429c060 PB |
10802 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
10803 | set dummy ar | |
7e0f7140 | 10804 | if test $build = $target ; then |
2429c060 | 10805 | AR_FOR_TARGET="$2" |
7e0f7140 | 10806 | else |
2429c060 | 10807 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 10808 | fi |
d3f5afc4 MS |
10809 | else |
10810 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
10811 | fi |
10812 | ||
3a35eeb3 PB |
10813 | else |
10814 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
10815 | fi |
10816 | ||
10817 | ||
10818 | ||
10819 | ||
10820 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
10821 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
10823 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10824 | if test -x $with_build_time_tools/as; then |
10825 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
10826 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
10827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
10828 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 10829 | else |
81ecdfbb RW |
10830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10831 | $as_echo "no" >&6; } | |
3a35eeb3 | 10832 | fi |
2429c060 PB |
10833 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10834 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
10835 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
10836 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
10837 | fi |
10838 | fi | |
c6b750e1 | 10839 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10840 | # Extract the first word of "as", so it can be a program name with args. |
10841 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
10842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10843 | $as_echo_n "checking for $ac_word... " >&6; } | |
10844 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
10845 | $as_echo_n "(cached) " >&6 | |
2429c060 | 10846 | else |
c6b750e1 DJ |
10847 | case $AS_FOR_TARGET in |
10848 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10849 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
10850 | ;; | |
2429c060 | 10851 | *) |
c6b750e1 DJ |
10852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10853 | for as_dir in $gcc_cv_tool_dirs | |
10854 | do | |
10855 | IFS=$as_save_IFS | |
10856 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10857 | for ac_exec_ext in '' $ac_executable_extensions; do |
10858 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10859 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10860 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10861 | break 2 |
10862 | fi | |
10863 | done | |
81ecdfbb RW |
10864 | done |
10865 | IFS=$as_save_IFS | |
c6b750e1 | 10866 | |
2429c060 PB |
10867 | ;; |
10868 | esac | |
10869 | fi | |
c6b750e1 | 10870 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 10871 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
10872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10873 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 10874 | else |
81ecdfbb RW |
10875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10876 | $as_echo "no" >&6; } | |
2429c060 PB |
10877 | fi |
10878 | ||
81ecdfbb | 10879 | |
2429c060 PB |
10880 | fi |
10881 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
10882 | |
10883 | ||
10884 | if test -n "$AS_FOR_TARGET"; then | |
10885 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
10886 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10887 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10888 | fi | |
10889 | ||
10890 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10891 | for ncn_progname in as; do | |
10892 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10893 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10895 | $as_echo_n "checking for $ac_word... " >&6; } | |
10896 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10897 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10898 | else |
10899 | if test -n "$AS_FOR_TARGET"; then | |
10900 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10901 | else | |
10902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10903 | for as_dir in $PATH | |
10904 | do | |
10905 | IFS=$as_save_IFS | |
10906 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10907 | for ac_exec_ext in '' $ac_executable_extensions; do |
10908 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10909 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10910 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10911 | break 2 |
10912 | fi | |
10913 | done | |
81ecdfbb RW |
10914 | done |
10915 | IFS=$as_save_IFS | |
9a819804 AO |
10916 | |
10917 | fi | |
10918 | fi | |
10919 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10920 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
10921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10922 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 10923 | else |
81ecdfbb RW |
10924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10925 | $as_echo "no" >&6; } | |
9a819804 AO |
10926 | fi |
10927 | ||
81ecdfbb | 10928 | |
9a819804 AO |
10929 | done |
10930 | fi | |
10931 | ||
10932 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10933 | for ncn_progname in as; do |
81ecdfbb RW |
10934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10935 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10936 | if test -x $with_build_time_tools/${ncn_progname}; then |
10937 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10939 | $as_echo "yes" >&6; } | |
2429c060 PB |
10940 | break |
10941 | else | |
81ecdfbb RW |
10942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10943 | $as_echo "no" >&6; } | |
2429c060 PB |
10944 | fi |
10945 | done | |
10946 | fi | |
10947 | ||
10948 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
10949 | for ncn_progname in as; do | |
10950 | if test -n "$ncn_target_tool_prefix"; then | |
10951 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10952 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10954 | $as_echo_n "checking for $ac_word... " >&6; } | |
10955 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10956 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
10957 | else |
10958 | if test -n "$AS_FOR_TARGET"; then | |
10959 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10960 | else | |
c6b750e1 DJ |
10961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10962 | for as_dir in $PATH | |
10963 | do | |
10964 | IFS=$as_save_IFS | |
10965 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10966 | for ac_exec_ext in '' $ac_executable_extensions; do |
10967 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10968 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10969 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10970 | break 2 |
10971 | fi | |
10972 | done | |
81ecdfbb RW |
10973 | done |
10974 | IFS=$as_save_IFS | |
c6b750e1 | 10975 | |
2429c060 PB |
10976 | fi |
10977 | fi | |
c6b750e1 | 10978 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 10979 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
10980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10981 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 10982 | else |
81ecdfbb RW |
10983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10984 | $as_echo "no" >&6; } | |
2429c060 PB |
10985 | fi |
10986 | ||
81ecdfbb | 10987 | |
2429c060 PB |
10988 | fi |
10989 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
10990 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10991 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10993 | $as_echo_n "checking for $ac_word... " >&6; } | |
10994 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10995 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
10996 | else |
10997 | if test -n "$AS_FOR_TARGET"; then | |
10998 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10999 | else | |
c6b750e1 DJ |
11000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11001 | for as_dir in $PATH | |
11002 | do | |
11003 | IFS=$as_save_IFS | |
11004 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11005 | for ac_exec_ext in '' $ac_executable_extensions; do |
11006 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11007 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11008 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11009 | break 2 |
11010 | fi | |
11011 | done | |
81ecdfbb RW |
11012 | done |
11013 | IFS=$as_save_IFS | |
c6b750e1 | 11014 | |
2429c060 PB |
11015 | fi |
11016 | fi | |
c6b750e1 | 11017 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11018 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11020 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11021 | else |
81ecdfbb RW |
11022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11023 | $as_echo "no" >&6; } | |
2429c060 | 11024 | fi |
c6b750e1 | 11025 | |
81ecdfbb | 11026 | |
2429c060 PB |
11027 | fi |
11028 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11029 | done | |
11030 | fi | |
c6b750e1 | 11031 | |
2429c060 PB |
11032 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11033 | set dummy as | |
11034 | if test $build = $target ; then | |
11035 | AS_FOR_TARGET="$2" | |
11036 | else | |
11037 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11038 | fi | |
d3f5afc4 MS |
11039 | else |
11040 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
11041 | fi |
11042 | ||
3a35eeb3 PB |
11043 | else |
11044 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
11045 | fi |
11046 | ||
11047 | ||
11048 | ||
11049 | ||
11050 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11051 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11053 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11054 | if test -x $with_build_time_tools/dlltool; then |
11055 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11056 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
11057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11058 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 11059 | else |
81ecdfbb RW |
11060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11061 | $as_echo "no" >&6; } | |
3a35eeb3 | 11062 | fi |
2429c060 PB |
11063 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11064 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
11065 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11066 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
11067 | fi |
11068 | fi | |
c6b750e1 | 11069 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11070 | # Extract the first word of "dlltool", so it can be a program name with args. |
11071 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
11072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11073 | $as_echo_n "checking for $ac_word... " >&6; } | |
11074 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11075 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11076 | else |
c6b750e1 DJ |
11077 | case $DLLTOOL_FOR_TARGET in |
11078 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11079 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11080 | ;; | |
2429c060 | 11081 | *) |
c6b750e1 DJ |
11082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11083 | for as_dir in $gcc_cv_tool_dirs | |
11084 | do | |
11085 | IFS=$as_save_IFS | |
11086 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11087 | for ac_exec_ext in '' $ac_executable_extensions; do |
11088 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11089 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11090 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11091 | break 2 |
11092 | fi | |
11093 | done | |
81ecdfbb RW |
11094 | done |
11095 | IFS=$as_save_IFS | |
c6b750e1 | 11096 | |
2429c060 PB |
11097 | ;; |
11098 | esac | |
11099 | fi | |
c6b750e1 | 11100 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 11101 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11103 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11104 | else |
81ecdfbb RW |
11105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11106 | $as_echo "no" >&6; } | |
2429c060 PB |
11107 | fi |
11108 | ||
81ecdfbb | 11109 | |
2429c060 PB |
11110 | fi |
11111 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
11112 | |
11113 | ||
11114 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11115 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11116 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11117 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11118 | fi | |
11119 | ||
11120 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11121 | for ncn_progname in dlltool; do | |
11122 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11123 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11125 | $as_echo_n "checking for $ac_word... " >&6; } | |
11126 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11127 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11128 | else |
11129 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11130 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11131 | else | |
11132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11133 | for as_dir in $PATH | |
11134 | do | |
11135 | IFS=$as_save_IFS | |
11136 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11137 | for ac_exec_ext in '' $ac_executable_extensions; do |
11138 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11139 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11140 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11141 | break 2 |
11142 | fi | |
11143 | done | |
81ecdfbb RW |
11144 | done |
11145 | IFS=$as_save_IFS | |
9a819804 AO |
11146 | |
11147 | fi | |
11148 | fi | |
11149 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11150 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
11151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11152 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 11153 | else |
81ecdfbb RW |
11154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11155 | $as_echo "no" >&6; } | |
9a819804 AO |
11156 | fi |
11157 | ||
81ecdfbb | 11158 | |
9a819804 AO |
11159 | done |
11160 | fi | |
11161 | ||
11162 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11163 | for ncn_progname in dlltool; do |
81ecdfbb RW |
11164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11165 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11166 | if test -x $with_build_time_tools/${ncn_progname}; then |
11167 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11169 | $as_echo "yes" >&6; } | |
2429c060 PB |
11170 | break |
11171 | else | |
81ecdfbb RW |
11172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11173 | $as_echo "no" >&6; } | |
2429c060 PB |
11174 | fi |
11175 | done | |
11176 | fi | |
11177 | ||
11178 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11179 | for ncn_progname in dlltool; do | |
11180 | if test -n "$ncn_target_tool_prefix"; then | |
11181 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11182 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11184 | $as_echo_n "checking for $ac_word... " >&6; } | |
11185 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11186 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11187 | else |
11188 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11189 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11190 | else | |
c6b750e1 DJ |
11191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11192 | for as_dir in $PATH | |
11193 | do | |
11194 | IFS=$as_save_IFS | |
11195 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11196 | for ac_exec_ext in '' $ac_executable_extensions; do |
11197 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11198 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11199 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11200 | break 2 |
11201 | fi | |
11202 | done | |
81ecdfbb RW |
11203 | done |
11204 | IFS=$as_save_IFS | |
c6b750e1 | 11205 | |
2429c060 PB |
11206 | fi |
11207 | fi | |
c6b750e1 | 11208 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11209 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11211 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11212 | else |
81ecdfbb RW |
11213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11214 | $as_echo "no" >&6; } | |
2429c060 PB |
11215 | fi |
11216 | ||
81ecdfbb | 11217 | |
2429c060 PB |
11218 | fi |
11219 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11220 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11221 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11223 | $as_echo_n "checking for $ac_word... " >&6; } | |
11224 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11225 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11226 | else |
11227 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11228 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11229 | else | |
c6b750e1 DJ |
11230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11231 | for as_dir in $PATH | |
11232 | do | |
11233 | IFS=$as_save_IFS | |
11234 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11235 | for ac_exec_ext in '' $ac_executable_extensions; do |
11236 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11237 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11238 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11239 | break 2 |
11240 | fi | |
11241 | done | |
81ecdfbb RW |
11242 | done |
11243 | IFS=$as_save_IFS | |
c6b750e1 | 11244 | |
2429c060 PB |
11245 | fi |
11246 | fi | |
c6b750e1 | 11247 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11248 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11250 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11251 | else |
81ecdfbb RW |
11252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11253 | $as_echo "no" >&6; } | |
2429c060 | 11254 | fi |
c6b750e1 | 11255 | |
81ecdfbb | 11256 | |
2429c060 PB |
11257 | fi |
11258 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11259 | done | |
11260 | fi | |
c6b750e1 | 11261 | |
2429c060 PB |
11262 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11263 | set dummy dlltool | |
11264 | if test $build = $target ; then | |
11265 | DLLTOOL_FOR_TARGET="$2" | |
11266 | else | |
11267 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11268 | fi | |
d3f5afc4 MS |
11269 | else |
11270 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
2429c060 PB |
11271 | fi |
11272 | ||
3a35eeb3 PB |
11273 | else |
11274 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
2429c060 PB |
11275 | fi |
11276 | ||
11277 | ||
11278 | ||
11279 | ||
11280 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11281 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11283 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11284 | if test -x $with_build_time_tools/ld; then |
11285 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11286 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
11287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11288 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 11289 | else |
81ecdfbb RW |
11290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11291 | $as_echo "no" >&6; } | |
3a35eeb3 | 11292 | fi |
2429c060 PB |
11293 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11294 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
11295 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11296 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
11297 | fi |
11298 | fi | |
c6b750e1 | 11299 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11300 | # Extract the first word of "ld", so it can be a program name with args. |
11301 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
11302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11303 | $as_echo_n "checking for $ac_word... " >&6; } | |
11304 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11305 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11306 | else |
c6b750e1 DJ |
11307 | case $LD_FOR_TARGET in |
11308 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11309 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11310 | ;; | |
2429c060 | 11311 | *) |
c6b750e1 DJ |
11312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11313 | for as_dir in $gcc_cv_tool_dirs | |
11314 | do | |
11315 | IFS=$as_save_IFS | |
11316 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11317 | for ac_exec_ext in '' $ac_executable_extensions; do |
11318 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11319 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11320 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11321 | break 2 |
11322 | fi | |
11323 | done | |
81ecdfbb RW |
11324 | done |
11325 | IFS=$as_save_IFS | |
c6b750e1 | 11326 | |
2429c060 PB |
11327 | ;; |
11328 | esac | |
11329 | fi | |
c6b750e1 | 11330 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 11331 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11333 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11334 | else |
81ecdfbb RW |
11335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11336 | $as_echo "no" >&6; } | |
2429c060 PB |
11337 | fi |
11338 | ||
81ecdfbb | 11339 | |
2429c060 PB |
11340 | fi |
11341 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
11342 | |
11343 | ||
11344 | if test -n "$LD_FOR_TARGET"; then | |
11345 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11346 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11347 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11348 | fi | |
11349 | ||
11350 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11351 | for ncn_progname in ld; do | |
11352 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11353 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11355 | $as_echo_n "checking for $ac_word... " >&6; } | |
11356 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11357 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11358 | else |
11359 | if test -n "$LD_FOR_TARGET"; then | |
11360 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11361 | else | |
11362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11363 | for as_dir in $PATH | |
11364 | do | |
11365 | IFS=$as_save_IFS | |
11366 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11367 | for ac_exec_ext in '' $ac_executable_extensions; do |
11368 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11369 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11371 | break 2 |
11372 | fi | |
11373 | done | |
81ecdfbb RW |
11374 | done |
11375 | IFS=$as_save_IFS | |
9a819804 AO |
11376 | |
11377 | fi | |
11378 | fi | |
11379 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11380 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
11381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11382 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 11383 | else |
81ecdfbb RW |
11384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11385 | $as_echo "no" >&6; } | |
9a819804 AO |
11386 | fi |
11387 | ||
81ecdfbb | 11388 | |
9a819804 AO |
11389 | done |
11390 | fi | |
11391 | ||
11392 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11393 | for ncn_progname in ld; do |
81ecdfbb RW |
11394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11395 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11396 | if test -x $with_build_time_tools/${ncn_progname}; then |
11397 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11399 | $as_echo "yes" >&6; } | |
2429c060 PB |
11400 | break |
11401 | else | |
81ecdfbb RW |
11402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11403 | $as_echo "no" >&6; } | |
2429c060 PB |
11404 | fi |
11405 | done | |
11406 | fi | |
11407 | ||
11408 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11409 | for ncn_progname in ld; do | |
11410 | if test -n "$ncn_target_tool_prefix"; then | |
11411 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11412 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11414 | $as_echo_n "checking for $ac_word... " >&6; } | |
11415 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11416 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11417 | else |
11418 | if test -n "$LD_FOR_TARGET"; then | |
11419 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11420 | else | |
c6b750e1 DJ |
11421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11422 | for as_dir in $PATH | |
11423 | do | |
11424 | IFS=$as_save_IFS | |
11425 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11426 | for ac_exec_ext in '' $ac_executable_extensions; do |
11427 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11428 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11429 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11430 | break 2 |
11431 | fi | |
11432 | done | |
81ecdfbb RW |
11433 | done |
11434 | IFS=$as_save_IFS | |
c6b750e1 | 11435 | |
2429c060 PB |
11436 | fi |
11437 | fi | |
c6b750e1 | 11438 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11439 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11441 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11442 | else |
81ecdfbb RW |
11443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11444 | $as_echo "no" >&6; } | |
2429c060 PB |
11445 | fi |
11446 | ||
81ecdfbb | 11447 | |
2429c060 PB |
11448 | fi |
11449 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11450 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11451 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11453 | $as_echo_n "checking for $ac_word... " >&6; } | |
11454 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11455 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11456 | else |
11457 | if test -n "$LD_FOR_TARGET"; then | |
11458 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11459 | else | |
c6b750e1 DJ |
11460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11461 | for as_dir in $PATH | |
11462 | do | |
11463 | IFS=$as_save_IFS | |
11464 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11465 | for ac_exec_ext in '' $ac_executable_extensions; do |
11466 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11467 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11468 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11469 | break 2 |
11470 | fi | |
11471 | done | |
81ecdfbb RW |
11472 | done |
11473 | IFS=$as_save_IFS | |
c6b750e1 | 11474 | |
2429c060 PB |
11475 | fi |
11476 | fi | |
c6b750e1 | 11477 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11478 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11480 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11481 | else |
81ecdfbb RW |
11482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11483 | $as_echo "no" >&6; } | |
2429c060 | 11484 | fi |
c6b750e1 | 11485 | |
81ecdfbb | 11486 | |
2429c060 PB |
11487 | fi |
11488 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11489 | done | |
11490 | fi | |
c6b750e1 | 11491 | |
2429c060 PB |
11492 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11493 | set dummy ld | |
11494 | if test $build = $target ; then | |
11495 | LD_FOR_TARGET="$2" | |
11496 | else | |
11497 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11498 | fi | |
d3f5afc4 MS |
11499 | else |
11500 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
11501 | fi |
11502 | ||
3a35eeb3 PB |
11503 | else |
11504 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
11505 | fi |
11506 | ||
11507 | ||
11508 | ||
11509 | ||
11510 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11511 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11513 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11514 | if test -x $with_build_time_tools/lipo; then |
11515 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11516 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
11517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11518 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 11519 | else |
81ecdfbb RW |
11520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11521 | $as_echo "no" >&6; } | |
3a35eeb3 | 11522 | fi |
2429c060 PB |
11523 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11524 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
11525 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11526 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
11527 | fi |
11528 | fi | |
9a819804 AO |
11529 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11530 | # Extract the first word of "lipo", so it can be a program name with args. | |
11531 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
11532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11533 | $as_echo_n "checking for $ac_word... " >&6; } | |
11534 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11535 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11536 | else |
11537 | case $LIPO_FOR_TARGET in | |
11538 | [\\/]* | ?:[\\/]*) | |
11539 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11540 | ;; | |
11541 | *) | |
11542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11543 | for as_dir in $gcc_cv_tool_dirs | |
11544 | do | |
11545 | IFS=$as_save_IFS | |
11546 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11547 | for ac_exec_ext in '' $ac_executable_extensions; do |
11548 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11549 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11550 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11551 | break 2 |
11552 | fi | |
11553 | done | |
81ecdfbb RW |
11554 | done |
11555 | IFS=$as_save_IFS | |
9a819804 AO |
11556 | |
11557 | ;; | |
11558 | esac | |
11559 | fi | |
11560 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 11561 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11563 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 11564 | else |
81ecdfbb RW |
11565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11566 | $as_echo "no" >&6; } | |
9a819804 AO |
11567 | fi |
11568 | ||
81ecdfbb | 11569 | |
9a819804 AO |
11570 | fi |
11571 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11572 | ||
11573 | ||
11574 | if test -n "$LIPO_FOR_TARGET"; then | |
11575 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11576 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11577 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11578 | fi | |
11579 | ||
11580 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11581 | for ncn_progname in lipo; do | |
11582 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11583 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11585 | $as_echo_n "checking for $ac_word... " >&6; } | |
11586 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11587 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11588 | else |
9a819804 AO |
11589 | if test -n "$LIPO_FOR_TARGET"; then |
11590 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11591 | else | |
11592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11593 | for as_dir in $PATH | |
c6b750e1 DJ |
11594 | do |
11595 | IFS=$as_save_IFS | |
11596 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11597 | for ac_exec_ext in '' $ac_executable_extensions; do |
11598 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11599 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11600 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11601 | break 2 |
11602 | fi | |
11603 | done | |
81ecdfbb RW |
11604 | done |
11605 | IFS=$as_save_IFS | |
c6b750e1 | 11606 | |
2429c060 | 11607 | fi |
9a819804 AO |
11608 | fi |
11609 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 11610 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11612 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11613 | else |
81ecdfbb RW |
11614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11615 | $as_echo "no" >&6; } | |
2429c060 PB |
11616 | fi |
11617 | ||
81ecdfbb | 11618 | |
9a819804 | 11619 | done |
2429c060 | 11620 | fi |
9a819804 AO |
11621 | |
11622 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11623 | for ncn_progname in lipo; do |
81ecdfbb RW |
11624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11625 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11626 | if test -x $with_build_time_tools/${ncn_progname}; then |
11627 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11629 | $as_echo "yes" >&6; } | |
2429c060 PB |
11630 | break |
11631 | else | |
81ecdfbb RW |
11632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11633 | $as_echo "no" >&6; } | |
2429c060 PB |
11634 | fi |
11635 | done | |
11636 | fi | |
11637 | ||
11638 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11639 | for ncn_progname in lipo; do | |
11640 | if test -n "$ncn_target_tool_prefix"; then | |
11641 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11642 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11644 | $as_echo_n "checking for $ac_word... " >&6; } | |
11645 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11646 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11647 | else |
11648 | if test -n "$LIPO_FOR_TARGET"; then | |
11649 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11650 | else | |
c6b750e1 DJ |
11651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11652 | for as_dir in $PATH | |
11653 | do | |
11654 | IFS=$as_save_IFS | |
11655 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11656 | for ac_exec_ext in '' $ac_executable_extensions; do |
11657 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11658 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11660 | break 2 |
11661 | fi | |
11662 | done | |
81ecdfbb RW |
11663 | done |
11664 | IFS=$as_save_IFS | |
c6b750e1 | 11665 | |
2429c060 PB |
11666 | fi |
11667 | fi | |
c6b750e1 | 11668 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11669 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11671 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11672 | else |
81ecdfbb RW |
11673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11674 | $as_echo "no" >&6; } | |
2429c060 PB |
11675 | fi |
11676 | ||
81ecdfbb | 11677 | |
2429c060 PB |
11678 | fi |
11679 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11680 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11681 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11683 | $as_echo_n "checking for $ac_word... " >&6; } | |
11684 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11685 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11686 | else |
11687 | if test -n "$LIPO_FOR_TARGET"; then | |
11688 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11689 | else | |
c6b750e1 DJ |
11690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11691 | for as_dir in $PATH | |
11692 | do | |
11693 | IFS=$as_save_IFS | |
11694 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11695 | for ac_exec_ext in '' $ac_executable_extensions; do |
11696 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11697 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11699 | break 2 |
11700 | fi | |
11701 | done | |
81ecdfbb RW |
11702 | done |
11703 | IFS=$as_save_IFS | |
c6b750e1 | 11704 | |
2429c060 PB |
11705 | fi |
11706 | fi | |
c6b750e1 | 11707 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11708 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11710 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11711 | else |
81ecdfbb RW |
11712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11713 | $as_echo "no" >&6; } | |
2429c060 | 11714 | fi |
c6b750e1 | 11715 | |
81ecdfbb | 11716 | |
2429c060 PB |
11717 | fi |
11718 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
11719 | done | |
11720 | fi | |
c6b750e1 | 11721 | |
2429c060 PB |
11722 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
11723 | set dummy lipo | |
11724 | if test $build = $target ; then | |
11725 | LIPO_FOR_TARGET="$2" | |
11726 | else | |
11727 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11728 | fi | |
d3f5afc4 MS |
11729 | else |
11730 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
11731 | fi |
11732 | ||
3a35eeb3 PB |
11733 | else |
11734 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
11735 | fi |
11736 | ||
11737 | ||
11738 | ||
11739 | ||
11740 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11741 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
11743 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11744 | if test -x $with_build_time_tools/nm; then |
11745 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
11746 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
11747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
11748 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 11749 | else |
81ecdfbb RW |
11750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11751 | $as_echo "no" >&6; } | |
3a35eeb3 | 11752 | fi |
2429c060 PB |
11753 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11754 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
11755 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
11756 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
11757 | fi |
11758 | fi | |
c6b750e1 | 11759 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11760 | # Extract the first word of "nm", so it can be a program name with args. |
11761 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
11762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11763 | $as_echo_n "checking for $ac_word... " >&6; } | |
11764 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
11765 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11766 | else |
c6b750e1 DJ |
11767 | case $NM_FOR_TARGET in |
11768 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11769 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
11770 | ;; | |
2429c060 | 11771 | *) |
c6b750e1 DJ |
11772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11773 | for as_dir in $gcc_cv_tool_dirs | |
11774 | do | |
11775 | IFS=$as_save_IFS | |
11776 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11777 | for ac_exec_ext in '' $ac_executable_extensions; do |
11778 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11779 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11780 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11781 | break 2 |
11782 | fi | |
11783 | done | |
81ecdfbb RW |
11784 | done |
11785 | IFS=$as_save_IFS | |
c6b750e1 | 11786 | |
2429c060 PB |
11787 | ;; |
11788 | esac | |
11789 | fi | |
c6b750e1 | 11790 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 11791 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
11792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11793 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 11794 | else |
81ecdfbb RW |
11795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11796 | $as_echo "no" >&6; } | |
2429c060 PB |
11797 | fi |
11798 | ||
81ecdfbb | 11799 | |
2429c060 PB |
11800 | fi |
11801 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
11802 | |
11803 | ||
11804 | if test -n "$NM_FOR_TARGET"; then | |
11805 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
11806 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11807 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11808 | fi | |
11809 | ||
11810 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11811 | for ncn_progname in nm; do | |
11812 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11813 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11815 | $as_echo_n "checking for $ac_word... " >&6; } | |
11816 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11817 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11818 | else |
11819 | if test -n "$NM_FOR_TARGET"; then | |
11820 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
11821 | else | |
11822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11823 | for as_dir in $PATH | |
11824 | do | |
11825 | IFS=$as_save_IFS | |
11826 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11827 | for ac_exec_ext in '' $ac_executable_extensions; do |
11828 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11829 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11830 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11831 | break 2 |
11832 | fi | |
11833 | done | |
81ecdfbb RW |
11834 | done |
11835 | IFS=$as_save_IFS | |
9a819804 AO |
11836 | |
11837 | fi | |
11838 | fi | |
11839 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11840 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
11841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11842 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 11843 | else |
81ecdfbb RW |
11844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11845 | $as_echo "no" >&6; } | |
9a819804 AO |
11846 | fi |
11847 | ||
81ecdfbb | 11848 | |
9a819804 AO |
11849 | done |
11850 | fi | |
11851 | ||
11852 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11853 | for ncn_progname in nm; do |
81ecdfbb RW |
11854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11855 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11856 | if test -x $with_build_time_tools/${ncn_progname}; then |
11857 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11859 | $as_echo "yes" >&6; } | |
2429c060 PB |
11860 | break |
11861 | else | |
81ecdfbb RW |
11862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11863 | $as_echo "no" >&6; } | |
2429c060 PB |
11864 | fi |
11865 | done | |
11866 | fi | |
11867 | ||
11868 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
11869 | for ncn_progname in nm; do | |
11870 | if test -n "$ncn_target_tool_prefix"; then | |
11871 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 11872 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11874 | $as_echo_n "checking for $ac_word... " >&6; } | |
11875 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11876 | $as_echo_n "(cached) " >&6 | |
859789af | 11877 | else |
55db4b87 PB |
11878 | if test -n "$NM_FOR_TARGET"; then |
11879 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 11880 | else |
c6b750e1 DJ |
11881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11882 | for as_dir in $PATH | |
11883 | do | |
11884 | IFS=$as_save_IFS | |
11885 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11886 | for ac_exec_ext in '' $ac_executable_extensions; do |
11887 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11888 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11889 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11890 | break 2 |
11891 | fi | |
11892 | done | |
81ecdfbb RW |
11893 | done |
11894 | IFS=$as_save_IFS | |
c6b750e1 | 11895 | |
859789af AC |
11896 | fi |
11897 | fi | |
c6b750e1 | 11898 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 11899 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
11900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11901 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 11902 | else |
81ecdfbb RW |
11903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11904 | $as_echo "no" >&6; } | |
859789af AC |
11905 | fi |
11906 | ||
81ecdfbb | 11907 | |
2429c060 PB |
11908 | fi |
11909 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
11910 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 11911 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11913 | $as_echo_n "checking for $ac_word... " >&6; } | |
11914 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11915 | $as_echo_n "(cached) " >&6 | |
859789af | 11916 | else |
05cbd757 PB |
11917 | if test -n "$NM_FOR_TARGET"; then |
11918 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 11919 | else |
c6b750e1 DJ |
11920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11921 | for as_dir in $PATH | |
11922 | do | |
11923 | IFS=$as_save_IFS | |
11924 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11925 | for ac_exec_ext in '' $ac_executable_extensions; do |
11926 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11927 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11928 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11929 | break 2 |
11930 | fi | |
11931 | done | |
81ecdfbb RW |
11932 | done |
11933 | IFS=$as_save_IFS | |
c6b750e1 | 11934 | |
859789af AC |
11935 | fi |
11936 | fi | |
c6b750e1 | 11937 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 11938 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
11939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11940 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 11941 | else |
81ecdfbb RW |
11942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11943 | $as_echo "no" >&6; } | |
859789af | 11944 | fi |
c6b750e1 | 11945 | |
81ecdfbb | 11946 | |
2429c060 PB |
11947 | fi |
11948 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
11949 | done | |
11950 | fi | |
c6b750e1 | 11951 | |
05cbd757 PB |
11952 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
11953 | set dummy nm | |
11954 | if test $build = $target ; then | |
11955 | NM_FOR_TARGET="$2" | |
859789af | 11956 | else |
05cbd757 | 11957 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 11958 | fi |
d3f5afc4 MS |
11959 | else |
11960 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
11961 | fi |
11962 | ||
3a35eeb3 PB |
11963 | else |
11964 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
11965 | fi |
11966 | ||
11967 | ||
11968 | ||
11969 | ||
11970 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
11971 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
11973 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11974 | if test -x $with_build_time_tools/objdump; then |
11975 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
11976 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
11977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
11978 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 11979 | else |
81ecdfbb RW |
11980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11981 | $as_echo "no" >&6; } | |
3a35eeb3 | 11982 | fi |
2429c060 PB |
11983 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11984 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
11985 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
11986 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
11987 | fi |
11988 | fi | |
c6b750e1 | 11989 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11990 | # Extract the first word of "objdump", so it can be a program name with args. |
11991 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
11992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11993 | $as_echo_n "checking for $ac_word... " >&6; } | |
11994 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
11995 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11996 | else |
c6b750e1 DJ |
11997 | case $OBJDUMP_FOR_TARGET in |
11998 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11999 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12000 | ;; | |
2429c060 | 12001 | *) |
c6b750e1 DJ |
12002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12003 | for as_dir in $gcc_cv_tool_dirs | |
12004 | do | |
12005 | IFS=$as_save_IFS | |
12006 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12007 | for ac_exec_ext in '' $ac_executable_extensions; do |
12008 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12009 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12010 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12011 | break 2 |
12012 | fi | |
12013 | done | |
81ecdfbb RW |
12014 | done |
12015 | IFS=$as_save_IFS | |
c6b750e1 | 12016 | |
2429c060 PB |
12017 | ;; |
12018 | esac | |
12019 | fi | |
c6b750e1 | 12020 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 12021 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12023 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 12024 | else |
81ecdfbb RW |
12025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12026 | $as_echo "no" >&6; } | |
2429c060 PB |
12027 | fi |
12028 | ||
81ecdfbb | 12029 | |
2429c060 PB |
12030 | fi |
12031 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
12032 | |
12033 | ||
12034 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12035 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12036 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12037 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12038 | fi | |
12039 | ||
12040 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12041 | for ncn_progname in objdump; do | |
12042 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12043 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12045 | $as_echo_n "checking for $ac_word... " >&6; } | |
12046 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12047 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12048 | else |
12049 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12050 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12051 | else | |
12052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12053 | for as_dir in $PATH | |
12054 | do | |
12055 | IFS=$as_save_IFS | |
12056 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12057 | for ac_exec_ext in '' $ac_executable_extensions; do |
12058 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12059 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12061 | break 2 |
12062 | fi | |
12063 | done | |
81ecdfbb RW |
12064 | done |
12065 | IFS=$as_save_IFS | |
9a819804 AO |
12066 | |
12067 | fi | |
12068 | fi | |
12069 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12070 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
12071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12072 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 12073 | else |
81ecdfbb RW |
12074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12075 | $as_echo "no" >&6; } | |
9a819804 AO |
12076 | fi |
12077 | ||
81ecdfbb | 12078 | |
9a819804 AO |
12079 | done |
12080 | fi | |
12081 | ||
12082 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12083 | for ncn_progname in objdump; do |
81ecdfbb RW |
12084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12085 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12086 | if test -x $with_build_time_tools/${ncn_progname}; then |
12087 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12089 | $as_echo "yes" >&6; } | |
2429c060 PB |
12090 | break |
12091 | else | |
81ecdfbb RW |
12092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12093 | $as_echo "no" >&6; } | |
2429c060 PB |
12094 | fi |
12095 | done | |
12096 | fi | |
12097 | ||
12098 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12099 | for ncn_progname in objdump; do | |
12100 | if test -n "$ncn_target_tool_prefix"; then | |
12101 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12102 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12104 | $as_echo_n "checking for $ac_word... " >&6; } | |
12105 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12106 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12107 | else |
12108 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12109 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12110 | else | |
c6b750e1 DJ |
12111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12112 | for as_dir in $PATH | |
12113 | do | |
12114 | IFS=$as_save_IFS | |
12115 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12116 | for ac_exec_ext in '' $ac_executable_extensions; do |
12117 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12118 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12119 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12120 | break 2 |
12121 | fi | |
12122 | done | |
81ecdfbb RW |
12123 | done |
12124 | IFS=$as_save_IFS | |
c6b750e1 | 12125 | |
5ae72758 DJ |
12126 | fi |
12127 | fi | |
c6b750e1 | 12128 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12129 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12131 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12132 | else |
81ecdfbb RW |
12133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12134 | $as_echo "no" >&6; } | |
5ae72758 DJ |
12135 | fi |
12136 | ||
81ecdfbb | 12137 | |
2429c060 PB |
12138 | fi |
12139 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12140 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12141 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12143 | $as_echo_n "checking for $ac_word... " >&6; } | |
12144 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12145 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12146 | else |
12147 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12148 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12149 | else | |
c6b750e1 DJ |
12150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12151 | for as_dir in $PATH | |
12152 | do | |
12153 | IFS=$as_save_IFS | |
12154 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12155 | for ac_exec_ext in '' $ac_executable_extensions; do |
12156 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12157 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12158 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12159 | break 2 |
12160 | fi | |
12161 | done | |
81ecdfbb RW |
12162 | done |
12163 | IFS=$as_save_IFS | |
c6b750e1 | 12164 | |
5ae72758 DJ |
12165 | fi |
12166 | fi | |
c6b750e1 | 12167 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12168 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12170 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12171 | else |
81ecdfbb RW |
12172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12173 | $as_echo "no" >&6; } | |
5ae72758 | 12174 | fi |
c6b750e1 | 12175 | |
81ecdfbb | 12176 | |
2429c060 PB |
12177 | fi |
12178 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12179 | done | |
12180 | fi | |
c6b750e1 | 12181 | |
5ae72758 DJ |
12182 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12183 | set dummy objdump | |
12184 | if test $build = $target ; then | |
12185 | OBJDUMP_FOR_TARGET="$2" | |
12186 | else | |
12187 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12188 | fi | |
d3f5afc4 MS |
12189 | else |
12190 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
12191 | fi |
12192 | ||
3a35eeb3 PB |
12193 | else |
12194 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
12195 | fi |
12196 | ||
12197 | ||
12198 | ||
12199 | ||
12200 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12201 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12203 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12204 | if test -x $with_build_time_tools/ranlib; then |
12205 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12206 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
12207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12208 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 12209 | else |
81ecdfbb RW |
12210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12211 | $as_echo "no" >&6; } | |
3a35eeb3 | 12212 | fi |
2429c060 PB |
12213 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12214 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
12215 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12216 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
12217 | fi |
12218 | fi | |
c6b750e1 | 12219 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12220 | # Extract the first word of "ranlib", so it can be a program name with args. |
12221 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
12222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12223 | $as_echo_n "checking for $ac_word... " >&6; } | |
12224 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12225 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12226 | else |
c6b750e1 DJ |
12227 | case $RANLIB_FOR_TARGET in |
12228 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12229 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12230 | ;; | |
2429c060 | 12231 | *) |
c6b750e1 DJ |
12232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12233 | for as_dir in $gcc_cv_tool_dirs | |
12234 | do | |
12235 | IFS=$as_save_IFS | |
12236 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12237 | for ac_exec_ext in '' $ac_executable_extensions; do |
12238 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12239 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12240 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12241 | break 2 |
12242 | fi | |
12243 | done | |
81ecdfbb RW |
12244 | done |
12245 | IFS=$as_save_IFS | |
c6b750e1 | 12246 | |
2429c060 PB |
12247 | ;; |
12248 | esac | |
12249 | fi | |
c6b750e1 | 12250 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 12251 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12253 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 12254 | else |
81ecdfbb RW |
12255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12256 | $as_echo "no" >&6; } | |
2429c060 PB |
12257 | fi |
12258 | ||
81ecdfbb | 12259 | |
2429c060 PB |
12260 | fi |
12261 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
12262 | |
12263 | ||
12264 | if test -n "$RANLIB_FOR_TARGET"; then | |
12265 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12266 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12267 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12268 | fi | |
12269 | ||
12270 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12271 | for ncn_progname in ranlib; do | |
12272 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12273 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12275 | $as_echo_n "checking for $ac_word... " >&6; } | |
12276 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12277 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12278 | else |
12279 | if test -n "$RANLIB_FOR_TARGET"; then | |
12280 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12281 | else | |
12282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12283 | for as_dir in $PATH | |
12284 | do | |
12285 | IFS=$as_save_IFS | |
12286 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12287 | for ac_exec_ext in '' $ac_executable_extensions; do |
12288 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12289 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12290 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12291 | break 2 |
12292 | fi | |
12293 | done | |
81ecdfbb RW |
12294 | done |
12295 | IFS=$as_save_IFS | |
9a819804 AO |
12296 | |
12297 | fi | |
12298 | fi | |
12299 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12300 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
12301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12302 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 12303 | else |
81ecdfbb RW |
12304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12305 | $as_echo "no" >&6; } | |
9a819804 AO |
12306 | fi |
12307 | ||
81ecdfbb | 12308 | |
9a819804 AO |
12309 | done |
12310 | fi | |
12311 | ||
12312 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12313 | for ncn_progname in ranlib; do |
81ecdfbb RW |
12314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12315 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12316 | if test -x $with_build_time_tools/${ncn_progname}; then |
12317 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12319 | $as_echo "yes" >&6; } | |
2429c060 PB |
12320 | break |
12321 | else | |
81ecdfbb RW |
12322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12323 | $as_echo "no" >&6; } | |
2429c060 PB |
12324 | fi |
12325 | done | |
12326 | fi | |
12327 | ||
12328 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12329 | for ncn_progname in ranlib; do | |
12330 | if test -n "$ncn_target_tool_prefix"; then | |
12331 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12332 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12334 | $as_echo_n "checking for $ac_word... " >&6; } | |
12335 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12336 | $as_echo_n "(cached) " >&6 | |
859789af | 12337 | else |
55db4b87 PB |
12338 | if test -n "$RANLIB_FOR_TARGET"; then |
12339 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12340 | else |
c6b750e1 DJ |
12341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12342 | for as_dir in $PATH | |
12343 | do | |
12344 | IFS=$as_save_IFS | |
12345 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12346 | for ac_exec_ext in '' $ac_executable_extensions; do |
12347 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12348 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12349 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12350 | break 2 |
12351 | fi | |
12352 | done | |
81ecdfbb RW |
12353 | done |
12354 | IFS=$as_save_IFS | |
c6b750e1 | 12355 | |
859789af AC |
12356 | fi |
12357 | fi | |
c6b750e1 | 12358 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 12359 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12361 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12362 | else |
81ecdfbb RW |
12363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12364 | $as_echo "no" >&6; } | |
859789af AC |
12365 | fi |
12366 | ||
81ecdfbb | 12367 | |
2429c060 PB |
12368 | fi |
12369 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12370 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12371 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12373 | $as_echo_n "checking for $ac_word... " >&6; } | |
12374 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12375 | $as_echo_n "(cached) " >&6 | |
859789af | 12376 | else |
05cbd757 PB |
12377 | if test -n "$RANLIB_FOR_TARGET"; then |
12378 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12379 | else |
c6b750e1 DJ |
12380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12381 | for as_dir in $PATH | |
12382 | do | |
12383 | IFS=$as_save_IFS | |
12384 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12385 | for ac_exec_ext in '' $ac_executable_extensions; do |
12386 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12387 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12388 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12389 | break 2 |
12390 | fi | |
12391 | done | |
81ecdfbb RW |
12392 | done |
12393 | IFS=$as_save_IFS | |
c6b750e1 | 12394 | |
859789af AC |
12395 | fi |
12396 | fi | |
c6b750e1 | 12397 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 12398 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12400 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12401 | else |
81ecdfbb RW |
12402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12403 | $as_echo "no" >&6; } | |
859789af | 12404 | fi |
c6b750e1 | 12405 | |
81ecdfbb | 12406 | |
2429c060 PB |
12407 | fi |
12408 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12409 | done | |
12410 | fi | |
c6b750e1 | 12411 | |
2429c060 PB |
12412 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12413 | set dummy ranlib | |
12414 | if test $build = $target ; then | |
12415 | RANLIB_FOR_TARGET="$2" | |
12416 | else | |
12417 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 12418 | fi |
d3f5afc4 MS |
12419 | else |
12420 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 12421 | fi |
05cbd757 | 12422 | |
3a35eeb3 PB |
12423 | else |
12424 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
12425 | fi |
12426 | ||
2429c060 PB |
12427 | |
12428 | ||
12429 | ||
12430 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
12431 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
12433 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12434 | if test -x $with_build_time_tools/strip; then |
12435 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
12436 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
12437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
12438 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12439 | else |
81ecdfbb RW |
12440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12441 | $as_echo "no" >&6; } | |
3a35eeb3 | 12442 | fi |
2429c060 PB |
12443 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12444 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
12445 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
12446 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
12447 | fi |
12448 | fi | |
c6b750e1 | 12449 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12450 | # Extract the first word of "strip", so it can be a program name with args. |
12451 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
12452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12453 | $as_echo_n "checking for $ac_word... " >&6; } | |
12454 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
12455 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12456 | else |
c6b750e1 DJ |
12457 | case $STRIP_FOR_TARGET in |
12458 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12459 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
12460 | ;; | |
2429c060 | 12461 | *) |
c6b750e1 DJ |
12462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12463 | for as_dir in $gcc_cv_tool_dirs | |
12464 | do | |
12465 | IFS=$as_save_IFS | |
12466 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12467 | for ac_exec_ext in '' $ac_executable_extensions; do |
12468 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12469 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12470 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12471 | break 2 |
12472 | fi | |
12473 | done | |
81ecdfbb RW |
12474 | done |
12475 | IFS=$as_save_IFS | |
c6b750e1 | 12476 | |
2429c060 PB |
12477 | ;; |
12478 | esac | |
12479 | fi | |
c6b750e1 | 12480 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 12481 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
12482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12483 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 12484 | else |
81ecdfbb RW |
12485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12486 | $as_echo "no" >&6; } | |
2429c060 PB |
12487 | fi |
12488 | ||
81ecdfbb | 12489 | |
2429c060 PB |
12490 | fi |
12491 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
12492 | |
12493 | ||
12494 | if test -n "$STRIP_FOR_TARGET"; then | |
12495 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
12496 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12497 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12498 | fi | |
12499 | ||
12500 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12501 | for ncn_progname in strip; do | |
12502 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12503 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12505 | $as_echo_n "checking for $ac_word... " >&6; } | |
12506 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12507 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12508 | else |
12509 | if test -n "$STRIP_FOR_TARGET"; then | |
12510 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12511 | else | |
12512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12513 | for as_dir in $PATH | |
12514 | do | |
12515 | IFS=$as_save_IFS | |
12516 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12517 | for ac_exec_ext in '' $ac_executable_extensions; do |
12518 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12519 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12520 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12521 | break 2 |
12522 | fi | |
12523 | done | |
81ecdfbb RW |
12524 | done |
12525 | IFS=$as_save_IFS | |
9a819804 AO |
12526 | |
12527 | fi | |
12528 | fi | |
12529 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12530 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
12531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12532 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 12533 | else |
81ecdfbb RW |
12534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12535 | $as_echo "no" >&6; } | |
9a819804 AO |
12536 | fi |
12537 | ||
81ecdfbb | 12538 | |
9a819804 AO |
12539 | done |
12540 | fi | |
12541 | ||
12542 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12543 | for ncn_progname in strip; do |
81ecdfbb RW |
12544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12545 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12546 | if test -x $with_build_time_tools/${ncn_progname}; then |
12547 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12549 | $as_echo "yes" >&6; } | |
2429c060 PB |
12550 | break |
12551 | else | |
81ecdfbb RW |
12552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12553 | $as_echo "no" >&6; } | |
2429c060 PB |
12554 | fi |
12555 | done | |
12556 | fi | |
12557 | ||
12558 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12559 | for ncn_progname in strip; do | |
12560 | if test -n "$ncn_target_tool_prefix"; then | |
12561 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12562 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12564 | $as_echo_n "checking for $ac_word... " >&6; } | |
12565 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12566 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
12567 | else |
12568 | if test -n "$STRIP_FOR_TARGET"; then | |
12569 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
12570 | else |
12571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12572 | for as_dir in $PATH | |
12573 | do | |
12574 | IFS=$as_save_IFS | |
12575 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12576 | for ac_exec_ext in '' $ac_executable_extensions; do |
12577 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12578 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12579 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12580 | break 2 |
12581 | fi | |
12582 | done | |
81ecdfbb RW |
12583 | done |
12584 | IFS=$as_save_IFS | |
c6b750e1 | 12585 | |
7e0f7140 GK |
12586 | fi |
12587 | fi | |
c6b750e1 | 12588 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 12589 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
12590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12591 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 12592 | else |
81ecdfbb RW |
12593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12594 | $as_echo "no" >&6; } | |
7e0f7140 GK |
12595 | fi |
12596 | ||
81ecdfbb | 12597 | |
2429c060 PB |
12598 | fi |
12599 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
12600 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12601 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12603 | $as_echo_n "checking for $ac_word... " >&6; } | |
12604 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12605 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
12606 | else |
12607 | if test -n "$STRIP_FOR_TARGET"; then | |
12608 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12609 | else | |
c6b750e1 DJ |
12610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12611 | for as_dir in $PATH | |
12612 | do | |
12613 | IFS=$as_save_IFS | |
12614 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12615 | for ac_exec_ext in '' $ac_executable_extensions; do |
12616 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12617 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12618 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12619 | break 2 |
12620 | fi | |
12621 | done | |
81ecdfbb RW |
12622 | done |
12623 | IFS=$as_save_IFS | |
c6b750e1 | 12624 | |
7e0f7140 GK |
12625 | fi |
12626 | fi | |
c6b750e1 | 12627 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 12628 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
12629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12630 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 12631 | else |
81ecdfbb RW |
12632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12633 | $as_echo "no" >&6; } | |
7e0f7140 | 12634 | fi |
c6b750e1 | 12635 | |
81ecdfbb | 12636 | |
2429c060 PB |
12637 | fi |
12638 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
12639 | done | |
12640 | fi | |
c6b750e1 | 12641 | |
7e0f7140 GK |
12642 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
12643 | set dummy strip | |
12644 | if test $build = $target ; then | |
12645 | STRIP_FOR_TARGET="$2" | |
12646 | else | |
12647 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12648 | fi | |
d3f5afc4 MS |
12649 | else |
12650 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
12651 | fi |
12652 | ||
3a35eeb3 PB |
12653 | else |
12654 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
12655 | fi |
12656 | ||
12657 | ||
12658 | ||
12659 | ||
12660 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
12661 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
12663 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12664 | if test -x $with_build_time_tools/windres; then |
12665 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
12666 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
12667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
12668 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 12669 | else |
81ecdfbb RW |
12670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12671 | $as_echo "no" >&6; } | |
3a35eeb3 | 12672 | fi |
2429c060 PB |
12673 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12674 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
12675 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
12676 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
12677 | fi |
12678 | fi | |
c6b750e1 | 12679 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12680 | # Extract the first word of "windres", so it can be a program name with args. |
12681 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
12682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12683 | $as_echo_n "checking for $ac_word... " >&6; } | |
12684 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
12685 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12686 | else |
c6b750e1 DJ |
12687 | case $WINDRES_FOR_TARGET in |
12688 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12689 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
12690 | ;; | |
2429c060 | 12691 | *) |
c6b750e1 DJ |
12692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12693 | for as_dir in $gcc_cv_tool_dirs | |
12694 | do | |
12695 | IFS=$as_save_IFS | |
12696 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12697 | for ac_exec_ext in '' $ac_executable_extensions; do |
12698 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12699 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12701 | break 2 |
12702 | fi | |
12703 | done | |
81ecdfbb RW |
12704 | done |
12705 | IFS=$as_save_IFS | |
c6b750e1 | 12706 | |
2429c060 PB |
12707 | ;; |
12708 | esac | |
12709 | fi | |
c6b750e1 | 12710 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 12711 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
12712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12713 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 12714 | else |
81ecdfbb RW |
12715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12716 | $as_echo "no" >&6; } | |
2429c060 PB |
12717 | fi |
12718 | ||
81ecdfbb | 12719 | |
2429c060 PB |
12720 | fi |
12721 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
12722 | |
12723 | ||
12724 | if test -n "$WINDRES_FOR_TARGET"; then | |
12725 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
12726 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12727 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
12728 | fi | |
12729 | ||
12730 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12731 | for ncn_progname in windres; do | |
12732 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12733 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12735 | $as_echo_n "checking for $ac_word... " >&6; } | |
12736 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12737 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12738 | else |
12739 | if test -n "$WINDRES_FOR_TARGET"; then | |
12740 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
12741 | else | |
12742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12743 | for as_dir in $PATH | |
12744 | do | |
12745 | IFS=$as_save_IFS | |
12746 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12747 | for ac_exec_ext in '' $ac_executable_extensions; do |
12748 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12749 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12751 | break 2 |
12752 | fi | |
12753 | done | |
81ecdfbb RW |
12754 | done |
12755 | IFS=$as_save_IFS | |
9a819804 AO |
12756 | |
12757 | fi | |
12758 | fi | |
12759 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
12760 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
12761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12762 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 12763 | else |
81ecdfbb RW |
12764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12765 | $as_echo "no" >&6; } | |
9a819804 AO |
12766 | fi |
12767 | ||
81ecdfbb | 12768 | |
9a819804 AO |
12769 | done |
12770 | fi | |
12771 | ||
12772 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12773 | for ncn_progname in windres; do |
81ecdfbb RW |
12774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12775 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12776 | if test -x $with_build_time_tools/${ncn_progname}; then |
12777 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12779 | $as_echo "yes" >&6; } | |
2429c060 PB |
12780 | break |
12781 | else | |
81ecdfbb RW |
12782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12783 | $as_echo "no" >&6; } | |
2429c060 PB |
12784 | fi |
12785 | done | |
12786 | fi | |
12787 | ||
12788 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12789 | for ncn_progname in windres; do | |
12790 | if test -n "$ncn_target_tool_prefix"; then | |
12791 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12792 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12794 | $as_echo_n "checking for $ac_word... " >&6; } | |
12795 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12796 | $as_echo_n "(cached) " >&6 | |
859789af | 12797 | else |
55db4b87 PB |
12798 | if test -n "$WINDRES_FOR_TARGET"; then |
12799 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 12800 | else |
c6b750e1 DJ |
12801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12802 | for as_dir in $PATH | |
12803 | do | |
12804 | IFS=$as_save_IFS | |
12805 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12806 | for ac_exec_ext in '' $ac_executable_extensions; do |
12807 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12808 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12809 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12810 | break 2 |
12811 | fi | |
12812 | done | |
81ecdfbb RW |
12813 | done |
12814 | IFS=$as_save_IFS | |
c6b750e1 | 12815 | |
859789af AC |
12816 | fi |
12817 | fi | |
c6b750e1 | 12818 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 12819 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
12820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12821 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 12822 | else |
81ecdfbb RW |
12823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12824 | $as_echo "no" >&6; } | |
859789af AC |
12825 | fi |
12826 | ||
81ecdfbb | 12827 | |
2429c060 PB |
12828 | fi |
12829 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
12830 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12831 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12833 | $as_echo_n "checking for $ac_word... " >&6; } | |
12834 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12835 | $as_echo_n "(cached) " >&6 | |
859789af | 12836 | else |
05cbd757 PB |
12837 | if test -n "$WINDRES_FOR_TARGET"; then |
12838 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 12839 | else |
c6b750e1 DJ |
12840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12841 | for as_dir in $PATH | |
12842 | do | |
12843 | IFS=$as_save_IFS | |
12844 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12845 | for ac_exec_ext in '' $ac_executable_extensions; do |
12846 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12847 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12848 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12849 | break 2 |
12850 | fi | |
12851 | done | |
81ecdfbb RW |
12852 | done |
12853 | IFS=$as_save_IFS | |
c6b750e1 | 12854 | |
859789af AC |
12855 | fi |
12856 | fi | |
c6b750e1 | 12857 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 12858 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
12859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12860 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 12861 | else |
81ecdfbb RW |
12862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12863 | $as_echo "no" >&6; } | |
859789af | 12864 | fi |
c6b750e1 | 12865 | |
81ecdfbb | 12866 | |
2429c060 PB |
12867 | fi |
12868 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
12869 | done | |
12870 | fi | |
c6b750e1 | 12871 | |
05cbd757 PB |
12872 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
12873 | set dummy windres | |
12874 | if test $build = $target ; then | |
12875 | WINDRES_FOR_TARGET="$2" | |
859789af | 12876 | else |
05cbd757 | 12877 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 12878 | fi |
d3f5afc4 MS |
12879 | else |
12880 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
12881 | fi |
12882 | ||
3a35eeb3 PB |
12883 | else |
12884 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
12885 | fi |
12886 | ||
852e5f18 | 12887 | |
0c24b341 NC |
12888 | |
12889 | ||
12890 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
12891 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
12893 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
12894 | if test -x $with_build_time_tools/windmc; then |
12895 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
12896 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
12897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
12898 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 12899 | else |
81ecdfbb RW |
12900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12901 | $as_echo "no" >&6; } | |
0c24b341 NC |
12902 | fi |
12903 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12904 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
12905 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
12906 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
12907 | fi | |
12908 | fi | |
12909 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12910 | # Extract the first word of "windmc", so it can be a program name with args. | |
12911 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
12912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12913 | $as_echo_n "checking for $ac_word... " >&6; } | |
12914 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
12915 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
12916 | else |
12917 | case $WINDMC_FOR_TARGET in | |
12918 | [\\/]* | ?:[\\/]*) | |
12919 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
12920 | ;; | |
12921 | *) | |
12922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12923 | for as_dir in $gcc_cv_tool_dirs | |
12924 | do | |
12925 | IFS=$as_save_IFS | |
12926 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12927 | for ac_exec_ext in '' $ac_executable_extensions; do |
12928 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 12929 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
12931 | break 2 |
12932 | fi | |
12933 | done | |
81ecdfbb RW |
12934 | done |
12935 | IFS=$as_save_IFS | |
0c24b341 NC |
12936 | |
12937 | ;; | |
12938 | esac | |
12939 | fi | |
12940 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 12941 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
12942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
12943 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 12944 | else |
81ecdfbb RW |
12945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12946 | $as_echo "no" >&6; } | |
0c24b341 NC |
12947 | fi |
12948 | ||
81ecdfbb | 12949 | |
0c24b341 NC |
12950 | fi |
12951 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
12952 | ||
12953 | ||
12954 | if test -n "$WINDMC_FOR_TARGET"; then | |
12955 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
12956 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
12957 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
12958 | fi | |
12959 | ||
12960 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
12961 | for ncn_progname in windmc; do | |
12962 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12963 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12965 | $as_echo_n "checking for $ac_word... " >&6; } | |
12966 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
12967 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
12968 | else |
12969 | if test -n "$WINDMC_FOR_TARGET"; then | |
12970 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
12971 | else | |
12972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12973 | for as_dir in $PATH | |
12974 | do | |
12975 | IFS=$as_save_IFS | |
12976 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12977 | for ac_exec_ext in '' $ac_executable_extensions; do |
12978 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 12979 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12980 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
12981 | break 2 |
12982 | fi | |
12983 | done | |
81ecdfbb RW |
12984 | done |
12985 | IFS=$as_save_IFS | |
0c24b341 NC |
12986 | |
12987 | fi | |
12988 | fi | |
12989 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
12990 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
12991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
12992 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 12993 | else |
81ecdfbb RW |
12994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12995 | $as_echo "no" >&6; } | |
0c24b341 NC |
12996 | fi |
12997 | ||
81ecdfbb | 12998 | |
0c24b341 NC |
12999 | done |
13000 | fi | |
13001 | ||
13002 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13003 | for ncn_progname in windmc; do | |
81ecdfbb RW |
13004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13005 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13006 | if test -x $with_build_time_tools/${ncn_progname}; then |
13007 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13009 | $as_echo "yes" >&6; } | |
0c24b341 NC |
13010 | break |
13011 | else | |
81ecdfbb RW |
13012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13013 | $as_echo "no" >&6; } | |
0c24b341 NC |
13014 | fi |
13015 | done | |
13016 | fi | |
13017 | ||
13018 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13019 | for ncn_progname in windmc; do | |
13020 | if test -n "$ncn_target_tool_prefix"; then | |
13021 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13022 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13024 | $as_echo_n "checking for $ac_word... " >&6; } | |
13025 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13026 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13027 | else |
13028 | if test -n "$WINDMC_FOR_TARGET"; then | |
13029 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13030 | else | |
13031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13032 | for as_dir in $PATH | |
13033 | do | |
13034 | IFS=$as_save_IFS | |
13035 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13036 | for ac_exec_ext in '' $ac_executable_extensions; do |
13037 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13038 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13039 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13040 | break 2 |
13041 | fi | |
13042 | done | |
81ecdfbb RW |
13043 | done |
13044 | IFS=$as_save_IFS | |
0c24b341 NC |
13045 | |
13046 | fi | |
13047 | fi | |
13048 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13049 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13051 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13052 | else |
81ecdfbb RW |
13053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13054 | $as_echo "no" >&6; } | |
0c24b341 NC |
13055 | fi |
13056 | ||
81ecdfbb | 13057 | |
0c24b341 NC |
13058 | fi |
13059 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13060 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13061 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13063 | $as_echo_n "checking for $ac_word... " >&6; } | |
13064 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13065 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13066 | else |
13067 | if test -n "$WINDMC_FOR_TARGET"; then | |
13068 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13069 | else | |
13070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13071 | for as_dir in $PATH | |
13072 | do | |
13073 | IFS=$as_save_IFS | |
13074 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13075 | for ac_exec_ext in '' $ac_executable_extensions; do |
13076 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13077 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13078 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13079 | break 2 |
13080 | fi | |
13081 | done | |
81ecdfbb RW |
13082 | done |
13083 | IFS=$as_save_IFS | |
0c24b341 NC |
13084 | |
13085 | fi | |
13086 | fi | |
13087 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13088 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13090 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13091 | else |
81ecdfbb RW |
13092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13093 | $as_echo "no" >&6; } | |
0c24b341 NC |
13094 | fi |
13095 | ||
81ecdfbb | 13096 | |
0c24b341 NC |
13097 | fi |
13098 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13099 | done | |
13100 | fi | |
13101 | ||
13102 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13103 | set dummy windmc | |
13104 | if test $build = $target ; then | |
13105 | WINDMC_FOR_TARGET="$2" | |
13106 | else | |
13107 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13108 | fi | |
13109 | else | |
13110 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
13111 | fi | |
13112 | ||
13113 | else | |
13114 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13115 | fi | |
13116 | ||
13117 | ||
be01d343 PB |
13118 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13119 | ||
81ecdfbb RW |
13120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13121 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 13122 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13123 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13124 | # We already found the complete path | |
b8025f34 | 13125 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13127 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13128 | else |
13129 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13131 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13132 | fi |
be01d343 PB |
13133 | else |
13134 | ok=yes | |
13135 | case " ${configdirs} " in | |
13136 | *" binutils "*) ;; | |
13137 | *) ok=no ;; | |
13138 | esac | |
c6b750e1 | 13139 | |
be01d343 PB |
13140 | if test $ok = yes; then |
13141 | # An in-tree tool is available and we can use it | |
13142 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
13143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13144 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13145 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13146 | # We already found the complete path | |
b8025f34 | 13147 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13149 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13150 | elif test "x$target" = "x$host"; then |
13151 | # We can use an host tool | |
13152 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
13153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13154 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13155 | else |
13156 | # We need a cross tool | |
81ecdfbb RW |
13157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13158 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13159 | fi |
13160 | fi | |
4b900473 | 13161 | |
81ecdfbb RW |
13162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13163 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 13164 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13165 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13166 | # We already found the complete path | |
b8025f34 | 13167 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13169 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13170 | else |
13171 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13173 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13174 | fi |
be01d343 PB |
13175 | else |
13176 | ok=yes | |
13177 | case " ${configdirs} " in | |
13178 | *" gas "*) ;; | |
13179 | *) ok=no ;; | |
13180 | esac | |
c6b750e1 | 13181 | |
be01d343 PB |
13182 | if test $ok = yes; then |
13183 | # An in-tree tool is available and we can use it | |
13184 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
13185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13186 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13187 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13188 | # We already found the complete path | |
b8025f34 | 13189 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13191 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13192 | elif test "x$target" = "x$host"; then |
13193 | # We can use an host tool | |
13194 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
13195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13196 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13197 | else |
13198 | # We need a cross tool | |
81ecdfbb RW |
13199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13200 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13201 | fi |
13202 | fi | |
4b900473 | 13203 | |
81ecdfbb RW |
13204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13205 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 13206 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13207 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13208 | # We already found the complete path | |
b8025f34 | 13209 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13211 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13212 | else |
13213 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13215 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13216 | fi |
be01d343 PB |
13217 | else |
13218 | ok=yes | |
13219 | case " ${configdirs} " in | |
13220 | *" gcc "*) ;; | |
13221 | *) ok=no ;; | |
13222 | esac | |
c6b750e1 | 13223 | |
be01d343 PB |
13224 | if test $ok = yes; then |
13225 | # An in-tree tool is available and we can use it | |
13226 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13228 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13229 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13230 | # We already found the complete path | |
b8025f34 | 13231 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13233 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13234 | elif test "x$target" = "x$host"; then |
13235 | # We can use an host tool | |
13236 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
13237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13238 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13239 | else |
13240 | # We need a cross tool | |
81ecdfbb RW |
13241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13242 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13243 | fi |
13244 | fi | |
4b900473 | 13245 | |
81ecdfbb RW |
13246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13247 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 13248 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13249 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13250 | # We already found the complete path | |
b8025f34 | 13251 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13253 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13254 | else |
13255 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13257 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13258 | fi |
be01d343 PB |
13259 | else |
13260 | ok=yes | |
13261 | case " ${configdirs} " in | |
13262 | *" gcc "*) ;; | |
13263 | *) ok=no ;; | |
13264 | esac | |
13265 | case ,${enable_languages}, in | |
13266 | *,c++,*) ;; | |
13267 | *) ok=no ;; | |
13268 | esac | |
13269 | if test $ok = yes; then | |
13270 | # An in-tree tool is available and we can use it | |
87cda2cf | 13271 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -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' |
81ecdfbb RW |
13272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13273 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13274 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13275 | # We already found the complete path | |
b8025f34 | 13276 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13278 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13279 | elif test "x$target" = "x$host"; then |
13280 | # We can use an host tool | |
13281 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13283 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13284 | else |
13285 | # We need a cross tool | |
81ecdfbb RW |
13286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13287 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13288 | fi |
13289 | fi | |
4b900473 | 13290 | |
81ecdfbb RW |
13291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13292 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 13293 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13294 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13295 | # We already found the complete path | |
b8025f34 | 13296 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13298 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13299 | else |
13300 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13302 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13303 | fi |
be01d343 PB |
13304 | else |
13305 | ok=yes | |
13306 | case " ${configdirs} " in | |
13307 | *" gcc "*) ;; | |
13308 | *) ok=no ;; | |
13309 | esac | |
13310 | case ,${enable_languages}, in | |
13311 | *,c++,*) ;; | |
13312 | *) ok=no ;; | |
13313 | esac | |
13314 | if test $ok = yes; then | |
13315 | # An in-tree tool is available and we can use it | |
13316 | 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' | |
81ecdfbb RW |
13317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13318 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13319 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13320 | # We already found the complete path | |
b8025f34 | 13321 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13323 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13324 | elif test "x$target" = "x$host"; then |
13325 | # We can use an host tool | |
13326 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13328 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13329 | else |
13330 | # We need a cross tool | |
81ecdfbb RW |
13331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13332 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13333 | fi |
13334 | fi | |
4b900473 | 13335 | |
81ecdfbb RW |
13336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
13337 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 13338 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13339 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13340 | # We already found the complete path | |
b8025f34 | 13341 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13343 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13344 | else |
13345 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13347 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13348 | fi |
be01d343 PB |
13349 | else |
13350 | ok=yes | |
13351 | case " ${configdirs} " in | |
13352 | *" binutils "*) ;; | |
13353 | *) ok=no ;; | |
13354 | esac | |
c6b750e1 | 13355 | |
be01d343 PB |
13356 | if test $ok = yes; then |
13357 | # An in-tree tool is available and we can use it | |
13358 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
13359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13360 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13361 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13362 | # We already found the complete path | |
b8025f34 | 13363 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13365 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13366 | elif test "x$target" = "x$host"; then |
13367 | # We can use an host tool | |
13368 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
13369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13370 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13371 | else |
13372 | # We need a cross tool | |
81ecdfbb RW |
13373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13374 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13375 | fi |
13376 | fi | |
4b900473 | 13377 | |
81ecdfbb RW |
13378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
13379 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 13380 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13381 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13382 | # We already found the complete path | |
b8025f34 | 13383 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
13384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13385 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13386 | else |
13387 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13389 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13390 | fi |
be01d343 PB |
13391 | else |
13392 | ok=yes | |
13393 | case " ${configdirs} " in | |
13394 | *" gcc "*) ;; | |
13395 | *) ok=no ;; | |
13396 | esac | |
c6b750e1 | 13397 | |
be01d343 PB |
13398 | if test $ok = yes; then |
13399 | # An in-tree tool is available and we can use it | |
13400 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13402 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13403 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13404 | # We already found the complete path | |
b8025f34 | 13405 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
13406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13407 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13408 | elif test "x$target" = "x$host"; then |
13409 | # We can use an host tool | |
13410 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
13411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13412 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13413 | else |
13414 | # We need a cross tool | |
81ecdfbb RW |
13415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13416 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13417 | fi |
13418 | fi | |
4b900473 | 13419 | |
81ecdfbb RW |
13420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
13421 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
be01d343 | 13422 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13423 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13424 | # We already found the complete path | |
b8025f34 | 13425 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
13426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13427 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13428 | else |
13429 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13431 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13432 | fi |
be01d343 PB |
13433 | else |
13434 | ok=yes | |
13435 | case " ${configdirs} " in | |
13436 | *" gcc "*) ;; | |
13437 | *) ok=no ;; | |
13438 | esac | |
13439 | case ,${enable_languages}, in | |
13440 | *,java,*) ;; | |
13441 | *) ok=no ;; | |
13442 | esac | |
13443 | if test $ok = yes; then | |
13444 | # An in-tree tool is available and we can use it | |
13445 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13447 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13448 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13449 | # We already found the complete path | |
b8025f34 | 13450 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
13451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13452 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13453 | elif test "x$target" = "x$host"; then |
13454 | # We can use an host tool | |
13455 | GCJ_FOR_TARGET='$(GCJ)' | |
81ecdfbb RW |
13456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13457 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13458 | else |
13459 | # We need a cross tool | |
81ecdfbb RW |
13460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13461 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13462 | fi |
13463 | fi | |
4b900473 | 13464 | |
81ecdfbb RW |
13465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
13466 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 13467 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13468 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13469 | # We already found the complete path | |
b8025f34 | 13470 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
13471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13472 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13473 | else |
13474 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13476 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13477 | fi |
be01d343 PB |
13478 | else |
13479 | ok=yes | |
13480 | case " ${configdirs} " in | |
13481 | *" gcc "*) ;; | |
13482 | *) ok=no ;; | |
13483 | esac | |
13484 | case ,${enable_languages}, in | |
13485 | *,fortran,*) ;; | |
13486 | *) ok=no ;; | |
13487 | esac | |
13488 | if test $ok = yes; then | |
13489 | # An in-tree tool is available and we can use it | |
13490 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13492 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13493 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13494 | # We already found the complete path | |
b8025f34 | 13495 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
13496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13497 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13498 | elif test "x$target" = "x$host"; then |
13499 | # We can use an host tool | |
13500 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
13501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13502 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13503 | else |
13504 | # We need a cross tool | |
81ecdfbb RW |
13505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13506 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13507 | fi |
13508 | fi | |
4b900473 | 13509 | |
e552509b ILT |
13510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
13511 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
13512 | if test "x${build}" != "x${host}" ; then | |
13513 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13514 | # We already found the complete path | |
13515 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13517 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13518 | else | |
13519 | # Canadian cross, just use what we found | |
13520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13521 | $as_echo "pre-installed" >&6; } | |
13522 | fi | |
13523 | else | |
13524 | ok=yes | |
13525 | case " ${configdirs} " in | |
13526 | *" gcc "*) ;; | |
13527 | *) ok=no ;; | |
13528 | esac | |
13529 | case ,${enable_languages}, in | |
13530 | *,go,*) ;; | |
13531 | *) ok=no ;; | |
13532 | esac | |
13533 | if test $ok = yes; then | |
13534 | # An in-tree tool is available and we can use it | |
13535 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
13536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13537 | $as_echo "just compiled" >&6; } | |
13538 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13539 | # We already found the complete path | |
13540 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13542 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13543 | elif test "x$target" = "x$host"; then | |
13544 | # We can use an host tool | |
13545 | GOC_FOR_TARGET='$(GOC)' | |
13546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13547 | $as_echo "host tool" >&6; } | |
13548 | else | |
13549 | # We need a cross tool | |
13550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13551 | $as_echo "pre-installed" >&6; } | |
13552 | fi | |
13553 | fi | |
13554 | ||
81ecdfbb RW |
13555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
13556 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 13557 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13558 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13559 | # We already found the complete path | |
b8025f34 | 13560 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
13561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13562 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13563 | else |
13564 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13566 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13567 | fi |
be01d343 PB |
13568 | else |
13569 | ok=yes | |
13570 | case " ${configdirs} " in | |
13571 | *" ld "*) ;; | |
13572 | *) ok=no ;; | |
13573 | esac | |
c6b750e1 | 13574 | |
be01d343 PB |
13575 | if test $ok = yes; then |
13576 | # An in-tree tool is available and we can use it | |
13577 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
13578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13579 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13580 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13581 | # We already found the complete path | |
b8025f34 | 13582 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
13583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13584 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13585 | elif test "x$target" = "x$host"; then |
13586 | # We can use an host tool | |
13587 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
13588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13589 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13590 | else |
13591 | # We need a cross tool | |
81ecdfbb RW |
13592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13593 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13594 | fi |
13595 | fi | |
4b900473 | 13596 | |
81ecdfbb RW |
13597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
13598 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 13599 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13600 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
13601 | # We already found the complete path | |
b8025f34 | 13602 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
13603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13604 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13605 | else |
13606 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13608 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13609 | fi |
be01d343 | 13610 | else |
2429c060 PB |
13611 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
13612 | # We already found the complete path | |
b8025f34 | 13613 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
13614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13615 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 13616 | elif test "x$target" = "x$host"; then |
be01d343 PB |
13617 | # We can use an host tool |
13618 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
13619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13620 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13621 | else |
13622 | # We need a cross tool | |
81ecdfbb RW |
13623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13624 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13625 | fi |
13626 | fi | |
4b900473 | 13627 | |
81ecdfbb RW |
13628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
13629 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 13630 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13631 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
13632 | # We already found the complete path | |
b8025f34 | 13633 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
13634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13635 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13636 | else |
13637 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13639 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13640 | fi |
be01d343 PB |
13641 | else |
13642 | ok=yes | |
13643 | case " ${configdirs} " in | |
13644 | *" binutils "*) ;; | |
13645 | *) ok=no ;; | |
13646 | esac | |
c6b750e1 | 13647 | |
be01d343 PB |
13648 | if test $ok = yes; then |
13649 | # An in-tree tool is available and we can use it | |
13650 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
13651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13652 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13653 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
13654 | # We already found the complete path | |
b8025f34 | 13655 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
13656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13657 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13658 | elif test "x$target" = "x$host"; then |
13659 | # We can use an host tool | |
13660 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
13661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13662 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13663 | else |
13664 | # We need a cross tool | |
81ecdfbb RW |
13665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13666 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13667 | fi |
13668 | fi | |
4b900473 | 13669 | |
81ecdfbb RW |
13670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
13671 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 13672 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13673 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
13674 | # We already found the complete path | |
b8025f34 | 13675 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
13676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13677 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13678 | else |
13679 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13681 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13682 | fi |
be01d343 PB |
13683 | else |
13684 | ok=yes | |
13685 | case " ${configdirs} " in | |
13686 | *" binutils "*) ;; | |
13687 | *) ok=no ;; | |
13688 | esac | |
c6b750e1 | 13689 | |
be01d343 PB |
13690 | if test $ok = yes; then |
13691 | # An in-tree tool is available and we can use it | |
13692 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
13693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13694 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13695 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
13696 | # We already found the complete path | |
b8025f34 | 13697 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
13698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13699 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13700 | elif test "x$target" = "x$host"; then |
13701 | # We can use an host tool | |
13702 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
13703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13704 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13705 | else |
13706 | # We need a cross tool | |
81ecdfbb RW |
13707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13708 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13709 | fi |
13710 | fi | |
4b900473 | 13711 | |
81ecdfbb RW |
13712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
13713 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 13714 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13715 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
13716 | # We already found the complete path | |
b8025f34 | 13717 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
13718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13719 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13720 | else |
13721 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13723 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13724 | fi |
be01d343 PB |
13725 | else |
13726 | ok=yes | |
13727 | case " ${configdirs} " in | |
13728 | *" binutils "*) ;; | |
13729 | *) ok=no ;; | |
13730 | esac | |
c6b750e1 | 13731 | |
be01d343 PB |
13732 | if test $ok = yes; then |
13733 | # An in-tree tool is available and we can use it | |
13734 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
13735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13736 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13737 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
13738 | # We already found the complete path | |
b8025f34 | 13739 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
13740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13741 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13742 | elif test "x$target" = "x$host"; then |
13743 | # We can use an host tool | |
13744 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
13745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13746 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13747 | else |
13748 | # We need a cross tool | |
81ecdfbb RW |
13749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13750 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13751 | fi |
13752 | fi | |
4b900473 | 13753 | |
81ecdfbb RW |
13754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
13755 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 13756 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13757 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
13758 | # We already found the complete path | |
b8025f34 | 13759 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
13760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13761 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13762 | else |
13763 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13765 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13766 | fi |
be01d343 PB |
13767 | else |
13768 | ok=yes | |
13769 | case " ${configdirs} " in | |
13770 | *" binutils "*) ;; | |
13771 | *) ok=no ;; | |
13772 | esac | |
c6b750e1 | 13773 | |
be01d343 PB |
13774 | if test $ok = yes; then |
13775 | # An in-tree tool is available and we can use it | |
9b980aa1 | 13776 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
13777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13778 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13779 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
13780 | # We already found the complete path | |
b8025f34 | 13781 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
13782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13783 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13784 | elif test "x$target" = "x$host"; then |
13785 | # We can use an host tool | |
13786 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
13787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13788 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13789 | else |
13790 | # We need a cross tool | |
81ecdfbb RW |
13791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13792 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13793 | fi |
13794 | fi | |
4b900473 | 13795 | |
81ecdfbb RW |
13796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
13797 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 13798 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13799 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
13800 | # We already found the complete path | |
b8025f34 | 13801 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
13802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13803 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13804 | else |
13805 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13807 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13808 | fi |
be01d343 PB |
13809 | else |
13810 | ok=yes | |
13811 | case " ${configdirs} " in | |
13812 | *" binutils "*) ;; | |
13813 | *) ok=no ;; | |
13814 | esac | |
c6b750e1 | 13815 | |
be01d343 PB |
13816 | if test $ok = yes; then |
13817 | # An in-tree tool is available and we can use it | |
13818 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
13819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13820 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13821 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
13822 | # We already found the complete path | |
b8025f34 | 13823 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
13824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13825 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13826 | elif test "x$target" = "x$host"; then |
13827 | # We can use an host tool | |
13828 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
13829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13830 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13831 | else |
13832 | # We need a cross tool | |
81ecdfbb RW |
13833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13834 | $as_echo "pre-installed" >&6; } | |
be01d343 | 13835 | fi |
a0da8069 | 13836 | fi |
54752a6b | 13837 | |
81ecdfbb RW |
13838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
13839 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
13840 | if test "x${build}" != "x${host}" ; then |
13841 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
13842 | # We already found the complete path | |
13843 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
13844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13845 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
13846 | else |
13847 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13849 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
13850 | fi |
13851 | else | |
13852 | ok=yes | |
13853 | case " ${configdirs} " in | |
13854 | *" binutils "*) ;; | |
13855 | *) ok=no ;; | |
13856 | esac | |
13857 | ||
13858 | if test $ok = yes; then | |
13859 | # An in-tree tool is available and we can use it | |
13860 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
13861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13862 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
13863 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
13864 | # We already found the complete path | |
13865 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
13866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13867 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
13868 | elif test "x$target" = "x$host"; then |
13869 | # We can use an host tool | |
13870 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
13871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13872 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
13873 | else |
13874 | # We need a cross tool | |
81ecdfbb RW |
13875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13876 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
13877 | fi |
13878 | fi | |
13879 | ||
54752a6b NN |
13880 | |
13881 | ||
be01d343 | 13882 | |
4b900473 | 13883 | |
a0da8069 NN |
13884 | # Certain tools may need extra flags. |
13885 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
13886 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
13887 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
13888 | ||
be01d343 PB |
13889 | # When building target libraries, except in a Canadian cross, we use |
13890 | # the same toolchain as the compiler we just built. | |
13891 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
13892 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
13893 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
13894 | if test $host = $build; then | |
13895 | case " $configdirs " in | |
13896 | *" gcc "*) | |
13897 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
13898 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
13899 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
13900 | ;; | |
13901 | esac | |
13902 | fi | |
13903 | ||
13904 | ||
13905 | ||
13906 | ||
13907 | ||
81ecdfbb RW |
13908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
13909 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
13910 | # Check whether --enable-maintainer-mode was given. | |
13911 | if test "${enable_maintainer_mode+set}" = set; then : | |
13912 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
13913 | else |
13914 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
13915 | fi |
13916 | ||
13917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
13918 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
13919 | |
13920 | ||
13921 | if test "$USE_MAINTAINER_MODE" = yes; then | |
13922 | MAINTAINER_MODE_TRUE= | |
13923 | MAINTAINER_MODE_FALSE='#' | |
13924 | else | |
13925 | MAINTAINER_MODE_TRUE='#' | |
13926 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 13927 | fi |
3d5e36ae AO |
13928 | MAINT=$MAINTAINER_MODE_TRUE |
13929 | ||
1d39f329 NN |
13930 | # --------------------- |
13931 | # GCC bootstrap support | |
13932 | # --------------------- | |
13933 | ||
13934 | # Stage specific cflags for build. | |
13935 | stage1_cflags="-g" | |
13936 | case $build in | |
13937 | vax-*-*) | |
13938 | case ${GCC} in | |
13939 | yes) stage1_cflags="-g -Wa,-J" ;; | |
13940 | *) stage1_cflags="-g -J" ;; | |
13941 | esac ;; | |
1d39f329 NN |
13942 | esac |
13943 | ||
1d89b610 | 13944 | # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems. |
e8a5fa9c | 13945 | if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then |
1d89b610 PB |
13946 | saved_CFLAGS="$CFLAGS" |
13947 | ||
13948 | # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it. | |
13949 | CFLAGS="$CFLAGS -fkeep-inline-functions" | |
81ecdfbb RW |
13950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5 |
13951 | $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; } | |
13952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
13953 | /* end confdefs.h. */ |
13954 | ||
2038f525 PB |
13955 | #if (__GNUC__ < 3) \ |
13956 | || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \ | |
13957 | || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1))) | |
13958 | #error http://gcc.gnu.org/PR29382 | |
13959 | #endif | |
13960 | ||
c6b750e1 DJ |
13961 | int |
13962 | main () | |
13963 | { | |
13964 | ||
13965 | ; | |
13966 | return 0; | |
13967 | } | |
13968 | _ACEOF | |
81ecdfbb RW |
13969 | if ac_fn_c_try_compile "$LINENO"; then : |
13970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13971 | $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions" | |
c6b750e1 | 13972 | else |
81ecdfbb RW |
13973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13974 | $as_echo "no" >&6; } | |
c6b750e1 | 13975 | fi |
81ecdfbb | 13976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1d89b610 PB |
13977 | |
13978 | CFLAGS="$saved_CFLAGS" | |
13979 | fi | |
13980 | ||
13981 | ||
1d39f329 | 13982 | |
8a0d8a5c | 13983 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
13984 | # Check whether --enable-stage1-checking was given. |
13985 | if test "${enable_stage1_checking+set}" = set; then : | |
13986 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 13987 | else |
5566c1fa | 13988 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
2abc4e65 | 13989 | stage1_checking=--enable-checking=yes,types |
8a0d8a5c | 13990 | else |
5566c1fa | 13991 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 13992 | fi |
81ecdfbb | 13993 | fi |
8a0d8a5c PB |
13994 | |
13995 | ||
c6b750e1 | 13996 | |
81ecdfbb RW |
13997 | # Enable -Werror in bootstrap stage2 and later. |
13998 | # Check whether --enable-werror was given. | |
13999 | if test "${enable_werror+set}" = set; then : | |
14000 | enableval=$enable_werror; | |
1d39f329 | 14001 | else |
a0323144 | 14002 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
1d39f329 | 14003 | enable_werror=yes |
79fcd0ec PB |
14004 | else |
14005 | enable_werror=no | |
14006 | fi | |
81ecdfbb RW |
14007 | fi |
14008 | ||
1a6f2dc7 NN |
14009 | case ${enable_werror} in |
14010 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14011 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
14012 | esac |
14013 | ||
14014 | ||
ffdd6afc ILT |
14015 | # If using ENABLE_BUILD_POSTSTAGE1_WITH_CXX, pass |
14016 | # --enable-build-with-cxx after stage1. | |
14017 | if test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then | |
14018 | POSTSTAGE1_CONFIGURE_FLAGS=--enable-build-with-cxx | |
14019 | else | |
14020 | POSTSTAGE1_CONFIGURE_FLAGS= | |
14021 | fi | |
14022 | ||
14023 | ||
e8a5fa9c RW |
14024 | # Specify what files to not compare during bootstrap. |
14025 | ||
14026 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14027 | case "$target" in | |
14028 | hppa*64*-*-hpux*) ;; | |
14029 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
14030 | esac | |
1f53ca9a AO |
14031 | case " $configdirs " in |
14032 | *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;; | |
14033 | esac | |
e8a5fa9c RW |
14034 | |
14035 | ||
81ecdfbb RW |
14036 | ac_config_files="$ac_config_files Makefile" |
14037 | ||
c6b750e1 | 14038 | cat >confcache <<\_ACEOF |
a0da8069 NN |
14039 | # This file is a shell script that caches the results of configure |
14040 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
14041 | # scripts and configure runs, see configure's option --config-cache. |
14042 | # It is not useful on other systems. If it contains results you don't | |
14043 | # want to keep, you may remove or edit it. | |
a0da8069 | 14044 | # |
c6b750e1 DJ |
14045 | # config.status only pays attention to the cache file if you give it |
14046 | # the --recheck option to rerun configure. | |
a0da8069 | 14047 | # |
c6b750e1 DJ |
14048 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14049 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14050 | # following values. | |
14051 | ||
14052 | _ACEOF | |
14053 | ||
a0da8069 NN |
14054 | # The following way of writing the cache mishandles newlines in values, |
14055 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14056 | # So, we kill variables containing newlines. |
a0da8069 NN |
14057 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14058 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14059 | ( |
14060 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14061 | eval ac_val=\$$ac_var | |
14062 | case $ac_val in #( | |
14063 | *${as_nl}*) | |
14064 | case $ac_var in #( | |
14065 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14066 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14067 | esac | |
14068 | case $ac_var in #( | |
14069 | _ | IFS | as_nl) ;; #( | |
14070 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14071 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14072 | esac ;; | |
14073 | esac | |
14074 | done | |
14075 | ||
c6b750e1 | 14076 | (set) 2>&1 | |
81ecdfbb RW |
14077 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14078 | *${as_nl}ac_space=\ *) | |
14079 | # `set' does not quote correctly, so add quotes: double-quote | |
14080 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
14081 | sed -n \ |
14082 | "s/'/'\\\\''/g; | |
14083 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14084 | ;; #( |
c6b750e1 DJ |
14085 | *) |
14086 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14087 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 14088 | ;; |
81ecdfbb RW |
14089 | esac | |
14090 | sort | |
14091 | ) | | |
c6b750e1 | 14092 | sed ' |
81ecdfbb | 14093 | /^ac_cv_env_/b end |
c6b750e1 | 14094 | t clear |
81ecdfbb | 14095 | :clear |
c6b750e1 DJ |
14096 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14097 | t end | |
81ecdfbb RW |
14098 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14099 | :end' >>confcache | |
14100 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14101 | if test -w "$cache_file"; then | |
14102 | test "x$cache_file" != "x/dev/null" && | |
14103 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14104 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
c6b750e1 | 14105 | cat confcache >$cache_file |
a0da8069 | 14106 | else |
81ecdfbb RW |
14107 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14108 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 14109 | fi |
852e5f18 | 14110 | fi |
a0da8069 | 14111 | rm -f confcache |
852e5f18 | 14112 | |
a0da8069 NN |
14113 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14114 | # Let make expand exec_prefix. | |
14115 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 14116 | |
a0da8069 NN |
14117 | # Transform confdefs.h into DEFS. |
14118 | # Protect against shell expansion while executing Makefile rules. | |
14119 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
14120 | # |
14121 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 14122 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 14123 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
14124 | ac_script=' |
14125 | :mline | |
14126 | /\\$/{ | |
14127 | N | |
14128 | s,\\\n,, | |
14129 | b mline | |
14130 | } | |
c6b750e1 | 14131 | t clear |
81ecdfbb RW |
14132 | :clear |
14133 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 14134 | t quote |
81ecdfbb | 14135 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 14136 | t quote |
81ecdfbb RW |
14137 | b any |
14138 | :quote | |
14139 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14140 | s/\[/\\&/g | |
14141 | s/\]/\\&/g | |
14142 | s/\$/$$/g | |
14143 | H | |
14144 | :any | |
14145 | ${ | |
14146 | g | |
14147 | s/^\n// | |
14148 | s/\n/ /g | |
14149 | p | |
14150 | } | |
14151 | ' | |
14152 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
14153 | |
14154 | ||
14155 | ac_libobjs= | |
14156 | ac_ltlibobjs= | |
14157 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14158 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14159 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14160 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14161 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14162 | # will be set to the directory where LIBOBJS objects are built. | |
14163 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14164 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
14165 | done |
14166 | LIBOBJS=$ac_libobjs | |
852e5f18 | 14167 | |
c6b750e1 | 14168 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 14169 | |
cac3d6c4 | 14170 | |
c6b750e1 DJ |
14171 | |
14172 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 14173 | ac_write_fail=0 |
c6b750e1 DJ |
14174 | ac_clean_files_save=$ac_clean_files |
14175 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14176 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14177 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14178 | as_write_fail=0 | |
14179 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
14180 | #! $SHELL |
14181 | # Generated by $as_me. | |
a0da8069 | 14182 | # Run this file to recreate the current configuration. |
a0da8069 | 14183 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 14184 | # configure, is in config.log if it exists. |
376a0e54 | 14185 | |
c6b750e1 DJ |
14186 | debug=false |
14187 | ac_cs_recheck=false | |
14188 | ac_cs_silent=false | |
c6b750e1 | 14189 | |
81ecdfbb RW |
14190 | SHELL=\${CONFIG_SHELL-$SHELL} |
14191 | export SHELL | |
14192 | _ASEOF | |
14193 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14194 | ## -------------------- ## | |
14195 | ## M4sh Initialization. ## | |
14196 | ## -------------------- ## | |
14197 | ||
14198 | # Be more Bourne compatible | |
14199 | DUALCASE=1; export DUALCASE # for MKS sh | |
14200 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
14201 | emulate sh |
14202 | NULLCMD=: | |
81ecdfbb | 14203 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
14204 | # is contrary to our usage. Disable this feature. |
14205 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14206 | setopt NO_GLOB_SUBST |
14207 | else | |
14208 | case `(set -o) 2>/dev/null` in #( | |
14209 | *posix*) : | |
14210 | set -o posix ;; #( | |
14211 | *) : | |
14212 | ;; | |
14213 | esac | |
c6b750e1 | 14214 | fi |
c6b750e1 | 14215 | |
81ecdfbb RW |
14216 | |
14217 | as_nl=' | |
14218 | ' | |
14219 | export as_nl | |
14220 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14221 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14222 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14223 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14224 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14225 | # but without wasting forks for bash or zsh. | |
14226 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14227 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14228 | as_echo='print -r --' | |
14229 | as_echo_n='print -rn --' | |
14230 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14231 | as_echo='printf %s\n' | |
14232 | as_echo_n='printf %s' | |
14233 | else | |
14234 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14235 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14236 | as_echo_n='/usr/ucb/echo -n' | |
14237 | else | |
14238 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14239 | as_echo_n_body='eval | |
14240 | arg=$1; | |
14241 | case $arg in #( | |
14242 | *"$as_nl"*) | |
14243 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14244 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14245 | esac; | |
14246 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14247 | ' | |
14248 | export as_echo_n_body | |
14249 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14250 | fi | |
14251 | export as_echo_body | |
14252 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
14253 | fi |
14254 | ||
81ecdfbb RW |
14255 | # The user is always right. |
14256 | if test "${PATH_SEPARATOR+set}" != set; then | |
14257 | PATH_SEPARATOR=: | |
14258 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14259 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14260 | PATH_SEPARATOR=';' | |
14261 | } | |
14262 | fi | |
14263 | ||
14264 | ||
14265 | # IFS | |
14266 | # We need space, tab and new line, in precisely that order. Quoting is | |
14267 | # there to prevent editors from complaining about space-tab. | |
14268 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14269 | # splitting by setting IFS to empty value.) | |
14270 | IFS=" "" $as_nl" | |
14271 | ||
14272 | # Find who we are. Look in the path if we contain no directory separator. | |
14273 | case $0 in #(( | |
14274 | *[\\/]* ) as_myself=$0 ;; | |
14275 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14276 | for as_dir in $PATH | |
14277 | do | |
14278 | IFS=$as_save_IFS | |
14279 | test -z "$as_dir" && as_dir=. | |
14280 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14281 | done | |
14282 | IFS=$as_save_IFS | |
14283 | ||
14284 | ;; | |
14285 | esac | |
14286 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14287 | # in which case we are not to be found in the path. | |
14288 | if test "x$as_myself" = x; then | |
14289 | as_myself=$0 | |
14290 | fi | |
14291 | if test ! -f "$as_myself"; then | |
14292 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14293 | exit 1 | |
14294 | fi | |
c6b750e1 | 14295 | |
81ecdfbb RW |
14296 | # Unset variables that we do not need and which cause bugs (e.g. in |
14297 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14298 | # suppresses any "Segmentation fault" message there. '((' could | |
14299 | # trigger a bug in pdksh 5.2.14. | |
14300 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14301 | do eval test x\${$as_var+set} = xset \ | |
14302 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14303 | done | |
c6b750e1 DJ |
14304 | PS1='$ ' |
14305 | PS2='> ' | |
14306 | PS4='+ ' | |
14307 | ||
14308 | # NLS nuisances. | |
81ecdfbb RW |
14309 | LC_ALL=C |
14310 | export LC_ALL | |
14311 | LANGUAGE=C | |
14312 | export LANGUAGE | |
14313 | ||
14314 | # CDPATH. | |
14315 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14316 | ||
14317 | ||
14318 | # as_fn_error ERROR [LINENO LOG_FD] | |
14319 | # --------------------------------- | |
14320 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14321 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14322 | # script with status $?, using 1 if that was 0. | |
14323 | as_fn_error () | |
14324 | { | |
14325 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14326 | if test "$3"; then | |
14327 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14328 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
c6b750e1 | 14329 | fi |
81ecdfbb RW |
14330 | $as_echo "$as_me: error: $1" >&2 |
14331 | as_fn_exit $as_status | |
14332 | } # as_fn_error | |
14333 | ||
14334 | ||
14335 | # as_fn_set_status STATUS | |
14336 | # ----------------------- | |
14337 | # Set $? to STATUS, without forking. | |
14338 | as_fn_set_status () | |
14339 | { | |
14340 | return $1 | |
14341 | } # as_fn_set_status | |
14342 | ||
14343 | # as_fn_exit STATUS | |
14344 | # ----------------- | |
14345 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14346 | as_fn_exit () | |
14347 | { | |
14348 | set +e | |
14349 | as_fn_set_status $1 | |
14350 | exit $1 | |
14351 | } # as_fn_exit | |
14352 | ||
14353 | # as_fn_unset VAR | |
14354 | # --------------- | |
14355 | # Portably unset VAR. | |
14356 | as_fn_unset () | |
14357 | { | |
14358 | { eval $1=; unset $1;} | |
14359 | } | |
14360 | as_unset=as_fn_unset | |
14361 | # as_fn_append VAR VALUE | |
14362 | # ---------------------- | |
14363 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14364 | # advantage of any shell optimizations that allow amortized linear growth over | |
14365 | # repeated appends, instead of the typical quadratic growth present in naive | |
14366 | # implementations. | |
14367 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14368 | eval 'as_fn_append () | |
14369 | { | |
14370 | eval $1+=\$2 | |
14371 | }' | |
14372 | else | |
14373 | as_fn_append () | |
14374 | { | |
14375 | eval $1=\$$1\$2 | |
14376 | } | |
14377 | fi # as_fn_append | |
14378 | ||
14379 | # as_fn_arith ARG... | |
14380 | # ------------------ | |
14381 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14382 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14383 | # must be portable across $(()) and expr. | |
14384 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14385 | eval 'as_fn_arith () | |
14386 | { | |
14387 | as_val=$(( $* )) | |
14388 | }' | |
14389 | else | |
14390 | as_fn_arith () | |
14391 | { | |
14392 | as_val=`expr "$@" || test $? -eq 1` | |
14393 | } | |
14394 | fi # as_fn_arith | |
14395 | ||
c6b750e1 | 14396 | |
81ecdfbb RW |
14397 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14398 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
14399 | as_expr=expr |
14400 | else | |
14401 | as_expr=false | |
14402 | fi | |
14403 | ||
81ecdfbb | 14404 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
14405 | as_basename=basename |
14406 | else | |
14407 | as_basename=false | |
14408 | fi | |
14409 | ||
81ecdfbb RW |
14410 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14411 | as_dirname=dirname | |
14412 | else | |
14413 | as_dirname=false | |
14414 | fi | |
c6b750e1 | 14415 | |
81ecdfbb | 14416 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
14417 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14418 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14419 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14420 | $as_echo X/"$0" | | |
14421 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14422 | s//\1/ | |
14423 | q | |
14424 | } | |
14425 | /^X\/\(\/\/\)$/{ | |
14426 | s//\1/ | |
14427 | q | |
14428 | } | |
14429 | /^X\/\(\/\).*/{ | |
14430 | s//\1/ | |
14431 | q | |
14432 | } | |
14433 | s/.*/./; q'` | |
c6b750e1 | 14434 | |
c6b750e1 DJ |
14435 | # Avoid depending upon Character Ranges. |
14436 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14437 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14438 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14439 | as_cr_digits='0123456789' | |
14440 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14441 | ||
81ecdfbb RW |
14442 | ECHO_C= ECHO_N= ECHO_T= |
14443 | case `echo -n x` in #((((( | |
14444 | -n*) | |
14445 | case `echo 'xy\c'` in | |
14446 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14447 | xy) ECHO_C='\c';; | |
14448 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14449 | ECHO_T=' ';; | |
14450 | esac;; | |
14451 | *) | |
14452 | ECHO_N='-n';; | |
c6b750e1 DJ |
14453 | esac |
14454 | ||
81ecdfbb RW |
14455 | rm -f conf$$ conf$$.exe conf$$.file |
14456 | if test -d conf$$.dir; then | |
14457 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 14458 | else |
81ecdfbb RW |
14459 | rm -f conf$$.dir |
14460 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 14461 | fi |
81ecdfbb RW |
14462 | if (echo >conf$$.file) 2>/dev/null; then |
14463 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 14464 | as_ln_s='ln -s' |
81ecdfbb RW |
14465 | # ... but there are two gotchas: |
14466 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14467 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14468 | # In both cases, we have to default to `cp -p'. | |
14469 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
14470 | as_ln_s='cp -p' | |
14471 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14472 | as_ln_s=ln | |
14473 | else | |
14474 | as_ln_s='cp -p' | |
c6b750e1 | 14475 | fi |
c6b750e1 DJ |
14476 | else |
14477 | as_ln_s='cp -p' | |
14478 | fi | |
81ecdfbb RW |
14479 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14480 | rmdir conf$$.dir 2>/dev/null | |
14481 | ||
14482 | ||
14483 | # as_fn_mkdir_p | |
14484 | # ------------- | |
14485 | # Create "$as_dir" as a directory, including parents if necessary. | |
14486 | as_fn_mkdir_p () | |
14487 | { | |
14488 | ||
14489 | case $as_dir in #( | |
14490 | -*) as_dir=./$as_dir;; | |
14491 | esac | |
14492 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14493 | as_dirs= | |
14494 | while :; do | |
14495 | case $as_dir in #( | |
14496 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14497 | *) as_qdir=$as_dir;; | |
14498 | esac | |
14499 | as_dirs="'$as_qdir' $as_dirs" | |
14500 | as_dir=`$as_dirname -- "$as_dir" || | |
14501 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14502 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14503 | X"$as_dir" : 'X\(//\)$' \| \ | |
14504 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14505 | $as_echo X"$as_dir" | | |
14506 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14507 | s//\1/ | |
14508 | q | |
14509 | } | |
14510 | /^X\(\/\/\)[^/].*/{ | |
14511 | s//\1/ | |
14512 | q | |
14513 | } | |
14514 | /^X\(\/\/\)$/{ | |
14515 | s//\1/ | |
14516 | q | |
14517 | } | |
14518 | /^X\(\/\).*/{ | |
14519 | s//\1/ | |
14520 | q | |
14521 | } | |
14522 | s/.*/./; q'` | |
14523 | test -d "$as_dir" && break | |
14524 | done | |
14525 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14526 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
14527 | ||
c6b750e1 | 14528 | |
81ecdfbb | 14529 | } # as_fn_mkdir_p |
c6b750e1 | 14530 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 14531 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
14532 | else |
14533 | test -d ./-p && rmdir ./-p | |
14534 | as_mkdir_p=false | |
14535 | fi | |
14536 | ||
81ecdfbb RW |
14537 | if test -x / >/dev/null 2>&1; then |
14538 | as_test_x='test -x' | |
14539 | else | |
14540 | if ls -dL / >/dev/null 2>&1; then | |
14541 | as_ls_L_option=L | |
14542 | else | |
14543 | as_ls_L_option= | |
14544 | fi | |
14545 | as_test_x=' | |
14546 | eval sh -c '\'' | |
14547 | if test -d "$1"; then | |
14548 | test -d "$1/."; | |
14549 | else | |
14550 | case $1 in #( | |
14551 | -*)set "./$1";; | |
14552 | esac; | |
14553 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
14554 | ???[sx]*):;;*)false;;esac;fi | |
14555 | '\'' sh | |
14556 | ' | |
14557 | fi | |
14558 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
14559 | |
14560 | # Sed expression to map a string onto a valid CPP name. | |
14561 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14562 | ||
14563 | # Sed expression to map a string onto a valid variable name. | |
14564 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14565 | ||
14566 | ||
c6b750e1 | 14567 | exec 6>&1 |
81ecdfbb RW |
14568 | ## ----------------------------------- ## |
14569 | ## Main body of $CONFIG_STATUS script. ## | |
14570 | ## ----------------------------------- ## | |
14571 | _ASEOF | |
14572 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
14573 | ||
14574 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14575 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 14576 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
14577 | # values after options handling. |
14578 | ac_log=" | |
c6b750e1 | 14579 | This file was extended by $as_me, which was |
81ecdfbb | 14580 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
14581 | |
14582 | CONFIG_FILES = $CONFIG_FILES | |
14583 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14584 | CONFIG_LINKS = $CONFIG_LINKS | |
14585 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14586 | $ $0 $@ | |
14587 | ||
81ecdfbb RW |
14588 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14589 | " | |
14590 | ||
c6b750e1 DJ |
14591 | _ACEOF |
14592 | ||
81ecdfbb RW |
14593 | case $ac_config_files in *" |
14594 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14595 | esac | |
c6b750e1 | 14596 | |
c6b750e1 | 14597 | |
c6b750e1 | 14598 | |
81ecdfbb RW |
14599 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14600 | # Files that config.status was made for. | |
14601 | config_files="$ac_config_files" | |
c6b750e1 | 14602 | |
81ecdfbb | 14603 | _ACEOF |
c6b750e1 | 14604 | |
81ecdfbb | 14605 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 14606 | ac_cs_usage="\ |
81ecdfbb RW |
14607 | \`$as_me' instantiates files and other configuration actions |
14608 | from templates according to the current configuration. Unless the files | |
14609 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 14610 | |
81ecdfbb | 14611 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
14612 | |
14613 | -h, --help print this help, then exit | |
81ecdfbb RW |
14614 | -V, --version print version number and configuration settings, then exit |
14615 | -q, --quiet, --silent | |
14616 | do not print progress messages | |
c6b750e1 DJ |
14617 | -d, --debug don't remove temporary files |
14618 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
14619 | --file=FILE[:TEMPLATE] |
14620 | instantiate the configuration file FILE | |
c6b750e1 DJ |
14621 | |
14622 | Configuration files: | |
14623 | $config_files | |
14624 | ||
81ecdfbb | 14625 | Report bugs to the package provider." |
c6b750e1 | 14626 | |
81ecdfbb RW |
14627 | _ACEOF |
14628 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
c6b750e1 DJ |
14629 | ac_cs_version="\\ |
14630 | config.status | |
81ecdfbb RW |
14631 | configured by $0, generated by GNU Autoconf 2.64, |
14632 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
c6b750e1 | 14633 | |
81ecdfbb | 14634 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
14635 | This config.status script is free software; the Free Software Foundation |
14636 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
14637 | |
14638 | ac_pwd='$ac_pwd' | |
14639 | srcdir='$srcdir' | |
14640 | INSTALL='$INSTALL' | |
8e957354 | 14641 | AWK='$AWK' |
81ecdfbb | 14642 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
14643 | _ACEOF |
14644 | ||
81ecdfbb RW |
14645 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14646 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
14647 | ac_need_defaults=: |
14648 | while test $# != 0 | |
a0da8069 | 14649 | do |
c6b750e1 DJ |
14650 | case $1 in |
14651 | --*=*) | |
81ecdfbb RW |
14652 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14653 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
14654 | ac_shift=: |
14655 | ;; | |
81ecdfbb | 14656 | *) |
c6b750e1 DJ |
14657 | ac_option=$1 |
14658 | ac_optarg=$2 | |
14659 | ac_shift=shift | |
14660 | ;; | |
c6b750e1 DJ |
14661 | esac |
14662 | ||
14663 | case $ac_option in | |
14664 | # Handling of the options. | |
a0da8069 | 14665 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 14666 | ac_cs_recheck=: ;; |
81ecdfbb RW |
14667 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
14668 | $as_echo "$ac_cs_version"; exit ;; | |
14669 | --debug | --debu | --deb | --de | --d | -d ) | |
c6b750e1 DJ |
14670 | debug=: ;; |
14671 | --file | --fil | --fi | --f ) | |
14672 | $ac_shift | |
81ecdfbb RW |
14673 | case $ac_optarg in |
14674 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14675 | esac | |
14676 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 14677 | ac_need_defaults=false;; |
81ecdfbb RW |
14678 | --he | --h | --help | --hel | -h ) |
14679 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
14680 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14681 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14682 | ac_cs_silent=: ;; | |
14683 | ||
14684 | # This is an error. | |
81ecdfbb RW |
14685 | -*) as_fn_error "unrecognized option: \`$1' |
14686 | Try \`$0 --help' for more information." ;; | |
c6b750e1 | 14687 | |
81ecdfbb RW |
14688 | *) as_fn_append ac_config_targets " $1" |
14689 | ac_need_defaults=false ;; | |
c6b750e1 | 14690 | |
376a0e54 | 14691 | esac |
c6b750e1 | 14692 | shift |
376a0e54 CM |
14693 | done |
14694 | ||
c6b750e1 | 14695 | ac_configure_extra_args= |
376a0e54 | 14696 | |
c6b750e1 DJ |
14697 | if $ac_cs_silent; then |
14698 | exec 6>/dev/null | |
14699 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14700 | fi | |
376a0e54 | 14701 | |
c6b750e1 | 14702 | _ACEOF |
81ecdfbb | 14703 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 14704 | if \$ac_cs_recheck; then |
81ecdfbb RW |
14705 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
14706 | shift | |
14707 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14708 | CONFIG_SHELL='$SHELL' | |
14709 | export CONFIG_SHELL | |
14710 | exec "\$@" | |
c6b750e1 DJ |
14711 | fi |
14712 | ||
14713 | _ACEOF | |
81ecdfbb RW |
14714 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14715 | exec 5>>config.log | |
14716 | { | |
14717 | echo | |
14718 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14719 | ## Running $as_me. ## | |
14720 | _ASBOX | |
14721 | $as_echo "$ac_log" | |
14722 | } >&5 | |
c6b750e1 | 14723 | |
81ecdfbb RW |
14724 | _ACEOF |
14725 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
14726 | # |
14727 | # INIT-COMMANDS | |
14728 | # | |
14729 | extrasub_build="$extrasub_build" | |
14730 | extrasub_host="$extrasub_host" | |
14731 | extrasub_target="$extrasub_target" | |
14732 | ||
81ecdfbb | 14733 | _ACEOF |
c6b750e1 | 14734 | |
81ecdfbb | 14735 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 14736 | |
81ecdfbb | 14737 | # Handling of arguments. |
c6b750e1 DJ |
14738 | for ac_config_target in $ac_config_targets |
14739 | do | |
81ecdfbb RW |
14740 | case $ac_config_target in |
14741 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
14742 | ||
14743 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
c6b750e1 DJ |
14744 | esac |
14745 | done | |
14746 | ||
81ecdfbb | 14747 | |
c6b750e1 DJ |
14748 | # If the user did not use the arguments to specify the items to instantiate, |
14749 | # then the envvar interface is used. Set only those that are not. | |
14750 | # We use the long form for the default assignment because of an extremely | |
14751 | # bizarre bug on SunOS 4.1.3. | |
14752 | if $ac_need_defaults; then | |
14753 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14754 | fi | |
14755 | ||
14756 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 14757 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 14758 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
14759 | # Hook for its removal unless debugging. |
14760 | # Note that there is a small window in which the directory will not be cleaned: | |
14761 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
14762 | $debug || |
14763 | { | |
81ecdfbb RW |
14764 | tmp= |
14765 | trap 'exit_status=$? | |
14766 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
14767 | ' 0 | |
14768 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 14769 | } |
c6b750e1 DJ |
14770 | # Create a (secure) tmp directory for tmp files. |
14771 | ||
14772 | { | |
81ecdfbb | 14773 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
c6b750e1 DJ |
14774 | test -n "$tmp" && test -d "$tmp" |
14775 | } || | |
14776 | { | |
81ecdfbb RW |
14777 | tmp=./conf$$-$RANDOM |
14778 | (umask 077 && mkdir "$tmp") | |
14779 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
14780 | ||
14781 | # Set up the scripts for CONFIG_FILES section. | |
14782 | # No need to generate them if there are no CONFIG_FILES. | |
14783 | # This happens for instance with `./config.status config.h'. | |
14784 | if test -n "$CONFIG_FILES"; then | |
14785 | ||
14786 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
14787 | ac_cs_awk_getline=: | |
14788 | ac_cs_awk_pipe_init= | |
14789 | ac_cs_awk_read_file=' | |
14790 | while ((getline aline < (F[key])) > 0) | |
14791 | print(aline) | |
14792 | close(F[key])' | |
14793 | ac_cs_awk_pipe_fini= | |
14794 | else | |
14795 | ac_cs_awk_getline=false | |
14796 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
14797 | ac_cs_awk_read_file=' | |
14798 | print "|#_!!_#|" | |
14799 | print "cat " F[key] " &&" | |
14800 | '$ac_cs_awk_pipe_init | |
14801 | # The final `:' finishes the AND list. | |
14802 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
14803 | fi | |
14804 | ac_cr=`echo X | tr X '\015'` | |
14805 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
14806 | # But we know of no other shell where ac_cr would be empty at this | |
14807 | # point, so we can use a bashism as a fallback. | |
14808 | if test "x$ac_cr" = x; then | |
14809 | eval ac_cr=\$\'\\r\' | |
14810 | fi | |
14811 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
14812 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
14813 | ac_cs_awk_cr='\r' | |
14814 | else | |
14815 | ac_cs_awk_cr=$ac_cr | |
14816 | fi | |
14817 | ||
14818 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
14819 | _ACEOF | |
14820 | ||
14821 | # Create commands to substitute file output variables. | |
c6b750e1 | 14822 | { |
81ecdfbb RW |
14823 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
14824 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
14825 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
14826 | echo "_ACAWK" && | |
14827 | echo "_ACEOF" | |
14828 | } >conf$$files.sh && | |
14829 | . ./conf$$files.sh || | |
14830 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14831 | rm -f conf$$files.sh | |
c6b750e1 | 14832 | |
81ecdfbb RW |
14833 | { |
14834 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
14835 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
14836 | echo "_ACEOF" | |
14837 | } >conf$$subs.sh || | |
14838 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14839 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
14840 | ac_delim='%!_!# ' | |
14841 | for ac_last_try in false false false false false :; do | |
14842 | . ./conf$$subs.sh || | |
14843 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14844 | ||
14845 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
14846 | if test $ac_delim_n = $ac_delim_num; then | |
14847 | break | |
14848 | elif $ac_last_try; then | |
14849 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14850 | else | |
14851 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14852 | fi | |
14853 | done | |
14854 | rm -f conf$$subs.sh | |
14855 | ||
14856 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14857 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
c6b750e1 | 14858 | _ACEOF |
81ecdfbb RW |
14859 | sed -n ' |
14860 | h | |
14861 | s/^/S["/; s/!.*/"]=/ | |
14862 | p | |
14863 | g | |
14864 | s/^[^!]*!// | |
14865 | :repl | |
14866 | t repl | |
14867 | s/'"$ac_delim"'$// | |
14868 | t delim | |
14869 | :nl | |
14870 | h | |
14871 | s/\(.\{148\}\).*/\1/ | |
14872 | t more1 | |
14873 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
14874 | p | |
14875 | n | |
14876 | b repl | |
14877 | :more1 | |
14878 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14879 | p | |
14880 | g | |
14881 | s/.\{148\}// | |
14882 | t nl | |
14883 | :delim | |
14884 | h | |
14885 | s/\(.\{148\}\).*/\1/ | |
14886 | t more2 | |
14887 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
14888 | p | |
14889 | b | |
14890 | :more2 | |
14891 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14892 | p | |
14893 | g | |
14894 | s/.\{148\}// | |
14895 | t delim | |
14896 | ' <conf$$subs.awk | sed ' | |
14897 | /^[^""]/{ | |
14898 | N | |
14899 | s/\n// | |
14900 | } | |
14901 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
14902 | rm -f conf$$subs.awk | |
14903 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14904 | _ACAWK | |
14905 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
14906 | for (key in S) S_is_set[key] = 1 | |
14907 | FS = "\a" | |
14908 | \$ac_cs_awk_pipe_init | |
14909 | } | |
14910 | { | |
14911 | line = $ 0 | |
14912 | nfields = split(line, field, "@") | |
14913 | substed = 0 | |
14914 | len = length(field[1]) | |
14915 | for (i = 2; i < nfields; i++) { | |
14916 | key = field[i] | |
14917 | keylen = length(key) | |
14918 | if (S_is_set[key]) { | |
14919 | value = S[key] | |
14920 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
14921 | len += length(value) + length(field[++i]) | |
14922 | substed = 1 | |
14923 | } else | |
14924 | len += 1 + keylen | |
14925 | } | |
14926 | if (nfields == 3 && !substed) { | |
14927 | key = field[2] | |
14928 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
14929 | \$ac_cs_awk_read_file | |
14930 | next | |
14931 | } | |
14932 | } | |
14933 | print line | |
14934 | } | |
14935 | \$ac_cs_awk_pipe_fini | |
14936 | _ACAWK | |
14937 | _ACEOF | |
14938 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14939 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
14940 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
14941 | else | |
14942 | cat | |
14943 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
14944 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
14945 | _ACEOF | |
14946 | ||
14947 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
14948 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
14949 | # trailing colons and then remove the whole line if VPATH becomes empty | |
14950 | # (actually we leave an empty line to preserve line numbers). | |
14951 | if test "x$srcdir" = x.; then | |
14952 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
14953 | s/:*\$(srcdir):*/:/ | |
14954 | s/:*\${srcdir}:*/:/ | |
14955 | s/:*@srcdir@:*/:/ | |
14956 | s/^\([^=]*=[ ]*\):*/\1/ | |
14957 | s/:*$// | |
14958 | s/^[^=]*=[ ]*$// | |
14959 | }' | |
14960 | fi | |
c6b750e1 | 14961 | |
81ecdfbb RW |
14962 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14963 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 14964 | |
c6b750e1 | 14965 | |
81ecdfbb RW |
14966 | eval set X " :F $CONFIG_FILES " |
14967 | shift | |
14968 | for ac_tag | |
14969 | do | |
14970 | case $ac_tag in | |
14971 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14972 | esac | |
14973 | case $ac_mode$ac_tag in | |
14974 | :[FHL]*:*);; | |
14975 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
14976 | :[FH]-) ac_tag=-:-;; | |
14977 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
14978 | esac | |
14979 | ac_save_IFS=$IFS | |
14980 | IFS=: | |
14981 | set x $ac_tag | |
14982 | IFS=$ac_save_IFS | |
14983 | shift | |
14984 | ac_file=$1 | |
14985 | shift | |
252b5132 | 14986 | |
81ecdfbb RW |
14987 | case $ac_mode in |
14988 | :L) ac_source=$1;; | |
14989 | :[FH]) | |
14990 | ac_file_inputs= | |
14991 | for ac_f | |
14992 | do | |
14993 | case $ac_f in | |
14994 | -) ac_f="$tmp/stdin";; | |
14995 | *) # Look for the file first in the build tree, then in the source tree | |
14996 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
14997 | # because $ac_f cannot contain `:'. | |
14998 | test -f "$ac_f" || | |
14999 | case $ac_f in | |
15000 | [\\/$]*) false;; | |
15001 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15002 | esac || | |
15003 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15004 | esac | |
15005 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15006 | as_fn_append ac_file_inputs " '$ac_f'" | |
15007 | done | |
c6b750e1 | 15008 | |
81ecdfbb RW |
15009 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15010 | # use $as_me), people would be surprised to read: | |
15011 | # /* config.h. Generated by config.status. */ | |
15012 | configure_input='Generated from '` | |
15013 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15014 | `' by configure.' | |
15015 | if test x"$ac_file" != x-; then | |
15016 | configure_input="$ac_file. $configure_input" | |
15017 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15018 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 15019 | fi |
81ecdfbb RW |
15020 | # Neutralize special characters interpreted by sed in replacement strings. |
15021 | case $configure_input in #( | |
15022 | *\&* | *\|* | *\\* ) | |
15023 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15024 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15025 | *) ac_sed_conf_input=$configure_input;; | |
15026 | esac | |
cac3d6c4 | 15027 | |
81ecdfbb RW |
15028 | case $ac_tag in |
15029 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15030 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15031 | esac | |
15032 | ;; | |
a0da8069 | 15033 | esac |
252b5132 | 15034 | |
81ecdfbb | 15035 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
15036 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15037 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15038 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15039 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15040 | $as_echo X"$ac_file" | | |
15041 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15042 | s//\1/ | |
15043 | q | |
15044 | } | |
15045 | /^X\(\/\/\)[^/].*/{ | |
15046 | s//\1/ | |
15047 | q | |
15048 | } | |
15049 | /^X\(\/\/\)$/{ | |
15050 | s//\1/ | |
15051 | q | |
15052 | } | |
15053 | /^X\(\/\).*/{ | |
15054 | s//\1/ | |
15055 | q | |
15056 | } | |
15057 | s/.*/./; q'` | |
15058 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 15059 | ac_builddir=. |
252b5132 | 15060 | |
81ecdfbb RW |
15061 | case "$ac_dir" in |
15062 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15063 | *) | |
15064 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15065 | # A ".." for each directory in $ac_dir_suffix. | |
15066 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15067 | case $ac_top_builddir_sub in | |
15068 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15069 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15070 | esac ;; | |
15071 | esac | |
15072 | ac_abs_top_builddir=$ac_pwd | |
15073 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15074 | # for backward compatibility: | |
15075 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
15076 | |
15077 | case $srcdir in | |
81ecdfbb | 15078 | .) # We are building in place. |
c6b750e1 | 15079 | ac_srcdir=. |
81ecdfbb RW |
15080 | ac_top_srcdir=$ac_top_builddir_sub |
15081 | ac_abs_top_srcdir=$ac_pwd ;; | |
15082 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 15083 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15084 | ac_top_srcdir=$srcdir |
15085 | ac_abs_top_srcdir=$srcdir ;; | |
15086 | *) # Relative name. | |
15087 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15088 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15089 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 15090 | esac |
81ecdfbb | 15091 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 15092 | |
252b5132 | 15093 | |
81ecdfbb RW |
15094 | case $ac_mode in |
15095 | :F) | |
15096 | # | |
15097 | # CONFIG_FILE | |
15098 | # | |
c6b750e1 DJ |
15099 | |
15100 | case $INSTALL in | |
15101 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 15102 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 15103 | esac |
81ecdfbb | 15104 | _ACEOF |
252b5132 | 15105 | |
81ecdfbb RW |
15106 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15107 | # If the template does not know about datarootdir, expand it. | |
15108 | # FIXME: This hack should be removed a few years after 2.60. | |
15109 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15110 | ac_sed_dataroot=' | |
15111 | /datarootdir/ { | |
15112 | p | |
15113 | q | |
15114 | } | |
15115 | /@datadir@/p | |
15116 | /@docdir@/p | |
15117 | /@infodir@/p | |
15118 | /@localedir@/p | |
15119 | /@mandir@/p' | |
15120 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15121 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15122 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15123 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15124 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 15125 | _ACEOF |
81ecdfbb RW |
15126 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15127 | ac_datarootdir_hack=' | |
15128 | s&@datadir@&$datadir&g | |
15129 | s&@docdir@&$docdir&g | |
15130 | s&@infodir@&$infodir&g | |
15131 | s&@localedir@&$localedir&g | |
15132 | s&@mandir@&$mandir&g | |
15133 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15134 | esac | |
15135 | _ACEOF | |
15136 | ||
15137 | # Neutralize VPATH when `$srcdir' = `.'. | |
15138 | # Shell code in configure.ac might set extrasub. | |
15139 | # FIXME: do we really want to maintain this feature? | |
15140 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15141 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
15142 | $extrasub |
15143 | _ACEOF | |
81ecdfbb | 15144 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
15145 | :t |
15146 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
15147 | s|@configure_input@|$ac_sed_conf_input|;t t |
15148 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15149 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15150 | s&@srcdir@&$ac_srcdir&;t t | |
15151 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15152 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15153 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15154 | s&@builddir@&$ac_builddir&;t t | |
15155 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15156 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15157 | s&@INSTALL@&$ac_INSTALL&;t t | |
15158 | $ac_datarootdir_hack | |
15159 | " | |
15160 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15161 | if $ac_cs_awk_getline; then | |
15162 | $AWK -f "$tmp/subs.awk" | |
15163 | else | |
15164 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15165 | fi >$tmp/out \ | |
15166 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15167 | ||
15168 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15169 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15170 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15171 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15172 | which seems to be undefined. Please make sure it is defined." >&5 | |
15173 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15174 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15175 | ||
15176 | rm -f "$tmp/stdin" | |
15177 | case $ac_file in | |
15178 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
15179 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15180 | esac \ | |
15181 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15182 | ;; | |
c148b4cb | 15183 | |
c148b4cb | 15184 | |
c148b4cb | 15185 | |
81ecdfbb RW |
15186 | esac |
15187 | ||
06a51eac RW |
15188 | |
15189 | case $ac_file$ac_mode in | |
15190 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15191 | sed "$extrasub_host" | | |
15192 | sed "$extrasub_target" > mf$$ | |
15193 | mv -f mf$$ Makefile ;; | |
15194 | ||
15195 | esac | |
81ecdfbb RW |
15196 | done # for ac_tag |
15197 | ||
15198 | ||
15199 | as_fn_exit 0 | |
c6b750e1 | 15200 | _ACEOF |
c6b750e1 DJ |
15201 | ac_clean_files=$ac_clean_files_save |
15202 | ||
81ecdfbb RW |
15203 | test $ac_write_fail = 0 || |
15204 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15205 | ||
c6b750e1 DJ |
15206 | |
15207 | # configure is writing to config.log, and then calls config.status. | |
15208 | # config.status does its own redirection, appending to config.log. | |
15209 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15210 | # by configure, so config.status won't be able to write to it; its | |
15211 | # output is simply discarded. So we exec the FD to /dev/null, | |
15212 | # effectively closing config.log, so it can be properly (re)opened and | |
15213 | # appended to by config.status. When coming back to configure, we | |
15214 | # need to make the FD available again. | |
15215 | if test "$no_create" != yes; then | |
15216 | ac_cs_success=: | |
15217 | ac_config_status_args= | |
15218 | test "$silent" = yes && | |
15219 | ac_config_status_args="$ac_config_status_args --quiet" | |
15220 | exec 5>/dev/null | |
15221 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15222 | exec 5>>config.log | |
15223 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15224 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
15225 | $ac_cs_success || as_fn_exit $? |
15226 | fi | |
15227 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15228 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15229 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 15230 | fi |
c148b4cb | 15231 |