Commit | Line | Data |
---|---|---|
a0da8069 | 1 | #! /bin/sh |
a0da8069 | 2 | # Guess values for system-dependent variables and create Makefiles. |
81ecdfbb RW |
3 | # Generated by GNU Autoconf 2.64. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
a0da8069 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
c6b750e1 | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
c6b750e1 | 31 | fi |
c6b750e1 | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
c6b750e1 DJ |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
c6b750e1 DJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
8e957354 PB |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
81ecdfbb RW |
173 | if (eval "$as_required") 2>/dev/null; then : |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
c6b750e1 | 184 | do |
81ecdfbb RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
c6b750e1 | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
c6b750e1 | 233 | fi |
81ecdfbb RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
c6b750e1 | 263 | |
81ecdfbb RW |
264 | # as_fn_exit STATUS |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
372 | ||
373 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
c6b750e1 | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
c6b750e1 | 410 | |
c6b750e1 DJ |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
417 | ||
c6b750e1 | 418 | |
81ecdfbb RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
c6b750e1 | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
c6b750e1 | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c6b750e1 | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
c6b750e1 | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
c6b750e1 DJ |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
c6b750e1 DJ |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
c6b750e1 DJ |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
c6b750e1 | 483 | fi |
c6b750e1 DJ |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
c6b750e1 DJ |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
81ecdfbb RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
519 | |
520 | # Sed expression to map a string onto a valid CPP name. | |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
81ecdfbb | 527 | exec 7<&0 </dev/null 6>&1 |
a0da8069 | 528 | |
c6b750e1 DJ |
529 | # Name of the host. |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
c6b750e1 DJ |
534 | # |
535 | # Initializations. | |
536 | # | |
a0da8069 | 537 | ac_default_prefix=/usr/local |
81ecdfbb | 538 | ac_clean_files= |
c6b750e1 | 539 | ac_config_libobj_dir=. |
81ecdfbb | 540 | LIBOBJS= |
c6b750e1 DJ |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
c6b750e1 DJ |
545 | |
546 | # Identity of this package. | |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
81ecdfbb | 552 | PACKAGE_URL= |
c6b750e1 DJ |
553 | |
554 | ac_unique_file="move-if-change" | |
81ecdfbb RW |
555 | enable_option_checking=no |
556 | ac_subst_vars='LTLIBOBJS | |
557 | LIBOBJS | |
558 | compare_exclusions | |
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 | ;; | |
99c513f6 DD |
3068 | rl78-*-*) |
3069 | # Dereferencing -1 is a compile-time error | |
3070 | noconfigdirs="$noconfigdirs target-libssp" | |
3071 | ;; | |
065a5627 JM |
3072 | esac |
3073 | ||
065a5627 JM |
3074 | # Disable libstdc++-v3 for some systems. |
3075 | case "${target}" in | |
3076 | *-*-vxworks*) | |
3077 | # VxWorks uses the Dinkumware C++ library. | |
3078 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3079 | ;; | |
3080 | arm*-wince-pe*) | |
3081 | # the C++ libraries don't build on top of CE's C libraries | |
3082 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3083 | ;; | |
3084 | avr-*-*) | |
3085 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3086 | ;; | |
3087 | esac | |
3088 | ||
3089 | # Disable Fortran for some systems. | |
3090 | case "${target}" in | |
3091 | mmix-*-*) | |
3092 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3093 | unsupported_languages="$unsupported_languages fortran" | |
3094 | ;; | |
3095 | esac | |
3096 | ||
0827f9a6 | 3097 | # Disable Java if libffi is not supported. |
9863d716 | 3098 | case "${target}" in |
0827f9a6 JM |
3099 | alpha*-*-*) |
3100 | ;; | |
3101 | arm*-*-*) | |
3102 | ;; | |
3103 | cris-*-*) | |
3104 | ;; | |
3105 | frv-*-*) | |
3106 | ;; | |
3107 | hppa*-*-linux*) | |
3108 | ;; | |
3109 | hppa*-*-hpux*) | |
3110 | ;; | |
3111 | i?86-*-*) | |
3112 | ;; | |
3113 | ia64*-*-*) | |
3114 | ;; | |
3115 | m32r*-*-*) | |
3116 | ;; | |
3117 | m68k-*-*) | |
3118 | ;; | |
3119 | mips-sgi-irix6.* | mips*-*-rtems*) | |
3120 | ;; | |
3121 | mips*-*-linux*) | |
3122 | ;; | |
3123 | powerpc*-*-linux*) | |
3124 | ;; | |
3125 | powerpc-*-darwin*) | |
3126 | ;; | |
3127 | powerpc-*-aix* | rs6000-*-aix*) | |
3128 | ;; | |
3129 | powerpc-*-freebsd*) | |
3130 | ;; | |
3131 | powerpc64-*-freebsd*) | |
3132 | ;; | |
3133 | powerpc*-*-rtems*) | |
9863d716 | 3134 | ;; |
0827f9a6 JM |
3135 | s390-*-* | s390x-*-*) |
3136 | ;; | |
3137 | sh-*-* | sh[34]*-*-*) | |
3138 | ;; | |
3139 | sh64-*-* | sh5*-*-*) | |
3140 | ;; | |
3141 | sparc*-*-*) | |
3142 | ;; | |
3143 | x86_64-*-*) | |
3144 | ;; | |
3145 | *-*-*) | |
3146 | unsupported_languages="$unsupported_languages java" | |
3147 | ;; | |
3148 | esac | |
3149 | ||
3150 | # Disable Java, libgcj or related libraries for some systems. | |
3151 | case "${target}" in | |
9863d716 JM |
3152 | powerpc-*-darwin*) |
3153 | ;; | |
3154 | i[3456789]86-*-darwin*) | |
3155 | ;; | |
3156 | x86_64-*-darwin[912]*) | |
3157 | ;; | |
3158 | *-*-darwin*) | |
3159 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3160 | ;; | |
9863d716 JM |
3161 | *-*-netware*) |
3162 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3163 | ;; | |
3164 | *-*-rtems*) | |
3165 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3166 | ;; | |
3167 | *-*-tpf*) | |
3168 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3169 | ;; | |
3170 | *-*-uclinux*) | |
3171 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3172 | ;; | |
3173 | *-*-vxworks*) | |
3174 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3175 | ;; | |
9863d716 JM |
3176 | alpha*-*-*vms*) |
3177 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3178 | ;; | |
0827f9a6 | 3179 | arm-wince-pe) |
9863d716 JM |
3180 | noconfigdirs="$noconfigdirs ${libgcj}" |
3181 | ;; | |
9863d716 JM |
3182 | arm*-*-symbianelf*) |
3183 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3184 | ;; | |
9863d716 | 3185 | bfin-*-*) |
9863d716 JM |
3186 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3187 | ;; | |
9863d716 JM |
3188 | cris-*-* | crisv32-*-*) |
3189 | unsupported_languages="$unsupported_languages java" | |
3190 | case "${target}" in | |
3191 | *-*-linux*) | |
3192 | ;; | |
3193 | *) # See PR46792 regarding target-libffi. | |
3194 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3195 | esac | |
3196 | ;; | |
9863d716 JM |
3197 | hppa*64*-*-linux*) |
3198 | # In this case, it's because the hppa64-linux target is for | |
3199 | # the kernel only at this point and has no libc, and thus no | |
3200 | # headers, crt*.o, etc., all of which are needed by these. | |
82ae827f | 3201 | unsupported_languages="$unsupported_languages java" |
9863d716 | 3202 | ;; |
82ae827f | 3203 | hppa*64*-*-hpux*) |
9863d716 JM |
3204 | noconfigdirs="$noconfigdirs ${libgcj}" |
3205 | ;; | |
3206 | hppa*-hp-hpux11*) | |
3207 | ;; | |
82ae827f | 3208 | hppa*-*-hpux*) |
9863d716 JM |
3209 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't |
3210 | # build on HP-UX 10.20. | |
3211 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3212 | ;; | |
9863d716 JM |
3213 | ia64*-*-*vms*) |
3214 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3215 | ;; | |
9863d716 JM |
3216 | i[3456789]86-w64-mingw*) |
3217 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3218 | ;; | |
3219 | i[3456789]86-*-mingw*) | |
3220 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3221 | ;; | |
3222 | x86_64-*-mingw*) | |
3223 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3224 | ;; | |
9863d716 JM |
3225 | mmix-*-*) |
3226 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
9863d716 JM |
3227 | ;; |
3228 | powerpc-*-aix*) | |
3229 | # copied from rs6000-*-* entry | |
3230 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3231 | ;; | |
9863d716 JM |
3232 | rs6000-*-aix*) |
3233 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3234 | ;; | |
9863d716 JM |
3235 | mips*-*-irix6*) |
3236 | # Linking libjava exceeds command-line length limits on at least | |
3237 | # IRIX 6.2, but not on IRIX 6.5. | |
3238 | # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham | |
3239 | # <oldham@codesourcery.com> | |
3240 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3241 | ;; | |
9863d716 JM |
3242 | *-*-lynxos*) |
3243 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3244 | ;; | |
9863d716 JM |
3245 | esac |
3246 | ||
691bb5a1 DD |
3247 | # Default libgloss CPU subdirectory. |
3248 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3249 | |
ff46fb8f JM |
3250 | case "${target}" in |
3251 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3252 | libgloss_dir=wince | |
3253 | ;; | |
3254 | arm*-*-*) | |
3255 | libgloss_dir=arm | |
3256 | ;; | |
3257 | cris-*-* | crisv32-*-*) | |
3258 | libgloss_dir=cris | |
3259 | ;; | |
3260 | hppa*-*-*) | |
3261 | libgloss_dir=pa | |
3262 | ;; | |
3263 | i[3456789]86-*-*) | |
3264 | libgloss_dir=i386 | |
3265 | ;; | |
3266 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3267 | libgloss_dir=m68hc11 | |
3268 | ;; | |
3269 | m68*-*-* | fido-*-*) | |
3270 | libgloss_dir=m68k | |
3271 | ;; | |
3272 | mips*-*-*) | |
3273 | libgloss_dir=mips | |
3274 | ;; | |
3275 | powerpc*-*-*) | |
3276 | libgloss_dir=rs6000 | |
3277 | ;; | |
3278 | sparc*-*-*) | |
3279 | libgloss_dir=sparc | |
3280 | ;; | |
3281 | esac | |
3282 | ||
c7e4b184 | 3283 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3284 | case "${target}" in |
c7e4b184 JM |
3285 | alpha*-dec-osf*) |
3286 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3287 | ;; | |
3288 | i[3456789]86-*-linux*) | |
3289 | # This section makes it possible to build newlib natively on linux. | |
3290 | # If we are using a cross compiler then don't configure newlib. | |
3291 | if test x${is_cross_compiler} != xno ; then | |
3292 | noconfigdirs="$noconfigdirs target-newlib" | |
3293 | fi | |
3294 | noconfigdirs="$noconfigdirs target-libgloss" | |
3295 | # If we are not using a cross compiler, do configure newlib. | |
3296 | # Note however, that newlib will only be configured in this situation | |
3297 | # if the --with-newlib option has been given, because otherwise | |
3298 | # 'target-newlib' will appear in skipdirs. | |
3299 | ;; | |
3300 | i[3456789]86-*-rdos*) | |
3301 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3302 | ;; | |
3303 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3304 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3305 | ;; | |
3306 | sparc-*-sunos4*) | |
3307 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3308 | ;; | |
3309 | *-*-aix*) | |
3310 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3311 | ;; | |
3312 | *-*-beos*) | |
3313 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3314 | ;; | |
a0da8069 | 3315 | *-*-chorusos) |
b2f14e4a | 3316 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3317 | ;; |
c7e4b184 JM |
3318 | *-*-dragonfly*) |
3319 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3320 | ;; | |
3321 | *-*-freebsd*) | |
3322 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3323 | ;; | |
3324 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3325 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3326 | ;; | |
3327 | *-*-lynxos*) | |
3328 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3329 | ;; | |
3330 | *-*-mingw*) | |
3331 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3332 | ;; | |
3333 | *-*-netbsd*) | |
3334 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3335 | ;; | |
3336 | *-*-netware*) | |
3337 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3338 | ;; | |
3339 | *-*-tpf*) | |
3340 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3341 | ;; | |
3342 | *-*-uclinux*) | |
3343 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3344 | ;; | |
3345 | *-*-vxworks*) | |
3346 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3347 | ;; | |
3348 | esac | |
3349 | ||
3350 | case "${target}" in | |
3351 | *-*-chorusos) | |
3352 | ;; | |
24741ab2 | 3353 | powerpc-*-darwin*) |
9d39db92 | 3354 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3355 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3356 | ;; |
85bd1942 TG |
3357 | i[3456789]86-*-darwin*) |
3358 | noconfigdirs="$noconfigdirs ld gprof" | |
3359 | noconfigdirs="$noconfigdirs sim target-rda" | |
3360 | ;; | |
e8a5fa9c | 3361 | x86_64-*-darwin[912]*) |
652dec25 TG |
3362 | noconfigdirs="$noconfigdirs ld gas gprof" |
3363 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3364 | ;; |
04d1ab34 | 3365 | *-*-darwin*) |
d320aacb | 3366 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3367 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3368 | ;; |
5b806d27 | 3369 | *-*-dragonfly*) |
5b806d27 | 3370 | ;; |
de0b4a87 | 3371 | *-*-freebsd*) |
4b1cb4fe DD |
3372 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3373 | && test -f /usr/local/include/gmp.h; then | |
3374 | with_gmp=/usr/local | |
3375 | fi | |
4b1cb4fe | 3376 | ;; |
f8a495c8 NC |
3377 | *-*-kaos*) |
3378 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3379 | noconfigdirs="$noconfigdirs target-libgloss" |
3380 | ;; | |
a0da8069 | 3381 | *-*-netbsd*) |
a0da8069 | 3382 | ;; |
2a3124ca | 3383 | *-*-netware*) |
a0da8069 NN |
3384 | ;; |
3385 | *-*-rtems*) | |
9863d716 | 3386 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3387 | ;; |
1587117a EC |
3388 | # The tpf target doesn't support gdb yet. |
3389 | *-*-tpf*) | |
c7e4b184 | 3390 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3391 | ;; |
c1968181 | 3392 | *-*-uclinux*) |
c7e4b184 | 3393 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3394 | ;; |
a0da8069 | 3395 | *-*-vxworks*) |
a0da8069 NN |
3396 | ;; |
3397 | alpha*-dec-osf*) | |
3398 | # ld works, but does not support shared libraries. | |
a0da8069 | 3399 | # gas doesn't generate exception information. |
c7e4b184 | 3400 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3401 | ;; |
3402 | alpha*-*-*vms*) | |
9863d716 | 3403 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3404 | ;; |
a0da8069 NN |
3405 | alpha*-*-*) |
3406 | # newlib is not 64 bit ready | |
9863d716 | 3407 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3408 | ;; |
a0da8069 | 3409 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3410 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 NN |
3411 | ;; |
3412 | arc-*-*) | |
782cb41f | 3413 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3414 | ;; |
a0da8069 | 3415 | arm-*-pe*) |
9863d716 | 3416 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3417 | ;; |
a0da8069 | 3418 | arm-*-riscix*) |
b2f14e4a | 3419 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3420 | ;; |
a0da8069 | 3421 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3422 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3423 | ;; |
b2f14e4a JM |
3424 | tic54x-*-*) |
3425 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3426 | ;; |
52310858 | 3427 | cr16-*-*) |
9863d716 | 3428 | noconfigdirs="$noconfigdirs gdb" |
52310858 | 3429 | ;; |
a0da8069 | 3430 | d10v-*-*) |
b2f14e4a | 3431 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3432 | ;; |
3433 | d30v-*-*) | |
b2f14e4a | 3434 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3435 | ;; |
3436 | fr30-*-elf*) | |
9863d716 | 3437 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3438 | ;; |
20135e4c | 3439 | moxie-*-*) |
20135e4c NC |
3440 | noconfigdirs="$noconfigdirs gprof" |
3441 | ;; | |
a0da8069 | 3442 | h8300*-*-*) |
9863d716 | 3443 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3444 | ;; |
3445 | h8500-*-*) | |
b2f14e4a | 3446 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3447 | ;; |
caeba88f | 3448 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3449 | ;; |
93cc359e | 3450 | hppa*64*-*-linux*) |
a0da8069 | 3451 | ;; |
f0ff0f90 | 3452 | hppa*-*-linux*) |
5dcac624 | 3453 | ;; |
a0da8069 | 3454 | hppa*-*-*elf* | \ |
a0da8069 NN |
3455 | hppa*-*-lites* | \ |
3456 | hppa*-*-openbsd* | \ | |
3457 | hppa*64*-*-*) | |
4f0ef2d8 CD |
3458 | ;; |
3459 | hppa*-hp-hpux11*) | |
0377a422 | 3460 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3461 | ;; |
691bb5a1 | 3462 | hppa*-*-pro*) |
691bb5a1 | 3463 | ;; |
a0da8069 | 3464 | hppa*-*-*) |
9863d716 | 3465 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3466 | ;; |
b07c2aad | 3467 | i960-*-*) |
b2f14e4a | 3468 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3469 | ;; |
a0da8069 NN |
3470 | ia64*-*-elf*) |
3471 | # No gdb support yet. | |
0377a422 | 3472 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3473 | ;; |
3474 | ia64*-**-hpux*) | |
92c9a463 | 3475 | # No ld support yet. |
9863d716 | 3476 | noconfigdirs="$noconfigdirs libgui itcl ld" |
a0da8069 | 3477 | ;; |
19e99079 NC |
3478 | ia64*-*-*vms*) |
3479 | # No gdb or ld support yet. | |
9863d716 | 3480 | noconfigdirs="$noconfigdirs readline libgui itcl gdb ld" |
19e99079 | 3481 | ;; |
1f53ca9a | 3482 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3483 | ;; |
3484 | i[3456789]86-*-mingw*) | |
45055374 | 3485 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3486 | ;; |
a0da8069 NN |
3487 | *-*-cygwin*) |
3488 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3489 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3490 | # always build newlib if winsup directory is present. |
45055374 | 3491 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3492 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3493 | elif test -d "$srcdir/newlib"; then |
45055374 | 3494 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3495 | fi |
c6b750e1 | 3496 | ;; |
ec11bdc6 | 3497 | i[3456789]86-*-pe) |
782cb41f | 3498 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3499 | ;; |
ec11bdc6 | 3500 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3501 | # The linker does not yet know about weak symbols in COFF, |
3502 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3503 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3504 | ;; |
ec11bdc6 | 3505 | i[3456789]86-*-sco*) |
b2f14e4a | 3506 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3507 | ;; |
cff32a7c | 3508 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
a0da8069 NN |
3509 | noconfigdirs="$noconfigdirs target-libgloss" |
3510 | ;; | |
ec11bdc6 | 3511 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3512 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3513 | ;; |
ec11bdc6 | 3514 | i[3456789]86-*-beos*) |
c7e4b184 | 3515 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3516 | ;; |
b59bea8a | 3517 | i[3456789]86-*-rdos*) |
c7e4b184 | 3518 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3519 | ;; |
a0da8069 | 3520 | mmix-*-*) |
9863d716 | 3521 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3522 | ;; |
4970f871 | 3523 | mt-*-*) |
cdb9b172 AH |
3524 | noconfigdirs="$noconfigdirs sim" |
3525 | ;; | |
a0da8069 NN |
3526 | powerpc-*-aix*) |
3527 | # copied from rs6000-*-* entry | |
c7e4b184 | 3528 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3529 | ;; |
93cc359e | 3530 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 3531 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 3532 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
3533 | # always build newlib. |
3534 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3535 | ;; | |
3536 | # This is temporary until we can link against shared libraries | |
3537 | powerpcle-*-solaris*) | |
b2f14e4a | 3538 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
3539 | ;; |
3540 | powerpc-*-beos*) | |
c7e4b184 | 3541 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3542 | ;; |
a0da8069 | 3543 | rs6000-*-lynxos*) |
c7e4b184 | 3544 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3545 | ;; |
3546 | rs6000-*-aix*) | |
c7e4b184 | 3547 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3548 | ;; |
3549 | rs6000-*-*) | |
9863d716 | 3550 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3551 | ;; |
3552 | m68k-apollo-*) | |
b2f14e4a | 3553 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 3554 | ;; |
25a07265 | 3555 | microblaze*) |
9863d716 | 3556 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 3557 | ;; |
5bd8be13 | 3558 | mips*-sde-elf*) |
5bd8be13 RS |
3559 | if test x$with_newlib = xyes; then |
3560 | noconfigdirs="$noconfigdirs gprof" | |
3561 | fi | |
5bd8be13 | 3562 | ;; |
a0da8069 | 3563 | mips*-*-irix5*) |
b2f14e4a | 3564 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
3565 | ;; |
3566 | mips*-*-irix6*) | |
9863d716 | 3567 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3568 | ;; |
a0da8069 | 3569 | mips*-*-bsd*) |
b2f14e4a | 3570 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3571 | ;; |
a0da8069 | 3572 | mips*-*-linux*) |
a0da8069 NN |
3573 | ;; |
3574 | mips*-*-*) | |
9863d716 | 3575 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3576 | ;; |
dbf85af7 | 3577 | sh-*-* | sh64-*-*) |
e8a5fa9c RW |
3578 | case "${target}" in |
3579 | sh*-*-elf) | |
9863d716 | 3580 | ;; |
e8a5fa9c | 3581 | *) |
9863d716 | 3582 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 3583 | esac |
a0da8069 | 3584 | ;; |
a0da8069 | 3585 | sparc-*-sunos4*) |
c7e4b184 | 3586 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
3587 | use_gnu_ld=no |
3588 | fi | |
3589 | ;; | |
619a3713 | 3590 | tic6x-*-*) |
40ae9136 | 3591 | noconfigdirs="$noconfigdirs sim" |
619a3713 | 3592 | ;; |
eb4b2452 NC |
3593 | tilepro-*-* | tilegx-*-*) |
3594 | noconfigdirs="$noconfigdirs sim" | |
3595 | ;; | |
a0da8069 | 3596 | v810-*-*) |
b2f14e4a | 3597 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
3598 | ;; |
3599 | vax-*-*) | |
9863d716 | 3600 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3601 | ;; |
a0da8069 | 3602 | esac |
252b5132 | 3603 | |
a0da8069 NN |
3604 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3605 | # depends upon some newlib header files. | |
3606 | case "${noconfigdirs}" in | |
3607 | *target-libgloss*) ;; | |
3608 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3609 | esac | |
3610 | ||
a0da8069 | 3611 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
3612 | host_makefile_frag=/dev/null |
3613 | if test -d ${srcdir}/config ; then | |
3614 | case "${host}" in | |
ec11bdc6 | 3615 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
3616 | host_makefile_frag="config/mh-djgpp" |
3617 | ;; | |
3618 | *-cygwin*) | |
e33b51a6 | 3619 | |
81ecdfbb RW |
3620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3621 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 3622 | echo a >cygwin-cat-check |
1f53ca9a | 3623 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 3624 | rm cygwin-cat-check |
81ecdfbb RW |
3625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3626 | $as_echo "yes" >&6; } | |
e33b51a6 | 3627 | else |
8ade07e9 | 3628 | rm cygwin-cat-check |
81ecdfbb RW |
3629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3630 | $as_echo "no" >&6; } | |
3631 | as_fn_error "The cat command does not ignore carriage return characters. | |
e33b51a6 NC |
3632 | Please either mount the build directory in binary mode or run the following |
3633 | commands before running any configure script: | |
3634 | set -o igncr | |
3635 | export SHELLOPTS | |
81ecdfbb | 3636 | " "$LINENO" 5 |
e33b51a6 | 3637 | fi |
e33b51a6 | 3638 | |
a0da8069 NN |
3639 | host_makefile_frag="config/mh-cygwin" |
3640 | ;; | |
8a1599ab | 3641 | *-mingw*) |
84e7906e | 3642 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 3643 | ;; |
a0da8069 NN |
3644 | *-interix*) |
3645 | host_makefile_frag="config/mh-interix" | |
3646 | ;; | |
da888c87 | 3647 | hppa*-hp-hpux10*) |
da888c87 | 3648 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 3649 | ;; |
3516a403 | 3650 | hppa*-hp-hpux*) |
da888c87 PB |
3651 | host_makefile_frag="config/mh-pa" |
3652 | ;; | |
3653 | hppa*-*) | |
3654 | host_makefile_frag="config/mh-pa" | |
3655 | ;; | |
e552509b ILT |
3656 | *-*-darwin*) |
3657 | host_makefile_frag="config/mh-darwin" | |
0df3d27f | 3658 | ;; |
f6d183c0 PB |
3659 | powerpc-*-aix*) |
3660 | host_makefile_frag="config/mh-ppc-aix" | |
3661 | ;; | |
3662 | rs6000-*-aix*) | |
3663 | host_makefile_frag="config/mh-ppc-aix" | |
3664 | ;; | |
a0da8069 NN |
3665 | esac |
3666 | fi | |
3667 | ||
9e07f89d | 3668 | if test "${build}" != "${host}" ; then |
1576798e PB |
3669 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3670 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 3671 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
1576798e PB |
3672 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3673 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
3674 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
e552509b | 3675 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
1576798e PB |
3676 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3677 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3678 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3679 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3680 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3681 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3682 | else | |
3683 | AR_FOR_BUILD="\$(AR)" | |
3684 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 3685 | CC_FOR_BUILD="\$(CC)" |
1576798e PB |
3686 | CXX_FOR_BUILD="\$(CXX)" |
3687 | GCJ_FOR_BUILD="\$(GCJ)" | |
3688 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
e552509b | 3689 | GOC_FOR_BUILD="\$(GOC)" |
1576798e PB |
3690 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3691 | LD_FOR_BUILD="\$(LD)" | |
3692 | NM_FOR_BUILD="\$(NM)" | |
3693 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3694 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3695 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
3696 | fi |
3697 | ||
3698 | ac_ext=c | |
c6b750e1 DJ |
3699 | ac_cpp='$CPP $CPPFLAGS' |
3700 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3701 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3702 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3703 | if test -n "$ac_tool_prefix"; then | |
3704 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3705 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3707 | $as_echo_n "checking for $ac_word... " >&6; } | |
3708 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3709 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
3710 | else |
3711 | if test -n "$CC"; then | |
3712 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3713 | else | |
3714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3715 | for as_dir in $PATH | |
3716 | do | |
3717 | IFS=$as_save_IFS | |
3718 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3719 | for ac_exec_ext in '' $ac_executable_extensions; do |
3720 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3721 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 3722 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3723 | break 2 |
3724 | fi | |
3725 | done | |
81ecdfbb RW |
3726 | done |
3727 | IFS=$as_save_IFS | |
c6b750e1 DJ |
3728 | |
3729 | fi | |
3730 | fi | |
3731 | CC=$ac_cv_prog_CC | |
3732 | if test -n "$CC"; then | |
81ecdfbb RW |
3733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3734 | $as_echo "$CC" >&6; } | |
c6b750e1 | 3735 | else |
81ecdfbb RW |
3736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3737 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3738 | fi |
3739 | ||
81ecdfbb | 3740 | |
c6b750e1 DJ |
3741 | fi |
3742 | if test -z "$ac_cv_prog_CC"; then | |
3743 | ac_ct_CC=$CC | |
6a9cf61e | 3744 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 3745 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
3746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3747 | $as_echo_n "checking for $ac_word... " >&6; } | |
3748 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3749 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
3750 | else |
3751 | if test -n "$ac_ct_CC"; then | |
3752 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3753 | else | |
3754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3755 | for as_dir in $PATH | |
3756 | do | |
3757 | IFS=$as_save_IFS | |
3758 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3759 | for ac_exec_ext in '' $ac_executable_extensions; do |
3760 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3761 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 3762 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3763 | break 2 |
3764 | fi | |
3765 | done | |
81ecdfbb RW |
3766 | done |
3767 | IFS=$as_save_IFS | |
c6b750e1 DJ |
3768 | |
3769 | fi | |
3770 | fi | |
3771 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3772 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3774 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 3775 | else |
81ecdfbb RW |
3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3777 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3778 | fi |
3779 | ||
81ecdfbb RW |
3780 | if test "x$ac_ct_CC" = x; then |
3781 | CC="" | |
3782 | else | |
3783 | case $cross_compiling:$ac_tool_warned in | |
3784 | yes:) | |
3785 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3786 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3787 | ac_tool_warned=yes ;; | |
3788 | esac | |
3789 | CC=$ac_ct_CC | |
3790 | fi | |
c6b750e1 DJ |
3791 | else |
3792 | CC="$ac_cv_prog_CC" | |
3793 | fi | |
3794 | ||
3795 | if test -z "$CC"; then | |
81ecdfbb RW |
3796 | if test -n "$ac_tool_prefix"; then |
3797 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 3798 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3800 | $as_echo_n "checking for $ac_word... " >&6; } | |
3801 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3802 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
3803 | else |
3804 | if test -n "$CC"; then | |
3805 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3806 | else | |
c6b750e1 DJ |
3807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3808 | for as_dir in $PATH | |
3809 | do | |
3810 | IFS=$as_save_IFS | |
3811 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3812 | for ac_exec_ext in '' $ac_executable_extensions; do |
3813 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3814 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 3815 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3816 | break 2 |
3817 | fi | |
3818 | done | |
81ecdfbb RW |
3819 | done |
3820 | IFS=$as_save_IFS | |
c6b750e1 | 3821 | |
9e07f89d NN |
3822 | fi |
3823 | fi | |
c6b750e1 | 3824 | CC=$ac_cv_prog_CC |
9e07f89d | 3825 | if test -n "$CC"; then |
81ecdfbb RW |
3826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3827 | $as_echo "$CC" >&6; } | |
c6b750e1 | 3828 | else |
81ecdfbb RW |
3829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3830 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3831 | fi |
3832 | ||
c6b750e1 | 3833 | |
81ecdfbb | 3834 | fi |
c6b750e1 | 3835 | fi |
9e07f89d NN |
3836 | if test -z "$CC"; then |
3837 | # Extract the first word of "cc", so it can be a program name with args. | |
3838 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
3839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3840 | $as_echo_n "checking for $ac_word... " >&6; } | |
3841 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3842 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
3843 | else |
3844 | if test -n "$CC"; then | |
3845 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3846 | else | |
9e07f89d | 3847 | ac_prog_rejected=no |
c6b750e1 DJ |
3848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3849 | for as_dir in $PATH | |
3850 | do | |
3851 | IFS=$as_save_IFS | |
3852 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3853 | for ac_exec_ext in '' $ac_executable_extensions; do |
3854 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 DJ |
3855 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3856 | ac_prog_rejected=yes | |
3857 | continue | |
3858 | fi | |
3859 | ac_cv_prog_CC="cc" | |
81ecdfbb | 3860 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3861 | break 2 |
3862 | fi | |
3863 | done | |
81ecdfbb RW |
3864 | done |
3865 | IFS=$as_save_IFS | |
c6b750e1 | 3866 | |
9e07f89d NN |
3867 | if test $ac_prog_rejected = yes; then |
3868 | # We found a bogon in the path, so make sure we never use it. | |
3869 | set dummy $ac_cv_prog_CC | |
3870 | shift | |
c6b750e1 | 3871 | if test $# != 0; then |
9e07f89d NN |
3872 | # We chose a different compiler from the bogus one. |
3873 | # However, it has the same basename, so the bogon will be chosen | |
3874 | # first if we set CC to just the basename; use the full file name. | |
3875 | shift | |
c6b750e1 | 3876 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
3877 | fi |
3878 | fi | |
3879 | fi | |
3880 | fi | |
c6b750e1 | 3881 | CC=$ac_cv_prog_CC |
9e07f89d | 3882 | if test -n "$CC"; then |
81ecdfbb RW |
3883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3884 | $as_echo "$CC" >&6; } | |
9e07f89d | 3885 | else |
81ecdfbb RW |
3886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3887 | $as_echo "no" >&6; } | |
9e07f89d NN |
3888 | fi |
3889 | ||
81ecdfbb | 3890 | |
c6b750e1 DJ |
3891 | fi |
3892 | if test -z "$CC"; then | |
3893 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 3894 | for ac_prog in cl.exe |
c6b750e1 DJ |
3895 | do |
3896 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3897 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
3898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3899 | $as_echo_n "checking for $ac_word... " >&6; } | |
3900 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3901 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
3902 | else |
3903 | if test -n "$CC"; then | |
3904 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3905 | else | |
c6b750e1 DJ |
3906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3907 | for as_dir in $PATH | |
3908 | do | |
3909 | IFS=$as_save_IFS | |
3910 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3911 | for ac_exec_ext in '' $ac_executable_extensions; do |
3912 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3913 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 3914 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 3915 | break 2 |
376a0e54 | 3916 | fi |
c6b750e1 | 3917 | done |
81ecdfbb RW |
3918 | done |
3919 | IFS=$as_save_IFS | |
cac3d6c4 | 3920 | |
c6b750e1 DJ |
3921 | fi |
3922 | fi | |
3923 | CC=$ac_cv_prog_CC | |
3924 | if test -n "$CC"; then | |
81ecdfbb RW |
3925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3926 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 3927 | else |
81ecdfbb RW |
3928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3929 | $as_echo "no" >&6; } | |
9e07f89d | 3930 | fi |
cac3d6c4 | 3931 | |
81ecdfbb | 3932 | |
c6b750e1 DJ |
3933 | test -n "$CC" && break |
3934 | done | |
cac3d6c4 | 3935 | fi |
c6b750e1 DJ |
3936 | if test -z "$CC"; then |
3937 | ac_ct_CC=$CC | |
81ecdfbb | 3938 | for ac_prog in cl.exe |
c6b750e1 DJ |
3939 | do |
3940 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3941 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3943 | $as_echo_n "checking for $ac_word... " >&6; } | |
3944 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3945 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 3946 | else |
c6b750e1 DJ |
3947 | if test -n "$ac_ct_CC"; then |
3948 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 3949 | else |
c6b750e1 DJ |
3950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3951 | for as_dir in $PATH | |
3952 | do | |
3953 | IFS=$as_save_IFS | |
3954 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3955 | for ac_exec_ext in '' $ac_executable_extensions; do |
3956 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3957 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 3958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3959 | break 2 |
3960 | fi | |
3961 | done | |
81ecdfbb RW |
3962 | done |
3963 | IFS=$as_save_IFS | |
c6b750e1 | 3964 | |
cac3d6c4 CM |
3965 | fi |
3966 | fi | |
c6b750e1 DJ |
3967 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3968 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3970 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 3971 | else |
81ecdfbb RW |
3972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3973 | $as_echo "no" >&6; } | |
cac3d6c4 | 3974 | fi |
376a0e54 | 3975 | |
81ecdfbb | 3976 | |
c6b750e1 DJ |
3977 | test -n "$ac_ct_CC" && break |
3978 | done | |
3979 | ||
81ecdfbb RW |
3980 | if test "x$ac_ct_CC" = x; then |
3981 | CC="" | |
3982 | else | |
3983 | case $cross_compiling:$ac_tool_warned in | |
3984 | yes:) | |
3985 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3986 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3987 | ac_tool_warned=yes ;; | |
3988 | esac | |
3989 | CC=$ac_ct_CC | |
3990 | fi | |
c6b750e1 DJ |
3991 | fi |
3992 | ||
3993 | fi | |
3994 | ||
3995 | ||
81ecdfbb RW |
3996 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3997 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3998 | as_fn_error "no acceptable C compiler found in \$PATH | |
3999 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 DJ |
4000 | |
4001 | # Provide some information about the compiler. | |
81ecdfbb RW |
4002 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4003 | set X $ac_compile | |
4004 | ac_compiler=$2 | |
4005 | for ac_option in --version -v -V -qversion; do | |
4006 | { { ac_try="$ac_compiler $ac_option >&5" | |
4007 | case "(($ac_try" in | |
4008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4009 | *) ac_try_echo=$ac_try;; | |
4010 | esac | |
4011 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4012 | $as_echo "$ac_try_echo"; } >&5 | |
4013 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4014 | ac_status=$? |
81ecdfbb RW |
4015 | if test -s conftest.err; then |
4016 | sed '10a\ | |
4017 | ... rest of stderr output deleted ... | |
4018 | 10q' conftest.err >conftest.er1 | |
4019 | cat conftest.er1 >&5 | |
4020 | rm -f conftest.er1 conftest.err | |
4021 | fi | |
4022 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4023 | test $ac_status = 0; } | |
4024 | done | |
c6b750e1 | 4025 | |
81ecdfbb | 4026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4027 | /* end confdefs.h. */ |
4028 | ||
4029 | int | |
4030 | main () | |
4031 | { | |
4032 | ||
4033 | ; | |
4034 | return 0; | |
4035 | } | |
4036 | _ACEOF | |
4037 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 4038 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
c6b750e1 DJ |
4039 | # Try to create an executable without -o first, disregard a.out. |
4040 | # It will help us diagnose broken compilers, and finding out an intuition | |
4041 | # of exeext. | |
81ecdfbb RW |
4042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4043 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4044 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4045 | ||
4046 | # The possible output files: | |
4047 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4048 | ||
4049 | ac_rmfiles= | |
4050 | for ac_file in $ac_files | |
4051 | do | |
4052 | case $ac_file in | |
4053 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4054 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4055 | esac | |
4056 | done | |
4057 | rm -f $ac_rmfiles | |
4058 | ||
4059 | if { { ac_try="$ac_link_default" | |
4060 | case "(($ac_try" in | |
4061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4062 | *) ac_try_echo=$ac_try;; | |
4063 | esac | |
4064 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4065 | $as_echo "$ac_try_echo"; } >&5 | |
4066 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4067 | ac_status=$? |
81ecdfbb RW |
4068 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4069 | test $ac_status = 0; }; then : | |
4070 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4071 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4072 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4073 | # so that the user can short-circuit this test for compilers unknown to | |
4074 | # Autoconf. | |
4075 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4076 | do |
4077 | test -f "$ac_file" || continue | |
4078 | case $ac_file in | |
81ecdfbb | 4079 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4080 | ;; |
4081 | [ab].out ) | |
4082 | # We found the default executable, but exeext='' is most | |
4083 | # certainly right. | |
4084 | break;; | |
4085 | *.* ) | |
81ecdfbb RW |
4086 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4087 | then :; else | |
4088 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4089 | fi | |
4090 | # We set ac_cv_exeext here because the later test for it is not | |
4091 | # safe: cross compilers may not add the suffix if given an `-o' | |
4092 | # argument, so we may need to know it at that point already. | |
4093 | # Even if this section looks crufty: it has the advantage of | |
4094 | # actually working. | |
c6b750e1 DJ |
4095 | break;; |
4096 | * ) | |
4097 | break;; | |
4098 | esac | |
4099 | done | |
81ecdfbb RW |
4100 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4101 | ||
c6b750e1 | 4102 | else |
81ecdfbb RW |
4103 | ac_file='' |
4104 | fi | |
4105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4106 | $as_echo "$ac_file" >&6; } | |
4107 | if test -z "$ac_file"; then : | |
4108 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4109 | sed 's/^/| /' conftest.$ac_ext >&5 |
4110 | ||
81ecdfbb RW |
4111 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4112 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4113 | { as_fn_set_status 77 | |
4114 | as_fn_error "C compiler cannot create executables | |
4115 | See \`config.log' for more details." "$LINENO" 5; }; } | |
c6b750e1 | 4116 | fi |
c6b750e1 | 4117 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4118 | |
81ecdfbb | 4119 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4120 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4122 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
c6b750e1 DJ |
4123 | # If not cross compiling, check that we can run a simple program. |
4124 | if test "$cross_compiling" != yes; then | |
4125 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
4126 | { { case "(($ac_try" in |
4127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4128 | *) ac_try_echo=$ac_try;; | |
4129 | esac | |
4130 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4131 | $as_echo "$ac_try_echo"; } >&5 | |
4132 | (eval "$ac_try") 2>&5 | |
c6b750e1 | 4133 | ac_status=$? |
81ecdfbb RW |
4134 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4135 | test $ac_status = 0; }; }; then | |
c6b750e1 DJ |
4136 | cross_compiling=no |
4137 | else | |
4138 | if test "$cross_compiling" = maybe; then | |
4139 | cross_compiling=yes | |
4140 | else | |
81ecdfbb RW |
4141 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4142 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4143 | as_fn_error "cannot run C compiled programs. | |
c6b750e1 | 4144 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 4145 | See \`config.log' for more details." "$LINENO" 5; } |
c6b750e1 DJ |
4146 | fi |
4147 | fi | |
4148 | fi | |
81ecdfbb RW |
4149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4150 | $as_echo "yes" >&6; } | |
c6b750e1 | 4151 | |
81ecdfbb | 4152 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
c6b750e1 | 4153 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 4154 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4155 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4157 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4159 | $as_echo "$cross_compiling" >&6; } | |
4160 | ||
4161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4162 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4163 | if { { ac_try="$ac_link" | |
4164 | case "(($ac_try" in | |
4165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4166 | *) ac_try_echo=$ac_try;; | |
4167 | esac | |
4168 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4169 | $as_echo "$ac_try_echo"; } >&5 | |
4170 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4171 | ac_status=$? |
81ecdfbb RW |
4172 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4173 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4174 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4175 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4176 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4177 | # `rm'. | |
4178 | for ac_file in conftest.exe conftest conftest.*; do | |
4179 | test -f "$ac_file" || continue | |
4180 | case $ac_file in | |
81ecdfbb | 4181 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4182 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4183 | break;; |
4184 | * ) break;; | |
4185 | esac | |
4186 | done | |
4187 | else | |
81ecdfbb RW |
4188 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4189 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4190 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4191 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4192 | fi |
c6b750e1 | 4193 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
4194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4195 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4196 | |
4197 | rm -f conftest.$ac_ext | |
4198 | EXEEXT=$ac_cv_exeext | |
4199 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
4200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4201 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4202 | if test "${ac_cv_objext+set}" = set; then : | |
4203 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4204 | else |
81ecdfbb | 4205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4206 | /* end confdefs.h. */ |
4207 | ||
4208 | int | |
4209 | main () | |
4210 | { | |
4211 | ||
4212 | ; | |
4213 | return 0; | |
4214 | } | |
4215 | _ACEOF | |
4216 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4217 | if { { ac_try="$ac_compile" |
4218 | case "(($ac_try" in | |
4219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4220 | *) ac_try_echo=$ac_try;; | |
4221 | esac | |
4222 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4223 | $as_echo "$ac_try_echo"; } >&5 | |
4224 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4225 | ac_status=$? |
81ecdfbb RW |
4226 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4227 | test $ac_status = 0; }; then : | |
4228 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4229 | test -f "$ac_file" || continue; | |
c6b750e1 | 4230 | case $ac_file in |
81ecdfbb | 4231 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4232 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4233 | break;; | |
4234 | esac | |
4235 | done | |
cac3d6c4 | 4236 | else |
81ecdfbb | 4237 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4238 | sed 's/^/| /' conftest.$ac_ext >&5 |
4239 | ||
81ecdfbb RW |
4240 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4241 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4242 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4243 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4244 | fi |
c6b750e1 DJ |
4245 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4246 | fi | |
81ecdfbb RW |
4247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4248 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4249 | OBJEXT=$ac_cv_objext |
4250 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4252 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4253 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4254 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4255 | else |
81ecdfbb | 4256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4257 | /* end confdefs.h. */ |
4258 | ||
4259 | int | |
4260 | main () | |
4261 | { | |
4262 | #ifndef __GNUC__ | |
4263 | choke me | |
4264 | #endif | |
4265 | ||
4266 | ; | |
4267 | return 0; | |
4268 | } | |
4269 | _ACEOF | |
81ecdfbb | 4270 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4271 | ac_compiler_gnu=yes |
4272 | else | |
81ecdfbb | 4273 | ac_compiler_gnu=no |
c6b750e1 | 4274 | fi |
81ecdfbb | 4275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4276 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4277 | ||
4278 | fi | |
81ecdfbb RW |
4279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4280 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4281 | if test $ac_compiler_gnu = yes; then | |
4282 | GCC=yes | |
4283 | else | |
4284 | GCC= | |
4285 | fi | |
c6b750e1 DJ |
4286 | ac_test_CFLAGS=${CFLAGS+set} |
4287 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4289 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4290 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4291 | $as_echo_n "(cached) " >&6 | |
4292 | else | |
4293 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4294 | ac_c_werror_flag=yes | |
4295 | ac_cv_prog_cc_g=no | |
4296 | CFLAGS="-g" | |
4297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4298 | /* end confdefs.h. */ |
4299 | ||
4300 | int | |
4301 | main () | |
4302 | { | |
4303 | ||
4304 | ; | |
4305 | return 0; | |
4306 | } | |
4307 | _ACEOF | |
81ecdfbb | 4308 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4309 | ac_cv_prog_cc_g=yes |
4310 | else | |
81ecdfbb RW |
4311 | CFLAGS="" |
4312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4313 | /* end confdefs.h. */ | |
4314 | ||
4315 | int | |
4316 | main () | |
4317 | { | |
4318 | ||
4319 | ; | |
4320 | return 0; | |
4321 | } | |
4322 | _ACEOF | |
4323 | if ac_fn_c_try_compile "$LINENO"; then : | |
4324 | ||
4325 | else | |
4326 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4327 | CFLAGS="-g" | |
4328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4329 | /* end confdefs.h. */ | |
cac3d6c4 | 4330 | |
81ecdfbb RW |
4331 | int |
4332 | main () | |
4333 | { | |
4334 | ||
4335 | ; | |
4336 | return 0; | |
4337 | } | |
4338 | _ACEOF | |
4339 | if ac_fn_c_try_compile "$LINENO"; then : | |
4340 | ac_cv_prog_cc_g=yes | |
4341 | fi | |
4342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4343 | fi |
81ecdfbb | 4344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4345 | fi |
81ecdfbb RW |
4346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4347 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4348 | fi | |
4349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4350 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4351 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4352 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4353 | elif test $ac_cv_prog_cc_g = yes; then |
4354 | if test "$GCC" = yes; then | |
4355 | CFLAGS="-g -O2" | |
4356 | else | |
4357 | CFLAGS="-g" | |
4358 | fi | |
4359 | else | |
4360 | if test "$GCC" = yes; then | |
4361 | CFLAGS="-O2" | |
4362 | else | |
4363 | CFLAGS= | |
4364 | fi | |
4365 | fi | |
81ecdfbb RW |
4366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4367 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4368 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4369 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4370 | else |
81ecdfbb | 4371 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4372 | ac_save_CC=$CC |
81ecdfbb | 4373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4374 | /* end confdefs.h. */ |
4375 | #include <stdarg.h> | |
4376 | #include <stdio.h> | |
4377 | #include <sys/types.h> | |
4378 | #include <sys/stat.h> | |
4379 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4380 | struct buf { int x; }; | |
4381 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4382 | static char *e (p, i) | |
4383 | char **p; | |
4384 | int i; | |
4385 | { | |
4386 | return p[i]; | |
4387 | } | |
4388 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4389 | { | |
4390 | char *s; | |
4391 | va_list v; | |
4392 | va_start (v,p); | |
4393 | s = g (p, va_arg (v,int)); | |
4394 | va_end (v); | |
4395 | return s; | |
4396 | } | |
4397 | ||
4398 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4399 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4400 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4401 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4402 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4403 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4404 | that's true only with -std. */ |
c6b750e1 DJ |
4405 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4406 | ||
81ecdfbb RW |
4407 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4408 | inside strings and character constants. */ | |
4409 | #define FOO(x) 'x' | |
4410 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4411 | ||
c6b750e1 DJ |
4412 | int test (int i, double x); |
4413 | struct s1 {int (*f) (int a);}; | |
4414 | struct s2 {int (*f) (double a);}; | |
4415 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4416 | int argc; | |
4417 | char **argv; | |
4418 | int | |
4419 | main () | |
4420 | { | |
4421 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4422 | ; | |
4423 | return 0; | |
4424 | } | |
4425 | _ACEOF | |
81ecdfbb RW |
4426 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4427 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4428 | do |
4429 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4430 | if ac_fn_c_try_compile "$LINENO"; then : |
4431 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4432 | fi |
81ecdfbb RW |
4433 | rm -f core conftest.err conftest.$ac_objext |
4434 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4435 | done |
81ecdfbb | 4436 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4437 | CC=$ac_save_CC |
4438 | ||
4439 | fi | |
81ecdfbb RW |
4440 | # AC_CACHE_VAL |
4441 | case "x$ac_cv_prog_cc_c89" in | |
4442 | x) | |
4443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4444 | $as_echo "none needed" >&6; } ;; | |
4445 | xno) | |
4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4447 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4448 | *) |
81ecdfbb RW |
4449 | CC="$CC $ac_cv_prog_cc_c89" |
4450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4451 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4452 | esac |
81ecdfbb | 4453 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4454 | |
c6b750e1 DJ |
4455 | fi |
4456 | ||
c6b750e1 DJ |
4457 | ac_ext=c |
4458 | ac_cpp='$CPP $CPPFLAGS' | |
4459 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4460 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4461 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4462 | |
81ecdfbb | 4463 | ac_ext=cpp |
18f6b6ee PB |
4464 | ac_cpp='$CXXCPP $CPPFLAGS' |
4465 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4466 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4467 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
4468 | if test -z "$CXX"; then |
4469 | if test -n "$CCC"; then | |
4470 | CXX=$CCC | |
4471 | else | |
4472 | if test -n "$ac_tool_prefix"; then | |
4473 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
4474 | do |
4475 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4476 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4478 | $as_echo_n "checking for $ac_word... " >&6; } | |
4479 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4480 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4481 | else |
4482 | if test -n "$CXX"; then | |
4483 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4484 | else | |
4485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4486 | for as_dir in $PATH | |
4487 | do | |
4488 | IFS=$as_save_IFS | |
4489 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4490 | for ac_exec_ext in '' $ac_executable_extensions; do |
4491 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4492 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4493 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
4494 | break 2 |
4495 | fi | |
4496 | done | |
81ecdfbb RW |
4497 | done |
4498 | IFS=$as_save_IFS | |
512b7dfb | 4499 | |
18f6b6ee PB |
4500 | fi |
4501 | fi | |
4502 | CXX=$ac_cv_prog_CXX | |
4503 | if test -n "$CXX"; then | |
81ecdfbb RW |
4504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4505 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 4506 | else |
81ecdfbb RW |
4507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4508 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4509 | fi |
4510 | ||
81ecdfbb | 4511 | |
18f6b6ee PB |
4512 | test -n "$CXX" && break |
4513 | done | |
4514 | fi | |
4515 | if test -z "$CXX"; then | |
4516 | ac_ct_CXX=$CXX | |
81ecdfbb | 4517 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
4518 | do |
4519 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4520 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4522 | $as_echo_n "checking for $ac_word... " >&6; } | |
4523 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4524 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4525 | else |
4526 | if test -n "$ac_ct_CXX"; then | |
4527 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4528 | else | |
4529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4530 | for as_dir in $PATH | |
4531 | do | |
4532 | IFS=$as_save_IFS | |
4533 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4534 | for ac_exec_ext in '' $ac_executable_extensions; do |
4535 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4536 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4537 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 4538 | break 2 |
512b7dfb | 4539 | fi |
18f6b6ee | 4540 | done |
81ecdfbb RW |
4541 | done |
4542 | IFS=$as_save_IFS | |
512b7dfb | 4543 | |
18f6b6ee PB |
4544 | fi |
4545 | fi | |
4546 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4547 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
4548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4549 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 4550 | else |
81ecdfbb RW |
4551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4552 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4553 | fi |
4554 | ||
81ecdfbb | 4555 | |
18f6b6ee PB |
4556 | test -n "$ac_ct_CXX" && break |
4557 | done | |
18f6b6ee | 4558 | |
81ecdfbb RW |
4559 | if test "x$ac_ct_CXX" = x; then |
4560 | CXX="g++" | |
4561 | else | |
4562 | case $cross_compiling:$ac_tool_warned in | |
4563 | yes:) | |
4564 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4565 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4566 | ac_tool_warned=yes ;; | |
4567 | esac | |
4568 | CXX=$ac_ct_CXX | |
4569 | fi | |
18f6b6ee PB |
4570 | fi |
4571 | ||
81ecdfbb RW |
4572 | fi |
4573 | fi | |
18f6b6ee | 4574 | # Provide some information about the compiler. |
81ecdfbb RW |
4575 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4576 | set X $ac_compile | |
4577 | ac_compiler=$2 | |
4578 | for ac_option in --version -v -V -qversion; do | |
4579 | { { ac_try="$ac_compiler $ac_option >&5" | |
4580 | case "(($ac_try" in | |
4581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4582 | *) ac_try_echo=$ac_try;; | |
4583 | esac | |
4584 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4585 | $as_echo "$ac_try_echo"; } >&5 | |
4586 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 4587 | ac_status=$? |
81ecdfbb RW |
4588 | if test -s conftest.err; then |
4589 | sed '10a\ | |
4590 | ... rest of stderr output deleted ... | |
4591 | 10q' conftest.err >conftest.er1 | |
4592 | cat conftest.er1 >&5 | |
4593 | rm -f conftest.er1 conftest.err | |
4594 | fi | |
4595 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4596 | test $ac_status = 0; } | |
4597 | done | |
18f6b6ee | 4598 | |
81ecdfbb RW |
4599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4600 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4601 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4602 | $as_echo_n "(cached) " >&6 | |
18f6b6ee | 4603 | else |
81ecdfbb | 4604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
4605 | /* end confdefs.h. */ |
4606 | ||
4607 | int | |
4608 | main () | |
4609 | { | |
4610 | #ifndef __GNUC__ | |
4611 | choke me | |
4612 | #endif | |
4613 | ||
4614 | ; | |
4615 | return 0; | |
4616 | } | |
4617 | _ACEOF | |
81ecdfbb | 4618 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4619 | ac_compiler_gnu=yes |
4620 | else | |
81ecdfbb | 4621 | ac_compiler_gnu=no |
18f6b6ee | 4622 | fi |
81ecdfbb | 4623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
4624 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4625 | ||
4626 | fi | |
81ecdfbb RW |
4627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4628 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4629 | if test $ac_compiler_gnu = yes; then | |
4630 | GXX=yes | |
4631 | else | |
4632 | GXX= | |
4633 | fi | |
18f6b6ee PB |
4634 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4635 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
4636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4637 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4638 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4639 | $as_echo_n "(cached) " >&6 | |
4640 | else | |
4641 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4642 | ac_cxx_werror_flag=yes | |
4643 | ac_cv_prog_cxx_g=no | |
4644 | CXXFLAGS="-g" | |
4645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
4646 | /* end confdefs.h. */ |
4647 | ||
4648 | int | |
4649 | main () | |
4650 | { | |
4651 | ||
4652 | ; | |
4653 | return 0; | |
4654 | } | |
4655 | _ACEOF | |
81ecdfbb | 4656 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4657 | ac_cv_prog_cxx_g=yes |
4658 | else | |
81ecdfbb RW |
4659 | CXXFLAGS="" |
4660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4661 | /* end confdefs.h. */ |
81ecdfbb | 4662 | |
18f6b6ee PB |
4663 | int |
4664 | main () | |
4665 | { | |
81ecdfbb | 4666 | |
18f6b6ee PB |
4667 | ; |
4668 | return 0; | |
4669 | } | |
4670 | _ACEOF | |
81ecdfbb | 4671 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 4672 | |
81ecdfbb RW |
4673 | else |
4674 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4675 | CXXFLAGS="-g" | |
4676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4677 | /* end confdefs.h. */ |
81ecdfbb | 4678 | |
18f6b6ee PB |
4679 | int |
4680 | main () | |
4681 | { | |
81ecdfbb | 4682 | |
18f6b6ee PB |
4683 | ; |
4684 | return 0; | |
4685 | } | |
4686 | _ACEOF | |
81ecdfbb RW |
4687 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4688 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 4689 | fi |
81ecdfbb RW |
4690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4691 | fi | |
4692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4693 | fi | |
4694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4695 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4696 | fi | |
4697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4698 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4699 | if test "$ac_test_CXXFLAGS" = set; then | |
4700 | CXXFLAGS=$ac_save_CXXFLAGS | |
4701 | elif test $ac_cv_prog_cxx_g = yes; then | |
4702 | if test "$GXX" = yes; then | |
4703 | CXXFLAGS="-g -O2" | |
4704 | else | |
4705 | CXXFLAGS="-g" | |
4706 | fi | |
4707 | else | |
4708 | if test "$GXX" = yes; then | |
4709 | CXXFLAGS="-O2" | |
4710 | else | |
4711 | CXXFLAGS= | |
4712 | fi | |
18f6b6ee | 4713 | fi |
18f6b6ee PB |
4714 | ac_ext=c |
4715 | ac_cpp='$CPP $CPPFLAGS' | |
4716 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4717 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4718 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4719 | ||
4720 | ||
4721 | # We must set the default linker to the linker used by gcc for the correct | |
4722 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
4723 | # set the LD default to the ld used by gcc. | |
4724 | if test -z "$LD"; then | |
4725 | if test "$GCC" = yes; then | |
4726 | case $build in | |
4727 | *-*-mingw*) | |
4728 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
4729 | *) | |
4730 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
4731 | esac | |
4732 | case $gcc_prog_ld in | |
4733 | # Accept absolute paths. | |
4734 | [\\/]* | [A-Za-z]:[\\/]*) | |
4735 | LD="$gcc_prog_ld" ;; | |
4736 | esac | |
4737 | fi | |
512b7dfb PB |
4738 | fi |
4739 | ||
4740 | ||
4741 | ||
4742 | ||
c6b750e1 | 4743 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
4744 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
4745 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
4746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4747 | $as_echo_n "checking for $ac_word... " >&6; } | |
4748 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
4749 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 4750 | else |
512b7dfb PB |
4751 | if test -n "$GNATBIND"; then |
4752 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 4753 | else |
c6b750e1 DJ |
4754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4755 | for as_dir in $PATH | |
4756 | do | |
4757 | IFS=$as_save_IFS | |
4758 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4759 | for ac_exec_ext in '' $ac_executable_extensions; do |
4760 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4761 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 4762 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4763 | break 2 |
4764 | fi | |
4765 | done | |
81ecdfbb RW |
4766 | done |
4767 | IFS=$as_save_IFS | |
c6b750e1 | 4768 | |
9e07f89d NN |
4769 | fi |
4770 | fi | |
512b7dfb PB |
4771 | GNATBIND=$ac_cv_prog_GNATBIND |
4772 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
4773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
4774 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 4775 | else |
81ecdfbb RW |
4776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4777 | $as_echo "no" >&6; } | |
9e07f89d NN |
4778 | fi |
4779 | ||
81ecdfbb | 4780 | |
c6b750e1 | 4781 | fi |
512b7dfb PB |
4782 | if test -z "$ac_cv_prog_GNATBIND"; then |
4783 | ac_ct_GNATBIND=$GNATBIND | |
4784 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
4785 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
4786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4787 | $as_echo_n "checking for $ac_word... " >&6; } | |
4788 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
4789 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 4790 | else |
512b7dfb PB |
4791 | if test -n "$ac_ct_GNATBIND"; then |
4792 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 4793 | else |
c6b750e1 DJ |
4794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4795 | for as_dir in $PATH | |
4796 | do | |
4797 | IFS=$as_save_IFS | |
4798 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4799 | for ac_exec_ext in '' $ac_executable_extensions; do |
4800 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4801 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 4802 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4803 | break 2 |
4804 | fi | |
4805 | done | |
81ecdfbb RW |
4806 | done |
4807 | IFS=$as_save_IFS | |
c6b750e1 | 4808 | |
9e07f89d NN |
4809 | fi |
4810 | fi | |
512b7dfb PB |
4811 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
4812 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
4813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
4814 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 4815 | else |
81ecdfbb RW |
4816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4817 | $as_echo "no" >&6; } | |
9e07f89d NN |
4818 | fi |
4819 | ||
81ecdfbb RW |
4820 | if test "x$ac_ct_GNATBIND" = x; then |
4821 | GNATBIND="no" | |
4822 | else | |
4823 | case $cross_compiling:$ac_tool_warned in | |
4824 | yes:) | |
4825 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4826 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4827 | ac_tool_warned=yes ;; | |
4828 | esac | |
4829 | GNATBIND=$ac_ct_GNATBIND | |
4830 | fi | |
24ff9987 | 4831 | else |
512b7dfb | 4832 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
4833 | fi |
4834 | ||
7df2cd5d | 4835 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
4836 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
4837 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4839 | $as_echo_n "checking for $ac_word... " >&6; } | |
4840 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
4841 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 4842 | else |
512b7dfb PB |
4843 | if test -n "$GNATMAKE"; then |
4844 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
4845 | else |
4846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4847 | for as_dir in $PATH | |
4848 | do | |
4849 | IFS=$as_save_IFS | |
4850 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4851 | for ac_exec_ext in '' $ac_executable_extensions; do |
4852 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4853 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 4854 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
4855 | break 2 |
4856 | fi | |
4857 | done | |
81ecdfbb RW |
4858 | done |
4859 | IFS=$as_save_IFS | |
7df2cd5d PB |
4860 | |
4861 | fi | |
4862 | fi | |
512b7dfb PB |
4863 | GNATMAKE=$ac_cv_prog_GNATMAKE |
4864 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
4865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
4866 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 4867 | else |
81ecdfbb RW |
4868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4869 | $as_echo "no" >&6; } | |
7df2cd5d PB |
4870 | fi |
4871 | ||
81ecdfbb | 4872 | |
7df2cd5d | 4873 | fi |
512b7dfb PB |
4874 | if test -z "$ac_cv_prog_GNATMAKE"; then |
4875 | ac_ct_GNATMAKE=$GNATMAKE | |
4876 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
4877 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4879 | $as_echo_n "checking for $ac_word... " >&6; } | |
4880 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
4881 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 4882 | else |
512b7dfb PB |
4883 | if test -n "$ac_ct_GNATMAKE"; then |
4884 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
4885 | else |
4886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4887 | for as_dir in $PATH | |
4888 | do | |
4889 | IFS=$as_save_IFS | |
4890 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4891 | for ac_exec_ext in '' $ac_executable_extensions; do |
4892 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4893 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 4894 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
4895 | break 2 |
4896 | fi | |
4897 | done | |
81ecdfbb RW |
4898 | done |
4899 | IFS=$as_save_IFS | |
7df2cd5d | 4900 | |
7df2cd5d PB |
4901 | fi |
4902 | fi | |
512b7dfb PB |
4903 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
4904 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
4905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
4906 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 4907 | else |
81ecdfbb RW |
4908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4909 | $as_echo "no" >&6; } | |
7df2cd5d PB |
4910 | fi |
4911 | ||
81ecdfbb RW |
4912 | if test "x$ac_ct_GNATMAKE" = x; then |
4913 | GNATMAKE="no" | |
4914 | else | |
4915 | case $cross_compiling:$ac_tool_warned in | |
4916 | yes:) | |
4917 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4918 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4919 | ac_tool_warned=yes ;; | |
4920 | esac | |
4921 | GNATMAKE=$ac_ct_GNATMAKE | |
4922 | fi | |
7df2cd5d | 4923 | else |
512b7dfb | 4924 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
4925 | fi |
4926 | ||
81ecdfbb RW |
4927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
4928 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
4929 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
4930 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4931 | else |
4932 | cat >conftest.adb <<EOF | |
4933 | procedure conftest is begin null; end conftest; | |
4934 | EOF | |
4935 | acx_cv_cc_gcc_supports_ada=no | |
4936 | # There is a bug in old released versions of GCC which causes the | |
4937 | # driver to exit successfully when the appropriate language module | |
4938 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
4939 | # Therefore we must check for the error message as well as an | |
4940 | # unsuccessful exit. | |
b8908782 DD |
4941 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
4942 | # given a .adb file, but produce no object file. So we must check | |
4943 | # if an object file was really produced to guard against this. | |
9e07f89d | 4944 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 4945 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 4946 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
4947 | fi |
4948 | rm -f conftest.* | |
4949 | fi | |
81ecdfbb RW |
4950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
4951 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 4952 | |
512b7dfb | 4953 | if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
4954 | have_gnat=yes |
4955 | else | |
4956 | have_gnat=no | |
4957 | fi | |
4958 | ||
81ecdfbb RW |
4959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
4960 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
4961 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
4962 | $as_echo_n "(cached) " >&6 | |
b8908782 DD |
4963 | else |
4964 | echo abfoo >t1 | |
4965 | echo cdfoo >t2 | |
4966 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
4b1cb4fe DD |
4967 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
4968 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
4969 | : | |
4970 | else | |
4971 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
4972 | fi | |
4973 | fi | |
b8908782 DD |
4974 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
4975 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 4976 | : |
b8908782 DD |
4977 | else |
4978 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
4979 | fi | |
4980 | fi | |
4981 | rm t1 t2 | |
4982 | ||
4983 | fi | |
81ecdfbb RW |
4984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
4985 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
4986 | do_compare="$gcc_cv_prog_cmp_skip" |
4987 | ||
4988 | ||
9e07f89d | 4989 | |
ffdd6afc ILT |
4990 | # Check whether --enable-bootstrap was given. |
4991 | if test "${enable_bootstrap+set}" = set; then : | |
4992 | enableval=$enable_bootstrap; | |
4993 | else | |
4994 | enable_bootstrap=default | |
4995 | fi | |
4996 | ||
4997 | ||
4998 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
4999 | if test -r $srcdir/gcc/configure; then | |
5000 | have_compiler=yes | |
5001 | else | |
5002 | have_compiler=no | |
5003 | fi | |
5004 | ||
5005 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5006 | *:*:*:no) ;; | |
5007 | ||
5008 | # Default behavior. Enable bootstrap if we have a compiler | |
5009 | # and we are in a native configuration. | |
5010 | yes:$build:$build:default) | |
5011 | enable_bootstrap=yes ;; | |
5012 | ||
5013 | *:*:*:default) | |
5014 | enable_bootstrap=no ;; | |
5015 | ||
5016 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5017 | yes:$build:$build:yes) | |
5018 | ;; | |
5019 | ||
5020 | # Other configurations, but we have a compiler. Assume the user knows | |
5021 | # what he's doing. | |
5022 | yes:*:*:yes) | |
5023 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5024 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5025 | ;; | |
5026 | ||
5027 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5028 | no:*:*:yes) | |
5029 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5030 | ||
5031 | # Fail if wrong command line | |
5032 | *) | |
5033 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5034 | ;; | |
5035 | esac | |
5036 | ||
e8a5fa9c | 5037 | # See if we are building gcc with C++. |
81ecdfbb RW |
5038 | # Check whether --enable-build-with-cxx was given. |
5039 | if test "${enable_build_with_cxx+set}" = set; then : | |
5040 | enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval | |
e8a5fa9c RW |
5041 | else |
5042 | ENABLE_BUILD_WITH_CXX=no | |
81ecdfbb RW |
5043 | fi |
5044 | ||
e8a5fa9c | 5045 | |
ffdd6afc ILT |
5046 | # Build stage1 with C and build stages 2 and 3 with C++. |
5047 | # Check whether --enable-build-poststage1-with-cxx was given. | |
5048 | if test "${enable_build_poststage1_with_cxx+set}" = set; then : | |
5049 | enableval=$enable_build_poststage1_with_cxx; ENABLE_BUILD_POSTSTAGE1_WITH_CXX=$enableval | |
5050 | else | |
5051 | ENABLE_BUILD_POSTSTAGE1_WITH_CXX=yes | |
5052 | fi | |
5053 | ||
5054 | ||
d5f2ee2e KG |
5055 | # Used for setting $lt_cv_objdir |
5056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5057 | $as_echo_n "checking for objdir... " >&6; } | |
5058 | if test "${lt_cv_objdir+set}" = set; then : | |
5059 | $as_echo_n "(cached) " >&6 | |
5060 | else | |
5061 | rm -f .libs 2>/dev/null | |
5062 | mkdir .libs 2>/dev/null | |
5063 | if test -d .libs; then | |
5064 | lt_cv_objdir=.libs | |
5065 | else | |
5066 | # MS-DOS does not allow filenames that begin with a dot. | |
5067 | lt_cv_objdir=_libs | |
5068 | fi | |
5069 | rmdir .libs 2>/dev/null | |
5070 | fi | |
5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5072 | $as_echo "$lt_cv_objdir" >&6; } | |
5073 | objdir=$lt_cv_objdir | |
5074 | ||
5075 | ||
5076 | ||
5077 | ||
5078 | ||
5079 | cat >>confdefs.h <<_ACEOF | |
5080 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5081 | _ACEOF | |
5082 | ||
5083 | ||
5084 | ||
e8a5fa9c | 5085 | # Check for GMP, MPFR and MPC |
d9b76ff9 | 5086 | gmplibs="-lmpc -lmpfr -lgmp" |
4b1cb4fe | 5087 | gmpinc= |
4b900473 | 5088 | have_gmp=no |
e8a5fa9c RW |
5089 | |
5090 | # Specify a location for mpc | |
5091 | # check for this first so it ends up on the link line before mpfr. | |
5092 | ||
81ecdfbb RW |
5093 | # Check whether --with-mpc was given. |
5094 | if test "${with_mpc+set}" = set; then : | |
5095 | withval=$with_mpc; | |
5096 | fi | |
e8a5fa9c | 5097 | |
e8a5fa9c | 5098 | |
e552509b | 5099 | # Check whether --with-mpc-include was given. |
81ecdfbb RW |
5100 | if test "${with_mpc_include+set}" = set; then : |
5101 | withval=$with_mpc_include; | |
5102 | fi | |
e8a5fa9c | 5103 | |
e8a5fa9c | 5104 | |
e552509b | 5105 | # Check whether --with-mpc-lib was given. |
81ecdfbb RW |
5106 | if test "${with_mpc_lib+set}" = set; then : |
5107 | withval=$with_mpc_lib; | |
5108 | fi | |
e8a5fa9c | 5109 | |
e8a5fa9c RW |
5110 | |
5111 | if test "x$with_mpc" != x; then | |
d9b76ff9 KG |
5112 | gmplibs="-L$with_mpc/lib $gmplibs" |
5113 | gmpinc="-I$with_mpc/include $gmpinc" | |
e8a5fa9c RW |
5114 | fi |
5115 | if test "x$with_mpc_include" != x; then | |
d9b76ff9 | 5116 | gmpinc="-I$with_mpc_include $gmpinc" |
e8a5fa9c RW |
5117 | fi |
5118 | if test "x$with_mpc_lib" != x; then | |
d9b76ff9 | 5119 | gmplibs="-L$with_mpc_lib $gmplibs" |
e8a5fa9c RW |
5120 | fi |
5121 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
d5f2ee2e | 5122 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
d9b76ff9 | 5123 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
e8a5fa9c RW |
5124 | # Do not test the mpc version. Assume that it is sufficient, since |
5125 | # it is in the source tree, and the library has not been built yet | |
5126 | # but it would be included on the link line in the version check below | |
5127 | # hence making the test fail. | |
d9b76ff9 | 5128 | have_gmp=yes |
e8a5fa9c | 5129 | fi |
4b900473 | 5130 | |
11b04d1f DD |
5131 | # Specify a location for mpfr |
5132 | # check for this first so it ends up on the link line before gmp. | |
c6b750e1 | 5133 | |
81ecdfbb RW |
5134 | # Check whether --with-mpfr-dir was given. |
5135 | if test "${with_mpfr_dir+set}" = set; then : | |
5136 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5137 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5138 | fi | |
5139 | ||
11b04d1f DD |
5140 | |
5141 | ||
81ecdfbb RW |
5142 | # Check whether --with-mpfr was given. |
5143 | if test "${with_mpfr+set}" = set; then : | |
5144 | withval=$with_mpfr; | |
5145 | fi | |
c6b750e1 | 5146 | |
11b04d1f | 5147 | |
e552509b | 5148 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
5149 | if test "${with_mpfr_include+set}" = set; then : |
5150 | withval=$with_mpfr_include; | |
5151 | fi | |
c6b750e1 | 5152 | |
8a0d8a5c | 5153 | |
e552509b | 5154 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
5155 | if test "${with_mpfr_lib+set}" = set; then : |
5156 | withval=$with_mpfr_lib; | |
5157 | fi | |
8a0d8a5c | 5158 | |
11b04d1f DD |
5159 | |
5160 | if test "x$with_mpfr" != x; then | |
5161 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 5162 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 5163 | fi |
8a0d8a5c | 5164 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 5165 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
5166 | fi |
5167 | if test "x$with_mpfr_lib" != x; then | |
5168 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5169 | fi | |
4b900473 | 5170 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
d5f2ee2e | 5171 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5172 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" |
d5f2ee2e | 5173 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" |
4b900473 PB |
5174 | # Do not test the mpfr version. Assume that it is sufficient, since |
5175 | # it is in the source tree, and the library has not been built yet | |
5176 | # but it would be included on the link line in the version check below | |
5177 | # hence making the test fail. | |
5178 | have_gmp=yes | |
5179 | fi | |
11b04d1f | 5180 | |
4b1cb4fe | 5181 | # Specify a location for gmp |
c6b750e1 | 5182 | |
81ecdfbb RW |
5183 | # Check whether --with-gmp-dir was given. |
5184 | if test "${with_gmp_dir+set}" = set; then : | |
5185 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5186 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5187 | fi | |
5188 | ||
4b1cb4fe DD |
5189 | |
5190 | ||
81ecdfbb RW |
5191 | # Check whether --with-gmp was given. |
5192 | if test "${with_gmp+set}" = set; then : | |
5193 | withval=$with_gmp; | |
5194 | fi | |
c6b750e1 | 5195 | |
4b1cb4fe | 5196 | |
e552509b | 5197 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
5198 | if test "${with_gmp_include+set}" = set; then : |
5199 | withval=$with_gmp_include; | |
5200 | fi | |
c6b750e1 | 5201 | |
8a0d8a5c | 5202 | |
e552509b | 5203 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
5204 | if test "${with_gmp_lib+set}" = set; then : |
5205 | withval=$with_gmp_lib; | |
5206 | fi | |
8a0d8a5c PB |
5207 | |
5208 | ||
4b1cb4fe | 5209 | |
11b04d1f DD |
5210 | if test "x$with_gmp" != x; then |
5211 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5212 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 5213 | fi |
8a0d8a5c PB |
5214 | if test "x$with_gmp_include" != x; then |
5215 | gmpinc="-I$with_gmp_include $gmpinc" | |
5216 | fi | |
5217 | if test "x$with_gmp_lib" != x; then | |
5218 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5219 | fi | |
4b900473 | 5220 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 5221 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5222 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 5223 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 5224 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
4b900473 PB |
5225 | # Do not test the gmp version. Assume that it is sufficient, since |
5226 | # it is in the source tree, and the library has not been built yet | |
5227 | # but it would be included on the link line in the version check below | |
5228 | # hence making the test fail. | |
5229 | have_gmp=yes | |
5230 | fi | |
4b1cb4fe | 5231 | |
ceb92e78 | 5232 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
5233 | have_gmp=yes |
5234 | saved_CFLAGS="$CFLAGS" | |
5235 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
5236 | # Check for the recommended and required versions of GMP. |
5237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5238 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
a009f2e7 RW |
5239 | |
5240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a6b5846e KG |
5241 | /* end confdefs.h. */ |
5242 | #include "gmp.h" | |
5243 | int | |
5244 | main () | |
5245 | { | |
5246 | ||
5247 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5248 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5249 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0) | |
5250 | choke me | |
5251 | #endif | |
5252 | ||
5253 | ; | |
5254 | return 0; | |
5255 | } | |
5256 | _ACEOF | |
5257 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 5258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5259 | /* end confdefs.h. */ |
a6b5846e | 5260 | #include <gmp.h> |
c6b750e1 DJ |
5261 | int |
5262 | main () | |
5263 | { | |
4b1cb4fe | 5264 | |
a6b5846e KG |
5265 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5266 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5267 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
5268 | choke me |
5269 | #endif | |
c6b750e1 DJ |
5270 | |
5271 | ; | |
5272 | return 0; | |
5273 | } | |
5274 | _ACEOF | |
81ecdfbb RW |
5275 | if ac_fn_c_try_compile "$LINENO"; then : |
5276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5277 | $as_echo "yes" >&6; } | |
a6b5846e KG |
5278 | else |
5279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5280 | $as_echo "buggy but acceptable" >&6; } | |
5281 | fi | |
5282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 5283 | else |
81ecdfbb RW |
5284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5285 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5286 | fi |
81ecdfbb | 5287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 5288 | |
e8a5fa9c | 5289 | # If we have GMP, check the MPFR version. |
4b900473 | 5290 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
5291 | # Check for the recommended and required versions of MPFR. |
5292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5293 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 5294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5295 | /* end confdefs.h. */ |
9b134994 | 5296 | #include <gmp.h> |
4b900473 | 5297 | #include <mpfr.h> |
c6b750e1 DJ |
5298 | int |
5299 | main () | |
5300 | { | |
9b134994 | 5301 | |
ef699244 | 5302 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1) |
4b900473 PB |
5303 | choke me |
5304 | #endif | |
c6b750e1 DJ |
5305 | |
5306 | ; | |
5307 | return 0; | |
5308 | } | |
5309 | _ACEOF | |
81ecdfbb RW |
5310 | if ac_fn_c_try_compile "$LINENO"; then : |
5311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 5312 | /* end confdefs.h. */ |
4b1cb4fe | 5313 | #include <gmp.h> |
4b900473 | 5314 | #include <mpfr.h> |
c6b750e1 DJ |
5315 | int |
5316 | main () | |
5317 | { | |
9dbaa842 | 5318 | |
a6b5846e | 5319 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
4b900473 PB |
5320 | choke me |
5321 | #endif | |
e8a5fa9c RW |
5322 | |
5323 | ; | |
5324 | return 0; | |
5325 | } | |
5326 | _ACEOF | |
81ecdfbb RW |
5327 | if ac_fn_c_try_compile "$LINENO"; then : |
5328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5329 | $as_echo "yes" >&6; } | |
e8a5fa9c | 5330 | else |
81ecdfbb RW |
5331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5332 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 5333 | fi |
81ecdfbb | 5334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 5335 | else |
81ecdfbb RW |
5336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5337 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 5338 | fi |
81ecdfbb | 5339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5340 | fi |
5341 | ||
5342 | # Check for the MPC header version. | |
d9b76ff9 | 5343 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 5344 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
5345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5346 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
5348 | /* end confdefs.h. */ |
5349 | #include <mpc.h> | |
5350 | int | |
5351 | main () | |
5352 | { | |
5353 | ||
a6b5846e KG |
5354 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5355 | choke me | |
5356 | #endif | |
5357 | ||
5358 | ; | |
5359 | return 0; | |
5360 | } | |
5361 | _ACEOF | |
5362 | if ac_fn_c_try_compile "$LINENO"; then : | |
5363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5364 | /* end confdefs.h. */ | |
5365 | #include <mpc.h> | |
5366 | int | |
5367 | main () | |
5368 | { | |
5369 | ||
5370 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
5371 | choke me |
5372 | #endif | |
5373 | ||
5374 | ; | |
5375 | return 0; | |
5376 | } | |
5377 | _ACEOF | |
81ecdfbb RW |
5378 | if ac_fn_c_try_compile "$LINENO"; then : |
5379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 5380 | $as_echo "yes" >&6; } |
a6b5846e KG |
5381 | else |
5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5383 | $as_echo "buggy but acceptable" >&6; } | |
5384 | fi | |
5385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 5386 | else |
81ecdfbb | 5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 5388 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 5389 | fi |
81ecdfbb | 5390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5391 | fi |
5392 | ||
5393 | # Now check the MPFR library. | |
5394 | if test x"$have_gmp" = xyes; then | |
5395 | saved_LIBS="$LIBS" | |
5396 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5398 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 5399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 5400 | /* end confdefs.h. */ |
d9b76ff9 | 5401 | #include <mpc.h> |
e8a5fa9c RW |
5402 | int |
5403 | main () | |
5404 | { | |
5405 | ||
5406 | mpfr_t n; | |
5407 | mpfr_t x; | |
d9b76ff9 | 5408 | mpc_t c; |
e8a5fa9c RW |
5409 | int t; |
5410 | mpfr_init (n); | |
5411 | mpfr_init (x); | |
5412 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5413 | mpfr_erfc (n, x, GMP_RNDN); | |
5414 | mpfr_subnormalize (x, t, GMP_RNDN); | |
d9b76ff9 KG |
5415 | mpfr_clear(n); |
5416 | mpfr_clear(x); | |
5417 | mpc_init2 (c, 53); | |
5418 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5419 | mpc_cosh (c, c, MPC_RNDNN); | |
5420 | mpc_pow (c, c, c, MPC_RNDNN); | |
5421 | mpc_acosh (c, c, MPC_RNDNN); | |
5422 | mpc_clear (c); | |
c6b750e1 DJ |
5423 | |
5424 | ; | |
5425 | return 0; | |
5426 | } | |
5427 | _ACEOF | |
81ecdfbb RW |
5428 | if ac_fn_c_try_link "$LINENO"; then : |
5429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5430 | $as_echo "yes" >&6; } | |
c6b750e1 | 5431 | else |
81ecdfbb RW |
5432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5433 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5434 | fi |
81ecdfbb RW |
5435 | rm -f core conftest.err conftest.$ac_objext \ |
5436 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
5437 | LIBS="$saved_LIBS" |
5438 | fi | |
5439 | ||
4b900473 | 5440 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 5441 | |
a6b5846e KG |
5442 | # The library versions listed in the error message below should match |
5443 | # the HARD-minimums enforced above. | |
4b900473 | 5444 | if test x$have_gmp != xyes; then |
a6b5846e | 5445 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+. |
d9b76ff9 KG |
5446 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5447 | their locations. Source code for these libraries can be found at | |
5448 | their respective hosting sites as well as at | |
5449 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5450 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5451 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5452 | make sure that you have installed both the libraries and the header | |
5453 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 5454 | fi |
9dbaa842 DD |
5455 | fi |
5456 | ||
e8a5fa9c RW |
5457 | # Flags needed for both GMP, MPFR and/or MPC. |
5458 | ||
5459 | ||
5460 | ||
4b1cb4fe DD |
5461 | |
5462 | ||
5463 | ||
29383458 JM |
5464 | # Allow host libstdc++ to be specified for static linking with PPL. |
5465 | ||
81ecdfbb RW |
5466 | # Check whether --with-host-libstdcxx was given. |
5467 | if test "${with_host_libstdcxx+set}" = set; then : | |
5468 | withval=$with_host_libstdcxx; | |
5469 | fi | |
29383458 | 5470 | |
29383458 JM |
5471 | |
5472 | case $with_host_libstdcxx in | |
5473 | no|yes) | |
81ecdfbb | 5474 | as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5 |
29383458 JM |
5475 | ;; |
5476 | esac | |
e28c595f | 5477 | |
e8a5fa9c RW |
5478 | # Linker flags to use for stage1 or when not boostrapping. |
5479 | ||
81ecdfbb RW |
5480 | # Check whether --with-stage1-ldflags was given. |
5481 | if test "${with_stage1_ldflags+set}" = set; then : | |
5482 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5483 | stage1_ldflags= |
5484 | else | |
5485 | stage1_ldflags=$withval | |
5486 | fi | |
5487 | else | |
5488 | stage1_ldflags= | |
81ecdfbb RW |
5489 | fi |
5490 | ||
e8a5fa9c RW |
5491 | |
5492 | ||
5493 | # Libraries to use for stage1 or when not bootstrapping. | |
5494 | ||
81ecdfbb RW |
5495 | # Check whether --with-stage1-libs was given. |
5496 | if test "${with_stage1_libs+set}" = set; then : | |
5497 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5498 | stage1_libs= |
5499 | else | |
5500 | stage1_libs=$withval | |
5501 | fi | |
5502 | else | |
5503 | stage1_libs=$with_host_libstdcxx | |
81ecdfbb RW |
5504 | fi |
5505 | ||
e8a5fa9c RW |
5506 | |
5507 | ||
e8a5fa9c RW |
5508 | # Libraries to use for stage2 and later builds. This defaults to the |
5509 | # argument passed to --with-host-libstdcxx. | |
5510 | ||
81ecdfbb RW |
5511 | # Check whether --with-boot-libs was given. |
5512 | if test "${with_boot_libs+set}" = set; then : | |
5513 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5514 | poststage1_libs= |
5515 | else | |
5516 | poststage1_libs=$withval | |
5517 | fi | |
5518 | else | |
5519 | poststage1_libs=$with_host_libstdcxx | |
81ecdfbb RW |
5520 | fi |
5521 | ||
e8a5fa9c RW |
5522 | |
5523 | ||
143754cd NC |
5524 | # Linker flags to use for stage2 and later builds. |
5525 | ||
5526 | # Check whether --with-boot-ldflags was given. | |
5527 | if test "${with_boot_ldflags+set}" = set; then : | |
5528 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5529 | poststage1_ldflags= | |
5530 | else | |
5531 | poststage1_ldflags=$withval | |
5532 | fi | |
5533 | else | |
5534 | poststage1_ldflags= | |
4f11b223 ILT |
5535 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5536 | # statically. But if the user explicitly specified the libraries to | |
5537 | # use, trust that they are doing what they want. | |
5538 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
5539 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5540 | fi | |
5541 | fi | |
5542 | ||
5543 | ||
5544 | ||
e28c595f | 5545 | # Check for PPL |
b123da99 | 5546 | ppllibs= |
e28c595f | 5547 | pplinc= |
b123da99 | 5548 | pwllib= |
e28c595f JM |
5549 | |
5550 | ||
81ecdfbb RW |
5551 | # Check whether --with-ppl was given. |
5552 | if test "${with_ppl+set}" = set; then : | |
5553 | withval=$with_ppl; | |
81ecdfbb | 5554 | fi |
e28c595f | 5555 | |
e28c595f | 5556 | |
e552509b | 5557 | # Check whether --with-ppl-include was given. |
81ecdfbb RW |
5558 | if test "${with_ppl_include+set}" = set; then : |
5559 | withval=$with_ppl_include; | |
5560 | fi | |
5561 | ||
e28c595f | 5562 | |
e552509b | 5563 | # Check whether --with-ppl-lib was given. |
81ecdfbb RW |
5564 | if test "${with_ppl_lib+set}" = set; then : |
5565 | withval=$with_ppl_lib; | |
5566 | fi | |
e28c595f | 5567 | |
e28c595f | 5568 | |
b123da99 SP |
5569 | # Check whether --enable-ppl-version-check was given. |
5570 | if test "${enable_ppl_version_check+set}" = set; then : | |
5571 | enableval=$enable_ppl_version_check; | |
5572 | fi | |
5573 | ||
5574 | ||
29383458 | 5575 | case $with_ppl in |
b123da99 | 5576 | yes | no | "") |
1f53ca9a | 5577 | ;; |
29383458 | 5578 | *) |
b123da99 | 5579 | ppllibs="-L$with_ppl/lib" |
29383458 | 5580 | pplinc="-I$with_ppl/include $pplinc" |
b123da99 SP |
5581 | if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then |
5582 | with_ppl=yes | |
5583 | else | |
5584 | as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5 | |
5585 | fi | |
29383458 JM |
5586 | ;; |
5587 | esac | |
b123da99 SP |
5588 | |
5589 | if test x"$with_ppl_include" != x; then | |
e28c595f | 5590 | pplinc="-I$with_ppl_include $pplinc" |
b123da99 | 5591 | with_ppl=yes |
e28c595f | 5592 | fi |
b123da99 | 5593 | |
e28c595f | 5594 | if test "x$with_ppl_lib" != x; then |
b123da99 SP |
5595 | ppllibs="-L$with_ppl_lib" |
5596 | with_ppl=yes | |
e28c595f | 5597 | fi |
b123da99 SP |
5598 | |
5599 | if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then | |
5600 | if test x"$enable_watchdog" = xyes; then | |
5601 | pwllib="-lpwl" | |
5602 | fi | |
5603 | ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir" | |
1f53ca9a AO |
5604 | pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C ' |
5605 | enable_ppl_version_check=no | |
b123da99 | 5606 | with_ppl=yes |
e28c595f JM |
5607 | fi |
5608 | ||
86ed8cf6 | 5609 | if test "x$with_ppl" != xno; then |
b123da99 | 5610 | if test "x$pwllib" = x; then |
0e8ad34f RO |
5611 | saved_LIBS="$LIBS" |
5612 | LIBS="$LIBS $ppllibs -lstdc++ -lm" | |
b123da99 SP |
5613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5 |
5614 | $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; } | |
5615 | if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then : | |
5616 | $as_echo_n "(cached) " >&6 | |
5617 | else | |
5618 | ac_check_lib_save_LIBS=$LIBS | |
5619 | LIBS="-lpwl $LIBS" | |
5620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5621 | /* end confdefs.h. */ | |
5622 | ||
5623 | /* Override any GCC internal prototype to avoid an error. | |
5624 | Use char because int might match the return type of a GCC | |
5625 | builtin and then its argument prototype would still apply. */ | |
5626 | #ifdef __cplusplus | |
5627 | extern "C" | |
5628 | #endif | |
5629 | char PWL_handle_timeout (); | |
5630 | int | |
5631 | main () | |
5632 | { | |
5633 | return PWL_handle_timeout (); | |
5634 | ; | |
5635 | return 0; | |
5636 | } | |
5637 | _ACEOF | |
5638 | if ac_fn_c_try_link "$LINENO"; then : | |
5639 | ac_cv_lib_pwl_PWL_handle_timeout=yes | |
e28c595f | 5640 | else |
b123da99 SP |
5641 | ac_cv_lib_pwl_PWL_handle_timeout=no |
5642 | fi | |
5643 | rm -f core conftest.err conftest.$ac_objext \ | |
5644 | conftest$ac_exeext conftest.$ac_ext | |
5645 | LIBS=$ac_check_lib_save_LIBS | |
5646 | fi | |
5647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5 | |
5648 | $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; } | |
5649 | if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then : | |
5650 | pwllib="-lpwl" | |
81ecdfbb RW |
5651 | fi |
5652 | ||
0e8ad34f | 5653 | LIBS="$saved_LIBS" |
b123da99 | 5654 | fi |
e28c595f | 5655 | |
b123da99 SP |
5656 | ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx" |
5657 | ||
5658 | if test "$enable_ppl_version_check" != no; then | |
5659 | saved_CFLAGS="$CFLAGS" | |
5660 | CFLAGS="$CFLAGS $pplinc $gmpinc" | |
5661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5 | |
5662 | $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; } | |
5663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e28c595f JM |
5664 | /* end confdefs.h. */ |
5665 | #include "ppl_c.h" | |
5666 | int | |
5667 | main () | |
5668 | { | |
5669 | ||
b123da99 SP |
5670 | #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11 |
5671 | choke me | |
5672 | #endif | |
e28c595f JM |
5673 | |
5674 | ; | |
5675 | return 0; | |
5676 | } | |
5677 | _ACEOF | |
81ecdfbb RW |
5678 | if ac_fn_c_try_compile "$LINENO"; then : |
5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5680 | $as_echo "yes" >&6; } | |
e28c595f | 5681 | else |
81ecdfbb | 5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1f53ca9a | 5683 | $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no |
e28c595f | 5684 | fi |
81ecdfbb | 5685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b123da99 SP |
5686 | CFLAGS="$saved_CFLAGS" |
5687 | fi | |
e28c595f JM |
5688 | fi |
5689 | ||
5690 | # Flags needed for PPL | |
5691 | ||
5692 | ||
5693 | ||
5694 | ||
5695 | # Check for CLOOG | |
e552509b | 5696 | |
e28c595f JM |
5697 | |
5698 | ||
81ecdfbb RW |
5699 | # Check whether --with-cloog was given. |
5700 | if test "${with_cloog+set}" = set; then : | |
5701 | withval=$with_cloog; | |
81ecdfbb RW |
5702 | fi |
5703 | ||
e28c595f | 5704 | |
e552509b | 5705 | # Check whether --with-cloog-include was given. |
81ecdfbb RW |
5706 | if test "${with_cloog_include+set}" = set; then : |
5707 | withval=$with_cloog_include; | |
5708 | fi | |
e28c595f | 5709 | |
e28c595f | 5710 | |
e552509b | 5711 | # Check whether --with-cloog-lib was given. |
81ecdfbb RW |
5712 | if test "${with_cloog_lib+set}" = set; then : |
5713 | withval=$with_cloog_lib; | |
5714 | fi | |
e28c595f | 5715 | |
e28c595f | 5716 | |
e552509b ILT |
5717 | # Check whether --enable-cloog-backend was given. |
5718 | if test "${enable_cloog_backend+set}" = set; then : | |
5719 | enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then | |
5720 | cloog_backend=isl | |
5721 | elif test "x${enableval}" = "xppl"; then | |
5722 | cloog_backend=ppl | |
5723 | else | |
5724 | cloog_backend=ppl-legacy | |
5725 | fi | |
5726 | else | |
5727 | cloog_backend=ppl-legacy | |
5728 | fi | |
5729 | ||
5730 | # Check whether --enable-cloog-version-check was given. | |
5731 | if test "${enable_cloog_version_check+set}" = set; then : | |
5732 | enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval | |
5733 | else | |
5734 | ENABLE_CLOOG_CHECK=yes | |
5735 | fi | |
5736 | ||
5737 | ||
5738 | # Initialize clooglibs and clooginc. | |
5739 | case $with_cloog in | |
5740 | no) | |
5741 | clooglibs= | |
5742 | clooginc= | |
5743 | ;; | |
5744 | "" | yes) | |
5745 | ;; | |
5746 | *) | |
5747 | clooglibs="-L$with_cloog/lib" | |
5748 | clooginc="-I$with_cloog/include" | |
5749 | ;; | |
5750 | esac | |
5751 | if test "x${with_cloog_include}" != x ; then | |
5752 | clooginc="-I$with_cloog_include" | |
5753 | fi | |
5754 | if test "x${with_cloog_lib}" != x; then | |
5755 | clooglibs="-L$with_cloog_lib" | |
5756 | fi | |
5757 | ||
5758 | ||
5759 | ||
5760 | ||
5761 | ||
1f53ca9a | 5762 | if test "x$with_ppl" = "xno"; then |
8d8eef9a RW |
5763 | |
5764 | ||
5765 | ||
5766 | if test "x${with_cloog}" = xno; then | |
5767 | graphite_requested=no | |
5768 | elif test "x${with_cloog}" != x \ | |
5769 | || test "x${with_cloog_include}" != x \ | |
5770 | || test "x${with_cloog_lib}" != x ; then | |
5771 | graphite_requested=yes | |
5772 | else | |
5773 | graphite_requested=no | |
5774 | fi | |
5775 | ||
5776 | ||
5777 | if test "${graphite_requested}" = yes; then | |
5778 | as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5 | |
5779 | fi | |
1f53ca9a AO |
5780 | with_cloog=no |
5781 | fi | |
e552509b ILT |
5782 | if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \ |
5783 | && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then | |
5784 | clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' ' | |
5785 | clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include ' | |
5786 | fi | |
5787 | if test "x$with_cloog" != "xno"; then | |
1f53ca9a | 5788 | |
e552509b ILT |
5789 | |
5790 | ||
5791 | _cloog_saved_CFLAGS=$CFLAGS | |
5792 | _cloog_saved_CPPFLAGS=$CPPFLAGS | |
5793 | _cloog_saved_LDFLAGS=$LDFLAGS | |
5794 | _cloog_saved_LIBS=$LIBS | |
5795 | ||
5796 | _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG" | |
5797 | ||
5798 | CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}" | |
5799 | CPPFLAGS="${CPPFLAGS} ${_cloogorginc}" | |
5800 | LDFLAGS="${LDFLAGS} ${clooglibs}" | |
5801 | ||
5802 | case $cloog_backend in | |
5803 | "ppl-legacy") | |
5804 | CFLAGS="${CFLAGS} ${pplinc}" | |
5805 | LDFLAGS="${LDFLAGS} ${ppllibs}" | |
5806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5 | |
5807 | $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; } | |
5808 | if test "${gcc_cv_cloog_type+set}" = set; then : | |
5809 | $as_echo_n "(cached) " >&6 | |
5810 | else | |
5811 | LIBS="-lcloog ${_cloog_saved_LIBS}" | |
5812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5813 | /* end confdefs.h. */ | |
5814 | #include "cloog/cloog.h" | |
5815 | int | |
5816 | main () | |
5817 | { | |
5818 | #ifndef CLOOG_PPL_BACKEND | |
5819 | choke me | |
5820 | #endif | |
5821 | ; | |
5822 | return 0; | |
5823 | } | |
5824 | _ACEOF | |
5825 | if ac_fn_c_try_link "$LINENO"; then : | |
5826 | gcc_cv_cloog_type="PPL Legacy" | |
5827 | else | |
5828 | gcc_cv_cloog_type=no | |
5829 | fi | |
5830 | rm -f core conftest.err conftest.$ac_objext \ | |
5831 | conftest$ac_exeext conftest.$ac_ext | |
e28c595f | 5832 | fi |
e552509b ILT |
5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 |
5834 | $as_echo "$gcc_cv_cloog_type" >&6; } | |
5835 | ;; | |
5836 | "isl") | |
5837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5 | |
5838 | $as_echo_n "checking for installed CLooG ISL... " >&6; } | |
5839 | if test "${gcc_cv_cloog_type+set}" = set; then : | |
5840 | $as_echo_n "(cached) " >&6 | |
5841 | else | |
5842 | LIBS="-lcloog-isl ${_cloog_saved_LIBS}" | |
5843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5844 | /* end confdefs.h. */ | |
5845 | #include "cloog/cloog.h" | |
5846 | int | |
5847 | main () | |
5848 | { | |
5849 | cloog_version () | |
5850 | ; | |
5851 | return 0; | |
5852 | } | |
5853 | _ACEOF | |
5854 | if ac_fn_c_try_link "$LINENO"; then : | |
5855 | gcc_cv_cloog_type="ISL" | |
5856 | else | |
5857 | gcc_cv_cloog_type=no | |
e28c595f | 5858 | fi |
e552509b ILT |
5859 | rm -f core conftest.err conftest.$ac_objext \ |
5860 | conftest$ac_exeext conftest.$ac_ext | |
e28c595f | 5861 | fi |
e552509b ILT |
5862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 |
5863 | $as_echo "$gcc_cv_cloog_type" >&6; } | |
5864 | ;; | |
5865 | "ppl") | |
5866 | CFLAGS="${CFLAGS} ${pplinc}" | |
5867 | LDFLAGS="${LDFLAGS} ${ppllibs}" | |
5868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5 | |
5869 | $as_echo_n "checking for installed CLooG PPL... " >&6; } | |
5870 | if test "${gcc_cv_cloog_type+set}" = set; then : | |
5871 | $as_echo_n "(cached) " >&6 | |
e28c595f | 5872 | else |
e552509b ILT |
5873 | LIBS="-lcloog-ppl ${_cloog_saved_LIBS}" |
5874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5875 | /* end confdefs.h. */ | |
5876 | #include "cloog/cloog.h" | |
5877 | #include "cloog/ppl/cloog.h" | |
5878 | int | |
5879 | main () | |
5880 | { | |
5881 | cloog_version () | |
5882 | ; | |
5883 | return 0; | |
5884 | } | |
5885 | _ACEOF | |
5886 | if ac_fn_c_try_link "$LINENO"; then : | |
5887 | gcc_cv_cloog_type="PPL" | |
5888 | else | |
5889 | gcc_cv_cloog_type=no | |
81ecdfbb | 5890 | fi |
e552509b ILT |
5891 | rm -f core conftest.err conftest.$ac_objext \ |
5892 | conftest$ac_exeext conftest.$ac_ext | |
5893 | fi | |
5894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 | |
5895 | $as_echo "$gcc_cv_cloog_type" >&6; } | |
5896 | ;; | |
5897 | *) | |
5898 | gcc_cv_cloog_type="" | |
5899 | esac | |
5900 | ||
5901 | case $gcc_cv_cloog_type in | |
5902 | "PPL Legacy") | |
5903 | clooginc="${clooginc}" | |
5904 | clooglibs="${clooglibs} -lcloog" | |
5905 | cloog_org=no | |
5906 | ;; | |
5907 | "ISL") | |
5908 | clooginc="${clooginc} ${_cloogorginc}" | |
b123da99 | 5909 | clooglibs="${clooglibs} -lcloog-isl -lisl" |
e552509b ILT |
5910 | cloog_org=yes |
5911 | ;; | |
5912 | "PPL") | |
5913 | clooginc="${clooginc} ${_cloogorginc}" | |
5914 | clooglibs="${clooglibs} -lcloog-ppl" | |
5915 | cloog_org=yes | |
5916 | ;; | |
5917 | *) | |
5918 | clooglibs= | |
5919 | clooginc= | |
5920 | cloog_org= | |
5921 | ;; | |
5922 | esac | |
81ecdfbb | 5923 | |
e552509b ILT |
5924 | LIBS=$_cloog_saved_LIBS |
5925 | CFLAGS=$_cloog_saved_CFLAGS | |
5926 | CPPFLAGS=$_cloog_saved_CPPFLAGS | |
5927 | LDFLAGS=$_cloog_saved_LDFLAGS | |
e28c595f | 5928 | |
e552509b ILT |
5929 | |
5930 | ||
5931 | ||
5932 | ||
5933 | if test "${ENABLE_CLOOG_CHECK}" = yes ; then | |
5934 | _cloog_saved_CFLAGS=$CFLAGS | |
5935 | _cloog_saved_LDFLAGS=$LDFLAGS | |
5936 | ||
5937 | CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}" | |
5938 | LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}" | |
5939 | ||
5940 | if test "${cloog_org}" = yes ; then | |
8d8eef9a RW |
5941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5 |
5942 | $as_echo_n "checking for version 0.16.1 of CLooG... " >&6; } | |
e552509b ILT |
5943 | if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then : |
5944 | $as_echo_n "(cached) " >&6 | |
5945 | else | |
5946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5947 | /* end confdefs.h. */ | |
5948 | #include "cloog/cloog.h" | |
5949 | int | |
5950 | main () | |
5951 | { | |
5952 | #if CLOOG_VERSION_MAJOR != 0 \ | |
8d8eef9a RW |
5953 | || CLOOG_VERSION_MINOR != 16 \ |
5954 | || CLOOG_VERSION_REVISION < 1 | |
e552509b ILT |
5955 | choke me |
5956 | #endif | |
5957 | ; | |
5958 | return 0; | |
5959 | } | |
5960 | _ACEOF | |
5961 | if ac_fn_c_try_compile "$LINENO"; then : | |
5962 | gcc_cv_cloog_ct_0_14_0=yes | |
5963 | else | |
5964 | gcc_cv_cloog_ct_0_14_0=no | |
5965 | fi | |
5966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5967 | fi | |
5968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5 | |
5969 | $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; } | |
5970 | elif test "${cloog_org}" = no ; then | |
5971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5 | |
143754cd | 5972 | $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; } |
e552509b ILT |
5973 | if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then : |
5974 | $as_echo_n "(cached) " >&6 | |
5975 | else | |
81ecdfbb | 5976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e28c595f JM |
5977 | /* end confdefs.h. */ |
5978 | #include "cloog/cloog.h" | |
5979 | int | |
5980 | main () | |
5981 | { | |
e552509b ILT |
5982 | #if CLOOG_VERSION_MAJOR != 0 \ |
5983 | || CLOOG_VERSION_MINOR != 15 \ | |
5984 | || CLOOG_VERSION_REVISION < 5 | |
5985 | choke me | |
5986 | #endif | |
e28c595f JM |
5987 | ; |
5988 | return 0; | |
5989 | } | |
5990 | _ACEOF | |
a009f2e7 RW |
5991 | if ac_fn_c_try_compile "$LINENO"; then : |
5992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5993 | /* end confdefs.h. */ | |
5994 | #include "cloog/cloog.h" | |
5995 | int | |
5996 | main () | |
5997 | { | |
e552509b ILT |
5998 | #if CLOOG_VERSION_MAJOR != 0 \ |
5999 | || CLOOG_VERSION_MINOR != 15 \ | |
6000 | || CLOOG_VERSION_REVISION < 9 | |
6001 | choke me | |
6002 | #endif | |
a009f2e7 RW |
6003 | ; |
6004 | return 0; | |
6005 | } | |
6006 | _ACEOF | |
81ecdfbb | 6007 | if ac_fn_c_try_compile "$LINENO"; then : |
e552509b | 6008 | gcc_cv_cloog_ct_0_15_5=yes |
a009f2e7 | 6009 | else |
e552509b | 6010 | gcc_cv_cloog_ct_0_15_5="buggy but acceptable" |
a009f2e7 RW |
6011 | fi |
6012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e28c595f | 6013 | else |
e552509b | 6014 | gcc_cv_cloog_ct_0_15_5=no |
e28c595f | 6015 | fi |
81ecdfbb | 6016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e28c595f | 6017 | fi |
e552509b ILT |
6018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5 |
6019 | $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; } | |
6020 | fi | |
6021 | ||
6022 | CFLAGS=$_cloog_saved_CFLAGS | |
6023 | LDFLAGS=$_cloog_saved_LDFLAGS | |
6024 | fi | |
6025 | ||
6026 | ||
6027 | ||
e28c595f | 6028 | |
e28c595f JM |
6029 | |
6030 | ||
6031 | ||
8d8eef9a RW |
6032 | if test "x${with_cloog}" = xno; then |
6033 | graphite_requested=no | |
6034 | elif test "x${with_cloog}" != x \ | |
e552509b ILT |
6035 | || test "x${with_cloog_include}" != x \ |
6036 | || test "x${with_cloog_lib}" != x ; then | |
6037 | graphite_requested=yes | |
6038 | else | |
6039 | graphite_requested=no | |
6040 | fi | |
6041 | ||
6042 | ||
6043 | ||
6044 | if test "${gcc_cv_cloog_ct_0_14_0}" = no \ | |
6045 | || test "${gcc_cv_cloog_rt_0_14_0}" = no \ | |
6046 | || test "${gcc_cv_cloog_ct_0_15_5}" = no; then | |
6047 | clooglibs= | |
6048 | clooginc= | |
6049 | fi | |
6050 | ||
6051 | if test "${graphite_requested}" = yes \ | |
6052 | && test "x${clooglibs}" = x \ | |
6053 | && test "x${clooginc}" = x ; then | |
6054 | ||
8d8eef9a | 6055 | as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5 |
e552509b ILT |
6056 | fi |
6057 | ||
6058 | ||
6059 | fi | |
6060 | ||
700d40ca ILT |
6061 | # Check for LTO support. |
6062 | # Check whether --enable-lto was given. | |
6063 | if test "${enable_lto+set}" = set; then : | |
6064 | enableval=$enable_lto; enable_lto=$enableval | |
6065 | else | |
6066 | enable_lto=yes; default_enable_lto=yes | |
6067 | fi | |
6068 | ||
6069 | ||
143754cd | 6070 | |
e49e5c92 DK |
6071 | |
6072 | ||
6073 | target_elf=no | |
6074 | case $target in | |
6075 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
090bc50f | 6076 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
a009f2e7 | 6077 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*) |
e49e5c92 DK |
6078 | target_elf=no |
6079 | ;; | |
6080 | *) | |
6081 | target_elf=yes | |
6082 | ;; | |
6083 | esac | |
6084 | ||
6085 | if test $target_elf = yes; then : | |
74cea91b DK |
6086 | # ELF platforms build the lto-plugin always. |
6087 | build_lto_plugin=yes | |
e49e5c92 | 6088 | |
e49e5c92 DK |
6089 | else |
6090 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 6091 | case $target in |
899b04ef | 6092 | *-apple-darwin9* | *-cygwin* | *-mingw*) ;; |
74cea91b | 6093 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
6094 | *) enable_lto=no ;; |
6095 | esac | |
e49e5c92 | 6096 | else |
29821356 RW |
6097 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6098 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
6099 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6100 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6101 | # -flto it won't be needed until after installation anyway. | |
6102 | case $target in | |
a8eb3f0a | 6103 | *-cygwin* | *-mingw* | *-apple-darwin*) ;; |
e49e5c92 DK |
6104 | *) if test x"$enable_lto" = x"yes"; then |
6105 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6106 | fi | |
6107 | ;; | |
6108 | esac | |
6109 | fi | |
a8eb3f0a | 6110 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 6111 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 6112 | case $target in |
74cea91b | 6113 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
6114 | *) ;; |
6115 | esac | |
74cea91b | 6116 | |
e49e5c92 DK |
6117 | fi |
6118 | ||
700d40ca | 6119 | |
e28c595f | 6120 | |
947f426e | 6121 | # By default, C is the only stage 1 language. |
9b134994 | 6122 | stage1_languages=,c, |
1d39f329 | 6123 | |
e8a5fa9c | 6124 | # Target libraries that we bootstrap. |
2aa2364a | 6125 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 6126 | |
9e07f89d NN |
6127 | # Figure out what language subdirectories are present. |
6128 | # Look if the user specified --enable-languages="..."; if not, use | |
6129 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6130 | # go away some day. | |
6131 | # NB: embedded tabs in this IF block -- do not untabify | |
6132 | if test -d ${srcdir}/gcc; then | |
6133 | if test x"${enable_languages+set}" != xset; then | |
6134 | if test x"${LANGUAGES+set}" = xset; then | |
6135 | enable_languages="${LANGUAGES}" | |
6136 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
6137 | else | |
6138 | enable_languages=all | |
6139 | fi | |
6140 | else | |
6141 | if test x"${enable_languages}" = x || | |
6142 | test x"${enable_languages}" = xyes; | |
6143 | then | |
6144 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
6145 | exit 1 | |
6146 | fi | |
6147 | fi | |
6148 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6149 | ||
096f7d00 DE |
6150 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6151 | # and make the substitution. | |
6152 | case ,${enable_languages}, in | |
6153 | *,f95,*) | |
6154 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
6155 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
6156 | ;; | |
6157 | esac | |
6158 | ||
ffdd6afc ILT |
6159 | # If bootstrapping, then using --enable-build-with-cxx or |
6160 | # --enable-build-poststage1-with-cxx requires enabling C++. | |
6161 | case ",$enable_languages,:,$ENABLE_BUILD_WITH_CXX,$ENABLE_BUILD_POSTSTAGE1_WITH_CXX,:$enable_bootstrap" in | |
6162 | *,c++,*:*:*) ;; | |
6163 | *:*,yes,*:yes) | |
6164 | if test -f ${srcdir}/gcc/cp/config-lang.in; then | |
6165 | enable_languages="${enable_languages},c++" | |
6166 | else | |
6167 | as_fn_error "bootstrapping with --enable-build-with-cxx or --enable-build-poststage1-with-cxx requires c++ sources" "$LINENO" 5 | |
6168 | fi | |
6169 | ;; | |
6170 | esac | |
6171 | ||
9e07f89d NN |
6172 | # First scan to see if an enabled language requires some other language. |
6173 | # We assume that a given config-lang.in will list all the language | |
6174 | # front ends it requires, even if some are required indirectly. | |
6175 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6176 | case ${lang_frag} in | |
6177 | ..) ;; | |
6178 | # The odd quoting in the next line works around | |
6179 | # an apparent bug in bash 1.12 on linux. | |
6180 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6181 | *) | |
e552509b ILT |
6182 | # From the config-lang.in, get $language, $lang_requires, and |
6183 | # $lang_requires_boot_languages. | |
9e07f89d NN |
6184 | language= |
6185 | lang_requires= | |
e552509b | 6186 | lang_requires_boot_languages= |
9e07f89d | 6187 | . ${lang_frag} |
e552509b | 6188 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
6189 | case ,${enable_languages}, in |
6190 | *,$other,*) ;; | |
6191 | *,all,*) ;; | |
6192 | *,$language,*) | |
6193 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6194 | enable_languages="${enable_languages},${other}" | |
6195 | ;; | |
6196 | esac | |
6197 | done | |
e552509b ILT |
6198 | for other in ${lang_requires_boot_languages} ; do |
6199 | if test "$other" != "c"; then | |
6200 | case ,${enable_stage1_languages}, in | |
6201 | *,$other,*) ;; | |
6202 | *,all,*) ;; | |
6203 | *) | |
6204 | case ,${enable_languages}, in | |
6205 | *,$language,*) | |
6206 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6207 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6208 | ;; | |
6209 | esac | |
6210 | ;; | |
6211 | esac | |
6212 | fi | |
6213 | done | |
9e07f89d NN |
6214 | ;; |
6215 | esac | |
6216 | done | |
6217 | ||
9b134994 | 6218 | new_enable_languages=,c, |
700d40ca ILT |
6219 | |
6220 | # If LTO is enabled, add the LTO front end. | |
6221 | extra_host_libiberty_configure_flags= | |
6222 | if test "$enable_lto" = "yes" ; then | |
6811fb56 RW |
6223 | case ,${enable_languages}, in |
6224 | *,lto,*) ;; | |
6225 | *) enable_languages="${enable_languages},lto" ;; | |
6226 | esac | |
a8eb3f0a | 6227 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca ILT |
6228 | configdirs="$configdirs lto-plugin" |
6229 | extra_host_libiberty_configure_flags=--enable-shared | |
6230 | fi | |
6231 | fi | |
6232 | ||
6233 | ||
9e07f89d | 6234 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 6235 | potential_languages=,c, |
9e07f89d | 6236 | |
9e1a94f4 ILT |
6237 | enabled_target_libs= |
6238 | disabled_target_libs= | |
6239 | ||
9e07f89d NN |
6240 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6241 | case ${lang_frag} in | |
6242 | ..) ;; | |
6243 | # The odd quoting in the next line works around | |
6244 | # an apparent bug in bash 1.12 on linux. | |
6245 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6246 | *) | |
c6b750e1 | 6247 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 6248 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
6249 | language= |
6250 | target_libs= | |
6251 | lang_dirs= | |
64ce424c | 6252 | subdir_requires= |
9b134994 PB |
6253 | boot_language=no |
6254 | build_by_default=yes | |
9e07f89d | 6255 | . ${lang_frag} |
9b134994 PB |
6256 | if test x${language} = x; then |
6257 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6258 | exit 1 | |
6259 | fi | |
6260 | ||
ffdd6afc ILT |
6261 | if test "$language" = "c++"; then |
6262 | if test "$ENABLE_BUILD_WITH_CXX" = "yes" \ | |
6263 | || test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then | |
6264 | boot_language=yes | |
6265 | fi | |
e8a5fa9c RW |
6266 | fi |
6267 | ||
9b134994 PB |
6268 | case ,${enable_languages}, in |
6269 | *,${language},*) | |
9e07f89d NN |
6270 | # Language was explicitly selected; include it. |
6271 | add_this_lang=yes | |
6272 | ;; | |
9b134994 PB |
6273 | *,all,*) |
6274 | # 'all' was selected, select it if it is a default language | |
6275 | add_this_lang=${build_by_default} | |
9e07f89d NN |
6276 | ;; |
6277 | *) | |
6278 | add_this_lang=no | |
6279 | ;; | |
6280 | esac | |
4b1cb4fe | 6281 | |
64ce424c | 6282 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 6283 | for i in $subdir_requires; do |
3d3adb43 | 6284 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
64ce424c PB |
6285 | case ,${enable_languages}, in |
6286 | *,${language},*) | |
6287 | # Specifically requested language; tell them. | |
81ecdfbb | 6288 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c PB |
6289 | ;; |
6290 | *) | |
6291 | # Silently disable. | |
9b134994 | 6292 | add_this_lang=unsupported |
64ce424c PB |
6293 | ;; |
6294 | esac | |
6295 | done | |
6296 | ||
9b134994 PB |
6297 | # Disable Ada if no preexisting GNAT is available. |
6298 | case ,${enable_languages},:${language}:${have_gnat} in | |
6299 | *,${language},*:ada:no) | |
6300 | # Specifically requested language; tell them. | |
81ecdfbb | 6301 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
9b134994 PB |
6302 | ;; |
6303 | *:ada:no) | |
6304 | # Silently disable. | |
6305 | add_this_lang=unsupported | |
6306 | ;; | |
6307 | esac | |
6308 | ||
59f7ec45 HPN |
6309 | # Disable a language that is unsupported by the target. |
6310 | case " $unsupported_languages " in | |
6311 | *" $language "*) | |
9b134994 | 6312 | add_this_lang=unsupported |
59f7ec45 HPN |
6313 | ;; |
6314 | esac | |
6315 | ||
4b1cb4fe | 6316 | case $add_this_lang in |
9b134994 | 6317 | unsupported) |
9e07f89d | 6318 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
6319 | disabled_target_libs="$disabled_target_libs $target_libs" |
6320 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 6321 | ;; |
9b134994 PB |
6322 | no) |
6323 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
6324 | disabled_target_libs="$disabled_target_libs $target_libs" |
6325 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
6326 | potential_languages="${potential_languages}${language}," |
6327 | ;; | |
6328 | yes) | |
6329 | new_enable_languages="${new_enable_languages}${language}," | |
6330 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 6331 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 6332 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
6333 | case "${boot_language}:,$enable_stage1_languages," in |
6334 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 6335 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
6336 | case ",$stage1_languages," in |
6337 | *,$language,* | ,yes, | ,all,) ;; | |
6338 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6339 | esac | |
e8a5fa9c RW |
6340 | # We need to bootstrap any supporting libraries. |
6341 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
1d39f329 NN |
6342 | ;; |
6343 | esac | |
6344 | ;; | |
9e07f89d NN |
6345 | esac |
6346 | ;; | |
6347 | esac | |
6348 | done | |
6349 | ||
9e1a94f4 ILT |
6350 | # Add target libraries which are only needed for disabled languages |
6351 | # to noconfigdirs. | |
6352 | if test -n "$disabled_target_libs"; then | |
6353 | for dir in $disabled_target_libs; do | |
6354 | case " $enabled_target_libs " in | |
6355 | *" ${dir} "*) ;; | |
6356 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6357 | esac | |
6358 | done | |
6359 | fi | |
6360 | ||
81ecdfbb RW |
6361 | # Check whether --enable-stage1-languages was given. |
6362 | if test "${enable_stage1_languages+set}" = set; then : | |
6363 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
6364 | ,no,|,,) |
6365 | # Set it to something that will have no effect in the loop below | |
6366 | enable_stage1_languages=c ;; | |
6367 | ,yes,) | |
6368 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6369 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6370 | *,all,*) | |
6371 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6372 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6373 | esac | |
6374 | ||
6375 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6376 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6377 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6378 | case $potential_languages in | |
6379 | *,$i,*) | |
6380 | case $stage1_languages in | |
6381 | *,$i,*) ;; | |
6382 | *) stage1_languages="$stage1_languages$i," ;; | |
6383 | esac ;; | |
6384 | *) | |
6385 | case $missing_languages in | |
6386 | *,$i,*) ;; | |
6387 | *) missing_languages="$missing_languages$i," ;; | |
6388 | esac ;; | |
6389 | esac | |
6390 | done | |
81ecdfbb RW |
6391 | fi |
6392 | ||
9b134994 PB |
6393 | |
6394 | # Remove leading/trailing commas that were added for simplicity | |
6395 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 6396 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
6397 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6398 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6399 | ||
9e07f89d | 6400 | if test "x$missing_languages" != x; then |
81ecdfbb | 6401 | as_fn_error " |
27258dd4 | 6402 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 6403 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 6404 | fi |
9e07f89d NN |
6405 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6406 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 6407 | enable_languages="$new_enable_languages" |
9e07f89d | 6408 | fi |
9b134994 | 6409 | |
c6b750e1 | 6410 | |
81ec575a | 6411 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
6412 | fi |
6413 | ||
a6df5a19 PB |
6414 | # Handle --disable-<component> generically. |
6415 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6416 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
6417 | varname=`echo $dirname | sed -e s/+/_/g` |
6418 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
6419 | noconfigdirs="$noconfigdirs $dir" |
6420 | fi | |
6421 | done | |
6422 | ||
4f0ef2d8 | 6423 | # Check for Boehm's garbage collector |
81ecdfbb RW |
6424 | # Check whether --enable-objc-gc was given. |
6425 | if test "${enable_objc_gc+set}" = set; then : | |
6426 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
4f0ef2d8 | 6427 | *,objc,*:*:yes:*target-boehm-gc*) |
81ecdfbb | 6428 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
4f0ef2d8 CD |
6429 | ;; |
6430 | esac | |
81ecdfbb RW |
6431 | fi |
6432 | ||
4f0ef2d8 CD |
6433 | |
6434 | # Make sure we only build Boehm's garbage collector if required. | |
d42c4017 DA |
6435 | case ,${enable_languages},:${enable_objc_gc} in |
6436 | *,objc,*:yes) | |
4f0ef2d8 CD |
6437 | # Keep target-boehm-gc if requested for Objective-C. |
6438 | ;; | |
4f0ef2d8 | 6439 | *) |
d42c4017 DA |
6440 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6441 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6442 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6443 | fi | |
4f0ef2d8 CD |
6444 | ;; |
6445 | esac | |
6446 | ||
caeba88f AL |
6447 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6448 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
6449 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6450 | ||
6451 | notsupp="" | |
6452 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 6453 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
6454 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6455 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6456 | if test -r $srcdir/$dirname/configure ; then | |
6457 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6458 | true | |
6459 | else | |
6460 | notsupp="$notsupp $dir" | |
6461 | fi | |
6462 | fi | |
6463 | fi | |
caeba88f AL |
6464 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6465 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6466 | if test -r $srcdir/$dirname/configure ; then | |
6467 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6468 | true | |
6469 | else | |
6470 | notsupp="$notsupp $dir" | |
6471 | fi | |
6472 | fi | |
6473 | fi | |
9e07f89d NN |
6474 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6475 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6476 | if test -r $srcdir/$dirname/configure ; then | |
6477 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6478 | true | |
6479 | else | |
6480 | notsupp="$notsupp $dir" | |
6481 | fi | |
6482 | fi | |
6483 | fi | |
6484 | done | |
6485 | ||
9e07f89d NN |
6486 | # Quietly strip out all directories which aren't configurable in this tree. |
6487 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6488 | # is now the case. | |
6a9cf61e PB |
6489 | build_configdirs_all="$build_configdirs" |
6490 | build_configdirs= | |
6491 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 6492 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
6493 | if test -f ${srcdir}/$j/configure ; then |
6494 | build_configdirs="${build_configdirs} $i" | |
6495 | fi | |
6496 | done | |
6497 | ||
9e07f89d NN |
6498 | configdirs_all="$configdirs" |
6499 | configdirs= | |
6500 | for i in ${configdirs_all} ; do | |
6501 | if test -f ${srcdir}/$i/configure ; then | |
6502 | configdirs="${configdirs} $i" | |
6503 | fi | |
6504 | done | |
6a9cf61e | 6505 | |
9e07f89d NN |
6506 | target_configdirs_all="$target_configdirs" |
6507 | target_configdirs= | |
6508 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 6509 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
6510 | if test -f ${srcdir}/$j/configure ; then |
6511 | target_configdirs="${target_configdirs} $i" | |
6512 | fi | |
6513 | done | |
6514 | ||
6515 | # Produce a warning message for the subdirs we can't configure. | |
6516 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6517 | # FSF releases, it's important to let people know when their machine isn't | |
6518 | # supported by the one or two programs in a package. | |
6519 | ||
6520 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6521 | # If $appdirs is non-empty, at least one of those directories must still | |
6522 | # be configured, or we error out. (E.g., if the gas release supports a | |
6523 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6524 | # pretend that all is well.) | |
6525 | if test -n "$appdirs" ; then | |
6526 | for dir in $appdirs ; do | |
6527 | if test -r $dir/Makefile.in ; then | |
6528 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6529 | appdirs="" | |
6530 | break | |
6531 | fi | |
6a9cf61e | 6532 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
6533 | appdirs="" |
6534 | break | |
6535 | fi | |
6536 | fi | |
6537 | done | |
6538 | if test -n "$appdirs" ; then | |
6539 | echo "*** This configuration is not supported by this package." 1>&2 | |
6540 | exit 1 | |
6541 | fi | |
6542 | fi | |
6543 | # Okay, some application will build, or we don't care to check. Still | |
6544 | # notify of subdirs not getting built. | |
6545 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6546 | echo " ${notsupp}" 1>&2 | |
6547 | echo " (Any other directories should still work fine.)" 1>&2 | |
6548 | fi | |
6549 | ||
6550 | case "$host" in | |
6551 | *msdosdjgpp*) | |
6552 | enable_gdbtk=no ;; | |
6553 | esac | |
6554 | ||
18f6b6ee PB |
6555 | # To find our prefix, in gcc_cv_tool_prefix. |
6556 | ||
6557 | # The user is always right. | |
6558 | if test "${PATH_SEPARATOR+set}" != set; then | |
6559 | echo "#! /bin/sh" >conf$$.sh | |
6560 | echo "exit 0" >>conf$$.sh | |
6561 | chmod +x conf$$.sh | |
6562 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6563 | PATH_SEPARATOR=';' | |
6564 | else | |
6565 | PATH_SEPARATOR=: | |
6566 | fi | |
6567 | rm -f conf$$.sh | |
6568 | fi | |
6569 | ||
6570 | ||
6571 | ||
6572 | if test "x$exec_prefix" = xNONE; then | |
6573 | if test "x$prefix" = xNONE; then | |
6574 | gcc_cv_tool_prefix=$ac_default_prefix | |
6575 | else | |
6576 | gcc_cv_tool_prefix=$prefix | |
6577 | fi | |
6578 | else | |
6579 | gcc_cv_tool_prefix=$exec_prefix | |
6580 | fi | |
6581 | ||
6582 | # If there is no compiler in the tree, use the PATH only. In any | |
6583 | # case, if there is no compiler in the tree nobody should use | |
6584 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6585 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6586 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6587 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6588 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6589 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6590 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6591 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6592 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6593 | else | |
6594 | gcc_cv_tool_dirs= | |
6595 | fi | |
6596 | ||
6597 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6598 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6599 | fi | |
6600 | ||
6601 | ||
6602 | ||
9e07f89d NN |
6603 | copy_dirs= |
6604 | ||
c6b750e1 | 6605 | |
81ecdfbb RW |
6606 | # Check whether --with-build-sysroot was given. |
6607 | if test "${with_build_sysroot+set}" = set; then : | |
6608 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
6609 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6610 | fi | |
6611 | else | |
6612 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 6613 | fi |
a19b6204 MM |
6614 | |
6615 | ||
8a6ee3ab | 6616 | |
81ecdfbb RW |
6617 | |
6618 | # Check whether --with-debug-prefix-map was given. | |
6619 | if test "${with_debug_prefix_map+set}" = set; then : | |
6620 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
6621 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6622 | for debug_map in $withval; do | |
6623 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6624 | done | |
6625 | fi | |
6626 | else | |
6627 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
6628 | fi |
6629 | ||
8a6ee3ab JM |
6630 | |
6631 | ||
7f6ef0c0 PB |
6632 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6633 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6634 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6635 | # We want to ensure that TARGET libraries (which we know are built with | |
6636 | # gcc) are built with "-O2 -g", so include those options when setting | |
6637 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6638 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
6639 | CFLAGS_FOR_TARGET=$CFLAGS | |
6640 | case " $CFLAGS " in | |
6641 | *" -O2 "*) ;; | |
6642 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;; | |
6643 | esac | |
6644 | case " $CFLAGS " in | |
6645 | *" -g "* | *" -g3 "*) ;; | |
6646 | *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;; | |
6647 | esac | |
6648 | fi | |
6649 | ||
6650 | ||
6651 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
6652 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6653 | case " $CXXFLAGS " in | |
6654 | *" -O2 "*) ;; | |
6655 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;; | |
6656 | esac | |
6657 | case " $CXXFLAGS " in | |
6658 | *" -g "* | *" -g3 "*) ;; | |
6659 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;; | |
6660 | esac | |
6661 | fi | |
6662 | ||
6663 | ||
91c1f14c DK |
6664 | |
6665 | ||
9e07f89d NN |
6666 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6667 | # the named directory are copied to $(tooldir)/sys-include. | |
6668 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6669 | if test x${is_cross_compiler} = xno ; then | |
6670 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6671 | exit 1 | |
6672 | fi | |
6673 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 6674 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 6675 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
6676 | fi |
6677 | fi | |
6678 | ||
6679 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6680 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6681 | # are permitted. | |
6682 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6683 | if test x${is_cross_compiler} = xno ; then | |
6684 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6685 | exit 1 | |
6686 | fi | |
6687 | if test x"${with_libs}" != xyes ; then | |
6688 | # Copy the libraries in reverse order, so that files in the first named | |
6689 | # library override files in subsequent libraries. | |
18f6b6ee | 6690 | x=${gcc_cv_tool_prefix} |
9e07f89d | 6691 | for l in ${with_libs}; do |
c6b750e1 | 6692 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
6693 | done |
6694 | fi | |
6695 | fi | |
6696 | ||
700d40ca | 6697 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
6698 | # |
6699 | # This is done by determining whether or not the appropriate directory | |
6700 | # is available, and by checking whether or not specific configurations | |
6701 | # have requested that this magic not happen. | |
c6b750e1 DJ |
6702 | # |
6703 | # The command line options always override the explicit settings in | |
2429c060 PB |
6704 | # configure.in, and the settings in configure.in override this magic. |
6705 | # | |
c6b750e1 | 6706 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 6707 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
6708 | # --without-gnu-ld options for the configure script. Similarly, if |
6709 | # the default is to use the included zlib and you don't want to do that, | |
6710 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
6711 | |
6712 | if test x${use_gnu_as} = x && | |
6713 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6714 | with_gnu_as=yes | |
6715 | extra_host_args="$extra_host_args --with-gnu-as" | |
6716 | fi | |
6717 | ||
6718 | if test x${use_gnu_ld} = x && | |
93f9b408 | 6719 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
6720 | with_gnu_ld=yes |
6721 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6722 | fi | |
6723 | ||
700d40ca ILT |
6724 | if test x${use_included_zlib} = x && |
6725 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6726 | : | |
6727 | else | |
6728 | with_system_zlib=yes | |
6729 | extra_host_args="$extra_host_args --with-system-zlib" | |
6730 | fi | |
6731 | ||
2429c060 PB |
6732 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6733 | # can detect this case. | |
6734 | ||
6735 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6736 | with_newlib=yes | |
6737 | extra_host_args="$extra_host_args --with-newlib" | |
6738 | fi | |
6739 | ||
9e07f89d NN |
6740 | # Handle ${copy_dirs} |
6741 | set fnord ${copy_dirs} | |
6742 | shift | |
6743 | while test $# != 0 ; do | |
6744 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6745 | : | |
6746 | else | |
6747 | echo Copying $1 to $2 | |
6748 | ||
6749 | # Use the install script to create the directory and all required | |
6750 | # parent directories. | |
6751 | if test -d $2 ; then | |
6752 | : | |
6753 | else | |
6754 | echo >config.temp | |
6755 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6756 | fi | |
6757 | ||
6758 | # Copy the directory, assuming we have tar. | |
6759 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6760 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6761 | ||
6762 | # It is the responsibility of the user to correctly adjust all | |
6763 | # symlinks. If somebody can figure out how to handle them correctly | |
6764 | # here, feel free to add the code. | |
6765 | ||
6766 | echo $1 > $2/COPIED | |
6767 | fi | |
6768 | shift; shift | |
6769 | done | |
6770 | ||
2429c060 PB |
6771 | # Determine a target-dependent exec_prefix that the installed |
6772 | # gcc will search in. Keep this list sorted by triplet, with | |
6773 | # the *-*-osname triplets last. | |
6774 | md_exec_prefix= | |
6775 | case "${target}" in | |
521ec477 | 6776 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
6777 | md_exec_prefix=/dev/env/DJDIR/bin |
6778 | ;; | |
2429c060 | 6779 | *-*-hpux* | \ |
2429c060 | 6780 | *-*-nto-qnx* | \ |
1f111696 | 6781 | *-*-solaris2*) |
2429c060 PB |
6782 | md_exec_prefix=/usr/ccs/bin |
6783 | ;; | |
6784 | esac | |
6785 | ||
a0da8069 NN |
6786 | extra_arflags_for_target= |
6787 | extra_nmflags_for_target= | |
6788 | extra_ranlibflags_for_target= | |
6789 | target_makefile_frag=/dev/null | |
6790 | case "${target}" in | |
77d7106f AM |
6791 | spu-*-*) |
6792 | target_makefile_frag="config/mt-spu" | |
6793 | ;; | |
429acdec RS |
6794 | mips*-sde-elf*) |
6795 | target_makefile_frag="config/mt-sde" | |
6796 | ;; | |
f3b1e08e RS |
6797 | mipsisa*-*-elfoabi*) |
6798 | target_makefile_frag="config/mt-mips-elfoabi" | |
6799 | ;; | |
e7c8859c RS |
6800 | mips*-*-*linux* | mips*-*-gnu*) |
6801 | target_makefile_frag="config/mt-mips-gnu" | |
6802 | ;; | |
29383458 | 6803 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 6804 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
6805 | ;; |
6806 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 6807 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
6808 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6809 | # harmless if we're using GNU nm or ar. | |
6810 | extra_arflags_for_target=" -X32_64" | |
6811 | extra_nmflags_for_target=" -B -X32_64" | |
6812 | ;; | |
92f4e989 JM |
6813 | *-*-darwin[3-9]*) |
6814 | # ranlib before Darwin10 requires the -c flag to look at common symbols. | |
a0da8069 NN |
6815 | extra_ranlibflags_for_target=" -c" |
6816 | ;; | |
a0da8069 NN |
6817 | esac |
6818 | ||
6819 | alphaieee_frag=/dev/null | |
6820 | case $target in | |
6821 | alpha*-*-*) | |
6822 | # This just makes sure to use the -mieee option to build target libs. | |
6823 | # This should probably be set individually by each library. | |
6824 | alphaieee_frag="config/mt-alphaieee" | |
6825 | ;; | |
6826 | esac | |
6827 | ||
6828 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6829 | # the target libraries, similarly if it is not specified, use -Os | |
6830 | # on selected platforms. | |
6831 | ospace_frag=/dev/null | |
6832 | case "${enable_target_optspace}:${target}" in | |
6833 | yes:*) | |
6834 | ospace_frag="config/mt-ospace" | |
6835 | ;; | |
6836 | :d30v-*) | |
6837 | ospace_frag="config/mt-d30v" | |
6838 | ;; | |
6839 | :m32r-* | :d10v-* | :fr30-*) | |
6840 | ospace_frag="config/mt-ospace" | |
6841 | ;; | |
6842 | no:* | :*) | |
6843 | ;; | |
6844 | *) | |
6845 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6846 | ;; | |
6847 | esac | |
6848 | ||
a0da8069 NN |
6849 | # Default to using --with-stabs for certain targets. |
6850 | if test x${with_stabs} = x ; then | |
6851 | case "${target}" in | |
e31d1ea3 | 6852 | mips*-*-irix[56]*) |
a0da8069 NN |
6853 | ;; |
6854 | mips*-*-* | alpha*-*-osf*) | |
6855 | with_stabs=yes; | |
6856 | extra_host_args="${extra_host_args} --with-stabs" | |
6857 | ;; | |
6858 | esac | |
6859 | fi | |
6860 | ||
a0da8069 NN |
6861 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6862 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 6863 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
6864 | build_tooldir=${tooldir} |
6865 | ||
a0da8069 NN |
6866 | # Create a .gdbinit file which runs the one in srcdir |
6867 | # and tells GDB to look there for source files. | |
6868 | ||
6869 | if test -r ${srcdir}/.gdbinit ; then | |
6870 | case ${srcdir} in | |
6871 | .) ;; | |
6872 | *) cat > ./.gdbinit <<EOF | |
6873 | # ${NO_EDIT} | |
6874 | dir ${srcdir} | |
6875 | dir . | |
6876 | source ${srcdir}/.gdbinit | |
6877 | EOF | |
6878 | ;; | |
6879 | esac | |
6880 | fi | |
6881 | ||
a0da8069 NN |
6882 | # Make sure that the compiler is able to generate an executable. If it |
6883 | # can't, we are probably in trouble. We don't care whether we can run the | |
6884 | # executable--we might be using a cross compiler--we only care whether it | |
6885 | # can be created. At this point the main configure script has set CC. | |
6886 | we_are_ok=no | |
6887 | echo "int main () { return 0; }" > conftest.c | |
6888 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
6889 | if test $? = 0 ; then | |
6890 | if test -s conftest || test -s conftest.exe ; then | |
6891 | we_are_ok=yes | |
6892 | fi | |
c6b750e1 | 6893 | fi |
a0da8069 NN |
6894 | case $we_are_ok in |
6895 | no) | |
6896 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
6897 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
6898 | rm -f conftest* | |
6899 | exit 1 | |
6900 | ;; | |
6901 | esac | |
6902 | rm -f conftest* | |
6903 | ||
3bbd2f8f | 6904 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
6905 | case "${host}" in |
6906 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 6907 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 6908 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
6909 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
6910 | esac | |
6911 | ||
3bbd2f8f | 6912 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
6913 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
6914 | # built executables to PATH. | |
3bbd2f8f AL |
6915 | if test "$RPATH_ENVVAR" = PATH; then |
6916 | GCC_SHLIB_SUBDIR=/shlib | |
6917 | else | |
6918 | GCC_SHLIB_SUBDIR= | |
6919 | fi | |
6920 | ||
a0da8069 NN |
6921 | # Record target_configdirs and the configure arguments for target and |
6922 | # build configuration in Makefile. | |
6923 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 6924 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
a0da8069 | 6925 | |
2aa2364a JR |
6926 | # If we are building libgomp, bootstrap it. |
6927 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
6928 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
6929 | fi | |
6930 | ||
a0da8069 NN |
6931 | # Determine whether gdb needs tk/tcl or not. |
6932 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
6933 | # and in that case we want gdb to be built without tk. Ugh! | |
6934 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
6935 | # so we should be able to put the 'maybe's in unconditionally and | |
6936 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
6937 | # 100% sure that that's safe though. | |
c180f501 | 6938 | |
675c6968 | 6939 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
6940 | case "$enable_gdbtk" in |
6941 | no) | |
6942 | GDB_TK="" ;; | |
c180f501 AC |
6943 | yes) |
6944 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 6945 | *) |
c180f501 AC |
6946 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
6947 | # distro. Eventually someone will fix this and move Insight, nee | |
6948 | # gdbtk to a separate directory. | |
6949 | if test -d ${srcdir}/gdb/gdbtk ; then | |
6950 | GDB_TK="${gdb_tk}" | |
6951 | else | |
6952 | GDB_TK="" | |
6953 | fi | |
6954 | ;; | |
a0da8069 | 6955 | esac |
907be67c DJ |
6956 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
6957 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 6958 | |
6bd3dfaa | 6959 | # Strip out unwanted targets. |
dd12c3a8 NN |
6960 | |
6961 | # While at that, we remove Makefiles if we were started for recursive | |
6962 | # configuration, so that the top-level Makefile reconfigures them, | |
6963 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 6964 | |
06a51eac RW |
6965 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
6966 | # but now we're fixing up the Makefile ourselves with the additional | |
6967 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
6968 | # extrasub-{build,host,target} not because there is any reason to split | |
6969 | # the substitutions up that way, but only to remain below the limit of | |
6970 | # 99 commands in a script, for HP-UX sed. | |
6971 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
dd12c3a8 | 6972 | |
16b1ad29 RW |
6973 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
6974 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
6975 | yes:yes:*\ gold\ *:*) | |
6976 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
6977 | ;; | |
6978 | esac | |
6979 | ||
9cb3fa6f | 6980 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
96655cc4 | 6981 | case $enable_bootstrap in |
319cab08 | 6982 | yes) |
96655cc4 AO |
6983 | bootstrap_suffix=bootstrap |
6984 | BUILD_CONFIG=bootstrap-debug | |
6985 | ;; | |
319cab08 | 6986 | no) |
96655cc4 AO |
6987 | bootstrap_suffix=no-bootstrap |
6988 | BUILD_CONFIG= | |
6989 | ;; | |
319cab08 PB |
6990 | esac |
6991 | ||
96655cc4 AO |
6992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 |
6993 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
6994 | ||
6995 | ||
6996 | # Check whether --with-build-config was given. | |
6997 | if test "${with_build_config+set}" = set; then : | |
6998 | withval=$with_build_config; case $with_build_config in | |
6999 | yes) with_build_config= ;; | |
7000 | no) with_build_config= BUILD_CONFIG= ;; | |
7001 | esac | |
7002 | fi | |
7003 | ||
7004 | ||
7005 | if test "x${with_build_config}" != x; then | |
7006 | BUILD_CONFIG=$with_build_config | |
7007 | else | |
7008 | case $BUILD_CONFIG in | |
7009 | bootstrap-debug) | |
7010 | if echo "int f (void) { return 0; }" > conftest.c && | |
7011 | ${CC} -c conftest.c && | |
7012 | mv conftest.o conftest.o.g0 && | |
7013 | ${CC} -c -g conftest.c && | |
7014 | mv conftest.o conftest.o.g && | |
a009f2e7 | 7015 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then |
96655cc4 AO |
7016 | : |
7017 | else | |
7018 | BUILD_CONFIG= | |
7019 | fi | |
7020 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7021 | ;; | |
7022 | esac | |
7023 | fi | |
7024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7025 | $as_echo "$BUILD_CONFIG" >&6; } | |
7026 | ||
7027 | ||
06a51eac | 7028 | extrasub_build= |
6a9cf61e | 7029 | for module in ${build_configdirs} ; do |
498d4a71 CF |
7030 | if test -z "${no_recursion}" \ |
7031 | && test -f ${build_subdir}/${module}/Makefile; then | |
7032 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7033 | rm -f ${build_subdir}/${module}/Makefile | |
7034 | fi | |
06a51eac | 7035 | extrasub_build="$extrasub_build |
498d4a71 CF |
7036 | /^@if build-$module\$/d |
7037 | /^@endif build-$module\$/d | |
7038 | /^@if build-$module-$bootstrap_suffix\$/d | |
7039 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7040 | done | |
06a51eac | 7041 | extrasub_host= |
498d4a71 | 7042 | for module in ${configdirs} ; do |
80911fe1 | 7043 | if test -z "${no_recursion}"; then |
8cf39b1b | 7044 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
7045 | if test -f ${file}; then |
7046 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7047 | rm -f ${file} | |
7048 | fi | |
7049 | done | |
498d4a71 | 7050 | fi |
06a51eac | 7051 | extrasub_host="$extrasub_host |
498d4a71 CF |
7052 | /^@if $module\$/d |
7053 | /^@endif $module\$/d | |
7054 | /^@if $module-$bootstrap_suffix\$/d | |
7055 | /^@endif $module-$bootstrap_suffix\$/d" | |
7056 | done | |
06a51eac | 7057 | extrasub_target= |
498d4a71 CF |
7058 | for module in ${target_configdirs} ; do |
7059 | if test -z "${no_recursion}" \ | |
7060 | && test -f ${target_subdir}/${module}/Makefile; then | |
7061 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7062 | rm -f ${target_subdir}/${module}/Makefile | |
7063 | fi | |
e8a5fa9c RW |
7064 | |
7065 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7066 | case $bootstrap_target_libs in | |
7067 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7068 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7069 | esac | |
7070 | ||
06a51eac | 7071 | extrasub_target="$extrasub_target |
498d4a71 CF |
7072 | /^@if target-$module\$/d |
7073 | /^@endif target-$module\$/d | |
e8a5fa9c RW |
7074 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7075 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
7076 | done |
7077 | ||
06a51eac RW |
7078 | # Do the final fixup along with target modules. |
7079 | extrasub_target="$extrasub_target | |
6bd3dfaa | 7080 | /^@if /,/^@endif /d" |
a0da8069 NN |
7081 | |
7082 | # Create the serialization dependencies. This uses a temporary file. | |
7083 | ||
81ecdfbb RW |
7084 | # Check whether --enable-serial-configure was given. |
7085 | if test "${enable_serial_configure+set}" = set; then : | |
7086 | enableval=$enable_serial_configure; | |
7087 | fi | |
e6bfb94a AO |
7088 | |
7089 | ||
1047cb91 DD |
7090 | case ${enable_serial_configure} in |
7091 | yes) | |
7092 | enable_serial_build_configure=yes | |
7093 | enable_serial_host_configure=yes | |
7094 | enable_serial_target_configure=yes | |
7095 | ;; | |
7096 | esac | |
7097 | ||
a0da8069 NN |
7098 | # These force 'configure's to be done one at a time, to avoid problems |
7099 | # with contention over a shared config.cache. | |
7100 | rm -f serdep.tmp | |
e6bfb94a | 7101 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 7102 | olditem= |
1047cb91 | 7103 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
7104 | for item in ${build_configdirs} ; do |
7105 | case ${olditem} in | |
7106 | "") ;; | |
e6bfb94a | 7107 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7108 | esac |
7109 | olditem=${item} | |
7110 | done | |
7111 | olditem= | |
1047cb91 | 7112 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
7113 | for item in ${configdirs} ; do |
7114 | case ${olditem} in | |
7115 | "") ;; | |
e6bfb94a | 7116 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7117 | esac |
7118 | olditem=${item} | |
7119 | done | |
7120 | olditem= | |
1047cb91 | 7121 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
7122 | for item in ${target_configdirs} ; do |
7123 | case ${olditem} in | |
7124 | "") ;; | |
e6bfb94a | 7125 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7126 | esac |
7127 | olditem=${item} | |
7128 | done | |
7129 | serialization_dependencies=serdep.tmp | |
7130 | ||
7131 | ||
e6bfb94a | 7132 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 7133 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
7134 | # might not want to pass down to subconfigures. The exception being |
7135 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7136 | # files altogether, and which should be passed on to subconfigures. | |
7137 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7138 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 7139 | baseargs= |
65b4571a | 7140 | tbaseargs= |
c6b750e1 DJ |
7141 | keep_next=no |
7142 | skip_next=no | |
7143 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
7144 | for ac_arg |
7145 | do | |
c6b750e1 DJ |
7146 | if test X"$skip_next" = X"yes"; then |
7147 | skip_next=no | |
7148 | continue | |
7149 | fi | |
7150 | if test X"$keep_next" = X"yes"; then | |
7151 | case $ac_arg in | |
7152 | *\'*) | |
7153 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7154 | esac | |
7155 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7156 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
7157 | keep_next=no |
7158 | continue | |
7159 | fi | |
7160 | ||
7161 | # Handle separated arguments. Based on the logic generated by | |
7162 | # autoconf 2.59. | |
7163 | case $ac_arg in | |
7164 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7165 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7166 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7167 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7168 | separate_arg=no | |
7169 | ;; | |
7170 | -*) | |
7171 | separate_arg=yes | |
7172 | ;; | |
7173 | *) | |
7174 | separate_arg=no | |
7175 | ;; | |
7176 | esac | |
7177 | ||
65b4571a AO |
7178 | skip_targ=no |
7179 | case $ac_arg in | |
7180 | ||
7181 | --with-* | --without-*) | |
7182 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7183 | ||
7184 | case $libopt in | |
7185 | *[-_]include) | |
7186 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7187 | ;; | |
7188 | *[-_]lib) | |
7189 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7190 | ;; | |
7191 | *) | |
7192 | lib=$libopt | |
7193 | ;; | |
7194 | esac | |
7195 | ||
7196 | ||
7197 | case $lib in | |
7198 | mpc | mpfr | gmp | ppl | cloog) | |
7199 | # If we're processing --with-$lib, --with-$lib-include or | |
7200 | # --with-$lib-lib, for one of the libs above, and target is | |
7201 | # different from host, don't pass the current argument to any | |
7202 | # target library's configure. | |
7203 | if test x$is_cross_compiler = xyes; then | |
7204 | skip_targ=yes | |
7205 | fi | |
7206 | ;; | |
7207 | esac | |
7208 | ;; | |
7209 | esac | |
7210 | ||
c6b750e1 | 7211 | case "$ac_arg" in |
30167e0a NC |
7212 | --cache-file=/dev/null | \ |
7213 | -cache-file=/dev/null ) | |
7214 | # Handled here to avoid the test to skip args below. | |
7215 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7216 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
7217 | # Assert: $separate_arg should always be no. |
7218 | keep_next=$separate_arg | |
7219 | ;; | |
c6b750e1 DJ |
7220 | --no*) |
7221 | continue | |
7222 | ;; | |
7223 | --c* | \ | |
7224 | --sr* | \ | |
7225 | --ho* | \ | |
7226 | --bu* | \ | |
7227 | --t* | \ | |
7228 | --program-* | \ | |
7229 | -cache_file* | \ | |
7230 | -srcdir* | \ | |
7231 | -host* | \ | |
7232 | -build* | \ | |
7233 | -target* | \ | |
7234 | -program-prefix* | \ | |
7235 | -program-suffix* | \ | |
7236 | -program-transform-name* ) | |
7237 | skip_next=$separate_arg | |
7238 | continue | |
7239 | ;; | |
7240 | -*) | |
7241 | # An option. Add it. | |
7242 | case $ac_arg in | |
7243 | *\'*) | |
7244 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7245 | esac | |
7246 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
7247 | if test X"$skip_targ" = Xno; then |
7248 | tbaseargs="$tbaseargs '$ac_arg'" | |
7249 | fi | |
c6b750e1 DJ |
7250 | keep_next=$separate_arg |
7251 | ;; | |
7252 | *) | |
7253 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7254 | # pass it down; let the Makefile handle this. | |
7255 | continue | |
7256 | ;; | |
7257 | esac | |
7258 | done | |
7259 | # Remove the initial space we just introduced and, as these will be | |
7260 | # expanded by make, quote '$'. | |
7261 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 7262 | |
f27d4f92 DJ |
7263 | # Add in --program-transform-name, after --program-prefix and |
7264 | # --program-suffix have been applied to it. Autoconf has already | |
7265 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7266 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 7267 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
7268 | # Also, because we want to override the logic in subdir configure scripts to |
7269 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7270 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7271 | ${program_transform_name} | |
7272 | EOF_SED | |
7273 | gcc_transform_name=`cat conftestsed.out` | |
7274 | rm -f conftestsed.out | |
7275 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 7276 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
7277 | if test "$silent" = yes; then |
7278 | baseargs="$baseargs --silent" | |
65b4571a | 7279 | tbaseargs="$tbaseargs --silent" |
2444379b | 7280 | fi |
34a0f3cf | 7281 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 7282 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 7283 | |
4074d5f2 RW |
7284 | # Record and document user additions to sub configure arguments. |
7285 | ||
7286 | ||
7287 | ||
7288 | ||
a0da8069 NN |
7289 | # For the build-side libraries, we just need to pretend we're native, |
7290 | # and not use the same cache file. Multilibs are neither needed nor | |
7291 | # desired. | |
4074d5f2 | 7292 | build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}" |
a0da8069 NN |
7293 | |
7294 | # For host modules, accept cache file option, or specification as blank. | |
7295 | case "${cache_file}" in | |
7296 | "") # empty | |
7297 | cache_file_option="" ;; | |
7298 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7299 | cache_file_option="--cache-file=${cache_file}" ;; | |
7300 | *) # relative path | |
7301 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7302 | esac | |
7303 | ||
82252c06 NN |
7304 | # Host dirs don't like to share a cache file either, horribly enough. |
7305 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 7306 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 7307 | |
65b4571a | 7308 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
7309 | |
7310 | # Passing a --with-cross-host argument lets the target libraries know | |
7311 | # whether they are being built with a cross-compiler or being built | |
7312 | # native. However, it would be better to use other mechanisms to make the | |
7313 | # sorts of decisions they want to make on this basis. Please consider | |
7314 | # this option to be deprecated. FIXME. | |
7315 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 7316 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
7317 | fi |
7318 | ||
938d2b74 RW |
7319 | # Default to --enable-multilib. |
7320 | if test x${enable_multilib} = x ; then | |
a0da8069 | 7321 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 7322 | fi |
a0da8069 NN |
7323 | |
7324 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7325 | # changed from the earlier setting of with_newlib. | |
7326 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7327 | target_configargs="--with-newlib ${target_configargs}" | |
7328 | fi | |
7329 | ||
95036d20 NN |
7330 | # Different target subdirs use different values of certain variables |
7331 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7332 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7333 | # it doesn't automatically accept command-line overrides of them. | |
7334 | # This means it's not safe for target subdirs to share a cache file, | |
7335 | # which is disgusting, but there you have it. Hopefully this can be | |
7336 | # fixed in future. It's still worthwhile to use a cache file for each | |
7337 | # directory. I think. | |
7338 | ||
ae380b45 MS |
7339 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7340 | # We need to pass --target, as newer autoconf's requires consistency | |
7341 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 7342 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 7343 | |
a0da8069 NN |
7344 | FLAGS_FOR_TARGET= |
7345 | case " $target_configdirs " in | |
7346 | *" newlib "*) | |
7347 | case " $target_configargs " in | |
7348 | *" --with-newlib "*) | |
7349 | case "$target" in | |
1f53ca9a AO |
7350 | *-cygwin*) |
7351 | 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' | |
7352 | ;; | |
a0da8069 NN |
7353 | esac |
7354 | ||
7355 | # If we're not building GCC, don't discard standard headers. | |
7356 | if test -d ${srcdir}/gcc; then | |
7357 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7358 | ||
7359 | if test "${build}" != "${host}"; then | |
7360 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7361 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7362 | # to it. This is right: we don't want to search that directory | |
7363 | # for binaries, but we want the header files in there, so add | |
7364 | # them explicitly. | |
e552509b | 7365 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
7366 | |
7367 | # Someone might think of using the pre-installed headers on | |
7368 | # Canadian crosses, in case the installed compiler is not fully | |
7369 | # compatible with the compiler being built. In this case, it | |
7370 | # would be better to flag an error than risking having | |
7371 | # incompatible object files being constructed. We can't | |
7372 | # guarantee that an error will be flagged, but let's hope the | |
7373 | # compiler will do it, when presented with incompatible header | |
7374 | # files. | |
7375 | fi | |
7376 | fi | |
7377 | ||
7378 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 7379 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
7380 | # Here host == target, so we don't need to build gcc, |
7381 | # so we don't want to discard standard headers. | |
7382 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7383 | ;; | |
7384 | *) | |
7385 | # If we're building newlib, use its generic headers last, but search | |
7386 | # for any libc-related directories first (so make it the last -B | |
7387 | # switch). | |
7388 | 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 |
7389 | |
7390 | # If we're building libgloss, find the startup file, simulator library | |
7391 | # and linker script. | |
7392 | case " $target_configdirs " in | |
7393 | *" libgloss "*) | |
7394 | # Look for startup file, simulator library and maybe linker script. | |
7395 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7396 | # Look for libnosys.a in case the target needs it. | |
7397 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7398 | # Most targets have the linker script in the source directory. | |
7399 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7400 | ;; | |
7401 | esac | |
a0da8069 NN |
7402 | ;; |
7403 | esac | |
7404 | ;; | |
7405 | esac | |
7406 | ;; | |
7407 | esac | |
1f53ca9a | 7408 | |
45055374 | 7409 | case "$target" in |
1f53ca9a AO |
7410 | x86_64-*mingw* | *-w64-mingw*) |
7411 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7412 | # however, use a symlink named 'mingw' in ${prefix} . | |
7413 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7414 | ;; | |
7415 | *-mingw*) | |
7416 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7417 | 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' | |
7418 | ;; | |
45055374 | 7419 | esac |
a0da8069 | 7420 | |
5fbad20a DD |
7421 | # Allow the user to override the flags for |
7422 | # our build compiler if desired. | |
c66487f8 NC |
7423 | if test x"${build}" = x"${host}" ; then |
7424 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7425 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7426 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7427 | fi | |
5fbad20a | 7428 | |
a0da8069 NN |
7429 | # On Canadian crosses, we'll be searching the right directories for |
7430 | # the previously-installed cross compiler, so don't bother to add | |
7431 | # flags for directories within the install tree of the compiler | |
7432 | # being built; programs in there won't even run. | |
7433 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7434 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 7435 | 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 |
7436 | fi |
7437 | ||
7438 | if test "x${use_gnu_ld}" = x && | |
7439 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7440 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 7441 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
7442 | fi |
7443 | ||
a481dbb7 DD |
7444 | # Search for other target-specific linker scripts and such. |
7445 | case "${target}" in | |
4e206d7e DB |
7446 | mep*) |
7447 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7448 | ;; | |
7449 | esac | |
7450 | ||
a0da8069 | 7451 | # Makefile fragments. |
3e707e94 PB |
7452 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7453 | do | |
7454 | eval fragval=\$$frag | |
7455 | if test $fragval != /dev/null; then | |
7456 | eval $frag=${srcdir}/$fragval | |
7457 | fi | |
7458 | done | |
a0da8069 NN |
7459 | |
7460 | ||
7461 | ||
7462 | ||
7463 | ||
7464 | # Miscellanea: directories, flags, etc. | |
7465 | ||
7466 | ||
7467 | ||
7468 | ||
7469 | ||
7470 | ||
7471 | ||
3bbd2f8f | 7472 | |
6a9cf61e | 7473 | # Build module lists & subconfigure args. |
a0da8069 NN |
7474 | |
7475 | ||
7476 | ||
be01d343 PB |
7477 | # Host module lists & subconfigure args. |
7478 | ||
7479 | ||
7480 | ||
911e63d0 | 7481 | |
be01d343 PB |
7482 | # Target module lists & subconfigure args. |
7483 | ||
7484 | ||
7485 | ||
7486 | # Build tools. | |
7487 | ||
7488 | ||
7489 | ||
1576798e PB |
7490 | |
7491 | ||
7492 | ||
7493 | ||
7494 | ||
7495 | ||
7496 | ||
7497 | ||
7498 | ||
7499 | ||
7500 | ||
7501 | ||
7502 | ||
7503 | ||
be01d343 PB |
7504 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7505 | # on the build machine. These are used if the Makefile can't locate these | |
7506 | # programs in objdir. | |
7507 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7508 | ||
7509 | for ac_prog in 'bison -y' byacc yacc | |
7510 | do | |
c6b750e1 | 7511 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7512 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7514 | $as_echo_n "checking for $ac_word... " >&6; } | |
7515 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7516 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7517 | else |
7518 | if test -n "$YACC"; then | |
7519 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7520 | else | |
c6b750e1 DJ |
7521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7522 | for as_dir in $PATH | |
7523 | do | |
7524 | IFS=$as_save_IFS | |
7525 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7526 | for ac_exec_ext in '' $ac_executable_extensions; do |
7527 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7528 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 7529 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7530 | break 2 |
7531 | fi | |
7532 | done | |
81ecdfbb RW |
7533 | done |
7534 | IFS=$as_save_IFS | |
c6b750e1 | 7535 | |
be01d343 PB |
7536 | fi |
7537 | fi | |
c6b750e1 | 7538 | YACC=$ac_cv_prog_YACC |
be01d343 | 7539 | if test -n "$YACC"; then |
81ecdfbb RW |
7540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7541 | $as_echo "$YACC" >&6; } | |
be01d343 | 7542 | else |
81ecdfbb RW |
7543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7544 | $as_echo "no" >&6; } | |
be01d343 PB |
7545 | fi |
7546 | ||
81ecdfbb | 7547 | |
c6b750e1 | 7548 | test -n "$YACC" && break |
be01d343 PB |
7549 | done |
7550 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7551 | ||
7552 | case " $build_configdirs " in | |
7553 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
7554 | esac |
7555 | ||
7556 | for ac_prog in bison | |
7557 | do | |
c6b750e1 | 7558 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7559 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7561 | $as_echo_n "checking for $ac_word... " >&6; } | |
7562 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7563 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7564 | else |
7565 | if test -n "$BISON"; then | |
7566 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7567 | else | |
c6b750e1 DJ |
7568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7569 | for as_dir in $PATH | |
7570 | do | |
7571 | IFS=$as_save_IFS | |
7572 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7573 | for ac_exec_ext in '' $ac_executable_extensions; do |
7574 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7575 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 7576 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7577 | break 2 |
7578 | fi | |
7579 | done | |
81ecdfbb RW |
7580 | done |
7581 | IFS=$as_save_IFS | |
c6b750e1 | 7582 | |
be01d343 PB |
7583 | fi |
7584 | fi | |
c6b750e1 | 7585 | BISON=$ac_cv_prog_BISON |
be01d343 | 7586 | if test -n "$BISON"; then |
81ecdfbb RW |
7587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7588 | $as_echo "$BISON" >&6; } | |
be01d343 | 7589 | else |
81ecdfbb RW |
7590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7591 | $as_echo "no" >&6; } | |
be01d343 PB |
7592 | fi |
7593 | ||
81ecdfbb | 7594 | |
c6b750e1 | 7595 | test -n "$BISON" && break |
be01d343 PB |
7596 | done |
7597 | test -n "$BISON" || BISON="$MISSING bison" | |
7598 | ||
7599 | case " $build_configdirs " in | |
7600 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7601 | esac | |
7602 | ||
7603 | for ac_prog in gm4 gnum4 m4 | |
7604 | do | |
c6b750e1 | 7605 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7606 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7608 | $as_echo_n "checking for $ac_word... " >&6; } | |
7609 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7610 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7611 | else |
7612 | if test -n "$M4"; then | |
7613 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7614 | else | |
c6b750e1 DJ |
7615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7616 | for as_dir in $PATH | |
7617 | do | |
7618 | IFS=$as_save_IFS | |
7619 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7620 | for ac_exec_ext in '' $ac_executable_extensions; do |
7621 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7622 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 7623 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7624 | break 2 |
7625 | fi | |
7626 | done | |
81ecdfbb RW |
7627 | done |
7628 | IFS=$as_save_IFS | |
c6b750e1 | 7629 | |
be01d343 PB |
7630 | fi |
7631 | fi | |
c6b750e1 | 7632 | M4=$ac_cv_prog_M4 |
be01d343 | 7633 | if test -n "$M4"; then |
81ecdfbb RW |
7634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7635 | $as_echo "$M4" >&6; } | |
be01d343 | 7636 | else |
81ecdfbb RW |
7637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7638 | $as_echo "no" >&6; } | |
be01d343 PB |
7639 | fi |
7640 | ||
81ecdfbb | 7641 | |
c6b750e1 | 7642 | test -n "$M4" && break |
be01d343 PB |
7643 | done |
7644 | test -n "$M4" || M4="$MISSING m4" | |
7645 | ||
7646 | case " $build_configdirs " in | |
7647 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7648 | esac | |
7649 | ||
7650 | for ac_prog in flex lex | |
7651 | do | |
c6b750e1 | 7652 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7653 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7655 | $as_echo_n "checking for $ac_word... " >&6; } | |
7656 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7657 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7658 | else |
7659 | if test -n "$LEX"; then | |
7660 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7661 | else | |
c6b750e1 DJ |
7662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7663 | for as_dir in $PATH | |
7664 | do | |
7665 | IFS=$as_save_IFS | |
7666 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7667 | for ac_exec_ext in '' $ac_executable_extensions; do |
7668 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7669 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 7670 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7671 | break 2 |
7672 | fi | |
7673 | done | |
81ecdfbb RW |
7674 | done |
7675 | IFS=$as_save_IFS | |
c6b750e1 | 7676 | |
be01d343 PB |
7677 | fi |
7678 | fi | |
c6b750e1 | 7679 | LEX=$ac_cv_prog_LEX |
be01d343 | 7680 | if test -n "$LEX"; then |
81ecdfbb RW |
7681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7682 | $as_echo "$LEX" >&6; } | |
be01d343 | 7683 | else |
81ecdfbb RW |
7684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7685 | $as_echo "no" >&6; } | |
be01d343 PB |
7686 | fi |
7687 | ||
81ecdfbb | 7688 | |
c6b750e1 | 7689 | test -n "$LEX" && break |
be01d343 PB |
7690 | done |
7691 | test -n "$LEX" || LEX="$MISSING flex" | |
7692 | ||
7693 | case " $build_configdirs " in | |
7694 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7695 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7696 | esac | |
7697 | ||
7698 | for ac_prog in flex | |
7699 | do | |
c6b750e1 | 7700 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7701 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7703 | $as_echo_n "checking for $ac_word... " >&6; } | |
7704 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7705 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7706 | else |
7707 | if test -n "$FLEX"; then | |
7708 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7709 | else | |
c6b750e1 DJ |
7710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7711 | for as_dir in $PATH | |
7712 | do | |
7713 | IFS=$as_save_IFS | |
7714 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7715 | for ac_exec_ext in '' $ac_executable_extensions; do |
7716 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7717 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 7718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7719 | break 2 |
7720 | fi | |
7721 | done | |
81ecdfbb RW |
7722 | done |
7723 | IFS=$as_save_IFS | |
c6b750e1 | 7724 | |
be01d343 PB |
7725 | fi |
7726 | fi | |
c6b750e1 | 7727 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 7728 | if test -n "$FLEX"; then |
81ecdfbb RW |
7729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7730 | $as_echo "$FLEX" >&6; } | |
be01d343 | 7731 | else |
81ecdfbb RW |
7732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7733 | $as_echo "no" >&6; } | |
be01d343 PB |
7734 | fi |
7735 | ||
81ecdfbb | 7736 | |
c6b750e1 | 7737 | test -n "$FLEX" && break |
be01d343 PB |
7738 | done |
7739 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7740 | ||
7741 | case " $build_configdirs " in | |
7742 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7743 | esac | |
7744 | ||
7745 | for ac_prog in makeinfo | |
7746 | do | |
c6b750e1 | 7747 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7748 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7750 | $as_echo_n "checking for $ac_word... " >&6; } | |
7751 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7752 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7753 | else |
7754 | if test -n "$MAKEINFO"; then | |
7755 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7756 | else | |
c6b750e1 DJ |
7757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7758 | for as_dir in $PATH | |
7759 | do | |
7760 | IFS=$as_save_IFS | |
7761 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7762 | for ac_exec_ext in '' $ac_executable_extensions; do |
7763 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7764 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 7765 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7766 | break 2 |
7767 | fi | |
7768 | done | |
81ecdfbb RW |
7769 | done |
7770 | IFS=$as_save_IFS | |
c6b750e1 | 7771 | |
be01d343 PB |
7772 | fi |
7773 | fi | |
c6b750e1 | 7774 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 7775 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
7776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7777 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 7778 | else |
81ecdfbb RW |
7779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7780 | $as_echo "no" >&6; } | |
be01d343 PB |
7781 | fi |
7782 | ||
81ecdfbb | 7783 | |
c6b750e1 | 7784 | test -n "$MAKEINFO" && break |
be01d343 PB |
7785 | done |
7786 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7787 | ||
7788 | case " $build_configdirs " in | |
7789 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7790 | *) | |
7791 | ||
10ad8ef3 | 7792 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
7793 | # higher, else we use the "missing" dummy. |
7794 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 7795 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
7796 | : |
7797 | else | |
7798 | MAKEINFO="$MISSING makeinfo" | |
7799 | fi | |
7800 | ;; | |
7801 | ||
7802 | esac | |
a0da8069 | 7803 | |
be01d343 | 7804 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 7805 | |
be01d343 PB |
7806 | for ac_prog in expect |
7807 | do | |
c6b750e1 | 7808 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7809 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7811 | $as_echo_n "checking for $ac_word... " >&6; } | |
7812 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7813 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7814 | else |
7815 | if test -n "$EXPECT"; then | |
7816 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7817 | else | |
c6b750e1 DJ |
7818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7819 | for as_dir in $PATH | |
7820 | do | |
7821 | IFS=$as_save_IFS | |
7822 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7823 | for ac_exec_ext in '' $ac_executable_extensions; do |
7824 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7825 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 7826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7827 | break 2 |
7828 | fi | |
7829 | done | |
81ecdfbb RW |
7830 | done |
7831 | IFS=$as_save_IFS | |
c6b750e1 | 7832 | |
be01d343 PB |
7833 | fi |
7834 | fi | |
c6b750e1 | 7835 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 7836 | if test -n "$EXPECT"; then |
81ecdfbb RW |
7837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
7838 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 7839 | else |
81ecdfbb RW |
7840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7841 | $as_echo "no" >&6; } | |
be01d343 | 7842 | fi |
a0da8069 | 7843 | |
81ecdfbb | 7844 | |
c6b750e1 | 7845 | test -n "$EXPECT" && break |
be01d343 PB |
7846 | done |
7847 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 7848 | |
be01d343 PB |
7849 | case " $configdirs " in |
7850 | *" expect "*) | |
7851 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
7852 | ;; | |
7853 | esac | |
a0da8069 | 7854 | |
be01d343 PB |
7855 | for ac_prog in runtest |
7856 | do | |
c6b750e1 | 7857 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7858 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7860 | $as_echo_n "checking for $ac_word... " >&6; } | |
7861 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
7862 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7863 | else |
7864 | if test -n "$RUNTEST"; then | |
7865 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
7866 | else | |
c6b750e1 DJ |
7867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7868 | for as_dir in $PATH | |
7869 | do | |
7870 | IFS=$as_save_IFS | |
7871 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7872 | for ac_exec_ext in '' $ac_executable_extensions; do |
7873 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7874 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 7875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7876 | break 2 |
7877 | fi | |
7878 | done | |
81ecdfbb RW |
7879 | done |
7880 | IFS=$as_save_IFS | |
c6b750e1 | 7881 | |
be01d343 PB |
7882 | fi |
7883 | fi | |
c6b750e1 | 7884 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 7885 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
7886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
7887 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 7888 | else |
81ecdfbb RW |
7889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7890 | $as_echo "no" >&6; } | |
be01d343 | 7891 | fi |
a0da8069 | 7892 | |
81ecdfbb | 7893 | |
c6b750e1 | 7894 | test -n "$RUNTEST" && break |
be01d343 PB |
7895 | done |
7896 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 7897 | |
be01d343 PB |
7898 | case " $configdirs " in |
7899 | *" dejagnu "*) | |
6b89cc21 | 7900 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
7901 | ;; |
7902 | esac | |
a0da8069 NN |
7903 | |
7904 | ||
a0da8069 | 7905 | # Host tools. |
859789af AC |
7906 | ncn_tool_prefix= |
7907 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
7908 | ncn_target_tool_prefix= | |
7909 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
7910 | ||
9a819804 AO |
7911 | |
7912 | ||
7913 | if test -n "$AR"; then | |
7914 | ac_cv_prog_AR=$AR | |
7915 | elif test -n "$ac_cv_prog_AR"; then | |
7916 | AR=$ac_cv_prog_AR | |
7917 | fi | |
7918 | ||
7919 | if test -n "$ac_cv_prog_AR"; then | |
7920 | for ncn_progname in ar; do | |
7921 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7922 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
7923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7924 | $as_echo_n "checking for $ac_word... " >&6; } | |
7925 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7926 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
7927 | else |
7928 | if test -n "$AR"; then | |
7929 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7930 | else | |
7931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7932 | for as_dir in $PATH | |
7933 | do | |
7934 | IFS=$as_save_IFS | |
7935 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7936 | for ac_exec_ext in '' $ac_executable_extensions; do |
7937 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 7938 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 7939 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
7940 | break 2 |
7941 | fi | |
7942 | done | |
81ecdfbb RW |
7943 | done |
7944 | IFS=$as_save_IFS | |
9a819804 AO |
7945 | |
7946 | fi | |
7947 | fi | |
7948 | AR=$ac_cv_prog_AR | |
7949 | if test -n "$AR"; then | |
81ecdfbb RW |
7950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7951 | $as_echo "$AR" >&6; } | |
9a819804 | 7952 | else |
81ecdfbb RW |
7953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7954 | $as_echo "no" >&6; } | |
9a819804 AO |
7955 | fi |
7956 | ||
81ecdfbb | 7957 | |
9a819804 AO |
7958 | done |
7959 | fi | |
7960 | ||
7961 | for ncn_progname in ar; do | |
05cbd757 PB |
7962 | if test -n "$ncn_tool_prefix"; then |
7963 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7964 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
7965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7966 | $as_echo_n "checking for $ac_word... " >&6; } | |
7967 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7968 | $as_echo_n "(cached) " >&6 | |
859789af AC |
7969 | else |
7970 | if test -n "$AR"; then | |
7971 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7972 | else | |
c6b750e1 DJ |
7973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7974 | for as_dir in $PATH | |
7975 | do | |
7976 | IFS=$as_save_IFS | |
7977 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7978 | for ac_exec_ext in '' $ac_executable_extensions; do |
7979 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7980 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 7981 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7982 | break 2 |
7983 | fi | |
7984 | done | |
81ecdfbb RW |
7985 | done |
7986 | IFS=$as_save_IFS | |
c6b750e1 | 7987 | |
859789af AC |
7988 | fi |
7989 | fi | |
c6b750e1 | 7990 | AR=$ac_cv_prog_AR |
859789af | 7991 | if test -n "$AR"; then |
81ecdfbb RW |
7992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7993 | $as_echo "$AR" >&6; } | |
859789af | 7994 | else |
81ecdfbb RW |
7995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7996 | $as_echo "no" >&6; } | |
859789af AC |
7997 | fi |
7998 | ||
81ecdfbb | 7999 | |
05cbd757 PB |
8000 | fi |
8001 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8002 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8003 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8005 | $as_echo_n "checking for $ac_word... " >&6; } | |
8006 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8007 | $as_echo_n "(cached) " >&6 | |
859789af | 8008 | else |
05cbd757 PB |
8009 | if test -n "$AR"; then |
8010 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 8011 | else |
c6b750e1 DJ |
8012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8013 | for as_dir in $PATH | |
8014 | do | |
8015 | IFS=$as_save_IFS | |
8016 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8017 | for ac_exec_ext in '' $ac_executable_extensions; do |
8018 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8019 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8020 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8021 | break 2 |
8022 | fi | |
8023 | done | |
81ecdfbb RW |
8024 | done |
8025 | IFS=$as_save_IFS | |
c6b750e1 | 8026 | |
859789af AC |
8027 | fi |
8028 | fi | |
c6b750e1 | 8029 | AR=$ac_cv_prog_AR |
05cbd757 | 8030 | if test -n "$AR"; then |
81ecdfbb RW |
8031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8032 | $as_echo "$AR" >&6; } | |
859789af | 8033 | else |
81ecdfbb RW |
8034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8035 | $as_echo "no" >&6; } | |
859789af | 8036 | fi |
c6b750e1 | 8037 | |
81ecdfbb | 8038 | |
05cbd757 PB |
8039 | fi |
8040 | test -n "$ac_cv_prog_AR" && break | |
8041 | done | |
8042 | ||
8043 | if test -z "$ac_cv_prog_AR" ; then | |
8044 | set dummy ar | |
8045 | if test $build = $host ; then | |
8046 | AR="$2" | |
859789af | 8047 | else |
05cbd757 | 8048 | AR="${ncn_tool_prefix}$2" |
859789af | 8049 | fi |
859789af AC |
8050 | fi |
8051 | ||
9a819804 AO |
8052 | |
8053 | ||
8054 | if test -n "$AS"; then | |
8055 | ac_cv_prog_AS=$AS | |
8056 | elif test -n "$ac_cv_prog_AS"; then | |
8057 | AS=$ac_cv_prog_AS | |
8058 | fi | |
8059 | ||
8060 | if test -n "$ac_cv_prog_AS"; then | |
8061 | for ncn_progname in as; do | |
8062 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8063 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8065 | $as_echo_n "checking for $ac_word... " >&6; } | |
8066 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8067 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8068 | else |
8069 | if test -n "$AS"; then | |
8070 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8071 | else | |
8072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8073 | for as_dir in $PATH | |
8074 | do | |
8075 | IFS=$as_save_IFS | |
8076 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8077 | for ac_exec_ext in '' $ac_executable_extensions; do |
8078 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8079 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8080 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8081 | break 2 |
8082 | fi | |
8083 | done | |
81ecdfbb RW |
8084 | done |
8085 | IFS=$as_save_IFS | |
9a819804 AO |
8086 | |
8087 | fi | |
8088 | fi | |
8089 | AS=$ac_cv_prog_AS | |
8090 | if test -n "$AS"; then | |
81ecdfbb RW |
8091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8092 | $as_echo "$AS" >&6; } | |
9a819804 | 8093 | else |
81ecdfbb RW |
8094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8095 | $as_echo "no" >&6; } | |
9a819804 AO |
8096 | fi |
8097 | ||
81ecdfbb | 8098 | |
9a819804 AO |
8099 | done |
8100 | fi | |
8101 | ||
8102 | for ncn_progname in as; do | |
05cbd757 PB |
8103 | if test -n "$ncn_tool_prefix"; then |
8104 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8105 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8107 | $as_echo_n "checking for $ac_word... " >&6; } | |
8108 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8109 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8110 | else |
8111 | if test -n "$AS"; then | |
8112 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
8113 | else |
8114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8115 | for as_dir in $PATH | |
8116 | do | |
8117 | IFS=$as_save_IFS | |
8118 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8119 | for ac_exec_ext in '' $ac_executable_extensions; do |
8120 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8121 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8122 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8123 | break 2 |
8124 | fi | |
8125 | done | |
81ecdfbb RW |
8126 | done |
8127 | IFS=$as_save_IFS | |
c6b750e1 | 8128 | |
859789af AC |
8129 | fi |
8130 | fi | |
c6b750e1 | 8131 | AS=$ac_cv_prog_AS |
859789af | 8132 | if test -n "$AS"; then |
81ecdfbb RW |
8133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8134 | $as_echo "$AS" >&6; } | |
859789af | 8135 | else |
81ecdfbb RW |
8136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8137 | $as_echo "no" >&6; } | |
859789af AC |
8138 | fi |
8139 | ||
81ecdfbb | 8140 | |
05cbd757 PB |
8141 | fi |
8142 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8143 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8144 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8146 | $as_echo_n "checking for $ac_word... " >&6; } | |
8147 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8148 | $as_echo_n "(cached) " >&6 | |
859789af | 8149 | else |
05cbd757 PB |
8150 | if test -n "$AS"; then |
8151 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 8152 | else |
c6b750e1 DJ |
8153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8154 | for as_dir in $PATH | |
8155 | do | |
8156 | IFS=$as_save_IFS | |
8157 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8158 | for ac_exec_ext in '' $ac_executable_extensions; do |
8159 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8160 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8161 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8162 | break 2 |
8163 | fi | |
8164 | done | |
81ecdfbb RW |
8165 | done |
8166 | IFS=$as_save_IFS | |
c6b750e1 | 8167 | |
859789af AC |
8168 | fi |
8169 | fi | |
c6b750e1 | 8170 | AS=$ac_cv_prog_AS |
05cbd757 | 8171 | if test -n "$AS"; then |
81ecdfbb RW |
8172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8173 | $as_echo "$AS" >&6; } | |
859789af | 8174 | else |
81ecdfbb RW |
8175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8176 | $as_echo "no" >&6; } | |
859789af | 8177 | fi |
c6b750e1 | 8178 | |
81ecdfbb | 8179 | |
05cbd757 PB |
8180 | fi |
8181 | test -n "$ac_cv_prog_AS" && break | |
8182 | done | |
8183 | ||
8184 | if test -z "$ac_cv_prog_AS" ; then | |
8185 | set dummy as | |
8186 | if test $build = $host ; then | |
8187 | AS="$2" | |
859789af | 8188 | else |
05cbd757 | 8189 | AS="${ncn_tool_prefix}$2" |
859789af | 8190 | fi |
859789af AC |
8191 | fi |
8192 | ||
9a819804 AO |
8193 | |
8194 | ||
8195 | if test -n "$DLLTOOL"; then | |
8196 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8197 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8198 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8199 | fi | |
8200 | ||
8201 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8202 | for ncn_progname in dlltool; do | |
8203 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8204 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8206 | $as_echo_n "checking for $ac_word... " >&6; } | |
8207 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8208 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8209 | else |
8210 | if test -n "$DLLTOOL"; then | |
8211 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8212 | else | |
8213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8214 | for as_dir in $PATH | |
8215 | do | |
8216 | IFS=$as_save_IFS | |
8217 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8218 | for ac_exec_ext in '' $ac_executable_extensions; do |
8219 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8220 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8221 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8222 | break 2 |
8223 | fi | |
8224 | done | |
81ecdfbb RW |
8225 | done |
8226 | IFS=$as_save_IFS | |
9a819804 AO |
8227 | |
8228 | fi | |
8229 | fi | |
8230 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8231 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
8232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8233 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 8234 | else |
81ecdfbb RW |
8235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8236 | $as_echo "no" >&6; } | |
9a819804 AO |
8237 | fi |
8238 | ||
81ecdfbb | 8239 | |
9a819804 AO |
8240 | done |
8241 | fi | |
8242 | ||
8243 | for ncn_progname in dlltool; do | |
05cbd757 PB |
8244 | if test -n "$ncn_tool_prefix"; then |
8245 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8246 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8248 | $as_echo_n "checking for $ac_word... " >&6; } | |
8249 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8250 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8251 | else |
8252 | if test -n "$DLLTOOL"; then | |
8253 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8254 | else | |
c6b750e1 DJ |
8255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8256 | for as_dir in $PATH | |
8257 | do | |
8258 | IFS=$as_save_IFS | |
8259 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8260 | for ac_exec_ext in '' $ac_executable_extensions; do |
8261 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8262 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8263 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8264 | break 2 |
8265 | fi | |
8266 | done | |
81ecdfbb RW |
8267 | done |
8268 | IFS=$as_save_IFS | |
c6b750e1 | 8269 | |
859789af AC |
8270 | fi |
8271 | fi | |
c6b750e1 | 8272 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 8273 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8275 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8276 | else |
81ecdfbb RW |
8277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8278 | $as_echo "no" >&6; } | |
859789af AC |
8279 | fi |
8280 | ||
81ecdfbb | 8281 | |
05cbd757 PB |
8282 | fi |
8283 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8284 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8285 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8287 | $as_echo_n "checking for $ac_word... " >&6; } | |
8288 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8289 | $as_echo_n "(cached) " >&6 | |
859789af | 8290 | else |
05cbd757 PB |
8291 | if test -n "$DLLTOOL"; then |
8292 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 8293 | else |
c6b750e1 DJ |
8294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8295 | for as_dir in $PATH | |
8296 | do | |
8297 | IFS=$as_save_IFS | |
8298 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8299 | for ac_exec_ext in '' $ac_executable_extensions; do |
8300 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8301 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8302 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8303 | break 2 |
8304 | fi | |
8305 | done | |
81ecdfbb RW |
8306 | done |
8307 | IFS=$as_save_IFS | |
c6b750e1 | 8308 | |
859789af AC |
8309 | fi |
8310 | fi | |
c6b750e1 | 8311 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 8312 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8314 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8315 | else |
81ecdfbb RW |
8316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8317 | $as_echo "no" >&6; } | |
859789af | 8318 | fi |
c6b750e1 | 8319 | |
81ecdfbb | 8320 | |
05cbd757 PB |
8321 | fi |
8322 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8323 | done | |
8324 | ||
8325 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8326 | set dummy dlltool | |
8327 | if test $build = $host ; then | |
8328 | DLLTOOL="$2" | |
859789af | 8329 | else |
05cbd757 | 8330 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 8331 | fi |
859789af AC |
8332 | fi |
8333 | ||
9a819804 AO |
8334 | |
8335 | ||
8336 | if test -n "$LD"; then | |
8337 | ac_cv_prog_LD=$LD | |
8338 | elif test -n "$ac_cv_prog_LD"; then | |
8339 | LD=$ac_cv_prog_LD | |
8340 | fi | |
8341 | ||
8342 | if test -n "$ac_cv_prog_LD"; then | |
8343 | for ncn_progname in ld; do | |
8344 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8345 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8347 | $as_echo_n "checking for $ac_word... " >&6; } | |
8348 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8349 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8350 | else |
8351 | if test -n "$LD"; then | |
8352 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8353 | else | |
8354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8355 | for as_dir in $PATH | |
8356 | do | |
8357 | IFS=$as_save_IFS | |
8358 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8359 | for ac_exec_ext in '' $ac_executable_extensions; do |
8360 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8361 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8362 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8363 | break 2 |
8364 | fi | |
8365 | done | |
81ecdfbb RW |
8366 | done |
8367 | IFS=$as_save_IFS | |
9a819804 AO |
8368 | |
8369 | fi | |
8370 | fi | |
8371 | LD=$ac_cv_prog_LD | |
8372 | if test -n "$LD"; then | |
81ecdfbb RW |
8373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8374 | $as_echo "$LD" >&6; } | |
9a819804 | 8375 | else |
81ecdfbb RW |
8376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8377 | $as_echo "no" >&6; } | |
9a819804 AO |
8378 | fi |
8379 | ||
81ecdfbb | 8380 | |
9a819804 AO |
8381 | done |
8382 | fi | |
8383 | ||
8384 | for ncn_progname in ld; do | |
05cbd757 PB |
8385 | if test -n "$ncn_tool_prefix"; then |
8386 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8387 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8389 | $as_echo_n "checking for $ac_word... " >&6; } | |
8390 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8391 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8392 | else |
8393 | if test -n "$LD"; then | |
8394 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8395 | else | |
c6b750e1 DJ |
8396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8397 | for as_dir in $PATH | |
8398 | do | |
8399 | IFS=$as_save_IFS | |
8400 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8401 | for ac_exec_ext in '' $ac_executable_extensions; do |
8402 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8403 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8404 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8405 | break 2 |
8406 | fi | |
8407 | done | |
81ecdfbb RW |
8408 | done |
8409 | IFS=$as_save_IFS | |
c6b750e1 | 8410 | |
859789af AC |
8411 | fi |
8412 | fi | |
c6b750e1 | 8413 | LD=$ac_cv_prog_LD |
859789af | 8414 | if test -n "$LD"; then |
81ecdfbb RW |
8415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8416 | $as_echo "$LD" >&6; } | |
859789af | 8417 | else |
81ecdfbb RW |
8418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8419 | $as_echo "no" >&6; } | |
859789af AC |
8420 | fi |
8421 | ||
81ecdfbb | 8422 | |
05cbd757 PB |
8423 | fi |
8424 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8425 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8426 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8428 | $as_echo_n "checking for $ac_word... " >&6; } | |
8429 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8430 | $as_echo_n "(cached) " >&6 | |
859789af | 8431 | else |
05cbd757 PB |
8432 | if test -n "$LD"; then |
8433 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 8434 | else |
c6b750e1 DJ |
8435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8436 | for as_dir in $PATH | |
8437 | do | |
8438 | IFS=$as_save_IFS | |
8439 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8440 | for ac_exec_ext in '' $ac_executable_extensions; do |
8441 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8442 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8443 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8444 | break 2 |
8445 | fi | |
8446 | done | |
81ecdfbb RW |
8447 | done |
8448 | IFS=$as_save_IFS | |
c6b750e1 | 8449 | |
859789af AC |
8450 | fi |
8451 | fi | |
c6b750e1 | 8452 | LD=$ac_cv_prog_LD |
05cbd757 | 8453 | if test -n "$LD"; then |
81ecdfbb RW |
8454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8455 | $as_echo "$LD" >&6; } | |
859789af | 8456 | else |
81ecdfbb RW |
8457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8458 | $as_echo "no" >&6; } | |
859789af | 8459 | fi |
c6b750e1 | 8460 | |
81ecdfbb | 8461 | |
05cbd757 PB |
8462 | fi |
8463 | test -n "$ac_cv_prog_LD" && break | |
8464 | done | |
8465 | ||
8466 | if test -z "$ac_cv_prog_LD" ; then | |
8467 | set dummy ld | |
8468 | if test $build = $host ; then | |
8469 | LD="$2" | |
859789af | 8470 | else |
05cbd757 | 8471 | LD="${ncn_tool_prefix}$2" |
859789af | 8472 | fi |
859789af AC |
8473 | fi |
8474 | ||
9a819804 AO |
8475 | |
8476 | ||
8477 | if test -n "$LIPO"; then | |
8478 | ac_cv_prog_LIPO=$LIPO | |
8479 | elif test -n "$ac_cv_prog_LIPO"; then | |
8480 | LIPO=$ac_cv_prog_LIPO | |
8481 | fi | |
8482 | ||
8483 | if test -n "$ac_cv_prog_LIPO"; then | |
8484 | for ncn_progname in lipo; do | |
8485 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8486 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8488 | $as_echo_n "checking for $ac_word... " >&6; } | |
8489 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8490 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8491 | else |
8492 | if test -n "$LIPO"; then | |
8493 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8494 | else | |
8495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8496 | for as_dir in $PATH | |
8497 | do | |
8498 | IFS=$as_save_IFS | |
8499 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8500 | for ac_exec_ext in '' $ac_executable_extensions; do |
8501 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8502 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8503 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8504 | break 2 |
8505 | fi | |
8506 | done | |
81ecdfbb RW |
8507 | done |
8508 | IFS=$as_save_IFS | |
9a819804 AO |
8509 | |
8510 | fi | |
8511 | fi | |
8512 | LIPO=$ac_cv_prog_LIPO | |
8513 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8515 | $as_echo "$LIPO" >&6; } | |
9a819804 | 8516 | else |
81ecdfbb RW |
8517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8518 | $as_echo "no" >&6; } | |
9a819804 AO |
8519 | fi |
8520 | ||
81ecdfbb | 8521 | |
9a819804 AO |
8522 | done |
8523 | fi | |
8524 | ||
8525 | for ncn_progname in lipo; do | |
be01d343 PB |
8526 | if test -n "$ncn_tool_prefix"; then |
8527 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8528 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8530 | $as_echo_n "checking for $ac_word... " >&6; } | |
8531 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8532 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8533 | else |
8534 | if test -n "$LIPO"; then | |
8535 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8536 | else | |
c6b750e1 DJ |
8537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8538 | for as_dir in $PATH | |
8539 | do | |
8540 | IFS=$as_save_IFS | |
8541 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8542 | for ac_exec_ext in '' $ac_executable_extensions; do |
8543 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8544 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8545 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8546 | break 2 |
8547 | fi | |
8548 | done | |
81ecdfbb RW |
8549 | done |
8550 | IFS=$as_save_IFS | |
c6b750e1 | 8551 | |
be01d343 PB |
8552 | fi |
8553 | fi | |
c6b750e1 | 8554 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8555 | if test -n "$LIPO"; then |
81ecdfbb RW |
8556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8557 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8558 | else |
81ecdfbb RW |
8559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8560 | $as_echo "no" >&6; } | |
be01d343 PB |
8561 | fi |
8562 | ||
81ecdfbb | 8563 | |
be01d343 PB |
8564 | fi |
8565 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8566 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8567 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8569 | $as_echo_n "checking for $ac_word... " >&6; } | |
8570 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8571 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8572 | else |
8573 | if test -n "$LIPO"; then | |
8574 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8575 | else | |
c6b750e1 DJ |
8576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8577 | for as_dir in $PATH | |
8578 | do | |
8579 | IFS=$as_save_IFS | |
8580 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8581 | for ac_exec_ext in '' $ac_executable_extensions; do |
8582 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8583 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8584 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8585 | break 2 |
8586 | fi | |
8587 | done | |
81ecdfbb RW |
8588 | done |
8589 | IFS=$as_save_IFS | |
c6b750e1 | 8590 | |
be01d343 PB |
8591 | fi |
8592 | fi | |
c6b750e1 | 8593 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8594 | if test -n "$LIPO"; then |
81ecdfbb RW |
8595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8596 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8597 | else |
81ecdfbb RW |
8598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8599 | $as_echo "no" >&6; } | |
be01d343 | 8600 | fi |
c6b750e1 | 8601 | |
81ecdfbb | 8602 | |
be01d343 PB |
8603 | fi |
8604 | test -n "$ac_cv_prog_LIPO" && break | |
8605 | done | |
8606 | ||
8607 | if test -z "$ac_cv_prog_LIPO" ; then | |
8608 | set dummy lipo | |
8609 | if test $build = $host ; then | |
8610 | LIPO="$2" | |
8611 | else | |
8612 | LIPO="${ncn_tool_prefix}$2" | |
8613 | fi | |
8614 | fi | |
8615 | ||
9a819804 AO |
8616 | |
8617 | ||
8618 | if test -n "$NM"; then | |
8619 | ac_cv_prog_NM=$NM | |
8620 | elif test -n "$ac_cv_prog_NM"; then | |
8621 | NM=$ac_cv_prog_NM | |
8622 | fi | |
8623 | ||
8624 | if test -n "$ac_cv_prog_NM"; then | |
8625 | for ncn_progname in nm; do | |
8626 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8627 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8629 | $as_echo_n "checking for $ac_word... " >&6; } | |
8630 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8631 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8632 | else |
8633 | if test -n "$NM"; then | |
8634 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8635 | else | |
c6b750e1 DJ |
8636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8637 | for as_dir in $PATH | |
8638 | do | |
8639 | IFS=$as_save_IFS | |
8640 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8641 | for ac_exec_ext in '' $ac_executable_extensions; do |
8642 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8643 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8644 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8645 | break 2 |
8646 | fi | |
8647 | done | |
81ecdfbb RW |
8648 | done |
8649 | IFS=$as_save_IFS | |
c6b750e1 | 8650 | |
859789af AC |
8651 | fi |
8652 | fi | |
c6b750e1 | 8653 | NM=$ac_cv_prog_NM |
859789af | 8654 | if test -n "$NM"; then |
81ecdfbb RW |
8655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8656 | $as_echo "$NM" >&6; } | |
859789af | 8657 | else |
81ecdfbb RW |
8658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8659 | $as_echo "no" >&6; } | |
859789af AC |
8660 | fi |
8661 | ||
81ecdfbb | 8662 | |
9a819804 AO |
8663 | done |
8664 | fi | |
8665 | ||
8666 | for ncn_progname in nm; do | |
8667 | if test -n "$ncn_tool_prefix"; then | |
8668 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8669 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8671 | $as_echo_n "checking for $ac_word... " >&6; } | |
8672 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8673 | $as_echo_n "(cached) " >&6 | |
859789af | 8674 | else |
05cbd757 PB |
8675 | if test -n "$NM"; then |
8676 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 8677 | else |
c6b750e1 DJ |
8678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8679 | for as_dir in $PATH | |
8680 | do | |
8681 | IFS=$as_save_IFS | |
8682 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8683 | for ac_exec_ext in '' $ac_executable_extensions; do |
8684 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8685 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8686 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8687 | break 2 |
8688 | fi | |
8689 | done | |
81ecdfbb RW |
8690 | done |
8691 | IFS=$as_save_IFS | |
c6b750e1 | 8692 | |
859789af AC |
8693 | fi |
8694 | fi | |
c6b750e1 | 8695 | NM=$ac_cv_prog_NM |
05cbd757 | 8696 | if test -n "$NM"; then |
81ecdfbb RW |
8697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8698 | $as_echo "$NM" >&6; } | |
859789af | 8699 | else |
81ecdfbb RW |
8700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8701 | $as_echo "no" >&6; } | |
859789af | 8702 | fi |
c6b750e1 | 8703 | |
81ecdfbb | 8704 | |
05cbd757 | 8705 | fi |
9a819804 AO |
8706 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8707 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8708 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8710 | $as_echo_n "checking for $ac_word... " >&6; } | |
8711 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8712 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8713 | else |
8714 | if test -n "$NM"; then | |
8715 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8716 | else | |
8717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8718 | for as_dir in $PATH | |
8719 | do | |
8720 | IFS=$as_save_IFS | |
8721 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8722 | for ac_exec_ext in '' $ac_executable_extensions; do |
8723 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8724 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8725 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8726 | break 2 |
8727 | fi | |
8728 | done | |
81ecdfbb RW |
8729 | done |
8730 | IFS=$as_save_IFS | |
9a819804 AO |
8731 | |
8732 | fi | |
8733 | fi | |
8734 | NM=$ac_cv_prog_NM | |
8735 | if test -n "$NM"; then | |
81ecdfbb RW |
8736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8737 | $as_echo "$NM" >&6; } | |
9a819804 | 8738 | else |
81ecdfbb RW |
8739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8740 | $as_echo "no" >&6; } | |
9a819804 AO |
8741 | fi |
8742 | ||
81ecdfbb | 8743 | |
9a819804 AO |
8744 | fi |
8745 | test -n "$ac_cv_prog_NM" && break | |
8746 | done | |
8747 | ||
8748 | if test -z "$ac_cv_prog_NM" ; then | |
8749 | set dummy nm | |
8750 | if test $build = $host ; then | |
8751 | NM="$2" | |
8752 | else | |
8753 | NM="${ncn_tool_prefix}$2" | |
8754 | fi | |
8755 | fi | |
8756 | ||
8757 | ||
8758 | ||
8759 | if test -n "$RANLIB"; then | |
8760 | ac_cv_prog_RANLIB=$RANLIB | |
8761 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8762 | RANLIB=$ac_cv_prog_RANLIB | |
8763 | fi | |
8764 | ||
8765 | if test -n "$ac_cv_prog_RANLIB"; then | |
8766 | for ncn_progname in ranlib; do | |
8767 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8768 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8770 | $as_echo_n "checking for $ac_word... " >&6; } | |
8771 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8772 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8773 | else |
8774 | if test -n "$RANLIB"; then | |
8775 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8776 | else | |
8777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8778 | for as_dir in $PATH | |
8779 | do | |
8780 | IFS=$as_save_IFS | |
8781 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8782 | for ac_exec_ext in '' $ac_executable_extensions; do |
8783 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8784 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 8785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8786 | break 2 |
8787 | fi | |
8788 | done | |
81ecdfbb RW |
8789 | done |
8790 | IFS=$as_save_IFS | |
9a819804 AO |
8791 | |
8792 | fi | |
8793 | fi | |
8794 | RANLIB=$ac_cv_prog_RANLIB | |
8795 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
8796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8797 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 8798 | else |
81ecdfbb RW |
8799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8800 | $as_echo "no" >&6; } | |
9a819804 AO |
8801 | fi |
8802 | ||
81ecdfbb | 8803 | |
9a819804 AO |
8804 | done |
8805 | fi | |
859789af | 8806 | |
9a819804 | 8807 | for ncn_progname in ranlib; do |
05cbd757 PB |
8808 | if test -n "$ncn_tool_prefix"; then |
8809 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8810 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8812 | $as_echo_n "checking for $ac_word... " >&6; } | |
8813 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8814 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8815 | else |
8816 | if test -n "$RANLIB"; then | |
8817 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8818 | else | |
c6b750e1 DJ |
8819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8820 | for as_dir in $PATH | |
8821 | do | |
8822 | IFS=$as_save_IFS | |
8823 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8824 | for ac_exec_ext in '' $ac_executable_extensions; do |
8825 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8826 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8827 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8828 | break 2 |
8829 | fi | |
8830 | done | |
81ecdfbb RW |
8831 | done |
8832 | IFS=$as_save_IFS | |
c6b750e1 | 8833 | |
859789af AC |
8834 | fi |
8835 | fi | |
c6b750e1 | 8836 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 8837 | if test -n "$RANLIB"; then |
81ecdfbb RW |
8838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8839 | $as_echo "$RANLIB" >&6; } | |
859789af | 8840 | else |
81ecdfbb RW |
8841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8842 | $as_echo "no" >&6; } | |
859789af AC |
8843 | fi |
8844 | ||
81ecdfbb | 8845 | |
05cbd757 PB |
8846 | fi |
8847 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
8848 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8849 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8851 | $as_echo_n "checking for $ac_word... " >&6; } | |
8852 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8853 | $as_echo_n "(cached) " >&6 | |
859789af | 8854 | else |
05cbd757 PB |
8855 | if test -n "$RANLIB"; then |
8856 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 8857 | else |
c6b750e1 DJ |
8858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8859 | for as_dir in $PATH | |
8860 | do | |
8861 | IFS=$as_save_IFS | |
8862 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8863 | for ac_exec_ext in '' $ac_executable_extensions; do |
8864 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8865 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 8866 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8867 | break 2 |
8868 | fi | |
8869 | done | |
81ecdfbb RW |
8870 | done |
8871 | IFS=$as_save_IFS | |
c6b750e1 | 8872 | |
859789af AC |
8873 | fi |
8874 | fi | |
c6b750e1 | 8875 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 8876 | if test -n "$RANLIB"; then |
81ecdfbb RW |
8877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8878 | $as_echo "$RANLIB" >&6; } | |
859789af | 8879 | else |
81ecdfbb RW |
8880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8881 | $as_echo "no" >&6; } | |
859789af | 8882 | fi |
c6b750e1 | 8883 | |
81ecdfbb | 8884 | |
859789af | 8885 | fi |
05cbd757 PB |
8886 | test -n "$ac_cv_prog_RANLIB" && break |
8887 | done | |
8888 | ||
8889 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 8890 | RANLIB="true" |
859789af AC |
8891 | fi |
8892 | ||
9a819804 AO |
8893 | |
8894 | ||
8895 | if test -n "$STRIP"; then | |
8896 | ac_cv_prog_STRIP=$STRIP | |
8897 | elif test -n "$ac_cv_prog_STRIP"; then | |
8898 | STRIP=$ac_cv_prog_STRIP | |
8899 | fi | |
8900 | ||
8901 | if test -n "$ac_cv_prog_STRIP"; then | |
8902 | for ncn_progname in strip; do | |
8903 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8904 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8906 | $as_echo_n "checking for $ac_word... " >&6; } | |
8907 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8908 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8909 | else |
8910 | if test -n "$STRIP"; then | |
8911 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8912 | else | |
8913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8914 | for as_dir in $PATH | |
8915 | do | |
8916 | IFS=$as_save_IFS | |
8917 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8918 | for ac_exec_ext in '' $ac_executable_extensions; do |
8919 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8920 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 8921 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8922 | break 2 |
8923 | fi | |
8924 | done | |
81ecdfbb RW |
8925 | done |
8926 | IFS=$as_save_IFS | |
9a819804 AO |
8927 | |
8928 | fi | |
8929 | fi | |
8930 | STRIP=$ac_cv_prog_STRIP | |
8931 | if test -n "$STRIP"; then | |
81ecdfbb RW |
8932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8933 | $as_echo "$STRIP" >&6; } | |
9a819804 | 8934 | else |
81ecdfbb RW |
8935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8936 | $as_echo "no" >&6; } | |
9a819804 AO |
8937 | fi |
8938 | ||
81ecdfbb | 8939 | |
9a819804 AO |
8940 | done |
8941 | fi | |
8942 | ||
8943 | for ncn_progname in strip; do | |
be01d343 PB |
8944 | if test -n "$ncn_tool_prefix"; then |
8945 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8946 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8948 | $as_echo_n "checking for $ac_word... " >&6; } | |
8949 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8950 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8951 | else |
8952 | if test -n "$STRIP"; then | |
8953 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8954 | else | |
c6b750e1 DJ |
8955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8956 | for as_dir in $PATH | |
8957 | do | |
8958 | IFS=$as_save_IFS | |
8959 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8960 | for ac_exec_ext in '' $ac_executable_extensions; do |
8961 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8962 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8963 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8964 | break 2 |
8965 | fi | |
8966 | done | |
81ecdfbb RW |
8967 | done |
8968 | IFS=$as_save_IFS | |
c6b750e1 | 8969 | |
be01d343 PB |
8970 | fi |
8971 | fi | |
c6b750e1 | 8972 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 8973 | if test -n "$STRIP"; then |
81ecdfbb RW |
8974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8975 | $as_echo "$STRIP" >&6; } | |
be01d343 | 8976 | else |
81ecdfbb RW |
8977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8978 | $as_echo "no" >&6; } | |
be01d343 PB |
8979 | fi |
8980 | ||
81ecdfbb | 8981 | |
be01d343 PB |
8982 | fi |
8983 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
8984 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8985 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8987 | $as_echo_n "checking for $ac_word... " >&6; } | |
8988 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8989 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8990 | else |
8991 | if test -n "$STRIP"; then | |
8992 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8993 | else | |
c6b750e1 DJ |
8994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8995 | for as_dir in $PATH | |
8996 | do | |
8997 | IFS=$as_save_IFS | |
8998 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8999 | for ac_exec_ext in '' $ac_executable_extensions; do |
9000 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9001 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9003 | break 2 |
9004 | fi | |
9005 | done | |
81ecdfbb RW |
9006 | done |
9007 | IFS=$as_save_IFS | |
c6b750e1 | 9008 | |
be01d343 PB |
9009 | fi |
9010 | fi | |
c6b750e1 | 9011 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9012 | if test -n "$STRIP"; then |
81ecdfbb RW |
9013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9014 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9015 | else |
81ecdfbb RW |
9016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9017 | $as_echo "no" >&6; } | |
be01d343 | 9018 | fi |
c6b750e1 | 9019 | |
81ecdfbb | 9020 | |
be01d343 PB |
9021 | fi |
9022 | test -n "$ac_cv_prog_STRIP" && break | |
9023 | done | |
9024 | ||
9025 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 9026 | STRIP="true" |
be01d343 PB |
9027 | fi |
9028 | ||
9a819804 AO |
9029 | |
9030 | ||
9031 | if test -n "$WINDRES"; then | |
9032 | ac_cv_prog_WINDRES=$WINDRES | |
9033 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9034 | WINDRES=$ac_cv_prog_WINDRES | |
9035 | fi | |
9036 | ||
9037 | if test -n "$ac_cv_prog_WINDRES"; then | |
9038 | for ncn_progname in windres; do | |
9039 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9040 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9042 | $as_echo_n "checking for $ac_word... " >&6; } | |
9043 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9044 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9045 | else |
9046 | if test -n "$WINDRES"; then | |
9047 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9048 | else | |
9049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9050 | for as_dir in $PATH | |
9051 | do | |
9052 | IFS=$as_save_IFS | |
9053 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9054 | for ac_exec_ext in '' $ac_executable_extensions; do |
9055 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9056 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9057 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9058 | break 2 |
9059 | fi | |
9060 | done | |
81ecdfbb RW |
9061 | done |
9062 | IFS=$as_save_IFS | |
9a819804 AO |
9063 | |
9064 | fi | |
9065 | fi | |
9066 | WINDRES=$ac_cv_prog_WINDRES | |
9067 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
9068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9069 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 9070 | else |
81ecdfbb RW |
9071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9072 | $as_echo "no" >&6; } | |
9a819804 AO |
9073 | fi |
9074 | ||
81ecdfbb | 9075 | |
9a819804 AO |
9076 | done |
9077 | fi | |
9078 | ||
9079 | for ncn_progname in windres; do | |
05cbd757 PB |
9080 | if test -n "$ncn_tool_prefix"; then |
9081 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9082 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9084 | $as_echo_n "checking for $ac_word... " >&6; } | |
9085 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9086 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9087 | else |
9088 | if test -n "$WINDRES"; then | |
9089 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9090 | else | |
c6b750e1 DJ |
9091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9092 | for as_dir in $PATH | |
9093 | do | |
9094 | IFS=$as_save_IFS | |
9095 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9096 | for ac_exec_ext in '' $ac_executable_extensions; do |
9097 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9098 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9100 | break 2 |
9101 | fi | |
9102 | done | |
81ecdfbb RW |
9103 | done |
9104 | IFS=$as_save_IFS | |
c6b750e1 | 9105 | |
859789af AC |
9106 | fi |
9107 | fi | |
c6b750e1 | 9108 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 9109 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9111 | $as_echo "$WINDRES" >&6; } | |
859789af | 9112 | else |
81ecdfbb RW |
9113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9114 | $as_echo "no" >&6; } | |
859789af AC |
9115 | fi |
9116 | ||
81ecdfbb | 9117 | |
05cbd757 PB |
9118 | fi |
9119 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9120 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9121 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9123 | $as_echo_n "checking for $ac_word... " >&6; } | |
9124 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9125 | $as_echo_n "(cached) " >&6 | |
859789af | 9126 | else |
05cbd757 PB |
9127 | if test -n "$WINDRES"; then |
9128 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 9129 | else |
c6b750e1 DJ |
9130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9131 | for as_dir in $PATH | |
9132 | do | |
9133 | IFS=$as_save_IFS | |
9134 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9135 | for ac_exec_ext in '' $ac_executable_extensions; do |
9136 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9137 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9138 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9139 | break 2 |
9140 | fi | |
9141 | done | |
81ecdfbb RW |
9142 | done |
9143 | IFS=$as_save_IFS | |
c6b750e1 | 9144 | |
859789af AC |
9145 | fi |
9146 | fi | |
c6b750e1 | 9147 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 9148 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9150 | $as_echo "$WINDRES" >&6; } | |
859789af | 9151 | else |
81ecdfbb RW |
9152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9153 | $as_echo "no" >&6; } | |
859789af | 9154 | fi |
c6b750e1 | 9155 | |
81ecdfbb | 9156 | |
05cbd757 PB |
9157 | fi |
9158 | test -n "$ac_cv_prog_WINDRES" && break | |
9159 | done | |
9160 | ||
9161 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9162 | set dummy windres | |
9163 | if test $build = $host ; then | |
9164 | WINDRES="$2" | |
859789af | 9165 | else |
05cbd757 | 9166 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 9167 | fi |
859789af AC |
9168 | fi |
9169 | ||
9a819804 AO |
9170 | |
9171 | ||
0c24b341 NC |
9172 | if test -n "$WINDMC"; then |
9173 | ac_cv_prog_WINDMC=$WINDMC | |
9174 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9175 | WINDMC=$ac_cv_prog_WINDMC | |
9176 | fi | |
9177 | ||
9178 | if test -n "$ac_cv_prog_WINDMC"; then | |
9179 | for ncn_progname in windmc; do | |
9180 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9181 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9183 | $as_echo_n "checking for $ac_word... " >&6; } | |
9184 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9185 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9186 | else |
9187 | if test -n "$WINDMC"; then | |
9188 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9189 | else | |
9190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9191 | for as_dir in $PATH | |
9192 | do | |
9193 | IFS=$as_save_IFS | |
9194 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9195 | for ac_exec_ext in '' $ac_executable_extensions; do |
9196 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9197 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9199 | break 2 |
9200 | fi | |
9201 | done | |
81ecdfbb RW |
9202 | done |
9203 | IFS=$as_save_IFS | |
0c24b341 NC |
9204 | |
9205 | fi | |
9206 | fi | |
9207 | WINDMC=$ac_cv_prog_WINDMC | |
9208 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9210 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9211 | else |
81ecdfbb RW |
9212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9213 | $as_echo "no" >&6; } | |
0c24b341 NC |
9214 | fi |
9215 | ||
81ecdfbb | 9216 | |
0c24b341 NC |
9217 | done |
9218 | fi | |
9219 | ||
9220 | for ncn_progname in windmc; do | |
9221 | if test -n "$ncn_tool_prefix"; then | |
9222 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9223 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9225 | $as_echo_n "checking for $ac_word... " >&6; } | |
9226 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9227 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9228 | else |
9229 | if test -n "$WINDMC"; then | |
9230 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9231 | else | |
9232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9233 | for as_dir in $PATH | |
9234 | do | |
9235 | IFS=$as_save_IFS | |
9236 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9237 | for ac_exec_ext in '' $ac_executable_extensions; do |
9238 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9239 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9240 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9241 | break 2 |
9242 | fi | |
9243 | done | |
81ecdfbb RW |
9244 | done |
9245 | IFS=$as_save_IFS | |
0c24b341 NC |
9246 | |
9247 | fi | |
9248 | fi | |
9249 | WINDMC=$ac_cv_prog_WINDMC | |
9250 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9252 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9253 | else |
81ecdfbb RW |
9254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9255 | $as_echo "no" >&6; } | |
0c24b341 NC |
9256 | fi |
9257 | ||
81ecdfbb | 9258 | |
0c24b341 NC |
9259 | fi |
9260 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9261 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9262 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9264 | $as_echo_n "checking for $ac_word... " >&6; } | |
9265 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9266 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9267 | else |
9268 | if test -n "$WINDMC"; then | |
9269 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9270 | else | |
9271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9272 | for as_dir in $PATH | |
9273 | do | |
9274 | IFS=$as_save_IFS | |
9275 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9276 | for ac_exec_ext in '' $ac_executable_extensions; do |
9277 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9278 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9280 | break 2 |
9281 | fi | |
9282 | done | |
81ecdfbb RW |
9283 | done |
9284 | IFS=$as_save_IFS | |
0c24b341 NC |
9285 | |
9286 | fi | |
9287 | fi | |
9288 | WINDMC=$ac_cv_prog_WINDMC | |
9289 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9291 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9292 | else |
81ecdfbb RW |
9293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9294 | $as_echo "no" >&6; } | |
0c24b341 NC |
9295 | fi |
9296 | ||
81ecdfbb | 9297 | |
0c24b341 NC |
9298 | fi |
9299 | test -n "$ac_cv_prog_WINDMC" && break | |
9300 | done | |
9301 | ||
9302 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9303 | set dummy windmc | |
9304 | if test $build = $host ; then | |
9305 | WINDMC="$2" | |
9306 | else | |
9307 | WINDMC="${ncn_tool_prefix}$2" | |
9308 | fi | |
9309 | fi | |
9310 | ||
9311 | ||
9312 | ||
9a819804 AO |
9313 | if test -n "$OBJCOPY"; then |
9314 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9315 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9316 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9317 | fi | |
9318 | ||
9319 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9320 | for ncn_progname in objcopy; do | |
9321 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9322 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9324 | $as_echo_n "checking for $ac_word... " >&6; } | |
9325 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9326 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9327 | else |
9328 | if test -n "$OBJCOPY"; then | |
9329 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9330 | else | |
9331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9332 | for as_dir in $PATH | |
9333 | do | |
9334 | IFS=$as_save_IFS | |
9335 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9336 | for ac_exec_ext in '' $ac_executable_extensions; do |
9337 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9338 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9339 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9340 | break 2 |
9341 | fi | |
9342 | done | |
81ecdfbb RW |
9343 | done |
9344 | IFS=$as_save_IFS | |
9a819804 AO |
9345 | |
9346 | fi | |
9347 | fi | |
9348 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9349 | if test -n "$OBJCOPY"; then | |
81ecdfbb RW |
9350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9351 | $as_echo "$OBJCOPY" >&6; } | |
9a819804 | 9352 | else |
81ecdfbb RW |
9353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9354 | $as_echo "no" >&6; } | |
9a819804 AO |
9355 | fi |
9356 | ||
81ecdfbb | 9357 | |
9a819804 AO |
9358 | done |
9359 | fi | |
9360 | ||
9361 | for ncn_progname in objcopy; do | |
05cbd757 PB |
9362 | if test -n "$ncn_tool_prefix"; then |
9363 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9364 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9366 | $as_echo_n "checking for $ac_word... " >&6; } | |
9367 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9368 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9369 | else |
9370 | if test -n "$OBJCOPY"; then | |
9371 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9372 | else | |
c6b750e1 DJ |
9373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9374 | for as_dir in $PATH | |
9375 | do | |
9376 | IFS=$as_save_IFS | |
9377 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9378 | for ac_exec_ext in '' $ac_executable_extensions; do |
9379 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9380 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9381 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9382 | break 2 |
9383 | fi | |
9384 | done | |
81ecdfbb RW |
9385 | done |
9386 | IFS=$as_save_IFS | |
c6b750e1 | 9387 | |
859789af AC |
9388 | fi |
9389 | fi | |
c6b750e1 | 9390 | OBJCOPY=$ac_cv_prog_OBJCOPY |
859789af | 9391 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9393 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9394 | else |
81ecdfbb RW |
9395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9396 | $as_echo "no" >&6; } | |
859789af AC |
9397 | fi |
9398 | ||
81ecdfbb | 9399 | |
05cbd757 PB |
9400 | fi |
9401 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9402 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9403 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9405 | $as_echo_n "checking for $ac_word... " >&6; } | |
9406 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9407 | $as_echo_n "(cached) " >&6 | |
859789af | 9408 | else |
05cbd757 PB |
9409 | if test -n "$OBJCOPY"; then |
9410 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
859789af | 9411 | else |
c6b750e1 DJ |
9412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9413 | for as_dir in $PATH | |
9414 | do | |
9415 | IFS=$as_save_IFS | |
9416 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9417 | for ac_exec_ext in '' $ac_executable_extensions; do |
9418 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9419 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9420 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9421 | break 2 |
9422 | fi | |
9423 | done | |
81ecdfbb RW |
9424 | done |
9425 | IFS=$as_save_IFS | |
c6b750e1 | 9426 | |
859789af AC |
9427 | fi |
9428 | fi | |
c6b750e1 | 9429 | OBJCOPY=$ac_cv_prog_OBJCOPY |
05cbd757 | 9430 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9432 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9433 | else |
81ecdfbb RW |
9434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9435 | $as_echo "no" >&6; } | |
859789af | 9436 | fi |
c6b750e1 | 9437 | |
81ecdfbb | 9438 | |
05cbd757 PB |
9439 | fi |
9440 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9441 | done | |
9442 | ||
9443 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9444 | set dummy objcopy | |
9445 | if test $build = $host ; then | |
9446 | OBJCOPY="$2" | |
859789af | 9447 | else |
05cbd757 | 9448 | OBJCOPY="${ncn_tool_prefix}$2" |
859789af | 9449 | fi |
859789af AC |
9450 | fi |
9451 | ||
9a819804 AO |
9452 | |
9453 | ||
9454 | if test -n "$OBJDUMP"; then | |
9455 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9456 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9457 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9458 | fi | |
9459 | ||
9460 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9461 | for ncn_progname in objdump; do | |
9462 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9463 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9465 | $as_echo_n "checking for $ac_word... " >&6; } | |
9466 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9467 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9468 | else |
9469 | if test -n "$OBJDUMP"; then | |
9470 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9471 | else | |
9472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9473 | for as_dir in $PATH | |
9474 | do | |
9475 | IFS=$as_save_IFS | |
9476 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9477 | for ac_exec_ext in '' $ac_executable_extensions; do |
9478 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9479 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9480 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9481 | break 2 |
9482 | fi | |
9483 | done | |
81ecdfbb RW |
9484 | done |
9485 | IFS=$as_save_IFS | |
9a819804 AO |
9486 | |
9487 | fi | |
9488 | fi | |
9489 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9490 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
9491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9492 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 9493 | else |
81ecdfbb RW |
9494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9495 | $as_echo "no" >&6; } | |
9a819804 AO |
9496 | fi |
9497 | ||
81ecdfbb | 9498 | |
9a819804 AO |
9499 | done |
9500 | fi | |
9501 | ||
9502 | for ncn_progname in objdump; do | |
05cbd757 PB |
9503 | if test -n "$ncn_tool_prefix"; then |
9504 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9505 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9507 | $as_echo_n "checking for $ac_word... " >&6; } | |
9508 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9509 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9510 | else |
9511 | if test -n "$OBJDUMP"; then | |
9512 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9513 | else | |
c6b750e1 DJ |
9514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9515 | for as_dir in $PATH | |
9516 | do | |
9517 | IFS=$as_save_IFS | |
9518 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9519 | for ac_exec_ext in '' $ac_executable_extensions; do |
9520 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9521 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9522 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9523 | break 2 |
9524 | fi | |
9525 | done | |
81ecdfbb RW |
9526 | done |
9527 | IFS=$as_save_IFS | |
c6b750e1 | 9528 | |
859789af AC |
9529 | fi |
9530 | fi | |
c6b750e1 | 9531 | OBJDUMP=$ac_cv_prog_OBJDUMP |
859789af | 9532 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9534 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9535 | else |
81ecdfbb RW |
9536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9537 | $as_echo "no" >&6; } | |
859789af AC |
9538 | fi |
9539 | ||
81ecdfbb | 9540 | |
05cbd757 PB |
9541 | fi |
9542 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9543 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9544 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9546 | $as_echo_n "checking for $ac_word... " >&6; } | |
9547 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9548 | $as_echo_n "(cached) " >&6 | |
859789af | 9549 | else |
05cbd757 PB |
9550 | if test -n "$OBJDUMP"; then |
9551 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 9552 | else |
c6b750e1 DJ |
9553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9554 | for as_dir in $PATH | |
9555 | do | |
9556 | IFS=$as_save_IFS | |
9557 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9558 | for ac_exec_ext in '' $ac_executable_extensions; do |
9559 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9560 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9562 | break 2 |
9563 | fi | |
9564 | done | |
81ecdfbb RW |
9565 | done |
9566 | IFS=$as_save_IFS | |
c6b750e1 | 9567 | |
859789af AC |
9568 | fi |
9569 | fi | |
c6b750e1 | 9570 | OBJDUMP=$ac_cv_prog_OBJDUMP |
05cbd757 | 9571 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9573 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9574 | else |
81ecdfbb RW |
9575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9576 | $as_echo "no" >&6; } | |
859789af | 9577 | fi |
c6b750e1 | 9578 | |
81ecdfbb | 9579 | |
05cbd757 PB |
9580 | fi |
9581 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9582 | done | |
9583 | ||
9584 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9585 | set dummy objdump | |
9586 | if test $build = $host ; then | |
9587 | OBJDUMP="$2" | |
859789af | 9588 | else |
05cbd757 | 9589 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 9590 | fi |
859789af AC |
9591 | fi |
9592 | ||
a0da8069 NN |
9593 | |
9594 | ||
9595 | ||
9596 | ||
9597 | ||
be01d343 | 9598 | # Target tools. |
c6b750e1 | 9599 | |
81ecdfbb RW |
9600 | # Check whether --with-build-time-tools was given. |
9601 | if test "${with_build_time_tools+set}" = set; then : | |
9602 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
9603 | x/*) ;; |
9604 | *) | |
9605 | with_build_time_tools= | |
81ecdfbb RW |
9606 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9607 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
9608 | ;; |
9609 | esac | |
859789af | 9610 | else |
2429c060 | 9611 | with_build_time_tools= |
81ecdfbb RW |
9612 | fi |
9613 | ||
859789af | 9614 | |
9a819804 AO |
9615 | |
9616 | ||
9617 | if test -n "$CC_FOR_TARGET"; then | |
9618 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9619 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9620 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9621 | fi | |
9622 | ||
9623 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9624 | for ncn_progname in cc gcc; do | |
9625 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9626 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9628 | $as_echo_n "checking for $ac_word... " >&6; } | |
9629 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9630 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9631 | else |
9632 | if test -n "$CC_FOR_TARGET"; then | |
9633 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9634 | else | |
9635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9636 | for as_dir in $PATH | |
9637 | do | |
9638 | IFS=$as_save_IFS | |
9639 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9640 | for ac_exec_ext in '' $ac_executable_extensions; do |
9641 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9642 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9643 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9644 | break 2 |
9645 | fi | |
9646 | done | |
81ecdfbb RW |
9647 | done |
9648 | IFS=$as_save_IFS | |
9a819804 AO |
9649 | |
9650 | fi | |
9651 | fi | |
9652 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9653 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
9654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9655 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 9656 | else |
81ecdfbb RW |
9657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9658 | $as_echo "no" >&6; } | |
9a819804 AO |
9659 | fi |
9660 | ||
81ecdfbb | 9661 | |
9a819804 AO |
9662 | done |
9663 | fi | |
9664 | ||
9665 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 9666 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
9667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9668 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
9669 | if test -x $with_build_time_tools/${ncn_progname}; then |
9670 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
9671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9672 | $as_echo "yes" >&6; } | |
cac3d6c4 | 9673 | break |
2429c060 | 9674 | else |
81ecdfbb RW |
9675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9676 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
9677 | fi |
9678 | done | |
55db4b87 PB |
9679 | fi |
9680 | ||
2429c060 PB |
9681 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
9682 | for ncn_progname in cc gcc; do | |
9683 | if test -n "$ncn_target_tool_prefix"; then | |
9684 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9685 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9687 | $as_echo_n "checking for $ac_word... " >&6; } | |
9688 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9689 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
9690 | else |
9691 | if test -n "$CC_FOR_TARGET"; then | |
9692 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9693 | else | |
c6b750e1 DJ |
9694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9695 | for as_dir in $PATH | |
9696 | do | |
9697 | IFS=$as_save_IFS | |
9698 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9699 | for ac_exec_ext in '' $ac_executable_extensions; do |
9700 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9701 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 9702 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9703 | break 2 |
9704 | fi | |
9705 | done | |
81ecdfbb RW |
9706 | done |
9707 | IFS=$as_save_IFS | |
c6b750e1 | 9708 | |
55db4b87 PB |
9709 | fi |
9710 | fi | |
c6b750e1 | 9711 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 9712 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
9713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9714 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 9715 | else |
81ecdfbb RW |
9716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9717 | $as_echo "no" >&6; } | |
55db4b87 PB |
9718 | fi |
9719 | ||
81ecdfbb | 9720 | |
2429c060 PB |
9721 | fi |
9722 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
9723 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9724 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9726 | $as_echo_n "checking for $ac_word... " >&6; } | |
9727 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9728 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 9729 | else |
05cbd757 PB |
9730 | if test -n "$CC_FOR_TARGET"; then |
9731 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 9732 | else |
c6b750e1 DJ |
9733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9734 | for as_dir in $PATH | |
9735 | do | |
9736 | IFS=$as_save_IFS | |
9737 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9738 | for ac_exec_ext in '' $ac_executable_extensions; do |
9739 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9740 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9741 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9742 | break 2 |
9743 | fi | |
9744 | done | |
81ecdfbb RW |
9745 | done |
9746 | IFS=$as_save_IFS | |
c6b750e1 | 9747 | |
55db4b87 PB |
9748 | fi |
9749 | fi | |
c6b750e1 | 9750 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 9751 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
9752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9753 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 9754 | else |
81ecdfbb RW |
9755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9756 | $as_echo "no" >&6; } | |
55db4b87 | 9757 | fi |
c6b750e1 | 9758 | |
81ecdfbb | 9759 | |
2429c060 PB |
9760 | fi |
9761 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
9762 | done | |
9763 | fi | |
c6b750e1 | 9764 | |
05cbd757 PB |
9765 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
9766 | set dummy cc gcc | |
9767 | if test $build = $target ; then | |
9768 | CC_FOR_TARGET="$2" | |
55db4b87 | 9769 | else |
05cbd757 | 9770 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 9771 | fi |
d3f5afc4 MS |
9772 | else |
9773 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
9774 | fi |
9775 | ||
9a819804 AO |
9776 | |
9777 | ||
9778 | if test -n "$CXX_FOR_TARGET"; then | |
9779 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
9780 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9781 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9782 | fi | |
9783 | ||
9784 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9785 | for ncn_progname in c++ g++ cxx gxx; do | |
9786 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9787 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9789 | $as_echo_n "checking for $ac_word... " >&6; } | |
9790 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9791 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9792 | else |
9793 | if test -n "$CXX_FOR_TARGET"; then | |
9794 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9795 | else | |
9796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9797 | for as_dir in $PATH | |
9798 | do | |
9799 | IFS=$as_save_IFS | |
9800 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9801 | for ac_exec_ext in '' $ac_executable_extensions; do |
9802 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9803 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9804 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9805 | break 2 |
9806 | fi | |
9807 | done | |
81ecdfbb RW |
9808 | done |
9809 | IFS=$as_save_IFS | |
9a819804 AO |
9810 | |
9811 | fi | |
9812 | fi | |
9813 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9814 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
9815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9816 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 9817 | else |
81ecdfbb RW |
9818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9819 | $as_echo "no" >&6; } | |
9a819804 AO |
9820 | fi |
9821 | ||
81ecdfbb | 9822 | |
9a819804 AO |
9823 | done |
9824 | fi | |
9825 | ||
9826 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 9827 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
9828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9829 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
9830 | if test -x $with_build_time_tools/${ncn_progname}; then |
9831 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
9832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9833 | $as_echo "yes" >&6; } | |
2429c060 PB |
9834 | break |
9835 | else | |
81ecdfbb RW |
9836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9837 | $as_echo "no" >&6; } | |
2429c060 PB |
9838 | fi |
9839 | done | |
9840 | fi | |
9841 | ||
9842 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9843 | for ncn_progname in c++ g++ cxx gxx; do | |
9844 | if test -n "$ncn_target_tool_prefix"; then | |
9845 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9846 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9848 | $as_echo_n "checking for $ac_word... " >&6; } | |
9849 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9850 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
9851 | else |
9852 | if test -n "$CXX_FOR_TARGET"; then | |
9853 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9854 | else | |
c6b750e1 DJ |
9855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9856 | for as_dir in $PATH | |
9857 | do | |
9858 | IFS=$as_save_IFS | |
9859 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9860 | for ac_exec_ext in '' $ac_executable_extensions; do |
9861 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9862 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 9863 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9864 | break 2 |
9865 | fi | |
9866 | done | |
81ecdfbb RW |
9867 | done |
9868 | IFS=$as_save_IFS | |
c6b750e1 | 9869 | |
55db4b87 PB |
9870 | fi |
9871 | fi | |
c6b750e1 | 9872 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 9873 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
9874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9875 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 9876 | else |
81ecdfbb RW |
9877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9878 | $as_echo "no" >&6; } | |
55db4b87 PB |
9879 | fi |
9880 | ||
81ecdfbb | 9881 | |
2429c060 PB |
9882 | fi |
9883 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
9884 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9885 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9887 | $as_echo_n "checking for $ac_word... " >&6; } | |
9888 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9889 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 9890 | else |
05cbd757 PB |
9891 | if test -n "$CXX_FOR_TARGET"; then |
9892 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 9893 | else |
c6b750e1 DJ |
9894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9895 | for as_dir in $PATH | |
9896 | do | |
9897 | IFS=$as_save_IFS | |
9898 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9899 | for ac_exec_ext in '' $ac_executable_extensions; do |
9900 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9901 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9902 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9903 | break 2 |
9904 | fi | |
9905 | done | |
81ecdfbb RW |
9906 | done |
9907 | IFS=$as_save_IFS | |
c6b750e1 | 9908 | |
55db4b87 PB |
9909 | fi |
9910 | fi | |
c6b750e1 | 9911 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 9912 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
9913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9914 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 9915 | else |
81ecdfbb RW |
9916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9917 | $as_echo "no" >&6; } | |
55db4b87 | 9918 | fi |
c6b750e1 | 9919 | |
81ecdfbb | 9920 | |
2429c060 PB |
9921 | fi |
9922 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
9923 | done | |
9924 | fi | |
c6b750e1 | 9925 | |
05cbd757 PB |
9926 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
9927 | set dummy c++ g++ cxx gxx | |
9928 | if test $build = $target ; then | |
9929 | CXX_FOR_TARGET="$2" | |
55db4b87 | 9930 | else |
05cbd757 | 9931 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 9932 | fi |
d3f5afc4 MS |
9933 | else |
9934 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
9935 | fi |
9936 | ||
9a819804 AO |
9937 | |
9938 | ||
9939 | if test -n "$GCC_FOR_TARGET"; then | |
9940 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
9941 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9942 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
9943 | fi | |
9944 | ||
9945 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9946 | for ncn_progname in gcc; do | |
9947 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9948 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9950 | $as_echo_n "checking for $ac_word... " >&6; } | |
9951 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
9952 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9953 | else |
9954 | if test -n "$GCC_FOR_TARGET"; then | |
9955 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
9956 | else | |
9957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9958 | for as_dir in $PATH | |
9959 | do | |
9960 | IFS=$as_save_IFS | |
9961 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9962 | for ac_exec_ext in '' $ac_executable_extensions; do |
9963 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9964 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9966 | break 2 |
9967 | fi | |
9968 | done | |
81ecdfbb RW |
9969 | done |
9970 | IFS=$as_save_IFS | |
9a819804 AO |
9971 | |
9972 | fi | |
9973 | fi | |
9974 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
9975 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
9976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
9977 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 9978 | else |
81ecdfbb RW |
9979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9980 | $as_echo "no" >&6; } | |
9a819804 AO |
9981 | fi |
9982 | ||
81ecdfbb | 9983 | |
9a819804 AO |
9984 | done |
9985 | fi | |
9986 | ||
9987 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 9988 | for ncn_progname in gcc; do |
81ecdfbb RW |
9989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9990 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
9991 | if test -x $with_build_time_tools/${ncn_progname}; then |
9992 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
9993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9994 | $as_echo "yes" >&6; } | |
2429c060 PB |
9995 | break |
9996 | else | |
81ecdfbb RW |
9997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9998 | $as_echo "no" >&6; } | |
2429c060 PB |
9999 | fi |
10000 | done | |
10001 | fi | |
10002 | ||
10003 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10004 | for ncn_progname in gcc; do | |
10005 | if test -n "$ncn_target_tool_prefix"; then | |
10006 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10007 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10009 | $as_echo_n "checking for $ac_word... " >&6; } | |
10010 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10011 | $as_echo_n "(cached) " >&6 | |
859789af | 10012 | else |
2429c060 PB |
10013 | if test -n "$GCC_FOR_TARGET"; then |
10014 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10015 | else |
c6b750e1 DJ |
10016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10017 | for as_dir in $PATH | |
10018 | do | |
10019 | IFS=$as_save_IFS | |
10020 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10021 | for ac_exec_ext in '' $ac_executable_extensions; do |
10022 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10023 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10024 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10025 | break 2 |
10026 | fi | |
10027 | done | |
81ecdfbb RW |
10028 | done |
10029 | IFS=$as_save_IFS | |
c6b750e1 | 10030 | |
55db4b87 PB |
10031 | fi |
10032 | fi | |
c6b750e1 | 10033 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 10034 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10036 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10037 | else |
81ecdfbb RW |
10038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10039 | $as_echo "no" >&6; } | |
55db4b87 PB |
10040 | fi |
10041 | ||
81ecdfbb | 10042 | |
2429c060 PB |
10043 | fi |
10044 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10045 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10046 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10048 | $as_echo_n "checking for $ac_word... " >&6; } | |
10049 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10050 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10051 | else |
05cbd757 PB |
10052 | if test -n "$GCC_FOR_TARGET"; then |
10053 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10054 | else |
c6b750e1 DJ |
10055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10056 | for as_dir in $PATH | |
10057 | do | |
10058 | IFS=$as_save_IFS | |
10059 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10060 | for ac_exec_ext in '' $ac_executable_extensions; do |
10061 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10062 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10063 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10064 | break 2 |
10065 | fi | |
10066 | done | |
81ecdfbb RW |
10067 | done |
10068 | IFS=$as_save_IFS | |
c6b750e1 | 10069 | |
55db4b87 PB |
10070 | fi |
10071 | fi | |
c6b750e1 | 10072 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 10073 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10075 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10076 | else |
81ecdfbb RW |
10077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10078 | $as_echo "no" >&6; } | |
55db4b87 | 10079 | fi |
c6b750e1 | 10080 | |
81ecdfbb | 10081 | |
2429c060 PB |
10082 | fi |
10083 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10084 | done | |
10085 | fi | |
c6b750e1 | 10086 | |
05cbd757 PB |
10087 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10088 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
10089 | else |
10090 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
10091 | fi |
10092 | ||
9a819804 AO |
10093 | |
10094 | ||
10095 | if test -n "$GCJ_FOR_TARGET"; then | |
10096 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10097 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10098 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10099 | fi | |
10100 | ||
10101 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10102 | for ncn_progname in gcj; do | |
10103 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10104 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10106 | $as_echo_n "checking for $ac_word... " >&6; } | |
10107 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10108 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10109 | else |
10110 | if test -n "$GCJ_FOR_TARGET"; then | |
10111 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10112 | else | |
10113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10114 | for as_dir in $PATH | |
10115 | do | |
10116 | IFS=$as_save_IFS | |
10117 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10118 | for ac_exec_ext in '' $ac_executable_extensions; do |
10119 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10120 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10121 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10122 | break 2 |
10123 | fi | |
10124 | done | |
81ecdfbb RW |
10125 | done |
10126 | IFS=$as_save_IFS | |
9a819804 AO |
10127 | |
10128 | fi | |
10129 | fi | |
10130 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10131 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10133 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10134 | else |
81ecdfbb RW |
10135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10136 | $as_echo "no" >&6; } | |
9a819804 AO |
10137 | fi |
10138 | ||
81ecdfbb | 10139 | |
9a819804 AO |
10140 | done |
10141 | fi | |
10142 | ||
10143 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10144 | for ncn_progname in gcj; do |
81ecdfbb RW |
10145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10146 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10147 | if test -x $with_build_time_tools/${ncn_progname}; then |
10148 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10150 | $as_echo "yes" >&6; } | |
2429c060 PB |
10151 | break |
10152 | else | |
81ecdfbb RW |
10153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10154 | $as_echo "no" >&6; } | |
2429c060 PB |
10155 | fi |
10156 | done | |
10157 | fi | |
10158 | ||
10159 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10160 | for ncn_progname in gcj; do | |
10161 | if test -n "$ncn_target_tool_prefix"; then | |
10162 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10163 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10165 | $as_echo_n "checking for $ac_word... " >&6; } | |
10166 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10167 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10168 | else |
10169 | if test -n "$GCJ_FOR_TARGET"; then | |
10170 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10171 | else | |
c6b750e1 DJ |
10172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10173 | for as_dir in $PATH | |
10174 | do | |
10175 | IFS=$as_save_IFS | |
10176 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10177 | for ac_exec_ext in '' $ac_executable_extensions; do |
10178 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10179 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10180 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10181 | break 2 |
10182 | fi | |
10183 | done | |
81ecdfbb RW |
10184 | done |
10185 | IFS=$as_save_IFS | |
c6b750e1 | 10186 | |
55db4b87 PB |
10187 | fi |
10188 | fi | |
9a819804 AO |
10189 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10190 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10192 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10193 | else |
81ecdfbb RW |
10194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10195 | $as_echo "no" >&6; } | |
9a819804 AO |
10196 | fi |
10197 | ||
81ecdfbb | 10198 | |
9a819804 AO |
10199 | fi |
10200 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10201 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10202 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10204 | $as_echo_n "checking for $ac_word... " >&6; } | |
10205 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10206 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10207 | else |
10208 | if test -n "$GCJ_FOR_TARGET"; then | |
10209 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10210 | else | |
10211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10212 | for as_dir in $PATH | |
10213 | do | |
10214 | IFS=$as_save_IFS | |
10215 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10216 | for ac_exec_ext in '' $ac_executable_extensions; do |
10217 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10218 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10219 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10220 | break 2 |
10221 | fi | |
10222 | done | |
81ecdfbb RW |
10223 | done |
10224 | IFS=$as_save_IFS | |
9a819804 AO |
10225 | |
10226 | fi | |
10227 | fi | |
10228 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10229 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10231 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10232 | else |
81ecdfbb RW |
10233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10234 | $as_echo "no" >&6; } | |
9a819804 AO |
10235 | fi |
10236 | ||
81ecdfbb | 10237 | |
9a819804 AO |
10238 | fi |
10239 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10240 | done | |
10241 | fi | |
10242 | ||
10243 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10244 | set dummy gcj | |
10245 | if test $build = $target ; then | |
10246 | GCJ_FOR_TARGET="$2" | |
10247 | else | |
10248 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10249 | fi | |
d3f5afc4 MS |
10250 | else |
10251 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
9a819804 AO |
10252 | fi |
10253 | ||
10254 | ||
10255 | ||
10256 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10257 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10258 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10259 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
10260 | fi |
10261 | ||
9a819804 AO |
10262 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10263 | for ncn_progname in gfortran; do | |
10264 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10265 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10267 | $as_echo_n "checking for $ac_word... " >&6; } | |
10268 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10269 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10270 | else |
9a819804 AO |
10271 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10272 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10273 | else |
c6b750e1 DJ |
10274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10275 | for as_dir in $PATH | |
10276 | do | |
10277 | IFS=$as_save_IFS | |
10278 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10279 | for ac_exec_ext in '' $ac_executable_extensions; do |
10280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10281 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10283 | break 2 |
10284 | fi | |
10285 | done | |
81ecdfbb RW |
10286 | done |
10287 | IFS=$as_save_IFS | |
c6b750e1 | 10288 | |
55db4b87 PB |
10289 | fi |
10290 | fi | |
9a819804 AO |
10291 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10292 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
10293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10294 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10295 | else |
81ecdfbb RW |
10296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10297 | $as_echo "no" >&6; } | |
55db4b87 | 10298 | fi |
c6b750e1 | 10299 | |
81ecdfbb | 10300 | |
2429c060 PB |
10301 | done |
10302 | fi | |
c6b750e1 | 10303 | |
9a819804 | 10304 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 10305 | for ncn_progname in gfortran; do |
81ecdfbb RW |
10306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10307 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10308 | if test -x $with_build_time_tools/${ncn_progname}; then |
10309 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10311 | $as_echo "yes" >&6; } | |
2429c060 PB |
10312 | break |
10313 | else | |
81ecdfbb RW |
10314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10315 | $as_echo "no" >&6; } | |
2429c060 PB |
10316 | fi |
10317 | done | |
10318 | fi | |
10319 | ||
10320 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10321 | for ncn_progname in gfortran; do | |
10322 | if test -n "$ncn_target_tool_prefix"; then | |
10323 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10324 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10326 | $as_echo_n "checking for $ac_word... " >&6; } | |
10327 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10328 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10329 | else |
10330 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10331 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10332 | else | |
c6b750e1 DJ |
10333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10334 | for as_dir in $PATH | |
10335 | do | |
10336 | IFS=$as_save_IFS | |
10337 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10338 | for ac_exec_ext in '' $ac_executable_extensions; do |
10339 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10340 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10341 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10342 | break 2 |
10343 | fi | |
10344 | done | |
81ecdfbb RW |
10345 | done |
10346 | IFS=$as_save_IFS | |
c6b750e1 | 10347 | |
55db4b87 PB |
10348 | fi |
10349 | fi | |
c6b750e1 | 10350 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
55db4b87 | 10351 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10353 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10354 | else |
81ecdfbb RW |
10355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10356 | $as_echo "no" >&6; } | |
55db4b87 PB |
10357 | fi |
10358 | ||
81ecdfbb | 10359 | |
2429c060 PB |
10360 | fi |
10361 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10362 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10363 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10365 | $as_echo_n "checking for $ac_word... " >&6; } | |
10366 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10367 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10368 | else |
05cbd757 | 10369 | if test -n "$GFORTRAN_FOR_TARGET"; then |
c6b750e1 DJ |
10370 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10371 | else | |
10372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10373 | for as_dir in $PATH | |
10374 | do | |
10375 | IFS=$as_save_IFS | |
10376 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10377 | for ac_exec_ext in '' $ac_executable_extensions; do |
10378 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10379 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10380 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10381 | break 2 |
10382 | fi | |
10383 | done | |
81ecdfbb RW |
10384 | done |
10385 | IFS=$as_save_IFS | |
c6b750e1 | 10386 | |
55db4b87 PB |
10387 | fi |
10388 | fi | |
c6b750e1 | 10389 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
05cbd757 | 10390 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10392 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10393 | else |
81ecdfbb RW |
10394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10395 | $as_echo "no" >&6; } | |
55db4b87 | 10396 | fi |
c6b750e1 | 10397 | |
81ecdfbb | 10398 | |
2429c060 PB |
10399 | fi |
10400 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10401 | done | |
10402 | fi | |
c6b750e1 | 10403 | |
05cbd757 PB |
10404 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10405 | set dummy gfortran | |
10406 | if test $build = $target ; then | |
10407 | GFORTRAN_FOR_TARGET="$2" | |
55db4b87 | 10408 | else |
05cbd757 | 10409 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10410 | fi |
d3f5afc4 MS |
10411 | else |
10412 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
859789af AC |
10413 | fi |
10414 | ||
2429c060 PB |
10415 | |
10416 | ||
e552509b ILT |
10417 | if test -n "$GOC_FOR_TARGET"; then |
10418 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10419 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10420 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10421 | fi | |
10422 | ||
10423 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10424 | for ncn_progname in gccgo; do | |
10425 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10426 | set dummy ${ncn_progname}; ac_word=$2 | |
10427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10428 | $as_echo_n "checking for $ac_word... " >&6; } | |
10429 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10430 | $as_echo_n "(cached) " >&6 | |
10431 | else | |
10432 | if test -n "$GOC_FOR_TARGET"; then | |
10433 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10434 | else | |
10435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10436 | for as_dir in $PATH | |
10437 | do | |
10438 | IFS=$as_save_IFS | |
10439 | test -z "$as_dir" && as_dir=. | |
10440 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10441 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10442 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10443 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10444 | break 2 | |
10445 | fi | |
10446 | done | |
10447 | done | |
10448 | IFS=$as_save_IFS | |
10449 | ||
10450 | fi | |
10451 | fi | |
10452 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10453 | if test -n "$GOC_FOR_TARGET"; then | |
10454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10455 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10456 | else | |
10457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10458 | $as_echo "no" >&6; } | |
10459 | fi | |
10460 | ||
10461 | ||
10462 | done | |
10463 | fi | |
10464 | ||
10465 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10466 | for ncn_progname in gccgo; do | |
10467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10468 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10469 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10470 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10472 | $as_echo "yes" >&6; } | |
10473 | break | |
10474 | else | |
10475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10476 | $as_echo "no" >&6; } | |
10477 | fi | |
10478 | done | |
10479 | fi | |
10480 | ||
10481 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10482 | for ncn_progname in gccgo; do | |
10483 | if test -n "$ncn_target_tool_prefix"; then | |
10484 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10485 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10487 | $as_echo_n "checking for $ac_word... " >&6; } | |
10488 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10489 | $as_echo_n "(cached) " >&6 | |
10490 | else | |
10491 | if test -n "$GOC_FOR_TARGET"; then | |
10492 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10493 | else | |
10494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10495 | for as_dir in $PATH | |
10496 | do | |
10497 | IFS=$as_save_IFS | |
10498 | test -z "$as_dir" && as_dir=. | |
10499 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10500 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10501 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10502 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10503 | break 2 | |
10504 | fi | |
10505 | done | |
10506 | done | |
10507 | IFS=$as_save_IFS | |
10508 | ||
10509 | fi | |
10510 | fi | |
10511 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10512 | if test -n "$GOC_FOR_TARGET"; then | |
10513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10514 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10515 | else | |
10516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10517 | $as_echo "no" >&6; } | |
10518 | fi | |
10519 | ||
10520 | ||
10521 | fi | |
10522 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10523 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10524 | set dummy ${ncn_progname}; ac_word=$2 | |
10525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10526 | $as_echo_n "checking for $ac_word... " >&6; } | |
10527 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10528 | $as_echo_n "(cached) " >&6 | |
10529 | else | |
10530 | if test -n "$GOC_FOR_TARGET"; then | |
10531 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10532 | else | |
10533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10534 | for as_dir in $PATH | |
10535 | do | |
10536 | IFS=$as_save_IFS | |
10537 | test -z "$as_dir" && as_dir=. | |
10538 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10539 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10540 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10541 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10542 | break 2 | |
10543 | fi | |
10544 | done | |
10545 | done | |
10546 | IFS=$as_save_IFS | |
10547 | ||
10548 | fi | |
10549 | fi | |
10550 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10551 | if test -n "$GOC_FOR_TARGET"; then | |
10552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10553 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10554 | else | |
10555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10556 | $as_echo "no" >&6; } | |
10557 | fi | |
10558 | ||
10559 | ||
10560 | fi | |
10561 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10562 | done | |
10563 | fi | |
10564 | ||
10565 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10566 | set dummy gccgo | |
10567 | if test $build = $target ; then | |
10568 | GOC_FOR_TARGET="$2" | |
10569 | else | |
10570 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10571 | fi | |
10572 | else | |
10573 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10574 | fi | |
10575 | ||
10576 | ||
10577 | ||
2429c060 PB |
10578 | cat > conftest.c << \EOF |
10579 | #ifdef __GNUC__ | |
10580 | gcc_yay; | |
10581 | #endif | |
10582 | EOF | |
10583 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10584 | have_gcc_for_target=yes | |
859789af | 10585 | else |
2429c060 PB |
10586 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
10587 | have_gcc_for_target=no | |
859789af | 10588 | fi |
2429c060 PB |
10589 | rm conftest.c |
10590 | ||
10591 | ||
10592 | ||
859789af | 10593 | |
2429c060 PB |
10594 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
10595 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10597 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10598 | if test -x $with_build_time_tools/ar; then |
10599 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10600 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
10601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10602 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 10603 | else |
81ecdfbb RW |
10604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10605 | $as_echo "no" >&6; } | |
3a35eeb3 | 10606 | fi |
2429c060 PB |
10607 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10608 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
10609 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10610 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 10611 | fi |
2429c060 | 10612 | fi |
c6b750e1 | 10613 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10614 | # Extract the first word of "ar", so it can be a program name with args. |
10615 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
10616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10617 | $as_echo_n "checking for $ac_word... " >&6; } | |
10618 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10619 | $as_echo_n "(cached) " >&6 | |
859789af | 10620 | else |
c6b750e1 DJ |
10621 | case $AR_FOR_TARGET in |
10622 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10623 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10624 | ;; | |
2429c060 | 10625 | *) |
c6b750e1 DJ |
10626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10627 | for as_dir in $gcc_cv_tool_dirs | |
10628 | do | |
10629 | IFS=$as_save_IFS | |
10630 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10631 | for ac_exec_ext in '' $ac_executable_extensions; do |
10632 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10633 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10634 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10635 | break 2 |
10636 | fi | |
10637 | done | |
81ecdfbb RW |
10638 | done |
10639 | IFS=$as_save_IFS | |
c6b750e1 | 10640 | |
2429c060 PB |
10641 | ;; |
10642 | esac | |
859789af | 10643 | fi |
c6b750e1 | 10644 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 10645 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10647 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 10648 | else |
81ecdfbb RW |
10649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10650 | $as_echo "no" >&6; } | |
859789af | 10651 | fi |
05cbd757 | 10652 | |
81ecdfbb | 10653 | |
2429c060 PB |
10654 | fi |
10655 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
10656 | |
10657 | ||
10658 | if test -n "$AR_FOR_TARGET"; then | |
10659 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10660 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10661 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10662 | fi | |
10663 | ||
10664 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10665 | for ncn_progname in ar; do | |
10666 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10667 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10669 | $as_echo_n "checking for $ac_word... " >&6; } | |
10670 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10671 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10672 | else |
10673 | if test -n "$AR_FOR_TARGET"; then | |
10674 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10675 | else | |
10676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10677 | for as_dir in $PATH | |
10678 | do | |
10679 | IFS=$as_save_IFS | |
10680 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10681 | for ac_exec_ext in '' $ac_executable_extensions; do |
10682 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10683 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10685 | break 2 |
10686 | fi | |
10687 | done | |
81ecdfbb RW |
10688 | done |
10689 | IFS=$as_save_IFS | |
9a819804 AO |
10690 | |
10691 | fi | |
10692 | fi | |
10693 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10694 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
10695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10696 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 10697 | else |
81ecdfbb RW |
10698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10699 | $as_echo "no" >&6; } | |
9a819804 AO |
10700 | fi |
10701 | ||
81ecdfbb | 10702 | |
9a819804 AO |
10703 | done |
10704 | fi | |
10705 | ||
10706 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10707 | for ncn_progname in ar; do |
81ecdfbb RW |
10708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10709 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10710 | if test -x $with_build_time_tools/${ncn_progname}; then |
10711 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10713 | $as_echo "yes" >&6; } | |
2429c060 PB |
10714 | break |
10715 | else | |
81ecdfbb RW |
10716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10717 | $as_echo "no" >&6; } | |
2429c060 PB |
10718 | fi |
10719 | done | |
859789af AC |
10720 | fi |
10721 | ||
2429c060 PB |
10722 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
10723 | for ncn_progname in ar; do | |
10724 | if test -n "$ncn_target_tool_prefix"; then | |
10725 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10726 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10728 | $as_echo_n "checking for $ac_word... " >&6; } | |
10729 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10730 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 10731 | else |
2429c060 PB |
10732 | if test -n "$AR_FOR_TARGET"; then |
10733 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 10734 | else |
c6b750e1 DJ |
10735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10736 | for as_dir in $PATH | |
10737 | do | |
10738 | IFS=$as_save_IFS | |
10739 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10740 | for ac_exec_ext in '' $ac_executable_extensions; do |
10741 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10742 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10744 | break 2 |
10745 | fi | |
10746 | done | |
81ecdfbb RW |
10747 | done |
10748 | IFS=$as_save_IFS | |
c6b750e1 | 10749 | |
7e0f7140 GK |
10750 | fi |
10751 | fi | |
c6b750e1 | 10752 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 10753 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10755 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 10756 | else |
81ecdfbb RW |
10757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10758 | $as_echo "no" >&6; } | |
7e0f7140 GK |
10759 | fi |
10760 | ||
81ecdfbb | 10761 | |
2429c060 PB |
10762 | fi |
10763 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
10764 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 10765 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10767 | $as_echo_n "checking for $ac_word... " >&6; } | |
10768 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10769 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 10770 | else |
2429c060 PB |
10771 | if test -n "$AR_FOR_TARGET"; then |
10772 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 10773 | else |
c6b750e1 DJ |
10774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10775 | for as_dir in $PATH | |
10776 | do | |
10777 | IFS=$as_save_IFS | |
10778 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10779 | for ac_exec_ext in '' $ac_executable_extensions; do |
10780 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10781 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10782 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10783 | break 2 |
10784 | fi | |
10785 | done | |
81ecdfbb RW |
10786 | done |
10787 | IFS=$as_save_IFS | |
c6b750e1 | 10788 | |
7e0f7140 GK |
10789 | fi |
10790 | fi | |
c6b750e1 | 10791 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 10792 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10794 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 10795 | else |
81ecdfbb RW |
10796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10797 | $as_echo "no" >&6; } | |
7e0f7140 | 10798 | fi |
c6b750e1 | 10799 | |
81ecdfbb | 10800 | |
2429c060 PB |
10801 | fi |
10802 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
10803 | done | |
10804 | fi | |
c6b750e1 | 10805 | |
2429c060 PB |
10806 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
10807 | set dummy ar | |
7e0f7140 | 10808 | if test $build = $target ; then |
2429c060 | 10809 | AR_FOR_TARGET="$2" |
7e0f7140 | 10810 | else |
2429c060 | 10811 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 10812 | fi |
d3f5afc4 MS |
10813 | else |
10814 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
10815 | fi |
10816 | ||
3a35eeb3 PB |
10817 | else |
10818 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
10819 | fi |
10820 | ||
10821 | ||
10822 | ||
10823 | ||
10824 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
10825 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
10827 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10828 | if test -x $with_build_time_tools/as; then |
10829 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
10830 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
10831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
10832 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 10833 | else |
81ecdfbb RW |
10834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10835 | $as_echo "no" >&6; } | |
3a35eeb3 | 10836 | fi |
2429c060 PB |
10837 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10838 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
10839 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
10840 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
10841 | fi |
10842 | fi | |
c6b750e1 | 10843 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10844 | # Extract the first word of "as", so it can be a program name with args. |
10845 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
10846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10847 | $as_echo_n "checking for $ac_word... " >&6; } | |
10848 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
10849 | $as_echo_n "(cached) " >&6 | |
2429c060 | 10850 | else |
c6b750e1 DJ |
10851 | case $AS_FOR_TARGET in |
10852 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10853 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
10854 | ;; | |
2429c060 | 10855 | *) |
c6b750e1 DJ |
10856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10857 | for as_dir in $gcc_cv_tool_dirs | |
10858 | do | |
10859 | IFS=$as_save_IFS | |
10860 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10861 | for ac_exec_ext in '' $ac_executable_extensions; do |
10862 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10863 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10864 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10865 | break 2 |
10866 | fi | |
10867 | done | |
81ecdfbb RW |
10868 | done |
10869 | IFS=$as_save_IFS | |
c6b750e1 | 10870 | |
2429c060 PB |
10871 | ;; |
10872 | esac | |
10873 | fi | |
c6b750e1 | 10874 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 10875 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
10876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10877 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 10878 | else |
81ecdfbb RW |
10879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10880 | $as_echo "no" >&6; } | |
2429c060 PB |
10881 | fi |
10882 | ||
81ecdfbb | 10883 | |
2429c060 PB |
10884 | fi |
10885 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
10886 | |
10887 | ||
10888 | if test -n "$AS_FOR_TARGET"; then | |
10889 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
10890 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10891 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10892 | fi | |
10893 | ||
10894 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10895 | for ncn_progname in as; do | |
10896 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10897 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10899 | $as_echo_n "checking for $ac_word... " >&6; } | |
10900 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10901 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10902 | else |
10903 | if test -n "$AS_FOR_TARGET"; then | |
10904 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10905 | else | |
10906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10907 | for as_dir in $PATH | |
10908 | do | |
10909 | IFS=$as_save_IFS | |
10910 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10911 | for ac_exec_ext in '' $ac_executable_extensions; do |
10912 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10913 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10914 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10915 | break 2 |
10916 | fi | |
10917 | done | |
81ecdfbb RW |
10918 | done |
10919 | IFS=$as_save_IFS | |
9a819804 AO |
10920 | |
10921 | fi | |
10922 | fi | |
10923 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10924 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
10925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10926 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 10927 | else |
81ecdfbb RW |
10928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10929 | $as_echo "no" >&6; } | |
9a819804 AO |
10930 | fi |
10931 | ||
81ecdfbb | 10932 | |
9a819804 AO |
10933 | done |
10934 | fi | |
10935 | ||
10936 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10937 | for ncn_progname in as; do |
81ecdfbb RW |
10938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10939 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10940 | if test -x $with_build_time_tools/${ncn_progname}; then |
10941 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10943 | $as_echo "yes" >&6; } | |
2429c060 PB |
10944 | break |
10945 | else | |
81ecdfbb RW |
10946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10947 | $as_echo "no" >&6; } | |
2429c060 PB |
10948 | fi |
10949 | done | |
10950 | fi | |
10951 | ||
10952 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
10953 | for ncn_progname in as; do | |
10954 | if test -n "$ncn_target_tool_prefix"; then | |
10955 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10956 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10958 | $as_echo_n "checking for $ac_word... " >&6; } | |
10959 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10960 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
10961 | else |
10962 | if test -n "$AS_FOR_TARGET"; then | |
10963 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10964 | else | |
c6b750e1 DJ |
10965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10966 | for as_dir in $PATH | |
10967 | do | |
10968 | IFS=$as_save_IFS | |
10969 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10970 | for ac_exec_ext in '' $ac_executable_extensions; do |
10971 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10972 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10973 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10974 | break 2 |
10975 | fi | |
10976 | done | |
81ecdfbb RW |
10977 | done |
10978 | IFS=$as_save_IFS | |
c6b750e1 | 10979 | |
2429c060 PB |
10980 | fi |
10981 | fi | |
c6b750e1 | 10982 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 10983 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
10984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10985 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 10986 | else |
81ecdfbb RW |
10987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10988 | $as_echo "no" >&6; } | |
2429c060 PB |
10989 | fi |
10990 | ||
81ecdfbb | 10991 | |
2429c060 PB |
10992 | fi |
10993 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
10994 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10995 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10997 | $as_echo_n "checking for $ac_word... " >&6; } | |
10998 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10999 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11000 | else |
11001 | if test -n "$AS_FOR_TARGET"; then | |
11002 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11003 | else | |
c6b750e1 DJ |
11004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11005 | for as_dir in $PATH | |
11006 | do | |
11007 | IFS=$as_save_IFS | |
11008 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11009 | for ac_exec_ext in '' $ac_executable_extensions; do |
11010 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11011 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11012 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11013 | break 2 |
11014 | fi | |
11015 | done | |
81ecdfbb RW |
11016 | done |
11017 | IFS=$as_save_IFS | |
c6b750e1 | 11018 | |
2429c060 PB |
11019 | fi |
11020 | fi | |
c6b750e1 | 11021 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11022 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11024 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11025 | else |
81ecdfbb RW |
11026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11027 | $as_echo "no" >&6; } | |
2429c060 | 11028 | fi |
c6b750e1 | 11029 | |
81ecdfbb | 11030 | |
2429c060 PB |
11031 | fi |
11032 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11033 | done | |
11034 | fi | |
c6b750e1 | 11035 | |
2429c060 PB |
11036 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11037 | set dummy as | |
11038 | if test $build = $target ; then | |
11039 | AS_FOR_TARGET="$2" | |
11040 | else | |
11041 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11042 | fi | |
d3f5afc4 MS |
11043 | else |
11044 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
11045 | fi |
11046 | ||
3a35eeb3 PB |
11047 | else |
11048 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
11049 | fi |
11050 | ||
11051 | ||
11052 | ||
11053 | ||
11054 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11055 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11057 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11058 | if test -x $with_build_time_tools/dlltool; then |
11059 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11060 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
11061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11062 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 11063 | else |
81ecdfbb RW |
11064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11065 | $as_echo "no" >&6; } | |
3a35eeb3 | 11066 | fi |
2429c060 PB |
11067 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11068 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
11069 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11070 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
11071 | fi |
11072 | fi | |
c6b750e1 | 11073 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11074 | # Extract the first word of "dlltool", so it can be a program name with args. |
11075 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
11076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11077 | $as_echo_n "checking for $ac_word... " >&6; } | |
11078 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11079 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11080 | else |
c6b750e1 DJ |
11081 | case $DLLTOOL_FOR_TARGET in |
11082 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11083 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11084 | ;; | |
2429c060 | 11085 | *) |
c6b750e1 DJ |
11086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11087 | for as_dir in $gcc_cv_tool_dirs | |
11088 | do | |
11089 | IFS=$as_save_IFS | |
11090 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11091 | for ac_exec_ext in '' $ac_executable_extensions; do |
11092 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11093 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11094 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11095 | break 2 |
11096 | fi | |
11097 | done | |
81ecdfbb RW |
11098 | done |
11099 | IFS=$as_save_IFS | |
c6b750e1 | 11100 | |
2429c060 PB |
11101 | ;; |
11102 | esac | |
11103 | fi | |
c6b750e1 | 11104 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 11105 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11107 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11108 | else |
81ecdfbb RW |
11109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11110 | $as_echo "no" >&6; } | |
2429c060 PB |
11111 | fi |
11112 | ||
81ecdfbb | 11113 | |
2429c060 PB |
11114 | fi |
11115 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
11116 | |
11117 | ||
11118 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11119 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11120 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11121 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11122 | fi | |
11123 | ||
11124 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11125 | for ncn_progname in dlltool; do | |
11126 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11127 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11129 | $as_echo_n "checking for $ac_word... " >&6; } | |
11130 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11131 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11132 | else |
11133 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11134 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11135 | else | |
11136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11137 | for as_dir in $PATH | |
11138 | do | |
11139 | IFS=$as_save_IFS | |
11140 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11141 | for ac_exec_ext in '' $ac_executable_extensions; do |
11142 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11143 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11145 | break 2 |
11146 | fi | |
11147 | done | |
81ecdfbb RW |
11148 | done |
11149 | IFS=$as_save_IFS | |
9a819804 AO |
11150 | |
11151 | fi | |
11152 | fi | |
11153 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11154 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
11155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11156 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 11157 | else |
81ecdfbb RW |
11158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11159 | $as_echo "no" >&6; } | |
9a819804 AO |
11160 | fi |
11161 | ||
81ecdfbb | 11162 | |
9a819804 AO |
11163 | done |
11164 | fi | |
11165 | ||
11166 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11167 | for ncn_progname in dlltool; do |
81ecdfbb RW |
11168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11169 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11170 | if test -x $with_build_time_tools/${ncn_progname}; then |
11171 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11173 | $as_echo "yes" >&6; } | |
2429c060 PB |
11174 | break |
11175 | else | |
81ecdfbb RW |
11176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11177 | $as_echo "no" >&6; } | |
2429c060 PB |
11178 | fi |
11179 | done | |
11180 | fi | |
11181 | ||
11182 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11183 | for ncn_progname in dlltool; do | |
11184 | if test -n "$ncn_target_tool_prefix"; then | |
11185 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11186 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11188 | $as_echo_n "checking for $ac_word... " >&6; } | |
11189 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11190 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11191 | else |
11192 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11193 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11194 | else | |
c6b750e1 DJ |
11195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11196 | for as_dir in $PATH | |
11197 | do | |
11198 | IFS=$as_save_IFS | |
11199 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11200 | for ac_exec_ext in '' $ac_executable_extensions; do |
11201 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11202 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11203 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11204 | break 2 |
11205 | fi | |
11206 | done | |
81ecdfbb RW |
11207 | done |
11208 | IFS=$as_save_IFS | |
c6b750e1 | 11209 | |
2429c060 PB |
11210 | fi |
11211 | fi | |
c6b750e1 | 11212 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11213 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11215 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11216 | else |
81ecdfbb RW |
11217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11218 | $as_echo "no" >&6; } | |
2429c060 PB |
11219 | fi |
11220 | ||
81ecdfbb | 11221 | |
2429c060 PB |
11222 | fi |
11223 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11224 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11225 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11227 | $as_echo_n "checking for $ac_word... " >&6; } | |
11228 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11229 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11230 | else |
11231 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11232 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11233 | else | |
c6b750e1 DJ |
11234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11235 | for as_dir in $PATH | |
11236 | do | |
11237 | IFS=$as_save_IFS | |
11238 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11239 | for ac_exec_ext in '' $ac_executable_extensions; do |
11240 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11241 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11243 | break 2 |
11244 | fi | |
11245 | done | |
81ecdfbb RW |
11246 | done |
11247 | IFS=$as_save_IFS | |
c6b750e1 | 11248 | |
2429c060 PB |
11249 | fi |
11250 | fi | |
c6b750e1 | 11251 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11252 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11254 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11255 | else |
81ecdfbb RW |
11256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11257 | $as_echo "no" >&6; } | |
2429c060 | 11258 | fi |
c6b750e1 | 11259 | |
81ecdfbb | 11260 | |
2429c060 PB |
11261 | fi |
11262 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11263 | done | |
11264 | fi | |
c6b750e1 | 11265 | |
2429c060 PB |
11266 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11267 | set dummy dlltool | |
11268 | if test $build = $target ; then | |
11269 | DLLTOOL_FOR_TARGET="$2" | |
11270 | else | |
11271 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11272 | fi | |
d3f5afc4 MS |
11273 | else |
11274 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
2429c060 PB |
11275 | fi |
11276 | ||
3a35eeb3 PB |
11277 | else |
11278 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
2429c060 PB |
11279 | fi |
11280 | ||
11281 | ||
11282 | ||
11283 | ||
11284 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11285 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11287 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11288 | if test -x $with_build_time_tools/ld; then |
11289 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11290 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
11291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11292 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 11293 | else |
81ecdfbb RW |
11294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11295 | $as_echo "no" >&6; } | |
3a35eeb3 | 11296 | fi |
2429c060 PB |
11297 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11298 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
11299 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11300 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
11301 | fi |
11302 | fi | |
c6b750e1 | 11303 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11304 | # Extract the first word of "ld", so it can be a program name with args. |
11305 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
11306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11307 | $as_echo_n "checking for $ac_word... " >&6; } | |
11308 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11309 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11310 | else |
c6b750e1 DJ |
11311 | case $LD_FOR_TARGET in |
11312 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11313 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11314 | ;; | |
2429c060 | 11315 | *) |
c6b750e1 DJ |
11316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11317 | for as_dir in $gcc_cv_tool_dirs | |
11318 | do | |
11319 | IFS=$as_save_IFS | |
11320 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11321 | for ac_exec_ext in '' $ac_executable_extensions; do |
11322 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11323 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11324 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11325 | break 2 |
11326 | fi | |
11327 | done | |
81ecdfbb RW |
11328 | done |
11329 | IFS=$as_save_IFS | |
c6b750e1 | 11330 | |
2429c060 PB |
11331 | ;; |
11332 | esac | |
11333 | fi | |
c6b750e1 | 11334 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 11335 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11337 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11338 | else |
81ecdfbb RW |
11339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11340 | $as_echo "no" >&6; } | |
2429c060 PB |
11341 | fi |
11342 | ||
81ecdfbb | 11343 | |
2429c060 PB |
11344 | fi |
11345 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
11346 | |
11347 | ||
11348 | if test -n "$LD_FOR_TARGET"; then | |
11349 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11350 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11351 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11352 | fi | |
11353 | ||
11354 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11355 | for ncn_progname in ld; do | |
11356 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11357 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11359 | $as_echo_n "checking for $ac_word... " >&6; } | |
11360 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11361 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11362 | else |
11363 | if test -n "$LD_FOR_TARGET"; then | |
11364 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11365 | else | |
11366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11367 | for as_dir in $PATH | |
11368 | do | |
11369 | IFS=$as_save_IFS | |
11370 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11371 | for ac_exec_ext in '' $ac_executable_extensions; do |
11372 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11373 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11375 | break 2 |
11376 | fi | |
11377 | done | |
81ecdfbb RW |
11378 | done |
11379 | IFS=$as_save_IFS | |
9a819804 AO |
11380 | |
11381 | fi | |
11382 | fi | |
11383 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11384 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
11385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11386 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 11387 | else |
81ecdfbb RW |
11388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11389 | $as_echo "no" >&6; } | |
9a819804 AO |
11390 | fi |
11391 | ||
81ecdfbb | 11392 | |
9a819804 AO |
11393 | done |
11394 | fi | |
11395 | ||
11396 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11397 | for ncn_progname in ld; do |
81ecdfbb RW |
11398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11399 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11400 | if test -x $with_build_time_tools/${ncn_progname}; then |
11401 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11403 | $as_echo "yes" >&6; } | |
2429c060 PB |
11404 | break |
11405 | else | |
81ecdfbb RW |
11406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11407 | $as_echo "no" >&6; } | |
2429c060 PB |
11408 | fi |
11409 | done | |
11410 | fi | |
11411 | ||
11412 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11413 | for ncn_progname in ld; do | |
11414 | if test -n "$ncn_target_tool_prefix"; then | |
11415 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11416 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11418 | $as_echo_n "checking for $ac_word... " >&6; } | |
11419 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11420 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11421 | else |
11422 | if test -n "$LD_FOR_TARGET"; then | |
11423 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11424 | else | |
c6b750e1 DJ |
11425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11426 | for as_dir in $PATH | |
11427 | do | |
11428 | IFS=$as_save_IFS | |
11429 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11430 | for ac_exec_ext in '' $ac_executable_extensions; do |
11431 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11432 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11433 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11434 | break 2 |
11435 | fi | |
11436 | done | |
81ecdfbb RW |
11437 | done |
11438 | IFS=$as_save_IFS | |
c6b750e1 | 11439 | |
2429c060 PB |
11440 | fi |
11441 | fi | |
c6b750e1 | 11442 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11443 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11445 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11446 | else |
81ecdfbb RW |
11447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11448 | $as_echo "no" >&6; } | |
2429c060 PB |
11449 | fi |
11450 | ||
81ecdfbb | 11451 | |
2429c060 PB |
11452 | fi |
11453 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11454 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11455 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11457 | $as_echo_n "checking for $ac_word... " >&6; } | |
11458 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11459 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11460 | else |
11461 | if test -n "$LD_FOR_TARGET"; then | |
11462 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11463 | else | |
c6b750e1 DJ |
11464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11465 | for as_dir in $PATH | |
11466 | do | |
11467 | IFS=$as_save_IFS | |
11468 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11469 | for ac_exec_ext in '' $ac_executable_extensions; do |
11470 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11471 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11472 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11473 | break 2 |
11474 | fi | |
11475 | done | |
81ecdfbb RW |
11476 | done |
11477 | IFS=$as_save_IFS | |
c6b750e1 | 11478 | |
2429c060 PB |
11479 | fi |
11480 | fi | |
c6b750e1 | 11481 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11482 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11484 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11485 | else |
81ecdfbb RW |
11486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11487 | $as_echo "no" >&6; } | |
2429c060 | 11488 | fi |
c6b750e1 | 11489 | |
81ecdfbb | 11490 | |
2429c060 PB |
11491 | fi |
11492 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11493 | done | |
11494 | fi | |
c6b750e1 | 11495 | |
2429c060 PB |
11496 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11497 | set dummy ld | |
11498 | if test $build = $target ; then | |
11499 | LD_FOR_TARGET="$2" | |
11500 | else | |
11501 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11502 | fi | |
d3f5afc4 MS |
11503 | else |
11504 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
11505 | fi |
11506 | ||
3a35eeb3 PB |
11507 | else |
11508 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
11509 | fi |
11510 | ||
11511 | ||
11512 | ||
11513 | ||
11514 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11515 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11517 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11518 | if test -x $with_build_time_tools/lipo; then |
11519 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11520 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
11521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11522 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 11523 | else |
81ecdfbb RW |
11524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11525 | $as_echo "no" >&6; } | |
3a35eeb3 | 11526 | fi |
2429c060 PB |
11527 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11528 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
11529 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11530 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
11531 | fi |
11532 | fi | |
9a819804 AO |
11533 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11534 | # Extract the first word of "lipo", so it can be a program name with args. | |
11535 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
11536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11537 | $as_echo_n "checking for $ac_word... " >&6; } | |
11538 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11539 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11540 | else |
11541 | case $LIPO_FOR_TARGET in | |
11542 | [\\/]* | ?:[\\/]*) | |
11543 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11544 | ;; | |
11545 | *) | |
11546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11547 | for as_dir in $gcc_cv_tool_dirs | |
11548 | do | |
11549 | IFS=$as_save_IFS | |
11550 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11551 | for ac_exec_ext in '' $ac_executable_extensions; do |
11552 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11553 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11554 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11555 | break 2 |
11556 | fi | |
11557 | done | |
81ecdfbb RW |
11558 | done |
11559 | IFS=$as_save_IFS | |
9a819804 AO |
11560 | |
11561 | ;; | |
11562 | esac | |
11563 | fi | |
11564 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 11565 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11567 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 11568 | else |
81ecdfbb RW |
11569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11570 | $as_echo "no" >&6; } | |
9a819804 AO |
11571 | fi |
11572 | ||
81ecdfbb | 11573 | |
9a819804 AO |
11574 | fi |
11575 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11576 | ||
11577 | ||
11578 | if test -n "$LIPO_FOR_TARGET"; then | |
11579 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11580 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11581 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11582 | fi | |
11583 | ||
11584 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11585 | for ncn_progname in lipo; do | |
11586 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11587 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11589 | $as_echo_n "checking for $ac_word... " >&6; } | |
11590 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11591 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11592 | else |
9a819804 AO |
11593 | if test -n "$LIPO_FOR_TARGET"; then |
11594 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11595 | else | |
11596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11597 | for as_dir in $PATH | |
c6b750e1 DJ |
11598 | do |
11599 | IFS=$as_save_IFS | |
11600 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11601 | for ac_exec_ext in '' $ac_executable_extensions; do |
11602 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11603 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11604 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11605 | break 2 |
11606 | fi | |
11607 | done | |
81ecdfbb RW |
11608 | done |
11609 | IFS=$as_save_IFS | |
c6b750e1 | 11610 | |
2429c060 | 11611 | fi |
9a819804 AO |
11612 | fi |
11613 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 11614 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11616 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11617 | else |
81ecdfbb RW |
11618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11619 | $as_echo "no" >&6; } | |
2429c060 PB |
11620 | fi |
11621 | ||
81ecdfbb | 11622 | |
9a819804 | 11623 | done |
2429c060 | 11624 | fi |
9a819804 AO |
11625 | |
11626 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11627 | for ncn_progname in lipo; do |
81ecdfbb RW |
11628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11629 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11630 | if test -x $with_build_time_tools/${ncn_progname}; then |
11631 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11633 | $as_echo "yes" >&6; } | |
2429c060 PB |
11634 | break |
11635 | else | |
81ecdfbb RW |
11636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11637 | $as_echo "no" >&6; } | |
2429c060 PB |
11638 | fi |
11639 | done | |
11640 | fi | |
11641 | ||
11642 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11643 | for ncn_progname in lipo; do | |
11644 | if test -n "$ncn_target_tool_prefix"; then | |
11645 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11646 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11648 | $as_echo_n "checking for $ac_word... " >&6; } | |
11649 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11650 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11651 | else |
11652 | if test -n "$LIPO_FOR_TARGET"; then | |
11653 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11654 | else | |
c6b750e1 DJ |
11655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11656 | for as_dir in $PATH | |
11657 | do | |
11658 | IFS=$as_save_IFS | |
11659 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11660 | for ac_exec_ext in '' $ac_executable_extensions; do |
11661 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11662 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11664 | break 2 |
11665 | fi | |
11666 | done | |
81ecdfbb RW |
11667 | done |
11668 | IFS=$as_save_IFS | |
c6b750e1 | 11669 | |
2429c060 PB |
11670 | fi |
11671 | fi | |
c6b750e1 | 11672 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11673 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11675 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11676 | else |
81ecdfbb RW |
11677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11678 | $as_echo "no" >&6; } | |
2429c060 PB |
11679 | fi |
11680 | ||
81ecdfbb | 11681 | |
2429c060 PB |
11682 | fi |
11683 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11684 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11685 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11687 | $as_echo_n "checking for $ac_word... " >&6; } | |
11688 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11689 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11690 | else |
11691 | if test -n "$LIPO_FOR_TARGET"; then | |
11692 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11693 | else | |
c6b750e1 DJ |
11694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11695 | for as_dir in $PATH | |
11696 | do | |
11697 | IFS=$as_save_IFS | |
11698 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11699 | for ac_exec_ext in '' $ac_executable_extensions; do |
11700 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11701 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11702 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11703 | break 2 |
11704 | fi | |
11705 | done | |
81ecdfbb RW |
11706 | done |
11707 | IFS=$as_save_IFS | |
c6b750e1 | 11708 | |
2429c060 PB |
11709 | fi |
11710 | fi | |
c6b750e1 | 11711 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11712 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11714 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11715 | else |
81ecdfbb RW |
11716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11717 | $as_echo "no" >&6; } | |
2429c060 | 11718 | fi |
c6b750e1 | 11719 | |
81ecdfbb | 11720 | |
2429c060 PB |
11721 | fi |
11722 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
11723 | done | |
11724 | fi | |
c6b750e1 | 11725 | |
2429c060 PB |
11726 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
11727 | set dummy lipo | |
11728 | if test $build = $target ; then | |
11729 | LIPO_FOR_TARGET="$2" | |
11730 | else | |
11731 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11732 | fi | |
d3f5afc4 MS |
11733 | else |
11734 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
11735 | fi |
11736 | ||
3a35eeb3 PB |
11737 | else |
11738 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
11739 | fi |
11740 | ||
11741 | ||
11742 | ||
11743 | ||
11744 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11745 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
11747 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11748 | if test -x $with_build_time_tools/nm; then |
11749 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
11750 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
11751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
11752 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 11753 | else |
81ecdfbb RW |
11754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11755 | $as_echo "no" >&6; } | |
3a35eeb3 | 11756 | fi |
2429c060 PB |
11757 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11758 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
11759 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
11760 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
11761 | fi |
11762 | fi | |
c6b750e1 | 11763 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11764 | # Extract the first word of "nm", so it can be a program name with args. |
11765 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
11766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11767 | $as_echo_n "checking for $ac_word... " >&6; } | |
11768 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
11769 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11770 | else |
c6b750e1 DJ |
11771 | case $NM_FOR_TARGET in |
11772 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11773 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
11774 | ;; | |
2429c060 | 11775 | *) |
c6b750e1 DJ |
11776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11777 | for as_dir in $gcc_cv_tool_dirs | |
11778 | do | |
11779 | IFS=$as_save_IFS | |
11780 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11781 | for ac_exec_ext in '' $ac_executable_extensions; do |
11782 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11783 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11785 | break 2 |
11786 | fi | |
11787 | done | |
81ecdfbb RW |
11788 | done |
11789 | IFS=$as_save_IFS | |
c6b750e1 | 11790 | |
2429c060 PB |
11791 | ;; |
11792 | esac | |
11793 | fi | |
c6b750e1 | 11794 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 11795 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
11796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11797 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 11798 | else |
81ecdfbb RW |
11799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11800 | $as_echo "no" >&6; } | |
2429c060 PB |
11801 | fi |
11802 | ||
81ecdfbb | 11803 | |
2429c060 PB |
11804 | fi |
11805 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
11806 | |
11807 | ||
11808 | if test -n "$NM_FOR_TARGET"; then | |
11809 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
11810 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11811 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11812 | fi | |
11813 | ||
11814 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11815 | for ncn_progname in nm; do | |
11816 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11817 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11819 | $as_echo_n "checking for $ac_word... " >&6; } | |
11820 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11821 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11822 | else |
11823 | if test -n "$NM_FOR_TARGET"; then | |
11824 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
11825 | else | |
11826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11827 | for as_dir in $PATH | |
11828 | do | |
11829 | IFS=$as_save_IFS | |
11830 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11831 | for ac_exec_ext in '' $ac_executable_extensions; do |
11832 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11833 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11834 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11835 | break 2 |
11836 | fi | |
11837 | done | |
81ecdfbb RW |
11838 | done |
11839 | IFS=$as_save_IFS | |
9a819804 AO |
11840 | |
11841 | fi | |
11842 | fi | |
11843 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11844 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
11845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11846 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 11847 | else |
81ecdfbb RW |
11848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11849 | $as_echo "no" >&6; } | |
9a819804 AO |
11850 | fi |
11851 | ||
81ecdfbb | 11852 | |
9a819804 AO |
11853 | done |
11854 | fi | |
11855 | ||
11856 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11857 | for ncn_progname in nm; do |
81ecdfbb RW |
11858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11859 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11860 | if test -x $with_build_time_tools/${ncn_progname}; then |
11861 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11863 | $as_echo "yes" >&6; } | |
2429c060 PB |
11864 | break |
11865 | else | |
81ecdfbb RW |
11866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11867 | $as_echo "no" >&6; } | |
2429c060 PB |
11868 | fi |
11869 | done | |
11870 | fi | |
11871 | ||
11872 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
11873 | for ncn_progname in nm; do | |
11874 | if test -n "$ncn_target_tool_prefix"; then | |
11875 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 11876 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11878 | $as_echo_n "checking for $ac_word... " >&6; } | |
11879 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11880 | $as_echo_n "(cached) " >&6 | |
859789af | 11881 | else |
55db4b87 PB |
11882 | if test -n "$NM_FOR_TARGET"; then |
11883 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 11884 | else |
c6b750e1 DJ |
11885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11886 | for as_dir in $PATH | |
11887 | do | |
11888 | IFS=$as_save_IFS | |
11889 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11890 | for ac_exec_ext in '' $ac_executable_extensions; do |
11891 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11892 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11894 | break 2 |
11895 | fi | |
11896 | done | |
81ecdfbb RW |
11897 | done |
11898 | IFS=$as_save_IFS | |
c6b750e1 | 11899 | |
859789af AC |
11900 | fi |
11901 | fi | |
c6b750e1 | 11902 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 11903 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
11904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11905 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 11906 | else |
81ecdfbb RW |
11907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11908 | $as_echo "no" >&6; } | |
859789af AC |
11909 | fi |
11910 | ||
81ecdfbb | 11911 | |
2429c060 PB |
11912 | fi |
11913 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
11914 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 11915 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11917 | $as_echo_n "checking for $ac_word... " >&6; } | |
11918 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11919 | $as_echo_n "(cached) " >&6 | |
859789af | 11920 | else |
05cbd757 PB |
11921 | if test -n "$NM_FOR_TARGET"; then |
11922 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 11923 | else |
c6b750e1 DJ |
11924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11925 | for as_dir in $PATH | |
11926 | do | |
11927 | IFS=$as_save_IFS | |
11928 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11929 | for ac_exec_ext in '' $ac_executable_extensions; do |
11930 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11931 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11933 | break 2 |
11934 | fi | |
11935 | done | |
81ecdfbb RW |
11936 | done |
11937 | IFS=$as_save_IFS | |
c6b750e1 | 11938 | |
859789af AC |
11939 | fi |
11940 | fi | |
c6b750e1 | 11941 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 11942 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
11943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11944 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 11945 | else |
81ecdfbb RW |
11946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11947 | $as_echo "no" >&6; } | |
859789af | 11948 | fi |
c6b750e1 | 11949 | |
81ecdfbb | 11950 | |
2429c060 PB |
11951 | fi |
11952 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
11953 | done | |
11954 | fi | |
c6b750e1 | 11955 | |
05cbd757 PB |
11956 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
11957 | set dummy nm | |
11958 | if test $build = $target ; then | |
11959 | NM_FOR_TARGET="$2" | |
859789af | 11960 | else |
05cbd757 | 11961 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 11962 | fi |
d3f5afc4 MS |
11963 | else |
11964 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
11965 | fi |
11966 | ||
3a35eeb3 PB |
11967 | else |
11968 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
11969 | fi |
11970 | ||
11971 | ||
11972 | ||
11973 | ||
11974 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
11975 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
11977 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11978 | if test -x $with_build_time_tools/objdump; then |
11979 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
11980 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
11981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
11982 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 11983 | else |
81ecdfbb RW |
11984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11985 | $as_echo "no" >&6; } | |
3a35eeb3 | 11986 | fi |
2429c060 PB |
11987 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11988 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
11989 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
11990 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
11991 | fi |
11992 | fi | |
c6b750e1 | 11993 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11994 | # Extract the first word of "objdump", so it can be a program name with args. |
11995 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
11996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11997 | $as_echo_n "checking for $ac_word... " >&6; } | |
11998 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
11999 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12000 | else |
c6b750e1 DJ |
12001 | case $OBJDUMP_FOR_TARGET in |
12002 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12003 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12004 | ;; | |
2429c060 | 12005 | *) |
c6b750e1 DJ |
12006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12007 | for as_dir in $gcc_cv_tool_dirs | |
12008 | do | |
12009 | IFS=$as_save_IFS | |
12010 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12011 | for ac_exec_ext in '' $ac_executable_extensions; do |
12012 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12013 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12015 | break 2 |
12016 | fi | |
12017 | done | |
81ecdfbb RW |
12018 | done |
12019 | IFS=$as_save_IFS | |
c6b750e1 | 12020 | |
2429c060 PB |
12021 | ;; |
12022 | esac | |
12023 | fi | |
c6b750e1 | 12024 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 12025 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12027 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 12028 | else |
81ecdfbb RW |
12029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12030 | $as_echo "no" >&6; } | |
2429c060 PB |
12031 | fi |
12032 | ||
81ecdfbb | 12033 | |
2429c060 PB |
12034 | fi |
12035 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
12036 | |
12037 | ||
12038 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12039 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12040 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12041 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12042 | fi | |
12043 | ||
12044 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12045 | for ncn_progname in objdump; do | |
12046 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12047 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12049 | $as_echo_n "checking for $ac_word... " >&6; } | |
12050 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12051 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12052 | else |
12053 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12054 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12055 | else | |
12056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12057 | for as_dir in $PATH | |
12058 | do | |
12059 | IFS=$as_save_IFS | |
12060 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12061 | for ac_exec_ext in '' $ac_executable_extensions; do |
12062 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12063 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12065 | break 2 |
12066 | fi | |
12067 | done | |
81ecdfbb RW |
12068 | done |
12069 | IFS=$as_save_IFS | |
9a819804 AO |
12070 | |
12071 | fi | |
12072 | fi | |
12073 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12074 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
12075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12076 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 12077 | else |
81ecdfbb RW |
12078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12079 | $as_echo "no" >&6; } | |
9a819804 AO |
12080 | fi |
12081 | ||
81ecdfbb | 12082 | |
9a819804 AO |
12083 | done |
12084 | fi | |
12085 | ||
12086 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12087 | for ncn_progname in objdump; do |
81ecdfbb RW |
12088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12089 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12090 | if test -x $with_build_time_tools/${ncn_progname}; then |
12091 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12093 | $as_echo "yes" >&6; } | |
2429c060 PB |
12094 | break |
12095 | else | |
81ecdfbb RW |
12096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12097 | $as_echo "no" >&6; } | |
2429c060 PB |
12098 | fi |
12099 | done | |
12100 | fi | |
12101 | ||
12102 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12103 | for ncn_progname in objdump; do | |
12104 | if test -n "$ncn_target_tool_prefix"; then | |
12105 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12106 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12108 | $as_echo_n "checking for $ac_word... " >&6; } | |
12109 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12110 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12111 | else |
12112 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12113 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12114 | else | |
c6b750e1 DJ |
12115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12116 | for as_dir in $PATH | |
12117 | do | |
12118 | IFS=$as_save_IFS | |
12119 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12120 | for ac_exec_ext in '' $ac_executable_extensions; do |
12121 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12122 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12123 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12124 | break 2 |
12125 | fi | |
12126 | done | |
81ecdfbb RW |
12127 | done |
12128 | IFS=$as_save_IFS | |
c6b750e1 | 12129 | |
5ae72758 DJ |
12130 | fi |
12131 | fi | |
c6b750e1 | 12132 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12133 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12135 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12136 | else |
81ecdfbb RW |
12137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12138 | $as_echo "no" >&6; } | |
5ae72758 DJ |
12139 | fi |
12140 | ||
81ecdfbb | 12141 | |
2429c060 PB |
12142 | fi |
12143 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12144 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12145 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12147 | $as_echo_n "checking for $ac_word... " >&6; } | |
12148 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12149 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12150 | else |
12151 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12152 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12153 | else | |
c6b750e1 DJ |
12154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12155 | for as_dir in $PATH | |
12156 | do | |
12157 | IFS=$as_save_IFS | |
12158 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12159 | for ac_exec_ext in '' $ac_executable_extensions; do |
12160 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12161 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12162 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12163 | break 2 |
12164 | fi | |
12165 | done | |
81ecdfbb RW |
12166 | done |
12167 | IFS=$as_save_IFS | |
c6b750e1 | 12168 | |
5ae72758 DJ |
12169 | fi |
12170 | fi | |
c6b750e1 | 12171 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12172 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12174 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12175 | else |
81ecdfbb RW |
12176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12177 | $as_echo "no" >&6; } | |
5ae72758 | 12178 | fi |
c6b750e1 | 12179 | |
81ecdfbb | 12180 | |
2429c060 PB |
12181 | fi |
12182 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12183 | done | |
12184 | fi | |
c6b750e1 | 12185 | |
5ae72758 DJ |
12186 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12187 | set dummy objdump | |
12188 | if test $build = $target ; then | |
12189 | OBJDUMP_FOR_TARGET="$2" | |
12190 | else | |
12191 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12192 | fi | |
d3f5afc4 MS |
12193 | else |
12194 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
12195 | fi |
12196 | ||
3a35eeb3 PB |
12197 | else |
12198 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
12199 | fi |
12200 | ||
12201 | ||
12202 | ||
12203 | ||
12204 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12205 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12207 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12208 | if test -x $with_build_time_tools/ranlib; then |
12209 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12210 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
12211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12212 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 12213 | else |
81ecdfbb RW |
12214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12215 | $as_echo "no" >&6; } | |
3a35eeb3 | 12216 | fi |
2429c060 PB |
12217 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12218 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
12219 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12220 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
12221 | fi |
12222 | fi | |
c6b750e1 | 12223 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12224 | # Extract the first word of "ranlib", so it can be a program name with args. |
12225 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
12226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12227 | $as_echo_n "checking for $ac_word... " >&6; } | |
12228 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12229 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12230 | else |
c6b750e1 DJ |
12231 | case $RANLIB_FOR_TARGET in |
12232 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12233 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12234 | ;; | |
2429c060 | 12235 | *) |
c6b750e1 DJ |
12236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12237 | for as_dir in $gcc_cv_tool_dirs | |
12238 | do | |
12239 | IFS=$as_save_IFS | |
12240 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12241 | for ac_exec_ext in '' $ac_executable_extensions; do |
12242 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12243 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12244 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12245 | break 2 |
12246 | fi | |
12247 | done | |
81ecdfbb RW |
12248 | done |
12249 | IFS=$as_save_IFS | |
c6b750e1 | 12250 | |
2429c060 PB |
12251 | ;; |
12252 | esac | |
12253 | fi | |
c6b750e1 | 12254 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 12255 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12257 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 12258 | else |
81ecdfbb RW |
12259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12260 | $as_echo "no" >&6; } | |
2429c060 PB |
12261 | fi |
12262 | ||
81ecdfbb | 12263 | |
2429c060 PB |
12264 | fi |
12265 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
12266 | |
12267 | ||
12268 | if test -n "$RANLIB_FOR_TARGET"; then | |
12269 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12270 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12271 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12272 | fi | |
12273 | ||
12274 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12275 | for ncn_progname in ranlib; do | |
12276 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12277 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12279 | $as_echo_n "checking for $ac_word... " >&6; } | |
12280 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12281 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12282 | else |
12283 | if test -n "$RANLIB_FOR_TARGET"; then | |
12284 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12285 | else | |
12286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12287 | for as_dir in $PATH | |
12288 | do | |
12289 | IFS=$as_save_IFS | |
12290 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12291 | for ac_exec_ext in '' $ac_executable_extensions; do |
12292 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12293 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12294 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12295 | break 2 |
12296 | fi | |
12297 | done | |
81ecdfbb RW |
12298 | done |
12299 | IFS=$as_save_IFS | |
9a819804 AO |
12300 | |
12301 | fi | |
12302 | fi | |
12303 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12304 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
12305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12306 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 12307 | else |
81ecdfbb RW |
12308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12309 | $as_echo "no" >&6; } | |
9a819804 AO |
12310 | fi |
12311 | ||
81ecdfbb | 12312 | |
9a819804 AO |
12313 | done |
12314 | fi | |
12315 | ||
12316 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12317 | for ncn_progname in ranlib; do |
81ecdfbb RW |
12318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12319 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12320 | if test -x $with_build_time_tools/${ncn_progname}; then |
12321 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12323 | $as_echo "yes" >&6; } | |
2429c060 PB |
12324 | break |
12325 | else | |
81ecdfbb RW |
12326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12327 | $as_echo "no" >&6; } | |
2429c060 PB |
12328 | fi |
12329 | done | |
12330 | fi | |
12331 | ||
12332 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12333 | for ncn_progname in ranlib; do | |
12334 | if test -n "$ncn_target_tool_prefix"; then | |
12335 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12336 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12338 | $as_echo_n "checking for $ac_word... " >&6; } | |
12339 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12340 | $as_echo_n "(cached) " >&6 | |
859789af | 12341 | else |
55db4b87 PB |
12342 | if test -n "$RANLIB_FOR_TARGET"; then |
12343 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12344 | else |
c6b750e1 DJ |
12345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12346 | for as_dir in $PATH | |
12347 | do | |
12348 | IFS=$as_save_IFS | |
12349 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12350 | for ac_exec_ext in '' $ac_executable_extensions; do |
12351 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12352 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12353 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12354 | break 2 |
12355 | fi | |
12356 | done | |
81ecdfbb RW |
12357 | done |
12358 | IFS=$as_save_IFS | |
c6b750e1 | 12359 | |
859789af AC |
12360 | fi |
12361 | fi | |
c6b750e1 | 12362 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 12363 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12365 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12366 | else |
81ecdfbb RW |
12367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12368 | $as_echo "no" >&6; } | |
859789af AC |
12369 | fi |
12370 | ||
81ecdfbb | 12371 | |
2429c060 PB |
12372 | fi |
12373 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12374 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12375 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12377 | $as_echo_n "checking for $ac_word... " >&6; } | |
12378 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12379 | $as_echo_n "(cached) " >&6 | |
859789af | 12380 | else |
05cbd757 PB |
12381 | if test -n "$RANLIB_FOR_TARGET"; then |
12382 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12383 | else |
c6b750e1 DJ |
12384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12385 | for as_dir in $PATH | |
12386 | do | |
12387 | IFS=$as_save_IFS | |
12388 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12389 | for ac_exec_ext in '' $ac_executable_extensions; do |
12390 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12391 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12392 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12393 | break 2 |
12394 | fi | |
12395 | done | |
81ecdfbb RW |
12396 | done |
12397 | IFS=$as_save_IFS | |
c6b750e1 | 12398 | |
859789af AC |
12399 | fi |
12400 | fi | |
c6b750e1 | 12401 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 12402 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12404 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12405 | else |
81ecdfbb RW |
12406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12407 | $as_echo "no" >&6; } | |
859789af | 12408 | fi |
c6b750e1 | 12409 | |
81ecdfbb | 12410 | |
2429c060 PB |
12411 | fi |
12412 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12413 | done | |
12414 | fi | |
c6b750e1 | 12415 | |
2429c060 PB |
12416 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12417 | set dummy ranlib | |
12418 | if test $build = $target ; then | |
12419 | RANLIB_FOR_TARGET="$2" | |
12420 | else | |
12421 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 12422 | fi |
d3f5afc4 MS |
12423 | else |
12424 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 12425 | fi |
05cbd757 | 12426 | |
3a35eeb3 PB |
12427 | else |
12428 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
12429 | fi |
12430 | ||
2429c060 PB |
12431 | |
12432 | ||
12433 | ||
12434 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
12435 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
12437 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12438 | if test -x $with_build_time_tools/strip; then |
12439 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
12440 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
12441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
12442 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12443 | else |
81ecdfbb RW |
12444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12445 | $as_echo "no" >&6; } | |
3a35eeb3 | 12446 | fi |
2429c060 PB |
12447 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12448 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
12449 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
12450 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
12451 | fi |
12452 | fi | |
c6b750e1 | 12453 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12454 | # Extract the first word of "strip", so it can be a program name with args. |
12455 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
12456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12457 | $as_echo_n "checking for $ac_word... " >&6; } | |
12458 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
12459 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12460 | else |
c6b750e1 DJ |
12461 | case $STRIP_FOR_TARGET in |
12462 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12463 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
12464 | ;; | |
2429c060 | 12465 | *) |
c6b750e1 DJ |
12466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12467 | for as_dir in $gcc_cv_tool_dirs | |
12468 | do | |
12469 | IFS=$as_save_IFS | |
12470 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12471 | for ac_exec_ext in '' $ac_executable_extensions; do |
12472 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12473 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12474 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12475 | break 2 |
12476 | fi | |
12477 | done | |
81ecdfbb RW |
12478 | done |
12479 | IFS=$as_save_IFS | |
c6b750e1 | 12480 | |
2429c060 PB |
12481 | ;; |
12482 | esac | |
12483 | fi | |
c6b750e1 | 12484 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 12485 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
12486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12487 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 12488 | else |
81ecdfbb RW |
12489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12490 | $as_echo "no" >&6; } | |
2429c060 PB |
12491 | fi |
12492 | ||
81ecdfbb | 12493 | |
2429c060 PB |
12494 | fi |
12495 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
12496 | |
12497 | ||
12498 | if test -n "$STRIP_FOR_TARGET"; then | |
12499 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
12500 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12501 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12502 | fi | |
12503 | ||
12504 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12505 | for ncn_progname in strip; do | |
12506 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12507 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12509 | $as_echo_n "checking for $ac_word... " >&6; } | |
12510 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12511 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12512 | else |
12513 | if test -n "$STRIP_FOR_TARGET"; then | |
12514 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12515 | else | |
12516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12517 | for as_dir in $PATH | |
12518 | do | |
12519 | IFS=$as_save_IFS | |
12520 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12521 | for ac_exec_ext in '' $ac_executable_extensions; do |
12522 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12523 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12524 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12525 | break 2 |
12526 | fi | |
12527 | done | |
81ecdfbb RW |
12528 | done |
12529 | IFS=$as_save_IFS | |
9a819804 AO |
12530 | |
12531 | fi | |
12532 | fi | |
12533 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12534 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
12535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12536 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 12537 | else |
81ecdfbb RW |
12538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12539 | $as_echo "no" >&6; } | |
9a819804 AO |
12540 | fi |
12541 | ||
81ecdfbb | 12542 | |
9a819804 AO |
12543 | done |
12544 | fi | |
12545 | ||
12546 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12547 | for ncn_progname in strip; do |
81ecdfbb RW |
12548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12549 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12550 | if test -x $with_build_time_tools/${ncn_progname}; then |
12551 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12553 | $as_echo "yes" >&6; } | |
2429c060 PB |
12554 | break |
12555 | else | |
81ecdfbb RW |
12556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12557 | $as_echo "no" >&6; } | |
2429c060 PB |
12558 | fi |
12559 | done | |
12560 | fi | |
12561 | ||
12562 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12563 | for ncn_progname in strip; do | |
12564 | if test -n "$ncn_target_tool_prefix"; then | |
12565 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12566 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12568 | $as_echo_n "checking for $ac_word... " >&6; } | |
12569 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12570 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
12571 | else |
12572 | if test -n "$STRIP_FOR_TARGET"; then | |
12573 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
12574 | else |
12575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12576 | for as_dir in $PATH | |
12577 | do | |
12578 | IFS=$as_save_IFS | |
12579 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12580 | for ac_exec_ext in '' $ac_executable_extensions; do |
12581 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12582 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12583 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12584 | break 2 |
12585 | fi | |
12586 | done | |
81ecdfbb RW |
12587 | done |
12588 | IFS=$as_save_IFS | |
c6b750e1 | 12589 | |
7e0f7140 GK |
12590 | fi |
12591 | fi | |
c6b750e1 | 12592 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 12593 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
12594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12595 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 12596 | else |
81ecdfbb RW |
12597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12598 | $as_echo "no" >&6; } | |
7e0f7140 GK |
12599 | fi |
12600 | ||
81ecdfbb | 12601 | |
2429c060 PB |
12602 | fi |
12603 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
12604 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12605 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12607 | $as_echo_n "checking for $ac_word... " >&6; } | |
12608 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12609 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
12610 | else |
12611 | if test -n "$STRIP_FOR_TARGET"; then | |
12612 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12613 | else | |
c6b750e1 DJ |
12614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12615 | for as_dir in $PATH | |
12616 | do | |
12617 | IFS=$as_save_IFS | |
12618 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12619 | for ac_exec_ext in '' $ac_executable_extensions; do |
12620 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12621 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12623 | break 2 |
12624 | fi | |
12625 | done | |
81ecdfbb RW |
12626 | done |
12627 | IFS=$as_save_IFS | |
c6b750e1 | 12628 | |
7e0f7140 GK |
12629 | fi |
12630 | fi | |
c6b750e1 | 12631 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 12632 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
12633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12634 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 12635 | else |
81ecdfbb RW |
12636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12637 | $as_echo "no" >&6; } | |
7e0f7140 | 12638 | fi |
c6b750e1 | 12639 | |
81ecdfbb | 12640 | |
2429c060 PB |
12641 | fi |
12642 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
12643 | done | |
12644 | fi | |
c6b750e1 | 12645 | |
7e0f7140 GK |
12646 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
12647 | set dummy strip | |
12648 | if test $build = $target ; then | |
12649 | STRIP_FOR_TARGET="$2" | |
12650 | else | |
12651 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12652 | fi | |
d3f5afc4 MS |
12653 | else |
12654 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
12655 | fi |
12656 | ||
3a35eeb3 PB |
12657 | else |
12658 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
12659 | fi |
12660 | ||
12661 | ||
12662 | ||
12663 | ||
12664 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
12665 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
12667 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12668 | if test -x $with_build_time_tools/windres; then |
12669 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
12670 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
12671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
12672 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 12673 | else |
81ecdfbb RW |
12674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12675 | $as_echo "no" >&6; } | |
3a35eeb3 | 12676 | fi |
2429c060 PB |
12677 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12678 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
12679 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
12680 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
12681 | fi |
12682 | fi | |
c6b750e1 | 12683 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12684 | # Extract the first word of "windres", so it can be a program name with args. |
12685 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
12686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12687 | $as_echo_n "checking for $ac_word... " >&6; } | |
12688 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
12689 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12690 | else |
c6b750e1 DJ |
12691 | case $WINDRES_FOR_TARGET in |
12692 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12693 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
12694 | ;; | |
2429c060 | 12695 | *) |
c6b750e1 DJ |
12696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12697 | for as_dir in $gcc_cv_tool_dirs | |
12698 | do | |
12699 | IFS=$as_save_IFS | |
12700 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12701 | for ac_exec_ext in '' $ac_executable_extensions; do |
12702 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12703 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12705 | break 2 |
12706 | fi | |
12707 | done | |
81ecdfbb RW |
12708 | done |
12709 | IFS=$as_save_IFS | |
c6b750e1 | 12710 | |
2429c060 PB |
12711 | ;; |
12712 | esac | |
12713 | fi | |
c6b750e1 | 12714 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 12715 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
12716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12717 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 12718 | else |
81ecdfbb RW |
12719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12720 | $as_echo "no" >&6; } | |
2429c060 PB |
12721 | fi |
12722 | ||
81ecdfbb | 12723 | |
2429c060 PB |
12724 | fi |
12725 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
12726 | |
12727 | ||
12728 | if test -n "$WINDRES_FOR_TARGET"; then | |
12729 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
12730 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12731 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
12732 | fi | |
12733 | ||
12734 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12735 | for ncn_progname in windres; do | |
12736 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12737 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12739 | $as_echo_n "checking for $ac_word... " >&6; } | |
12740 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12741 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12742 | else |
12743 | if test -n "$WINDRES_FOR_TARGET"; then | |
12744 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
12745 | else | |
12746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12747 | for as_dir in $PATH | |
12748 | do | |
12749 | IFS=$as_save_IFS | |
12750 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12751 | for ac_exec_ext in '' $ac_executable_extensions; do |
12752 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12753 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12755 | break 2 |
12756 | fi | |
12757 | done | |
81ecdfbb RW |
12758 | done |
12759 | IFS=$as_save_IFS | |
9a819804 AO |
12760 | |
12761 | fi | |
12762 | fi | |
12763 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
12764 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
12765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12766 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 12767 | else |
81ecdfbb RW |
12768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12769 | $as_echo "no" >&6; } | |
9a819804 AO |
12770 | fi |
12771 | ||
81ecdfbb | 12772 | |
9a819804 AO |
12773 | done |
12774 | fi | |
12775 | ||
12776 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12777 | for ncn_progname in windres; do |
81ecdfbb RW |
12778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12779 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12780 | if test -x $with_build_time_tools/${ncn_progname}; then |
12781 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12783 | $as_echo "yes" >&6; } | |
2429c060 PB |
12784 | break |
12785 | else | |
81ecdfbb RW |
12786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12787 | $as_echo "no" >&6; } | |
2429c060 PB |
12788 | fi |
12789 | done | |
12790 | fi | |
12791 | ||
12792 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12793 | for ncn_progname in windres; do | |
12794 | if test -n "$ncn_target_tool_prefix"; then | |
12795 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12796 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12798 | $as_echo_n "checking for $ac_word... " >&6; } | |
12799 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12800 | $as_echo_n "(cached) " >&6 | |
859789af | 12801 | else |
55db4b87 PB |
12802 | if test -n "$WINDRES_FOR_TARGET"; then |
12803 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 12804 | else |
c6b750e1 DJ |
12805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12806 | for as_dir in $PATH | |
12807 | do | |
12808 | IFS=$as_save_IFS | |
12809 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12810 | for ac_exec_ext in '' $ac_executable_extensions; do |
12811 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12812 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12814 | break 2 |
12815 | fi | |
12816 | done | |
81ecdfbb RW |
12817 | done |
12818 | IFS=$as_save_IFS | |
c6b750e1 | 12819 | |
859789af AC |
12820 | fi |
12821 | fi | |
c6b750e1 | 12822 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 12823 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
12824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12825 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 12826 | else |
81ecdfbb RW |
12827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12828 | $as_echo "no" >&6; } | |
859789af AC |
12829 | fi |
12830 | ||
81ecdfbb | 12831 | |
2429c060 PB |
12832 | fi |
12833 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
12834 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12835 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12837 | $as_echo_n "checking for $ac_word... " >&6; } | |
12838 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12839 | $as_echo_n "(cached) " >&6 | |
859789af | 12840 | else |
05cbd757 PB |
12841 | if test -n "$WINDRES_FOR_TARGET"; then |
12842 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 12843 | else |
c6b750e1 DJ |
12844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12845 | for as_dir in $PATH | |
12846 | do | |
12847 | IFS=$as_save_IFS | |
12848 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12849 | for ac_exec_ext in '' $ac_executable_extensions; do |
12850 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12851 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12853 | break 2 |
12854 | fi | |
12855 | done | |
81ecdfbb RW |
12856 | done |
12857 | IFS=$as_save_IFS | |
c6b750e1 | 12858 | |
859789af AC |
12859 | fi |
12860 | fi | |
c6b750e1 | 12861 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 12862 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
12863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12864 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 12865 | else |
81ecdfbb RW |
12866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12867 | $as_echo "no" >&6; } | |
859789af | 12868 | fi |
c6b750e1 | 12869 | |
81ecdfbb | 12870 | |
2429c060 PB |
12871 | fi |
12872 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
12873 | done | |
12874 | fi | |
c6b750e1 | 12875 | |
05cbd757 PB |
12876 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
12877 | set dummy windres | |
12878 | if test $build = $target ; then | |
12879 | WINDRES_FOR_TARGET="$2" | |
859789af | 12880 | else |
05cbd757 | 12881 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 12882 | fi |
d3f5afc4 MS |
12883 | else |
12884 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
12885 | fi |
12886 | ||
3a35eeb3 PB |
12887 | else |
12888 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
12889 | fi |
12890 | ||
852e5f18 | 12891 | |
0c24b341 NC |
12892 | |
12893 | ||
12894 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
12895 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
12897 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
12898 | if test -x $with_build_time_tools/windmc; then |
12899 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
12900 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
12901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
12902 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 12903 | else |
81ecdfbb RW |
12904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12905 | $as_echo "no" >&6; } | |
0c24b341 NC |
12906 | fi |
12907 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12908 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
12909 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
12910 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
12911 | fi | |
12912 | fi | |
12913 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12914 | # Extract the first word of "windmc", so it can be a program name with args. | |
12915 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
12916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12917 | $as_echo_n "checking for $ac_word... " >&6; } | |
12918 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
12919 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
12920 | else |
12921 | case $WINDMC_FOR_TARGET in | |
12922 | [\\/]* | ?:[\\/]*) | |
12923 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
12924 | ;; | |
12925 | *) | |
12926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12927 | for as_dir in $gcc_cv_tool_dirs | |
12928 | do | |
12929 | IFS=$as_save_IFS | |
12930 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12931 | for ac_exec_ext in '' $ac_executable_extensions; do |
12932 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 12933 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12934 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
12935 | break 2 |
12936 | fi | |
12937 | done | |
81ecdfbb RW |
12938 | done |
12939 | IFS=$as_save_IFS | |
0c24b341 NC |
12940 | |
12941 | ;; | |
12942 | esac | |
12943 | fi | |
12944 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 12945 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
12946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
12947 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 12948 | else |
81ecdfbb RW |
12949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12950 | $as_echo "no" >&6; } | |
0c24b341 NC |
12951 | fi |
12952 | ||
81ecdfbb | 12953 | |
0c24b341 NC |
12954 | fi |
12955 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
12956 | ||
12957 | ||
12958 | if test -n "$WINDMC_FOR_TARGET"; then | |
12959 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
12960 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
12961 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
12962 | fi | |
12963 | ||
12964 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
12965 | for ncn_progname in windmc; do | |
12966 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12967 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12969 | $as_echo_n "checking for $ac_word... " >&6; } | |
12970 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
12971 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
12972 | else |
12973 | if test -n "$WINDMC_FOR_TARGET"; then | |
12974 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
12975 | else | |
12976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12977 | for as_dir in $PATH | |
12978 | do | |
12979 | IFS=$as_save_IFS | |
12980 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12981 | for ac_exec_ext in '' $ac_executable_extensions; do |
12982 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 12983 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
12985 | break 2 |
12986 | fi | |
12987 | done | |
81ecdfbb RW |
12988 | done |
12989 | IFS=$as_save_IFS | |
0c24b341 NC |
12990 | |
12991 | fi | |
12992 | fi | |
12993 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
12994 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
12995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
12996 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 12997 | else |
81ecdfbb RW |
12998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12999 | $as_echo "no" >&6; } | |
0c24b341 NC |
13000 | fi |
13001 | ||
81ecdfbb | 13002 | |
0c24b341 NC |
13003 | done |
13004 | fi | |
13005 | ||
13006 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13007 | for ncn_progname in windmc; do | |
81ecdfbb RW |
13008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13009 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13010 | if test -x $with_build_time_tools/${ncn_progname}; then |
13011 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13013 | $as_echo "yes" >&6; } | |
0c24b341 NC |
13014 | break |
13015 | else | |
81ecdfbb RW |
13016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13017 | $as_echo "no" >&6; } | |
0c24b341 NC |
13018 | fi |
13019 | done | |
13020 | fi | |
13021 | ||
13022 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13023 | for ncn_progname in windmc; do | |
13024 | if test -n "$ncn_target_tool_prefix"; then | |
13025 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13026 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13028 | $as_echo_n "checking for $ac_word... " >&6; } | |
13029 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13030 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13031 | else |
13032 | if test -n "$WINDMC_FOR_TARGET"; then | |
13033 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13034 | else | |
13035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13036 | for as_dir in $PATH | |
13037 | do | |
13038 | IFS=$as_save_IFS | |
13039 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13040 | for ac_exec_ext in '' $ac_executable_extensions; do |
13041 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13042 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13043 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13044 | break 2 |
13045 | fi | |
13046 | done | |
81ecdfbb RW |
13047 | done |
13048 | IFS=$as_save_IFS | |
0c24b341 NC |
13049 | |
13050 | fi | |
13051 | fi | |
13052 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13053 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13055 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13056 | else |
81ecdfbb RW |
13057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13058 | $as_echo "no" >&6; } | |
0c24b341 NC |
13059 | fi |
13060 | ||
81ecdfbb | 13061 | |
0c24b341 NC |
13062 | fi |
13063 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13064 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13065 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13067 | $as_echo_n "checking for $ac_word... " >&6; } | |
13068 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13069 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13070 | else |
13071 | if test -n "$WINDMC_FOR_TARGET"; then | |
13072 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13073 | else | |
13074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13075 | for as_dir in $PATH | |
13076 | do | |
13077 | IFS=$as_save_IFS | |
13078 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13079 | for ac_exec_ext in '' $ac_executable_extensions; do |
13080 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13081 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13082 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13083 | break 2 |
13084 | fi | |
13085 | done | |
81ecdfbb RW |
13086 | done |
13087 | IFS=$as_save_IFS | |
0c24b341 NC |
13088 | |
13089 | fi | |
13090 | fi | |
13091 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13092 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13094 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13095 | else |
81ecdfbb RW |
13096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13097 | $as_echo "no" >&6; } | |
0c24b341 NC |
13098 | fi |
13099 | ||
81ecdfbb | 13100 | |
0c24b341 NC |
13101 | fi |
13102 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13103 | done | |
13104 | fi | |
13105 | ||
13106 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13107 | set dummy windmc | |
13108 | if test $build = $target ; then | |
13109 | WINDMC_FOR_TARGET="$2" | |
13110 | else | |
13111 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13112 | fi | |
13113 | else | |
13114 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
13115 | fi | |
13116 | ||
13117 | else | |
13118 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13119 | fi | |
13120 | ||
13121 | ||
be01d343 PB |
13122 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13123 | ||
81ecdfbb RW |
13124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13125 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 13126 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13127 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13128 | # We already found the complete path | |
b8025f34 | 13129 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13131 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13132 | else |
13133 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13135 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13136 | fi |
be01d343 PB |
13137 | else |
13138 | ok=yes | |
13139 | case " ${configdirs} " in | |
13140 | *" binutils "*) ;; | |
13141 | *) ok=no ;; | |
13142 | esac | |
c6b750e1 | 13143 | |
be01d343 PB |
13144 | if test $ok = yes; then |
13145 | # An in-tree tool is available and we can use it | |
13146 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
13147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13148 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13149 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13150 | # We already found the complete path | |
b8025f34 | 13151 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13153 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13154 | elif test "x$target" = "x$host"; then |
13155 | # We can use an host tool | |
13156 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
13157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13158 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13159 | else |
13160 | # We need a cross tool | |
81ecdfbb RW |
13161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13162 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13163 | fi |
13164 | fi | |
4b900473 | 13165 | |
81ecdfbb RW |
13166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13167 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 13168 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13169 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13170 | # We already found the complete path | |
b8025f34 | 13171 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13173 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13174 | else |
13175 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13177 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13178 | fi |
be01d343 PB |
13179 | else |
13180 | ok=yes | |
13181 | case " ${configdirs} " in | |
13182 | *" gas "*) ;; | |
13183 | *) ok=no ;; | |
13184 | esac | |
c6b750e1 | 13185 | |
be01d343 PB |
13186 | if test $ok = yes; then |
13187 | # An in-tree tool is available and we can use it | |
13188 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
13189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13190 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13191 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13192 | # We already found the complete path | |
b8025f34 | 13193 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13195 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13196 | elif test "x$target" = "x$host"; then |
13197 | # We can use an host tool | |
13198 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
13199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13200 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13201 | else |
13202 | # We need a cross tool | |
81ecdfbb RW |
13203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13204 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13205 | fi |
13206 | fi | |
4b900473 | 13207 | |
81ecdfbb RW |
13208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13209 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 13210 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13211 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13212 | # We already found the complete path | |
b8025f34 | 13213 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13215 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13216 | else |
13217 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13219 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13220 | fi |
be01d343 PB |
13221 | else |
13222 | ok=yes | |
13223 | case " ${configdirs} " in | |
13224 | *" gcc "*) ;; | |
13225 | *) ok=no ;; | |
13226 | esac | |
c6b750e1 | 13227 | |
be01d343 PB |
13228 | if test $ok = yes; then |
13229 | # An in-tree tool is available and we can use it | |
13230 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13232 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13233 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13234 | # We already found the complete path | |
b8025f34 | 13235 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13237 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13238 | elif test "x$target" = "x$host"; then |
13239 | # We can use an host tool | |
13240 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
13241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13242 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13243 | else |
13244 | # We need a cross tool | |
81ecdfbb RW |
13245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13246 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13247 | fi |
13248 | fi | |
4b900473 | 13249 | |
81ecdfbb RW |
13250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13251 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 13252 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13253 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13254 | # We already found the complete path | |
b8025f34 | 13255 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13257 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13258 | else |
13259 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13261 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13262 | fi |
be01d343 PB |
13263 | else |
13264 | ok=yes | |
13265 | case " ${configdirs} " in | |
13266 | *" gcc "*) ;; | |
13267 | *) ok=no ;; | |
13268 | esac | |
13269 | case ,${enable_languages}, in | |
13270 | *,c++,*) ;; | |
13271 | *) ok=no ;; | |
13272 | esac | |
13273 | if test $ok = yes; then | |
13274 | # An in-tree tool is available and we can use it | |
87cda2cf | 13275 | 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 |
13276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13277 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13278 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13279 | # We already found the complete path | |
b8025f34 | 13280 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13282 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13283 | elif test "x$target" = "x$host"; then |
13284 | # We can use an host tool | |
13285 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13287 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13288 | else |
13289 | # We need a cross tool | |
81ecdfbb RW |
13290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13291 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13292 | fi |
13293 | fi | |
4b900473 | 13294 | |
81ecdfbb RW |
13295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13296 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 13297 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13298 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13299 | # We already found the complete path | |
b8025f34 | 13300 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13302 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13303 | else |
13304 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13306 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13307 | fi |
be01d343 PB |
13308 | else |
13309 | ok=yes | |
13310 | case " ${configdirs} " in | |
13311 | *" gcc "*) ;; | |
13312 | *) ok=no ;; | |
13313 | esac | |
13314 | case ,${enable_languages}, in | |
13315 | *,c++,*) ;; | |
13316 | *) ok=no ;; | |
13317 | esac | |
13318 | if test $ok = yes; then | |
13319 | # An in-tree tool is available and we can use it | |
13320 | 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 |
13321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13322 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13323 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13324 | # We already found the complete path | |
b8025f34 | 13325 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13327 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13328 | elif test "x$target" = "x$host"; then |
13329 | # We can use an host tool | |
13330 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13332 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13333 | else |
13334 | # We need a cross tool | |
81ecdfbb RW |
13335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13336 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13337 | fi |
13338 | fi | |
4b900473 | 13339 | |
81ecdfbb RW |
13340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
13341 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 13342 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13343 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13344 | # We already found the complete path | |
b8025f34 | 13345 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13347 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13348 | else |
13349 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13351 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13352 | fi |
be01d343 PB |
13353 | else |
13354 | ok=yes | |
13355 | case " ${configdirs} " in | |
13356 | *" binutils "*) ;; | |
13357 | *) ok=no ;; | |
13358 | esac | |
c6b750e1 | 13359 | |
be01d343 PB |
13360 | if test $ok = yes; then |
13361 | # An in-tree tool is available and we can use it | |
13362 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
13363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13364 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13365 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13366 | # We already found the complete path | |
b8025f34 | 13367 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13369 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13370 | elif test "x$target" = "x$host"; then |
13371 | # We can use an host tool | |
13372 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
13373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13374 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13375 | else |
13376 | # We need a cross tool | |
81ecdfbb RW |
13377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13378 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13379 | fi |
13380 | fi | |
4b900473 | 13381 | |
81ecdfbb RW |
13382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
13383 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 13384 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13385 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13386 | # We already found the complete path | |
b8025f34 | 13387 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
13388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13389 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13390 | else |
13391 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13393 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13394 | fi |
be01d343 PB |
13395 | else |
13396 | ok=yes | |
13397 | case " ${configdirs} " in | |
13398 | *" gcc "*) ;; | |
13399 | *) ok=no ;; | |
13400 | esac | |
c6b750e1 | 13401 | |
be01d343 PB |
13402 | if test $ok = yes; then |
13403 | # An in-tree tool is available and we can use it | |
13404 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13406 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13407 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13408 | # We already found the complete path | |
b8025f34 | 13409 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
13410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13411 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13412 | elif test "x$target" = "x$host"; then |
13413 | # We can use an host tool | |
13414 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
13415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13416 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13417 | else |
13418 | # We need a cross tool | |
81ecdfbb RW |
13419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13420 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13421 | fi |
13422 | fi | |
4b900473 | 13423 | |
81ecdfbb RW |
13424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
13425 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
be01d343 | 13426 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13427 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13428 | # We already found the complete path | |
b8025f34 | 13429 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
13430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13431 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13432 | else |
13433 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13435 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13436 | fi |
be01d343 PB |
13437 | else |
13438 | ok=yes | |
13439 | case " ${configdirs} " in | |
13440 | *" gcc "*) ;; | |
13441 | *) ok=no ;; | |
13442 | esac | |
13443 | case ,${enable_languages}, in | |
13444 | *,java,*) ;; | |
13445 | *) ok=no ;; | |
13446 | esac | |
13447 | if test $ok = yes; then | |
13448 | # An in-tree tool is available and we can use it | |
13449 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13451 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13452 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13453 | # We already found the complete path | |
b8025f34 | 13454 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
13455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13456 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13457 | elif test "x$target" = "x$host"; then |
13458 | # We can use an host tool | |
13459 | GCJ_FOR_TARGET='$(GCJ)' | |
81ecdfbb RW |
13460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13461 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13462 | else |
13463 | # We need a cross tool | |
81ecdfbb RW |
13464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13465 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13466 | fi |
13467 | fi | |
4b900473 | 13468 | |
81ecdfbb RW |
13469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
13470 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 13471 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13472 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13473 | # We already found the complete path | |
b8025f34 | 13474 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
13475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13476 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13477 | else |
13478 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13480 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13481 | fi |
be01d343 PB |
13482 | else |
13483 | ok=yes | |
13484 | case " ${configdirs} " in | |
13485 | *" gcc "*) ;; | |
13486 | *) ok=no ;; | |
13487 | esac | |
13488 | case ,${enable_languages}, in | |
13489 | *,fortran,*) ;; | |
13490 | *) ok=no ;; | |
13491 | esac | |
13492 | if test $ok = yes; then | |
13493 | # An in-tree tool is available and we can use it | |
13494 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13496 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13497 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13498 | # We already found the complete path | |
b8025f34 | 13499 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
13500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13501 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13502 | elif test "x$target" = "x$host"; then |
13503 | # We can use an host tool | |
13504 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
13505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13506 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13507 | else |
13508 | # We need a cross tool | |
81ecdfbb RW |
13509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13510 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13511 | fi |
13512 | fi | |
4b900473 | 13513 | |
e552509b ILT |
13514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
13515 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
13516 | if test "x${build}" != "x${host}" ; then | |
13517 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13518 | # We already found the complete path | |
13519 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13521 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13522 | else | |
13523 | # Canadian cross, just use what we found | |
13524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13525 | $as_echo "pre-installed" >&6; } | |
13526 | fi | |
13527 | else | |
13528 | ok=yes | |
13529 | case " ${configdirs} " in | |
13530 | *" gcc "*) ;; | |
13531 | *) ok=no ;; | |
13532 | esac | |
13533 | case ,${enable_languages}, in | |
13534 | *,go,*) ;; | |
13535 | *) ok=no ;; | |
13536 | esac | |
13537 | if test $ok = yes; then | |
13538 | # An in-tree tool is available and we can use it | |
13539 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
13540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13541 | $as_echo "just compiled" >&6; } | |
13542 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13543 | # We already found the complete path | |
13544 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13546 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13547 | elif test "x$target" = "x$host"; then | |
13548 | # We can use an host tool | |
13549 | GOC_FOR_TARGET='$(GOC)' | |
13550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13551 | $as_echo "host tool" >&6; } | |
13552 | else | |
13553 | # We need a cross tool | |
13554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13555 | $as_echo "pre-installed" >&6; } | |
13556 | fi | |
13557 | fi | |
13558 | ||
81ecdfbb RW |
13559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
13560 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 13561 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13562 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13563 | # We already found the complete path | |
b8025f34 | 13564 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
13565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13566 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13567 | else |
13568 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13570 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13571 | fi |
be01d343 PB |
13572 | else |
13573 | ok=yes | |
13574 | case " ${configdirs} " in | |
13575 | *" ld "*) ;; | |
13576 | *) ok=no ;; | |
13577 | esac | |
c6b750e1 | 13578 | |
be01d343 PB |
13579 | if test $ok = yes; then |
13580 | # An in-tree tool is available and we can use it | |
13581 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
13582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13583 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13584 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13585 | # We already found the complete path | |
b8025f34 | 13586 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
13587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13588 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13589 | elif test "x$target" = "x$host"; then |
13590 | # We can use an host tool | |
13591 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
13592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13593 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13594 | else |
13595 | # We need a cross tool | |
81ecdfbb RW |
13596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13597 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13598 | fi |
13599 | fi | |
4b900473 | 13600 | |
81ecdfbb RW |
13601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
13602 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 13603 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13604 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
13605 | # We already found the complete path | |
b8025f34 | 13606 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
13607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13608 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13609 | else |
13610 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13612 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13613 | fi |
be01d343 | 13614 | else |
2429c060 PB |
13615 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
13616 | # We already found the complete path | |
b8025f34 | 13617 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
13618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13619 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 13620 | elif test "x$target" = "x$host"; then |
be01d343 PB |
13621 | # We can use an host tool |
13622 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
13623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13624 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13625 | else |
13626 | # We need a cross tool | |
81ecdfbb RW |
13627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13628 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13629 | fi |
13630 | fi | |
4b900473 | 13631 | |
81ecdfbb RW |
13632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
13633 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 13634 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13635 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
13636 | # We already found the complete path | |
b8025f34 | 13637 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
13638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13639 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13640 | else |
13641 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13643 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13644 | fi |
be01d343 PB |
13645 | else |
13646 | ok=yes | |
13647 | case " ${configdirs} " in | |
13648 | *" binutils "*) ;; | |
13649 | *) ok=no ;; | |
13650 | esac | |
c6b750e1 | 13651 | |
be01d343 PB |
13652 | if test $ok = yes; then |
13653 | # An in-tree tool is available and we can use it | |
13654 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
13655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13656 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13657 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
13658 | # We already found the complete path | |
b8025f34 | 13659 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
13660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13661 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13662 | elif test "x$target" = "x$host"; then |
13663 | # We can use an host tool | |
13664 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
13665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13666 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13667 | else |
13668 | # We need a cross tool | |
81ecdfbb RW |
13669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13670 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13671 | fi |
13672 | fi | |
4b900473 | 13673 | |
81ecdfbb RW |
13674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
13675 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 13676 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13677 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
13678 | # We already found the complete path | |
b8025f34 | 13679 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
13680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13681 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13682 | else |
13683 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13685 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13686 | fi |
be01d343 PB |
13687 | else |
13688 | ok=yes | |
13689 | case " ${configdirs} " in | |
13690 | *" binutils "*) ;; | |
13691 | *) ok=no ;; | |
13692 | esac | |
c6b750e1 | 13693 | |
be01d343 PB |
13694 | if test $ok = yes; then |
13695 | # An in-tree tool is available and we can use it | |
13696 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
13697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13698 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13699 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
13700 | # We already found the complete path | |
b8025f34 | 13701 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
13702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13703 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13704 | elif test "x$target" = "x$host"; then |
13705 | # We can use an host tool | |
13706 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
13707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13708 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13709 | else |
13710 | # We need a cross tool | |
81ecdfbb RW |
13711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13712 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13713 | fi |
13714 | fi | |
4b900473 | 13715 | |
81ecdfbb RW |
13716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
13717 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 13718 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13719 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
13720 | # We already found the complete path | |
b8025f34 | 13721 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
13722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13723 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13724 | else |
13725 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13727 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13728 | fi |
be01d343 PB |
13729 | else |
13730 | ok=yes | |
13731 | case " ${configdirs} " in | |
13732 | *" binutils "*) ;; | |
13733 | *) ok=no ;; | |
13734 | esac | |
c6b750e1 | 13735 | |
be01d343 PB |
13736 | if test $ok = yes; then |
13737 | # An in-tree tool is available and we can use it | |
13738 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
13739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13740 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13741 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
13742 | # We already found the complete path | |
b8025f34 | 13743 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
13744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13745 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13746 | elif test "x$target" = "x$host"; then |
13747 | # We can use an host tool | |
13748 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
13749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13750 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13751 | else |
13752 | # We need a cross tool | |
81ecdfbb RW |
13753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13754 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13755 | fi |
13756 | fi | |
4b900473 | 13757 | |
81ecdfbb RW |
13758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
13759 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 13760 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13761 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
13762 | # We already found the complete path | |
b8025f34 | 13763 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
13764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13765 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13766 | else |
13767 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13769 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13770 | fi |
be01d343 PB |
13771 | else |
13772 | ok=yes | |
13773 | case " ${configdirs} " in | |
13774 | *" binutils "*) ;; | |
13775 | *) ok=no ;; | |
13776 | esac | |
c6b750e1 | 13777 | |
be01d343 PB |
13778 | if test $ok = yes; then |
13779 | # An in-tree tool is available and we can use it | |
9b980aa1 | 13780 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
13781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13782 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13783 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
13784 | # We already found the complete path | |
b8025f34 | 13785 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
13786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13787 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13788 | elif test "x$target" = "x$host"; then |
13789 | # We can use an host tool | |
13790 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
13791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13792 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13793 | else |
13794 | # We need a cross tool | |
81ecdfbb RW |
13795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13796 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13797 | fi |
13798 | fi | |
4b900473 | 13799 | |
81ecdfbb RW |
13800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
13801 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 13802 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13803 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
13804 | # We already found the complete path | |
b8025f34 | 13805 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
13806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13807 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13808 | else |
13809 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13811 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13812 | fi |
be01d343 PB |
13813 | else |
13814 | ok=yes | |
13815 | case " ${configdirs} " in | |
13816 | *" binutils "*) ;; | |
13817 | *) ok=no ;; | |
13818 | esac | |
c6b750e1 | 13819 | |
be01d343 PB |
13820 | if test $ok = yes; then |
13821 | # An in-tree tool is available and we can use it | |
13822 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
13823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13824 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13825 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
13826 | # We already found the complete path | |
b8025f34 | 13827 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
13828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13829 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13830 | elif test "x$target" = "x$host"; then |
13831 | # We can use an host tool | |
13832 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
13833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13834 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13835 | else |
13836 | # We need a cross tool | |
81ecdfbb RW |
13837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13838 | $as_echo "pre-installed" >&6; } | |
be01d343 | 13839 | fi |
a0da8069 | 13840 | fi |
54752a6b | 13841 | |
81ecdfbb RW |
13842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
13843 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
13844 | if test "x${build}" != "x${host}" ; then |
13845 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
13846 | # We already found the complete path | |
13847 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
13848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13849 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
13850 | else |
13851 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13853 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
13854 | fi |
13855 | else | |
13856 | ok=yes | |
13857 | case " ${configdirs} " in | |
13858 | *" binutils "*) ;; | |
13859 | *) ok=no ;; | |
13860 | esac | |
13861 | ||
13862 | if test $ok = yes; then | |
13863 | # An in-tree tool is available and we can use it | |
13864 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
13865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13866 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
13867 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
13868 | # We already found the complete path | |
13869 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
13870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13871 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
13872 | elif test "x$target" = "x$host"; then |
13873 | # We can use an host tool | |
13874 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
13875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13876 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
13877 | else |
13878 | # We need a cross tool | |
81ecdfbb RW |
13879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13880 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
13881 | fi |
13882 | fi | |
13883 | ||
54752a6b NN |
13884 | |
13885 | ||
be01d343 | 13886 | |
4b900473 | 13887 | |
a0da8069 NN |
13888 | # Certain tools may need extra flags. |
13889 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
13890 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
13891 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
13892 | ||
be01d343 PB |
13893 | # When building target libraries, except in a Canadian cross, we use |
13894 | # the same toolchain as the compiler we just built. | |
13895 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
13896 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
13897 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
13898 | if test $host = $build; then | |
13899 | case " $configdirs " in | |
13900 | *" gcc "*) | |
13901 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
13902 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
13903 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
13904 | ;; | |
13905 | esac | |
13906 | fi | |
13907 | ||
13908 | ||
13909 | ||
13910 | ||
13911 | ||
81ecdfbb RW |
13912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
13913 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
13914 | # Check whether --enable-maintainer-mode was given. | |
13915 | if test "${enable_maintainer_mode+set}" = set; then : | |
13916 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
13917 | else |
13918 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
13919 | fi |
13920 | ||
13921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
13922 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
13923 | |
13924 | ||
13925 | if test "$USE_MAINTAINER_MODE" = yes; then | |
13926 | MAINTAINER_MODE_TRUE= | |
13927 | MAINTAINER_MODE_FALSE='#' | |
13928 | else | |
13929 | MAINTAINER_MODE_TRUE='#' | |
13930 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 13931 | fi |
3d5e36ae AO |
13932 | MAINT=$MAINTAINER_MODE_TRUE |
13933 | ||
1d39f329 NN |
13934 | # --------------------- |
13935 | # GCC bootstrap support | |
13936 | # --------------------- | |
13937 | ||
13938 | # Stage specific cflags for build. | |
13939 | stage1_cflags="-g" | |
13940 | case $build in | |
13941 | vax-*-*) | |
13942 | case ${GCC} in | |
13943 | yes) stage1_cflags="-g -Wa,-J" ;; | |
13944 | *) stage1_cflags="-g -J" ;; | |
13945 | esac ;; | |
1d39f329 NN |
13946 | esac |
13947 | ||
1d89b610 | 13948 | # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems. |
e8a5fa9c | 13949 | if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then |
1d89b610 PB |
13950 | saved_CFLAGS="$CFLAGS" |
13951 | ||
13952 | # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it. | |
13953 | CFLAGS="$CFLAGS -fkeep-inline-functions" | |
81ecdfbb RW |
13954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5 |
13955 | $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; } | |
13956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
13957 | /* end confdefs.h. */ |
13958 | ||
2038f525 PB |
13959 | #if (__GNUC__ < 3) \ |
13960 | || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \ | |
13961 | || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1))) | |
13962 | #error http://gcc.gnu.org/PR29382 | |
13963 | #endif | |
13964 | ||
c6b750e1 DJ |
13965 | int |
13966 | main () | |
13967 | { | |
13968 | ||
13969 | ; | |
13970 | return 0; | |
13971 | } | |
13972 | _ACEOF | |
81ecdfbb RW |
13973 | if ac_fn_c_try_compile "$LINENO"; then : |
13974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13975 | $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions" | |
c6b750e1 | 13976 | else |
81ecdfbb RW |
13977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13978 | $as_echo "no" >&6; } | |
c6b750e1 | 13979 | fi |
81ecdfbb | 13980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1d89b610 PB |
13981 | |
13982 | CFLAGS="$saved_CFLAGS" | |
13983 | fi | |
13984 | ||
13985 | ||
1d39f329 | 13986 | |
8a0d8a5c | 13987 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
13988 | # Check whether --enable-stage1-checking was given. |
13989 | if test "${enable_stage1_checking+set}" = set; then : | |
13990 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 13991 | else |
5566c1fa | 13992 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
2abc4e65 | 13993 | stage1_checking=--enable-checking=yes,types |
8a0d8a5c | 13994 | else |
5566c1fa | 13995 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 13996 | fi |
81ecdfbb | 13997 | fi |
8a0d8a5c PB |
13998 | |
13999 | ||
c6b750e1 | 14000 | |
81ecdfbb RW |
14001 | # Enable -Werror in bootstrap stage2 and later. |
14002 | # Check whether --enable-werror was given. | |
14003 | if test "${enable_werror+set}" = set; then : | |
14004 | enableval=$enable_werror; | |
1d39f329 | 14005 | else |
a0323144 | 14006 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
1d39f329 | 14007 | enable_werror=yes |
79fcd0ec PB |
14008 | else |
14009 | enable_werror=no | |
14010 | fi | |
81ecdfbb RW |
14011 | fi |
14012 | ||
1a6f2dc7 NN |
14013 | case ${enable_werror} in |
14014 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14015 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
14016 | esac |
14017 | ||
14018 | ||
ffdd6afc ILT |
14019 | # If using ENABLE_BUILD_POSTSTAGE1_WITH_CXX, pass |
14020 | # --enable-build-with-cxx after stage1. | |
14021 | if test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then | |
14022 | POSTSTAGE1_CONFIGURE_FLAGS=--enable-build-with-cxx | |
14023 | else | |
14024 | POSTSTAGE1_CONFIGURE_FLAGS= | |
14025 | fi | |
14026 | ||
14027 | ||
e8a5fa9c RW |
14028 | # Specify what files to not compare during bootstrap. |
14029 | ||
14030 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14031 | case "$target" in | |
14032 | hppa*64*-*-hpux*) ;; | |
14033 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
14034 | esac | |
1f53ca9a AO |
14035 | case " $configdirs " in |
14036 | *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;; | |
14037 | esac | |
e8a5fa9c RW |
14038 | |
14039 | ||
81ecdfbb RW |
14040 | ac_config_files="$ac_config_files Makefile" |
14041 | ||
c6b750e1 | 14042 | cat >confcache <<\_ACEOF |
a0da8069 NN |
14043 | # This file is a shell script that caches the results of configure |
14044 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
14045 | # scripts and configure runs, see configure's option --config-cache. |
14046 | # It is not useful on other systems. If it contains results you don't | |
14047 | # want to keep, you may remove or edit it. | |
a0da8069 | 14048 | # |
c6b750e1 DJ |
14049 | # config.status only pays attention to the cache file if you give it |
14050 | # the --recheck option to rerun configure. | |
a0da8069 | 14051 | # |
c6b750e1 DJ |
14052 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14053 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14054 | # following values. | |
14055 | ||
14056 | _ACEOF | |
14057 | ||
a0da8069 NN |
14058 | # The following way of writing the cache mishandles newlines in values, |
14059 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14060 | # So, we kill variables containing newlines. |
a0da8069 NN |
14061 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14062 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14063 | ( |
14064 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14065 | eval ac_val=\$$ac_var | |
14066 | case $ac_val in #( | |
14067 | *${as_nl}*) | |
14068 | case $ac_var in #( | |
14069 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14070 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14071 | esac | |
14072 | case $ac_var in #( | |
14073 | _ | IFS | as_nl) ;; #( | |
14074 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14075 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14076 | esac ;; | |
14077 | esac | |
14078 | done | |
14079 | ||
c6b750e1 | 14080 | (set) 2>&1 | |
81ecdfbb RW |
14081 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14082 | *${as_nl}ac_space=\ *) | |
14083 | # `set' does not quote correctly, so add quotes: double-quote | |
14084 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
14085 | sed -n \ |
14086 | "s/'/'\\\\''/g; | |
14087 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14088 | ;; #( |
c6b750e1 DJ |
14089 | *) |
14090 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14091 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 14092 | ;; |
81ecdfbb RW |
14093 | esac | |
14094 | sort | |
14095 | ) | | |
c6b750e1 | 14096 | sed ' |
81ecdfbb | 14097 | /^ac_cv_env_/b end |
c6b750e1 | 14098 | t clear |
81ecdfbb | 14099 | :clear |
c6b750e1 DJ |
14100 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14101 | t end | |
81ecdfbb RW |
14102 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14103 | :end' >>confcache | |
14104 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14105 | if test -w "$cache_file"; then | |
14106 | test "x$cache_file" != "x/dev/null" && | |
14107 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14108 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
c6b750e1 | 14109 | cat confcache >$cache_file |
a0da8069 | 14110 | else |
81ecdfbb RW |
14111 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14112 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 14113 | fi |
852e5f18 | 14114 | fi |
a0da8069 | 14115 | rm -f confcache |
852e5f18 | 14116 | |
a0da8069 NN |
14117 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14118 | # Let make expand exec_prefix. | |
14119 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 14120 | |
a0da8069 NN |
14121 | # Transform confdefs.h into DEFS. |
14122 | # Protect against shell expansion while executing Makefile rules. | |
14123 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
14124 | # |
14125 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 14126 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 14127 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
14128 | ac_script=' |
14129 | :mline | |
14130 | /\\$/{ | |
14131 | N | |
14132 | s,\\\n,, | |
14133 | b mline | |
14134 | } | |
c6b750e1 | 14135 | t clear |
81ecdfbb RW |
14136 | :clear |
14137 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 14138 | t quote |
81ecdfbb | 14139 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 14140 | t quote |
81ecdfbb RW |
14141 | b any |
14142 | :quote | |
14143 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14144 | s/\[/\\&/g | |
14145 | s/\]/\\&/g | |
14146 | s/\$/$$/g | |
14147 | H | |
14148 | :any | |
14149 | ${ | |
14150 | g | |
14151 | s/^\n// | |
14152 | s/\n/ /g | |
14153 | p | |
14154 | } | |
14155 | ' | |
14156 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
14157 | |
14158 | ||
14159 | ac_libobjs= | |
14160 | ac_ltlibobjs= | |
14161 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14162 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14163 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14164 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14165 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14166 | # will be set to the directory where LIBOBJS objects are built. | |
14167 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14168 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
14169 | done |
14170 | LIBOBJS=$ac_libobjs | |
852e5f18 | 14171 | |
c6b750e1 | 14172 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 14173 | |
cac3d6c4 | 14174 | |
c6b750e1 DJ |
14175 | |
14176 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 14177 | ac_write_fail=0 |
c6b750e1 DJ |
14178 | ac_clean_files_save=$ac_clean_files |
14179 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14180 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14181 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14182 | as_write_fail=0 | |
14183 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
14184 | #! $SHELL |
14185 | # Generated by $as_me. | |
a0da8069 | 14186 | # Run this file to recreate the current configuration. |
a0da8069 | 14187 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 14188 | # configure, is in config.log if it exists. |
376a0e54 | 14189 | |
c6b750e1 DJ |
14190 | debug=false |
14191 | ac_cs_recheck=false | |
14192 | ac_cs_silent=false | |
c6b750e1 | 14193 | |
81ecdfbb RW |
14194 | SHELL=\${CONFIG_SHELL-$SHELL} |
14195 | export SHELL | |
14196 | _ASEOF | |
14197 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14198 | ## -------------------- ## | |
14199 | ## M4sh Initialization. ## | |
14200 | ## -------------------- ## | |
14201 | ||
14202 | # Be more Bourne compatible | |
14203 | DUALCASE=1; export DUALCASE # for MKS sh | |
14204 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
14205 | emulate sh |
14206 | NULLCMD=: | |
81ecdfbb | 14207 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
14208 | # is contrary to our usage. Disable this feature. |
14209 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14210 | setopt NO_GLOB_SUBST |
14211 | else | |
14212 | case `(set -o) 2>/dev/null` in #( | |
14213 | *posix*) : | |
14214 | set -o posix ;; #( | |
14215 | *) : | |
14216 | ;; | |
14217 | esac | |
c6b750e1 | 14218 | fi |
c6b750e1 | 14219 | |
81ecdfbb RW |
14220 | |
14221 | as_nl=' | |
14222 | ' | |
14223 | export as_nl | |
14224 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14225 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14226 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14227 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14228 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14229 | # but without wasting forks for bash or zsh. | |
14230 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14231 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14232 | as_echo='print -r --' | |
14233 | as_echo_n='print -rn --' | |
14234 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14235 | as_echo='printf %s\n' | |
14236 | as_echo_n='printf %s' | |
14237 | else | |
14238 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14239 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14240 | as_echo_n='/usr/ucb/echo -n' | |
14241 | else | |
14242 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14243 | as_echo_n_body='eval | |
14244 | arg=$1; | |
14245 | case $arg in #( | |
14246 | *"$as_nl"*) | |
14247 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14248 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14249 | esac; | |
14250 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14251 | ' | |
14252 | export as_echo_n_body | |
14253 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14254 | fi | |
14255 | export as_echo_body | |
14256 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
14257 | fi |
14258 | ||
81ecdfbb RW |
14259 | # The user is always right. |
14260 | if test "${PATH_SEPARATOR+set}" != set; then | |
14261 | PATH_SEPARATOR=: | |
14262 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14263 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14264 | PATH_SEPARATOR=';' | |
14265 | } | |
14266 | fi | |
14267 | ||
14268 | ||
14269 | # IFS | |
14270 | # We need space, tab and new line, in precisely that order. Quoting is | |
14271 | # there to prevent editors from complaining about space-tab. | |
14272 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14273 | # splitting by setting IFS to empty value.) | |
14274 | IFS=" "" $as_nl" | |
14275 | ||
14276 | # Find who we are. Look in the path if we contain no directory separator. | |
14277 | case $0 in #(( | |
14278 | *[\\/]* ) as_myself=$0 ;; | |
14279 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14280 | for as_dir in $PATH | |
14281 | do | |
14282 | IFS=$as_save_IFS | |
14283 | test -z "$as_dir" && as_dir=. | |
14284 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14285 | done | |
14286 | IFS=$as_save_IFS | |
14287 | ||
14288 | ;; | |
14289 | esac | |
14290 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14291 | # in which case we are not to be found in the path. | |
14292 | if test "x$as_myself" = x; then | |
14293 | as_myself=$0 | |
14294 | fi | |
14295 | if test ! -f "$as_myself"; then | |
14296 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14297 | exit 1 | |
14298 | fi | |
c6b750e1 | 14299 | |
81ecdfbb RW |
14300 | # Unset variables that we do not need and which cause bugs (e.g. in |
14301 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14302 | # suppresses any "Segmentation fault" message there. '((' could | |
14303 | # trigger a bug in pdksh 5.2.14. | |
14304 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14305 | do eval test x\${$as_var+set} = xset \ | |
14306 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14307 | done | |
c6b750e1 DJ |
14308 | PS1='$ ' |
14309 | PS2='> ' | |
14310 | PS4='+ ' | |
14311 | ||
14312 | # NLS nuisances. | |
81ecdfbb RW |
14313 | LC_ALL=C |
14314 | export LC_ALL | |
14315 | LANGUAGE=C | |
14316 | export LANGUAGE | |
14317 | ||
14318 | # CDPATH. | |
14319 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14320 | ||
14321 | ||
14322 | # as_fn_error ERROR [LINENO LOG_FD] | |
14323 | # --------------------------------- | |
14324 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14325 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14326 | # script with status $?, using 1 if that was 0. | |
14327 | as_fn_error () | |
14328 | { | |
14329 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14330 | if test "$3"; then | |
14331 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14332 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
c6b750e1 | 14333 | fi |
81ecdfbb RW |
14334 | $as_echo "$as_me: error: $1" >&2 |
14335 | as_fn_exit $as_status | |
14336 | } # as_fn_error | |
14337 | ||
14338 | ||
14339 | # as_fn_set_status STATUS | |
14340 | # ----------------------- | |
14341 | # Set $? to STATUS, without forking. | |
14342 | as_fn_set_status () | |
14343 | { | |
14344 | return $1 | |
14345 | } # as_fn_set_status | |
14346 | ||
14347 | # as_fn_exit STATUS | |
14348 | # ----------------- | |
14349 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14350 | as_fn_exit () | |
14351 | { | |
14352 | set +e | |
14353 | as_fn_set_status $1 | |
14354 | exit $1 | |
14355 | } # as_fn_exit | |
14356 | ||
14357 | # as_fn_unset VAR | |
14358 | # --------------- | |
14359 | # Portably unset VAR. | |
14360 | as_fn_unset () | |
14361 | { | |
14362 | { eval $1=; unset $1;} | |
14363 | } | |
14364 | as_unset=as_fn_unset | |
14365 | # as_fn_append VAR VALUE | |
14366 | # ---------------------- | |
14367 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14368 | # advantage of any shell optimizations that allow amortized linear growth over | |
14369 | # repeated appends, instead of the typical quadratic growth present in naive | |
14370 | # implementations. | |
14371 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14372 | eval 'as_fn_append () | |
14373 | { | |
14374 | eval $1+=\$2 | |
14375 | }' | |
14376 | else | |
14377 | as_fn_append () | |
14378 | { | |
14379 | eval $1=\$$1\$2 | |
14380 | } | |
14381 | fi # as_fn_append | |
14382 | ||
14383 | # as_fn_arith ARG... | |
14384 | # ------------------ | |
14385 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14386 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14387 | # must be portable across $(()) and expr. | |
14388 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14389 | eval 'as_fn_arith () | |
14390 | { | |
14391 | as_val=$(( $* )) | |
14392 | }' | |
14393 | else | |
14394 | as_fn_arith () | |
14395 | { | |
14396 | as_val=`expr "$@" || test $? -eq 1` | |
14397 | } | |
14398 | fi # as_fn_arith | |
14399 | ||
c6b750e1 | 14400 | |
81ecdfbb RW |
14401 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14402 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
14403 | as_expr=expr |
14404 | else | |
14405 | as_expr=false | |
14406 | fi | |
14407 | ||
81ecdfbb | 14408 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
14409 | as_basename=basename |
14410 | else | |
14411 | as_basename=false | |
14412 | fi | |
14413 | ||
81ecdfbb RW |
14414 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14415 | as_dirname=dirname | |
14416 | else | |
14417 | as_dirname=false | |
14418 | fi | |
c6b750e1 | 14419 | |
81ecdfbb | 14420 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
14421 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14422 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14423 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14424 | $as_echo X/"$0" | | |
14425 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14426 | s//\1/ | |
14427 | q | |
14428 | } | |
14429 | /^X\/\(\/\/\)$/{ | |
14430 | s//\1/ | |
14431 | q | |
14432 | } | |
14433 | /^X\/\(\/\).*/{ | |
14434 | s//\1/ | |
14435 | q | |
14436 | } | |
14437 | s/.*/./; q'` | |
c6b750e1 | 14438 | |
c6b750e1 DJ |
14439 | # Avoid depending upon Character Ranges. |
14440 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14441 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14442 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14443 | as_cr_digits='0123456789' | |
14444 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14445 | ||
81ecdfbb RW |
14446 | ECHO_C= ECHO_N= ECHO_T= |
14447 | case `echo -n x` in #((((( | |
14448 | -n*) | |
14449 | case `echo 'xy\c'` in | |
14450 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14451 | xy) ECHO_C='\c';; | |
14452 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14453 | ECHO_T=' ';; | |
14454 | esac;; | |
14455 | *) | |
14456 | ECHO_N='-n';; | |
c6b750e1 DJ |
14457 | esac |
14458 | ||
81ecdfbb RW |
14459 | rm -f conf$$ conf$$.exe conf$$.file |
14460 | if test -d conf$$.dir; then | |
14461 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 14462 | else |
81ecdfbb RW |
14463 | rm -f conf$$.dir |
14464 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 14465 | fi |
81ecdfbb RW |
14466 | if (echo >conf$$.file) 2>/dev/null; then |
14467 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 14468 | as_ln_s='ln -s' |
81ecdfbb RW |
14469 | # ... but there are two gotchas: |
14470 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14471 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14472 | # In both cases, we have to default to `cp -p'. | |
14473 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
14474 | as_ln_s='cp -p' | |
14475 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14476 | as_ln_s=ln | |
14477 | else | |
14478 | as_ln_s='cp -p' | |
c6b750e1 | 14479 | fi |
c6b750e1 DJ |
14480 | else |
14481 | as_ln_s='cp -p' | |
14482 | fi | |
81ecdfbb RW |
14483 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14484 | rmdir conf$$.dir 2>/dev/null | |
14485 | ||
14486 | ||
14487 | # as_fn_mkdir_p | |
14488 | # ------------- | |
14489 | # Create "$as_dir" as a directory, including parents if necessary. | |
14490 | as_fn_mkdir_p () | |
14491 | { | |
14492 | ||
14493 | case $as_dir in #( | |
14494 | -*) as_dir=./$as_dir;; | |
14495 | esac | |
14496 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14497 | as_dirs= | |
14498 | while :; do | |
14499 | case $as_dir in #( | |
14500 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14501 | *) as_qdir=$as_dir;; | |
14502 | esac | |
14503 | as_dirs="'$as_qdir' $as_dirs" | |
14504 | as_dir=`$as_dirname -- "$as_dir" || | |
14505 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14506 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14507 | X"$as_dir" : 'X\(//\)$' \| \ | |
14508 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14509 | $as_echo X"$as_dir" | | |
14510 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14511 | s//\1/ | |
14512 | q | |
14513 | } | |
14514 | /^X\(\/\/\)[^/].*/{ | |
14515 | s//\1/ | |
14516 | q | |
14517 | } | |
14518 | /^X\(\/\/\)$/{ | |
14519 | s//\1/ | |
14520 | q | |
14521 | } | |
14522 | /^X\(\/\).*/{ | |
14523 | s//\1/ | |
14524 | q | |
14525 | } | |
14526 | s/.*/./; q'` | |
14527 | test -d "$as_dir" && break | |
14528 | done | |
14529 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14530 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
14531 | ||
c6b750e1 | 14532 | |
81ecdfbb | 14533 | } # as_fn_mkdir_p |
c6b750e1 | 14534 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 14535 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
14536 | else |
14537 | test -d ./-p && rmdir ./-p | |
14538 | as_mkdir_p=false | |
14539 | fi | |
14540 | ||
81ecdfbb RW |
14541 | if test -x / >/dev/null 2>&1; then |
14542 | as_test_x='test -x' | |
14543 | else | |
14544 | if ls -dL / >/dev/null 2>&1; then | |
14545 | as_ls_L_option=L | |
14546 | else | |
14547 | as_ls_L_option= | |
14548 | fi | |
14549 | as_test_x=' | |
14550 | eval sh -c '\'' | |
14551 | if test -d "$1"; then | |
14552 | test -d "$1/."; | |
14553 | else | |
14554 | case $1 in #( | |
14555 | -*)set "./$1";; | |
14556 | esac; | |
14557 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
14558 | ???[sx]*):;;*)false;;esac;fi | |
14559 | '\'' sh | |
14560 | ' | |
14561 | fi | |
14562 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
14563 | |
14564 | # Sed expression to map a string onto a valid CPP name. | |
14565 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14566 | ||
14567 | # Sed expression to map a string onto a valid variable name. | |
14568 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14569 | ||
14570 | ||
c6b750e1 | 14571 | exec 6>&1 |
81ecdfbb RW |
14572 | ## ----------------------------------- ## |
14573 | ## Main body of $CONFIG_STATUS script. ## | |
14574 | ## ----------------------------------- ## | |
14575 | _ASEOF | |
14576 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
14577 | ||
14578 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14579 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 14580 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
14581 | # values after options handling. |
14582 | ac_log=" | |
c6b750e1 | 14583 | This file was extended by $as_me, which was |
81ecdfbb | 14584 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
14585 | |
14586 | CONFIG_FILES = $CONFIG_FILES | |
14587 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14588 | CONFIG_LINKS = $CONFIG_LINKS | |
14589 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14590 | $ $0 $@ | |
14591 | ||
81ecdfbb RW |
14592 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14593 | " | |
14594 | ||
c6b750e1 DJ |
14595 | _ACEOF |
14596 | ||
81ecdfbb RW |
14597 | case $ac_config_files in *" |
14598 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14599 | esac | |
c6b750e1 | 14600 | |
c6b750e1 | 14601 | |
c6b750e1 | 14602 | |
81ecdfbb RW |
14603 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14604 | # Files that config.status was made for. | |
14605 | config_files="$ac_config_files" | |
c6b750e1 | 14606 | |
81ecdfbb | 14607 | _ACEOF |
c6b750e1 | 14608 | |
81ecdfbb | 14609 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 14610 | ac_cs_usage="\ |
81ecdfbb RW |
14611 | \`$as_me' instantiates files and other configuration actions |
14612 | from templates according to the current configuration. Unless the files | |
14613 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 14614 | |
81ecdfbb | 14615 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
14616 | |
14617 | -h, --help print this help, then exit | |
81ecdfbb RW |
14618 | -V, --version print version number and configuration settings, then exit |
14619 | -q, --quiet, --silent | |
14620 | do not print progress messages | |
c6b750e1 DJ |
14621 | -d, --debug don't remove temporary files |
14622 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
14623 | --file=FILE[:TEMPLATE] |
14624 | instantiate the configuration file FILE | |
c6b750e1 DJ |
14625 | |
14626 | Configuration files: | |
14627 | $config_files | |
14628 | ||
81ecdfbb | 14629 | Report bugs to the package provider." |
c6b750e1 | 14630 | |
81ecdfbb RW |
14631 | _ACEOF |
14632 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
c6b750e1 DJ |
14633 | ac_cs_version="\\ |
14634 | config.status | |
81ecdfbb RW |
14635 | configured by $0, generated by GNU Autoconf 2.64, |
14636 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
c6b750e1 | 14637 | |
81ecdfbb | 14638 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
14639 | This config.status script is free software; the Free Software Foundation |
14640 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
14641 | |
14642 | ac_pwd='$ac_pwd' | |
14643 | srcdir='$srcdir' | |
14644 | INSTALL='$INSTALL' | |
8e957354 | 14645 | AWK='$AWK' |
81ecdfbb | 14646 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
14647 | _ACEOF |
14648 | ||
81ecdfbb RW |
14649 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14650 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
14651 | ac_need_defaults=: |
14652 | while test $# != 0 | |
a0da8069 | 14653 | do |
c6b750e1 DJ |
14654 | case $1 in |
14655 | --*=*) | |
81ecdfbb RW |
14656 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14657 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
14658 | ac_shift=: |
14659 | ;; | |
81ecdfbb | 14660 | *) |
c6b750e1 DJ |
14661 | ac_option=$1 |
14662 | ac_optarg=$2 | |
14663 | ac_shift=shift | |
14664 | ;; | |
c6b750e1 DJ |
14665 | esac |
14666 | ||
14667 | case $ac_option in | |
14668 | # Handling of the options. | |
a0da8069 | 14669 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 14670 | ac_cs_recheck=: ;; |
81ecdfbb RW |
14671 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
14672 | $as_echo "$ac_cs_version"; exit ;; | |
14673 | --debug | --debu | --deb | --de | --d | -d ) | |
c6b750e1 DJ |
14674 | debug=: ;; |
14675 | --file | --fil | --fi | --f ) | |
14676 | $ac_shift | |
81ecdfbb RW |
14677 | case $ac_optarg in |
14678 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14679 | esac | |
14680 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 14681 | ac_need_defaults=false;; |
81ecdfbb RW |
14682 | --he | --h | --help | --hel | -h ) |
14683 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
14684 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14685 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14686 | ac_cs_silent=: ;; | |
14687 | ||
14688 | # This is an error. | |
81ecdfbb RW |
14689 | -*) as_fn_error "unrecognized option: \`$1' |
14690 | Try \`$0 --help' for more information." ;; | |
c6b750e1 | 14691 | |
81ecdfbb RW |
14692 | *) as_fn_append ac_config_targets " $1" |
14693 | ac_need_defaults=false ;; | |
c6b750e1 | 14694 | |
376a0e54 | 14695 | esac |
c6b750e1 | 14696 | shift |
376a0e54 CM |
14697 | done |
14698 | ||
c6b750e1 | 14699 | ac_configure_extra_args= |
376a0e54 | 14700 | |
c6b750e1 DJ |
14701 | if $ac_cs_silent; then |
14702 | exec 6>/dev/null | |
14703 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14704 | fi | |
376a0e54 | 14705 | |
c6b750e1 | 14706 | _ACEOF |
81ecdfbb | 14707 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 14708 | if \$ac_cs_recheck; then |
81ecdfbb RW |
14709 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
14710 | shift | |
14711 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14712 | CONFIG_SHELL='$SHELL' | |
14713 | export CONFIG_SHELL | |
14714 | exec "\$@" | |
c6b750e1 DJ |
14715 | fi |
14716 | ||
14717 | _ACEOF | |
81ecdfbb RW |
14718 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14719 | exec 5>>config.log | |
14720 | { | |
14721 | echo | |
14722 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14723 | ## Running $as_me. ## | |
14724 | _ASBOX | |
14725 | $as_echo "$ac_log" | |
14726 | } >&5 | |
c6b750e1 | 14727 | |
81ecdfbb RW |
14728 | _ACEOF |
14729 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
14730 | # |
14731 | # INIT-COMMANDS | |
14732 | # | |
14733 | extrasub_build="$extrasub_build" | |
14734 | extrasub_host="$extrasub_host" | |
14735 | extrasub_target="$extrasub_target" | |
14736 | ||
81ecdfbb | 14737 | _ACEOF |
c6b750e1 | 14738 | |
81ecdfbb | 14739 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 14740 | |
81ecdfbb | 14741 | # Handling of arguments. |
c6b750e1 DJ |
14742 | for ac_config_target in $ac_config_targets |
14743 | do | |
81ecdfbb RW |
14744 | case $ac_config_target in |
14745 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
14746 | ||
14747 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
c6b750e1 DJ |
14748 | esac |
14749 | done | |
14750 | ||
81ecdfbb | 14751 | |
c6b750e1 DJ |
14752 | # If the user did not use the arguments to specify the items to instantiate, |
14753 | # then the envvar interface is used. Set only those that are not. | |
14754 | # We use the long form for the default assignment because of an extremely | |
14755 | # bizarre bug on SunOS 4.1.3. | |
14756 | if $ac_need_defaults; then | |
14757 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14758 | fi | |
14759 | ||
14760 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 14761 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 14762 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
14763 | # Hook for its removal unless debugging. |
14764 | # Note that there is a small window in which the directory will not be cleaned: | |
14765 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
14766 | $debug || |
14767 | { | |
81ecdfbb RW |
14768 | tmp= |
14769 | trap 'exit_status=$? | |
14770 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
14771 | ' 0 | |
14772 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 14773 | } |
c6b750e1 DJ |
14774 | # Create a (secure) tmp directory for tmp files. |
14775 | ||
14776 | { | |
81ecdfbb | 14777 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
c6b750e1 DJ |
14778 | test -n "$tmp" && test -d "$tmp" |
14779 | } || | |
14780 | { | |
81ecdfbb RW |
14781 | tmp=./conf$$-$RANDOM |
14782 | (umask 077 && mkdir "$tmp") | |
14783 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
14784 | ||
14785 | # Set up the scripts for CONFIG_FILES section. | |
14786 | # No need to generate them if there are no CONFIG_FILES. | |
14787 | # This happens for instance with `./config.status config.h'. | |
14788 | if test -n "$CONFIG_FILES"; then | |
14789 | ||
14790 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
14791 | ac_cs_awk_getline=: | |
14792 | ac_cs_awk_pipe_init= | |
14793 | ac_cs_awk_read_file=' | |
14794 | while ((getline aline < (F[key])) > 0) | |
14795 | print(aline) | |
14796 | close(F[key])' | |
14797 | ac_cs_awk_pipe_fini= | |
14798 | else | |
14799 | ac_cs_awk_getline=false | |
14800 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
14801 | ac_cs_awk_read_file=' | |
14802 | print "|#_!!_#|" | |
14803 | print "cat " F[key] " &&" | |
14804 | '$ac_cs_awk_pipe_init | |
14805 | # The final `:' finishes the AND list. | |
14806 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
14807 | fi | |
14808 | ac_cr=`echo X | tr X '\015'` | |
14809 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
14810 | # But we know of no other shell where ac_cr would be empty at this | |
14811 | # point, so we can use a bashism as a fallback. | |
14812 | if test "x$ac_cr" = x; then | |
14813 | eval ac_cr=\$\'\\r\' | |
14814 | fi | |
14815 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
14816 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
14817 | ac_cs_awk_cr='\r' | |
14818 | else | |
14819 | ac_cs_awk_cr=$ac_cr | |
14820 | fi | |
14821 | ||
14822 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
14823 | _ACEOF | |
14824 | ||
14825 | # Create commands to substitute file output variables. | |
c6b750e1 | 14826 | { |
81ecdfbb RW |
14827 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
14828 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
14829 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
14830 | echo "_ACAWK" && | |
14831 | echo "_ACEOF" | |
14832 | } >conf$$files.sh && | |
14833 | . ./conf$$files.sh || | |
14834 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14835 | rm -f conf$$files.sh | |
c6b750e1 | 14836 | |
81ecdfbb RW |
14837 | { |
14838 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
14839 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
14840 | echo "_ACEOF" | |
14841 | } >conf$$subs.sh || | |
14842 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14843 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
14844 | ac_delim='%!_!# ' | |
14845 | for ac_last_try in false false false false false :; do | |
14846 | . ./conf$$subs.sh || | |
14847 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14848 | ||
14849 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
14850 | if test $ac_delim_n = $ac_delim_num; then | |
14851 | break | |
14852 | elif $ac_last_try; then | |
14853 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14854 | else | |
14855 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14856 | fi | |
14857 | done | |
14858 | rm -f conf$$subs.sh | |
14859 | ||
14860 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14861 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
c6b750e1 | 14862 | _ACEOF |
81ecdfbb RW |
14863 | sed -n ' |
14864 | h | |
14865 | s/^/S["/; s/!.*/"]=/ | |
14866 | p | |
14867 | g | |
14868 | s/^[^!]*!// | |
14869 | :repl | |
14870 | t repl | |
14871 | s/'"$ac_delim"'$// | |
14872 | t delim | |
14873 | :nl | |
14874 | h | |
14875 | s/\(.\{148\}\).*/\1/ | |
14876 | t more1 | |
14877 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
14878 | p | |
14879 | n | |
14880 | b repl | |
14881 | :more1 | |
14882 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14883 | p | |
14884 | g | |
14885 | s/.\{148\}// | |
14886 | t nl | |
14887 | :delim | |
14888 | h | |
14889 | s/\(.\{148\}\).*/\1/ | |
14890 | t more2 | |
14891 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
14892 | p | |
14893 | b | |
14894 | :more2 | |
14895 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14896 | p | |
14897 | g | |
14898 | s/.\{148\}// | |
14899 | t delim | |
14900 | ' <conf$$subs.awk | sed ' | |
14901 | /^[^""]/{ | |
14902 | N | |
14903 | s/\n// | |
14904 | } | |
14905 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
14906 | rm -f conf$$subs.awk | |
14907 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14908 | _ACAWK | |
14909 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
14910 | for (key in S) S_is_set[key] = 1 | |
14911 | FS = "\a" | |
14912 | \$ac_cs_awk_pipe_init | |
14913 | } | |
14914 | { | |
14915 | line = $ 0 | |
14916 | nfields = split(line, field, "@") | |
14917 | substed = 0 | |
14918 | len = length(field[1]) | |
14919 | for (i = 2; i < nfields; i++) { | |
14920 | key = field[i] | |
14921 | keylen = length(key) | |
14922 | if (S_is_set[key]) { | |
14923 | value = S[key] | |
14924 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
14925 | len += length(value) + length(field[++i]) | |
14926 | substed = 1 | |
14927 | } else | |
14928 | len += 1 + keylen | |
14929 | } | |
14930 | if (nfields == 3 && !substed) { | |
14931 | key = field[2] | |
14932 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
14933 | \$ac_cs_awk_read_file | |
14934 | next | |
14935 | } | |
14936 | } | |
14937 | print line | |
14938 | } | |
14939 | \$ac_cs_awk_pipe_fini | |
14940 | _ACAWK | |
14941 | _ACEOF | |
14942 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14943 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
14944 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
14945 | else | |
14946 | cat | |
14947 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
14948 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
14949 | _ACEOF | |
14950 | ||
14951 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
14952 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
14953 | # trailing colons and then remove the whole line if VPATH becomes empty | |
14954 | # (actually we leave an empty line to preserve line numbers). | |
14955 | if test "x$srcdir" = x.; then | |
14956 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
14957 | s/:*\$(srcdir):*/:/ | |
14958 | s/:*\${srcdir}:*/:/ | |
14959 | s/:*@srcdir@:*/:/ | |
14960 | s/^\([^=]*=[ ]*\):*/\1/ | |
14961 | s/:*$// | |
14962 | s/^[^=]*=[ ]*$// | |
14963 | }' | |
14964 | fi | |
c6b750e1 | 14965 | |
81ecdfbb RW |
14966 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14967 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 14968 | |
c6b750e1 | 14969 | |
81ecdfbb RW |
14970 | eval set X " :F $CONFIG_FILES " |
14971 | shift | |
14972 | for ac_tag | |
14973 | do | |
14974 | case $ac_tag in | |
14975 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14976 | esac | |
14977 | case $ac_mode$ac_tag in | |
14978 | :[FHL]*:*);; | |
14979 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
14980 | :[FH]-) ac_tag=-:-;; | |
14981 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
14982 | esac | |
14983 | ac_save_IFS=$IFS | |
14984 | IFS=: | |
14985 | set x $ac_tag | |
14986 | IFS=$ac_save_IFS | |
14987 | shift | |
14988 | ac_file=$1 | |
14989 | shift | |
252b5132 | 14990 | |
81ecdfbb RW |
14991 | case $ac_mode in |
14992 | :L) ac_source=$1;; | |
14993 | :[FH]) | |
14994 | ac_file_inputs= | |
14995 | for ac_f | |
14996 | do | |
14997 | case $ac_f in | |
14998 | -) ac_f="$tmp/stdin";; | |
14999 | *) # Look for the file first in the build tree, then in the source tree | |
15000 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15001 | # because $ac_f cannot contain `:'. | |
15002 | test -f "$ac_f" || | |
15003 | case $ac_f in | |
15004 | [\\/$]*) false;; | |
15005 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15006 | esac || | |
15007 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15008 | esac | |
15009 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15010 | as_fn_append ac_file_inputs " '$ac_f'" | |
15011 | done | |
c6b750e1 | 15012 | |
81ecdfbb RW |
15013 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15014 | # use $as_me), people would be surprised to read: | |
15015 | # /* config.h. Generated by config.status. */ | |
15016 | configure_input='Generated from '` | |
15017 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15018 | `' by configure.' | |
15019 | if test x"$ac_file" != x-; then | |
15020 | configure_input="$ac_file. $configure_input" | |
15021 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15022 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 15023 | fi |
81ecdfbb RW |
15024 | # Neutralize special characters interpreted by sed in replacement strings. |
15025 | case $configure_input in #( | |
15026 | *\&* | *\|* | *\\* ) | |
15027 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15028 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15029 | *) ac_sed_conf_input=$configure_input;; | |
15030 | esac | |
cac3d6c4 | 15031 | |
81ecdfbb RW |
15032 | case $ac_tag in |
15033 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15034 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15035 | esac | |
15036 | ;; | |
a0da8069 | 15037 | esac |
252b5132 | 15038 | |
81ecdfbb | 15039 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
15040 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15041 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15042 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15043 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15044 | $as_echo X"$ac_file" | | |
15045 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15046 | s//\1/ | |
15047 | q | |
15048 | } | |
15049 | /^X\(\/\/\)[^/].*/{ | |
15050 | s//\1/ | |
15051 | q | |
15052 | } | |
15053 | /^X\(\/\/\)$/{ | |
15054 | s//\1/ | |
15055 | q | |
15056 | } | |
15057 | /^X\(\/\).*/{ | |
15058 | s//\1/ | |
15059 | q | |
15060 | } | |
15061 | s/.*/./; q'` | |
15062 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 15063 | ac_builddir=. |
252b5132 | 15064 | |
81ecdfbb RW |
15065 | case "$ac_dir" in |
15066 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15067 | *) | |
15068 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15069 | # A ".." for each directory in $ac_dir_suffix. | |
15070 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15071 | case $ac_top_builddir_sub in | |
15072 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15073 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15074 | esac ;; | |
15075 | esac | |
15076 | ac_abs_top_builddir=$ac_pwd | |
15077 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15078 | # for backward compatibility: | |
15079 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
15080 | |
15081 | case $srcdir in | |
81ecdfbb | 15082 | .) # We are building in place. |
c6b750e1 | 15083 | ac_srcdir=. |
81ecdfbb RW |
15084 | ac_top_srcdir=$ac_top_builddir_sub |
15085 | ac_abs_top_srcdir=$ac_pwd ;; | |
15086 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 15087 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15088 | ac_top_srcdir=$srcdir |
15089 | ac_abs_top_srcdir=$srcdir ;; | |
15090 | *) # Relative name. | |
15091 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15092 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15093 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 15094 | esac |
81ecdfbb | 15095 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 15096 | |
252b5132 | 15097 | |
81ecdfbb RW |
15098 | case $ac_mode in |
15099 | :F) | |
15100 | # | |
15101 | # CONFIG_FILE | |
15102 | # | |
c6b750e1 DJ |
15103 | |
15104 | case $INSTALL in | |
15105 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 15106 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 15107 | esac |
81ecdfbb | 15108 | _ACEOF |
252b5132 | 15109 | |
81ecdfbb RW |
15110 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15111 | # If the template does not know about datarootdir, expand it. | |
15112 | # FIXME: This hack should be removed a few years after 2.60. | |
15113 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15114 | ac_sed_dataroot=' | |
15115 | /datarootdir/ { | |
15116 | p | |
15117 | q | |
15118 | } | |
15119 | /@datadir@/p | |
15120 | /@docdir@/p | |
15121 | /@infodir@/p | |
15122 | /@localedir@/p | |
15123 | /@mandir@/p' | |
15124 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15125 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15126 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15127 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15128 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 15129 | _ACEOF |
81ecdfbb RW |
15130 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15131 | ac_datarootdir_hack=' | |
15132 | s&@datadir@&$datadir&g | |
15133 | s&@docdir@&$docdir&g | |
15134 | s&@infodir@&$infodir&g | |
15135 | s&@localedir@&$localedir&g | |
15136 | s&@mandir@&$mandir&g | |
15137 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15138 | esac | |
15139 | _ACEOF | |
15140 | ||
15141 | # Neutralize VPATH when `$srcdir' = `.'. | |
15142 | # Shell code in configure.ac might set extrasub. | |
15143 | # FIXME: do we really want to maintain this feature? | |
15144 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15145 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
15146 | $extrasub |
15147 | _ACEOF | |
81ecdfbb | 15148 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
15149 | :t |
15150 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
15151 | s|@configure_input@|$ac_sed_conf_input|;t t |
15152 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15153 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15154 | s&@srcdir@&$ac_srcdir&;t t | |
15155 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15156 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15157 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15158 | s&@builddir@&$ac_builddir&;t t | |
15159 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15160 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15161 | s&@INSTALL@&$ac_INSTALL&;t t | |
15162 | $ac_datarootdir_hack | |
15163 | " | |
15164 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15165 | if $ac_cs_awk_getline; then | |
15166 | $AWK -f "$tmp/subs.awk" | |
15167 | else | |
15168 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15169 | fi >$tmp/out \ | |
15170 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15171 | ||
15172 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15173 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15174 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15175 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15176 | which seems to be undefined. Please make sure it is defined." >&5 | |
15177 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15178 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15179 | ||
15180 | rm -f "$tmp/stdin" | |
15181 | case $ac_file in | |
15182 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
15183 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15184 | esac \ | |
15185 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15186 | ;; | |
c148b4cb | 15187 | |
c148b4cb | 15188 | |
c148b4cb | 15189 | |
81ecdfbb RW |
15190 | esac |
15191 | ||
06a51eac RW |
15192 | |
15193 | case $ac_file$ac_mode in | |
15194 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15195 | sed "$extrasub_host" | | |
15196 | sed "$extrasub_target" > mf$$ | |
15197 | mv -f mf$$ Makefile ;; | |
15198 | ||
15199 | esac | |
81ecdfbb RW |
15200 | done # for ac_tag |
15201 | ||
15202 | ||
15203 | as_fn_exit 0 | |
c6b750e1 | 15204 | _ACEOF |
c6b750e1 DJ |
15205 | ac_clean_files=$ac_clean_files_save |
15206 | ||
81ecdfbb RW |
15207 | test $ac_write_fail = 0 || |
15208 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15209 | ||
c6b750e1 DJ |
15210 | |
15211 | # configure is writing to config.log, and then calls config.status. | |
15212 | # config.status does its own redirection, appending to config.log. | |
15213 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15214 | # by configure, so config.status won't be able to write to it; its | |
15215 | # output is simply discarded. So we exec the FD to /dev/null, | |
15216 | # effectively closing config.log, so it can be properly (re)opened and | |
15217 | # appended to by config.status. When coming back to configure, we | |
15218 | # need to make the FD available again. | |
15219 | if test "$no_create" != yes; then | |
15220 | ac_cs_success=: | |
15221 | ac_config_status_args= | |
15222 | test "$silent" = yes && | |
15223 | ac_config_status_args="$ac_config_status_args --quiet" | |
15224 | exec 5>/dev/null | |
15225 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15226 | exec 5>>config.log | |
15227 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15228 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
15229 | $ac_cs_success || as_fn_exit $? |
15230 | fi | |
15231 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15232 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15233 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 15234 | fi |
c148b4cb | 15235 |