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 | |
559 | stage2_werror_flag | |
560 | stage1_checking | |
561 | stage1_cflags | |
562 | MAINT | |
563 | MAINTAINER_MODE_FALSE | |
564 | MAINTAINER_MODE_TRUE | |
565 | COMPILER_NM_FOR_TARGET | |
566 | COMPILER_LD_FOR_TARGET | |
567 | COMPILER_AS_FOR_TARGET | |
568 | FLAGS_FOR_TARGET | |
569 | RAW_CXX_FOR_TARGET | |
570 | WINDMC_FOR_TARGET | |
571 | WINDRES_FOR_TARGET | |
572 | STRIP_FOR_TARGET | |
b121d7d4 | 573 | READELF_FOR_TARGET |
81ecdfbb RW |
574 | RANLIB_FOR_TARGET |
575 | OBJDUMP_FOR_TARGET | |
6b91c541 | 576 | OBJCOPY_FOR_TARGET |
81ecdfbb RW |
577 | NM_FOR_TARGET |
578 | LIPO_FOR_TARGET | |
579 | LD_FOR_TARGET | |
580 | DLLTOOL_FOR_TARGET | |
581 | AS_FOR_TARGET | |
582 | AR_FOR_TARGET | |
e552509b | 583 | GOC_FOR_TARGET |
81ecdfbb | 584 | GFORTRAN_FOR_TARGET |
81ecdfbb RW |
585 | GCC_FOR_TARGET |
586 | CXX_FOR_TARGET | |
587 | CC_FOR_TARGET | |
b121d7d4 | 588 | READELF |
81ecdfbb RW |
589 | OBJDUMP |
590 | OBJCOPY | |
591 | WINDMC | |
592 | WINDRES | |
593 | STRIP | |
594 | RANLIB | |
595 | NM | |
596 | LIPO | |
597 | LD | |
598 | DLLTOOL | |
599 | AS | |
600 | AR | |
601 | RUNTEST | |
602 | EXPECT | |
603 | MAKEINFO | |
604 | FLEX | |
605 | LEX | |
606 | M4 | |
607 | BISON | |
608 | YACC | |
81ecdfbb RW |
609 | WINDRES_FOR_BUILD |
610 | WINDMC_FOR_BUILD | |
611 | RANLIB_FOR_BUILD | |
612 | NM_FOR_BUILD | |
613 | LD_FOR_BUILD | |
614 | LDFLAGS_FOR_BUILD | |
e552509b | 615 | GOC_FOR_BUILD |
81ecdfbb | 616 | GFORTRAN_FOR_BUILD |
81ecdfbb RW |
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 | |
bf41f30d | 643 | get_gcc_base_ver |
e81d5d05 | 644 | extra_host_zlib_configure_flags |
700d40ca | 645 | extra_host_libiberty_configure_flags |
1b6c0831 | 646 | stage1_languages |
bf41f30d | 647 | host_shared |
1b6c0831 L |
648 | extra_linker_plugin_flags |
649 | extra_linker_plugin_configure_flags | |
7ec59b9e | 650 | islinc |
1b6c0831 | 651 | isllibs |
81ecdfbb | 652 | poststage1_ldflags |
143754cd | 653 | poststage1_libs |
81ecdfbb | 654 | stage1_ldflags |
b3676d82 | 655 | stage1_libs |
7ec59b9e | 656 | extra_isl_gmp_configure_flags |
81ecdfbb RW |
657 | extra_mpc_mpfr_configure_flags |
658 | extra_mpc_gmp_configure_flags | |
659 | extra_mpfr_configure_flags | |
660 | gmpinc | |
661 | gmplibs | |
662 | do_compare | |
663 | GNATMAKE | |
664 | GNATBIND | |
665 | ac_ct_CXX | |
666 | CXXFLAGS | |
667 | CXX | |
668 | OBJEXT | |
669 | EXEEXT | |
670 | ac_ct_CC | |
671 | CPPFLAGS | |
672 | LDFLAGS | |
673 | CFLAGS | |
674 | CC | |
1b6c0831 | 675 | extra_liboffloadmic_configure_flags |
81ecdfbb RW |
676 | target_subdir |
677 | host_subdir | |
678 | build_subdir | |
679 | build_libsubdir | |
8e957354 PB |
680 | AWK |
681 | SED | |
81ecdfbb RW |
682 | LN_S |
683 | LN | |
684 | INSTALL_DATA | |
685 | INSTALL_SCRIPT | |
686 | INSTALL_PROGRAM | |
687 | target_os | |
688 | target_vendor | |
689 | target_cpu | |
690 | target | |
691 | host_os | |
692 | host_vendor | |
693 | host_cpu | |
694 | host | |
695 | target_noncanonical | |
696 | host_noncanonical | |
697 | build_noncanonical | |
698 | build_os | |
699 | build_vendor | |
700 | build_cpu | |
701 | build | |
702 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
703 | target_alias | |
704 | host_alias | |
705 | build_alias | |
706 | LIBS | |
707 | ECHO_T | |
708 | ECHO_N | |
709 | ECHO_C | |
710 | DEFS | |
711 | mandir | |
712 | localedir | |
713 | libdir | |
714 | psdir | |
715 | pdfdir | |
716 | dvidir | |
717 | htmldir | |
718 | infodir | |
719 | docdir | |
720 | oldincludedir | |
721 | includedir | |
722 | localstatedir | |
723 | sharedstatedir | |
724 | sysconfdir | |
725 | datadir | |
726 | datarootdir | |
727 | libexecdir | |
728 | sbindir | |
729 | bindir | |
730 | program_transform_name | |
731 | prefix | |
732 | exec_prefix | |
733 | PACKAGE_URL | |
734 | PACKAGE_BUGREPORT | |
735 | PACKAGE_STRING | |
736 | PACKAGE_VERSION | |
737 | PACKAGE_TARNAME | |
738 | PACKAGE_NAME | |
739 | PATH_SEPARATOR | |
740 | SHELL' | |
741 | ac_subst_files='serialization_dependencies | |
742 | host_makefile_frag | |
743 | target_makefile_frag | |
744 | alphaieee_frag | |
745 | ospace_frag' | |
746 | ac_user_opts=' | |
747 | enable_option_checking | |
748 | with_build_libsubdir | |
cf39cfc5 | 749 | with_system_zlib |
1b6c0831 L |
750 | enable_as_accelerator_for |
751 | enable_offload_targets | |
81ecdfbb | 752 | enable_gold |
c7791212 | 753 | enable_ld |
edeefb67 | 754 | enable_compressed_debug_sections |
89a1e9c3 PB |
755 | enable_libquadmath |
756 | enable_libquadmath_support | |
81ecdfbb RW |
757 | enable_libada |
758 | enable_libssp | |
f66a9a70 | 759 | enable_libstdcxx |
1b6c0831 | 760 | enable_liboffloadmic |
ffdd6afc | 761 | enable_bootstrap |
81ecdfbb RW |
762 | with_mpc |
763 | with_mpc_include | |
764 | with_mpc_lib | |
765 | with_mpfr_dir | |
766 | with_mpfr | |
767 | with_mpfr_include | |
768 | with_mpfr_lib | |
769 | with_gmp_dir | |
770 | with_gmp | |
771 | with_gmp_include | |
772 | with_gmp_lib | |
81ecdfbb | 773 | with_stage1_libs |
b3676d82 | 774 | with_stage1_ldflags |
81ecdfbb | 775 | with_boot_libs |
143754cd | 776 | with_boot_ldflags |
7ec59b9e L |
777 | with_isl |
778 | with_isl_include | |
779 | with_isl_lib | |
780 | enable_isl_version_check | |
700d40ca | 781 | enable_lto |
1b6c0831 L |
782 | enable_linker_plugin_configure_flags |
783 | enable_linker_plugin_flags | |
bf41f30d | 784 | enable_host_shared |
81ecdfbb RW |
785 | enable_stage1_languages |
786 | enable_objc_gc | |
05a13254 NC |
787 | with_target_bdw_gc |
788 | with_target_bdw_gc_include | |
789 | with_target_bdw_gc_lib | |
bf41f30d | 790 | with_gcc_major_version_only |
81ecdfbb RW |
791 | with_build_sysroot |
792 | with_debug_prefix_map | |
96655cc4 | 793 | with_build_config |
730af8ee | 794 | enable_vtable_verify |
81ecdfbb RW |
795 | enable_serial_configure |
796 | with_build_time_tools | |
797 | enable_maintainer_mode | |
798 | enable_stage1_checking | |
799 | enable_werror | |
81ecdfbb RW |
800 | ' |
801 | ac_precious_vars='build_alias | |
802 | host_alias | |
803 | target_alias | |
804 | CC | |
805 | CFLAGS | |
806 | LDFLAGS | |
807 | LIBS | |
808 | CPPFLAGS | |
809 | CXX | |
810 | CXXFLAGS | |
811 | CCC | |
4074d5f2 RW |
812 | build_configargs |
813 | host_configargs | |
814 | target_configargs | |
81ecdfbb RW |
815 | AR |
816 | AS | |
817 | DLLTOOL | |
818 | LD | |
819 | LIPO | |
820 | NM | |
821 | RANLIB | |
822 | STRIP | |
823 | WINDRES | |
824 | WINDMC | |
825 | OBJCOPY | |
826 | OBJDUMP | |
b121d7d4 | 827 | READELF |
81ecdfbb RW |
828 | CC_FOR_TARGET |
829 | CXX_FOR_TARGET | |
830 | GCC_FOR_TARGET | |
81ecdfbb | 831 | GFORTRAN_FOR_TARGET |
e552509b | 832 | GOC_FOR_TARGET |
81ecdfbb RW |
833 | AR_FOR_TARGET |
834 | AS_FOR_TARGET | |
835 | DLLTOOL_FOR_TARGET | |
836 | LD_FOR_TARGET | |
837 | LIPO_FOR_TARGET | |
838 | NM_FOR_TARGET | |
6b91c541 | 839 | OBJCOPY_FOR_TARGET |
81ecdfbb RW |
840 | OBJDUMP_FOR_TARGET |
841 | RANLIB_FOR_TARGET | |
b121d7d4 | 842 | READELF_FOR_TARGET |
81ecdfbb RW |
843 | STRIP_FOR_TARGET |
844 | WINDRES_FOR_TARGET | |
845 | WINDMC_FOR_TARGET' | |
846 | ||
a0da8069 NN |
847 | |
848 | # Initialize some variables set by options. | |
c6b750e1 DJ |
849 | ac_init_help= |
850 | ac_init_version=false | |
81ecdfbb RW |
851 | ac_unrecognized_opts= |
852 | ac_unrecognized_sep= | |
a0da8069 NN |
853 | # The variables have the same names as the options, with |
854 | # dashes changed to underlines. | |
c6b750e1 | 855 | cache_file=/dev/null |
a0da8069 | 856 | exec_prefix=NONE |
a0da8069 | 857 | no_create= |
a0da8069 NN |
858 | no_recursion= |
859 | prefix=NONE | |
860 | program_prefix=NONE | |
861 | program_suffix=NONE | |
862 | program_transform_name=s,x,x, | |
863 | silent= | |
864 | site= | |
865 | srcdir= | |
a0da8069 NN |
866 | verbose= |
867 | x_includes=NONE | |
868 | x_libraries=NONE | |
c6b750e1 DJ |
869 | |
870 | # Installation directory options. | |
871 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
872 | # and all the variables that are supposed to be based on exec_prefix | |
873 | # by default will actually change. | |
874 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 875 | # (The list follows the same order as the GNU Coding Standards.) |
a0da8069 NN |
876 | bindir='${exec_prefix}/bin' |
877 | sbindir='${exec_prefix}/sbin' | |
878 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
879 | datarootdir='${prefix}/share' |
880 | datadir='${datarootdir}' | |
a0da8069 NN |
881 | sysconfdir='${prefix}/etc' |
882 | sharedstatedir='${prefix}/com' | |
883 | localstatedir='${prefix}/var' | |
a0da8069 NN |
884 | includedir='${prefix}/include' |
885 | oldincludedir='/usr/include' | |
81ecdfbb RW |
886 | docdir='${datarootdir}/doc/${PACKAGE}' |
887 | infodir='${datarootdir}/info' | |
888 | htmldir='${docdir}' | |
889 | dvidir='${docdir}' | |
890 | pdfdir='${docdir}' | |
891 | psdir='${docdir}' | |
892 | libdir='${exec_prefix}/lib' | |
893 | localedir='${datarootdir}/locale' | |
894 | mandir='${datarootdir}/man' | |
252b5132 | 895 | |
a0da8069 | 896 | ac_prev= |
81ecdfbb | 897 | ac_dashdash= |
a0da8069 NN |
898 | for ac_option |
899 | do | |
a0da8069 NN |
900 | # If the previous option needs an argument, assign it. |
901 | if test -n "$ac_prev"; then | |
81ecdfbb | 902 | eval $ac_prev=\$ac_option |
a0da8069 NN |
903 | ac_prev= |
904 | continue | |
905 | fi | |
252b5132 | 906 | |
81ecdfbb RW |
907 | case $ac_option in |
908 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
909 | *) ac_optarg=yes ;; | |
910 | esac | |
a0da8069 NN |
911 | |
912 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
913 | ||
81ecdfbb RW |
914 | case $ac_dashdash$ac_option in |
915 | --) | |
916 | ac_dashdash=yes ;; | |
a0da8069 NN |
917 | |
918 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
919 | ac_prev=bindir ;; | |
920 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
c6b750e1 | 921 | bindir=$ac_optarg ;; |
a0da8069 NN |
922 | |
923 | -build | --build | --buil | --bui | --bu) | |
c6b750e1 | 924 | ac_prev=build_alias ;; |
a0da8069 | 925 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
c6b750e1 | 926 | build_alias=$ac_optarg ;; |
a0da8069 NN |
927 | |
928 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
929 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
930 | ac_prev=cache_file ;; | |
931 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
932 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
c6b750e1 DJ |
933 | cache_file=$ac_optarg ;; |
934 | ||
935 | --config-cache | -C) | |
936 | cache_file=config.cache ;; | |
a0da8069 | 937 | |
81ecdfbb | 938 | -datadir | --datadir | --datadi | --datad) |
a0da8069 | 939 | ac_prev=datadir ;; |
81ecdfbb | 940 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
c6b750e1 | 941 | datadir=$ac_optarg ;; |
a0da8069 | 942 | |
81ecdfbb RW |
943 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
944 | | --dataroo | --dataro | --datar) | |
945 | ac_prev=datarootdir ;; | |
946 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
947 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
948 | datarootdir=$ac_optarg ;; | |
949 | ||
a0da8069 | 950 | -disable-* | --disable-*) |
81ecdfbb | 951 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a0da8069 | 952 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
953 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
954 | as_fn_error "invalid feature name: $ac_useropt" | |
955 | ac_useropt_orig=$ac_useropt | |
956 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
957 | case $ac_user_opts in | |
958 | *" | |
959 | "enable_$ac_useropt" | |
960 | "*) ;; | |
961 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
962 | ac_unrecognized_sep=', ';; | |
963 | esac | |
964 | eval enable_$ac_useropt=no ;; | |
965 | ||
966 | -docdir | --docdir | --docdi | --doc | --do) | |
967 | ac_prev=docdir ;; | |
968 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
969 | docdir=$ac_optarg ;; | |
970 | ||
971 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
972 | ac_prev=dvidir ;; | |
973 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
974 | dvidir=$ac_optarg ;; | |
a0da8069 NN |
975 | |
976 | -enable-* | --enable-*) | |
81ecdfbb | 977 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a0da8069 | 978 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
979 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
980 | as_fn_error "invalid feature name: $ac_useropt" | |
981 | ac_useropt_orig=$ac_useropt | |
982 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
983 | case $ac_user_opts in | |
984 | *" | |
985 | "enable_$ac_useropt" | |
986 | "*) ;; | |
987 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
988 | ac_unrecognized_sep=', ';; | |
a0da8069 | 989 | esac |
81ecdfbb | 990 | eval enable_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
991 | |
992 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
993 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
994 | | --exec | --exe | --ex) | |
995 | ac_prev=exec_prefix ;; | |
996 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
997 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
998 | | --exec=* | --exe=* | --ex=*) | |
c6b750e1 | 999 | exec_prefix=$ac_optarg ;; |
a0da8069 NN |
1000 | |
1001 | -gas | --gas | --ga | --g) | |
1002 | # Obsolete; use --with-gas. | |
1003 | with_gas=yes ;; | |
1004 | ||
c6b750e1 DJ |
1005 | -help | --help | --hel | --he | -h) |
1006 | ac_init_help=long ;; | |
1007 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1008 | ac_init_help=recursive ;; | |
1009 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1010 | ac_init_help=short ;; | |
a0da8069 NN |
1011 | |
1012 | -host | --host | --hos | --ho) | |
c6b750e1 | 1013 | ac_prev=host_alias ;; |
a0da8069 | 1014 | -host=* | --host=* | --hos=* | --ho=*) |
c6b750e1 | 1015 | host_alias=$ac_optarg ;; |
a0da8069 | 1016 | |
81ecdfbb RW |
1017 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1018 | ac_prev=htmldir ;; | |
1019 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1020 | | --ht=*) | |
1021 | htmldir=$ac_optarg ;; | |
1022 | ||
a0da8069 NN |
1023 | -includedir | --includedir | --includedi | --included | --include \ |
1024 | | --includ | --inclu | --incl | --inc) | |
1025 | ac_prev=includedir ;; | |
1026 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1027 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
c6b750e1 | 1028 | includedir=$ac_optarg ;; |
a0da8069 NN |
1029 | |
1030 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1031 | ac_prev=infodir ;; | |
1032 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
c6b750e1 | 1033 | infodir=$ac_optarg ;; |
a0da8069 NN |
1034 | |
1035 | -libdir | --libdir | --libdi | --libd) | |
1036 | ac_prev=libdir ;; | |
1037 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
c6b750e1 | 1038 | libdir=$ac_optarg ;; |
a0da8069 NN |
1039 | |
1040 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1041 | | --libexe | --libex | --libe) | |
1042 | ac_prev=libexecdir ;; | |
1043 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1044 | | --libexe=* | --libex=* | --libe=*) | |
c6b750e1 | 1045 | libexecdir=$ac_optarg ;; |
a0da8069 | 1046 | |
81ecdfbb RW |
1047 | -localedir | --localedir | --localedi | --localed | --locale) |
1048 | ac_prev=localedir ;; | |
1049 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1050 | localedir=$ac_optarg ;; | |
1051 | ||
a0da8069 | 1052 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1053 | | --localstate | --localstat | --localsta | --localst | --locals) |
a0da8069 NN |
1054 | ac_prev=localstatedir ;; |
1055 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1056 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
c6b750e1 | 1057 | localstatedir=$ac_optarg ;; |
a0da8069 NN |
1058 | |
1059 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1060 | ac_prev=mandir ;; | |
1061 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
c6b750e1 | 1062 | mandir=$ac_optarg ;; |
a0da8069 NN |
1063 | |
1064 | -nfp | --nfp | --nf) | |
1065 | # Obsolete; use --without-fp. | |
1066 | with_fp=no ;; | |
1067 | ||
1068 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c6b750e1 | 1069 | | --no-cr | --no-c | -n) |
a0da8069 NN |
1070 | no_create=yes ;; |
1071 | ||
1072 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1073 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1074 | no_recursion=yes ;; | |
1075 | ||
1076 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1077 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1078 | | --oldin | --oldi | --old | --ol | --o) | |
1079 | ac_prev=oldincludedir ;; | |
1080 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1081 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1082 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
c6b750e1 | 1083 | oldincludedir=$ac_optarg ;; |
a0da8069 NN |
1084 | |
1085 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1086 | ac_prev=prefix ;; | |
1087 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
c6b750e1 | 1088 | prefix=$ac_optarg ;; |
a0da8069 NN |
1089 | |
1090 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1091 | | --program-pre | --program-pr | --program-p) | |
1092 | ac_prev=program_prefix ;; | |
1093 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1094 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
c6b750e1 | 1095 | program_prefix=$ac_optarg ;; |
a0da8069 NN |
1096 | |
1097 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1098 | | --program-suf | --program-su | --program-s) | |
1099 | ac_prev=program_suffix ;; | |
1100 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1101 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
c6b750e1 | 1102 | program_suffix=$ac_optarg ;; |
a0da8069 NN |
1103 | |
1104 | -program-transform-name | --program-transform-name \ | |
1105 | | --program-transform-nam | --program-transform-na \ | |
1106 | | --program-transform-n | --program-transform- \ | |
1107 | | --program-transform | --program-transfor \ | |
1108 | | --program-transfo | --program-transf \ | |
1109 | | --program-trans | --program-tran \ | |
1110 | | --progr-tra | --program-tr | --program-t) | |
1111 | ac_prev=program_transform_name ;; | |
1112 | -program-transform-name=* | --program-transform-name=* \ | |
1113 | | --program-transform-nam=* | --program-transform-na=* \ | |
1114 | | --program-transform-n=* | --program-transform-=* \ | |
1115 | | --program-transform=* | --program-transfor=* \ | |
1116 | | --program-transfo=* | --program-transf=* \ | |
1117 | | --program-trans=* | --program-tran=* \ | |
1118 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
c6b750e1 | 1119 | program_transform_name=$ac_optarg ;; |
a0da8069 | 1120 | |
81ecdfbb RW |
1121 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1122 | ac_prev=pdfdir ;; | |
1123 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1124 | pdfdir=$ac_optarg ;; | |
1125 | ||
1126 | -psdir | --psdir | --psdi | --psd | --ps) | |
1127 | ac_prev=psdir ;; | |
1128 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1129 | psdir=$ac_optarg ;; | |
1130 | ||
a0da8069 NN |
1131 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1132 | | -silent | --silent | --silen | --sile | --sil) | |
1133 | silent=yes ;; | |
1134 | ||
1135 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1136 | ac_prev=sbindir ;; | |
1137 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1138 | | --sbi=* | --sb=*) | |
c6b750e1 | 1139 | sbindir=$ac_optarg ;; |
a0da8069 NN |
1140 | |
1141 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1142 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1143 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1144 | | --sha | --sh) | |
1145 | ac_prev=sharedstatedir ;; | |
1146 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1147 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1148 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1149 | | --sha=* | --sh=*) | |
c6b750e1 | 1150 | sharedstatedir=$ac_optarg ;; |
a0da8069 NN |
1151 | |
1152 | -site | --site | --sit) | |
1153 | ac_prev=site ;; | |
1154 | -site=* | --site=* | --sit=*) | |
c6b750e1 | 1155 | site=$ac_optarg ;; |
a0da8069 NN |
1156 | |
1157 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1158 | ac_prev=srcdir ;; | |
1159 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
c6b750e1 | 1160 | srcdir=$ac_optarg ;; |
a0da8069 NN |
1161 | |
1162 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1163 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1164 | ac_prev=sysconfdir ;; | |
1165 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1166 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
c6b750e1 | 1167 | sysconfdir=$ac_optarg ;; |
a0da8069 NN |
1168 | |
1169 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
c6b750e1 | 1170 | ac_prev=target_alias ;; |
a0da8069 | 1171 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
c6b750e1 | 1172 | target_alias=$ac_optarg ;; |
a0da8069 NN |
1173 | |
1174 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1175 | verbose=yes ;; | |
1176 | ||
c6b750e1 DJ |
1177 | -version | --version | --versio | --versi | --vers | -V) |
1178 | ac_init_version=: ;; | |
a0da8069 NN |
1179 | |
1180 | -with-* | --with-*) | |
81ecdfbb | 1181 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a0da8069 | 1182 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1183 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1184 | as_fn_error "invalid package name: $ac_useropt" | |
1185 | ac_useropt_orig=$ac_useropt | |
1186 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1187 | case $ac_user_opts in | |
1188 | *" | |
1189 | "with_$ac_useropt" | |
1190 | "*) ;; | |
1191 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1192 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1193 | esac |
81ecdfbb | 1194 | eval with_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1195 | |
1196 | -without-* | --without-*) | |
81ecdfbb | 1197 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a0da8069 | 1198 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1199 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1200 | as_fn_error "invalid package name: $ac_useropt" | |
1201 | ac_useropt_orig=$ac_useropt | |
1202 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1203 | case $ac_user_opts in | |
1204 | *" | |
1205 | "with_$ac_useropt" | |
1206 | "*) ;; | |
1207 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1208 | ac_unrecognized_sep=', ';; | |
1209 | esac | |
1210 | eval with_$ac_useropt=no ;; | |
a0da8069 NN |
1211 | |
1212 | --x) | |
1213 | # Obsolete; use --with-x. | |
1214 | with_x=yes ;; | |
1215 | ||
1216 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1217 | | --x-incl | --x-inc | --x-in | --x-i) | |
1218 | ac_prev=x_includes ;; | |
1219 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1220 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
c6b750e1 | 1221 | x_includes=$ac_optarg ;; |
a0da8069 NN |
1222 | |
1223 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1224 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1225 | ac_prev=x_libraries ;; | |
1226 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1227 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
c6b750e1 | 1228 | x_libraries=$ac_optarg ;; |
a0da8069 | 1229 | |
81ecdfbb RW |
1230 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1231 | Try \`$0 --help' for more information." | |
a0da8069 NN |
1232 | ;; |
1233 | ||
c6b750e1 DJ |
1234 | *=*) |
1235 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1236 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1237 | case $ac_envvar in #( |
1238 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1239 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1240 | esac | |
1241 | eval $ac_envvar=\$ac_optarg | |
c6b750e1 DJ |
1242 | export $ac_envvar ;; |
1243 | ||
a0da8069 | 1244 | *) |
c6b750e1 | 1245 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1246 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
c6b750e1 | 1247 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1248 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
c6b750e1 | 1249 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
a0da8069 NN |
1250 | ;; |
1251 | ||
1252 | esac | |
1253 | done | |
1254 | ||
1255 | if test -n "$ac_prev"; then | |
c6b750e1 | 1256 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1257 | as_fn_error "missing argument to $ac_option" |
a0da8069 | 1258 | fi |
a0da8069 | 1259 | |
81ecdfbb RW |
1260 | if test -n "$ac_unrecognized_opts"; then |
1261 | case $enable_option_checking in | |
1262 | no) ;; | |
1263 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1264 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
c6b750e1 | 1265 | esac |
81ecdfbb | 1266 | fi |
a0da8069 | 1267 | |
81ecdfbb RW |
1268 | # Check all directory arguments for consistency. |
1269 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1270 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1271 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1272 | libdir localedir mandir | |
a0da8069 | 1273 | do |
81ecdfbb RW |
1274 | eval ac_val=\$$ac_var |
1275 | # Remove trailing slashes. | |
1276 | case $ac_val in | |
1277 | */ ) | |
1278 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1279 | eval $ac_var=\$ac_val;; | |
1280 | esac | |
1281 | # Be sure to have absolute directory names. | |
c6b750e1 | 1282 | case $ac_val in |
81ecdfbb RW |
1283 | [\\/$]* | ?:[\\/]* ) continue;; |
1284 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a0da8069 | 1285 | esac |
81ecdfbb | 1286 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
a0da8069 NN |
1287 | done |
1288 | ||
c6b750e1 DJ |
1289 | # There might be people who depend on the old broken behavior: `$host' |
1290 | # used to hold the argument of --host etc. | |
1291 | # FIXME: To remove some day. | |
1292 | build=$build_alias | |
1293 | host=$host_alias | |
1294 | target=$target_alias | |
376a0e54 | 1295 | |
c6b750e1 DJ |
1296 | # FIXME: To remove some day. |
1297 | if test "x$host_alias" != x; then | |
1298 | if test "x$build_alias" = x; then | |
1299 | cross_compiling=maybe | |
81ecdfbb | 1300 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
c6b750e1 DJ |
1301 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1302 | elif test "x$build_alias" != "x$host_alias"; then | |
1303 | cross_compiling=yes | |
1304 | fi | |
1305 | fi | |
1306 | ||
1307 | ac_tool_prefix= | |
1308 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1309 | ||
1310 | test "$silent" = yes && exec 6>/dev/null | |
a0da8069 | 1311 | |
a0da8069 | 1312 | |
81ecdfbb RW |
1313 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1314 | ac_ls_di=`ls -di .` && | |
1315 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1316 | as_fn_error "working directory cannot be determined" | |
1317 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1318 | as_fn_error "pwd does not report name of working directory" | |
1319 | ||
1320 | ||
a0da8069 NN |
1321 | # Find the source files, if location was not specified. |
1322 | if test -z "$srcdir"; then | |
1323 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1324 | # Try the directory containing this script, then the parent directory. |
1325 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1326 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1327 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1328 | X"$as_myself" : 'X\(//\)$' \| \ | |
1329 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1330 | $as_echo X"$as_myself" | | |
1331 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1332 | s//\1/ | |
1333 | q | |
1334 | } | |
1335 | /^X\(\/\/\)[^/].*/{ | |
1336 | s//\1/ | |
1337 | q | |
1338 | } | |
1339 | /^X\(\/\/\)$/{ | |
1340 | s//\1/ | |
1341 | q | |
1342 | } | |
1343 | /^X\(\/\).*/{ | |
1344 | s//\1/ | |
1345 | q | |
1346 | } | |
1347 | s/.*/./; q'` | |
a0da8069 | 1348 | srcdir=$ac_confdir |
81ecdfbb | 1349 | if test ! -r "$srcdir/$ac_unique_file"; then |
a0da8069 NN |
1350 | srcdir=.. |
1351 | fi | |
1352 | else | |
1353 | ac_srcdir_defaulted=no | |
1354 | fi | |
81ecdfbb RW |
1355 | if test ! -r "$srcdir/$ac_unique_file"; then |
1356 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1357 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1358 | fi | |
1359 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1360 | ac_abs_confdir=`( | |
1361 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1362 | pwd)` | |
1363 | # When building in place, set srcdir=. | |
1364 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1365 | srcdir=. | |
1366 | fi | |
1367 | # Remove unnecessary trailing slashes from srcdir. | |
1368 | # Double slashes in file names in object file debugging info | |
1369 | # mess up M-x gdb in Emacs. | |
1370 | case $srcdir in | |
1371 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1372 | esac | |
6d0cd39e AM |
1373 | case $srcdir in |
1374 | *" "*) | |
1375 | as_fn_error "path to source, $srcdir, contains spaces" | |
1376 | ;; | |
1377 | esac | |
9cc8ae67 PB |
1378 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1379 | ||
81ecdfbb RW |
1380 | for ac_var in $ac_precious_vars; do |
1381 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1382 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1383 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1384 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1385 | done | |
c6b750e1 DJ |
1386 | |
1387 | # | |
1388 | # Report the --help message. | |
1389 | # | |
1390 | if test "$ac_init_help" = "long"; then | |
1391 | # Omit some internal or obsolete options to make the list less imposing. | |
1392 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1393 | cat <<_ACEOF | |
1394 | \`configure' configures this package to adapt to many kinds of systems. | |
1395 | ||
1396 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1397 | ||
1398 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1399 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1400 | ||
1401 | Defaults for the options are specified in brackets. | |
1402 | ||
1403 | Configuration: | |
1404 | -h, --help display this help and exit | |
1405 | --help=short display options specific to this package | |
1406 | --help=recursive display the short help of all the included packages | |
1407 | -V, --version display version information and exit | |
1408 | -q, --quiet, --silent do not print \`checking...' messages | |
1409 | --cache-file=FILE cache test results in FILE [disabled] | |
1410 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1411 | -n, --no-create do not create output files | |
1412 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1413 | ||
c6b750e1 DJ |
1414 | Installation directories: |
1415 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1416 | [$ac_default_prefix] |
c6b750e1 | 1417 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1418 | [PREFIX] |
c6b750e1 DJ |
1419 | |
1420 | By default, \`make install' will install all the files in | |
1421 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1422 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1423 | for instance \`--prefix=\$HOME'. | |
1424 | ||
1425 | For better control, use the options below. | |
1426 | ||
1427 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1428 | --bindir=DIR user executables [EPREFIX/bin] |
1429 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1430 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1431 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1432 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1433 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1434 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1435 | --includedir=DIR C header files [PREFIX/include] | |
1436 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1437 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1438 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1439 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1440 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1441 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1442 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1443 | --htmldir=DIR html documentation [DOCDIR] | |
1444 | --dvidir=DIR dvi documentation [DOCDIR] | |
1445 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1446 | --psdir=DIR ps documentation [DOCDIR] | |
c6b750e1 DJ |
1447 | _ACEOF |
1448 | ||
1449 | cat <<\_ACEOF | |
1450 | ||
1451 | Program names: | |
1452 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1453 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1454 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1455 | ||
1456 | System types: | |
1457 | --build=BUILD configure for building on BUILD [guessed] | |
1458 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1459 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1460 | _ACEOF | |
a0da8069 | 1461 | fi |
a0da8069 | 1462 | |
c6b750e1 DJ |
1463 | if test -n "$ac_init_help"; then |
1464 | ||
1465 | cat <<\_ACEOF | |
1466 | ||
1467 | Optional Features: | |
81ecdfbb | 1468 | --disable-option-checking ignore unrecognized --enable/--with options |
c6b750e1 DJ |
1469 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1470 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1b6c0831 L |
1471 | --enable-as-accelerator-for=ARG |
1472 | build as offload target compiler. Specify offload | |
1473 | host triple by ARG | |
1474 | --enable-offload-targets=LIST | |
1475 | enable offloading to devices from comma-separated | |
1476 | LIST of TARGET[=DIR]. Use optional path to find | |
1477 | offload target compiler during the build | |
c7791212 | 1478 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7837304f | 1479 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
6c3bc0f8 | 1480 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
edeefb67 L |
1481 | Enable compressed debug sections for gas, gold or ld |
1482 | by default | |
89a1e9c3 PB |
1483 | --disable-libquadmath do not build libquadmath directory |
1484 | --disable-libquadmath-support | |
1485 | disable libquadmath support for Fortran | |
521ec477 DD |
1486 | --enable-libada build libada directory |
1487 | --enable-libssp build libssp directory | |
f66a9a70 | 1488 | --disable-libstdcxx do not build libstdc++-v3 directory |
1b6c0831 L |
1489 | --enable-liboffloadmic=ARG |
1490 | build liboffloadmic [ARG={no,host,target}] | |
ffdd6afc | 1491 | --enable-bootstrap enable bootstrapping [yes if native build] |
7ec59b9e | 1492 | --disable-isl-version-check |
4849dfd8 | 1493 | disable check for isl version |
700d40ca | 1494 | --enable-lto enable link time optimization support |
1b6c0831 L |
1495 | --enable-linker-plugin-configure-flags=FLAGS |
1496 | additional flags for configuring linker plugins | |
1497 | [none] | |
1498 | --enable-linker-plugin-flags=FLAGS | |
1499 | additional flags for configuring and building linker | |
1500 | plugins [none] | |
bf41f30d | 1501 | --enable-host-shared build host code as shared libraries |
7837304f AS |
1502 | --enable-stage1-languages[=all] |
1503 | choose additional languages to build during stage1. | |
1504 | Mostly useful for compiler development | |
1505 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1506 | Objective-C runtime | |
ce6c656d | 1507 | --enable-vtable-verify Enable vtable verification feature |
521ec477 | 1508 | --enable-serial-[{host,target,build}-]configure |
7837304f AS |
1509 | force sequential configuration of sub-packages for |
1510 | the host, target or build machine, or all | |
1511 | sub-packages | |
1512 | --enable-maintainer-mode | |
1513 | enable make rules and dependencies not useful (and | |
1514 | sometimes confusing) to the casual installer | |
1515 | --enable-stage1-checking[=all] | |
1516 | choose additional checking for stage1 of the | |
1517 | compiler | |
c6b750e1 DJ |
1518 | --enable-werror enable -Werror in bootstrap stage2 and later |
1519 | ||
1520 | Optional Packages: | |
1521 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1522 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1523 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
cf39cfc5 | 1524 | --with-system-zlib use installed libz |
7837304f AS |
1525 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1526 | Equivalent to --with-mpc-include=PATH/include plus | |
1527 | --with-mpc-lib=PATH/lib | |
1528 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1529 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
521ec477 DD |
1530 | --with-mpfr-dir=PATH this option has been REMOVED |
1531 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
7837304f AS |
1532 | Equivalent to --with-mpfr-include=PATH/include plus |
1533 | --with-mpfr-lib=PATH/lib | |
c6b750e1 | 1534 | --with-mpfr-include=PATH |
521ec477 DD |
1535 | specify directory for installed MPFR include files |
1536 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1537 | --with-gmp-dir=PATH this option has been REMOVED | |
7837304f AS |
1538 | --with-gmp=PATH specify prefix directory for the installed GMP |
1539 | package. Equivalent to | |
1540 | --with-gmp-include=PATH/include plus | |
1541 | --with-gmp-lib=PATH/lib | |
521ec477 DD |
1542 | --with-gmp-include=PATH specify directory for installed GMP include files |
1543 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
b3676d82 | 1544 | --with-stage1-libs=LIBS libraries for stage1 |
7837304f AS |
1545 | --with-stage1-ldflags=FLAGS |
1546 | linker flags for stage1 | |
7837304f AS |
1547 | --with-boot-libs=LIBS libraries for stage2 and later |
1548 | --with-boot-ldflags=FLAGS | |
1549 | linker flags for stage2 and later | |
4849dfd8 | 1550 | --with-isl=PATH Specify prefix directory for the installed isl |
7837304f | 1551 | package. Equivalent to |
7ec59b9e L |
1552 | --with-isl-include=PATH/include plus |
1553 | --with-isl-lib=PATH/lib | |
4849dfd8 NC |
1554 | --with-isl-include=PATH Specify directory for installed isl include files |
1555 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
05a13254 NC |
1556 | --with-target-bdw-gc=PATHLIST |
1557 | specify prefix directory for installed bdw-gc | |
1558 | package. Equivalent to | |
1559 | --with-target-bdw-gc-include=PATH/include plus | |
1560 | --with-target-bdw-gc-lib=PATH/lib | |
1561 | --with-target-bdw-gc-include=PATHLIST | |
1562 | specify directories for installed bdw-gc include | |
1563 | files | |
1564 | --with-target-bdw-gc-lib=PATHLIST | |
1565 | specify directories for installed bdw-gc library | |
bf41f30d NC |
1566 | --with-gcc-major-version-only |
1567 | use only GCC major number in filesystem paths | |
521ec477 | 1568 | --with-build-sysroot=SYSROOT |
c6b750e1 | 1569 | use sysroot as the system root during the build |
8a6ee3ab | 1570 | --with-debug-prefix-map='A=B C=D ...' |
7837304f AS |
1571 | map A to B, C to D ... in debug information |
1572 | --with-build-config='NAME NAME2...' | |
1573 | use config/NAME.mk build configuration | |
521ec477 | 1574 | --with-build-time-tools=PATH |
c6b750e1 | 1575 | use given path to find target tools during the build |
c6b750e1 DJ |
1576 | |
1577 | Some influential environment variables: | |
1578 | CC C compiler command | |
1579 | CFLAGS C compiler flags | |
1580 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1581 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1582 | LIBS libraries to pass to the linker, e.g. -l<library> |
1583 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1584 | you have headers in a nonstandard directory <include dir> | |
18f6b6ee PB |
1585 | CXX C++ compiler command |
1586 | CXXFLAGS C++ compiler flags | |
4074d5f2 RW |
1587 | build_configargs |
1588 | additional configure arguments for build directories | |
1589 | host_configargs | |
1590 | additional configure arguments for host directories | |
1591 | target_configargs | |
1592 | additional configure arguments for target directories | |
9a819804 AO |
1593 | AR AR for the host |
1594 | AS AS for the host | |
1595 | DLLTOOL DLLTOOL for the host | |
1596 | LD LD for the host | |
1597 | LIPO LIPO for the host | |
1598 | NM NM for the host | |
1599 | RANLIB RANLIB for the host | |
1600 | STRIP STRIP for the host | |
1601 | WINDRES WINDRES for the host | |
0c24b341 | 1602 | WINDMC WINDMC for the host |
9a819804 AO |
1603 | OBJCOPY OBJCOPY for the host |
1604 | OBJDUMP OBJDUMP for the host | |
b121d7d4 | 1605 | READELF READELF for the host |
9a819804 AO |
1606 | CC_FOR_TARGET |
1607 | CC for the target | |
1608 | CXX_FOR_TARGET | |
1609 | CXX for the target | |
1610 | GCC_FOR_TARGET | |
1611 | GCC for the target | |
9a819804 AO |
1612 | GFORTRAN_FOR_TARGET |
1613 | GFORTRAN for the target | |
e552509b ILT |
1614 | GOC_FOR_TARGET |
1615 | GOC for the target | |
9a819804 AO |
1616 | AR_FOR_TARGET |
1617 | AR for the target | |
1618 | AS_FOR_TARGET | |
1619 | AS for the target | |
1620 | DLLTOOL_FOR_TARGET | |
1621 | DLLTOOL for the target | |
1622 | LD_FOR_TARGET | |
1623 | LD for the target | |
1624 | LIPO_FOR_TARGET | |
1625 | LIPO for the target | |
1626 | NM_FOR_TARGET | |
1627 | NM for the target | |
6b91c541 AP |
1628 | OBJCOPY_FOR_TARGET |
1629 | OBJCOPY for the target | |
9a819804 AO |
1630 | OBJDUMP_FOR_TARGET |
1631 | OBJDUMP for the target | |
1632 | RANLIB_FOR_TARGET | |
1633 | RANLIB for the target | |
b121d7d4 DD |
1634 | READELF_FOR_TARGET |
1635 | READELF for the target | |
9a819804 AO |
1636 | STRIP_FOR_TARGET |
1637 | STRIP for the target | |
1638 | WINDRES_FOR_TARGET | |
1639 | WINDRES for the target | |
0c24b341 NC |
1640 | WINDMC_FOR_TARGET |
1641 | WINDMC for the target | |
c6b750e1 DJ |
1642 | |
1643 | Use these variables to override the choices made by `configure' or to help | |
1644 | it to find libraries and programs with nonstandard names/locations. | |
1645 | ||
81ecdfbb | 1646 | Report bugs to the package provider. |
c6b750e1 | 1647 | _ACEOF |
81ecdfbb | 1648 | ac_status=$? |
c6b750e1 DJ |
1649 | fi |
1650 | ||
1651 | if test "$ac_init_help" = "recursive"; then | |
1652 | # If there are subdirs, report their specific --help. | |
c6b750e1 | 1653 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1654 | test -d "$ac_dir" || |
1655 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1656 | continue | |
c6b750e1 DJ |
1657 | ac_builddir=. |
1658 | ||
81ecdfbb RW |
1659 | case "$ac_dir" in |
1660 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1661 | *) | |
1662 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1663 | # A ".." for each directory in $ac_dir_suffix. | |
1664 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1665 | case $ac_top_builddir_sub in | |
1666 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1667 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1668 | esac ;; | |
1669 | esac | |
1670 | ac_abs_top_builddir=$ac_pwd | |
1671 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1672 | # for backward compatibility: | |
1673 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
1674 | |
1675 | case $srcdir in | |
81ecdfbb | 1676 | .) # We are building in place. |
c6b750e1 | 1677 | ac_srcdir=. |
81ecdfbb RW |
1678 | ac_top_srcdir=$ac_top_builddir_sub |
1679 | ac_abs_top_srcdir=$ac_pwd ;; | |
1680 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 1681 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1682 | ac_top_srcdir=$srcdir |
1683 | ac_abs_top_srcdir=$srcdir ;; | |
1684 | *) # Relative name. | |
1685 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1686 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1687 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 1688 | esac |
81ecdfbb RW |
1689 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1690 | ||
1691 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1692 | # Check for guested configure. | |
1693 | if test -f "$ac_srcdir/configure.gnu"; then | |
1694 | echo && | |
1695 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1696 | elif test -f "$ac_srcdir/configure"; then | |
1697 | echo && | |
1698 | $SHELL "$ac_srcdir/configure" --help=recursive | |
c6b750e1 | 1699 | else |
81ecdfbb RW |
1700 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1701 | fi || ac_status=$? | |
1702 | cd "$ac_pwd" || { ac_status=$?; break; } | |
c6b750e1 DJ |
1703 | done |
1704 | fi | |
1705 | ||
81ecdfbb | 1706 | test -n "$ac_init_help" && exit $ac_status |
c6b750e1 DJ |
1707 | if $ac_init_version; then |
1708 | cat <<\_ACEOF | |
81ecdfbb RW |
1709 | configure |
1710 | generated by GNU Autoconf 2.64 | |
c6b750e1 | 1711 | |
81ecdfbb | 1712 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
1713 | This configure script is free software; the Free Software Foundation |
1714 | gives unlimited permission to copy, distribute and modify it. | |
1715 | _ACEOF | |
81ecdfbb | 1716 | exit |
c6b750e1 | 1717 | fi |
81ecdfbb RW |
1718 | |
1719 | ## ------------------------ ## | |
1720 | ## Autoconf initialization. ## | |
1721 | ## ------------------------ ## | |
1722 | ||
1723 | # ac_fn_c_try_compile LINENO | |
1724 | # -------------------------- | |
1725 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1726 | ac_fn_c_try_compile () | |
1727 | { | |
1728 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1729 | rm -f conftest.$ac_objext | |
1730 | if { { ac_try="$ac_compile" | |
1731 | case "(($ac_try" in | |
1732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1733 | *) ac_try_echo=$ac_try;; | |
1734 | esac | |
1735 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1736 | $as_echo "$ac_try_echo"; } >&5 | |
1737 | (eval "$ac_compile") 2>conftest.err | |
1738 | ac_status=$? | |
1739 | if test -s conftest.err; then | |
1740 | grep -v '^ *+' conftest.err >conftest.er1 | |
1741 | cat conftest.er1 >&5 | |
1742 | mv -f conftest.er1 conftest.err | |
1743 | fi | |
1744 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1745 | test $ac_status = 0; } && { | |
1746 | test -z "$ac_c_werror_flag" || | |
1747 | test ! -s conftest.err | |
1748 | } && test -s conftest.$ac_objext; then : | |
1749 | ac_retval=0 | |
1750 | else | |
1751 | $as_echo "$as_me: failed program was:" >&5 | |
1752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1753 | ||
1754 | ac_retval=1 | |
1755 | fi | |
1756 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1757 | return $ac_retval | |
1758 | ||
1759 | } # ac_fn_c_try_compile | |
1760 | ||
1761 | # ac_fn_cxx_try_compile LINENO | |
1762 | # ---------------------------- | |
1763 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1764 | ac_fn_cxx_try_compile () | |
1765 | { | |
1766 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1767 | rm -f conftest.$ac_objext | |
1768 | if { { ac_try="$ac_compile" | |
1769 | case "(($ac_try" in | |
1770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1771 | *) ac_try_echo=$ac_try;; | |
1772 | esac | |
1773 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1774 | $as_echo "$ac_try_echo"; } >&5 | |
1775 | (eval "$ac_compile") 2>conftest.err | |
1776 | ac_status=$? | |
1777 | if test -s conftest.err; then | |
1778 | grep -v '^ *+' conftest.err >conftest.er1 | |
1779 | cat conftest.er1 >&5 | |
1780 | mv -f conftest.er1 conftest.err | |
1781 | fi | |
1782 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1783 | test $ac_status = 0; } && { | |
1784 | test -z "$ac_cxx_werror_flag" || | |
1785 | test ! -s conftest.err | |
1786 | } && test -s conftest.$ac_objext; then : | |
1787 | ac_retval=0 | |
1788 | else | |
1789 | $as_echo "$as_me: failed program was:" >&5 | |
1790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1791 | ||
1792 | ac_retval=1 | |
1793 | fi | |
1794 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1795 | return $ac_retval | |
1796 | ||
1797 | } # ac_fn_cxx_try_compile | |
1798 | ||
b3676d82 EB |
1799 | # ac_fn_cxx_try_link LINENO |
1800 | # ------------------------- | |
1801 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1802 | ac_fn_cxx_try_link () | |
1803 | { | |
1804 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1805 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1806 | if { { ac_try="$ac_link" | |
1807 | case "(($ac_try" in | |
1808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1809 | *) ac_try_echo=$ac_try;; | |
1810 | esac | |
1811 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1812 | $as_echo "$ac_try_echo"; } >&5 | |
1813 | (eval "$ac_link") 2>conftest.err | |
1814 | ac_status=$? | |
1815 | if test -s conftest.err; then | |
1816 | grep -v '^ *+' conftest.err >conftest.er1 | |
1817 | cat conftest.er1 >&5 | |
1818 | mv -f conftest.er1 conftest.err | |
1819 | fi | |
1820 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1821 | test $ac_status = 0; } && { | |
1822 | test -z "$ac_cxx_werror_flag" || | |
1823 | test ! -s conftest.err | |
1824 | } && test -s conftest$ac_exeext && { | |
1825 | test "$cross_compiling" = yes || | |
1826 | $as_test_x conftest$ac_exeext | |
1827 | }; then : | |
1828 | ac_retval=0 | |
1829 | else | |
1830 | $as_echo "$as_me: failed program was:" >&5 | |
1831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1832 | ||
1833 | ac_retval=1 | |
1834 | fi | |
1835 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1836 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1837 | # interfere with the next link command; also delete a directory that is | |
1838 | # left behind by Apple's compiler. We do this before executing the actions. | |
1839 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1840 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1841 | return $ac_retval | |
1842 | ||
1843 | } # ac_fn_cxx_try_link | |
1844 | ||
81ecdfbb RW |
1845 | # ac_fn_c_try_link LINENO |
1846 | # ----------------------- | |
1847 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1848 | ac_fn_c_try_link () | |
1849 | { | |
1850 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1851 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1852 | if { { ac_try="$ac_link" | |
1853 | case "(($ac_try" in | |
1854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1855 | *) ac_try_echo=$ac_try;; | |
1856 | esac | |
1857 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1858 | $as_echo "$ac_try_echo"; } >&5 | |
1859 | (eval "$ac_link") 2>conftest.err | |
1860 | ac_status=$? | |
1861 | if test -s conftest.err; then | |
1862 | grep -v '^ *+' conftest.err >conftest.er1 | |
1863 | cat conftest.er1 >&5 | |
1864 | mv -f conftest.er1 conftest.err | |
1865 | fi | |
1866 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1867 | test $ac_status = 0; } && { | |
1868 | test -z "$ac_c_werror_flag" || | |
1869 | test ! -s conftest.err | |
1870 | } && test -s conftest$ac_exeext && { | |
1871 | test "$cross_compiling" = yes || | |
1872 | $as_test_x conftest$ac_exeext | |
1873 | }; then : | |
1874 | ac_retval=0 | |
1875 | else | |
1876 | $as_echo "$as_me: failed program was:" >&5 | |
1877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1878 | ||
1879 | ac_retval=1 | |
1880 | fi | |
1881 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1882 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1883 | # interfere with the next link command; also delete a directory that is | |
1884 | # left behind by Apple's compiler. We do this before executing the actions. | |
1885 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1886 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1887 | return $ac_retval | |
1888 | ||
1889 | } # ac_fn_c_try_link | |
1890 | cat >config.log <<_ACEOF | |
c6b750e1 DJ |
1891 | This file contains any messages produced by compilers while |
1892 | running configure, to aid debugging if configure makes a mistake. | |
1893 | ||
1894 | It was created by $as_me, which was | |
81ecdfbb | 1895 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
1896 | |
1897 | $ $0 $@ | |
1898 | ||
1899 | _ACEOF | |
81ecdfbb | 1900 | exec 5>>config.log |
c6b750e1 DJ |
1901 | { |
1902 | cat <<_ASUNAME | |
1903 | ## --------- ## | |
1904 | ## Platform. ## | |
1905 | ## --------- ## | |
1906 | ||
1907 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1908 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1909 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1910 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1911 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1912 | ||
1913 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1914 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1915 | ||
1916 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1917 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1918 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 1919 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
c6b750e1 DJ |
1920 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1921 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1922 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1923 | ||
1924 | _ASUNAME | |
1925 | ||
1926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1927 | for as_dir in $PATH | |
1928 | do | |
1929 | IFS=$as_save_IFS | |
1930 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1931 | $as_echo "PATH: $as_dir" |
1932 | done | |
1933 | IFS=$as_save_IFS | |
c6b750e1 DJ |
1934 | |
1935 | } >&5 | |
1936 | ||
1937 | cat >&5 <<_ACEOF | |
1938 | ||
1939 | ||
1940 | ## ----------- ## | |
1941 | ## Core tests. ## | |
1942 | ## ----------- ## | |
1943 | ||
1944 | _ACEOF | |
1945 | ||
1946 | ||
1947 | # Keep a trace of the command line. | |
1948 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1949 | # Strip out --silent because we don't want to record it for future runs. | |
1950 | # Also quote any args containing shell meta-characters. | |
1951 | # Make two passes to allow for proper duplicate-argument suppression. | |
1952 | ac_configure_args= | |
1953 | ac_configure_args0= | |
1954 | ac_configure_args1= | |
c6b750e1 DJ |
1955 | ac_must_keep_next=false |
1956 | for ac_pass in 1 2 | |
1957 | do | |
1958 | for ac_arg | |
1959 | do | |
1960 | case $ac_arg in | |
1961 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1962 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1963 | | -silent | --silent | --silen | --sile | --sil) | |
1964 | continue ;; | |
81ecdfbb RW |
1965 | *\'*) |
1966 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c6b750e1 DJ |
1967 | esac |
1968 | case $ac_pass in | |
81ecdfbb | 1969 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
c6b750e1 | 1970 | 2) |
81ecdfbb | 1971 | as_fn_append ac_configure_args1 " '$ac_arg'" |
c6b750e1 DJ |
1972 | if test $ac_must_keep_next = true; then |
1973 | ac_must_keep_next=false # Got value, back to normal. | |
1974 | else | |
1975 | case $ac_arg in | |
1976 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1977 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1978 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1979 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1980 | case "$ac_configure_args0 " in | |
1981 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1982 | esac | |
1983 | ;; | |
1984 | -* ) ac_must_keep_next=true ;; | |
1985 | esac | |
1986 | fi | |
81ecdfbb | 1987 | as_fn_append ac_configure_args " '$ac_arg'" |
c6b750e1 DJ |
1988 | ;; |
1989 | esac | |
1990 | done | |
1991 | done | |
81ecdfbb RW |
1992 | { ac_configure_args0=; unset ac_configure_args0;} |
1993 | { ac_configure_args1=; unset ac_configure_args1;} | |
c6b750e1 DJ |
1994 | |
1995 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1996 | # config.log. We remove comments because anyway the quotes in there | |
1997 | # would cause problems or look ugly. | |
81ecdfbb RW |
1998 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1999 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
c6b750e1 DJ |
2000 | trap 'exit_status=$? |
2001 | # Save into config.log some information that might help in debugging. | |
2002 | { | |
2003 | echo | |
2004 | ||
2005 | cat <<\_ASBOX | |
2006 | ## ---------------- ## | |
2007 | ## Cache variables. ## | |
2008 | ## ---------------- ## | |
2009 | _ASBOX | |
2010 | echo | |
2011 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2012 | ( |
2013 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2014 | eval ac_val=\$$ac_var | |
2015 | case $ac_val in #( | |
2016 | *${as_nl}*) | |
2017 | case $ac_var in #( | |
2018 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2019 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2020 | esac | |
2021 | case $ac_var in #( | |
2022 | _ | IFS | as_nl) ;; #( | |
2023 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2024 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2025 | esac ;; | |
2026 | esac | |
2027 | done | |
c6b750e1 | 2028 | (set) 2>&1 | |
81ecdfbb RW |
2029 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2030 | *${as_nl}ac_space=\ *) | |
c6b750e1 | 2031 | sed -n \ |
81ecdfbb RW |
2032 | "s/'\''/'\''\\\\'\'''\''/g; |
2033 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2034 | ;; #( | |
c6b750e1 | 2035 | *) |
81ecdfbb | 2036 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 2037 | ;; |
81ecdfbb RW |
2038 | esac | |
2039 | sort | |
2040 | ) | |
c6b750e1 DJ |
2041 | echo |
2042 | ||
2043 | cat <<\_ASBOX | |
2044 | ## ----------------- ## | |
2045 | ## Output variables. ## | |
2046 | ## ----------------- ## | |
2047 | _ASBOX | |
2048 | echo | |
2049 | for ac_var in $ac_subst_vars | |
2050 | do | |
81ecdfbb RW |
2051 | eval ac_val=\$$ac_var |
2052 | case $ac_val in | |
2053 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2054 | esac | |
2055 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2056 | done | sort |
2057 | echo | |
2058 | ||
2059 | if test -n "$ac_subst_files"; then | |
2060 | cat <<\_ASBOX | |
81ecdfbb RW |
2061 | ## ------------------- ## |
2062 | ## File substitutions. ## | |
2063 | ## ------------------- ## | |
c6b750e1 DJ |
2064 | _ASBOX |
2065 | echo | |
2066 | for ac_var in $ac_subst_files | |
2067 | do | |
81ecdfbb RW |
2068 | eval ac_val=\$$ac_var |
2069 | case $ac_val in | |
2070 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2071 | esac | |
2072 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2073 | done | sort |
2074 | echo | |
2075 | fi | |
2076 | ||
2077 | if test -s confdefs.h; then | |
2078 | cat <<\_ASBOX | |
2079 | ## ----------- ## | |
2080 | ## confdefs.h. ## | |
2081 | ## ----------- ## | |
2082 | _ASBOX | |
2083 | echo | |
81ecdfbb | 2084 | cat confdefs.h |
c6b750e1 DJ |
2085 | echo |
2086 | fi | |
2087 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2088 | $as_echo "$as_me: caught signal $ac_signal" |
2089 | $as_echo "$as_me: exit $exit_status" | |
c6b750e1 | 2090 | } >&5 |
81ecdfbb RW |
2091 | rm -f core *.core core.conftest.* && |
2092 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
c6b750e1 | 2093 | exit $exit_status |
81ecdfbb | 2094 | ' 0 |
c6b750e1 | 2095 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2096 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
c6b750e1 DJ |
2097 | done |
2098 | ac_signal=0 | |
2099 | ||
2100 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2101 | rm -f -r conftest* confdefs.h |
2102 | ||
2103 | $as_echo "/* confdefs.h */" > confdefs.h | |
c6b750e1 DJ |
2104 | |
2105 | # Predefined preprocessor variables. | |
2106 | ||
2107 | cat >>confdefs.h <<_ACEOF | |
2108 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2109 | _ACEOF | |
2110 | ||
c6b750e1 DJ |
2111 | cat >>confdefs.h <<_ACEOF |
2112 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2113 | _ACEOF | |
2114 | ||
c6b750e1 DJ |
2115 | cat >>confdefs.h <<_ACEOF |
2116 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2117 | _ACEOF | |
2118 | ||
c6b750e1 DJ |
2119 | cat >>confdefs.h <<_ACEOF |
2120 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2121 | _ACEOF | |
2122 | ||
c6b750e1 DJ |
2123 | cat >>confdefs.h <<_ACEOF |
2124 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2125 | _ACEOF | |
2126 | ||
81ecdfbb RW |
2127 | cat >>confdefs.h <<_ACEOF |
2128 | #define PACKAGE_URL "$PACKAGE_URL" | |
2129 | _ACEOF | |
2130 | ||
c6b750e1 DJ |
2131 | |
2132 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2133 | # Prefer an explicitly selected file to automatically selected ones. |
2134 | ac_site_file1=NONE | |
2135 | ac_site_file2=NONE | |
2136 | if test -n "$CONFIG_SITE"; then | |
2137 | ac_site_file1=$CONFIG_SITE | |
2138 | elif test "x$prefix" != xNONE; then | |
2139 | ac_site_file1=$prefix/share/config.site | |
2140 | ac_site_file2=$prefix/etc/config.site | |
2141 | else | |
2142 | ac_site_file1=$ac_default_prefix/share/config.site | |
2143 | ac_site_file2=$ac_default_prefix/etc/config.site | |
a0da8069 | 2144 | fi |
81ecdfbb RW |
2145 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2146 | do | |
2147 | test "x$ac_site_file" = xNONE && continue | |
a0da8069 | 2148 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2149 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2150 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
c6b750e1 | 2151 | sed 's/^/| /' "$ac_site_file" >&5 |
a0da8069 NN |
2152 | . "$ac_site_file" |
2153 | fi | |
2154 | done | |
2155 | ||
2156 | if test -r "$cache_file"; then | |
c6b750e1 DJ |
2157 | # Some versions of bash will fail to source /dev/null (special |
2158 | # files actually), so we avoid doing that. | |
2159 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2160 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2161 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
c6b750e1 | 2162 | case $cache_file in |
81ecdfbb RW |
2163 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2164 | *) . "./$cache_file";; | |
c6b750e1 DJ |
2165 | esac |
2166 | fi | |
a0da8069 | 2167 | else |
81ecdfbb RW |
2168 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2169 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
c6b750e1 DJ |
2170 | >$cache_file |
2171 | fi | |
2172 | ||
2173 | # Check that the precious variables saved in the cache have kept the same | |
2174 | # value. | |
2175 | ac_cache_corrupted=false | |
81ecdfbb | 2176 | for ac_var in $ac_precious_vars; do |
c6b750e1 DJ |
2177 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2178 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2179 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2180 | eval ac_new_val=\$ac_env_${ac_var}_value | |
c6b750e1 DJ |
2181 | case $ac_old_set,$ac_new_set in |
2182 | set,) | |
81ecdfbb RW |
2183 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2184 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
c6b750e1 DJ |
2185 | ac_cache_corrupted=: ;; |
2186 | ,set) | |
81ecdfbb RW |
2187 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2188 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
c6b750e1 DJ |
2189 | ac_cache_corrupted=: ;; |
2190 | ,);; | |
2191 | *) | |
2192 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2193 | # differences in whitespace do not lead to failure. |
2194 | ac_old_val_w=`echo x $ac_old_val` | |
2195 | ac_new_val_w=`echo x $ac_new_val` | |
2196 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2197 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2198 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2199 | ac_cache_corrupted=: | |
2200 | else | |
2201 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2202 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2203 | eval $ac_var=\$ac_old_val | |
2204 | fi | |
2205 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2206 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2207 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2208 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
c6b750e1 DJ |
2209 | fi;; |
2210 | esac | |
2211 | # Pass precious variables to config.status. | |
2212 | if test "$ac_new_set" = set; then | |
2213 | case $ac_new_val in | |
81ecdfbb | 2214 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c6b750e1 DJ |
2215 | *) ac_arg=$ac_var=$ac_new_val ;; |
2216 | esac | |
2217 | case " $ac_configure_args " in | |
2218 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2219 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
c6b750e1 DJ |
2220 | esac |
2221 | fi | |
2222 | done | |
2223 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2224 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2225 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2226 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2227 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2228 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
a0da8069 | 2229 | fi |
81ecdfbb RW |
2230 | ## -------------------- ## |
2231 | ## Main body of script. ## | |
2232 | ## -------------------- ## | |
a0da8069 NN |
2233 | |
2234 | ac_ext=c | |
a0da8069 | 2235 | ac_cpp='$CPP $CPPFLAGS' |
c6b750e1 DJ |
2236 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2237 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2238 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2239 | ||
2240 | ||
2241 | ||
2242 | ||
c6b750e1 DJ |
2243 | |
2244 | ||
34a0f3cf | 2245 | |
c6b750e1 | 2246 | |
5b553f7e RW |
2247 | |
2248 | progname=$0 | |
2249 | # if PWD already has a value, it is probably wrong. | |
2250 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2251 | ||
2252 | # Export original configure arguments for use by sub-configures. | |
2253 | # Quote arguments with shell meta charatcers. | |
2254 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2255 | set -- "$progname" "$@" | |
2256 | for ac_arg | |
2257 | do | |
2258 | case "$ac_arg" in | |
2259 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2260 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2261 | # if the argument is of the form -foo=baz, quote the baz part only | |
2262 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2263 | *) ;; | |
2264 | esac | |
2265 | # Add the quoted argument to the list. | |
2266 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2267 | done | |
2268 | if test "$silent" = yes; then | |
2269 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2270 | fi | |
2271 | # Remove the initial space we just introduced and, as these will be | |
2272 | # expanded by make, quote '$'. | |
2273 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2274 | ||
c6b750e1 DJ |
2275 | |
2276 | # Find the build, host, and target systems. | |
a0da8069 | 2277 | ac_aux_dir= |
81ecdfbb RW |
2278 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2279 | for ac_t in install-sh install.sh shtool; do | |
2280 | if test -f "$ac_dir/$ac_t"; then | |
2281 | ac_aux_dir=$ac_dir | |
2282 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2283 | break 2 | |
2284 | fi | |
2285 | done | |
a0da8069 NN |
2286 | done |
2287 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2288 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a0da8069 | 2289 | fi |
81ecdfbb RW |
2290 | |
2291 | # These three variables are undocumented and unsupported, | |
2292 | # and are intended to be withdrawn in a future Autoconf release. | |
2293 | # They can cause serious problems if a builder's source tree is in a directory | |
2294 | # whose full name contains unusual characters. | |
2295 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2296 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2297 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2298 | ||
a0da8069 | 2299 | |
c6b750e1 | 2300 | # Make sure we can run config.sub. |
81ecdfbb RW |
2301 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2302 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2303 | ||
2304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2305 | $as_echo_n "checking build system type... " >&6; } | |
2306 | if test "${ac_cv_build+set}" = set; then : | |
2307 | $as_echo_n "(cached) " >&6 | |
2308 | else | |
2309 | ac_build_alias=$build_alias | |
2310 | test "x$ac_build_alias" = x && | |
2311 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2312 | test "x$ac_build_alias" = x && | |
2313 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2314 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2315 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2316 | ||
2317 | fi | |
2318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2319 | $as_echo "$ac_cv_build" >&6; } | |
2320 | case $ac_cv_build in | |
2321 | *-*-*) ;; | |
2322 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2323 | esac | |
c6b750e1 | 2324 | build=$ac_cv_build |
81ecdfbb RW |
2325 | ac_save_IFS=$IFS; IFS='-' |
2326 | set x $ac_cv_build | |
2327 | shift | |
2328 | build_cpu=$1 | |
2329 | build_vendor=$2 | |
2330 | shift; shift | |
2331 | # Remember, the first character of IFS is used to create $*, | |
2332 | # except with old shells: | |
2333 | build_os=$* | |
2334 | IFS=$ac_save_IFS | |
2335 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
a0da8069 | 2336 | |
a0da8069 | 2337 | |
c6b750e1 DJ |
2338 | case ${build_alias} in |
2339 | "") build_noncanonical=${build} ;; | |
2340 | *) build_noncanonical=${build_alias} ;; | |
cac3d6c4 CM |
2341 | esac |
2342 | ||
2343 | ||
cac3d6c4 | 2344 | |
c6b750e1 DJ |
2345 | case ${host_alias} in |
2346 | "") host_noncanonical=${build_noncanonical} ;; | |
2347 | *) host_noncanonical=${host_alias} ;; | |
cac3d6c4 CM |
2348 | esac |
2349 | ||
cac3d6c4 | 2350 | |
c6b750e1 DJ |
2351 | |
2352 | case ${target_alias} in | |
2353 | "") target_noncanonical=${host_noncanonical} ;; | |
2354 | *) target_noncanonical=${target_alias} ;; | |
cac3d6c4 CM |
2355 | esac |
2356 | ||
cac3d6c4 | 2357 | |
c6b750e1 DJ |
2358 | |
2359 | ||
2360 | test "$host_noncanonical" = "$target_noncanonical" && | |
a0da8069 NN |
2361 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2362 | NONENONEs,x,x, && | |
c6b750e1 | 2363 | program_transform_name=s,y,y, |
cac3d6c4 | 2364 | |
81ecdfbb RW |
2365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2366 | $as_echo_n "checking host system type... " >&6; } | |
2367 | if test "${ac_cv_host+set}" = set; then : | |
2368 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 2369 | else |
81ecdfbb RW |
2370 | if test "x$host_alias" = x; then |
2371 | ac_cv_host=$ac_cv_build | |
2372 | else | |
2373 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2374 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2375 | fi | |
c6b750e1 DJ |
2376 | |
2377 | fi | |
81ecdfbb RW |
2378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2379 | $as_echo "$ac_cv_host" >&6; } | |
2380 | case $ac_cv_host in | |
2381 | *-*-*) ;; | |
2382 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2383 | esac | |
c6b750e1 | 2384 | host=$ac_cv_host |
81ecdfbb RW |
2385 | ac_save_IFS=$IFS; IFS='-' |
2386 | set x $ac_cv_host | |
2387 | shift | |
2388 | host_cpu=$1 | |
2389 | host_vendor=$2 | |
2390 | shift; shift | |
2391 | # Remember, the first character of IFS is used to create $*, | |
2392 | # except with old shells: | |
2393 | host_os=$* | |
2394 | IFS=$ac_save_IFS | |
2395 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2396 | |
2397 | ||
81ecdfbb RW |
2398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2399 | $as_echo_n "checking target system type... " >&6; } | |
2400 | if test "${ac_cv_target+set}" = set; then : | |
2401 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 2402 | else |
81ecdfbb RW |
2403 | if test "x$target_alias" = x; then |
2404 | ac_cv_target=$ac_cv_host | |
2405 | else | |
2406 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2407 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2408 | fi | |
c6b750e1 | 2409 | |
cac3d6c4 | 2410 | fi |
81ecdfbb RW |
2411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2412 | $as_echo "$ac_cv_target" >&6; } | |
2413 | case $ac_cv_target in | |
2414 | *-*-*) ;; | |
2415 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2416 | esac | |
c6b750e1 | 2417 | target=$ac_cv_target |
81ecdfbb RW |
2418 | ac_save_IFS=$IFS; IFS='-' |
2419 | set x $ac_cv_target | |
2420 | shift | |
2421 | target_cpu=$1 | |
2422 | target_vendor=$2 | |
2423 | shift; shift | |
2424 | # Remember, the first character of IFS is used to create $*, | |
2425 | # except with old shells: | |
2426 | target_os=$* | |
2427 | IFS=$ac_save_IFS | |
2428 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2429 | |
2430 | ||
2431 | # The aliases save the names the user supplied, while $host etc. | |
2432 | # will get canonicalized. | |
2433 | test -n "$target_alias" && | |
2434 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2435 | NONENONEs,x,x, && | |
2436 | program_prefix=${target_alias}- | |
81ecdfbb | 2437 | |
a0da8069 | 2438 | test "$program_prefix" != NONE && |
81ecdfbb | 2439 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
a0da8069 NN |
2440 | # Use a double $ so make ignores it. |
2441 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2442 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2443 | # Double any \ or $. | |
c6b750e1 | 2444 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2445 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2446 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
cac3d6c4 | 2447 | |
a0da8069 NN |
2448 | |
2449 | ||
e5c3f801 NN |
2450 | # Get 'install' or 'install-sh' and its variants. |
2451 | # Find a good install program. We prefer a C program (faster), | |
2452 | # so one script is as good as another. But avoid the broken or | |
2453 | # incompatible versions: | |
2454 | # SysV /etc/install, /usr/sbin/install | |
2455 | # SunOS /usr/etc/install | |
2456 | # IRIX /sbin/install | |
2457 | # AIX /bin/install | |
c6b750e1 | 2458 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5c3f801 NN |
2459 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2460 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2461 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c6b750e1 | 2462 | # OS/2's system install, which has a completely different semantic |
e5c3f801 | 2463 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2464 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2466 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5c3f801 | 2467 | if test -z "$INSTALL"; then |
81ecdfbb RW |
2468 | if test "${ac_cv_path_install+set}" = set; then : |
2469 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
2470 | else |
2471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2472 | for as_dir in $PATH | |
2473 | do | |
2474 | IFS=$as_save_IFS | |
2475 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2476 | # Account for people who put trailing slashes in PATH elements. |
2477 | case $as_dir/ in #(( | |
2478 | ./ | .// | /[cC]/* | \ | |
c6b750e1 | 2479 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2480 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
c6b750e1 DJ |
2481 | /usr/ucb/* ) ;; |
2482 | *) | |
2483 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2484 | # Don't use installbsd from OSF since it installs stuff as root | |
2485 | # by default. | |
2486 | for ac_prog in ginstall scoinst install; do | |
2487 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 2488 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
e5c3f801 | 2489 | if test $ac_prog = install && |
c6b750e1 | 2490 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e5c3f801 NN |
2491 | # AIX install. It has an incompatible calling convention. |
2492 | : | |
c6b750e1 DJ |
2493 | elif test $ac_prog = install && |
2494 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2495 | # program-specific install script used by HP pwplus--don't use. | |
2496 | : | |
e5c3f801 | 2497 | else |
58c85be7 RW |
2498 | rm -rf conftest.one conftest.two conftest.dir |
2499 | echo one > conftest.one | |
2500 | echo two > conftest.two | |
2501 | mkdir conftest.dir | |
2502 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2503 | test -s conftest.one && test -s conftest.two && | |
2504 | test -s conftest.dir/conftest.one && | |
2505 | test -s conftest.dir/conftest.two | |
2506 | then | |
2507 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2508 | break 3 | |
2509 | fi | |
e5c3f801 NN |
2510 | fi |
2511 | fi | |
2512 | done | |
c6b750e1 DJ |
2513 | done |
2514 | ;; | |
2515 | esac | |
81ecdfbb RW |
2516 | |
2517 | done | |
2518 | IFS=$as_save_IFS | |
c6b750e1 | 2519 | |
58c85be7 | 2520 | rm -rf conftest.one conftest.two conftest.dir |
e5c3f801 NN |
2521 | |
2522 | fi | |
2523 | if test "${ac_cv_path_install+set}" = set; then | |
c6b750e1 | 2524 | INSTALL=$ac_cv_path_install |
e5c3f801 | 2525 | else |
58c85be7 RW |
2526 | # As a last resort, use the slow shell script. Don't cache a |
2527 | # value for INSTALL within a source directory, because that will | |
e5c3f801 | 2528 | # break other packages using the cache if that directory is |
58c85be7 | 2529 | # removed, or if the value is a relative name. |
c6b750e1 | 2530 | INSTALL=$ac_install_sh |
e5c3f801 NN |
2531 | fi |
2532 | fi | |
81ecdfbb RW |
2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2534 | $as_echo "$INSTALL" >&6; } | |
e5c3f801 NN |
2535 | |
2536 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2537 | # It thinks the first close brace ends the variable substitution. | |
2538 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2539 | ||
c6b750e1 | 2540 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
e5c3f801 NN |
2541 | |
2542 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2543 | ||
81ecdfbb RW |
2544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2545 | $as_echo_n "checking whether ln works... " >&6; } | |
2546 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2547 | $as_echo_n "(cached) " >&6 | |
656fdd47 PB |
2548 | else |
2549 | rm -f conftestdata_t | |
2550 | echo >conftestdata_f | |
2551 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2552 | then | |
2553 | acx_cv_prog_LN=ln | |
2554 | else | |
2555 | acx_cv_prog_LN=no | |
2556 | fi | |
2557 | rm -f conftestdata_f conftestdata_t | |
2558 | ||
2559 | fi | |
2560 | if test $acx_cv_prog_LN = no; then | |
2561 | LN="cp" | |
81ecdfbb RW |
2562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2563 | $as_echo "no, using $LN" >&6; } | |
656fdd47 PB |
2564 | else |
2565 | LN="$acx_cv_prog_LN" | |
81ecdfbb RW |
2566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2567 | $as_echo "yes" >&6; } | |
656fdd47 PB |
2568 | fi |
2569 | ||
81ecdfbb RW |
2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2571 | $as_echo_n "checking whether ln -s works... " >&6; } | |
c6b750e1 DJ |
2572 | LN_S=$as_ln_s |
2573 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2575 | $as_echo "yes" >&6; } | |
cac3d6c4 | 2576 | else |
81ecdfbb RW |
2577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2578 | $as_echo "no, using $LN_S" >&6; } | |
dfdffa2c PB |
2579 | fi |
2580 | ||
8e957354 PB |
2581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2582 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2583 | if test "${ac_cv_path_SED+set}" = set; then : | |
2584 | $as_echo_n "(cached) " >&6 | |
2585 | else | |
2586 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2587 | for ac_i in 1 2 3 4 5 6 7; do | |
2588 | ac_script="$ac_script$as_nl$ac_script" | |
2589 | done | |
2590 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2591 | { ac_script=; unset ac_script;} | |
2592 | if test -z "$SED"; then | |
2593 | ac_path_SED_found=false | |
2594 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2596 | for as_dir in $PATH | |
2597 | do | |
2598 | IFS=$as_save_IFS | |
2599 | test -z "$as_dir" && as_dir=. | |
2600 | for ac_prog in sed gsed; do | |
2601 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2602 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2603 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2604 | # Check for GNU ac_path_SED and select it if it is found. | |
2605 | # Check for GNU $ac_path_SED | |
2606 | case `"$ac_path_SED" --version 2>&1` in | |
2607 | *GNU*) | |
2608 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2609 | *) | |
2610 | ac_count=0 | |
2611 | $as_echo_n 0123456789 >"conftest.in" | |
2612 | while : | |
2613 | do | |
2614 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2615 | mv "conftest.tmp" "conftest.in" | |
2616 | cp "conftest.in" "conftest.nl" | |
2617 | $as_echo '' >> "conftest.nl" | |
2618 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2619 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2620 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2621 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2622 | # Best one so far, save it but keep looking for a better one | |
2623 | ac_cv_path_SED="$ac_path_SED" | |
2624 | ac_path_SED_max=$ac_count | |
2625 | fi | |
2626 | # 10*(2^10) chars as input seems more than enough | |
2627 | test $ac_count -gt 10 && break | |
2628 | done | |
2629 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2630 | esac | |
2631 | ||
2632 | $ac_path_SED_found && break 3 | |
2633 | done | |
2634 | done | |
2635 | done | |
2636 | IFS=$as_save_IFS | |
2637 | if test -z "$ac_cv_path_SED"; then | |
2638 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2639 | fi | |
2640 | else | |
2641 | ac_cv_path_SED=$SED | |
2642 | fi | |
2643 | ||
2644 | fi | |
2645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2646 | $as_echo "$ac_cv_path_SED" >&6; } | |
2647 | SED="$ac_cv_path_SED" | |
2648 | rm -f conftest.sed | |
2649 | ||
2650 | for ac_prog in gawk mawk nawk awk | |
2651 | do | |
2652 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2653 | set dummy $ac_prog; ac_word=$2 | |
2654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2655 | $as_echo_n "checking for $ac_word... " >&6; } | |
2656 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2657 | $as_echo_n "(cached) " >&6 | |
2658 | else | |
2659 | if test -n "$AWK"; then | |
2660 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2661 | else | |
2662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2663 | for as_dir in $PATH | |
2664 | do | |
2665 | IFS=$as_save_IFS | |
2666 | test -z "$as_dir" && as_dir=. | |
2667 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2668 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2669 | ac_cv_prog_AWK="$ac_prog" | |
2670 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2671 | break 2 | |
2672 | fi | |
2673 | done | |
2674 | done | |
2675 | IFS=$as_save_IFS | |
2676 | ||
2677 | fi | |
2678 | fi | |
2679 | AWK=$ac_cv_prog_AWK | |
2680 | if test -n "$AWK"; then | |
2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2682 | $as_echo "$AWK" >&6; } | |
2683 | else | |
2684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2685 | $as_echo "no" >&6; } | |
2686 | fi | |
2687 | ||
2688 | ||
2689 | test -n "$AWK" && break | |
2690 | done | |
2691 | ||
e5c3f801 | 2692 | |
0fdbe983 DJ |
2693 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2694 | ||
2695 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2696 | # a relative path. | |
2697 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2698 | INSTALL="${srcpwd}/install-sh -c" | |
2699 | fi | |
2700 | ||
a0da8069 NN |
2701 | # Set srcdir to "." if that's what it is. |
2702 | # This is important for multilib support. | |
2703 | pwd=`${PWDCMD-pwd}` | |
a0da8069 NN |
2704 | if test "${pwd}" = "${srcpwd}" ; then |
2705 | srcdir=. | |
252b5132 RH |
2706 | fi |
2707 | ||
a0da8069 | 2708 | topsrcdir=$srcpwd |
252b5132 | 2709 | |
a0da8069 | 2710 | extra_host_args= |
afefada0 | 2711 | |
a0da8069 NN |
2712 | ### To add a new directory to the tree, first choose whether it is a target |
2713 | ### or a host dependent tool. Then put it into the appropriate list | |
2714 | ### (library or tools, host or target), doing a dependency sort. | |
252b5132 | 2715 | |
c6b750e1 | 2716 | # Subdirs will be configured in the order listed in build_configdirs, |
a0da8069 | 2717 | # configdirs, or target_configdirs; see the serialization section below. |
252b5132 | 2718 | |
c6b750e1 DJ |
2719 | # Dependency sorting is only needed when *configuration* must be done in |
2720 | # a particular order. In all cases a dependency should be specified in | |
a0da8069 | 2721 | # the Makefile, whether or not it's implicitly specified here. |
252b5132 | 2722 | |
a0da8069 NN |
2723 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2724 | # cause circular dependencies and break everything horribly. | |
252b5132 | 2725 | |
6a9cf61e PB |
2726 | # these library is used by various programs built for the build |
2727 | # environment | |
2728 | # | |
1b6c0831 | 2729 | build_libs="build-libiberty build-libcpp" |
6a9cf61e PB |
2730 | |
2731 | # these tools are built for the build environment | |
a90ef4bf | 2732 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
6a9cf61e | 2733 | |
a0da8069 | 2734 | # these libraries are used by various programs built for the host environment |
1b6c0831 L |
2735 | #f |
2736 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv" | |
a0da8069 | 2737 | |
a0da8069 NN |
2738 | # these tools are built for the host environment |
2739 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2740 | # know that we are building the simulator. | |
2741 | # binutils, gas and ld appear in that order because it makes sense to run | |
2742 | # "make check" in that particular order. | |
e6de499b | 2743 | # If --enable-gold is used, "gold" may replace "ld". |
1b6c0831 | 2744 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools" |
a0da8069 | 2745 | |
a0da8069 NN |
2746 | # these libraries are built for the target environment, and are built after |
2747 | # the host libraries and the host tools (which may be a cross compiler) | |
ffdd6afc | 2748 | # Note that libiberty is not a target library. |
b1299c4e | 2749 | target_libraries="target-libgcc \ |
2bf680c4 | 2750 | target-libbacktrace \ |
a0da8069 NN |
2751 | target-libgloss \ |
2752 | target-newlib \ | |
cff87f51 | 2753 | target-libgomp \ |
1b6c0831 | 2754 | target-liboffloadmic \ |
bf41f30d | 2755 | target-libhsail-rt \ |
7ec59b9e | 2756 | target-libatomic \ |
d32e2926 | 2757 | target-libitm \ |
b9459e83 | 2758 | target-libstdc++-v3 \ |
5286fdef | 2759 | target-libsanitizer \ |
95e43135 | 2760 | target-libvtv \ |
bb780410 | 2761 | target-libssp \ |
e552509b | 2762 | target-libquadmath \ |
4b1cb4fe | 2763 | target-libgfortran \ |
05a13254 | 2764 | target-libffi \ |
a2592b1b | 2765 | target-libobjc \ |
e552509b ILT |
2766 | target-libada \ |
2767 | target-libgo" | |
a0da8069 | 2768 | |
9c14acb8 NN |
2769 | # these tools are built using the target libraries, and are intended to |
2770 | # run only in the target environment | |
a0da8069 | 2771 | # |
9c14acb8 | 2772 | # note: any program that *uses* libraries that are in the "target_libraries" |
0377a422 | 2773 | # list belongs in this list. |
a0da8069 | 2774 | # |
a90ef4bf | 2775 | target_tools="target-rda" |
252b5132 | 2776 | |
a0da8069 | 2777 | ################################################################################ |
252b5132 | 2778 | |
a0da8069 NN |
2779 | ## All tools belong in one of the four categories, and are assigned above |
2780 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2781 | ## is important because configure will choke if they ever get through. | |
2782 | ## ${configdirs} is directories we build using the host tools. | |
2783 | ## ${target_configdirs} is directories we build using the target tools. | |
a0da8069 | 2784 | configdirs=`echo ${host_libs} ${host_tools}` |
9c14acb8 | 2785 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
ee025550 | 2786 | build_configdirs=`echo ${build_libs} ${build_tools}` |
dd12c3a8 | 2787 | |
9cc8ae67 PB |
2788 | |
2789 | ||
a0da8069 | 2790 | ################################################################################ |
252b5132 | 2791 | |
a0da8069 | 2792 | srcname="gnu development package" |
252b5132 | 2793 | |
a0da8069 NN |
2794 | # This gets set non-empty for some net releases of packages. |
2795 | appdirs="" | |
252b5132 | 2796 | |
a0da8069 NN |
2797 | # Define is_cross_compiler to save on calls to 'test'. |
2798 | is_cross_compiler= | |
2799 | if test x"${host}" = x"${target}" ; then | |
2800 | is_cross_compiler=no | |
252b5132 | 2801 | else |
a0da8069 | 2802 | is_cross_compiler=yes |
c6b750e1 | 2803 | fi |
252b5132 | 2804 | |
9175bfc0 | 2805 | # Find the build and target subdir names. |
dd12c3a8 | 2806 | |
66a79c16 DJ |
2807 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2808 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2809 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2810 | # However, they still use the build modules, because the corresponding | |
2811 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2812 | # finishes. So: | |
2813 | # - build_subdir is where we find build modules, and never changes. | |
2814 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2815 | ||
2816 | # Prefix 'build-' so this never conflicts with target_subdir. | |
dd12c3a8 | 2817 | build_subdir="build-${build_noncanonical}" |
c6b750e1 | 2818 | |
81ecdfbb RW |
2819 | # Check whether --with-build-libsubdir was given. |
2820 | if test "${with_build_libsubdir+set}" = set; then : | |
2821 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
66a79c16 DJ |
2822 | else |
2823 | build_libsubdir="$build_subdir" | |
81ecdfbb RW |
2824 | fi |
2825 | ||
b00612cc PB |
2826 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2827 | if ( test $srcdir = . && test -d gcc ) \ | |
2828 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2829 | host_subdir="host-${host_noncanonical}" | |
2830 | else | |
2831 | host_subdir=. | |
2832 | fi | |
dd12c3a8 NN |
2833 | # No prefix. |
2834 | target_subdir=${target_noncanonical} | |
c6b750e1 | 2835 | |
2fd0b40b RW |
2836 | # Be sure to cover against remnants of an in-tree build. |
2837 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2838 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2839 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2840 | fi | |
252b5132 | 2841 | |
a0da8069 NN |
2842 | # Skipdirs are removed silently. |
2843 | skipdirs= | |
2844 | # Noconfigdirs are removed loudly. | |
2845 | noconfigdirs="" | |
252b5132 | 2846 | |
a0da8069 NN |
2847 | use_gnu_ld= |
2848 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2849 | if test x$with_gnu_ld = xno ; then | |
2850 | use_gnu_ld=no | |
93f9b408 | 2851 | noconfigdirs="$noconfigdirs ld gold" |
252b5132 RH |
2852 | fi |
2853 | ||
a0da8069 NN |
2854 | use_gnu_as= |
2855 | # Make sure we don't let GNU as be added if we didn't want it. | |
2856 | if test x$with_gnu_as = xno ; then | |
2857 | use_gnu_as=no | |
2858 | noconfigdirs="$noconfigdirs gas" | |
252b5132 RH |
2859 | fi |
2860 | ||
700d40ca | 2861 | use_included_zlib= |
cf39cfc5 L |
2862 | |
2863 | # Check whether --with-system-zlib was given. | |
2864 | if test "${with_system_zlib+set}" = set; then : | |
2865 | withval=$with_system_zlib; | |
2866 | fi | |
2867 | ||
700d40ca ILT |
2868 | # Make sure we don't let ZLIB be added if we didn't want it. |
2869 | if test x$with_system_zlib = xyes ; then | |
2870 | use_included_zlib=no | |
2871 | noconfigdirs="$noconfigdirs zlib" | |
2872 | fi | |
2873 | ||
c6b750e1 | 2874 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2875 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2876 | |
a0da8069 NN |
2877 | case ${with_x} in |
2878 | yes | "") ;; # the default value for this tree is that X11 is available | |
2879 | no) | |
675c6968 | 2880 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2881 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2882 | enable_gdbtk=no |
a0da8069 NN |
2883 | ;; |
2884 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2885 | esac | |
252b5132 | 2886 | |
0377a422 | 2887 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2888 | # Remove these if host=target. |
2889 | cross_only="target-libgloss target-newlib target-opcodes" | |
2890 | ||
2891 | case $is_cross_compiler in | |
2892 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2893 | esac |
252b5132 | 2894 | |
a0da8069 NN |
2895 | # If both --with-headers and --with-libs are specified, default to |
2896 | # --without-newlib. | |
32be62b5 RS |
2897 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2898 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
2899 | if test x"${with_newlib}" = x ; then |
2900 | with_newlib=no | |
2901 | fi | |
252b5132 RH |
2902 | fi |
2903 | ||
a0da8069 NN |
2904 | # Recognize --with-newlib/--without-newlib. |
2905 | case ${with_newlib} in | |
2906 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2907 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2908 | esac | |
252b5132 | 2909 | |
1b6c0831 L |
2910 | # Check whether --enable-as-accelerator-for was given. |
2911 | if test "${enable_as_accelerator_for+set}" = set; then : | |
2912 | enableval=$enable_as_accelerator_for; | |
2913 | fi | |
2914 | ||
2915 | ||
2916 | # Check whether --enable-offload-targets was given. | |
2917 | if test "${enable_offload_targets+set}" = set; then : | |
2918 | enableval=$enable_offload_targets; | |
2919 | if test x"$enable_offload_targets" = x; then | |
2920 | as_fn_error "no offload targets specified" "$LINENO" 5 | |
2921 | fi | |
2922 | ||
2923 | else | |
2924 | enable_offload_targets= | |
2925 | fi | |
2926 | ||
2927 | ||
c7791212 NC |
2928 | # Handle --enable-gold, --enable-ld. |
2929 | # --disable-gold [--enable-ld] | |
2930 | # Build only ld. Default option. | |
d3b50760 L |
2931 | # --enable-gold [--enable-ld] |
2932 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2933 | # as "ld.bfd" and "ld". | |
2934 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
2935 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2936 | # install ld as "ld.bfd". | |
2937 | # --enable-gold[=default] --disable-ld | |
2938 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2939 | # --enable-gold --enable-ld=default | |
d3b50760 L |
2940 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2941 | # and ld.bfd). | |
c7791212 NC |
2942 | # In other words, ld is default |
2943 | # --enable-gold=default --enable-ld=default | |
2944 | # Error. | |
2945 | ||
2946 | default_ld= | |
81ecdfbb RW |
2947 | # Check whether --enable-gold was given. |
2948 | if test "${enable_gold+set}" = set; then : | |
2949 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
2950 | else |
2951 | ENABLE_GOLD=no | |
81ecdfbb RW |
2952 | fi |
2953 | ||
c7791212 NC |
2954 | case "${ENABLE_GOLD}" in |
2955 | yes|default) | |
e6de499b NC |
2956 | # Check for ELF target. |
2957 | is_elf=no | |
2958 | case "${target}" in | |
2959 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2344b8da | 2960 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
5b806d27 | 2961 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
bf41f30d | 2962 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
e6de499b NC |
2963 | case "${target}" in |
2964 | *-*-linux*aout* | *-*-linux*oldld*) | |
2965 | ;; | |
2966 | *) | |
2967 | is_elf=yes | |
2968 | ;; | |
2969 | esac | |
2970 | esac | |
2971 | ||
2972 | if test "$is_elf" = "yes"; then | |
2973 | # Check for target supported by gold. | |
93f9b408 | 2974 | case "${target}" in |
6d26190c | 2975 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
ea016470 | 2976 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
c7791212 NC |
2977 | configdirs="$configdirs gold" |
2978 | if test x${ENABLE_GOLD} = xdefault; then | |
2979 | default_ld=gold | |
2980 | fi | |
e6de499b | 2981 | ENABLE_GOLD=yes |
93f9b408 ILT |
2982 | ;; |
2983 | esac | |
e6de499b NC |
2984 | fi |
2985 | ;; | |
2986 | no) | |
2987 | ;; | |
2988 | *) | |
2989 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2990 | ;; | |
c7791212 NC |
2991 | esac |
2992 | ||
2993 | # Check whether --enable-ld was given. | |
2994 | if test "${enable_ld+set}" = set; then : | |
2995 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2996 | else | |
2997 | ENABLE_LD=yes | |
2998 | fi | |
2999 | ||
3000 | ||
3001 | case "${ENABLE_LD}" in | |
3002 | default) | |
d3b50760 | 3003 | if test x${default_ld} != x; then |
c7791212 NC |
3004 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
3005 | fi | |
3006 | ;; | |
3007 | yes) | |
3008 | ;; | |
3009 | no) | |
3010 | if test x${ENABLE_GOLD} != xyes; then | |
3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3012 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3013 | fi | |
3014 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3015 | ;; | |
3016 | *) | |
3017 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
3018 | ;; | |
3019 | esac | |
93f9b408 | 3020 | |
edeefb67 L |
3021 | # PR gas/19109 |
3022 | # Decide the default method for compressing debug sections. | |
3023 | # Provide a configure time option to override our default. | |
3024 | # Check whether --enable-compressed_debug_sections was given. | |
3025 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3026 | enableval=$enable_compressed_debug_sections; | |
3027 | if test x"$enable_compressed_debug_sections" = xyes; then | |
3028 | as_fn_error "no program with compressed debug sections specified" "$LINENO" 5 | |
3029 | fi | |
3030 | ||
3031 | else | |
3032 | enable_compressed_debug_sections= | |
3033 | fi | |
3034 | ||
3035 | ||
a0da8069 | 3036 | # Configure extra directories which are host specific |
252b5132 | 3037 | |
a0da8069 NN |
3038 | case "${host}" in |
3039 | *-cygwin*) | |
3040 | configdirs="$configdirs libtermcap" ;; | |
3041 | esac | |
252b5132 | 3042 | |
59f7ec45 HPN |
3043 | # A target can indicate whether a language isn't supported for some reason. |
3044 | # Only spaces may be used in this macro; not newlines or tabs. | |
3045 | unsupported_languages= | |
3046 | ||
c6b750e1 | 3047 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
3048 | # target this usually means that a port of the program doesn't |
3049 | # exist yet. | |
252b5132 | 3050 | |
a0da8069 | 3051 | case "${host}" in |
3516a403 | 3052 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 3053 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 3054 | ;; |
a0da8069 | 3055 | esac |
252b5132 | 3056 | |
4b1cb4fe | 3057 | |
89a1e9c3 PB |
3058 | # Check whether --enable-libquadmath was given. |
3059 | if test "${enable_libquadmath+set}" = set; then : | |
3060 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3061 | else | |
3062 | ENABLE_LIBQUADMATH=yes | |
3063 | fi | |
3064 | ||
3065 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3066 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3067 | fi | |
3068 | ||
3069 | ||
3070 | # Check whether --enable-libquadmath-support was given. | |
3071 | if test "${enable_libquadmath_support+set}" = set; then : | |
3072 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3073 | else | |
3074 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3075 | fi | |
3076 | ||
3077 | enable_libquadmath_support= | |
3078 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3079 | enable_libquadmath_support=no | |
3080 | fi | |
3081 | ||
3082 | ||
81ecdfbb RW |
3083 | # Check whether --enable-libada was given. |
3084 | if test "${enable_libada+set}" = set; then : | |
3085 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
3086 | else |
3087 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
3088 | fi |
3089 | ||
a2592b1b | 3090 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 3091 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
3092 | fi |
3093 | ||
81ecdfbb RW |
3094 | # Check whether --enable-libssp was given. |
3095 | if test "${enable_libssp+set}" = set; then : | |
3096 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
3097 | else |
3098 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
3099 | fi |
3100 | ||
5f128533 | 3101 | |
f66a9a70 L |
3102 | # Check whether --enable-libstdcxx was given. |
3103 | if test "${enable_libstdcxx+set}" = set; then : | |
3104 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3105 | else | |
3106 | ENABLE_LIBSTDCXX=default | |
3107 | fi | |
3108 | ||
3109 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1b6c0831 L |
3110 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
3111 | fi | |
3112 | ||
3113 | # If this is accelerator compiler and its target is intelmic we enable | |
3114 | # target liboffloadmic by default. If this is compiler with offloading | |
3115 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3116 | # liboffloadmic is disabled by default. | |
3117 | # Check whether --enable-liboffloadmic was given. | |
3118 | if test "${enable_liboffloadmic+set}" = set; then : | |
3119 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3120 | no | host | target) | |
3121 | enable_liboffloadmic=$enableval ;; | |
3122 | *) | |
3123 | as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; | |
3124 | esac | |
3125 | else | |
3126 | if test x"$enable_as_accelerator_for" != x; then | |
3127 | case "${target}" in | |
3128 | *-intelmic-* | *-intelmicemul-*) | |
3129 | enable_liboffloadmic=target | |
3130 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3131 | ;; | |
3132 | *) | |
3133 | enable_liboffloadmic=no | |
3134 | ;; | |
3135 | esac | |
3136 | else | |
3137 | case "${enable_offload_targets}" in | |
3138 | *-intelmic-* | *-intelmicemul-*) | |
3139 | enable_liboffloadmic=host | |
3140 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3141 | ;; | |
3142 | *) | |
3143 | enable_liboffloadmic=no | |
3144 | ;; | |
3145 | esac | |
3146 | fi | |
f66a9a70 L |
3147 | fi |
3148 | ||
1b6c0831 L |
3149 | |
3150 | ||
68996839 | 3151 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
a6df5a19 | 3152 | if test x$enable_libgomp = x ; then |
b3ded179 | 3153 | case "${target}" in |
29383458 | 3154 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
b3ded179 | 3155 | ;; |
5b806d27 | 3156 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
b3ded179 | 3157 | ;; |
2479f722 | 3158 | *-*-solaris2* | *-*-hpux11*) |
b3ded179 PB |
3159 | ;; |
3160 | *-*-darwin* | *-*-aix*) | |
3161 | ;; | |
68996839 NC |
3162 | nvptx*-*-*) |
3163 | ;; | |
b3ded179 PB |
3164 | *) |
3165 | noconfigdirs="$noconfigdirs target-libgomp" | |
3166 | ;; | |
3167 | esac | |
a6df5a19 | 3168 | fi |
b3ded179 | 3169 | |
7ec59b9e L |
3170 | # Disable libatomic on unsupported systems. |
3171 | if test -d ${srcdir}/libatomic; then | |
3172 | if test x$enable_libatomic = x; then | |
3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3174 | $as_echo_n "checking for libatomic support... " >&6; } | |
3175 | if (srcdir=${srcdir}/libatomic; \ | |
3176 | . ${srcdir}/configure.tgt; \ | |
3177 | test -n "$UNSUPPORTED") | |
3178 | then | |
3179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3180 | $as_echo "no" >&6; } | |
3181 | noconfigdirs="$noconfigdirs target-libatomic" | |
3182 | else | |
3183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3184 | $as_echo "yes" >&6; } | |
3185 | fi | |
3186 | fi | |
3187 | fi | |
3188 | ||
1b6c0831 L |
3189 | # Disable liboffloadmic on unsupported systems. |
3190 | if test -d ${srcdir}/liboffloadmic; then | |
3191 | if test x$enable_liboffloadmic != xno; then | |
3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3193 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3194 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3195 | . ${srcdir}/configure.tgt; \ | |
3196 | test -n "$UNSUPPORTED") | |
3197 | then | |
3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3199 | $as_echo "no" >&6; } | |
3200 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3201 | else | |
3202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3203 | $as_echo "yes" >&6; } | |
3204 | fi | |
3205 | fi | |
3206 | fi | |
3207 | ||
d32e2926 RH |
3208 | # Disable libitm on unsupported systems. |
3209 | if test -d ${srcdir}/libitm; then | |
3210 | if test x$enable_libitm = x; then | |
3211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3212 | $as_echo_n "checking for libitm support... " >&6; } | |
3213 | if (srcdir=${srcdir}/libitm; \ | |
3214 | . ${srcdir}/configure.tgt; \ | |
3215 | test -n "$UNSUPPORTED") | |
3216 | then | |
3217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3218 | $as_echo "no" >&6; } | |
3219 | noconfigdirs="$noconfigdirs target-libitm" | |
3220 | else | |
3221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3222 | $as_echo "yes" >&6; } | |
3223 | fi | |
3224 | fi | |
3225 | fi | |
3226 | ||
5286fdef L |
3227 | # Disable libsanitizer on unsupported systems. |
3228 | if test -d ${srcdir}/libsanitizer; then | |
3229 | if test x$enable_libsanitizer = x; then | |
3230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3231 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3232 | if (srcdir=${srcdir}/libsanitizer; \ | |
3233 | . ${srcdir}/configure.tgt; \ | |
3234 | test -n "$UNSUPPORTED") | |
3235 | then | |
3236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3237 | $as_echo "no" >&6; } | |
3238 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3239 | else | |
3240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3241 | $as_echo "yes" >&6; } | |
3242 | fi | |
3243 | fi | |
3244 | fi | |
3245 | ||
95e43135 JBG |
3246 | # Disable libvtv on unsupported systems. |
3247 | if test -d ${srcdir}/libvtv; then | |
3248 | if test x$enable_libvtv = x; then | |
3249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3250 | $as_echo_n "checking for libvtv support... " >&6; } | |
3251 | if (srcdir=${srcdir}/libvtv; \ | |
3252 | . ${srcdir}/configure.tgt; \ | |
3253 | test "$VTV_SUPPORTED" != "yes") | |
3254 | then | |
3255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3256 | $as_echo "no" >&6; } | |
3257 | noconfigdirs="$noconfigdirs target-libvtv" | |
3258 | else | |
3259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3260 | $as_echo "yes" >&6; } | |
3261 | fi | |
3262 | fi | |
3263 | fi | |
3264 | ||
1b6c0831 | 3265 | |
bf41f30d NC |
3266 | # Disable libhsail-rt on unsupported systems. |
3267 | if test -d ${srcdir}/libhsail-rt; then | |
3268 | if test x$enable_libhsail_rt = x; then | |
3269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5 | |
3270 | $as_echo_n "checking for libhsail-rt support... " >&6; } | |
3271 | if (srcdir=${srcdir}/libhsail-rt; \ | |
3272 | . ${srcdir}/configure.tgt; \ | |
3273 | test -n "$UNSUPPORTED") | |
3274 | then | |
3275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3276 | $as_echo "no" >&6; } | |
3277 | unsupported_languages="$unsupported_languages brig" | |
3278 | # This implicitly disables also target-libhsail-rt as it won't | |
3279 | # get added to the build without BRIG FE. | |
3280 | else | |
3281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3282 | $as_echo "yes" >&6; } | |
3283 | fi | |
3284 | fi | |
3285 | fi | |
1b6c0831 L |
3286 | |
3287 | ||
1488e230 DE |
3288 | # Disable libquadmath for some systems. |
3289 | case "${target}" in | |
5286fdef L |
3290 | avr-*-*) |
3291 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3292 | ;; | |
1488e230 DE |
3293 | # libquadmath is unused on AIX and libquadmath build process use of |
3294 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3295 | powerpc-*-aix* | rs6000-*-aix*) | |
3296 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3297 | ;; | |
3298 | esac | |
3299 | ||
065a5627 JM |
3300 | # Disable libssp for some systems. |
3301 | case "${target}" in | |
3302 | avr-*-*) | |
c5f5c3c2 | 3303 | # No hosted I/O support. |
065a5627 JM |
3304 | noconfigdirs="$noconfigdirs target-libssp" |
3305 | ;; | |
3306 | powerpc-*-aix* | rs6000-*-aix*) | |
3307 | noconfigdirs="$noconfigdirs target-libssp" | |
3308 | ;; | |
99c513f6 | 3309 | rl78-*-*) |
202e2356 NC |
3310 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3311 | # doesn't fault for those - instead, it gives a build-time error | |
3312 | # for explicit misaligned loads. | |
99c513f6 DD |
3313 | noconfigdirs="$noconfigdirs target-libssp" |
3314 | ;; | |
1b6c0831 L |
3315 | visium-*-*) |
3316 | # No hosted I/O support. | |
3317 | noconfigdirs="$noconfigdirs target-libssp" | |
3318 | ;; | |
065a5627 JM |
3319 | esac |
3320 | ||
065a5627 | 3321 | # Disable libstdc++-v3 for some systems. |
f66a9a70 L |
3322 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3323 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3324 | case "${target}" in | |
3325 | *-*-vxworks*) | |
3326 | # VxWorks uses the Dinkumware C++ library. | |
3327 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3328 | ;; | |
3329 | arm*-wince-pe*) | |
3330 | # the C++ libraries don't build on top of CE's C libraries | |
3331 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3332 | ;; | |
3333 | avr-*-*) | |
3334 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3335 | ;; | |
969b1713 L |
3336 | ft32-*-*) |
3337 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3338 | ;; | |
f66a9a70 L |
3339 | esac |
3340 | fi | |
065a5627 JM |
3341 | |
3342 | # Disable Fortran for some systems. | |
3343 | case "${target}" in | |
3344 | mmix-*-*) | |
3345 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3346 | unsupported_languages="$unsupported_languages fortran" | |
3347 | ;; | |
3348 | esac | |
3349 | ||
05a13254 | 3350 | # Disable libffi for some systems. |
0827f9a6 | 3351 | case "${target}" in |
9863d716 JM |
3352 | powerpc-*-darwin*) |
3353 | ;; | |
3354 | i[3456789]86-*-darwin*) | |
3355 | ;; | |
3356 | x86_64-*-darwin[912]*) | |
3357 | ;; | |
3358 | *-*-darwin*) | |
05a13254 | 3359 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3360 | ;; |
9863d716 | 3361 | *-*-netware*) |
05a13254 NC |
3362 | noconfigdirs="$noconfigdirs target-libffi" |
3363 | ;; | |
3364 | *-*-phoenix*) | |
3365 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 JM |
3366 | ;; |
3367 | *-*-rtems*) | |
05a13254 | 3368 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3369 | ;; |
3370 | *-*-tpf*) | |
05a13254 | 3371 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3372 | ;; |
3373 | *-*-uclinux*) | |
05a13254 | 3374 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3375 | ;; |
3376 | *-*-vxworks*) | |
05a13254 NC |
3377 | noconfigdirs="$noconfigdirs target-libffi" |
3378 | ;; | |
3379 | aarch64*-*-freebsd*) | |
3380 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 | 3381 | ;; |
9863d716 | 3382 | alpha*-*-*vms*) |
05a13254 | 3383 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3384 | ;; |
1b6c0831 | 3385 | arm*-*-freebsd*) |
05a13254 | 3386 | noconfigdirs="$noconfigdirs target-libffi" |
1b6c0831 | 3387 | ;; |
0827f9a6 | 3388 | arm-wince-pe) |
05a13254 | 3389 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3390 | ;; |
9863d716 | 3391 | arm*-*-symbianelf*) |
05a13254 | 3392 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3393 | ;; |
9863d716 | 3394 | cris-*-* | crisv32-*-*) |
9863d716 JM |
3395 | case "${target}" in |
3396 | *-*-linux*) | |
3397 | ;; | |
3398 | *) # See PR46792 regarding target-libffi. | |
05a13254 | 3399 | noconfigdirs="$noconfigdirs target-libffi";; |
9863d716 JM |
3400 | esac |
3401 | ;; | |
82ae827f | 3402 | hppa*64*-*-hpux*) |
05a13254 | 3403 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3404 | ;; |
3405 | hppa*-hp-hpux11*) | |
3406 | ;; | |
82ae827f | 3407 | hppa*-*-hpux*) |
05a13254 | 3408 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3409 | ;; |
9863d716 | 3410 | ia64*-*-*vms*) |
05a13254 | 3411 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3412 | ;; |
9863d716 | 3413 | i[3456789]86-w64-mingw*) |
05a13254 | 3414 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3415 | ;; |
3416 | i[3456789]86-*-mingw*) | |
05a13254 | 3417 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3418 | ;; |
3419 | x86_64-*-mingw*) | |
05a13254 | 3420 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3421 | ;; |
9863d716 | 3422 | mmix-*-*) |
05a13254 | 3423 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3424 | ;; |
3425 | powerpc-*-aix*) | |
9863d716 | 3426 | ;; |
9863d716 | 3427 | rs6000-*-aix*) |
9863d716 | 3428 | ;; |
3f8107ab | 3429 | ft32-*-*) |
05a13254 | 3430 | noconfigdirs="$noconfigdirs target-libffi" |
3f8107ab | 3431 | ;; |
9863d716 | 3432 | *-*-lynxos*) |
05a13254 | 3433 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3434 | ;; |
9863d716 JM |
3435 | esac |
3436 | ||
1b6c0831 L |
3437 | # Disable the go frontend on systems where it is known to not work. Please keep |
3438 | # this in sync with contrib/config-list.mk. | |
3439 | case "${target}" in | |
bf41f30d | 3440 | *-*-darwin* | *-*-cygwin* | *-*-mingw*) |
1b6c0831 L |
3441 | unsupported_languages="$unsupported_languages go" |
3442 | ;; | |
3443 | esac | |
3444 | ||
a413f71a ILT |
3445 | # Disable libgo for some systems where it is known to not work. |
3446 | # For testing, you can easily override this with --enable-libgo. | |
3447 | if test x$enable_libgo = x; then | |
3448 | case "${target}" in | |
3449 | *-*-darwin*) | |
3450 | # PR 46986 | |
3451 | noconfigdirs="$noconfigdirs target-libgo" | |
3452 | ;; | |
3453 | *-*-cygwin* | *-*-mingw*) | |
3454 | noconfigdirs="$noconfigdirs target-libgo" | |
3455 | ;; | |
a413f71a ILT |
3456 | esac |
3457 | fi | |
3458 | ||
691bb5a1 DD |
3459 | # Default libgloss CPU subdirectory. |
3460 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3461 | |
ff46fb8f JM |
3462 | case "${target}" in |
3463 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3464 | libgloss_dir=wince | |
3465 | ;; | |
f1dd87fc YZ |
3466 | aarch64*-*-* ) |
3467 | libgloss_dir=aarch64 | |
3468 | ;; | |
ff46fb8f JM |
3469 | arm*-*-*) |
3470 | libgloss_dir=arm | |
3471 | ;; | |
3472 | cris-*-* | crisv32-*-*) | |
3473 | libgloss_dir=cris | |
3474 | ;; | |
3475 | hppa*-*-*) | |
3476 | libgloss_dir=pa | |
3477 | ;; | |
3478 | i[3456789]86-*-*) | |
3479 | libgloss_dir=i386 | |
3480 | ;; | |
3481 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3482 | libgloss_dir=m68hc11 | |
3483 | ;; | |
3484 | m68*-*-* | fido-*-*) | |
3485 | libgloss_dir=m68k | |
3486 | ;; | |
3487 | mips*-*-*) | |
3488 | libgloss_dir=mips | |
3489 | ;; | |
3490 | powerpc*-*-*) | |
3491 | libgloss_dir=rs6000 | |
3492 | ;; | |
3493 | sparc*-*-*) | |
3494 | libgloss_dir=sparc | |
3495 | ;; | |
3496 | esac | |
3497 | ||
c7e4b184 | 3498 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3499 | case "${target}" in |
c7e4b184 JM |
3500 | alpha*-dec-osf*) |
3501 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3502 | ;; | |
3503 | i[3456789]86-*-linux*) | |
3504 | # This section makes it possible to build newlib natively on linux. | |
3505 | # If we are using a cross compiler then don't configure newlib. | |
3506 | if test x${is_cross_compiler} != xno ; then | |
3507 | noconfigdirs="$noconfigdirs target-newlib" | |
3508 | fi | |
3509 | noconfigdirs="$noconfigdirs target-libgloss" | |
3510 | # If we are not using a cross compiler, do configure newlib. | |
3511 | # Note however, that newlib will only be configured in this situation | |
3512 | # if the --with-newlib option has been given, because otherwise | |
3513 | # 'target-newlib' will appear in skipdirs. | |
3514 | ;; | |
3515 | i[3456789]86-*-rdos*) | |
3516 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3517 | ;; | |
3518 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3519 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3520 | ;; | |
3521 | sparc-*-sunos4*) | |
3522 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3523 | ;; | |
3524 | *-*-aix*) | |
3525 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3526 | ;; | |
3527 | *-*-beos*) | |
3528 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3529 | ;; | |
a0da8069 | 3530 | *-*-chorusos) |
b2f14e4a | 3531 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3532 | ;; |
c7e4b184 JM |
3533 | *-*-dragonfly*) |
3534 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3535 | ;; | |
3536 | *-*-freebsd*) | |
3537 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3538 | ;; | |
3539 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3540 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3541 | ;; | |
3542 | *-*-lynxos*) | |
3543 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3544 | ;; | |
3545 | *-*-mingw*) | |
3546 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3547 | ;; | |
3548 | *-*-netbsd*) | |
3549 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3550 | ;; | |
3551 | *-*-netware*) | |
3552 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3553 | ;; | |
3554 | *-*-tpf*) | |
3555 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3556 | ;; | |
3557 | *-*-uclinux*) | |
3558 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3559 | ;; | |
3560 | *-*-vxworks*) | |
3561 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3562 | ;; | |
3563 | esac | |
3564 | ||
3565 | case "${target}" in | |
3566 | *-*-chorusos) | |
3567 | ;; | |
f075eb5e TG |
3568 | aarch64-*-darwin*) |
3569 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3570 | noconfigdirs="$noconfigdirs sim target-rda" | |
3571 | ;; | |
3572 | arm-*-darwin*) | |
3573 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3574 | noconfigdirs="$noconfigdirs sim target-rda" | |
3575 | ;; | |
24741ab2 | 3576 | powerpc-*-darwin*) |
9d39db92 | 3577 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3578 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3579 | ;; |
85bd1942 TG |
3580 | i[3456789]86-*-darwin*) |
3581 | noconfigdirs="$noconfigdirs ld gprof" | |
3582 | noconfigdirs="$noconfigdirs sim target-rda" | |
3583 | ;; | |
e8a5fa9c | 3584 | x86_64-*-darwin[912]*) |
652dec25 TG |
3585 | noconfigdirs="$noconfigdirs ld gas gprof" |
3586 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3587 | ;; |
04d1ab34 | 3588 | *-*-darwin*) |
d320aacb | 3589 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3590 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3591 | ;; |
5b806d27 | 3592 | *-*-dragonfly*) |
5b806d27 | 3593 | ;; |
de0b4a87 | 3594 | *-*-freebsd*) |
4b1cb4fe DD |
3595 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3596 | && test -f /usr/local/include/gmp.h; then | |
3597 | with_gmp=/usr/local | |
3598 | fi | |
4b1cb4fe | 3599 | ;; |
f8a495c8 NC |
3600 | *-*-kaos*) |
3601 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3602 | noconfigdirs="$noconfigdirs target-libgloss" |
3603 | ;; | |
a0da8069 | 3604 | *-*-netbsd*) |
a0da8069 | 3605 | ;; |
2a3124ca | 3606 | *-*-netware*) |
a0da8069 | 3607 | ;; |
05a13254 NC |
3608 | *-*-phoenix*) |
3609 | noconfigdirs="$noconfigdirs target-libgloss" | |
3610 | ;; | |
a0da8069 | 3611 | *-*-rtems*) |
9863d716 | 3612 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3613 | ;; |
1587117a EC |
3614 | # The tpf target doesn't support gdb yet. |
3615 | *-*-tpf*) | |
c7e4b184 | 3616 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3617 | ;; |
c1968181 | 3618 | *-*-uclinux*) |
c7e4b184 | 3619 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3620 | ;; |
a0da8069 | 3621 | *-*-vxworks*) |
a0da8069 NN |
3622 | ;; |
3623 | alpha*-dec-osf*) | |
3624 | # ld works, but does not support shared libraries. | |
a0da8069 | 3625 | # gas doesn't generate exception information. |
c7e4b184 | 3626 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3627 | ;; |
3628 | alpha*-*-*vms*) | |
9863d716 | 3629 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3630 | ;; |
a0da8069 NN |
3631 | alpha*-*-*) |
3632 | # newlib is not 64 bit ready | |
9863d716 | 3633 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3634 | ;; |
a0da8069 | 3635 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3636 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 | 3637 | ;; |
05a13254 NC |
3638 | arc*-*-*) |
3639 | noconfigdirs="$noconfigdirs sim" | |
a0da8069 | 3640 | ;; |
a0da8069 | 3641 | arm-*-pe*) |
9863d716 | 3642 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3643 | ;; |
a0da8069 | 3644 | arm-*-riscix*) |
b2f14e4a | 3645 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3646 | ;; |
8e71395b L |
3647 | avr-*-*) |
3648 | if test x${with_avrlibc} != xno; then | |
3649 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3650 | fi | |
3651 | ;; | |
a0da8069 | 3652 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3653 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3654 | ;; |
b2f14e4a JM |
3655 | tic54x-*-*) |
3656 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3657 | ;; |
a0da8069 | 3658 | d10v-*-*) |
b2f14e4a | 3659 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3660 | ;; |
3661 | d30v-*-*) | |
b2f14e4a | 3662 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3663 | ;; |
3664 | fr30-*-elf*) | |
9863d716 | 3665 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3666 | ;; |
3f8107ab AM |
3667 | ft32-*-*) |
3668 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3669 | ;; | |
20135e4c | 3670 | moxie-*-*) |
10b8fe5e | 3671 | noconfigdirs="$noconfigdirs" |
20135e4c | 3672 | ;; |
a0da8069 | 3673 | h8300*-*-*) |
9863d716 | 3674 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3675 | ;; |
3676 | h8500-*-*) | |
b2f14e4a | 3677 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3678 | ;; |
caeba88f | 3679 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3680 | ;; |
5569a85f JDA |
3681 | hppa*64*-*-hpux*) |
3682 | noconfigdirs="$noconfigdirs gdb" | |
3683 | ;; | |
3684 | hppa*-*-hpux11*) | |
3685 | noconfigdirs="$noconfigdirs gdb ld" | |
3686 | ;; | |
93cc359e | 3687 | hppa*64*-*-linux*) |
a0da8069 | 3688 | ;; |
f0ff0f90 | 3689 | hppa*-*-linux*) |
5dcac624 | 3690 | ;; |
a0da8069 | 3691 | hppa*-*-*elf* | \ |
a0da8069 NN |
3692 | hppa*-*-lites* | \ |
3693 | hppa*-*-openbsd* | \ | |
3694 | hppa*64*-*-*) | |
4f0ef2d8 | 3695 | ;; |
691bb5a1 | 3696 | hppa*-*-pro*) |
691bb5a1 | 3697 | ;; |
a0da8069 | 3698 | hppa*-*-*) |
9863d716 | 3699 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3700 | ;; |
b07c2aad | 3701 | i960-*-*) |
b2f14e4a | 3702 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3703 | ;; |
a0da8069 NN |
3704 | ia64*-*-elf*) |
3705 | # No gdb support yet. | |
0377a422 | 3706 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3707 | ;; |
3708 | ia64*-**-hpux*) | |
92c9a463 | 3709 | # No ld support yet. |
5569a85f | 3710 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
a0da8069 | 3711 | ;; |
19e99079 | 3712 | ia64*-*-*vms*) |
7ec59b9e L |
3713 | # No ld support yet. |
3714 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
19e99079 | 3715 | ;; |
1f53ca9a | 3716 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3717 | ;; |
3718 | i[3456789]86-*-mingw*) | |
45055374 | 3719 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3720 | ;; |
a0da8069 NN |
3721 | *-*-cygwin*) |
3722 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3723 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3724 | # always build newlib if winsup directory is present. |
45055374 | 3725 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3726 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3727 | elif test -d "$srcdir/newlib"; then |
45055374 | 3728 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3729 | fi |
c6b750e1 | 3730 | ;; |
ec11bdc6 | 3731 | i[3456789]86-*-pe) |
782cb41f | 3732 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3733 | ;; |
ec11bdc6 | 3734 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3735 | # The linker does not yet know about weak symbols in COFF, |
3736 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3737 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3738 | ;; |
ec11bdc6 | 3739 | i[3456789]86-*-sco*) |
b2f14e4a | 3740 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3741 | ;; |
cff32a7c | 3742 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
a0da8069 NN |
3743 | noconfigdirs="$noconfigdirs target-libgloss" |
3744 | ;; | |
ec11bdc6 | 3745 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3746 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3747 | ;; |
ec11bdc6 | 3748 | i[3456789]86-*-beos*) |
c7e4b184 | 3749 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3750 | ;; |
b59bea8a | 3751 | i[3456789]86-*-rdos*) |
c7e4b184 | 3752 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3753 | ;; |
a0da8069 | 3754 | mmix-*-*) |
9863d716 | 3755 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3756 | ;; |
4970f871 | 3757 | mt-*-*) |
cdb9b172 AH |
3758 | noconfigdirs="$noconfigdirs sim" |
3759 | ;; | |
1063beb5 FT |
3760 | nfp-*-*) |
3761 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3762 | noconfigdirs="$noconfigdirs $target_libraries" | |
3763 | ;; | |
a0da8069 NN |
3764 | powerpc-*-aix*) |
3765 | # copied from rs6000-*-* entry | |
c7e4b184 | 3766 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3767 | ;; |
93cc359e | 3768 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 3769 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 3770 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
3771 | # always build newlib. |
3772 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3773 | ;; | |
3774 | # This is temporary until we can link against shared libraries | |
3775 | powerpcle-*-solaris*) | |
b2f14e4a | 3776 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
3777 | ;; |
3778 | powerpc-*-beos*) | |
c7e4b184 | 3779 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3780 | ;; |
a0da8069 | 3781 | rs6000-*-lynxos*) |
c7e4b184 | 3782 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3783 | ;; |
3784 | rs6000-*-aix*) | |
c7e4b184 | 3785 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3786 | ;; |
3787 | rs6000-*-*) | |
9863d716 | 3788 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3789 | ;; |
3790 | m68k-apollo-*) | |
b2f14e4a | 3791 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 3792 | ;; |
25a07265 | 3793 | microblaze*) |
9863d716 | 3794 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 3795 | ;; |
a9d58c06 | 3796 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
5bd8be13 RS |
3797 | if test x$with_newlib = xyes; then |
3798 | noconfigdirs="$noconfigdirs gprof" | |
3799 | fi | |
5bd8be13 | 3800 | ;; |
a0da8069 | 3801 | mips*-*-irix5*) |
b2f14e4a | 3802 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
3803 | ;; |
3804 | mips*-*-irix6*) | |
9863d716 | 3805 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3806 | ;; |
a0da8069 | 3807 | mips*-*-bsd*) |
e8044f35 | 3808 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
a0da8069 | 3809 | ;; |
a0da8069 | 3810 | mips*-*-linux*) |
a0da8069 | 3811 | ;; |
e8044f35 RS |
3812 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3813 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3814 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3815 | ;; | |
a0da8069 | 3816 | mips*-*-*) |
9863d716 | 3817 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3818 | ;; |
1b6c0831 | 3819 | nvptx*-*-*) |
1b6c0831 L |
3820 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3821 | ;; | |
05a13254 | 3822 | sh-*-*) |
e8a5fa9c RW |
3823 | case "${target}" in |
3824 | sh*-*-elf) | |
9863d716 | 3825 | ;; |
e8a5fa9c | 3826 | *) |
9863d716 | 3827 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 3828 | esac |
a0da8069 | 3829 | ;; |
a0da8069 | 3830 | sparc-*-sunos4*) |
c7e4b184 | 3831 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
3832 | use_gnu_ld=no |
3833 | fi | |
3834 | ;; | |
619a3713 | 3835 | tic6x-*-*) |
40ae9136 | 3836 | noconfigdirs="$noconfigdirs sim" |
619a3713 | 3837 | ;; |
05a13254 | 3838 | tilepro*-*-* | tilegx*-*-*) |
eb4b2452 NC |
3839 | noconfigdirs="$noconfigdirs sim" |
3840 | ;; | |
a0da8069 | 3841 | v810-*-*) |
b2f14e4a | 3842 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
3843 | ;; |
3844 | vax-*-*) | |
9863d716 | 3845 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3846 | ;; |
b29d2641 MR |
3847 | wasm32-*-*) |
3848 | noconfigdirs="$noconfigdirs ld" | |
3849 | ;; | |
a0da8069 | 3850 | esac |
252b5132 | 3851 | |
a0da8069 NN |
3852 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3853 | # depends upon some newlib header files. | |
3854 | case "${noconfigdirs}" in | |
3855 | *target-libgloss*) ;; | |
3856 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3857 | esac | |
3858 | ||
a0da8069 | 3859 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
3860 | host_makefile_frag=/dev/null |
3861 | if test -d ${srcdir}/config ; then | |
3862 | case "${host}" in | |
ec11bdc6 | 3863 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
3864 | host_makefile_frag="config/mh-djgpp" |
3865 | ;; | |
3866 | *-cygwin*) | |
e33b51a6 | 3867 | |
81ecdfbb RW |
3868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3869 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 3870 | echo a >cygwin-cat-check |
1f53ca9a | 3871 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 3872 | rm cygwin-cat-check |
81ecdfbb RW |
3873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3874 | $as_echo "yes" >&6; } | |
e33b51a6 | 3875 | else |
8ade07e9 | 3876 | rm cygwin-cat-check |
81ecdfbb RW |
3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3878 | $as_echo "no" >&6; } | |
3879 | as_fn_error "The cat command does not ignore carriage return characters. | |
e33b51a6 NC |
3880 | Please either mount the build directory in binary mode or run the following |
3881 | commands before running any configure script: | |
3882 | set -o igncr | |
3883 | export SHELLOPTS | |
81ecdfbb | 3884 | " "$LINENO" 5 |
e33b51a6 | 3885 | fi |
e33b51a6 | 3886 | |
a0da8069 NN |
3887 | host_makefile_frag="config/mh-cygwin" |
3888 | ;; | |
8a1599ab | 3889 | *-mingw*) |
84e7906e | 3890 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 3891 | ;; |
ce6c656d L |
3892 | alpha*-linux*) |
3893 | host_makefile_frag="config/mh-alpha-linux" | |
3894 | ;; | |
da888c87 | 3895 | hppa*-hp-hpux10*) |
da888c87 | 3896 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 3897 | ;; |
3516a403 | 3898 | hppa*-hp-hpux*) |
da888c87 PB |
3899 | host_makefile_frag="config/mh-pa" |
3900 | ;; | |
3901 | hppa*-*) | |
3902 | host_makefile_frag="config/mh-pa" | |
3903 | ;; | |
e552509b ILT |
3904 | *-*-darwin*) |
3905 | host_makefile_frag="config/mh-darwin" | |
0df3d27f | 3906 | ;; |
f6d183c0 PB |
3907 | powerpc-*-aix*) |
3908 | host_makefile_frag="config/mh-ppc-aix" | |
3909 | ;; | |
3910 | rs6000-*-aix*) | |
3911 | host_makefile_frag="config/mh-ppc-aix" | |
3912 | ;; | |
a0da8069 NN |
3913 | esac |
3914 | fi | |
3915 | ||
9e07f89d | 3916 | if test "${build}" != "${host}" ; then |
1576798e PB |
3917 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3918 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 3919 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
1576798e | 3920 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
1576798e | 3921 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
e552509b | 3922 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
1576798e PB |
3923 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3924 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3925 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3926 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3927 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3928 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3929 | else | |
3930 | AR_FOR_BUILD="\$(AR)" | |
3931 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 3932 | CC_FOR_BUILD="\$(CC)" |
1576798e | 3933 | CXX_FOR_BUILD="\$(CXX)" |
1576798e | 3934 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
e552509b | 3935 | GOC_FOR_BUILD="\$(GOC)" |
1576798e PB |
3936 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3937 | LD_FOR_BUILD="\$(LD)" | |
3938 | NM_FOR_BUILD="\$(NM)" | |
3939 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3940 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3941 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
3942 | fi |
3943 | ||
3944 | ac_ext=c | |
c6b750e1 DJ |
3945 | ac_cpp='$CPP $CPPFLAGS' |
3946 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3947 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3948 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3949 | if test -n "$ac_tool_prefix"; then | |
3950 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3951 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3953 | $as_echo_n "checking for $ac_word... " >&6; } | |
3954 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3955 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
3956 | else |
3957 | if test -n "$CC"; then | |
3958 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3959 | else | |
3960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3961 | for as_dir in $PATH | |
3962 | do | |
3963 | IFS=$as_save_IFS | |
3964 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3965 | for ac_exec_ext in '' $ac_executable_extensions; do |
3966 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3967 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 3968 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3969 | break 2 |
3970 | fi | |
3971 | done | |
81ecdfbb RW |
3972 | done |
3973 | IFS=$as_save_IFS | |
c6b750e1 DJ |
3974 | |
3975 | fi | |
3976 | fi | |
3977 | CC=$ac_cv_prog_CC | |
3978 | if test -n "$CC"; then | |
81ecdfbb RW |
3979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3980 | $as_echo "$CC" >&6; } | |
c6b750e1 | 3981 | else |
81ecdfbb RW |
3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3983 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3984 | fi |
3985 | ||
81ecdfbb | 3986 | |
c6b750e1 DJ |
3987 | fi |
3988 | if test -z "$ac_cv_prog_CC"; then | |
3989 | ac_ct_CC=$CC | |
6a9cf61e | 3990 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 3991 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
3992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3993 | $as_echo_n "checking for $ac_word... " >&6; } | |
3994 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3995 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
3996 | else |
3997 | if test -n "$ac_ct_CC"; then | |
3998 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3999 | else | |
4000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4001 | for as_dir in $PATH | |
4002 | do | |
4003 | IFS=$as_save_IFS | |
4004 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4005 | for ac_exec_ext in '' $ac_executable_extensions; do |
4006 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4007 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4008 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4009 | break 2 |
4010 | fi | |
4011 | done | |
81ecdfbb RW |
4012 | done |
4013 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4014 | |
4015 | fi | |
4016 | fi | |
4017 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4018 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4020 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 4021 | else |
81ecdfbb RW |
4022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4023 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4024 | fi |
4025 | ||
81ecdfbb RW |
4026 | if test "x$ac_ct_CC" = x; then |
4027 | CC="" | |
4028 | else | |
4029 | case $cross_compiling:$ac_tool_warned in | |
4030 | yes:) | |
4031 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4032 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4033 | ac_tool_warned=yes ;; | |
4034 | esac | |
4035 | CC=$ac_ct_CC | |
4036 | fi | |
c6b750e1 DJ |
4037 | else |
4038 | CC="$ac_cv_prog_CC" | |
4039 | fi | |
4040 | ||
4041 | if test -z "$CC"; then | |
81ecdfbb RW |
4042 | if test -n "$ac_tool_prefix"; then |
4043 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 4044 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4046 | $as_echo_n "checking for $ac_word... " >&6; } | |
4047 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4048 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4049 | else |
4050 | if test -n "$CC"; then | |
4051 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4052 | else | |
c6b750e1 DJ |
4053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4054 | for as_dir in $PATH | |
4055 | do | |
4056 | IFS=$as_save_IFS | |
4057 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4058 | for ac_exec_ext in '' $ac_executable_extensions; do |
4059 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4060 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4061 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4062 | break 2 |
4063 | fi | |
4064 | done | |
81ecdfbb RW |
4065 | done |
4066 | IFS=$as_save_IFS | |
c6b750e1 | 4067 | |
9e07f89d NN |
4068 | fi |
4069 | fi | |
c6b750e1 | 4070 | CC=$ac_cv_prog_CC |
9e07f89d | 4071 | if test -n "$CC"; then |
81ecdfbb RW |
4072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4073 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4074 | else |
81ecdfbb RW |
4075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4076 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4077 | fi |
4078 | ||
c6b750e1 | 4079 | |
81ecdfbb | 4080 | fi |
c6b750e1 | 4081 | fi |
9e07f89d NN |
4082 | if test -z "$CC"; then |
4083 | # Extract the first word of "cc", so it can be a program name with args. | |
4084 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4086 | $as_echo_n "checking for $ac_word... " >&6; } | |
4087 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4088 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4089 | else |
4090 | if test -n "$CC"; then | |
4091 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4092 | else | |
9e07f89d | 4093 | ac_prog_rejected=no |
c6b750e1 DJ |
4094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4095 | for as_dir in $PATH | |
4096 | do | |
4097 | IFS=$as_save_IFS | |
4098 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4099 | for ac_exec_ext in '' $ac_executable_extensions; do |
4100 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 DJ |
4101 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4102 | ac_prog_rejected=yes | |
4103 | continue | |
4104 | fi | |
4105 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4106 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4107 | break 2 |
4108 | fi | |
4109 | done | |
81ecdfbb RW |
4110 | done |
4111 | IFS=$as_save_IFS | |
c6b750e1 | 4112 | |
9e07f89d NN |
4113 | if test $ac_prog_rejected = yes; then |
4114 | # We found a bogon in the path, so make sure we never use it. | |
4115 | set dummy $ac_cv_prog_CC | |
4116 | shift | |
c6b750e1 | 4117 | if test $# != 0; then |
9e07f89d NN |
4118 | # We chose a different compiler from the bogus one. |
4119 | # However, it has the same basename, so the bogon will be chosen | |
4120 | # first if we set CC to just the basename; use the full file name. | |
4121 | shift | |
c6b750e1 | 4122 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
4123 | fi |
4124 | fi | |
4125 | fi | |
4126 | fi | |
c6b750e1 | 4127 | CC=$ac_cv_prog_CC |
9e07f89d | 4128 | if test -n "$CC"; then |
81ecdfbb RW |
4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4130 | $as_echo "$CC" >&6; } | |
9e07f89d | 4131 | else |
81ecdfbb RW |
4132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4133 | $as_echo "no" >&6; } | |
9e07f89d NN |
4134 | fi |
4135 | ||
81ecdfbb | 4136 | |
c6b750e1 DJ |
4137 | fi |
4138 | if test -z "$CC"; then | |
4139 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4140 | for ac_prog in cl.exe |
c6b750e1 DJ |
4141 | do |
4142 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4143 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4145 | $as_echo_n "checking for $ac_word... " >&6; } | |
4146 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4147 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4148 | else |
4149 | if test -n "$CC"; then | |
4150 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4151 | else | |
c6b750e1 DJ |
4152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4153 | for as_dir in $PATH | |
4154 | do | |
4155 | IFS=$as_save_IFS | |
4156 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4157 | for ac_exec_ext in '' $ac_executable_extensions; do |
4158 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4159 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4160 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 4161 | break 2 |
376a0e54 | 4162 | fi |
c6b750e1 | 4163 | done |
81ecdfbb RW |
4164 | done |
4165 | IFS=$as_save_IFS | |
cac3d6c4 | 4166 | |
c6b750e1 DJ |
4167 | fi |
4168 | fi | |
4169 | CC=$ac_cv_prog_CC | |
4170 | if test -n "$CC"; then | |
81ecdfbb RW |
4171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4172 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 4173 | else |
81ecdfbb RW |
4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4175 | $as_echo "no" >&6; } | |
9e07f89d | 4176 | fi |
cac3d6c4 | 4177 | |
81ecdfbb | 4178 | |
c6b750e1 DJ |
4179 | test -n "$CC" && break |
4180 | done | |
cac3d6c4 | 4181 | fi |
c6b750e1 DJ |
4182 | if test -z "$CC"; then |
4183 | ac_ct_CC=$CC | |
81ecdfbb | 4184 | for ac_prog in cl.exe |
c6b750e1 DJ |
4185 | do |
4186 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4187 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4189 | $as_echo_n "checking for $ac_word... " >&6; } | |
4190 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4191 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 4192 | else |
c6b750e1 DJ |
4193 | if test -n "$ac_ct_CC"; then |
4194 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 4195 | else |
c6b750e1 DJ |
4196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4197 | for as_dir in $PATH | |
4198 | do | |
4199 | IFS=$as_save_IFS | |
4200 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4201 | for ac_exec_ext in '' $ac_executable_extensions; do |
4202 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4203 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4204 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4205 | break 2 |
4206 | fi | |
4207 | done | |
81ecdfbb RW |
4208 | done |
4209 | IFS=$as_save_IFS | |
c6b750e1 | 4210 | |
cac3d6c4 CM |
4211 | fi |
4212 | fi | |
c6b750e1 DJ |
4213 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4214 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4216 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 4217 | else |
81ecdfbb RW |
4218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4219 | $as_echo "no" >&6; } | |
cac3d6c4 | 4220 | fi |
376a0e54 | 4221 | |
81ecdfbb | 4222 | |
c6b750e1 DJ |
4223 | test -n "$ac_ct_CC" && break |
4224 | done | |
4225 | ||
81ecdfbb RW |
4226 | if test "x$ac_ct_CC" = x; then |
4227 | CC="" | |
4228 | else | |
4229 | case $cross_compiling:$ac_tool_warned in | |
4230 | yes:) | |
4231 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4232 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4233 | ac_tool_warned=yes ;; | |
4234 | esac | |
4235 | CC=$ac_ct_CC | |
4236 | fi | |
c6b750e1 DJ |
4237 | fi |
4238 | ||
4239 | fi | |
4240 | ||
4241 | ||
81ecdfbb RW |
4242 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4243 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4244 | as_fn_error "no acceptable C compiler found in \$PATH | |
4245 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 DJ |
4246 | |
4247 | # Provide some information about the compiler. | |
81ecdfbb RW |
4248 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4249 | set X $ac_compile | |
4250 | ac_compiler=$2 | |
4251 | for ac_option in --version -v -V -qversion; do | |
4252 | { { ac_try="$ac_compiler $ac_option >&5" | |
4253 | case "(($ac_try" in | |
4254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4255 | *) ac_try_echo=$ac_try;; | |
4256 | esac | |
4257 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4258 | $as_echo "$ac_try_echo"; } >&5 | |
4259 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4260 | ac_status=$? |
81ecdfbb RW |
4261 | if test -s conftest.err; then |
4262 | sed '10a\ | |
4263 | ... rest of stderr output deleted ... | |
4264 | 10q' conftest.err >conftest.er1 | |
4265 | cat conftest.er1 >&5 | |
4266 | rm -f conftest.er1 conftest.err | |
4267 | fi | |
4268 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4269 | test $ac_status = 0; } | |
4270 | done | |
c6b750e1 | 4271 | |
81ecdfbb | 4272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4273 | /* end confdefs.h. */ |
4274 | ||
4275 | int | |
4276 | main () | |
4277 | { | |
4278 | ||
4279 | ; | |
4280 | return 0; | |
4281 | } | |
4282 | _ACEOF | |
4283 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 4284 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
c6b750e1 DJ |
4285 | # Try to create an executable without -o first, disregard a.out. |
4286 | # It will help us diagnose broken compilers, and finding out an intuition | |
4287 | # of exeext. | |
81ecdfbb RW |
4288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4289 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4290 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4291 | ||
4292 | # The possible output files: | |
4293 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4294 | ||
4295 | ac_rmfiles= | |
4296 | for ac_file in $ac_files | |
4297 | do | |
4298 | case $ac_file in | |
4299 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4300 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4301 | esac | |
4302 | done | |
4303 | rm -f $ac_rmfiles | |
4304 | ||
4305 | if { { ac_try="$ac_link_default" | |
4306 | case "(($ac_try" in | |
4307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4308 | *) ac_try_echo=$ac_try;; | |
4309 | esac | |
4310 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4311 | $as_echo "$ac_try_echo"; } >&5 | |
4312 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4313 | ac_status=$? |
81ecdfbb RW |
4314 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4315 | test $ac_status = 0; }; then : | |
4316 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4317 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4318 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4319 | # so that the user can short-circuit this test for compilers unknown to | |
4320 | # Autoconf. | |
4321 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4322 | do |
4323 | test -f "$ac_file" || continue | |
4324 | case $ac_file in | |
81ecdfbb | 4325 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4326 | ;; |
4327 | [ab].out ) | |
4328 | # We found the default executable, but exeext='' is most | |
4329 | # certainly right. | |
4330 | break;; | |
4331 | *.* ) | |
81ecdfbb RW |
4332 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4333 | then :; else | |
4334 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4335 | fi | |
4336 | # We set ac_cv_exeext here because the later test for it is not | |
4337 | # safe: cross compilers may not add the suffix if given an `-o' | |
4338 | # argument, so we may need to know it at that point already. | |
4339 | # Even if this section looks crufty: it has the advantage of | |
4340 | # actually working. | |
c6b750e1 DJ |
4341 | break;; |
4342 | * ) | |
4343 | break;; | |
4344 | esac | |
4345 | done | |
81ecdfbb RW |
4346 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4347 | ||
c6b750e1 | 4348 | else |
81ecdfbb RW |
4349 | ac_file='' |
4350 | fi | |
4351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4352 | $as_echo "$ac_file" >&6; } | |
4353 | if test -z "$ac_file"; then : | |
4354 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4355 | sed 's/^/| /' conftest.$ac_ext >&5 |
4356 | ||
81ecdfbb RW |
4357 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4358 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4359 | { as_fn_set_status 77 | |
4360 | as_fn_error "C compiler cannot create executables | |
4361 | See \`config.log' for more details." "$LINENO" 5; }; } | |
c6b750e1 | 4362 | fi |
c6b750e1 | 4363 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4364 | |
81ecdfbb | 4365 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4366 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4368 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
c6b750e1 DJ |
4369 | # If not cross compiling, check that we can run a simple program. |
4370 | if test "$cross_compiling" != yes; then | |
4371 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
4372 | { { case "(($ac_try" in |
4373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4374 | *) ac_try_echo=$ac_try;; | |
4375 | esac | |
4376 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4377 | $as_echo "$ac_try_echo"; } >&5 | |
4378 | (eval "$ac_try") 2>&5 | |
c6b750e1 | 4379 | ac_status=$? |
81ecdfbb RW |
4380 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4381 | test $ac_status = 0; }; }; then | |
c6b750e1 DJ |
4382 | cross_compiling=no |
4383 | else | |
4384 | if test "$cross_compiling" = maybe; then | |
4385 | cross_compiling=yes | |
4386 | else | |
81ecdfbb RW |
4387 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4388 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4389 | as_fn_error "cannot run C compiled programs. | |
c6b750e1 | 4390 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 4391 | See \`config.log' for more details." "$LINENO" 5; } |
c6b750e1 DJ |
4392 | fi |
4393 | fi | |
4394 | fi | |
81ecdfbb RW |
4395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4396 | $as_echo "yes" >&6; } | |
c6b750e1 | 4397 | |
81ecdfbb | 4398 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
c6b750e1 | 4399 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 4400 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4401 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4403 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4405 | $as_echo "$cross_compiling" >&6; } | |
4406 | ||
4407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4408 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4409 | if { { ac_try="$ac_link" | |
4410 | case "(($ac_try" in | |
4411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4412 | *) ac_try_echo=$ac_try;; | |
4413 | esac | |
4414 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4415 | $as_echo "$ac_try_echo"; } >&5 | |
4416 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4417 | ac_status=$? |
81ecdfbb RW |
4418 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4419 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4420 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4421 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4422 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4423 | # `rm'. | |
4424 | for ac_file in conftest.exe conftest conftest.*; do | |
4425 | test -f "$ac_file" || continue | |
4426 | case $ac_file in | |
81ecdfbb | 4427 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4428 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4429 | break;; |
4430 | * ) break;; | |
4431 | esac | |
4432 | done | |
4433 | else | |
81ecdfbb RW |
4434 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4435 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4436 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4437 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4438 | fi |
c6b750e1 | 4439 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4441 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4442 | |
4443 | rm -f conftest.$ac_ext | |
4444 | EXEEXT=$ac_cv_exeext | |
4445 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4447 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4448 | if test "${ac_cv_objext+set}" = set; then : | |
4449 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4450 | else |
81ecdfbb | 4451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4452 | /* end confdefs.h. */ |
4453 | ||
4454 | int | |
4455 | main () | |
4456 | { | |
4457 | ||
4458 | ; | |
4459 | return 0; | |
4460 | } | |
4461 | _ACEOF | |
4462 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4463 | if { { ac_try="$ac_compile" |
4464 | case "(($ac_try" in | |
4465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4466 | *) ac_try_echo=$ac_try;; | |
4467 | esac | |
4468 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4469 | $as_echo "$ac_try_echo"; } >&5 | |
4470 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4471 | ac_status=$? |
81ecdfbb RW |
4472 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4473 | test $ac_status = 0; }; then : | |
4474 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4475 | test -f "$ac_file" || continue; | |
c6b750e1 | 4476 | case $ac_file in |
81ecdfbb | 4477 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4478 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4479 | break;; | |
4480 | esac | |
4481 | done | |
cac3d6c4 | 4482 | else |
81ecdfbb | 4483 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4484 | sed 's/^/| /' conftest.$ac_ext >&5 |
4485 | ||
81ecdfbb RW |
4486 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4487 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4488 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4489 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4490 | fi |
c6b750e1 DJ |
4491 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4492 | fi | |
81ecdfbb RW |
4493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4494 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4495 | OBJEXT=$ac_cv_objext |
4496 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4498 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4499 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4500 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4501 | else |
81ecdfbb | 4502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4503 | /* end confdefs.h. */ |
4504 | ||
4505 | int | |
4506 | main () | |
4507 | { | |
4508 | #ifndef __GNUC__ | |
4509 | choke me | |
4510 | #endif | |
4511 | ||
4512 | ; | |
4513 | return 0; | |
4514 | } | |
4515 | _ACEOF | |
81ecdfbb | 4516 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4517 | ac_compiler_gnu=yes |
4518 | else | |
81ecdfbb | 4519 | ac_compiler_gnu=no |
c6b750e1 | 4520 | fi |
81ecdfbb | 4521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4522 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4523 | ||
4524 | fi | |
81ecdfbb RW |
4525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4526 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4527 | if test $ac_compiler_gnu = yes; then | |
4528 | GCC=yes | |
4529 | else | |
4530 | GCC= | |
4531 | fi | |
c6b750e1 DJ |
4532 | ac_test_CFLAGS=${CFLAGS+set} |
4533 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4535 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4536 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4537 | $as_echo_n "(cached) " >&6 | |
4538 | else | |
4539 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4540 | ac_c_werror_flag=yes | |
4541 | ac_cv_prog_cc_g=no | |
4542 | CFLAGS="-g" | |
4543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4544 | /* end confdefs.h. */ |
4545 | ||
4546 | int | |
4547 | main () | |
4548 | { | |
4549 | ||
4550 | ; | |
4551 | return 0; | |
4552 | } | |
4553 | _ACEOF | |
81ecdfbb | 4554 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4555 | ac_cv_prog_cc_g=yes |
4556 | else | |
81ecdfbb RW |
4557 | CFLAGS="" |
4558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4559 | /* end confdefs.h. */ | |
4560 | ||
4561 | int | |
4562 | main () | |
4563 | { | |
4564 | ||
4565 | ; | |
4566 | return 0; | |
4567 | } | |
4568 | _ACEOF | |
4569 | if ac_fn_c_try_compile "$LINENO"; then : | |
4570 | ||
4571 | else | |
4572 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4573 | CFLAGS="-g" | |
4574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4575 | /* end confdefs.h. */ | |
cac3d6c4 | 4576 | |
81ecdfbb RW |
4577 | int |
4578 | main () | |
4579 | { | |
4580 | ||
4581 | ; | |
4582 | return 0; | |
4583 | } | |
4584 | _ACEOF | |
4585 | if ac_fn_c_try_compile "$LINENO"; then : | |
4586 | ac_cv_prog_cc_g=yes | |
4587 | fi | |
4588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4589 | fi |
81ecdfbb | 4590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4591 | fi |
81ecdfbb RW |
4592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4593 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4594 | fi | |
4595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4596 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4597 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4598 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4599 | elif test $ac_cv_prog_cc_g = yes; then |
4600 | if test "$GCC" = yes; then | |
4601 | CFLAGS="-g -O2" | |
4602 | else | |
4603 | CFLAGS="-g" | |
4604 | fi | |
4605 | else | |
4606 | if test "$GCC" = yes; then | |
4607 | CFLAGS="-O2" | |
4608 | else | |
4609 | CFLAGS= | |
4610 | fi | |
4611 | fi | |
81ecdfbb RW |
4612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4613 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4614 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4615 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4616 | else |
81ecdfbb | 4617 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4618 | ac_save_CC=$CC |
81ecdfbb | 4619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4620 | /* end confdefs.h. */ |
4621 | #include <stdarg.h> | |
4622 | #include <stdio.h> | |
4623 | #include <sys/types.h> | |
4624 | #include <sys/stat.h> | |
4625 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4626 | struct buf { int x; }; | |
4627 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4628 | static char *e (p, i) | |
4629 | char **p; | |
4630 | int i; | |
4631 | { | |
4632 | return p[i]; | |
4633 | } | |
4634 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4635 | { | |
4636 | char *s; | |
4637 | va_list v; | |
4638 | va_start (v,p); | |
4639 | s = g (p, va_arg (v,int)); | |
4640 | va_end (v); | |
4641 | return s; | |
4642 | } | |
4643 | ||
4644 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4645 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4646 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4647 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4648 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4649 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4650 | that's true only with -std. */ |
c6b750e1 DJ |
4651 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4652 | ||
81ecdfbb RW |
4653 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4654 | inside strings and character constants. */ | |
4655 | #define FOO(x) 'x' | |
4656 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4657 | ||
c6b750e1 DJ |
4658 | int test (int i, double x); |
4659 | struct s1 {int (*f) (int a);}; | |
4660 | struct s2 {int (*f) (double a);}; | |
4661 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4662 | int argc; | |
4663 | char **argv; | |
4664 | int | |
4665 | main () | |
4666 | { | |
4667 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4668 | ; | |
4669 | return 0; | |
4670 | } | |
4671 | _ACEOF | |
81ecdfbb RW |
4672 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4673 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4674 | do |
4675 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4676 | if ac_fn_c_try_compile "$LINENO"; then : |
4677 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4678 | fi |
81ecdfbb RW |
4679 | rm -f core conftest.err conftest.$ac_objext |
4680 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4681 | done |
81ecdfbb | 4682 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4683 | CC=$ac_save_CC |
4684 | ||
4685 | fi | |
81ecdfbb RW |
4686 | # AC_CACHE_VAL |
4687 | case "x$ac_cv_prog_cc_c89" in | |
4688 | x) | |
4689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4690 | $as_echo "none needed" >&6; } ;; | |
4691 | xno) | |
4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4693 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4694 | *) |
81ecdfbb RW |
4695 | CC="$CC $ac_cv_prog_cc_c89" |
4696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4697 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4698 | esac |
81ecdfbb | 4699 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4700 | |
c6b750e1 DJ |
4701 | fi |
4702 | ||
c6b750e1 DJ |
4703 | ac_ext=c |
4704 | ac_cpp='$CPP $CPPFLAGS' | |
4705 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4706 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4707 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4708 | |
81ecdfbb | 4709 | ac_ext=cpp |
18f6b6ee PB |
4710 | ac_cpp='$CXXCPP $CPPFLAGS' |
4711 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4712 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4713 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
4714 | if test -z "$CXX"; then |
4715 | if test -n "$CCC"; then | |
4716 | CXX=$CCC | |
4717 | else | |
4718 | if test -n "$ac_tool_prefix"; then | |
4719 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
4720 | do |
4721 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4722 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4724 | $as_echo_n "checking for $ac_word... " >&6; } | |
4725 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4726 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4727 | else |
4728 | if test -n "$CXX"; then | |
4729 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4730 | else | |
4731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4732 | for as_dir in $PATH | |
4733 | do | |
4734 | IFS=$as_save_IFS | |
4735 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4736 | for ac_exec_ext in '' $ac_executable_extensions; do |
4737 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4738 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
4740 | break 2 |
4741 | fi | |
4742 | done | |
81ecdfbb RW |
4743 | done |
4744 | IFS=$as_save_IFS | |
512b7dfb | 4745 | |
18f6b6ee PB |
4746 | fi |
4747 | fi | |
4748 | CXX=$ac_cv_prog_CXX | |
4749 | if test -n "$CXX"; then | |
81ecdfbb RW |
4750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4751 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 4752 | else |
81ecdfbb RW |
4753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4754 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4755 | fi |
4756 | ||
81ecdfbb | 4757 | |
18f6b6ee PB |
4758 | test -n "$CXX" && break |
4759 | done | |
4760 | fi | |
4761 | if test -z "$CXX"; then | |
4762 | ac_ct_CXX=$CXX | |
81ecdfbb | 4763 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
4764 | do |
4765 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4766 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4768 | $as_echo_n "checking for $ac_word... " >&6; } | |
4769 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4770 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4771 | else |
4772 | if test -n "$ac_ct_CXX"; then | |
4773 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4774 | else | |
4775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4776 | for as_dir in $PATH | |
4777 | do | |
4778 | IFS=$as_save_IFS | |
4779 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4780 | for ac_exec_ext in '' $ac_executable_extensions; do |
4781 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4782 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 4784 | break 2 |
512b7dfb | 4785 | fi |
18f6b6ee | 4786 | done |
81ecdfbb RW |
4787 | done |
4788 | IFS=$as_save_IFS | |
512b7dfb | 4789 | |
18f6b6ee PB |
4790 | fi |
4791 | fi | |
4792 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4793 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
4794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4795 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 4796 | else |
81ecdfbb RW |
4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4798 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4799 | fi |
4800 | ||
81ecdfbb | 4801 | |
18f6b6ee PB |
4802 | test -n "$ac_ct_CXX" && break |
4803 | done | |
18f6b6ee | 4804 | |
81ecdfbb RW |
4805 | if test "x$ac_ct_CXX" = x; then |
4806 | CXX="g++" | |
4807 | else | |
4808 | case $cross_compiling:$ac_tool_warned in | |
4809 | yes:) | |
4810 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4811 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4812 | ac_tool_warned=yes ;; | |
4813 | esac | |
4814 | CXX=$ac_ct_CXX | |
4815 | fi | |
18f6b6ee PB |
4816 | fi |
4817 | ||
81ecdfbb RW |
4818 | fi |
4819 | fi | |
18f6b6ee | 4820 | # Provide some information about the compiler. |
81ecdfbb RW |
4821 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4822 | set X $ac_compile | |
4823 | ac_compiler=$2 | |
4824 | for ac_option in --version -v -V -qversion; do | |
4825 | { { ac_try="$ac_compiler $ac_option >&5" | |
4826 | case "(($ac_try" in | |
4827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4828 | *) ac_try_echo=$ac_try;; | |
4829 | esac | |
4830 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4831 | $as_echo "$ac_try_echo"; } >&5 | |
4832 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 4833 | ac_status=$? |
81ecdfbb RW |
4834 | if test -s conftest.err; then |
4835 | sed '10a\ | |
4836 | ... rest of stderr output deleted ... | |
4837 | 10q' conftest.err >conftest.er1 | |
4838 | cat conftest.er1 >&5 | |
4839 | rm -f conftest.er1 conftest.err | |
4840 | fi | |
4841 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4842 | test $ac_status = 0; } | |
4843 | done | |
18f6b6ee | 4844 | |
81ecdfbb RW |
4845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4846 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4847 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4848 | $as_echo_n "(cached) " >&6 | |
18f6b6ee | 4849 | else |
81ecdfbb | 4850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
4851 | /* end confdefs.h. */ |
4852 | ||
4853 | int | |
4854 | main () | |
4855 | { | |
4856 | #ifndef __GNUC__ | |
4857 | choke me | |
4858 | #endif | |
4859 | ||
4860 | ; | |
4861 | return 0; | |
4862 | } | |
4863 | _ACEOF | |
81ecdfbb | 4864 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4865 | ac_compiler_gnu=yes |
4866 | else | |
81ecdfbb | 4867 | ac_compiler_gnu=no |
18f6b6ee | 4868 | fi |
81ecdfbb | 4869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
4870 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4871 | ||
4872 | fi | |
81ecdfbb RW |
4873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4874 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4875 | if test $ac_compiler_gnu = yes; then | |
4876 | GXX=yes | |
4877 | else | |
4878 | GXX= | |
4879 | fi | |
18f6b6ee PB |
4880 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4881 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
4882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4883 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4884 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4885 | $as_echo_n "(cached) " >&6 | |
4886 | else | |
4887 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4888 | ac_cxx_werror_flag=yes | |
4889 | ac_cv_prog_cxx_g=no | |
4890 | CXXFLAGS="-g" | |
4891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
4892 | /* end confdefs.h. */ |
4893 | ||
4894 | int | |
4895 | main () | |
4896 | { | |
4897 | ||
4898 | ; | |
4899 | return 0; | |
4900 | } | |
4901 | _ACEOF | |
81ecdfbb | 4902 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4903 | ac_cv_prog_cxx_g=yes |
4904 | else | |
81ecdfbb RW |
4905 | CXXFLAGS="" |
4906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4907 | /* end confdefs.h. */ |
81ecdfbb | 4908 | |
18f6b6ee PB |
4909 | int |
4910 | main () | |
4911 | { | |
81ecdfbb | 4912 | |
18f6b6ee PB |
4913 | ; |
4914 | return 0; | |
4915 | } | |
4916 | _ACEOF | |
81ecdfbb | 4917 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 4918 | |
81ecdfbb RW |
4919 | else |
4920 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4921 | CXXFLAGS="-g" | |
4922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4923 | /* end confdefs.h. */ |
81ecdfbb | 4924 | |
18f6b6ee PB |
4925 | int |
4926 | main () | |
4927 | { | |
81ecdfbb | 4928 | |
18f6b6ee PB |
4929 | ; |
4930 | return 0; | |
4931 | } | |
4932 | _ACEOF | |
81ecdfbb RW |
4933 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4934 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 4935 | fi |
81ecdfbb RW |
4936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4937 | fi | |
4938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4939 | fi | |
4940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4941 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4942 | fi | |
4943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4944 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4945 | if test "$ac_test_CXXFLAGS" = set; then | |
4946 | CXXFLAGS=$ac_save_CXXFLAGS | |
4947 | elif test $ac_cv_prog_cxx_g = yes; then | |
4948 | if test "$GXX" = yes; then | |
4949 | CXXFLAGS="-g -O2" | |
4950 | else | |
4951 | CXXFLAGS="-g" | |
4952 | fi | |
4953 | else | |
4954 | if test "$GXX" = yes; then | |
4955 | CXXFLAGS="-O2" | |
4956 | else | |
4957 | CXXFLAGS= | |
4958 | fi | |
18f6b6ee | 4959 | fi |
18f6b6ee PB |
4960 | ac_ext=c |
4961 | ac_cpp='$CPP $CPPFLAGS' | |
4962 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4963 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4964 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4965 | ||
4966 | ||
4967 | # We must set the default linker to the linker used by gcc for the correct | |
4968 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
4969 | # set the LD default to the ld used by gcc. | |
4970 | if test -z "$LD"; then | |
4971 | if test "$GCC" = yes; then | |
4972 | case $build in | |
4973 | *-*-mingw*) | |
4974 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
4975 | *) | |
4976 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
4977 | esac | |
4978 | case $gcc_prog_ld in | |
4979 | # Accept absolute paths. | |
4980 | [\\/]* | [A-Za-z]:[\\/]*) | |
4981 | LD="$gcc_prog_ld" ;; | |
4982 | esac | |
4983 | fi | |
512b7dfb PB |
4984 | fi |
4985 | ||
b3676d82 EB |
4986 | # Check whether -static-libstdc++ -static-libgcc is supported. |
4987 | have_static_libs=no | |
4988 | if test "$GCC" = yes; then | |
4989 | saved_LDFLAGS="$LDFLAGS" | |
4990 | ||
4991 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
4992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
4993 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
4994 | ac_ext=cpp | |
4995 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4996 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4997 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4998 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4999 | ||
5000 | ||
5001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5002 | /* end confdefs.h. */ | |
a882be68 EB |
5003 | |
5004 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5005 | #error -static-libstdc++ not implemented | |
5006 | #endif | |
b3676d82 EB |
5007 | int main() {} |
5008 | _ACEOF | |
5009 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5011 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5012 | else | |
5013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5014 | $as_echo "no" >&6; } | |
5015 | fi | |
5016 | rm -f core conftest.err conftest.$ac_objext \ | |
5017 | conftest$ac_exeext conftest.$ac_ext | |
5018 | ac_ext=c | |
5019 | ac_cpp='$CPP $CPPFLAGS' | |
5020 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5021 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5022 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5023 | ||
5024 | ||
5025 | LDFLAGS="$saved_LDFLAGS" | |
5026 | fi | |
5027 | ||
512b7dfb PB |
5028 | |
5029 | ||
5030 | ||
c6b750e1 | 5031 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5032 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
5033 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
5034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5035 | $as_echo_n "checking for $ac_word... " >&6; } | |
5036 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
5037 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 5038 | else |
512b7dfb PB |
5039 | if test -n "$GNATBIND"; then |
5040 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 5041 | else |
c6b750e1 DJ |
5042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5043 | for as_dir in $PATH | |
5044 | do | |
5045 | IFS=$as_save_IFS | |
5046 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5047 | for ac_exec_ext in '' $ac_executable_extensions; do |
5048 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5049 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 5050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5051 | break 2 |
5052 | fi | |
5053 | done | |
81ecdfbb RW |
5054 | done |
5055 | IFS=$as_save_IFS | |
c6b750e1 | 5056 | |
9e07f89d NN |
5057 | fi |
5058 | fi | |
512b7dfb PB |
5059 | GNATBIND=$ac_cv_prog_GNATBIND |
5060 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
5061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5062 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 5063 | else |
81ecdfbb RW |
5064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5065 | $as_echo "no" >&6; } | |
9e07f89d NN |
5066 | fi |
5067 | ||
81ecdfbb | 5068 | |
c6b750e1 | 5069 | fi |
512b7dfb PB |
5070 | if test -z "$ac_cv_prog_GNATBIND"; then |
5071 | ac_ct_GNATBIND=$GNATBIND | |
5072 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
5073 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
5074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5075 | $as_echo_n "checking for $ac_word... " >&6; } | |
5076 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
5077 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 5078 | else |
512b7dfb PB |
5079 | if test -n "$ac_ct_GNATBIND"; then |
5080 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 5081 | else |
c6b750e1 DJ |
5082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5083 | for as_dir in $PATH | |
5084 | do | |
5085 | IFS=$as_save_IFS | |
5086 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5087 | for ac_exec_ext in '' $ac_executable_extensions; do |
5088 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5089 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 5090 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5091 | break 2 |
5092 | fi | |
5093 | done | |
81ecdfbb RW |
5094 | done |
5095 | IFS=$as_save_IFS | |
c6b750e1 | 5096 | |
9e07f89d NN |
5097 | fi |
5098 | fi | |
512b7dfb PB |
5099 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5100 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
5101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5102 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 5103 | else |
81ecdfbb RW |
5104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5105 | $as_echo "no" >&6; } | |
9e07f89d NN |
5106 | fi |
5107 | ||
81ecdfbb RW |
5108 | if test "x$ac_ct_GNATBIND" = x; then |
5109 | GNATBIND="no" | |
5110 | else | |
5111 | case $cross_compiling:$ac_tool_warned in | |
5112 | yes:) | |
5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5114 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5115 | ac_tool_warned=yes ;; | |
5116 | esac | |
5117 | GNATBIND=$ac_ct_GNATBIND | |
5118 | fi | |
24ff9987 | 5119 | else |
512b7dfb | 5120 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
5121 | fi |
5122 | ||
7df2cd5d | 5123 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5124 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
5125 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5127 | $as_echo_n "checking for $ac_word... " >&6; } | |
5128 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
5129 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 5130 | else |
512b7dfb PB |
5131 | if test -n "$GNATMAKE"; then |
5132 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5133 | else |
5134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5135 | for as_dir in $PATH | |
5136 | do | |
5137 | IFS=$as_save_IFS | |
5138 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5139 | for ac_exec_ext in '' $ac_executable_extensions; do |
5140 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5141 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 5142 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5143 | break 2 |
5144 | fi | |
5145 | done | |
81ecdfbb RW |
5146 | done |
5147 | IFS=$as_save_IFS | |
7df2cd5d PB |
5148 | |
5149 | fi | |
5150 | fi | |
512b7dfb PB |
5151 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5152 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5154 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 5155 | else |
81ecdfbb RW |
5156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5157 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5158 | fi |
5159 | ||
81ecdfbb | 5160 | |
7df2cd5d | 5161 | fi |
512b7dfb PB |
5162 | if test -z "$ac_cv_prog_GNATMAKE"; then |
5163 | ac_ct_GNATMAKE=$GNATMAKE | |
5164 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
5165 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
5166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5167 | $as_echo_n "checking for $ac_word... " >&6; } | |
5168 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
5169 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 5170 | else |
512b7dfb PB |
5171 | if test -n "$ac_ct_GNATMAKE"; then |
5172 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5173 | else |
5174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5175 | for as_dir in $PATH | |
5176 | do | |
5177 | IFS=$as_save_IFS | |
5178 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5179 | for ac_exec_ext in '' $ac_executable_extensions; do |
5180 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5181 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 5182 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5183 | break 2 |
5184 | fi | |
5185 | done | |
81ecdfbb RW |
5186 | done |
5187 | IFS=$as_save_IFS | |
7df2cd5d | 5188 | |
7df2cd5d PB |
5189 | fi |
5190 | fi | |
512b7dfb PB |
5191 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5192 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
5193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5194 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 5195 | else |
81ecdfbb RW |
5196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5197 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5198 | fi |
5199 | ||
81ecdfbb RW |
5200 | if test "x$ac_ct_GNATMAKE" = x; then |
5201 | GNATMAKE="no" | |
5202 | else | |
5203 | case $cross_compiling:$ac_tool_warned in | |
5204 | yes:) | |
5205 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5206 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5207 | ac_tool_warned=yes ;; | |
5208 | esac | |
5209 | GNATMAKE=$ac_ct_GNATMAKE | |
5210 | fi | |
7df2cd5d | 5211 | else |
512b7dfb | 5212 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
5213 | fi |
5214 | ||
81ecdfbb RW |
5215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5216 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
5217 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
5218 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
5219 | else |
5220 | cat >conftest.adb <<EOF | |
5221 | procedure conftest is begin null; end conftest; | |
5222 | EOF | |
5223 | acx_cv_cc_gcc_supports_ada=no | |
5224 | # There is a bug in old released versions of GCC which causes the | |
5225 | # driver to exit successfully when the appropriate language module | |
5226 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5227 | # Therefore we must check for the error message as well as an | |
5228 | # unsuccessful exit. | |
b8908782 DD |
5229 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5230 | # given a .adb file, but produce no object file. So we must check | |
5231 | # if an object file was really produced to guard against this. | |
9e07f89d | 5232 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 5233 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 5234 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
5235 | fi |
5236 | rm -f conftest.* | |
5237 | fi | |
81ecdfbb RW |
5238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5239 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 5240 | |
64b986c0 | 5241 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
5242 | have_gnat=yes |
5243 | else | |
5244 | have_gnat=no | |
5245 | fi | |
5246 | ||
81ecdfbb RW |
5247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5248 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5249 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5250 | $as_echo_n "(cached) " >&6 | |
b8908782 DD |
5251 | else |
5252 | echo abfoo >t1 | |
5253 | echo cdfoo >t2 | |
da17fe9d | 5254 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
4b1cb4fe DD |
5255 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5256 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5257 | : | |
5258 | else | |
5259 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5260 | fi | |
5261 | fi | |
b8908782 DD |
5262 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5263 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 5264 | : |
b8908782 DD |
5265 | else |
5266 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5267 | fi | |
5268 | fi | |
5269 | rm t1 t2 | |
5270 | ||
5271 | fi | |
81ecdfbb RW |
5272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5273 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
5274 | do_compare="$gcc_cv_prog_cmp_skip" |
5275 | ||
5276 | ||
9e07f89d | 5277 | |
ffdd6afc ILT |
5278 | # Check whether --enable-bootstrap was given. |
5279 | if test "${enable_bootstrap+set}" = set; then : | |
5280 | enableval=$enable_bootstrap; | |
5281 | else | |
5282 | enable_bootstrap=default | |
5283 | fi | |
5284 | ||
5285 | ||
5286 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5287 | if test -r $srcdir/gcc/configure; then | |
5288 | have_compiler=yes | |
5289 | else | |
5290 | have_compiler=no | |
5291 | fi | |
5292 | ||
5293 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5294 | *:*:*:no) ;; | |
5295 | ||
5296 | # Default behavior. Enable bootstrap if we have a compiler | |
5297 | # and we are in a native configuration. | |
5298 | yes:$build:$build:default) | |
5299 | enable_bootstrap=yes ;; | |
5300 | ||
5301 | *:*:*:default) | |
5302 | enable_bootstrap=no ;; | |
5303 | ||
5304 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5305 | yes:$build:$build:yes) | |
5306 | ;; | |
5307 | ||
5308 | # Other configurations, but we have a compiler. Assume the user knows | |
5309 | # what he's doing. | |
5310 | yes:*:*:yes) | |
5311 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5312 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5313 | ;; | |
5314 | ||
5315 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5316 | no:*:*:yes) | |
5317 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5318 | ||
5319 | # Fail if wrong command line | |
5320 | *) | |
5321 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5322 | ;; | |
5323 | esac | |
5324 | ||
ce6c656d L |
5325 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5326 | # C++98 compiler can still start the bootstrap. | |
5327 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
5328 | CXX="$CXX -std=gnu++98" | |
5329 | fi | |
5330 | ||
d5f2ee2e KG |
5331 | # Used for setting $lt_cv_objdir |
5332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5333 | $as_echo_n "checking for objdir... " >&6; } | |
5334 | if test "${lt_cv_objdir+set}" = set; then : | |
5335 | $as_echo_n "(cached) " >&6 | |
5336 | else | |
5337 | rm -f .libs 2>/dev/null | |
5338 | mkdir .libs 2>/dev/null | |
5339 | if test -d .libs; then | |
5340 | lt_cv_objdir=.libs | |
5341 | else | |
5342 | # MS-DOS does not allow filenames that begin with a dot. | |
5343 | lt_cv_objdir=_libs | |
5344 | fi | |
5345 | rmdir .libs 2>/dev/null | |
5346 | fi | |
5347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5348 | $as_echo "$lt_cv_objdir" >&6; } | |
5349 | objdir=$lt_cv_objdir | |
5350 | ||
5351 | ||
5352 | ||
5353 | ||
5354 | ||
5355 | cat >>confdefs.h <<_ACEOF | |
5356 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5357 | _ACEOF | |
5358 | ||
5359 | ||
5360 | ||
e8a5fa9c | 5361 | # Check for GMP, MPFR and MPC |
d9b76ff9 | 5362 | gmplibs="-lmpc -lmpfr -lgmp" |
4b1cb4fe | 5363 | gmpinc= |
4b900473 | 5364 | have_gmp=no |
e8a5fa9c RW |
5365 | |
5366 | # Specify a location for mpc | |
5367 | # check for this first so it ends up on the link line before mpfr. | |
5368 | ||
81ecdfbb RW |
5369 | # Check whether --with-mpc was given. |
5370 | if test "${with_mpc+set}" = set; then : | |
5371 | withval=$with_mpc; | |
5372 | fi | |
e8a5fa9c | 5373 | |
e8a5fa9c | 5374 | |
e552509b | 5375 | # Check whether --with-mpc-include was given. |
81ecdfbb RW |
5376 | if test "${with_mpc_include+set}" = set; then : |
5377 | withval=$with_mpc_include; | |
5378 | fi | |
e8a5fa9c | 5379 | |
e8a5fa9c | 5380 | |
e552509b | 5381 | # Check whether --with-mpc-lib was given. |
81ecdfbb RW |
5382 | if test "${with_mpc_lib+set}" = set; then : |
5383 | withval=$with_mpc_lib; | |
5384 | fi | |
e8a5fa9c | 5385 | |
e8a5fa9c RW |
5386 | |
5387 | if test "x$with_mpc" != x; then | |
d9b76ff9 KG |
5388 | gmplibs="-L$with_mpc/lib $gmplibs" |
5389 | gmpinc="-I$with_mpc/include $gmpinc" | |
e8a5fa9c RW |
5390 | fi |
5391 | if test "x$with_mpc_include" != x; then | |
d9b76ff9 | 5392 | gmpinc="-I$with_mpc_include $gmpinc" |
e8a5fa9c RW |
5393 | fi |
5394 | if test "x$with_mpc_lib" != x; then | |
d9b76ff9 | 5395 | gmplibs="-L$with_mpc_lib $gmplibs" |
e8a5fa9c RW |
5396 | fi |
5397 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
d5f2ee2e | 5398 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
d9b76ff9 | 5399 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
e8a5fa9c RW |
5400 | # Do not test the mpc version. Assume that it is sufficient, since |
5401 | # it is in the source tree, and the library has not been built yet | |
5402 | # but it would be included on the link line in the version check below | |
5403 | # hence making the test fail. | |
d9b76ff9 | 5404 | have_gmp=yes |
e8a5fa9c | 5405 | fi |
4b900473 | 5406 | |
11b04d1f DD |
5407 | # Specify a location for mpfr |
5408 | # check for this first so it ends up on the link line before gmp. | |
c6b750e1 | 5409 | |
81ecdfbb RW |
5410 | # Check whether --with-mpfr-dir was given. |
5411 | if test "${with_mpfr_dir+set}" = set; then : | |
5412 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5413 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5414 | fi | |
5415 | ||
11b04d1f DD |
5416 | |
5417 | ||
81ecdfbb RW |
5418 | # Check whether --with-mpfr was given. |
5419 | if test "${with_mpfr+set}" = set; then : | |
5420 | withval=$with_mpfr; | |
5421 | fi | |
c6b750e1 | 5422 | |
11b04d1f | 5423 | |
e552509b | 5424 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
5425 | if test "${with_mpfr_include+set}" = set; then : |
5426 | withval=$with_mpfr_include; | |
5427 | fi | |
c6b750e1 | 5428 | |
8a0d8a5c | 5429 | |
e552509b | 5430 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
5431 | if test "${with_mpfr_lib+set}" = set; then : |
5432 | withval=$with_mpfr_lib; | |
5433 | fi | |
8a0d8a5c | 5434 | |
11b04d1f DD |
5435 | |
5436 | if test "x$with_mpfr" != x; then | |
5437 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 5438 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 5439 | fi |
8a0d8a5c | 5440 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 5441 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
5442 | fi |
5443 | if test "x$with_mpfr_lib" != x; then | |
5444 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5445 | fi | |
4b900473 | 5446 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
58b1dd21 | 5447 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
05a13254 NC |
5448 | if ! test -d ${srcdir}/mpfr/src; then |
5449 | as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 | |
58b1dd21 | 5450 | fi |
05a13254 NC |
5451 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
5452 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5453 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
4b900473 PB |
5454 | # Do not test the mpfr version. Assume that it is sufficient, since |
5455 | # it is in the source tree, and the library has not been built yet | |
5456 | # but it would be included on the link line in the version check below | |
5457 | # hence making the test fail. | |
5458 | have_gmp=yes | |
5459 | fi | |
11b04d1f | 5460 | |
4b1cb4fe | 5461 | # Specify a location for gmp |
c6b750e1 | 5462 | |
81ecdfbb RW |
5463 | # Check whether --with-gmp-dir was given. |
5464 | if test "${with_gmp_dir+set}" = set; then : | |
5465 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5466 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5467 | fi | |
5468 | ||
4b1cb4fe DD |
5469 | |
5470 | ||
81ecdfbb RW |
5471 | # Check whether --with-gmp was given. |
5472 | if test "${with_gmp+set}" = set; then : | |
5473 | withval=$with_gmp; | |
5474 | fi | |
c6b750e1 | 5475 | |
4b1cb4fe | 5476 | |
e552509b | 5477 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
5478 | if test "${with_gmp_include+set}" = set; then : |
5479 | withval=$with_gmp_include; | |
5480 | fi | |
c6b750e1 | 5481 | |
8a0d8a5c | 5482 | |
e552509b | 5483 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
5484 | if test "${with_gmp_lib+set}" = set; then : |
5485 | withval=$with_gmp_lib; | |
5486 | fi | |
8a0d8a5c PB |
5487 | |
5488 | ||
4b1cb4fe | 5489 | |
11b04d1f DD |
5490 | if test "x$with_gmp" != x; then |
5491 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5492 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 5493 | fi |
8a0d8a5c PB |
5494 | if test "x$with_gmp_include" != x; then |
5495 | gmpinc="-I$with_gmp_include $gmpinc" | |
5496 | fi | |
5497 | if test "x$with_gmp_lib" != x; then | |
5498 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5499 | fi | |
4b900473 | 5500 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 5501 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5502 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 5503 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 5504 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
7ec59b9e | 5505 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
4b900473 PB |
5506 | # Do not test the gmp version. Assume that it is sufficient, since |
5507 | # it is in the source tree, and the library has not been built yet | |
5508 | # but it would be included on the link line in the version check below | |
5509 | # hence making the test fail. | |
5510 | have_gmp=yes | |
5511 | fi | |
4b1cb4fe | 5512 | |
ceb92e78 | 5513 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
5514 | have_gmp=yes |
5515 | saved_CFLAGS="$CFLAGS" | |
5516 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
5517 | # Check for the recommended and required versions of GMP. |
5518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5519 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
a009f2e7 RW |
5520 | |
5521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a6b5846e KG |
5522 | /* end confdefs.h. */ |
5523 | #include "gmp.h" | |
5524 | int | |
5525 | main () | |
5526 | { | |
5527 | ||
5528 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5529 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8e71395b | 5530 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
a6b5846e KG |
5531 | choke me |
5532 | #endif | |
5533 | ||
5534 | ; | |
5535 | return 0; | |
5536 | } | |
5537 | _ACEOF | |
5538 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 5539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5540 | /* end confdefs.h. */ |
a6b5846e | 5541 | #include <gmp.h> |
c6b750e1 DJ |
5542 | int |
5543 | main () | |
5544 | { | |
4b1cb4fe | 5545 | |
a6b5846e KG |
5546 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5547 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5548 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
5549 | choke me |
5550 | #endif | |
c6b750e1 DJ |
5551 | |
5552 | ; | |
5553 | return 0; | |
5554 | } | |
5555 | _ACEOF | |
81ecdfbb RW |
5556 | if ac_fn_c_try_compile "$LINENO"; then : |
5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5558 | $as_echo "yes" >&6; } | |
a6b5846e KG |
5559 | else |
5560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5561 | $as_echo "buggy but acceptable" >&6; } | |
5562 | fi | |
5563 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 5564 | else |
81ecdfbb RW |
5565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5566 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5567 | fi |
81ecdfbb | 5568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 5569 | |
e8a5fa9c | 5570 | # If we have GMP, check the MPFR version. |
4b900473 | 5571 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
5572 | # Check for the recommended and required versions of MPFR. |
5573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5574 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 5575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5576 | /* end confdefs.h. */ |
9b134994 | 5577 | #include <gmp.h> |
4b900473 | 5578 | #include <mpfr.h> |
c6b750e1 DJ |
5579 | int |
5580 | main () | |
5581 | { | |
9b134994 | 5582 | |
7ec59b9e | 5583 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
4b900473 PB |
5584 | choke me |
5585 | #endif | |
c6b750e1 DJ |
5586 | |
5587 | ; | |
5588 | return 0; | |
5589 | } | |
5590 | _ACEOF | |
81ecdfbb RW |
5591 | if ac_fn_c_try_compile "$LINENO"; then : |
5592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 5593 | /* end confdefs.h. */ |
4b1cb4fe | 5594 | #include <gmp.h> |
4b900473 | 5595 | #include <mpfr.h> |
c6b750e1 DJ |
5596 | int |
5597 | main () | |
5598 | { | |
9dbaa842 | 5599 | |
a6b5846e | 5600 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
4b900473 PB |
5601 | choke me |
5602 | #endif | |
e8a5fa9c RW |
5603 | |
5604 | ; | |
5605 | return 0; | |
5606 | } | |
5607 | _ACEOF | |
81ecdfbb RW |
5608 | if ac_fn_c_try_compile "$LINENO"; then : |
5609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5610 | $as_echo "yes" >&6; } | |
e8a5fa9c | 5611 | else |
81ecdfbb RW |
5612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5613 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 5614 | fi |
81ecdfbb | 5615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 5616 | else |
81ecdfbb RW |
5617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5618 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 5619 | fi |
81ecdfbb | 5620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5621 | fi |
5622 | ||
5623 | # Check for the MPC header version. | |
d9b76ff9 | 5624 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 5625 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
5626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5627 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
5629 | /* end confdefs.h. */ |
5630 | #include <mpc.h> | |
5631 | int | |
5632 | main () | |
5633 | { | |
5634 | ||
a6b5846e KG |
5635 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5636 | choke me | |
5637 | #endif | |
5638 | ||
5639 | ; | |
5640 | return 0; | |
5641 | } | |
5642 | _ACEOF | |
5643 | if ac_fn_c_try_compile "$LINENO"; then : | |
5644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5645 | /* end confdefs.h. */ | |
5646 | #include <mpc.h> | |
5647 | int | |
5648 | main () | |
5649 | { | |
5650 | ||
5651 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
5652 | choke me |
5653 | #endif | |
5654 | ||
5655 | ; | |
5656 | return 0; | |
5657 | } | |
5658 | _ACEOF | |
81ecdfbb RW |
5659 | if ac_fn_c_try_compile "$LINENO"; then : |
5660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 5661 | $as_echo "yes" >&6; } |
a6b5846e KG |
5662 | else |
5663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5664 | $as_echo "buggy but acceptable" >&6; } | |
5665 | fi | |
5666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 5667 | else |
81ecdfbb | 5668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 5669 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 5670 | fi |
81ecdfbb | 5671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5672 | fi |
5673 | ||
5674 | # Now check the MPFR library. | |
5675 | if test x"$have_gmp" = xyes; then | |
5676 | saved_LIBS="$LIBS" | |
5677 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5679 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 5680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 5681 | /* end confdefs.h. */ |
d9b76ff9 | 5682 | #include <mpc.h> |
e8a5fa9c RW |
5683 | int |
5684 | main () | |
5685 | { | |
5686 | ||
5687 | mpfr_t n; | |
5688 | mpfr_t x; | |
d9b76ff9 | 5689 | mpc_t c; |
e8a5fa9c RW |
5690 | int t; |
5691 | mpfr_init (n); | |
5692 | mpfr_init (x); | |
5693 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5694 | mpfr_erfc (n, x, GMP_RNDN); | |
5695 | mpfr_subnormalize (x, t, GMP_RNDN); | |
d9b76ff9 KG |
5696 | mpfr_clear(n); |
5697 | mpfr_clear(x); | |
5698 | mpc_init2 (c, 53); | |
5699 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5700 | mpc_cosh (c, c, MPC_RNDNN); | |
5701 | mpc_pow (c, c, c, MPC_RNDNN); | |
5702 | mpc_acosh (c, c, MPC_RNDNN); | |
5703 | mpc_clear (c); | |
c6b750e1 DJ |
5704 | |
5705 | ; | |
5706 | return 0; | |
5707 | } | |
5708 | _ACEOF | |
81ecdfbb RW |
5709 | if ac_fn_c_try_link "$LINENO"; then : |
5710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5711 | $as_echo "yes" >&6; } | |
c6b750e1 | 5712 | else |
81ecdfbb RW |
5713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5714 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5715 | fi |
81ecdfbb RW |
5716 | rm -f core conftest.err conftest.$ac_objext \ |
5717 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
5718 | LIBS="$saved_LIBS" |
5719 | fi | |
5720 | ||
4b900473 | 5721 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 5722 | |
a6b5846e KG |
5723 | # The library versions listed in the error message below should match |
5724 | # the HARD-minimums enforced above. | |
4b900473 | 5725 | if test x$have_gmp != xyes; then |
7ec59b9e | 5726 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
d9b76ff9 KG |
5727 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5728 | their locations. Source code for these libraries can be found at | |
5729 | their respective hosting sites as well as at | |
5730 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5731 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5732 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5733 | make sure that you have installed both the libraries and the header | |
5734 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 5735 | fi |
9dbaa842 DD |
5736 | fi |
5737 | ||
e8a5fa9c RW |
5738 | # Flags needed for both GMP, MPFR and/or MPC. |
5739 | ||
5740 | ||
5741 | ||
4b1cb4fe DD |
5742 | |
5743 | ||
5744 | ||
7ec59b9e | 5745 | |
b3676d82 | 5746 | # Libraries to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5747 | |
b3676d82 EB |
5748 | # Check whether --with-stage1-libs was given. |
5749 | if test "${with_stage1_libs+set}" = set; then : | |
5750 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5751 | stage1_libs= | |
e8a5fa9c | 5752 | else |
b3676d82 | 5753 | stage1_libs=$withval |
e8a5fa9c RW |
5754 | fi |
5755 | else | |
68996839 | 5756 | stage1_libs= |
81ecdfbb RW |
5757 | fi |
5758 | ||
e8a5fa9c RW |
5759 | |
5760 | ||
b3676d82 | 5761 | # Linker flags to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5762 | |
b3676d82 EB |
5763 | # Check whether --with-stage1-ldflags was given. |
5764 | if test "${with_stage1_ldflags+set}" = set; then : | |
5765 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5766 | stage1_ldflags= | |
e8a5fa9c | 5767 | else |
b3676d82 | 5768 | stage1_ldflags=$withval |
e8a5fa9c RW |
5769 | fi |
5770 | else | |
b3676d82 EB |
5771 | stage1_ldflags= |
5772 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5773 | # if supported. But if the user explicitly specified the libraries to use, | |
5774 | # trust that they are doing what they want. | |
5775 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5776 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5777 | fi | |
81ecdfbb RW |
5778 | fi |
5779 | ||
e8a5fa9c RW |
5780 | |
5781 | ||
68996839 | 5782 | # Libraries to use for stage2 and later builds. |
e8a5fa9c | 5783 | |
81ecdfbb RW |
5784 | # Check whether --with-boot-libs was given. |
5785 | if test "${with_boot_libs+set}" = set; then : | |
5786 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5787 | poststage1_libs= |
5788 | else | |
5789 | poststage1_libs=$withval | |
5790 | fi | |
5791 | else | |
68996839 | 5792 | poststage1_libs= |
81ecdfbb RW |
5793 | fi |
5794 | ||
e8a5fa9c RW |
5795 | |
5796 | ||
143754cd NC |
5797 | # Linker flags to use for stage2 and later builds. |
5798 | ||
5799 | # Check whether --with-boot-ldflags was given. | |
5800 | if test "${with_boot_ldflags+set}" = set; then : | |
5801 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5802 | poststage1_ldflags= | |
5803 | else | |
5804 | poststage1_ldflags=$withval | |
5805 | fi | |
5806 | else | |
5807 | poststage1_ldflags= | |
4f11b223 ILT |
5808 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5809 | # statically. But if the user explicitly specified the libraries to | |
5810 | # use, trust that they are doing what they want. | |
5811 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
5812 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5813 | fi | |
5814 | fi | |
5815 | ||
5816 | ||
5817 | ||
4849dfd8 | 5818 | # GCC GRAPHITE dependency isl. |
1b6c0831 | 5819 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
e28c595f JM |
5820 | |
5821 | ||
7ec59b9e L |
5822 | # Check whether --with-isl was given. |
5823 | if test "${with_isl+set}" = set; then : | |
5824 | withval=$with_isl; | |
81ecdfbb | 5825 | fi |
e28c595f | 5826 | |
e28c595f | 5827 | |
1b6c0831 | 5828 | # Treat --without-isl as a request to disable |
8e71395b | 5829 | # GRAPHITE support and skip all following checks. |
1b6c0831 | 5830 | if test "x$with_isl" != "xno"; then |
4849dfd8 | 5831 | # Check for isl |
8e71395b L |
5832 | |
5833 | ||
7ec59b9e L |
5834 | # Check whether --with-isl-include was given. |
5835 | if test "${with_isl_include+set}" = set; then : | |
5836 | withval=$with_isl_include; | |
81ecdfbb RW |
5837 | fi |
5838 | ||
e28c595f | 5839 | |
7ec59b9e L |
5840 | # Check whether --with-isl-lib was given. |
5841 | if test "${with_isl_lib+set}" = set; then : | |
5842 | withval=$with_isl_lib; | |
81ecdfbb | 5843 | fi |
e28c595f | 5844 | |
e28c595f | 5845 | |
7ec59b9e L |
5846 | # Check whether --enable-isl-version-check was given. |
5847 | if test "${enable_isl_version_check+set}" = set; then : | |
5848 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5849 | else | |
5850 | ENABLE_ISL_CHECK=yes | |
b123da99 SP |
5851 | fi |
5852 | ||
5853 | ||
7ec59b9e L |
5854 | # Initialize isllibs and islinc. |
5855 | case $with_isl in | |
5856 | no) | |
5857 | isllibs= | |
5858 | islinc= | |
5859 | ;; | |
5860 | "" | yes) | |
5861 | ;; | |
5862 | *) | |
5863 | isllibs="-L$with_isl/lib" | |
5864 | islinc="-I$with_isl/include" | |
5865 | ;; | |
5866 | esac | |
5867 | if test "x${with_isl_include}" != x ; then | |
5868 | islinc="-I$with_isl_include" | |
5869 | fi | |
5870 | if test "x${with_isl_lib}" != x; then | |
5871 | isllibs="-L$with_isl_lib" | |
5872 | fi | |
5873 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5874 | && test -d ${srcdir}/isl; then | |
5875 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5876 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5877 | ENABLE_ISL_CHECK=no | |
4849dfd8 NC |
5878 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
5879 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
7ec59b9e | 5880 | fi |
b123da99 | 5881 | |
1b6c0831 | 5882 | isllibs="${isllibs} -lisl" |
b123da99 | 5883 | |
e28c595f | 5884 | |
b3fc79f8 JBG |
5885 | |
5886 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
5887 | _isl_saved_CFLAGS=$CFLAGS | |
5888 | _isl_saved_LDFLAGS=$LDFLAGS | |
5889 | _isl_saved_LIBS=$LIBS | |
5890 | ||
5891 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
4849dfd8 NC |
5892 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
5893 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
b3fc79f8 | 5894 | |
bf41f30d NC |
5895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
5896 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
1b6c0831 | 5897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3fc79f8 | 5898 | /* end confdefs.h. */ |
bf41f30d | 5899 | #include <isl/schedule.h> |
b3fc79f8 JBG |
5900 | int |
5901 | main () | |
5902 | { | |
bf41f30d | 5903 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
b3fc79f8 JBG |
5904 | ; |
5905 | return 0; | |
5906 | } | |
5907 | _ACEOF | |
1b6c0831 | 5908 | if ac_fn_c_try_link "$LINENO"; then : |
b3fc79f8 JBG |
5909 | gcc_cv_isl=yes |
5910 | else | |
5911 | gcc_cv_isl=no | |
5912 | fi | |
1b6c0831 L |
5913 | rm -f core conftest.err conftest.$ac_objext \ |
5914 | conftest$ac_exeext conftest.$ac_ext | |
b3fc79f8 JBG |
5915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
5916 | $as_echo "$gcc_cv_isl" >&6; } | |
5917 | ||
4849dfd8 | 5918 | if test "${gcc_cv_isl}" = no ; then |
bf41f30d NC |
5919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
5920 | $as_echo "required isl version is 0.15 or later" >&6; } | |
4849dfd8 NC |
5921 | fi |
5922 | ||
b3fc79f8 JBG |
5923 | CFLAGS=$_isl_saved_CFLAGS |
5924 | LDFLAGS=$_isl_saved_LDFLAGS | |
5925 | LIBS=$_isl_saved_LIBS | |
5926 | fi | |
5927 | ||
5928 | ||
e28c595f | 5929 | |
e28c595f | 5930 | |
7ec59b9e L |
5931 | |
5932 | ||
7ec59b9e L |
5933 | if test "x${with_isl}" = xno; then |
5934 | graphite_requested=no | |
5935 | elif test "x${with_isl}" != x \ | |
5936 | || test "x${with_isl_include}" != x \ | |
5937 | || test "x${with_isl_lib}" != x ; then | |
5938 | graphite_requested=yes | |
5939 | else | |
5940 | graphite_requested=no | |
b123da99 | 5941 | fi |
e28c595f | 5942 | |
e28c595f JM |
5943 | |
5944 | ||
7ec59b9e L |
5945 | if test "${gcc_cv_isl}" = no ; then |
5946 | isllibs= | |
5947 | islinc= | |
5948 | fi | |
e28c595f | 5949 | |
7ec59b9e L |
5950 | if test "${graphite_requested}" = yes \ |
5951 | && test "x${isllibs}" = x \ | |
5952 | && test "x${islinc}" = x ; then | |
e28c595f | 5953 | |
4849dfd8 | 5954 | as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
7ec59b9e | 5955 | fi |
e552509b | 5956 | |
e28c595f | 5957 | |
e552509b ILT |
5958 | fi |
5959 | ||
4849dfd8 | 5960 | # If the isl check failed, disable builds of in-tree variant of isl |
8e71395b | 5961 | if test "x$with_isl" = xno || |
8e71395b | 5962 | test "x$gcc_cv_isl" = xno; then |
1b6c0831 | 5963 | noconfigdirs="$noconfigdirs isl" |
8e71395b | 5964 | islinc= |
7ec59b9e L |
5965 | fi |
5966 | ||
8e71395b L |
5967 | |
5968 | ||
5969 | ||
700d40ca ILT |
5970 | # Check for LTO support. |
5971 | # Check whether --enable-lto was given. | |
5972 | if test "${enable_lto+set}" = set; then : | |
5973 | enableval=$enable_lto; enable_lto=$enableval | |
5974 | else | |
5975 | enable_lto=yes; default_enable_lto=yes | |
5976 | fi | |
5977 | ||
5978 | ||
143754cd | 5979 | |
e49e5c92 DK |
5980 | |
5981 | ||
5982 | target_elf=no | |
5983 | case $target in | |
5984 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
090bc50f | 5985 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
1b6c0831 L |
5986 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
5987 | nvptx-*-none) | |
e49e5c92 DK |
5988 | target_elf=no |
5989 | ;; | |
5990 | *) | |
5991 | target_elf=yes | |
5992 | ;; | |
5993 | esac | |
5994 | ||
5995 | if test $target_elf = yes; then : | |
74cea91b DK |
5996 | # ELF platforms build the lto-plugin always. |
5997 | build_lto_plugin=yes | |
e49e5c92 | 5998 | |
e49e5c92 DK |
5999 | else |
6000 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 6001 | case $target in |
bf41f30d | 6002 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
74cea91b | 6003 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
6004 | *) enable_lto=no ;; |
6005 | esac | |
e49e5c92 | 6006 | else |
29821356 RW |
6007 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6008 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
6009 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6010 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6011 | # -flto it won't be needed until after installation anyway. | |
6012 | case $target in | |
52cf9762 | 6013 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
e49e5c92 DK |
6014 | *) if test x"$enable_lto" = x"yes"; then |
6015 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6016 | fi | |
6017 | ;; | |
6018 | esac | |
6019 | fi | |
a8eb3f0a | 6020 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 6021 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 6022 | case $target in |
74cea91b | 6023 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
6024 | *) ;; |
6025 | esac | |
74cea91b | 6026 | |
e49e5c92 DK |
6027 | fi |
6028 | ||
700d40ca | 6029 | |
1b6c0831 L |
6030 | # Check whether --enable-linker-plugin-configure-flags was given. |
6031 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6032 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6033 | else | |
6034 | extra_linker_plugin_configure_flags= | |
6035 | fi | |
6036 | ||
6037 | ||
6038 | # Check whether --enable-linker-plugin-flags was given. | |
6039 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6040 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6041 | else | |
6042 | extra_linker_plugin_flags= | |
6043 | fi | |
6044 | ||
6045 | ||
6046 | ||
bf41f30d NC |
6047 | # Enable --enable-host-shared. |
6048 | # Checked early to determine whether jit is an 'all' language | |
6049 | # Check whether --enable-host-shared was given. | |
6050 | if test "${enable_host_shared+set}" = set; then : | |
6051 | enableval=$enable_host_shared; host_shared=$enableval | |
6052 | else | |
6053 | host_shared=no | |
6054 | fi | |
6055 | ||
6056 | ||
e28c595f | 6057 | |
7ec59b9e | 6058 | # By default, C and C++ are the only stage 1 languages. |
9b134994 | 6059 | stage1_languages=,c, |
1d39f329 | 6060 | |
e8a5fa9c | 6061 | # Target libraries that we bootstrap. |
2aa2364a | 6062 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 6063 | |
9e07f89d NN |
6064 | # Figure out what language subdirectories are present. |
6065 | # Look if the user specified --enable-languages="..."; if not, use | |
6066 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6067 | # go away some day. | |
6068 | # NB: embedded tabs in this IF block -- do not untabify | |
6069 | if test -d ${srcdir}/gcc; then | |
6070 | if test x"${enable_languages+set}" != xset; then | |
6071 | if test x"${LANGUAGES+set}" = xset; then | |
6072 | enable_languages="${LANGUAGES}" | |
136bb21f | 6073 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
9e07f89d | 6074 | else |
bf41f30d | 6075 | enable_languages=default |
9e07f89d NN |
6076 | fi |
6077 | else | |
6078 | if test x"${enable_languages}" = x || | |
6079 | test x"${enable_languages}" = xyes; | |
6080 | then | |
136bb21f | 6081 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
9e07f89d NN |
6082 | exit 1 |
6083 | fi | |
6084 | fi | |
6085 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6086 | ||
096f7d00 DE |
6087 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6088 | # and make the substitution. | |
6089 | case ,${enable_languages}, in | |
6090 | *,f95,*) | |
136bb21f | 6091 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
096f7d00 DE |
6092 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6093 | ;; | |
6094 | esac | |
6095 | ||
7ec59b9e L |
6096 | # If bootstrapping, C++ must be enabled. |
6097 | case ",$enable_languages,:$enable_bootstrap" in | |
6098 | *,c++,*:*) ;; | |
6099 | *:yes) | |
ffdd6afc ILT |
6100 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6101 | enable_languages="${enable_languages},c++" | |
6102 | else | |
7ec59b9e | 6103 | as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5 |
ffdd6afc ILT |
6104 | fi |
6105 | ;; | |
6106 | esac | |
6107 | ||
9e07f89d NN |
6108 | # First scan to see if an enabled language requires some other language. |
6109 | # We assume that a given config-lang.in will list all the language | |
6110 | # front ends it requires, even if some are required indirectly. | |
6111 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6112 | case ${lang_frag} in | |
6113 | ..) ;; | |
6114 | # The odd quoting in the next line works around | |
6115 | # an apparent bug in bash 1.12 on linux. | |
6116 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6117 | *) | |
e552509b ILT |
6118 | # From the config-lang.in, get $language, $lang_requires, and |
6119 | # $lang_requires_boot_languages. | |
9e07f89d NN |
6120 | language= |
6121 | lang_requires= | |
e552509b | 6122 | lang_requires_boot_languages= |
bf41f30d NC |
6123 | # set srcdir during sourcing lang_frag to the gcc dir. |
6124 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
6125 | # polutes this shell | |
6126 | saved_srcdir=${srcdir} | |
6127 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6128 | srcdir=${saved_srcdir} | |
e552509b | 6129 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
6130 | case ,${enable_languages}, in |
6131 | *,$other,*) ;; | |
bf41f30d | 6132 | *,default,*) ;; |
9e07f89d NN |
6133 | *,all,*) ;; |
6134 | *,$language,*) | |
6135 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6136 | enable_languages="${enable_languages},${other}" | |
6137 | ;; | |
6138 | esac | |
6139 | done | |
e552509b ILT |
6140 | for other in ${lang_requires_boot_languages} ; do |
6141 | if test "$other" != "c"; then | |
6142 | case ,${enable_stage1_languages}, in | |
6143 | *,$other,*) ;; | |
bf41f30d | 6144 | *,default,*) ;; |
e552509b ILT |
6145 | *,all,*) ;; |
6146 | *) | |
6147 | case ,${enable_languages}, in | |
6148 | *,$language,*) | |
6149 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6150 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6151 | ;; | |
6152 | esac | |
6153 | ;; | |
6154 | esac | |
6155 | fi | |
6156 | done | |
9e07f89d NN |
6157 | ;; |
6158 | esac | |
6159 | done | |
6160 | ||
9b134994 | 6161 | new_enable_languages=,c, |
700d40ca ILT |
6162 | |
6163 | # If LTO is enabled, add the LTO front end. | |
700d40ca | 6164 | if test "$enable_lto" = "yes" ; then |
6811fb56 RW |
6165 | case ,${enable_languages}, in |
6166 | *,lto,*) ;; | |
6167 | *) enable_languages="${enable_languages},lto" ;; | |
6168 | esac | |
a8eb3f0a | 6169 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca | 6170 | configdirs="$configdirs lto-plugin" |
700d40ca ILT |
6171 | fi |
6172 | fi | |
6173 | ||
1b6c0831 L |
6174 | # If we're building an offloading compiler, add the LTO front end. |
6175 | if test x"$enable_as_accelerator_for" != x ; then | |
6176 | case ,${enable_languages}, in | |
6177 | *,lto,*) ;; | |
6178 | *) enable_languages="${enable_languages},lto" ;; | |
6179 | esac | |
6180 | fi | |
700d40ca | 6181 | |
bf41f30d | 6182 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 6183 | potential_languages=,c, |
9e07f89d | 6184 | |
9e1a94f4 ILT |
6185 | enabled_target_libs= |
6186 | disabled_target_libs= | |
6187 | ||
9e07f89d NN |
6188 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6189 | case ${lang_frag} in | |
6190 | ..) ;; | |
6191 | # The odd quoting in the next line works around | |
6192 | # an apparent bug in bash 1.12 on linux. | |
6193 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6194 | *) | |
c6b750e1 | 6195 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 6196 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
6197 | language= |
6198 | target_libs= | |
6199 | lang_dirs= | |
64ce424c | 6200 | subdir_requires= |
9b134994 PB |
6201 | boot_language=no |
6202 | build_by_default=yes | |
bf41f30d NC |
6203 | # set srcdir during sourcing. See above about save & restore |
6204 | saved_srcdir=${srcdir} | |
6205 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6206 | srcdir=${saved_srcdir} | |
9b134994 PB |
6207 | if test x${language} = x; then |
6208 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6209 | exit 1 | |
6210 | fi | |
6211 | ||
ffdd6afc | 6212 | if test "$language" = "c++"; then |
7ec59b9e | 6213 | boot_language=yes |
e8a5fa9c RW |
6214 | fi |
6215 | ||
8e71395b | 6216 | add_this_lang=no |
bf41f30d NC |
6217 | # C is always enabled, so no need to add it again |
6218 | if test "$language" != "c"; then | |
6219 | case ,${enable_languages}, in | |
6220 | *,${language},*) | |
6221 | # Language was explicitly selected; include it | |
7ec59b9e | 6222 | add_this_lang=yes |
bf41f30d NC |
6223 | ;; |
6224 | *,all,*) | |
6225 | # All languages are enabled | |
6226 | add_this_lang=all | |
6227 | ;; | |
6228 | *,default,*) | |
6229 | # 'default' was selected, select it if it is a default language | |
8e71395b | 6230 | add_this_lang=${build_by_default} |
bf41f30d NC |
6231 | ;; |
6232 | esac | |
6233 | fi | |
4b1cb4fe | 6234 | |
64ce424c | 6235 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 6236 | for i in $subdir_requires; do |
3d3adb43 | 6237 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
bf41f30d NC |
6238 | case ${add_this_lang} in |
6239 | yes) | |
64ce424c | 6240 | # Specifically requested language; tell them. |
81ecdfbb | 6241 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c | 6242 | ;; |
bf41f30d NC |
6243 | all) |
6244 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
6245 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
6246 | add_this_lang=unsupported | |
6247 | ;; | |
64ce424c PB |
6248 | *) |
6249 | # Silently disable. | |
9b134994 | 6250 | add_this_lang=unsupported |
64ce424c PB |
6251 | ;; |
6252 | esac | |
6253 | done | |
6254 | ||
9b134994 | 6255 | # Disable Ada if no preexisting GNAT is available. |
bf41f30d NC |
6256 | case ${add_this_lang}:${language}:${have_gnat} in |
6257 | yes:ada:no) | |
9b134994 | 6258 | # Specifically requested language; tell them. |
81ecdfbb | 6259 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
9b134994 | 6260 | ;; |
bf41f30d NC |
6261 | all:ada:no) |
6262 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
6263 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
6264 | add_this_lang=unsupported | |
6265 | ;; | |
9b134994 PB |
6266 | *:ada:no) |
6267 | # Silently disable. | |
6268 | add_this_lang=unsupported | |
6269 | ;; | |
6270 | esac | |
6271 | ||
bf41f30d NC |
6272 | # Disable jit if -enable-host-shared not specified |
6273 | case ${add_this_lang}:${language}:${host_shared} in | |
6274 | yes:jit:no) | |
6275 | # PR jit/64780: explicitly specify --enable-host-shared | |
6276 | as_fn_error " | |
6277 | Enabling language \"jit\" requires --enable-host-shared. | |
6278 | ||
6279 | --enable-host-shared typically slows the rest of the compiler down by | |
6280 | a few %, so you must explicitly enable it. | |
6281 | ||
6282 | If you want to build both the jit and the regular compiler, it is often | |
6283 | best to do this via two separate configure/builds, in separate | |
6284 | directories, to avoid imposing the performance cost of | |
6285 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
6286 | ;; | |
6287 | all:jit:no) | |
6288 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
6289 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} | |
6290 | add_this_lang=unsupported | |
6291 | ;; | |
6292 | *:jit:no) | |
6293 | # Silently disable. | |
6294 | add_this_lang=unsupported | |
6295 | ;; | |
6296 | esac | |
6297 | ||
6298 | # Disable a language that is unsupported by the target. | |
6299 | case "${add_this_lang}: $unsupported_languages " in | |
6300 | no:*) ;; | |
6301 | unsupported:*) ;; | |
6302 | *:*" $language "*) | |
6303 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
6304 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
9b134994 | 6305 | add_this_lang=unsupported |
59f7ec45 HPN |
6306 | ;; |
6307 | esac | |
6308 | ||
4b1cb4fe | 6309 | case $add_this_lang in |
9b134994 | 6310 | unsupported) |
9e07f89d | 6311 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
6312 | disabled_target_libs="$disabled_target_libs $target_libs" |
6313 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 6314 | ;; |
9b134994 PB |
6315 | no) |
6316 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
6317 | disabled_target_libs="$disabled_target_libs $target_libs" |
6318 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
6319 | potential_languages="${potential_languages}${language}," |
6320 | ;; | |
bf41f30d | 6321 | all|yes) |
9b134994 PB |
6322 | new_enable_languages="${new_enable_languages}${language}," |
6323 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 6324 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 6325 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
6326 | case "${boot_language}:,$enable_stage1_languages," in |
6327 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 6328 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
6329 | case ",$stage1_languages," in |
6330 | *,$language,* | ,yes, | ,all,) ;; | |
6331 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6332 | esac | |
e8a5fa9c RW |
6333 | # We need to bootstrap any supporting libraries. |
6334 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
1d39f329 NN |
6335 | ;; |
6336 | esac | |
6337 | ;; | |
9e07f89d NN |
6338 | esac |
6339 | ;; | |
6340 | esac | |
6341 | done | |
6342 | ||
9e1a94f4 ILT |
6343 | # Add target libraries which are only needed for disabled languages |
6344 | # to noconfigdirs. | |
6345 | if test -n "$disabled_target_libs"; then | |
6346 | for dir in $disabled_target_libs; do | |
6347 | case " $enabled_target_libs " in | |
6348 | *" ${dir} "*) ;; | |
6349 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6350 | esac | |
6351 | done | |
6352 | fi | |
6353 | ||
81ecdfbb RW |
6354 | # Check whether --enable-stage1-languages was given. |
6355 | if test "${enable_stage1_languages+set}" = set; then : | |
6356 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
6357 | ,no,|,,) |
6358 | # Set it to something that will have no effect in the loop below | |
6359 | enable_stage1_languages=c ;; | |
6360 | ,yes,) | |
6361 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6362 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6363 | *,all,*) | |
6364 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6365 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6366 | esac | |
6367 | ||
6368 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6369 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6370 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6371 | case $potential_languages in | |
6372 | *,$i,*) | |
6373 | case $stage1_languages in | |
6374 | *,$i,*) ;; | |
6375 | *) stage1_languages="$stage1_languages$i," ;; | |
6376 | esac ;; | |
6377 | *) | |
6378 | case $missing_languages in | |
6379 | *,$i,*) ;; | |
6380 | *) missing_languages="$missing_languages$i," ;; | |
6381 | esac ;; | |
6382 | esac | |
6383 | done | |
81ecdfbb RW |
6384 | fi |
6385 | ||
9b134994 PB |
6386 | |
6387 | # Remove leading/trailing commas that were added for simplicity | |
6388 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 6389 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
6390 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6391 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6392 | ||
9e07f89d | 6393 | if test "x$missing_languages" != x; then |
81ecdfbb | 6394 | as_fn_error " |
27258dd4 | 6395 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 6396 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 6397 | fi |
9e07f89d NN |
6398 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6399 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 6400 | enable_languages="$new_enable_languages" |
9e07f89d | 6401 | fi |
9b134994 | 6402 | |
c6b750e1 | 6403 | |
81ec575a | 6404 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
6405 | fi |
6406 | ||
a6df5a19 PB |
6407 | # Handle --disable-<component> generically. |
6408 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6409 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
6410 | varname=`echo $dirname | sed -e s/+/_/g` |
6411 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
6412 | noconfigdirs="$noconfigdirs $dir" |
6413 | fi | |
6414 | done | |
6415 | ||
4f0ef2d8 | 6416 | # Check for Boehm's garbage collector |
81ecdfbb RW |
6417 | # Check whether --enable-objc-gc was given. |
6418 | if test "${enable_objc_gc+set}" = set; then : | |
05a13254 | 6419 | enableval=$enable_objc_gc; |
81ecdfbb RW |
6420 | fi |
6421 | ||
4f0ef2d8 | 6422 | |
05a13254 NC |
6423 | # Check whether --with-target-bdw-gc was given. |
6424 | if test "${with_target_bdw_gc+set}" = set; then : | |
6425 | withval=$with_target_bdw_gc; | |
6426 | fi | |
6427 | ||
6428 | ||
6429 | # Check whether --with-target-bdw-gc-include was given. | |
6430 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
6431 | withval=$with_target_bdw_gc_include; | |
6432 | fi | |
6433 | ||
6434 | ||
6435 | # Check whether --with-target-bdw-gc-lib was given. | |
6436 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
6437 | withval=$with_target_bdw_gc_lib; | |
6438 | fi | |
6439 | ||
6440 | ||
6441 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
6442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
6443 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
6444 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
6445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 | |
6446 | $as_echo "using bdw-gc in default locations" >&6; } | |
6447 | else | |
6448 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
6449 | as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 | |
6450 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then | |
6451 | as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 | |
6452 | else | |
6453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
6454 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
d42c4017 | 6455 | fi |
05a13254 | 6456 | fi |
4f0ef2d8 CD |
6457 | esac |
6458 | ||
bf41f30d | 6459 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
7ec59b9e | 6460 | case ,${enable_languages}, in |
1b6c0831 | 6461 | *,c++,*) |
bf41f30d | 6462 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1b6c0831 L |
6463 | case "${noconfigdirs}" in |
6464 | *target-libstdc++-v3*) | |
bf41f30d | 6465 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1b6c0831 L |
6466 | ;; |
6467 | *) ;; | |
6468 | esac | |
6469 | ;; | |
7ec59b9e | 6470 | *) |
bf41f30d | 6471 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
7ec59b9e L |
6472 | ;; |
6473 | esac | |
6474 | ||
caeba88f AL |
6475 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6476 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
6477 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6478 | ||
6479 | notsupp="" | |
6480 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 6481 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
6482 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6483 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6484 | if test -r $srcdir/$dirname/configure ; then | |
6485 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6486 | true | |
6487 | else | |
6488 | notsupp="$notsupp $dir" | |
6489 | fi | |
6490 | fi | |
6491 | fi | |
caeba88f AL |
6492 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6493 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6494 | if test -r $srcdir/$dirname/configure ; then | |
6495 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6496 | true | |
6497 | else | |
6498 | notsupp="$notsupp $dir" | |
6499 | fi | |
6500 | fi | |
6501 | fi | |
9e07f89d NN |
6502 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6503 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6504 | if test -r $srcdir/$dirname/configure ; then | |
6505 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6506 | true | |
6507 | else | |
6508 | notsupp="$notsupp $dir" | |
6509 | fi | |
6510 | fi | |
6511 | fi | |
6512 | done | |
6513 | ||
9e07f89d NN |
6514 | # Quietly strip out all directories which aren't configurable in this tree. |
6515 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6516 | # is now the case. | |
6a9cf61e PB |
6517 | build_configdirs_all="$build_configdirs" |
6518 | build_configdirs= | |
6519 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 6520 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
6521 | if test -f ${srcdir}/$j/configure ; then |
6522 | build_configdirs="${build_configdirs} $i" | |
6523 | fi | |
6524 | done | |
6525 | ||
9e07f89d NN |
6526 | configdirs_all="$configdirs" |
6527 | configdirs= | |
6528 | for i in ${configdirs_all} ; do | |
6529 | if test -f ${srcdir}/$i/configure ; then | |
6530 | configdirs="${configdirs} $i" | |
6531 | fi | |
6532 | done | |
6a9cf61e | 6533 | |
9e07f89d NN |
6534 | target_configdirs_all="$target_configdirs" |
6535 | target_configdirs= | |
6536 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 6537 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
6538 | if test -f ${srcdir}/$j/configure ; then |
6539 | target_configdirs="${target_configdirs} $i" | |
6540 | fi | |
6541 | done | |
6542 | ||
1b6c0831 L |
6543 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6544 | # so we have to add it after the preceding checks. | |
6545 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6546 | then | |
6547 | case " $configdirs " in | |
6548 | *" libiberty "*) | |
6549 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6550 | configdirs="$configdirs libiberty-linker-plugin" | |
6551 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6552 | --with-libiberty=../libiberty-linker-plugin";; | |
6553 | *) | |
6554 | as_fn_error "libiberty missing" "$LINENO" 5;; | |
6555 | esac | |
6556 | fi | |
6557 | ||
6558 | # Sometimes we have special requirements for the host libiberty. | |
6559 | extra_host_libiberty_configure_flags= | |
e81d5d05 | 6560 | extra_host_zlib_configure_flags= |
1b6c0831 L |
6561 | case " $configdirs " in |
6562 | *" lto-plugin "* | *" libcc1 "*) | |
6563 | # When these are to be built as shared libraries, the same applies to | |
6564 | # libiberty. | |
6565 | extra_host_libiberty_configure_flags=--enable-shared | |
6566 | ;; | |
e81d5d05 L |
6567 | *" bfd "*) |
6568 | # When bfd is to be built as a shared library, the same applies to | |
6569 | # zlib. | |
6570 | if test "$enable_shared" = "yes"; then | |
6571 | extra_host_zlib_configure_flags=--enable-host-shared | |
6572 | fi | |
6573 | ;; | |
1b6c0831 L |
6574 | esac |
6575 | ||
6576 | ||
e81d5d05 | 6577 | |
9e07f89d NN |
6578 | # Produce a warning message for the subdirs we can't configure. |
6579 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6580 | # FSF releases, it's important to let people know when their machine isn't | |
6581 | # supported by the one or two programs in a package. | |
6582 | ||
6583 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6584 | # If $appdirs is non-empty, at least one of those directories must still | |
6585 | # be configured, or we error out. (E.g., if the gas release supports a | |
6586 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6587 | # pretend that all is well.) | |
6588 | if test -n "$appdirs" ; then | |
6589 | for dir in $appdirs ; do | |
6590 | if test -r $dir/Makefile.in ; then | |
6591 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6592 | appdirs="" | |
6593 | break | |
6594 | fi | |
6a9cf61e | 6595 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
6596 | appdirs="" |
6597 | break | |
6598 | fi | |
6599 | fi | |
6600 | done | |
6601 | if test -n "$appdirs" ; then | |
6602 | echo "*** This configuration is not supported by this package." 1>&2 | |
6603 | exit 1 | |
6604 | fi | |
6605 | fi | |
6606 | # Okay, some application will build, or we don't care to check. Still | |
6607 | # notify of subdirs not getting built. | |
6608 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6609 | echo " ${notsupp}" 1>&2 | |
6610 | echo " (Any other directories should still work fine.)" 1>&2 | |
6611 | fi | |
6612 | ||
6613 | case "$host" in | |
6614 | *msdosdjgpp*) | |
6615 | enable_gdbtk=no ;; | |
6616 | esac | |
6617 | ||
18f6b6ee PB |
6618 | # To find our prefix, in gcc_cv_tool_prefix. |
6619 | ||
6620 | # The user is always right. | |
6621 | if test "${PATH_SEPARATOR+set}" != set; then | |
6622 | echo "#! /bin/sh" >conf$$.sh | |
6623 | echo "exit 0" >>conf$$.sh | |
6624 | chmod +x conf$$.sh | |
6625 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6626 | PATH_SEPARATOR=';' | |
6627 | else | |
6628 | PATH_SEPARATOR=: | |
6629 | fi | |
6630 | rm -f conf$$.sh | |
6631 | fi | |
6632 | ||
6633 | ||
bf41f30d NC |
6634 | get_gcc_base_ver="cat" |
6635 | ||
6636 | # Check whether --with-gcc-major-version-only was given. | |
6637 | if test "${with_gcc_major_version_only+set}" = set; then : | |
6638 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
37f980dc | 6639 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
bf41f30d NC |
6640 | fi |
6641 | ||
6642 | fi | |
6643 | ||
6644 | ||
6645 | ||
6646 | ||
6647 | ||
18f6b6ee PB |
6648 | |
6649 | if test "x$exec_prefix" = xNONE; then | |
6650 | if test "x$prefix" = xNONE; then | |
6651 | gcc_cv_tool_prefix=$ac_default_prefix | |
6652 | else | |
6653 | gcc_cv_tool_prefix=$prefix | |
6654 | fi | |
6655 | else | |
6656 | gcc_cv_tool_prefix=$exec_prefix | |
6657 | fi | |
6658 | ||
6659 | # If there is no compiler in the tree, use the PATH only. In any | |
6660 | # case, if there is no compiler in the tree nobody should use | |
6661 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6662 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
bf41f30d NC |
6663 | if test x$with_gcc_major_version_only = xyes ; then |
6664 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
6665 | else | |
6666 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6667 | fi | |
18f6b6ee PB |
6668 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
6669 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6670 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6671 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6672 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6673 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6674 | else | |
6675 | gcc_cv_tool_dirs= | |
6676 | fi | |
6677 | ||
6678 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6679 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6680 | fi | |
6681 | ||
6682 | ||
6683 | ||
9e07f89d NN |
6684 | copy_dirs= |
6685 | ||
c6b750e1 | 6686 | |
81ecdfbb RW |
6687 | # Check whether --with-build-sysroot was given. |
6688 | if test "${with_build_sysroot+set}" = set; then : | |
6689 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
6690 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6691 | fi | |
6692 | else | |
6693 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 6694 | fi |
a19b6204 MM |
6695 | |
6696 | ||
8a6ee3ab | 6697 | |
81ecdfbb RW |
6698 | |
6699 | # Check whether --with-debug-prefix-map was given. | |
6700 | if test "${with_debug_prefix_map+set}" = set; then : | |
6701 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
6702 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6703 | for debug_map in $withval; do | |
6704 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6705 | done | |
6706 | fi | |
6707 | else | |
6708 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
6709 | fi |
6710 | ||
8a6ee3ab JM |
6711 | |
6712 | ||
7f6ef0c0 PB |
6713 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6714 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6715 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6716 | # We want to ensure that TARGET libraries (which we know are built with | |
6717 | # gcc) are built with "-O2 -g", so include those options when setting | |
6718 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6719 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
6720 | if test "x${is_cross_compiler}" = xyes; then |
6721 | CFLAGS_FOR_TARGET="-g -O2" | |
6722 | else | |
6723 | CFLAGS_FOR_TARGET=$CFLAGS | |
6724 | case " $CFLAGS " in | |
6725 | *" -O2 "*) ;; | |
6726 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6727 | esac | |
6728 | case " $CFLAGS " in | |
6729 | *" -g "* | *" -g3 "*) ;; | |
6730 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6731 | esac | |
6732 | fi | |
7f6ef0c0 PB |
6733 | fi |
6734 | ||
6735 | ||
6736 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
6737 | if test "x${is_cross_compiler}" = xyes; then |
6738 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6739 | else | |
6740 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6741 | case " $CXXFLAGS " in | |
6742 | *" -O2 "*) ;; | |
6743 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6744 | esac | |
6745 | case " $CXXFLAGS " in | |
6746 | *" -g "* | *" -g3 "*) ;; | |
6747 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6748 | esac | |
6749 | fi | |
7f6ef0c0 PB |
6750 | fi |
6751 | ||
6752 | ||
91c1f14c DK |
6753 | |
6754 | ||
9e07f89d NN |
6755 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6756 | # the named directory are copied to $(tooldir)/sys-include. | |
6757 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6758 | if test x${is_cross_compiler} = xno ; then | |
6759 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6760 | exit 1 | |
6761 | fi | |
6762 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 6763 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 6764 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
6765 | fi |
6766 | fi | |
6767 | ||
6768 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6769 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6770 | # are permitted. | |
6771 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6772 | if test x${is_cross_compiler} = xno ; then | |
6773 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6774 | exit 1 | |
6775 | fi | |
6776 | if test x"${with_libs}" != xyes ; then | |
6777 | # Copy the libraries in reverse order, so that files in the first named | |
6778 | # library override files in subsequent libraries. | |
18f6b6ee | 6779 | x=${gcc_cv_tool_prefix} |
9e07f89d | 6780 | for l in ${with_libs}; do |
c6b750e1 | 6781 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
6782 | done |
6783 | fi | |
6784 | fi | |
6785 | ||
700d40ca | 6786 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
6787 | # |
6788 | # This is done by determining whether or not the appropriate directory | |
6789 | # is available, and by checking whether or not specific configurations | |
6790 | # have requested that this magic not happen. | |
c6b750e1 DJ |
6791 | # |
6792 | # The command line options always override the explicit settings in | |
136bb21f | 6793 | # configure.ac, and the settings in configure.ac override this magic. |
2429c060 | 6794 | # |
c6b750e1 | 6795 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 6796 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
6797 | # --without-gnu-ld options for the configure script. Similarly, if |
6798 | # the default is to use the included zlib and you don't want to do that, | |
6799 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
6800 | |
6801 | if test x${use_gnu_as} = x && | |
6802 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6803 | with_gnu_as=yes | |
6804 | extra_host_args="$extra_host_args --with-gnu-as" | |
6805 | fi | |
6806 | ||
6807 | if test x${use_gnu_ld} = x && | |
93f9b408 | 6808 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
6809 | with_gnu_ld=yes |
6810 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6811 | fi | |
6812 | ||
700d40ca ILT |
6813 | if test x${use_included_zlib} = x && |
6814 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6815 | : | |
6816 | else | |
6817 | with_system_zlib=yes | |
6818 | extra_host_args="$extra_host_args --with-system-zlib" | |
6819 | fi | |
6820 | ||
2429c060 PB |
6821 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6822 | # can detect this case. | |
6823 | ||
6824 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6825 | with_newlib=yes | |
6826 | extra_host_args="$extra_host_args --with-newlib" | |
6827 | fi | |
6828 | ||
9e07f89d NN |
6829 | # Handle ${copy_dirs} |
6830 | set fnord ${copy_dirs} | |
6831 | shift | |
6832 | while test $# != 0 ; do | |
6833 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6834 | : | |
6835 | else | |
6836 | echo Copying $1 to $2 | |
6837 | ||
6838 | # Use the install script to create the directory and all required | |
6839 | # parent directories. | |
6840 | if test -d $2 ; then | |
6841 | : | |
6842 | else | |
6843 | echo >config.temp | |
6844 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6845 | fi | |
6846 | ||
6847 | # Copy the directory, assuming we have tar. | |
6848 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6849 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6850 | ||
6851 | # It is the responsibility of the user to correctly adjust all | |
6852 | # symlinks. If somebody can figure out how to handle them correctly | |
6853 | # here, feel free to add the code. | |
6854 | ||
6855 | echo $1 > $2/COPIED | |
6856 | fi | |
6857 | shift; shift | |
6858 | done | |
6859 | ||
2429c060 PB |
6860 | # Determine a target-dependent exec_prefix that the installed |
6861 | # gcc will search in. Keep this list sorted by triplet, with | |
6862 | # the *-*-osname triplets last. | |
6863 | md_exec_prefix= | |
6864 | case "${target}" in | |
521ec477 | 6865 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
6866 | md_exec_prefix=/dev/env/DJDIR/bin |
6867 | ;; | |
2429c060 | 6868 | *-*-hpux* | \ |
2429c060 | 6869 | *-*-nto-qnx* | \ |
1f111696 | 6870 | *-*-solaris2*) |
2429c060 PB |
6871 | md_exec_prefix=/usr/ccs/bin |
6872 | ;; | |
6873 | esac | |
6874 | ||
a0da8069 NN |
6875 | extra_arflags_for_target= |
6876 | extra_nmflags_for_target= | |
6877 | extra_ranlibflags_for_target= | |
6878 | target_makefile_frag=/dev/null | |
6879 | case "${target}" in | |
77d7106f AM |
6880 | spu-*-*) |
6881 | target_makefile_frag="config/mt-spu" | |
6882 | ;; | |
a9d58c06 | 6883 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
429acdec RS |
6884 | target_makefile_frag="config/mt-sde" |
6885 | ;; | |
f3b1e08e RS |
6886 | mipsisa*-*-elfoabi*) |
6887 | target_makefile_frag="config/mt-mips-elfoabi" | |
6888 | ;; | |
e7c8859c RS |
6889 | mips*-*-*linux* | mips*-*-gnu*) |
6890 | target_makefile_frag="config/mt-mips-gnu" | |
6891 | ;; | |
d9e042ac SL |
6892 | nios2-*-elf*) |
6893 | target_makefile_frag="config/mt-nios2-elf" | |
6894 | ;; | |
bf41f30d NC |
6895 | *-*-linux-android*) |
6896 | target_makefile_frag="config/mt-android" | |
6897 | ;; | |
29383458 | 6898 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 6899 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
6900 | ;; |
6901 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 6902 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
6903 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6904 | # harmless if we're using GNU nm or ar. | |
6905 | extra_arflags_for_target=" -X32_64" | |
6906 | extra_nmflags_for_target=" -B -X32_64" | |
6907 | ;; | |
a0da8069 NN |
6908 | esac |
6909 | ||
6910 | alphaieee_frag=/dev/null | |
6911 | case $target in | |
6912 | alpha*-*-*) | |
6913 | # This just makes sure to use the -mieee option to build target libs. | |
6914 | # This should probably be set individually by each library. | |
6915 | alphaieee_frag="config/mt-alphaieee" | |
6916 | ;; | |
6917 | esac | |
6918 | ||
6919 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6920 | # the target libraries, similarly if it is not specified, use -Os | |
6921 | # on selected platforms. | |
6922 | ospace_frag=/dev/null | |
6923 | case "${enable_target_optspace}:${target}" in | |
6924 | yes:*) | |
6925 | ospace_frag="config/mt-ospace" | |
6926 | ;; | |
6927 | :d30v-*) | |
6928 | ospace_frag="config/mt-d30v" | |
6929 | ;; | |
16beab3d | 6930 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
a0da8069 NN |
6931 | ospace_frag="config/mt-ospace" |
6932 | ;; | |
6933 | no:* | :*) | |
6934 | ;; | |
6935 | *) | |
6936 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6937 | ;; | |
6938 | esac | |
6939 | ||
a0da8069 NN |
6940 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6941 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 6942 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
6943 | build_tooldir=${tooldir} |
6944 | ||
a0da8069 NN |
6945 | # Create a .gdbinit file which runs the one in srcdir |
6946 | # and tells GDB to look there for source files. | |
6947 | ||
6948 | if test -r ${srcdir}/.gdbinit ; then | |
6949 | case ${srcdir} in | |
6950 | .) ;; | |
6951 | *) cat > ./.gdbinit <<EOF | |
6952 | # ${NO_EDIT} | |
6953 | dir ${srcdir} | |
6954 | dir . | |
6955 | source ${srcdir}/.gdbinit | |
6956 | EOF | |
6957 | ;; | |
6958 | esac | |
6959 | fi | |
6960 | ||
a0da8069 NN |
6961 | # Make sure that the compiler is able to generate an executable. If it |
6962 | # can't, we are probably in trouble. We don't care whether we can run the | |
6963 | # executable--we might be using a cross compiler--we only care whether it | |
6964 | # can be created. At this point the main configure script has set CC. | |
6965 | we_are_ok=no | |
6966 | echo "int main () { return 0; }" > conftest.c | |
6967 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
6968 | if test $? = 0 ; then | |
6969 | if test -s conftest || test -s conftest.exe ; then | |
6970 | we_are_ok=yes | |
6971 | fi | |
c6b750e1 | 6972 | fi |
a0da8069 NN |
6973 | case $we_are_ok in |
6974 | no) | |
6975 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
6976 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
6977 | rm -f conftest* | |
6978 | exit 1 | |
6979 | ;; | |
6980 | esac | |
6981 | rm -f conftest* | |
6982 | ||
3bbd2f8f | 6983 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
6984 | case "${host}" in |
6985 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 6986 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 6987 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
6988 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
6989 | esac | |
6990 | ||
3bbd2f8f | 6991 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
6992 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
6993 | # built executables to PATH. | |
3bbd2f8f AL |
6994 | if test "$RPATH_ENVVAR" = PATH; then |
6995 | GCC_SHLIB_SUBDIR=/shlib | |
6996 | else | |
6997 | GCC_SHLIB_SUBDIR= | |
6998 | fi | |
6999 | ||
730af8ee | 7000 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
7001 | case $enable_bootstrap in | |
7002 | yes) | |
7003 | bootstrap_suffix=bootstrap | |
7004 | BUILD_CONFIG=bootstrap-debug | |
7005 | ;; | |
7006 | no) | |
7007 | bootstrap_suffix=no-bootstrap | |
7008 | BUILD_CONFIG= | |
7009 | ;; | |
7010 | esac | |
7011 | ||
7012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
7013 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7014 | ||
7015 | ||
7016 | # Check whether --with-build-config was given. | |
7017 | if test "${with_build_config+set}" = set; then : | |
7018 | withval=$with_build_config; case $with_build_config in | |
7019 | yes) with_build_config= ;; | |
7020 | no) with_build_config= BUILD_CONFIG= ;; | |
7021 | esac | |
7022 | fi | |
7023 | ||
7024 | ||
7025 | if test "x${with_build_config}" != x; then | |
7026 | BUILD_CONFIG=$with_build_config | |
7027 | else | |
7028 | case $BUILD_CONFIG in | |
7029 | bootstrap-debug) | |
7030 | if echo "int f (void) { return 0; }" > conftest.c && | |
7031 | ${CC} -c conftest.c && | |
7032 | mv conftest.o conftest.o.g0 && | |
7033 | ${CC} -c -g conftest.c && | |
7034 | mv conftest.o conftest.o.g && | |
7035 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7036 | : | |
7037 | else | |
7038 | BUILD_CONFIG= | |
7039 | fi | |
7040 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7041 | ;; | |
7042 | esac | |
7043 | fi | |
7044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7045 | $as_echo "$BUILD_CONFIG" >&6; } | |
7046 | ||
7047 | ||
7048 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7050 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7051 | # Check whether --enable-vtable-verify was given. | |
7052 | if test "${enable_vtable_verify+set}" = set; then : | |
7053 | enableval=$enable_vtable_verify; case "$enableval" in | |
7054 | yes) enable_vtable_verify=yes ;; | |
7055 | no) enable_vtable_verify=no ;; | |
7056 | *) enable_vtable_verify=no;; | |
7057 | esac | |
7058 | else | |
7059 | enable_vtable_verify=no | |
7060 | fi | |
7061 | ||
7062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7063 | $as_echo "$enable_vtable_verify" >&6; } | |
7064 | ||
a0da8069 NN |
7065 | # Record target_configdirs and the configure arguments for target and |
7066 | # build configuration in Makefile. | |
7067 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 7068 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
201f096f | 7069 | bootstrap_fixincludes=no |
a0da8069 | 7070 | |
2aa2364a JR |
7071 | # If we are building libgomp, bootstrap it. |
7072 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7073 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7074 | fi | |
7075 | ||
730af8ee | 7076 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7077 | # or bootstrap-ubsan, bootstrap it. | |
7078 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7079 | case "$BUILD_CONFIG" in | |
7080 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7081 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
201f096f | 7082 | bootstrap_fixincludes=yes |
730af8ee | 7083 | ;; |
7084 | esac | |
5eb08693 L |
7085 | fi |
7086 | ||
730af8ee | 7087 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7088 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7089 | test "$enable_vtable_verify" != no; then | |
95e43135 JBG |
7090 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7091 | fi | |
7092 | ||
a0da8069 NN |
7093 | # Determine whether gdb needs tk/tcl or not. |
7094 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7095 | # and in that case we want gdb to be built without tk. Ugh! | |
7096 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7097 | # so we should be able to put the 'maybe's in unconditionally and | |
7098 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7099 | # 100% sure that that's safe though. | |
c180f501 | 7100 | |
675c6968 | 7101 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
7102 | case "$enable_gdbtk" in |
7103 | no) | |
7104 | GDB_TK="" ;; | |
c180f501 AC |
7105 | yes) |
7106 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 7107 | *) |
c180f501 AC |
7108 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7109 | # distro. Eventually someone will fix this and move Insight, nee | |
7110 | # gdbtk to a separate directory. | |
7111 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7112 | GDB_TK="${gdb_tk}" | |
7113 | else | |
7114 | GDB_TK="" | |
7115 | fi | |
7116 | ;; | |
a0da8069 | 7117 | esac |
907be67c DJ |
7118 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7119 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 7120 | |
6bd3dfaa | 7121 | # Strip out unwanted targets. |
dd12c3a8 NN |
7122 | |
7123 | # While at that, we remove Makefiles if we were started for recursive | |
7124 | # configuration, so that the top-level Makefile reconfigures them, | |
7125 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 7126 | |
06a51eac RW |
7127 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7128 | # but now we're fixing up the Makefile ourselves with the additional | |
7129 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7130 | # extrasub-{build,host,target} not because there is any reason to split | |
7131 | # the substitutions up that way, but only to remain below the limit of | |
7132 | # 99 commands in a script, for HP-UX sed. | |
7133 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
dd12c3a8 | 7134 | |
16b1ad29 RW |
7135 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7136 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7137 | yes:yes:*\ gold\ *:*) | |
7138 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
7139 | ;; | |
7140 | esac | |
7141 | ||
06a51eac | 7142 | extrasub_build= |
6a9cf61e | 7143 | for module in ${build_configdirs} ; do |
498d4a71 CF |
7144 | if test -z "${no_recursion}" \ |
7145 | && test -f ${build_subdir}/${module}/Makefile; then | |
7146 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7147 | rm -f ${build_subdir}/${module}/Makefile | |
7148 | fi | |
06a51eac | 7149 | extrasub_build="$extrasub_build |
498d4a71 CF |
7150 | /^@if build-$module\$/d |
7151 | /^@endif build-$module\$/d | |
7152 | /^@if build-$module-$bootstrap_suffix\$/d | |
7153 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7154 | done | |
06a51eac | 7155 | extrasub_host= |
498d4a71 | 7156 | for module in ${configdirs} ; do |
80911fe1 | 7157 | if test -z "${no_recursion}"; then |
8cf39b1b | 7158 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
7159 | if test -f ${file}; then |
7160 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7161 | rm -f ${file} | |
7162 | fi | |
7163 | done | |
498d4a71 | 7164 | fi |
201f096f | 7165 | case ${module},${bootstrap_fixincludes} in |
7166 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7167 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7168 | esac | |
06a51eac | 7169 | extrasub_host="$extrasub_host |
498d4a71 CF |
7170 | /^@if $module\$/d |
7171 | /^@endif $module\$/d | |
201f096f | 7172 | /^@if $module-$host_bootstrap_suffix\$/d |
7173 | /^@endif $module-$host_bootstrap_suffix\$/d" | |
498d4a71 | 7174 | done |
06a51eac | 7175 | extrasub_target= |
498d4a71 CF |
7176 | for module in ${target_configdirs} ; do |
7177 | if test -z "${no_recursion}" \ | |
7178 | && test -f ${target_subdir}/${module}/Makefile; then | |
7179 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7180 | rm -f ${target_subdir}/${module}/Makefile | |
7181 | fi | |
e8a5fa9c RW |
7182 | |
7183 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7184 | case $bootstrap_target_libs in | |
7185 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7186 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7187 | esac | |
7188 | ||
06a51eac | 7189 | extrasub_target="$extrasub_target |
498d4a71 CF |
7190 | /^@if target-$module\$/d |
7191 | /^@endif target-$module\$/d | |
e8a5fa9c RW |
7192 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7193 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
7194 | done |
7195 | ||
06a51eac RW |
7196 | # Do the final fixup along with target modules. |
7197 | extrasub_target="$extrasub_target | |
6bd3dfaa | 7198 | /^@if /,/^@endif /d" |
a0da8069 NN |
7199 | |
7200 | # Create the serialization dependencies. This uses a temporary file. | |
7201 | ||
81ecdfbb RW |
7202 | # Check whether --enable-serial-configure was given. |
7203 | if test "${enable_serial_configure+set}" = set; then : | |
7204 | enableval=$enable_serial_configure; | |
7205 | fi | |
e6bfb94a AO |
7206 | |
7207 | ||
1047cb91 DD |
7208 | case ${enable_serial_configure} in |
7209 | yes) | |
7210 | enable_serial_build_configure=yes | |
7211 | enable_serial_host_configure=yes | |
7212 | enable_serial_target_configure=yes | |
7213 | ;; | |
7214 | esac | |
7215 | ||
a0da8069 NN |
7216 | # These force 'configure's to be done one at a time, to avoid problems |
7217 | # with contention over a shared config.cache. | |
7218 | rm -f serdep.tmp | |
e6bfb94a | 7219 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 7220 | olditem= |
1047cb91 | 7221 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
7222 | for item in ${build_configdirs} ; do |
7223 | case ${olditem} in | |
7224 | "") ;; | |
e6bfb94a | 7225 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7226 | esac |
7227 | olditem=${item} | |
7228 | done | |
7229 | olditem= | |
1047cb91 | 7230 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
7231 | for item in ${configdirs} ; do |
7232 | case ${olditem} in | |
7233 | "") ;; | |
e6bfb94a | 7234 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7235 | esac |
7236 | olditem=${item} | |
7237 | done | |
7238 | olditem= | |
1047cb91 | 7239 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
7240 | for item in ${target_configdirs} ; do |
7241 | case ${olditem} in | |
7242 | "") ;; | |
e6bfb94a | 7243 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7244 | esac |
7245 | olditem=${item} | |
7246 | done | |
7247 | serialization_dependencies=serdep.tmp | |
7248 | ||
7249 | ||
e6bfb94a | 7250 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 7251 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
7252 | # might not want to pass down to subconfigures. The exception being |
7253 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7254 | # files altogether, and which should be passed on to subconfigures. | |
7255 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7256 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 7257 | baseargs= |
65b4571a | 7258 | tbaseargs= |
c6b750e1 DJ |
7259 | keep_next=no |
7260 | skip_next=no | |
7261 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
7262 | for ac_arg |
7263 | do | |
c6b750e1 DJ |
7264 | if test X"$skip_next" = X"yes"; then |
7265 | skip_next=no | |
7266 | continue | |
7267 | fi | |
7268 | if test X"$keep_next" = X"yes"; then | |
7269 | case $ac_arg in | |
7270 | *\'*) | |
7271 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7272 | esac | |
7273 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7274 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
7275 | keep_next=no |
7276 | continue | |
7277 | fi | |
7278 | ||
7279 | # Handle separated arguments. Based on the logic generated by | |
7280 | # autoconf 2.59. | |
7281 | case $ac_arg in | |
7282 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7283 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7284 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7285 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7286 | separate_arg=no | |
7287 | ;; | |
7288 | -*) | |
7289 | separate_arg=yes | |
7290 | ;; | |
7291 | *) | |
7292 | separate_arg=no | |
7293 | ;; | |
7294 | esac | |
7295 | ||
65b4571a AO |
7296 | skip_targ=no |
7297 | case $ac_arg in | |
7298 | ||
7299 | --with-* | --without-*) | |
7300 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7301 | ||
7302 | case $libopt in | |
7303 | *[-_]include) | |
7304 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7305 | ;; | |
7306 | *[-_]lib) | |
7307 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7308 | ;; | |
7309 | *) | |
7310 | lib=$libopt | |
7311 | ;; | |
7312 | esac | |
7313 | ||
7314 | ||
7315 | case $lib in | |
1b6c0831 | 7316 | mpc | mpfr | gmp | isl) |
65b4571a AO |
7317 | # If we're processing --with-$lib, --with-$lib-include or |
7318 | # --with-$lib-lib, for one of the libs above, and target is | |
7319 | # different from host, don't pass the current argument to any | |
7320 | # target library's configure. | |
7321 | if test x$is_cross_compiler = xyes; then | |
7322 | skip_targ=yes | |
7323 | fi | |
7324 | ;; | |
7325 | esac | |
7326 | ;; | |
7327 | esac | |
7328 | ||
c6b750e1 | 7329 | case "$ac_arg" in |
30167e0a NC |
7330 | --cache-file=/dev/null | \ |
7331 | -cache-file=/dev/null ) | |
7332 | # Handled here to avoid the test to skip args below. | |
7333 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7334 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
7335 | # Assert: $separate_arg should always be no. |
7336 | keep_next=$separate_arg | |
7337 | ;; | |
c6b750e1 DJ |
7338 | --no*) |
7339 | continue | |
7340 | ;; | |
7341 | --c* | \ | |
7342 | --sr* | \ | |
7343 | --ho* | \ | |
7344 | --bu* | \ | |
7345 | --t* | \ | |
7346 | --program-* | \ | |
7347 | -cache_file* | \ | |
7348 | -srcdir* | \ | |
7349 | -host* | \ | |
7350 | -build* | \ | |
7351 | -target* | \ | |
7352 | -program-prefix* | \ | |
7353 | -program-suffix* | \ | |
7354 | -program-transform-name* ) | |
7355 | skip_next=$separate_arg | |
7356 | continue | |
7357 | ;; | |
7358 | -*) | |
7359 | # An option. Add it. | |
7360 | case $ac_arg in | |
7361 | *\'*) | |
7362 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7363 | esac | |
7364 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
7365 | if test X"$skip_targ" = Xno; then |
7366 | tbaseargs="$tbaseargs '$ac_arg'" | |
7367 | fi | |
c6b750e1 DJ |
7368 | keep_next=$separate_arg |
7369 | ;; | |
7370 | *) | |
7371 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7372 | # pass it down; let the Makefile handle this. | |
7373 | continue | |
7374 | ;; | |
7375 | esac | |
7376 | done | |
7377 | # Remove the initial space we just introduced and, as these will be | |
7378 | # expanded by make, quote '$'. | |
7379 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 7380 | |
f27d4f92 DJ |
7381 | # Add in --program-transform-name, after --program-prefix and |
7382 | # --program-suffix have been applied to it. Autoconf has already | |
7383 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7384 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 7385 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
7386 | # Also, because we want to override the logic in subdir configure scripts to |
7387 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7388 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7389 | ${program_transform_name} | |
7390 | EOF_SED | |
7391 | gcc_transform_name=`cat conftestsed.out` | |
7392 | rm -f conftestsed.out | |
7393 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 7394 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
7395 | if test "$silent" = yes; then |
7396 | baseargs="$baseargs --silent" | |
65b4571a | 7397 | tbaseargs="$tbaseargs --silent" |
2444379b | 7398 | fi |
34a0f3cf | 7399 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 7400 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 7401 | |
4074d5f2 RW |
7402 | # Record and document user additions to sub configure arguments. |
7403 | ||
7404 | ||
7405 | ||
7406 | ||
a0da8069 NN |
7407 | # For the build-side libraries, we just need to pretend we're native, |
7408 | # and not use the same cache file. Multilibs are neither needed nor | |
1b6c0831 L |
7409 | # desired. We can't even use the same cache file for all build-side |
7410 | # libraries, as they're compiled differently; some with C, some with | |
7411 | # C++ or with different feature-enabling options. | |
7412 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
a0da8069 NN |
7413 | |
7414 | # For host modules, accept cache file option, or specification as blank. | |
7415 | case "${cache_file}" in | |
7416 | "") # empty | |
7417 | cache_file_option="" ;; | |
7418 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7419 | cache_file_option="--cache-file=${cache_file}" ;; | |
7420 | *) # relative path | |
7421 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7422 | esac | |
7423 | ||
82252c06 NN |
7424 | # Host dirs don't like to share a cache file either, horribly enough. |
7425 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 7426 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 7427 | |
65b4571a | 7428 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
7429 | |
7430 | # Passing a --with-cross-host argument lets the target libraries know | |
7431 | # whether they are being built with a cross-compiler or being built | |
7432 | # native. However, it would be better to use other mechanisms to make the | |
7433 | # sorts of decisions they want to make on this basis. Please consider | |
7434 | # this option to be deprecated. FIXME. | |
7435 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 7436 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
7437 | fi |
7438 | ||
afc0578d | 7439 | # Special user-friendly check for native x86_64-linux build, if |
7440 | # multilib is not explicitly enabled. | |
7441 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7442 | x86_64-*linux*:yes:$build:$build:) | |
ce6c656d | 7443 | # Make sure we have a development environment that handles 32-bit |
afc0578d | 7444 | dev64=no |
7445 | echo "int main () { return 0; }" > conftest.c | |
7446 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7447 | if test $? = 0 ; then | |
7448 | if test -s conftest || test -s conftest.exe ; then | |
7449 | dev64=yes | |
7450 | fi | |
7451 | fi | |
7452 | rm -f conftest* | |
7453 | if test x${dev64} != xyes ; then | |
ce6c656d | 7454 | as_fn_error "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5 |
afc0578d | 7455 | fi |
7456 | ;; | |
7457 | esac | |
7458 | ||
938d2b74 RW |
7459 | # Default to --enable-multilib. |
7460 | if test x${enable_multilib} = x ; then | |
a0da8069 | 7461 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 7462 | fi |
a0da8069 NN |
7463 | |
7464 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7465 | # changed from the earlier setting of with_newlib. | |
7466 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7467 | target_configargs="--with-newlib ${target_configargs}" | |
7468 | fi | |
7469 | ||
95036d20 NN |
7470 | # Different target subdirs use different values of certain variables |
7471 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7472 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7473 | # it doesn't automatically accept command-line overrides of them. | |
7474 | # This means it's not safe for target subdirs to share a cache file, | |
7475 | # which is disgusting, but there you have it. Hopefully this can be | |
7476 | # fixed in future. It's still worthwhile to use a cache file for each | |
7477 | # directory. I think. | |
7478 | ||
ae380b45 MS |
7479 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7480 | # We need to pass --target, as newer autoconf's requires consistency | |
7481 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 7482 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 7483 | |
a0da8069 NN |
7484 | FLAGS_FOR_TARGET= |
7485 | case " $target_configdirs " in | |
7486 | *" newlib "*) | |
7487 | case " $target_configargs " in | |
7488 | *" --with-newlib "*) | |
7489 | case "$target" in | |
1f53ca9a | 7490 | *-cygwin*) |
6d94c122 | 7491 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
1f53ca9a | 7492 | ;; |
a0da8069 NN |
7493 | esac |
7494 | ||
7495 | # If we're not building GCC, don't discard standard headers. | |
7496 | if test -d ${srcdir}/gcc; then | |
7497 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7498 | ||
7499 | if test "${build}" != "${host}"; then | |
7500 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7501 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7502 | # to it. This is right: we don't want to search that directory | |
7503 | # for binaries, but we want the header files in there, so add | |
7504 | # them explicitly. | |
e552509b | 7505 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
7506 | |
7507 | # Someone might think of using the pre-installed headers on | |
7508 | # Canadian crosses, in case the installed compiler is not fully | |
7509 | # compatible with the compiler being built. In this case, it | |
7510 | # would be better to flag an error than risking having | |
7511 | # incompatible object files being constructed. We can't | |
7512 | # guarantee that an error will be flagged, but let's hope the | |
7513 | # compiler will do it, when presented with incompatible header | |
7514 | # files. | |
7515 | fi | |
7516 | fi | |
7517 | ||
7518 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 7519 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
7520 | # Here host == target, so we don't need to build gcc, |
7521 | # so we don't want to discard standard headers. | |
7522 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7523 | ;; | |
7524 | *) | |
7525 | # If we're building newlib, use its generic headers last, but search | |
7526 | # for any libc-related directories first (so make it the last -B | |
7527 | # switch). | |
7528 | 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 |
7529 | |
7530 | # If we're building libgloss, find the startup file, simulator library | |
7531 | # and linker script. | |
7532 | case " $target_configdirs " in | |
7533 | *" libgloss "*) | |
7534 | # Look for startup file, simulator library and maybe linker script. | |
7535 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7536 | # Look for libnosys.a in case the target needs it. | |
7537 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7538 | # Most targets have the linker script in the source directory. | |
7539 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7540 | ;; | |
7541 | esac | |
a0da8069 NN |
7542 | ;; |
7543 | esac | |
7544 | ;; | |
7545 | esac | |
7546 | ;; | |
7547 | esac | |
1f53ca9a | 7548 | |
45055374 | 7549 | case "$target" in |
1f53ca9a AO |
7550 | x86_64-*mingw* | *-w64-mingw*) |
7551 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7552 | # however, use a symlink named 'mingw' in ${prefix} . | |
7553 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7554 | ;; | |
7555 | *-mingw*) | |
7556 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7557 | 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' | |
7558 | ;; | |
45055374 | 7559 | esac |
a0da8069 | 7560 | |
5fbad20a DD |
7561 | # Allow the user to override the flags for |
7562 | # our build compiler if desired. | |
c66487f8 NC |
7563 | if test x"${build}" = x"${host}" ; then |
7564 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7565 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7566 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7567 | fi | |
5fbad20a | 7568 | |
a0da8069 NN |
7569 | # On Canadian crosses, we'll be searching the right directories for |
7570 | # the previously-installed cross compiler, so don't bother to add | |
7571 | # flags for directories within the install tree of the compiler | |
7572 | # being built; programs in there won't even run. | |
7573 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7574 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 7575 | 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 |
7576 | fi |
7577 | ||
7578 | if test "x${use_gnu_ld}" = x && | |
7579 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7580 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 7581 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
7582 | fi |
7583 | ||
a481dbb7 DD |
7584 | # Search for other target-specific linker scripts and such. |
7585 | case "${target}" in | |
4e206d7e DB |
7586 | mep*) |
7587 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7588 | ;; | |
7589 | esac | |
7590 | ||
a0da8069 | 7591 | # Makefile fragments. |
3e707e94 PB |
7592 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7593 | do | |
7594 | eval fragval=\$$frag | |
7595 | if test $fragval != /dev/null; then | |
7596 | eval $frag=${srcdir}/$fragval | |
7597 | fi | |
7598 | done | |
a0da8069 NN |
7599 | |
7600 | ||
7601 | ||
7602 | ||
7603 | ||
7604 | # Miscellanea: directories, flags, etc. | |
7605 | ||
7606 | ||
7607 | ||
7608 | ||
7609 | ||
7610 | ||
7611 | ||
3bbd2f8f | 7612 | |
6a9cf61e | 7613 | # Build module lists & subconfigure args. |
a0da8069 NN |
7614 | |
7615 | ||
7616 | ||
be01d343 PB |
7617 | # Host module lists & subconfigure args. |
7618 | ||
7619 | ||
7620 | ||
911e63d0 | 7621 | |
be01d343 PB |
7622 | # Target module lists & subconfigure args. |
7623 | ||
7624 | ||
7625 | ||
7626 | # Build tools. | |
7627 | ||
7628 | ||
7629 | ||
1576798e PB |
7630 | |
7631 | ||
7632 | ||
7633 | ||
7634 | ||
7635 | ||
7636 | ||
7637 | ||
7638 | ||
7639 | ||
7640 | ||
7641 | ||
7642 | ||
be01d343 PB |
7643 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7644 | # on the build machine. These are used if the Makefile can't locate these | |
7645 | # programs in objdir. | |
7646 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7647 | ||
7648 | for ac_prog in 'bison -y' byacc yacc | |
7649 | do | |
c6b750e1 | 7650 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7651 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7653 | $as_echo_n "checking for $ac_word... " >&6; } | |
7654 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7655 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7656 | else |
7657 | if test -n "$YACC"; then | |
7658 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7659 | else | |
c6b750e1 DJ |
7660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7661 | for as_dir in $PATH | |
7662 | do | |
7663 | IFS=$as_save_IFS | |
7664 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7665 | for ac_exec_ext in '' $ac_executable_extensions; do |
7666 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7667 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 7668 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7669 | break 2 |
7670 | fi | |
7671 | done | |
81ecdfbb RW |
7672 | done |
7673 | IFS=$as_save_IFS | |
c6b750e1 | 7674 | |
be01d343 PB |
7675 | fi |
7676 | fi | |
c6b750e1 | 7677 | YACC=$ac_cv_prog_YACC |
be01d343 | 7678 | if test -n "$YACC"; then |
81ecdfbb RW |
7679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7680 | $as_echo "$YACC" >&6; } | |
be01d343 | 7681 | else |
81ecdfbb RW |
7682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7683 | $as_echo "no" >&6; } | |
be01d343 PB |
7684 | fi |
7685 | ||
81ecdfbb | 7686 | |
c6b750e1 | 7687 | test -n "$YACC" && break |
be01d343 PB |
7688 | done |
7689 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7690 | ||
7691 | case " $build_configdirs " in | |
7692 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
7693 | esac |
7694 | ||
7695 | for ac_prog in bison | |
7696 | do | |
c6b750e1 | 7697 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7698 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7700 | $as_echo_n "checking for $ac_word... " >&6; } | |
7701 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7702 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7703 | else |
7704 | if test -n "$BISON"; then | |
7705 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7706 | else | |
c6b750e1 DJ |
7707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7708 | for as_dir in $PATH | |
7709 | do | |
7710 | IFS=$as_save_IFS | |
7711 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7712 | for ac_exec_ext in '' $ac_executable_extensions; do |
7713 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7714 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 7715 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7716 | break 2 |
7717 | fi | |
7718 | done | |
81ecdfbb RW |
7719 | done |
7720 | IFS=$as_save_IFS | |
c6b750e1 | 7721 | |
be01d343 PB |
7722 | fi |
7723 | fi | |
c6b750e1 | 7724 | BISON=$ac_cv_prog_BISON |
be01d343 | 7725 | if test -n "$BISON"; then |
81ecdfbb RW |
7726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7727 | $as_echo "$BISON" >&6; } | |
be01d343 | 7728 | else |
81ecdfbb RW |
7729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7730 | $as_echo "no" >&6; } | |
be01d343 PB |
7731 | fi |
7732 | ||
81ecdfbb | 7733 | |
c6b750e1 | 7734 | test -n "$BISON" && break |
be01d343 PB |
7735 | done |
7736 | test -n "$BISON" || BISON="$MISSING bison" | |
7737 | ||
7738 | case " $build_configdirs " in | |
7739 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7740 | esac | |
7741 | ||
7742 | for ac_prog in gm4 gnum4 m4 | |
7743 | do | |
c6b750e1 | 7744 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7745 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7747 | $as_echo_n "checking for $ac_word... " >&6; } | |
7748 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7749 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7750 | else |
7751 | if test -n "$M4"; then | |
7752 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7753 | else | |
c6b750e1 DJ |
7754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7755 | for as_dir in $PATH | |
7756 | do | |
7757 | IFS=$as_save_IFS | |
7758 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7759 | for ac_exec_ext in '' $ac_executable_extensions; do |
7760 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7761 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 7762 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7763 | break 2 |
7764 | fi | |
7765 | done | |
81ecdfbb RW |
7766 | done |
7767 | IFS=$as_save_IFS | |
c6b750e1 | 7768 | |
be01d343 PB |
7769 | fi |
7770 | fi | |
c6b750e1 | 7771 | M4=$ac_cv_prog_M4 |
be01d343 | 7772 | if test -n "$M4"; then |
81ecdfbb RW |
7773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7774 | $as_echo "$M4" >&6; } | |
be01d343 | 7775 | else |
81ecdfbb RW |
7776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7777 | $as_echo "no" >&6; } | |
be01d343 PB |
7778 | fi |
7779 | ||
81ecdfbb | 7780 | |
c6b750e1 | 7781 | test -n "$M4" && break |
be01d343 PB |
7782 | done |
7783 | test -n "$M4" || M4="$MISSING m4" | |
7784 | ||
7785 | case " $build_configdirs " in | |
7786 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7787 | esac | |
7788 | ||
7789 | for ac_prog in flex lex | |
7790 | do | |
c6b750e1 | 7791 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7792 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7794 | $as_echo_n "checking for $ac_word... " >&6; } | |
7795 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7796 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7797 | else |
7798 | if test -n "$LEX"; then | |
7799 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7800 | else | |
c6b750e1 DJ |
7801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7802 | for as_dir in $PATH | |
7803 | do | |
7804 | IFS=$as_save_IFS | |
7805 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7806 | for ac_exec_ext in '' $ac_executable_extensions; do |
7807 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7808 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 7809 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7810 | break 2 |
7811 | fi | |
7812 | done | |
81ecdfbb RW |
7813 | done |
7814 | IFS=$as_save_IFS | |
c6b750e1 | 7815 | |
be01d343 PB |
7816 | fi |
7817 | fi | |
c6b750e1 | 7818 | LEX=$ac_cv_prog_LEX |
be01d343 | 7819 | if test -n "$LEX"; then |
81ecdfbb RW |
7820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7821 | $as_echo "$LEX" >&6; } | |
be01d343 | 7822 | else |
81ecdfbb RW |
7823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7824 | $as_echo "no" >&6; } | |
be01d343 PB |
7825 | fi |
7826 | ||
81ecdfbb | 7827 | |
c6b750e1 | 7828 | test -n "$LEX" && break |
be01d343 PB |
7829 | done |
7830 | test -n "$LEX" || LEX="$MISSING flex" | |
7831 | ||
7832 | case " $build_configdirs " in | |
7833 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7834 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7835 | esac | |
7836 | ||
7837 | for ac_prog in flex | |
7838 | do | |
c6b750e1 | 7839 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7840 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7842 | $as_echo_n "checking for $ac_word... " >&6; } | |
7843 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7844 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7845 | else |
7846 | if test -n "$FLEX"; then | |
7847 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7848 | else | |
c6b750e1 DJ |
7849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7850 | for as_dir in $PATH | |
7851 | do | |
7852 | IFS=$as_save_IFS | |
7853 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7854 | for ac_exec_ext in '' $ac_executable_extensions; do |
7855 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7856 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 7857 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7858 | break 2 |
7859 | fi | |
7860 | done | |
81ecdfbb RW |
7861 | done |
7862 | IFS=$as_save_IFS | |
c6b750e1 | 7863 | |
be01d343 PB |
7864 | fi |
7865 | fi | |
c6b750e1 | 7866 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 7867 | if test -n "$FLEX"; then |
81ecdfbb RW |
7868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7869 | $as_echo "$FLEX" >&6; } | |
be01d343 | 7870 | else |
81ecdfbb RW |
7871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7872 | $as_echo "no" >&6; } | |
be01d343 PB |
7873 | fi |
7874 | ||
81ecdfbb | 7875 | |
c6b750e1 | 7876 | test -n "$FLEX" && break |
be01d343 PB |
7877 | done |
7878 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7879 | ||
7880 | case " $build_configdirs " in | |
7881 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7882 | esac | |
7883 | ||
7884 | for ac_prog in makeinfo | |
7885 | do | |
c6b750e1 | 7886 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7887 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7889 | $as_echo_n "checking for $ac_word... " >&6; } | |
7890 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7891 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7892 | else |
7893 | if test -n "$MAKEINFO"; then | |
7894 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7895 | else | |
c6b750e1 DJ |
7896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7897 | for as_dir in $PATH | |
7898 | do | |
7899 | IFS=$as_save_IFS | |
7900 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7901 | for ac_exec_ext in '' $ac_executable_extensions; do |
7902 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7903 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 7904 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7905 | break 2 |
7906 | fi | |
7907 | done | |
81ecdfbb RW |
7908 | done |
7909 | IFS=$as_save_IFS | |
c6b750e1 | 7910 | |
be01d343 PB |
7911 | fi |
7912 | fi | |
c6b750e1 | 7913 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 7914 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
7915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7916 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 7917 | else |
81ecdfbb RW |
7918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7919 | $as_echo "no" >&6; } | |
be01d343 PB |
7920 | fi |
7921 | ||
81ecdfbb | 7922 | |
c6b750e1 | 7923 | test -n "$MAKEINFO" && break |
be01d343 PB |
7924 | done |
7925 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7926 | ||
7927 | case " $build_configdirs " in | |
7928 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7929 | *) | |
7930 | ||
10ad8ef3 | 7931 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
7932 | # higher, else we use the "missing" dummy. |
7933 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 7934 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
7935 | : |
7936 | else | |
7937 | MAKEINFO="$MISSING makeinfo" | |
7938 | fi | |
7939 | ;; | |
7940 | ||
7941 | esac | |
a0da8069 | 7942 | |
be01d343 | 7943 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 7944 | |
be01d343 PB |
7945 | for ac_prog in expect |
7946 | do | |
c6b750e1 | 7947 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7948 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7950 | $as_echo_n "checking for $ac_word... " >&6; } | |
7951 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7952 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7953 | else |
7954 | if test -n "$EXPECT"; then | |
7955 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7956 | else | |
c6b750e1 DJ |
7957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7958 | for as_dir in $PATH | |
7959 | do | |
7960 | IFS=$as_save_IFS | |
7961 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7962 | for ac_exec_ext in '' $ac_executable_extensions; do |
7963 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7964 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 7965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7966 | break 2 |
7967 | fi | |
7968 | done | |
81ecdfbb RW |
7969 | done |
7970 | IFS=$as_save_IFS | |
c6b750e1 | 7971 | |
be01d343 PB |
7972 | fi |
7973 | fi | |
c6b750e1 | 7974 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 7975 | if test -n "$EXPECT"; then |
81ecdfbb RW |
7976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
7977 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 7978 | else |
81ecdfbb RW |
7979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7980 | $as_echo "no" >&6; } | |
be01d343 | 7981 | fi |
a0da8069 | 7982 | |
81ecdfbb | 7983 | |
c6b750e1 | 7984 | test -n "$EXPECT" && break |
be01d343 PB |
7985 | done |
7986 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 7987 | |
be01d343 PB |
7988 | case " $configdirs " in |
7989 | *" expect "*) | |
7990 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
7991 | ;; | |
7992 | esac | |
a0da8069 | 7993 | |
be01d343 PB |
7994 | for ac_prog in runtest |
7995 | do | |
c6b750e1 | 7996 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7997 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7999 | $as_echo_n "checking for $ac_word... " >&6; } | |
8000 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
8001 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8002 | else |
8003 | if test -n "$RUNTEST"; then | |
8004 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
8005 | else | |
c6b750e1 DJ |
8006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8007 | for as_dir in $PATH | |
8008 | do | |
8009 | IFS=$as_save_IFS | |
8010 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8011 | for ac_exec_ext in '' $ac_executable_extensions; do |
8012 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8013 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 8014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8015 | break 2 |
8016 | fi | |
8017 | done | |
81ecdfbb RW |
8018 | done |
8019 | IFS=$as_save_IFS | |
c6b750e1 | 8020 | |
be01d343 PB |
8021 | fi |
8022 | fi | |
c6b750e1 | 8023 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 8024 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
8025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8026 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 8027 | else |
81ecdfbb RW |
8028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8029 | $as_echo "no" >&6; } | |
be01d343 | 8030 | fi |
a0da8069 | 8031 | |
81ecdfbb | 8032 | |
c6b750e1 | 8033 | test -n "$RUNTEST" && break |
be01d343 PB |
8034 | done |
8035 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 8036 | |
be01d343 PB |
8037 | case " $configdirs " in |
8038 | *" dejagnu "*) | |
6b89cc21 | 8039 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
8040 | ;; |
8041 | esac | |
a0da8069 NN |
8042 | |
8043 | ||
a0da8069 | 8044 | # Host tools. |
859789af AC |
8045 | ncn_tool_prefix= |
8046 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8047 | ncn_target_tool_prefix= | |
8048 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8049 | ||
9a819804 AO |
8050 | |
8051 | ||
8052 | if test -n "$AR"; then | |
8053 | ac_cv_prog_AR=$AR | |
8054 | elif test -n "$ac_cv_prog_AR"; then | |
8055 | AR=$ac_cv_prog_AR | |
8056 | fi | |
8057 | ||
8058 | if test -n "$ac_cv_prog_AR"; then | |
8059 | for ncn_progname in ar; do | |
8060 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8061 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8063 | $as_echo_n "checking for $ac_word... " >&6; } | |
8064 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8065 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8066 | else |
8067 | if test -n "$AR"; then | |
8068 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8069 | else | |
8070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8071 | for as_dir in $PATH | |
8072 | do | |
8073 | IFS=$as_save_IFS | |
8074 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8075 | for ac_exec_ext in '' $ac_executable_extensions; do |
8076 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8077 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8078 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8079 | break 2 |
8080 | fi | |
8081 | done | |
81ecdfbb RW |
8082 | done |
8083 | IFS=$as_save_IFS | |
9a819804 AO |
8084 | |
8085 | fi | |
8086 | fi | |
8087 | AR=$ac_cv_prog_AR | |
8088 | if test -n "$AR"; then | |
81ecdfbb RW |
8089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8090 | $as_echo "$AR" >&6; } | |
9a819804 | 8091 | else |
81ecdfbb RW |
8092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8093 | $as_echo "no" >&6; } | |
9a819804 AO |
8094 | fi |
8095 | ||
81ecdfbb | 8096 | |
9a819804 AO |
8097 | done |
8098 | fi | |
8099 | ||
8100 | for ncn_progname in ar; do | |
05cbd757 PB |
8101 | if test -n "$ncn_tool_prefix"; then |
8102 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8103 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8105 | $as_echo_n "checking for $ac_word... " >&6; } | |
8106 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8107 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8108 | else |
8109 | if test -n "$AR"; then | |
8110 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8111 | else | |
c6b750e1 DJ |
8112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8113 | for as_dir in $PATH | |
8114 | do | |
8115 | IFS=$as_save_IFS | |
8116 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8117 | for ac_exec_ext in '' $ac_executable_extensions; do |
8118 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8119 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8120 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8121 | break 2 |
8122 | fi | |
8123 | done | |
81ecdfbb RW |
8124 | done |
8125 | IFS=$as_save_IFS | |
c6b750e1 | 8126 | |
859789af AC |
8127 | fi |
8128 | fi | |
c6b750e1 | 8129 | AR=$ac_cv_prog_AR |
859789af | 8130 | if test -n "$AR"; then |
81ecdfbb RW |
8131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8132 | $as_echo "$AR" >&6; } | |
859789af | 8133 | else |
81ecdfbb RW |
8134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8135 | $as_echo "no" >&6; } | |
859789af AC |
8136 | fi |
8137 | ||
81ecdfbb | 8138 | |
05cbd757 PB |
8139 | fi |
8140 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8141 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8142 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8144 | $as_echo_n "checking for $ac_word... " >&6; } | |
8145 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8146 | $as_echo_n "(cached) " >&6 | |
859789af | 8147 | else |
05cbd757 PB |
8148 | if test -n "$AR"; then |
8149 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 8150 | else |
c6b750e1 DJ |
8151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8152 | for as_dir in $PATH | |
8153 | do | |
8154 | IFS=$as_save_IFS | |
8155 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8156 | for ac_exec_ext in '' $ac_executable_extensions; do |
8157 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8158 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8159 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8160 | break 2 |
8161 | fi | |
8162 | done | |
81ecdfbb RW |
8163 | done |
8164 | IFS=$as_save_IFS | |
c6b750e1 | 8165 | |
859789af AC |
8166 | fi |
8167 | fi | |
c6b750e1 | 8168 | AR=$ac_cv_prog_AR |
05cbd757 | 8169 | if test -n "$AR"; then |
81ecdfbb RW |
8170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8171 | $as_echo "$AR" >&6; } | |
859789af | 8172 | else |
81ecdfbb RW |
8173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8174 | $as_echo "no" >&6; } | |
859789af | 8175 | fi |
c6b750e1 | 8176 | |
81ecdfbb | 8177 | |
05cbd757 PB |
8178 | fi |
8179 | test -n "$ac_cv_prog_AR" && break | |
8180 | done | |
8181 | ||
8182 | if test -z "$ac_cv_prog_AR" ; then | |
8183 | set dummy ar | |
8184 | if test $build = $host ; then | |
8185 | AR="$2" | |
859789af | 8186 | else |
05cbd757 | 8187 | AR="${ncn_tool_prefix}$2" |
859789af | 8188 | fi |
859789af AC |
8189 | fi |
8190 | ||
9a819804 AO |
8191 | |
8192 | ||
8193 | if test -n "$AS"; then | |
8194 | ac_cv_prog_AS=$AS | |
8195 | elif test -n "$ac_cv_prog_AS"; then | |
8196 | AS=$ac_cv_prog_AS | |
8197 | fi | |
8198 | ||
8199 | if test -n "$ac_cv_prog_AS"; then | |
8200 | for ncn_progname in as; do | |
8201 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8202 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8204 | $as_echo_n "checking for $ac_word... " >&6; } | |
8205 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8206 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8207 | else |
8208 | if test -n "$AS"; then | |
8209 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8210 | else | |
8211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8212 | for as_dir in $PATH | |
8213 | do | |
8214 | IFS=$as_save_IFS | |
8215 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8216 | for ac_exec_ext in '' $ac_executable_extensions; do |
8217 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8218 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8219 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8220 | break 2 |
8221 | fi | |
8222 | done | |
81ecdfbb RW |
8223 | done |
8224 | IFS=$as_save_IFS | |
9a819804 AO |
8225 | |
8226 | fi | |
8227 | fi | |
8228 | AS=$ac_cv_prog_AS | |
8229 | if test -n "$AS"; then | |
81ecdfbb RW |
8230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8231 | $as_echo "$AS" >&6; } | |
9a819804 | 8232 | else |
81ecdfbb RW |
8233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8234 | $as_echo "no" >&6; } | |
9a819804 AO |
8235 | fi |
8236 | ||
81ecdfbb | 8237 | |
9a819804 AO |
8238 | done |
8239 | fi | |
8240 | ||
8241 | for ncn_progname in as; do | |
05cbd757 PB |
8242 | if test -n "$ncn_tool_prefix"; then |
8243 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8244 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8246 | $as_echo_n "checking for $ac_word... " >&6; } | |
8247 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8248 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8249 | else |
8250 | if test -n "$AS"; then | |
8251 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
8252 | else |
8253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8254 | for as_dir in $PATH | |
8255 | do | |
8256 | IFS=$as_save_IFS | |
8257 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8258 | for ac_exec_ext in '' $ac_executable_extensions; do |
8259 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8260 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8261 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8262 | break 2 |
8263 | fi | |
8264 | done | |
81ecdfbb RW |
8265 | done |
8266 | IFS=$as_save_IFS | |
c6b750e1 | 8267 | |
859789af AC |
8268 | fi |
8269 | fi | |
c6b750e1 | 8270 | AS=$ac_cv_prog_AS |
859789af | 8271 | if test -n "$AS"; then |
81ecdfbb RW |
8272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8273 | $as_echo "$AS" >&6; } | |
859789af | 8274 | else |
81ecdfbb RW |
8275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8276 | $as_echo "no" >&6; } | |
859789af AC |
8277 | fi |
8278 | ||
81ecdfbb | 8279 | |
05cbd757 PB |
8280 | fi |
8281 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8282 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8283 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8285 | $as_echo_n "checking for $ac_word... " >&6; } | |
8286 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8287 | $as_echo_n "(cached) " >&6 | |
859789af | 8288 | else |
05cbd757 PB |
8289 | if test -n "$AS"; then |
8290 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 8291 | else |
c6b750e1 DJ |
8292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8293 | for as_dir in $PATH | |
8294 | do | |
8295 | IFS=$as_save_IFS | |
8296 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8297 | for ac_exec_ext in '' $ac_executable_extensions; do |
8298 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8299 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8300 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8301 | break 2 |
8302 | fi | |
8303 | done | |
81ecdfbb RW |
8304 | done |
8305 | IFS=$as_save_IFS | |
c6b750e1 | 8306 | |
859789af AC |
8307 | fi |
8308 | fi | |
c6b750e1 | 8309 | AS=$ac_cv_prog_AS |
05cbd757 | 8310 | if test -n "$AS"; then |
81ecdfbb RW |
8311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8312 | $as_echo "$AS" >&6; } | |
859789af | 8313 | else |
81ecdfbb RW |
8314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8315 | $as_echo "no" >&6; } | |
859789af | 8316 | fi |
c6b750e1 | 8317 | |
81ecdfbb | 8318 | |
05cbd757 PB |
8319 | fi |
8320 | test -n "$ac_cv_prog_AS" && break | |
8321 | done | |
8322 | ||
8323 | if test -z "$ac_cv_prog_AS" ; then | |
8324 | set dummy as | |
8325 | if test $build = $host ; then | |
8326 | AS="$2" | |
859789af | 8327 | else |
05cbd757 | 8328 | AS="${ncn_tool_prefix}$2" |
859789af | 8329 | fi |
859789af AC |
8330 | fi |
8331 | ||
9a819804 AO |
8332 | |
8333 | ||
8334 | if test -n "$DLLTOOL"; then | |
8335 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8336 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8337 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8338 | fi | |
8339 | ||
8340 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8341 | for ncn_progname in dlltool; do | |
8342 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8343 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8345 | $as_echo_n "checking for $ac_word... " >&6; } | |
8346 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8347 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8348 | else |
8349 | if test -n "$DLLTOOL"; then | |
8350 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8351 | else | |
8352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8353 | for as_dir in $PATH | |
8354 | do | |
8355 | IFS=$as_save_IFS | |
8356 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8357 | for ac_exec_ext in '' $ac_executable_extensions; do |
8358 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8359 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8360 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8361 | break 2 |
8362 | fi | |
8363 | done | |
81ecdfbb RW |
8364 | done |
8365 | IFS=$as_save_IFS | |
9a819804 AO |
8366 | |
8367 | fi | |
8368 | fi | |
8369 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8370 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
8371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8372 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 8373 | else |
81ecdfbb RW |
8374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8375 | $as_echo "no" >&6; } | |
9a819804 AO |
8376 | fi |
8377 | ||
81ecdfbb | 8378 | |
9a819804 AO |
8379 | done |
8380 | fi | |
8381 | ||
8382 | for ncn_progname in dlltool; do | |
05cbd757 PB |
8383 | if test -n "$ncn_tool_prefix"; then |
8384 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8385 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8387 | $as_echo_n "checking for $ac_word... " >&6; } | |
8388 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8389 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8390 | else |
8391 | if test -n "$DLLTOOL"; then | |
8392 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8393 | else | |
c6b750e1 DJ |
8394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8395 | for as_dir in $PATH | |
8396 | do | |
8397 | IFS=$as_save_IFS | |
8398 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8399 | for ac_exec_ext in '' $ac_executable_extensions; do |
8400 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8401 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8402 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8403 | break 2 |
8404 | fi | |
8405 | done | |
81ecdfbb RW |
8406 | done |
8407 | IFS=$as_save_IFS | |
c6b750e1 | 8408 | |
859789af AC |
8409 | fi |
8410 | fi | |
c6b750e1 | 8411 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 8412 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8414 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8415 | else |
81ecdfbb RW |
8416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8417 | $as_echo "no" >&6; } | |
859789af AC |
8418 | fi |
8419 | ||
81ecdfbb | 8420 | |
05cbd757 PB |
8421 | fi |
8422 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8423 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8424 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8426 | $as_echo_n "checking for $ac_word... " >&6; } | |
8427 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8428 | $as_echo_n "(cached) " >&6 | |
859789af | 8429 | else |
05cbd757 PB |
8430 | if test -n "$DLLTOOL"; then |
8431 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 8432 | else |
c6b750e1 DJ |
8433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8434 | for as_dir in $PATH | |
8435 | do | |
8436 | IFS=$as_save_IFS | |
8437 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8438 | for ac_exec_ext in '' $ac_executable_extensions; do |
8439 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8440 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8441 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8442 | break 2 |
8443 | fi | |
8444 | done | |
81ecdfbb RW |
8445 | done |
8446 | IFS=$as_save_IFS | |
c6b750e1 | 8447 | |
859789af AC |
8448 | fi |
8449 | fi | |
c6b750e1 | 8450 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 8451 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8453 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8454 | else |
81ecdfbb RW |
8455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8456 | $as_echo "no" >&6; } | |
859789af | 8457 | fi |
c6b750e1 | 8458 | |
81ecdfbb | 8459 | |
05cbd757 PB |
8460 | fi |
8461 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8462 | done | |
8463 | ||
8464 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8465 | set dummy dlltool | |
8466 | if test $build = $host ; then | |
8467 | DLLTOOL="$2" | |
859789af | 8468 | else |
05cbd757 | 8469 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 8470 | fi |
859789af AC |
8471 | fi |
8472 | ||
9a819804 AO |
8473 | |
8474 | ||
8475 | if test -n "$LD"; then | |
8476 | ac_cv_prog_LD=$LD | |
8477 | elif test -n "$ac_cv_prog_LD"; then | |
8478 | LD=$ac_cv_prog_LD | |
8479 | fi | |
8480 | ||
8481 | if test -n "$ac_cv_prog_LD"; then | |
8482 | for ncn_progname in ld; do | |
8483 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8484 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8486 | $as_echo_n "checking for $ac_word... " >&6; } | |
8487 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8488 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8489 | else |
8490 | if test -n "$LD"; then | |
8491 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8492 | else | |
8493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8494 | for as_dir in $PATH | |
8495 | do | |
8496 | IFS=$as_save_IFS | |
8497 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8498 | for ac_exec_ext in '' $ac_executable_extensions; do |
8499 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8500 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8501 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8502 | break 2 |
8503 | fi | |
8504 | done | |
81ecdfbb RW |
8505 | done |
8506 | IFS=$as_save_IFS | |
9a819804 AO |
8507 | |
8508 | fi | |
8509 | fi | |
8510 | LD=$ac_cv_prog_LD | |
8511 | if test -n "$LD"; then | |
81ecdfbb RW |
8512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8513 | $as_echo "$LD" >&6; } | |
9a819804 | 8514 | else |
81ecdfbb RW |
8515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8516 | $as_echo "no" >&6; } | |
9a819804 AO |
8517 | fi |
8518 | ||
81ecdfbb | 8519 | |
9a819804 AO |
8520 | done |
8521 | fi | |
8522 | ||
8523 | for ncn_progname in ld; do | |
05cbd757 PB |
8524 | if test -n "$ncn_tool_prefix"; then |
8525 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8526 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8528 | $as_echo_n "checking for $ac_word... " >&6; } | |
8529 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8530 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8531 | else |
8532 | if test -n "$LD"; then | |
8533 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8534 | else | |
c6b750e1 DJ |
8535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8536 | for as_dir in $PATH | |
8537 | do | |
8538 | IFS=$as_save_IFS | |
8539 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8540 | for ac_exec_ext in '' $ac_executable_extensions; do |
8541 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8542 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8544 | break 2 |
8545 | fi | |
8546 | done | |
81ecdfbb RW |
8547 | done |
8548 | IFS=$as_save_IFS | |
c6b750e1 | 8549 | |
859789af AC |
8550 | fi |
8551 | fi | |
c6b750e1 | 8552 | LD=$ac_cv_prog_LD |
859789af | 8553 | if test -n "$LD"; then |
81ecdfbb RW |
8554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8555 | $as_echo "$LD" >&6; } | |
859789af | 8556 | else |
81ecdfbb RW |
8557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8558 | $as_echo "no" >&6; } | |
859789af AC |
8559 | fi |
8560 | ||
81ecdfbb | 8561 | |
05cbd757 PB |
8562 | fi |
8563 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8564 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8565 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8567 | $as_echo_n "checking for $ac_word... " >&6; } | |
8568 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8569 | $as_echo_n "(cached) " >&6 | |
859789af | 8570 | else |
05cbd757 PB |
8571 | if test -n "$LD"; then |
8572 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 8573 | else |
c6b750e1 DJ |
8574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8575 | for as_dir in $PATH | |
8576 | do | |
8577 | IFS=$as_save_IFS | |
8578 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8579 | for ac_exec_ext in '' $ac_executable_extensions; do |
8580 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8581 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8582 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8583 | break 2 |
8584 | fi | |
8585 | done | |
81ecdfbb RW |
8586 | done |
8587 | IFS=$as_save_IFS | |
c6b750e1 | 8588 | |
859789af AC |
8589 | fi |
8590 | fi | |
c6b750e1 | 8591 | LD=$ac_cv_prog_LD |
05cbd757 | 8592 | if test -n "$LD"; then |
81ecdfbb RW |
8593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8594 | $as_echo "$LD" >&6; } | |
859789af | 8595 | else |
81ecdfbb RW |
8596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8597 | $as_echo "no" >&6; } | |
859789af | 8598 | fi |
c6b750e1 | 8599 | |
81ecdfbb | 8600 | |
05cbd757 PB |
8601 | fi |
8602 | test -n "$ac_cv_prog_LD" && break | |
8603 | done | |
8604 | ||
8605 | if test -z "$ac_cv_prog_LD" ; then | |
8606 | set dummy ld | |
8607 | if test $build = $host ; then | |
8608 | LD="$2" | |
859789af | 8609 | else |
05cbd757 | 8610 | LD="${ncn_tool_prefix}$2" |
859789af | 8611 | fi |
859789af AC |
8612 | fi |
8613 | ||
9a819804 AO |
8614 | |
8615 | ||
8616 | if test -n "$LIPO"; then | |
8617 | ac_cv_prog_LIPO=$LIPO | |
8618 | elif test -n "$ac_cv_prog_LIPO"; then | |
8619 | LIPO=$ac_cv_prog_LIPO | |
8620 | fi | |
8621 | ||
8622 | if test -n "$ac_cv_prog_LIPO"; then | |
8623 | for ncn_progname in lipo; do | |
8624 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8625 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8627 | $as_echo_n "checking for $ac_word... " >&6; } | |
8628 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8629 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8630 | else |
8631 | if test -n "$LIPO"; then | |
8632 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8633 | else | |
8634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8635 | for as_dir in $PATH | |
8636 | do | |
8637 | IFS=$as_save_IFS | |
8638 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8639 | for ac_exec_ext in '' $ac_executable_extensions; do |
8640 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8641 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8642 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8643 | break 2 |
8644 | fi | |
8645 | done | |
81ecdfbb RW |
8646 | done |
8647 | IFS=$as_save_IFS | |
9a819804 AO |
8648 | |
8649 | fi | |
8650 | fi | |
8651 | LIPO=$ac_cv_prog_LIPO | |
8652 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8654 | $as_echo "$LIPO" >&6; } | |
9a819804 | 8655 | else |
81ecdfbb RW |
8656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8657 | $as_echo "no" >&6; } | |
9a819804 AO |
8658 | fi |
8659 | ||
81ecdfbb | 8660 | |
9a819804 AO |
8661 | done |
8662 | fi | |
8663 | ||
8664 | for ncn_progname in lipo; do | |
be01d343 PB |
8665 | if test -n "$ncn_tool_prefix"; then |
8666 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8667 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8669 | $as_echo_n "checking for $ac_word... " >&6; } | |
8670 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8671 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8672 | else |
8673 | if test -n "$LIPO"; then | |
8674 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8675 | else | |
c6b750e1 DJ |
8676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8677 | for as_dir in $PATH | |
8678 | do | |
8679 | IFS=$as_save_IFS | |
8680 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8681 | for ac_exec_ext in '' $ac_executable_extensions; do |
8682 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8683 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8685 | break 2 |
8686 | fi | |
8687 | done | |
81ecdfbb RW |
8688 | done |
8689 | IFS=$as_save_IFS | |
c6b750e1 | 8690 | |
be01d343 PB |
8691 | fi |
8692 | fi | |
c6b750e1 | 8693 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8694 | if test -n "$LIPO"; then |
81ecdfbb RW |
8695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8696 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8697 | else |
81ecdfbb RW |
8698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8699 | $as_echo "no" >&6; } | |
be01d343 PB |
8700 | fi |
8701 | ||
81ecdfbb | 8702 | |
be01d343 PB |
8703 | fi |
8704 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8705 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8706 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8708 | $as_echo_n "checking for $ac_word... " >&6; } | |
8709 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8710 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8711 | else |
8712 | if test -n "$LIPO"; then | |
8713 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8714 | else | |
c6b750e1 DJ |
8715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8716 | for as_dir in $PATH | |
8717 | do | |
8718 | IFS=$as_save_IFS | |
8719 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8720 | for ac_exec_ext in '' $ac_executable_extensions; do |
8721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8722 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8724 | break 2 |
8725 | fi | |
8726 | done | |
81ecdfbb RW |
8727 | done |
8728 | IFS=$as_save_IFS | |
c6b750e1 | 8729 | |
be01d343 PB |
8730 | fi |
8731 | fi | |
c6b750e1 | 8732 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8733 | if test -n "$LIPO"; then |
81ecdfbb RW |
8734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8735 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8736 | else |
81ecdfbb RW |
8737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8738 | $as_echo "no" >&6; } | |
be01d343 | 8739 | fi |
c6b750e1 | 8740 | |
81ecdfbb | 8741 | |
be01d343 PB |
8742 | fi |
8743 | test -n "$ac_cv_prog_LIPO" && break | |
8744 | done | |
8745 | ||
8746 | if test -z "$ac_cv_prog_LIPO" ; then | |
8747 | set dummy lipo | |
8748 | if test $build = $host ; then | |
8749 | LIPO="$2" | |
8750 | else | |
8751 | LIPO="${ncn_tool_prefix}$2" | |
8752 | fi | |
8753 | fi | |
8754 | ||
9a819804 AO |
8755 | |
8756 | ||
8757 | if test -n "$NM"; then | |
8758 | ac_cv_prog_NM=$NM | |
8759 | elif test -n "$ac_cv_prog_NM"; then | |
8760 | NM=$ac_cv_prog_NM | |
8761 | fi | |
8762 | ||
8763 | if test -n "$ac_cv_prog_NM"; then | |
8764 | for ncn_progname in nm; do | |
8765 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8766 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8768 | $as_echo_n "checking for $ac_word... " >&6; } | |
8769 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8770 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8771 | else |
8772 | if test -n "$NM"; then | |
8773 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8774 | else | |
c6b750e1 DJ |
8775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8776 | for as_dir in $PATH | |
8777 | do | |
8778 | IFS=$as_save_IFS | |
8779 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8780 | for ac_exec_ext in '' $ac_executable_extensions; do |
8781 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8782 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8784 | break 2 |
8785 | fi | |
8786 | done | |
81ecdfbb RW |
8787 | done |
8788 | IFS=$as_save_IFS | |
c6b750e1 | 8789 | |
859789af AC |
8790 | fi |
8791 | fi | |
c6b750e1 | 8792 | NM=$ac_cv_prog_NM |
859789af | 8793 | if test -n "$NM"; then |
81ecdfbb RW |
8794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8795 | $as_echo "$NM" >&6; } | |
859789af | 8796 | else |
81ecdfbb RW |
8797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8798 | $as_echo "no" >&6; } | |
859789af AC |
8799 | fi |
8800 | ||
81ecdfbb | 8801 | |
9a819804 AO |
8802 | done |
8803 | fi | |
8804 | ||
8805 | for ncn_progname in nm; do | |
8806 | if test -n "$ncn_tool_prefix"; then | |
8807 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8808 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8810 | $as_echo_n "checking for $ac_word... " >&6; } | |
8811 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8812 | $as_echo_n "(cached) " >&6 | |
859789af | 8813 | else |
05cbd757 PB |
8814 | if test -n "$NM"; then |
8815 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 8816 | else |
c6b750e1 DJ |
8817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8818 | for as_dir in $PATH | |
8819 | do | |
8820 | IFS=$as_save_IFS | |
8821 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8822 | for ac_exec_ext in '' $ac_executable_extensions; do |
8823 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8824 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8826 | break 2 |
8827 | fi | |
8828 | done | |
81ecdfbb RW |
8829 | done |
8830 | IFS=$as_save_IFS | |
c6b750e1 | 8831 | |
859789af AC |
8832 | fi |
8833 | fi | |
c6b750e1 | 8834 | NM=$ac_cv_prog_NM |
05cbd757 | 8835 | if test -n "$NM"; then |
81ecdfbb RW |
8836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8837 | $as_echo "$NM" >&6; } | |
859789af | 8838 | else |
81ecdfbb RW |
8839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8840 | $as_echo "no" >&6; } | |
859789af | 8841 | fi |
c6b750e1 | 8842 | |
81ecdfbb | 8843 | |
05cbd757 | 8844 | fi |
9a819804 AO |
8845 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8846 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8847 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8849 | $as_echo_n "checking for $ac_word... " >&6; } | |
8850 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8851 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8852 | else |
8853 | if test -n "$NM"; then | |
8854 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8855 | else | |
8856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8857 | for as_dir in $PATH | |
8858 | do | |
8859 | IFS=$as_save_IFS | |
8860 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8861 | for ac_exec_ext in '' $ac_executable_extensions; do |
8862 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8863 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8864 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8865 | break 2 |
8866 | fi | |
8867 | done | |
81ecdfbb RW |
8868 | done |
8869 | IFS=$as_save_IFS | |
9a819804 AO |
8870 | |
8871 | fi | |
8872 | fi | |
8873 | NM=$ac_cv_prog_NM | |
8874 | if test -n "$NM"; then | |
81ecdfbb RW |
8875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8876 | $as_echo "$NM" >&6; } | |
9a819804 | 8877 | else |
81ecdfbb RW |
8878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8879 | $as_echo "no" >&6; } | |
9a819804 AO |
8880 | fi |
8881 | ||
81ecdfbb | 8882 | |
9a819804 AO |
8883 | fi |
8884 | test -n "$ac_cv_prog_NM" && break | |
8885 | done | |
8886 | ||
8887 | if test -z "$ac_cv_prog_NM" ; then | |
8888 | set dummy nm | |
8889 | if test $build = $host ; then | |
8890 | NM="$2" | |
8891 | else | |
8892 | NM="${ncn_tool_prefix}$2" | |
8893 | fi | |
8894 | fi | |
8895 | ||
8896 | ||
8897 | ||
8898 | if test -n "$RANLIB"; then | |
8899 | ac_cv_prog_RANLIB=$RANLIB | |
8900 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8901 | RANLIB=$ac_cv_prog_RANLIB | |
8902 | fi | |
8903 | ||
8904 | if test -n "$ac_cv_prog_RANLIB"; then | |
8905 | for ncn_progname in ranlib; do | |
8906 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8907 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8909 | $as_echo_n "checking for $ac_word... " >&6; } | |
8910 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8911 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8912 | else |
8913 | if test -n "$RANLIB"; then | |
8914 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8915 | else | |
8916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8917 | for as_dir in $PATH | |
8918 | do | |
8919 | IFS=$as_save_IFS | |
8920 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8921 | for ac_exec_ext in '' $ac_executable_extensions; do |
8922 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8923 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 8924 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8925 | break 2 |
8926 | fi | |
8927 | done | |
81ecdfbb RW |
8928 | done |
8929 | IFS=$as_save_IFS | |
9a819804 AO |
8930 | |
8931 | fi | |
8932 | fi | |
8933 | RANLIB=$ac_cv_prog_RANLIB | |
8934 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
8935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8936 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 8937 | else |
81ecdfbb RW |
8938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8939 | $as_echo "no" >&6; } | |
9a819804 AO |
8940 | fi |
8941 | ||
81ecdfbb | 8942 | |
9a819804 AO |
8943 | done |
8944 | fi | |
859789af | 8945 | |
9a819804 | 8946 | for ncn_progname in ranlib; do |
05cbd757 PB |
8947 | if test -n "$ncn_tool_prefix"; then |
8948 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8949 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8951 | $as_echo_n "checking for $ac_word... " >&6; } | |
8952 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8953 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8954 | else |
8955 | if test -n "$RANLIB"; then | |
8956 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8957 | else | |
c6b750e1 DJ |
8958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8959 | for as_dir in $PATH | |
8960 | do | |
8961 | IFS=$as_save_IFS | |
8962 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8963 | for ac_exec_ext in '' $ac_executable_extensions; do |
8964 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8965 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8966 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8967 | break 2 |
8968 | fi | |
8969 | done | |
81ecdfbb RW |
8970 | done |
8971 | IFS=$as_save_IFS | |
c6b750e1 | 8972 | |
859789af AC |
8973 | fi |
8974 | fi | |
c6b750e1 | 8975 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 8976 | if test -n "$RANLIB"; then |
81ecdfbb RW |
8977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8978 | $as_echo "$RANLIB" >&6; } | |
859789af | 8979 | else |
81ecdfbb RW |
8980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8981 | $as_echo "no" >&6; } | |
859789af AC |
8982 | fi |
8983 | ||
81ecdfbb | 8984 | |
05cbd757 PB |
8985 | fi |
8986 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
8987 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8988 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8990 | $as_echo_n "checking for $ac_word... " >&6; } | |
8991 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8992 | $as_echo_n "(cached) " >&6 | |
859789af | 8993 | else |
05cbd757 PB |
8994 | if test -n "$RANLIB"; then |
8995 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 8996 | else |
c6b750e1 DJ |
8997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8998 | for as_dir in $PATH | |
8999 | do | |
9000 | IFS=$as_save_IFS | |
9001 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9002 | for ac_exec_ext in '' $ac_executable_extensions; do |
9003 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9004 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 9005 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9006 | break 2 |
9007 | fi | |
9008 | done | |
81ecdfbb RW |
9009 | done |
9010 | IFS=$as_save_IFS | |
c6b750e1 | 9011 | |
859789af AC |
9012 | fi |
9013 | fi | |
c6b750e1 | 9014 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 9015 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9017 | $as_echo "$RANLIB" >&6; } | |
859789af | 9018 | else |
81ecdfbb RW |
9019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9020 | $as_echo "no" >&6; } | |
859789af | 9021 | fi |
c6b750e1 | 9022 | |
81ecdfbb | 9023 | |
859789af | 9024 | fi |
05cbd757 PB |
9025 | test -n "$ac_cv_prog_RANLIB" && break |
9026 | done | |
9027 | ||
9028 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 9029 | RANLIB="true" |
859789af AC |
9030 | fi |
9031 | ||
9a819804 AO |
9032 | |
9033 | ||
9034 | if test -n "$STRIP"; then | |
9035 | ac_cv_prog_STRIP=$STRIP | |
9036 | elif test -n "$ac_cv_prog_STRIP"; then | |
9037 | STRIP=$ac_cv_prog_STRIP | |
9038 | fi | |
9039 | ||
9040 | if test -n "$ac_cv_prog_STRIP"; then | |
9041 | for ncn_progname in strip; do | |
9042 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9043 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9045 | $as_echo_n "checking for $ac_word... " >&6; } | |
9046 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9047 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9048 | else |
9049 | if test -n "$STRIP"; then | |
9050 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9051 | else | |
9052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9053 | for as_dir in $PATH | |
9054 | do | |
9055 | IFS=$as_save_IFS | |
9056 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9057 | for ac_exec_ext in '' $ac_executable_extensions; do |
9058 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9059 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9061 | break 2 |
9062 | fi | |
9063 | done | |
81ecdfbb RW |
9064 | done |
9065 | IFS=$as_save_IFS | |
9a819804 AO |
9066 | |
9067 | fi | |
9068 | fi | |
9069 | STRIP=$ac_cv_prog_STRIP | |
9070 | if test -n "$STRIP"; then | |
81ecdfbb RW |
9071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9072 | $as_echo "$STRIP" >&6; } | |
9a819804 | 9073 | else |
81ecdfbb RW |
9074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9075 | $as_echo "no" >&6; } | |
9a819804 AO |
9076 | fi |
9077 | ||
81ecdfbb | 9078 | |
9a819804 AO |
9079 | done |
9080 | fi | |
9081 | ||
9082 | for ncn_progname in strip; do | |
be01d343 PB |
9083 | if test -n "$ncn_tool_prefix"; then |
9084 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9085 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9087 | $as_echo_n "checking for $ac_word... " >&6; } | |
9088 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9089 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
9090 | else |
9091 | if test -n "$STRIP"; then | |
9092 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9093 | else | |
c6b750e1 DJ |
9094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9095 | for as_dir in $PATH | |
9096 | do | |
9097 | IFS=$as_save_IFS | |
9098 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9099 | for ac_exec_ext in '' $ac_executable_extensions; do |
9100 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9101 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9102 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9103 | break 2 |
9104 | fi | |
9105 | done | |
81ecdfbb RW |
9106 | done |
9107 | IFS=$as_save_IFS | |
c6b750e1 | 9108 | |
be01d343 PB |
9109 | fi |
9110 | fi | |
c6b750e1 | 9111 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9112 | if test -n "$STRIP"; then |
81ecdfbb RW |
9113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9114 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9115 | else |
81ecdfbb RW |
9116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9117 | $as_echo "no" >&6; } | |
be01d343 PB |
9118 | fi |
9119 | ||
81ecdfbb | 9120 | |
be01d343 PB |
9121 | fi |
9122 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9123 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9124 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9126 | $as_echo_n "checking for $ac_word... " >&6; } | |
9127 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9128 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
9129 | else |
9130 | if test -n "$STRIP"; then | |
9131 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9132 | else | |
c6b750e1 DJ |
9133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9134 | for as_dir in $PATH | |
9135 | do | |
9136 | IFS=$as_save_IFS | |
9137 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9138 | for ac_exec_ext in '' $ac_executable_extensions; do |
9139 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9140 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9141 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9142 | break 2 |
9143 | fi | |
9144 | done | |
81ecdfbb RW |
9145 | done |
9146 | IFS=$as_save_IFS | |
c6b750e1 | 9147 | |
be01d343 PB |
9148 | fi |
9149 | fi | |
c6b750e1 | 9150 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9151 | if test -n "$STRIP"; then |
81ecdfbb RW |
9152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9153 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9154 | else |
81ecdfbb RW |
9155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9156 | $as_echo "no" >&6; } | |
be01d343 | 9157 | fi |
c6b750e1 | 9158 | |
81ecdfbb | 9159 | |
be01d343 PB |
9160 | fi |
9161 | test -n "$ac_cv_prog_STRIP" && break | |
9162 | done | |
9163 | ||
9164 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 9165 | STRIP="true" |
be01d343 PB |
9166 | fi |
9167 | ||
9a819804 AO |
9168 | |
9169 | ||
9170 | if test -n "$WINDRES"; then | |
9171 | ac_cv_prog_WINDRES=$WINDRES | |
9172 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9173 | WINDRES=$ac_cv_prog_WINDRES | |
9174 | fi | |
9175 | ||
9176 | if test -n "$ac_cv_prog_WINDRES"; then | |
9177 | for ncn_progname in windres; do | |
9178 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9179 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9181 | $as_echo_n "checking for $ac_word... " >&6; } | |
9182 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9183 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9184 | else |
9185 | if test -n "$WINDRES"; then | |
9186 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9187 | else | |
9188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9189 | for as_dir in $PATH | |
9190 | do | |
9191 | IFS=$as_save_IFS | |
9192 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9193 | for ac_exec_ext in '' $ac_executable_extensions; do |
9194 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9195 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9196 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9197 | break 2 |
9198 | fi | |
9199 | done | |
81ecdfbb RW |
9200 | done |
9201 | IFS=$as_save_IFS | |
9a819804 AO |
9202 | |
9203 | fi | |
9204 | fi | |
9205 | WINDRES=$ac_cv_prog_WINDRES | |
9206 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
9207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9208 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 9209 | else |
81ecdfbb RW |
9210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9211 | $as_echo "no" >&6; } | |
9a819804 AO |
9212 | fi |
9213 | ||
81ecdfbb | 9214 | |
9a819804 AO |
9215 | done |
9216 | fi | |
9217 | ||
9218 | for ncn_progname in windres; do | |
05cbd757 PB |
9219 | if test -n "$ncn_tool_prefix"; then |
9220 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9221 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9223 | $as_echo_n "checking for $ac_word... " >&6; } | |
9224 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9225 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9226 | else |
9227 | if test -n "$WINDRES"; then | |
9228 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9229 | else | |
c6b750e1 DJ |
9230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9231 | for as_dir in $PATH | |
9232 | do | |
9233 | IFS=$as_save_IFS | |
9234 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9235 | for ac_exec_ext in '' $ac_executable_extensions; do |
9236 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9237 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9238 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9239 | break 2 |
9240 | fi | |
9241 | done | |
81ecdfbb RW |
9242 | done |
9243 | IFS=$as_save_IFS | |
c6b750e1 | 9244 | |
859789af AC |
9245 | fi |
9246 | fi | |
c6b750e1 | 9247 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 9248 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9250 | $as_echo "$WINDRES" >&6; } | |
859789af | 9251 | else |
81ecdfbb RW |
9252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9253 | $as_echo "no" >&6; } | |
859789af AC |
9254 | fi |
9255 | ||
81ecdfbb | 9256 | |
05cbd757 PB |
9257 | fi |
9258 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9259 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9260 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9262 | $as_echo_n "checking for $ac_word... " >&6; } | |
9263 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9264 | $as_echo_n "(cached) " >&6 | |
859789af | 9265 | else |
05cbd757 PB |
9266 | if test -n "$WINDRES"; then |
9267 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 9268 | else |
c6b750e1 DJ |
9269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9270 | for as_dir in $PATH | |
9271 | do | |
9272 | IFS=$as_save_IFS | |
9273 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9274 | for ac_exec_ext in '' $ac_executable_extensions; do |
9275 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9276 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9277 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9278 | break 2 |
9279 | fi | |
9280 | done | |
81ecdfbb RW |
9281 | done |
9282 | IFS=$as_save_IFS | |
c6b750e1 | 9283 | |
859789af AC |
9284 | fi |
9285 | fi | |
c6b750e1 | 9286 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 9287 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9289 | $as_echo "$WINDRES" >&6; } | |
859789af | 9290 | else |
81ecdfbb RW |
9291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9292 | $as_echo "no" >&6; } | |
859789af | 9293 | fi |
c6b750e1 | 9294 | |
81ecdfbb | 9295 | |
05cbd757 PB |
9296 | fi |
9297 | test -n "$ac_cv_prog_WINDRES" && break | |
9298 | done | |
9299 | ||
9300 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9301 | set dummy windres | |
9302 | if test $build = $host ; then | |
9303 | WINDRES="$2" | |
859789af | 9304 | else |
05cbd757 | 9305 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 9306 | fi |
859789af AC |
9307 | fi |
9308 | ||
9a819804 AO |
9309 | |
9310 | ||
0c24b341 NC |
9311 | if test -n "$WINDMC"; then |
9312 | ac_cv_prog_WINDMC=$WINDMC | |
9313 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9314 | WINDMC=$ac_cv_prog_WINDMC | |
9315 | fi | |
9316 | ||
9317 | if test -n "$ac_cv_prog_WINDMC"; then | |
9318 | for ncn_progname in windmc; do | |
9319 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9320 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9322 | $as_echo_n "checking for $ac_word... " >&6; } | |
9323 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9324 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9325 | else |
9326 | if test -n "$WINDMC"; then | |
9327 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9328 | else | |
9329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9330 | for as_dir in $PATH | |
9331 | do | |
9332 | IFS=$as_save_IFS | |
9333 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9334 | for ac_exec_ext in '' $ac_executable_extensions; do |
9335 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9336 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9337 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9338 | break 2 |
9339 | fi | |
9340 | done | |
81ecdfbb RW |
9341 | done |
9342 | IFS=$as_save_IFS | |
0c24b341 NC |
9343 | |
9344 | fi | |
9345 | fi | |
9346 | WINDMC=$ac_cv_prog_WINDMC | |
9347 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9349 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9350 | else |
81ecdfbb RW |
9351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9352 | $as_echo "no" >&6; } | |
0c24b341 NC |
9353 | fi |
9354 | ||
81ecdfbb | 9355 | |
0c24b341 NC |
9356 | done |
9357 | fi | |
9358 | ||
9359 | for ncn_progname in windmc; do | |
9360 | if test -n "$ncn_tool_prefix"; then | |
9361 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9362 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9364 | $as_echo_n "checking for $ac_word... " >&6; } | |
9365 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9366 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9367 | else |
9368 | if test -n "$WINDMC"; then | |
9369 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9370 | else | |
9371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9372 | for as_dir in $PATH | |
9373 | do | |
9374 | IFS=$as_save_IFS | |
9375 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9376 | for ac_exec_ext in '' $ac_executable_extensions; do |
9377 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9378 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9379 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9380 | break 2 |
9381 | fi | |
9382 | done | |
81ecdfbb RW |
9383 | done |
9384 | IFS=$as_save_IFS | |
0c24b341 NC |
9385 | |
9386 | fi | |
9387 | fi | |
9388 | WINDMC=$ac_cv_prog_WINDMC | |
9389 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9391 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9392 | else |
81ecdfbb RW |
9393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9394 | $as_echo "no" >&6; } | |
0c24b341 NC |
9395 | fi |
9396 | ||
81ecdfbb | 9397 | |
0c24b341 NC |
9398 | fi |
9399 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9400 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9401 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9403 | $as_echo_n "checking for $ac_word... " >&6; } | |
9404 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9405 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9406 | else |
9407 | if test -n "$WINDMC"; then | |
9408 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9409 | else | |
9410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9411 | for as_dir in $PATH | |
9412 | do | |
9413 | IFS=$as_save_IFS | |
9414 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9415 | for ac_exec_ext in '' $ac_executable_extensions; do |
9416 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9417 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9418 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9419 | break 2 |
9420 | fi | |
9421 | done | |
81ecdfbb RW |
9422 | done |
9423 | IFS=$as_save_IFS | |
0c24b341 NC |
9424 | |
9425 | fi | |
9426 | fi | |
9427 | WINDMC=$ac_cv_prog_WINDMC | |
9428 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9430 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9431 | else |
81ecdfbb RW |
9432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9433 | $as_echo "no" >&6; } | |
0c24b341 NC |
9434 | fi |
9435 | ||
81ecdfbb | 9436 | |
0c24b341 NC |
9437 | fi |
9438 | test -n "$ac_cv_prog_WINDMC" && break | |
9439 | done | |
9440 | ||
9441 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9442 | set dummy windmc | |
9443 | if test $build = $host ; then | |
9444 | WINDMC="$2" | |
9445 | else | |
9446 | WINDMC="${ncn_tool_prefix}$2" | |
9447 | fi | |
9448 | fi | |
9449 | ||
9450 | ||
9451 | ||
9a819804 AO |
9452 | if test -n "$OBJCOPY"; then |
9453 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9454 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9455 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9456 | fi | |
9457 | ||
9458 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9459 | for ncn_progname in objcopy; do | |
9460 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9461 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9463 | $as_echo_n "checking for $ac_word... " >&6; } | |
9464 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9465 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9466 | else |
9467 | if test -n "$OBJCOPY"; then | |
9468 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9469 | else | |
9470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9471 | for as_dir in $PATH | |
9472 | do | |
9473 | IFS=$as_save_IFS | |
9474 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9475 | for ac_exec_ext in '' $ac_executable_extensions; do |
9476 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9477 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9478 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9479 | break 2 |
9480 | fi | |
9481 | done | |
81ecdfbb RW |
9482 | done |
9483 | IFS=$as_save_IFS | |
9a819804 AO |
9484 | |
9485 | fi | |
9486 | fi | |
9487 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9488 | if test -n "$OBJCOPY"; then | |
81ecdfbb RW |
9489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9490 | $as_echo "$OBJCOPY" >&6; } | |
9a819804 | 9491 | else |
81ecdfbb RW |
9492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9493 | $as_echo "no" >&6; } | |
9a819804 AO |
9494 | fi |
9495 | ||
81ecdfbb | 9496 | |
9a819804 AO |
9497 | done |
9498 | fi | |
9499 | ||
9500 | for ncn_progname in objcopy; do | |
05cbd757 PB |
9501 | if test -n "$ncn_tool_prefix"; then |
9502 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9503 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9505 | $as_echo_n "checking for $ac_word... " >&6; } | |
9506 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9507 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9508 | else |
9509 | if test -n "$OBJCOPY"; then | |
9510 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9511 | else | |
c6b750e1 DJ |
9512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9513 | for as_dir in $PATH | |
9514 | do | |
9515 | IFS=$as_save_IFS | |
9516 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9517 | for ac_exec_ext in '' $ac_executable_extensions; do |
9518 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9519 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9520 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9521 | break 2 |
9522 | fi | |
9523 | done | |
81ecdfbb RW |
9524 | done |
9525 | IFS=$as_save_IFS | |
c6b750e1 | 9526 | |
859789af AC |
9527 | fi |
9528 | fi | |
c6b750e1 | 9529 | OBJCOPY=$ac_cv_prog_OBJCOPY |
859789af | 9530 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9532 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9533 | else |
81ecdfbb RW |
9534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9535 | $as_echo "no" >&6; } | |
859789af AC |
9536 | fi |
9537 | ||
81ecdfbb | 9538 | |
05cbd757 PB |
9539 | fi |
9540 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9541 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9542 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9544 | $as_echo_n "checking for $ac_word... " >&6; } | |
9545 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9546 | $as_echo_n "(cached) " >&6 | |
859789af | 9547 | else |
05cbd757 PB |
9548 | if test -n "$OBJCOPY"; then |
9549 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
859789af | 9550 | else |
c6b750e1 DJ |
9551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9552 | for as_dir in $PATH | |
9553 | do | |
9554 | IFS=$as_save_IFS | |
9555 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9556 | for ac_exec_ext in '' $ac_executable_extensions; do |
9557 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9558 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9559 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9560 | break 2 |
9561 | fi | |
9562 | done | |
81ecdfbb RW |
9563 | done |
9564 | IFS=$as_save_IFS | |
c6b750e1 | 9565 | |
859789af AC |
9566 | fi |
9567 | fi | |
c6b750e1 | 9568 | OBJCOPY=$ac_cv_prog_OBJCOPY |
05cbd757 | 9569 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9571 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9572 | else |
81ecdfbb RW |
9573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9574 | $as_echo "no" >&6; } | |
859789af | 9575 | fi |
c6b750e1 | 9576 | |
81ecdfbb | 9577 | |
05cbd757 PB |
9578 | fi |
9579 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9580 | done | |
9581 | ||
9582 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9583 | set dummy objcopy | |
9584 | if test $build = $host ; then | |
9585 | OBJCOPY="$2" | |
859789af | 9586 | else |
05cbd757 | 9587 | OBJCOPY="${ncn_tool_prefix}$2" |
859789af | 9588 | fi |
859789af AC |
9589 | fi |
9590 | ||
9a819804 AO |
9591 | |
9592 | ||
9593 | if test -n "$OBJDUMP"; then | |
9594 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9595 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9596 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9597 | fi | |
9598 | ||
9599 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9600 | for ncn_progname in objdump; do | |
9601 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9602 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9604 | $as_echo_n "checking for $ac_word... " >&6; } | |
9605 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9606 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9607 | else |
9608 | if test -n "$OBJDUMP"; then | |
9609 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9610 | else | |
9611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9612 | for as_dir in $PATH | |
9613 | do | |
9614 | IFS=$as_save_IFS | |
9615 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9616 | for ac_exec_ext in '' $ac_executable_extensions; do |
9617 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9618 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9619 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9620 | break 2 |
9621 | fi | |
9622 | done | |
81ecdfbb RW |
9623 | done |
9624 | IFS=$as_save_IFS | |
9a819804 AO |
9625 | |
9626 | fi | |
9627 | fi | |
9628 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9629 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
9630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9631 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 9632 | else |
81ecdfbb RW |
9633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9634 | $as_echo "no" >&6; } | |
9a819804 AO |
9635 | fi |
9636 | ||
81ecdfbb | 9637 | |
9a819804 AO |
9638 | done |
9639 | fi | |
9640 | ||
9641 | for ncn_progname in objdump; do | |
05cbd757 PB |
9642 | if test -n "$ncn_tool_prefix"; then |
9643 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9644 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9646 | $as_echo_n "checking for $ac_word... " >&6; } | |
9647 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9648 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9649 | else |
9650 | if test -n "$OBJDUMP"; then | |
9651 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9652 | else | |
c6b750e1 DJ |
9653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9654 | for as_dir in $PATH | |
9655 | do | |
9656 | IFS=$as_save_IFS | |
9657 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9658 | for ac_exec_ext in '' $ac_executable_extensions; do |
9659 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9660 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9661 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9662 | break 2 |
9663 | fi | |
9664 | done | |
81ecdfbb RW |
9665 | done |
9666 | IFS=$as_save_IFS | |
c6b750e1 | 9667 | |
859789af AC |
9668 | fi |
9669 | fi | |
c6b750e1 | 9670 | OBJDUMP=$ac_cv_prog_OBJDUMP |
859789af | 9671 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9673 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9674 | else |
81ecdfbb RW |
9675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9676 | $as_echo "no" >&6; } | |
859789af AC |
9677 | fi |
9678 | ||
81ecdfbb | 9679 | |
05cbd757 PB |
9680 | fi |
9681 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9682 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9683 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9685 | $as_echo_n "checking for $ac_word... " >&6; } | |
9686 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9687 | $as_echo_n "(cached) " >&6 | |
859789af | 9688 | else |
05cbd757 PB |
9689 | if test -n "$OBJDUMP"; then |
9690 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 9691 | else |
c6b750e1 DJ |
9692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9693 | for as_dir in $PATH | |
9694 | do | |
9695 | IFS=$as_save_IFS | |
9696 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9697 | for ac_exec_ext in '' $ac_executable_extensions; do |
9698 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9699 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9701 | break 2 |
9702 | fi | |
9703 | done | |
81ecdfbb RW |
9704 | done |
9705 | IFS=$as_save_IFS | |
c6b750e1 | 9706 | |
859789af AC |
9707 | fi |
9708 | fi | |
c6b750e1 | 9709 | OBJDUMP=$ac_cv_prog_OBJDUMP |
05cbd757 | 9710 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9712 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9713 | else |
81ecdfbb RW |
9714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9715 | $as_echo "no" >&6; } | |
859789af | 9716 | fi |
c6b750e1 | 9717 | |
81ecdfbb | 9718 | |
05cbd757 PB |
9719 | fi |
9720 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9721 | done | |
9722 | ||
9723 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9724 | set dummy objdump | |
9725 | if test $build = $host ; then | |
9726 | OBJDUMP="$2" | |
859789af | 9727 | else |
05cbd757 | 9728 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 9729 | fi |
859789af AC |
9730 | fi |
9731 | ||
a0da8069 NN |
9732 | |
9733 | ||
b121d7d4 DD |
9734 | if test -n "$READELF"; then |
9735 | ac_cv_prog_READELF=$READELF | |
9736 | elif test -n "$ac_cv_prog_READELF"; then | |
9737 | READELF=$ac_cv_prog_READELF | |
9738 | fi | |
9739 | ||
9740 | if test -n "$ac_cv_prog_READELF"; then | |
9741 | for ncn_progname in readelf; do | |
9742 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9743 | set dummy ${ncn_progname}; ac_word=$2 | |
9744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9745 | $as_echo_n "checking for $ac_word... " >&6; } | |
9746 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9747 | $as_echo_n "(cached) " >&6 | |
9748 | else | |
9749 | if test -n "$READELF"; then | |
9750 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9751 | else | |
9752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9753 | for as_dir in $PATH | |
9754 | do | |
9755 | IFS=$as_save_IFS | |
9756 | test -z "$as_dir" && as_dir=. | |
9757 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9758 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9759 | ac_cv_prog_READELF="${ncn_progname}" | |
9760 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9761 | break 2 | |
9762 | fi | |
9763 | done | |
9764 | done | |
9765 | IFS=$as_save_IFS | |
9766 | ||
9767 | fi | |
9768 | fi | |
9769 | READELF=$ac_cv_prog_READELF | |
9770 | if test -n "$READELF"; then | |
9771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9772 | $as_echo "$READELF" >&6; } | |
9773 | else | |
9774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9775 | $as_echo "no" >&6; } | |
9776 | fi | |
9777 | ||
9778 | ||
9779 | done | |
9780 | fi | |
9781 | ||
9782 | for ncn_progname in readelf; do | |
9783 | if test -n "$ncn_tool_prefix"; then | |
9784 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9785 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9787 | $as_echo_n "checking for $ac_word... " >&6; } | |
9788 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9789 | $as_echo_n "(cached) " >&6 | |
9790 | else | |
9791 | if test -n "$READELF"; then | |
9792 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9793 | else | |
9794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9795 | for as_dir in $PATH | |
9796 | do | |
9797 | IFS=$as_save_IFS | |
9798 | test -z "$as_dir" && as_dir=. | |
9799 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9800 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9801 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" | |
9802 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9803 | break 2 | |
9804 | fi | |
9805 | done | |
9806 | done | |
9807 | IFS=$as_save_IFS | |
9808 | ||
9809 | fi | |
9810 | fi | |
9811 | READELF=$ac_cv_prog_READELF | |
9812 | if test -n "$READELF"; then | |
9813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9814 | $as_echo "$READELF" >&6; } | |
9815 | else | |
9816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9817 | $as_echo "no" >&6; } | |
9818 | fi | |
9819 | ||
9820 | ||
9821 | fi | |
9822 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9823 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9824 | set dummy ${ncn_progname}; ac_word=$2 | |
9825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9826 | $as_echo_n "checking for $ac_word... " >&6; } | |
9827 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9828 | $as_echo_n "(cached) " >&6 | |
9829 | else | |
9830 | if test -n "$READELF"; then | |
9831 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9832 | else | |
9833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9834 | for as_dir in $PATH | |
9835 | do | |
9836 | IFS=$as_save_IFS | |
9837 | test -z "$as_dir" && as_dir=. | |
9838 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9839 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9840 | ac_cv_prog_READELF="${ncn_progname}" | |
9841 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9842 | break 2 | |
9843 | fi | |
9844 | done | |
9845 | done | |
9846 | IFS=$as_save_IFS | |
9847 | ||
9848 | fi | |
9849 | fi | |
9850 | READELF=$ac_cv_prog_READELF | |
9851 | if test -n "$READELF"; then | |
9852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9853 | $as_echo "$READELF" >&6; } | |
9854 | else | |
9855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9856 | $as_echo "no" >&6; } | |
9857 | fi | |
9858 | ||
9859 | ||
9860 | fi | |
9861 | test -n "$ac_cv_prog_READELF" && break | |
9862 | done | |
9863 | ||
9864 | if test -z "$ac_cv_prog_READELF" ; then | |
9865 | set dummy readelf | |
9866 | if test $build = $host ; then | |
9867 | READELF="$2" | |
9868 | else | |
9869 | READELF="${ncn_tool_prefix}$2" | |
9870 | fi | |
9871 | fi | |
9872 | ||
9873 | ||
9874 | ||
a0da8069 NN |
9875 | |
9876 | ||
9877 | ||
be01d343 | 9878 | # Target tools. |
c6b750e1 | 9879 | |
81ecdfbb RW |
9880 | # Check whether --with-build-time-tools was given. |
9881 | if test "${with_build_time_tools+set}" = set; then : | |
9882 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
9883 | x/*) ;; |
9884 | *) | |
9885 | with_build_time_tools= | |
81ecdfbb RW |
9886 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9887 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
9888 | ;; |
9889 | esac | |
859789af | 9890 | else |
2429c060 | 9891 | with_build_time_tools= |
81ecdfbb RW |
9892 | fi |
9893 | ||
859789af | 9894 | |
9a819804 AO |
9895 | |
9896 | ||
9897 | if test -n "$CC_FOR_TARGET"; then | |
9898 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9899 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9900 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9901 | fi | |
9902 | ||
9903 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9904 | for ncn_progname in cc gcc; do | |
9905 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9906 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9908 | $as_echo_n "checking for $ac_word... " >&6; } | |
9909 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9910 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9911 | else |
9912 | if test -n "$CC_FOR_TARGET"; then | |
9913 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9914 | else | |
9915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9916 | for as_dir in $PATH | |
9917 | do | |
9918 | IFS=$as_save_IFS | |
9919 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9920 | for ac_exec_ext in '' $ac_executable_extensions; do |
9921 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9922 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9924 | break 2 |
9925 | fi | |
9926 | done | |
81ecdfbb RW |
9927 | done |
9928 | IFS=$as_save_IFS | |
9a819804 AO |
9929 | |
9930 | fi | |
9931 | fi | |
9932 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9933 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
9934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9935 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 9936 | else |
81ecdfbb RW |
9937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9938 | $as_echo "no" >&6; } | |
9a819804 AO |
9939 | fi |
9940 | ||
81ecdfbb | 9941 | |
9a819804 AO |
9942 | done |
9943 | fi | |
9944 | ||
9945 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 9946 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
9947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9948 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
9949 | if test -x $with_build_time_tools/${ncn_progname}; then |
9950 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
9951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9952 | $as_echo "yes" >&6; } | |
cac3d6c4 | 9953 | break |
2429c060 | 9954 | else |
81ecdfbb RW |
9955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9956 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
9957 | fi |
9958 | done | |
55db4b87 PB |
9959 | fi |
9960 | ||
2429c060 PB |
9961 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
9962 | for ncn_progname in cc gcc; do | |
9963 | if test -n "$ncn_target_tool_prefix"; then | |
9964 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9965 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9967 | $as_echo_n "checking for $ac_word... " >&6; } | |
9968 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9969 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
9970 | else |
9971 | if test -n "$CC_FOR_TARGET"; then | |
9972 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9973 | else | |
c6b750e1 DJ |
9974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9975 | for as_dir in $PATH | |
9976 | do | |
9977 | IFS=$as_save_IFS | |
9978 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9979 | for ac_exec_ext in '' $ac_executable_extensions; do |
9980 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9981 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 9982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9983 | break 2 |
9984 | fi | |
9985 | done | |
81ecdfbb RW |
9986 | done |
9987 | IFS=$as_save_IFS | |
c6b750e1 | 9988 | |
55db4b87 PB |
9989 | fi |
9990 | fi | |
c6b750e1 | 9991 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 9992 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
9993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9994 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 9995 | else |
81ecdfbb RW |
9996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9997 | $as_echo "no" >&6; } | |
55db4b87 PB |
9998 | fi |
9999 | ||
81ecdfbb | 10000 | |
2429c060 PB |
10001 | fi |
10002 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10003 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10004 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10006 | $as_echo_n "checking for $ac_word... " >&6; } | |
10007 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
10008 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10009 | else |
05cbd757 PB |
10010 | if test -n "$CC_FOR_TARGET"; then |
10011 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10012 | else |
c6b750e1 DJ |
10013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10014 | for as_dir in $PATH | |
10015 | do | |
10016 | IFS=$as_save_IFS | |
10017 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10018 | for ac_exec_ext in '' $ac_executable_extensions; do |
10019 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10020 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10021 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10022 | break 2 |
10023 | fi | |
10024 | done | |
81ecdfbb RW |
10025 | done |
10026 | IFS=$as_save_IFS | |
c6b750e1 | 10027 | |
55db4b87 PB |
10028 | fi |
10029 | fi | |
c6b750e1 | 10030 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 10031 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10033 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10034 | else |
81ecdfbb RW |
10035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10036 | $as_echo "no" >&6; } | |
55db4b87 | 10037 | fi |
c6b750e1 | 10038 | |
81ecdfbb | 10039 | |
2429c060 PB |
10040 | fi |
10041 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10042 | done | |
10043 | fi | |
c6b750e1 | 10044 | |
05cbd757 PB |
10045 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10046 | set dummy cc gcc | |
10047 | if test $build = $target ; then | |
10048 | CC_FOR_TARGET="$2" | |
55db4b87 | 10049 | else |
05cbd757 | 10050 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10051 | fi |
d3f5afc4 MS |
10052 | else |
10053 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
10054 | fi |
10055 | ||
9a819804 AO |
10056 | |
10057 | ||
10058 | if test -n "$CXX_FOR_TARGET"; then | |
10059 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10060 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10061 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10062 | fi | |
10063 | ||
10064 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10065 | for ncn_progname in c++ g++ cxx gxx; do | |
10066 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10067 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10069 | $as_echo_n "checking for $ac_word... " >&6; } | |
10070 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10071 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10072 | else |
10073 | if test -n "$CXX_FOR_TARGET"; then | |
10074 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10075 | else | |
10076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10077 | for as_dir in $PATH | |
10078 | do | |
10079 | IFS=$as_save_IFS | |
10080 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10081 | for ac_exec_ext in '' $ac_executable_extensions; do |
10082 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10083 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10084 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10085 | break 2 |
10086 | fi | |
10087 | done | |
81ecdfbb RW |
10088 | done |
10089 | IFS=$as_save_IFS | |
9a819804 AO |
10090 | |
10091 | fi | |
10092 | fi | |
10093 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10094 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
10095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10096 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 10097 | else |
81ecdfbb RW |
10098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10099 | $as_echo "no" >&6; } | |
9a819804 AO |
10100 | fi |
10101 | ||
81ecdfbb | 10102 | |
9a819804 AO |
10103 | done |
10104 | fi | |
10105 | ||
10106 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10107 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
10108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10109 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10110 | if test -x $with_build_time_tools/${ncn_progname}; then |
10111 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10113 | $as_echo "yes" >&6; } | |
2429c060 PB |
10114 | break |
10115 | else | |
81ecdfbb RW |
10116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10117 | $as_echo "no" >&6; } | |
2429c060 PB |
10118 | fi |
10119 | done | |
10120 | fi | |
10121 | ||
10122 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10123 | for ncn_progname in c++ g++ cxx gxx; do | |
10124 | if test -n "$ncn_target_tool_prefix"; then | |
10125 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10126 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10128 | $as_echo_n "checking for $ac_word... " >&6; } | |
10129 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10130 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10131 | else |
10132 | if test -n "$CXX_FOR_TARGET"; then | |
10133 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10134 | else | |
c6b750e1 DJ |
10135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10136 | for as_dir in $PATH | |
10137 | do | |
10138 | IFS=$as_save_IFS | |
10139 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10140 | for ac_exec_ext in '' $ac_executable_extensions; do |
10141 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10142 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10143 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10144 | break 2 |
10145 | fi | |
10146 | done | |
81ecdfbb RW |
10147 | done |
10148 | IFS=$as_save_IFS | |
c6b750e1 | 10149 | |
55db4b87 PB |
10150 | fi |
10151 | fi | |
c6b750e1 | 10152 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 10153 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10155 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10156 | else |
81ecdfbb RW |
10157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10158 | $as_echo "no" >&6; } | |
55db4b87 PB |
10159 | fi |
10160 | ||
81ecdfbb | 10161 | |
2429c060 PB |
10162 | fi |
10163 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10164 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10165 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10167 | $as_echo_n "checking for $ac_word... " >&6; } | |
10168 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10169 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10170 | else |
05cbd757 PB |
10171 | if test -n "$CXX_FOR_TARGET"; then |
10172 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10173 | else |
c6b750e1 DJ |
10174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10175 | for as_dir in $PATH | |
10176 | do | |
10177 | IFS=$as_save_IFS | |
10178 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10179 | for ac_exec_ext in '' $ac_executable_extensions; do |
10180 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10181 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10182 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10183 | break 2 |
10184 | fi | |
10185 | done | |
81ecdfbb RW |
10186 | done |
10187 | IFS=$as_save_IFS | |
c6b750e1 | 10188 | |
55db4b87 PB |
10189 | fi |
10190 | fi | |
c6b750e1 | 10191 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 10192 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10194 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10195 | else |
81ecdfbb RW |
10196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10197 | $as_echo "no" >&6; } | |
55db4b87 | 10198 | fi |
c6b750e1 | 10199 | |
81ecdfbb | 10200 | |
2429c060 PB |
10201 | fi |
10202 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10203 | done | |
10204 | fi | |
c6b750e1 | 10205 | |
05cbd757 PB |
10206 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10207 | set dummy c++ g++ cxx gxx | |
10208 | if test $build = $target ; then | |
10209 | CXX_FOR_TARGET="$2" | |
55db4b87 | 10210 | else |
05cbd757 | 10211 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10212 | fi |
d3f5afc4 MS |
10213 | else |
10214 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
10215 | fi |
10216 | ||
9a819804 AO |
10217 | |
10218 | ||
10219 | if test -n "$GCC_FOR_TARGET"; then | |
10220 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10221 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10222 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10223 | fi | |
10224 | ||
10225 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10226 | for ncn_progname in gcc; do | |
10227 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10228 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10230 | $as_echo_n "checking for $ac_word... " >&6; } | |
10231 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10232 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10233 | else |
10234 | if test -n "$GCC_FOR_TARGET"; then | |
10235 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10236 | else | |
10237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10238 | for as_dir in $PATH | |
10239 | do | |
10240 | IFS=$as_save_IFS | |
10241 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10242 | for ac_exec_ext in '' $ac_executable_extensions; do |
10243 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10244 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10245 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10246 | break 2 |
10247 | fi | |
10248 | done | |
81ecdfbb RW |
10249 | done |
10250 | IFS=$as_save_IFS | |
9a819804 AO |
10251 | |
10252 | fi | |
10253 | fi | |
10254 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10255 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
10256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10257 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 10258 | else |
81ecdfbb RW |
10259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10260 | $as_echo "no" >&6; } | |
9a819804 AO |
10261 | fi |
10262 | ||
81ecdfbb | 10263 | |
9a819804 AO |
10264 | done |
10265 | fi | |
10266 | ||
10267 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10268 | for ncn_progname in gcc; do |
81ecdfbb RW |
10269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10270 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10271 | if test -x $with_build_time_tools/${ncn_progname}; then |
10272 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10274 | $as_echo "yes" >&6; } | |
2429c060 PB |
10275 | break |
10276 | else | |
81ecdfbb RW |
10277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10278 | $as_echo "no" >&6; } | |
2429c060 PB |
10279 | fi |
10280 | done | |
10281 | fi | |
10282 | ||
10283 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10284 | for ncn_progname in gcc; do | |
10285 | if test -n "$ncn_target_tool_prefix"; then | |
10286 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10287 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10289 | $as_echo_n "checking for $ac_word... " >&6; } | |
10290 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10291 | $as_echo_n "(cached) " >&6 | |
859789af | 10292 | else |
2429c060 PB |
10293 | if test -n "$GCC_FOR_TARGET"; then |
10294 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10295 | else |
c6b750e1 DJ |
10296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10297 | for as_dir in $PATH | |
10298 | do | |
10299 | IFS=$as_save_IFS | |
10300 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10301 | for ac_exec_ext in '' $ac_executable_extensions; do |
10302 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10303 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10304 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10305 | break 2 |
10306 | fi | |
10307 | done | |
81ecdfbb RW |
10308 | done |
10309 | IFS=$as_save_IFS | |
c6b750e1 | 10310 | |
55db4b87 PB |
10311 | fi |
10312 | fi | |
c6b750e1 | 10313 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 10314 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10316 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10317 | else |
81ecdfbb RW |
10318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10319 | $as_echo "no" >&6; } | |
55db4b87 PB |
10320 | fi |
10321 | ||
81ecdfbb | 10322 | |
2429c060 PB |
10323 | fi |
10324 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10325 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10326 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10328 | $as_echo_n "checking for $ac_word... " >&6; } | |
10329 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10330 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10331 | else |
05cbd757 PB |
10332 | if test -n "$GCC_FOR_TARGET"; then |
10333 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10334 | else |
c6b750e1 DJ |
10335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10336 | for as_dir in $PATH | |
10337 | do | |
10338 | IFS=$as_save_IFS | |
10339 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10340 | for ac_exec_ext in '' $ac_executable_extensions; do |
10341 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10342 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10343 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10344 | break 2 |
10345 | fi | |
10346 | done | |
81ecdfbb RW |
10347 | done |
10348 | IFS=$as_save_IFS | |
c6b750e1 | 10349 | |
55db4b87 PB |
10350 | fi |
10351 | fi | |
c6b750e1 | 10352 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 10353 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10355 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10356 | else |
81ecdfbb RW |
10357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10358 | $as_echo "no" >&6; } | |
55db4b87 | 10359 | fi |
c6b750e1 | 10360 | |
81ecdfbb | 10361 | |
2429c060 PB |
10362 | fi |
10363 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10364 | done | |
10365 | fi | |
c6b750e1 | 10366 | |
05cbd757 PB |
10367 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10368 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
10369 | else |
10370 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
10371 | fi |
10372 | ||
9a819804 AO |
10373 | |
10374 | ||
9a819804 AO |
10375 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10376 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10377 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10378 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
10379 | fi |
10380 | ||
9a819804 AO |
10381 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10382 | for ncn_progname in gfortran; do | |
10383 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10384 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10386 | $as_echo_n "checking for $ac_word... " >&6; } | |
10387 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10388 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10389 | else |
9a819804 AO |
10390 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10391 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10392 | else |
c6b750e1 DJ |
10393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10394 | for as_dir in $PATH | |
10395 | do | |
10396 | IFS=$as_save_IFS | |
10397 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10398 | for ac_exec_ext in '' $ac_executable_extensions; do |
10399 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10400 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10401 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10402 | break 2 |
10403 | fi | |
10404 | done | |
81ecdfbb RW |
10405 | done |
10406 | IFS=$as_save_IFS | |
c6b750e1 | 10407 | |
55db4b87 PB |
10408 | fi |
10409 | fi | |
9a819804 AO |
10410 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10411 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
10412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10413 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10414 | else |
81ecdfbb RW |
10415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10416 | $as_echo "no" >&6; } | |
55db4b87 | 10417 | fi |
c6b750e1 | 10418 | |
81ecdfbb | 10419 | |
2429c060 PB |
10420 | done |
10421 | fi | |
c6b750e1 | 10422 | |
9a819804 | 10423 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 10424 | for ncn_progname in gfortran; do |
81ecdfbb RW |
10425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10426 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10427 | if test -x $with_build_time_tools/${ncn_progname}; then |
10428 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10430 | $as_echo "yes" >&6; } | |
2429c060 PB |
10431 | break |
10432 | else | |
81ecdfbb RW |
10433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10434 | $as_echo "no" >&6; } | |
2429c060 PB |
10435 | fi |
10436 | done | |
10437 | fi | |
10438 | ||
10439 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10440 | for ncn_progname in gfortran; do | |
10441 | if test -n "$ncn_target_tool_prefix"; then | |
10442 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10443 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10445 | $as_echo_n "checking for $ac_word... " >&6; } | |
10446 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10447 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10448 | else |
10449 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10450 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10451 | else | |
c6b750e1 DJ |
10452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10453 | for as_dir in $PATH | |
10454 | do | |
10455 | IFS=$as_save_IFS | |
10456 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10457 | for ac_exec_ext in '' $ac_executable_extensions; do |
10458 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10459 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10460 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10461 | break 2 |
10462 | fi | |
10463 | done | |
81ecdfbb RW |
10464 | done |
10465 | IFS=$as_save_IFS | |
c6b750e1 | 10466 | |
55db4b87 PB |
10467 | fi |
10468 | fi | |
c6b750e1 | 10469 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
55db4b87 | 10470 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10472 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10473 | else |
81ecdfbb RW |
10474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10475 | $as_echo "no" >&6; } | |
55db4b87 PB |
10476 | fi |
10477 | ||
81ecdfbb | 10478 | |
2429c060 PB |
10479 | fi |
10480 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10481 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10482 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10484 | $as_echo_n "checking for $ac_word... " >&6; } | |
10485 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10486 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10487 | else |
05cbd757 | 10488 | if test -n "$GFORTRAN_FOR_TARGET"; then |
c6b750e1 DJ |
10489 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10490 | else | |
10491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10492 | for as_dir in $PATH | |
10493 | do | |
10494 | IFS=$as_save_IFS | |
10495 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10496 | for ac_exec_ext in '' $ac_executable_extensions; do |
10497 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10498 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10499 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10500 | break 2 |
10501 | fi | |
10502 | done | |
81ecdfbb RW |
10503 | done |
10504 | IFS=$as_save_IFS | |
c6b750e1 | 10505 | |
55db4b87 PB |
10506 | fi |
10507 | fi | |
c6b750e1 | 10508 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
05cbd757 | 10509 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10511 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10512 | else |
81ecdfbb RW |
10513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10514 | $as_echo "no" >&6; } | |
55db4b87 | 10515 | fi |
c6b750e1 | 10516 | |
81ecdfbb | 10517 | |
2429c060 PB |
10518 | fi |
10519 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10520 | done | |
10521 | fi | |
c6b750e1 | 10522 | |
05cbd757 PB |
10523 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10524 | set dummy gfortran | |
10525 | if test $build = $target ; then | |
10526 | GFORTRAN_FOR_TARGET="$2" | |
55db4b87 | 10527 | else |
05cbd757 | 10528 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10529 | fi |
d3f5afc4 MS |
10530 | else |
10531 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
859789af AC |
10532 | fi |
10533 | ||
2429c060 PB |
10534 | |
10535 | ||
e552509b ILT |
10536 | if test -n "$GOC_FOR_TARGET"; then |
10537 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10538 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10539 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10540 | fi | |
10541 | ||
10542 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10543 | for ncn_progname in gccgo; do | |
10544 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10545 | set dummy ${ncn_progname}; ac_word=$2 | |
10546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10547 | $as_echo_n "checking for $ac_word... " >&6; } | |
10548 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10549 | $as_echo_n "(cached) " >&6 | |
10550 | else | |
10551 | if test -n "$GOC_FOR_TARGET"; then | |
10552 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10553 | else | |
10554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10555 | for as_dir in $PATH | |
10556 | do | |
10557 | IFS=$as_save_IFS | |
10558 | test -z "$as_dir" && as_dir=. | |
10559 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10560 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10561 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10563 | break 2 | |
10564 | fi | |
10565 | done | |
10566 | done | |
10567 | IFS=$as_save_IFS | |
10568 | ||
10569 | fi | |
10570 | fi | |
10571 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10572 | if test -n "$GOC_FOR_TARGET"; then | |
10573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10574 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10575 | else | |
10576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10577 | $as_echo "no" >&6; } | |
10578 | fi | |
10579 | ||
10580 | ||
10581 | done | |
10582 | fi | |
10583 | ||
10584 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10585 | for ncn_progname in gccgo; do | |
10586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10587 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10588 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10589 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10591 | $as_echo "yes" >&6; } | |
10592 | break | |
10593 | else | |
10594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10595 | $as_echo "no" >&6; } | |
10596 | fi | |
10597 | done | |
10598 | fi | |
10599 | ||
10600 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10601 | for ncn_progname in gccgo; do | |
10602 | if test -n "$ncn_target_tool_prefix"; then | |
10603 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10604 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10606 | $as_echo_n "checking for $ac_word... " >&6; } | |
10607 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10608 | $as_echo_n "(cached) " >&6 | |
10609 | else | |
10610 | if test -n "$GOC_FOR_TARGET"; then | |
10611 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10612 | else | |
10613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10614 | for as_dir in $PATH | |
10615 | do | |
10616 | IFS=$as_save_IFS | |
10617 | test -z "$as_dir" && as_dir=. | |
10618 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10619 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10620 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10621 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10622 | break 2 | |
10623 | fi | |
10624 | done | |
10625 | done | |
10626 | IFS=$as_save_IFS | |
10627 | ||
10628 | fi | |
10629 | fi | |
10630 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10631 | if test -n "$GOC_FOR_TARGET"; then | |
10632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10633 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10634 | else | |
10635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10636 | $as_echo "no" >&6; } | |
10637 | fi | |
10638 | ||
10639 | ||
10640 | fi | |
10641 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10642 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10643 | set dummy ${ncn_progname}; ac_word=$2 | |
10644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10645 | $as_echo_n "checking for $ac_word... " >&6; } | |
10646 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10647 | $as_echo_n "(cached) " >&6 | |
10648 | else | |
10649 | if test -n "$GOC_FOR_TARGET"; then | |
10650 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10651 | else | |
10652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10653 | for as_dir in $PATH | |
10654 | do | |
10655 | IFS=$as_save_IFS | |
10656 | test -z "$as_dir" && as_dir=. | |
10657 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10658 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10659 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10660 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10661 | break 2 | |
10662 | fi | |
10663 | done | |
10664 | done | |
10665 | IFS=$as_save_IFS | |
10666 | ||
10667 | fi | |
10668 | fi | |
10669 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10670 | if test -n "$GOC_FOR_TARGET"; then | |
10671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10672 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10673 | else | |
10674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10675 | $as_echo "no" >&6; } | |
10676 | fi | |
10677 | ||
10678 | ||
10679 | fi | |
10680 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10681 | done | |
10682 | fi | |
10683 | ||
10684 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10685 | set dummy gccgo | |
10686 | if test $build = $target ; then | |
10687 | GOC_FOR_TARGET="$2" | |
10688 | else | |
10689 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10690 | fi | |
10691 | else | |
10692 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10693 | fi | |
10694 | ||
10695 | ||
10696 | ||
2429c060 PB |
10697 | cat > conftest.c << \EOF |
10698 | #ifdef __GNUC__ | |
10699 | gcc_yay; | |
10700 | #endif | |
10701 | EOF | |
10702 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10703 | have_gcc_for_target=yes | |
859789af | 10704 | else |
2429c060 PB |
10705 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
10706 | have_gcc_for_target=no | |
859789af | 10707 | fi |
2429c060 PB |
10708 | rm conftest.c |
10709 | ||
10710 | ||
10711 | ||
859789af | 10712 | |
2429c060 PB |
10713 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
10714 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10716 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10717 | if test -x $with_build_time_tools/ar; then |
10718 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10719 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
10720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10721 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 10722 | else |
81ecdfbb RW |
10723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10724 | $as_echo "no" >&6; } | |
3a35eeb3 | 10725 | fi |
2429c060 PB |
10726 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10727 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
10728 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10729 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 10730 | fi |
2429c060 | 10731 | fi |
c6b750e1 | 10732 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10733 | # Extract the first word of "ar", so it can be a program name with args. |
10734 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
10735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10736 | $as_echo_n "checking for $ac_word... " >&6; } | |
10737 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10738 | $as_echo_n "(cached) " >&6 | |
859789af | 10739 | else |
c6b750e1 DJ |
10740 | case $AR_FOR_TARGET in |
10741 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10742 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10743 | ;; | |
2429c060 | 10744 | *) |
c6b750e1 DJ |
10745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10746 | for as_dir in $gcc_cv_tool_dirs | |
10747 | do | |
10748 | IFS=$as_save_IFS | |
10749 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10750 | for ac_exec_ext in '' $ac_executable_extensions; do |
10751 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10752 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10753 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10754 | break 2 |
10755 | fi | |
10756 | done | |
81ecdfbb RW |
10757 | done |
10758 | IFS=$as_save_IFS | |
c6b750e1 | 10759 | |
2429c060 PB |
10760 | ;; |
10761 | esac | |
859789af | 10762 | fi |
c6b750e1 | 10763 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 10764 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10766 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 10767 | else |
81ecdfbb RW |
10768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10769 | $as_echo "no" >&6; } | |
859789af | 10770 | fi |
05cbd757 | 10771 | |
81ecdfbb | 10772 | |
2429c060 PB |
10773 | fi |
10774 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
10775 | |
10776 | ||
10777 | if test -n "$AR_FOR_TARGET"; then | |
10778 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10779 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10780 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10781 | fi | |
10782 | ||
10783 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10784 | for ncn_progname in ar; do | |
10785 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10786 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10788 | $as_echo_n "checking for $ac_word... " >&6; } | |
10789 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10790 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10791 | else |
10792 | if test -n "$AR_FOR_TARGET"; then | |
10793 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10794 | else | |
10795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10796 | for as_dir in $PATH | |
10797 | do | |
10798 | IFS=$as_save_IFS | |
10799 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10800 | for ac_exec_ext in '' $ac_executable_extensions; do |
10801 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10802 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10803 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10804 | break 2 |
10805 | fi | |
10806 | done | |
81ecdfbb RW |
10807 | done |
10808 | IFS=$as_save_IFS | |
9a819804 AO |
10809 | |
10810 | fi | |
10811 | fi | |
10812 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10813 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
10814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10815 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 10816 | else |
81ecdfbb RW |
10817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10818 | $as_echo "no" >&6; } | |
9a819804 AO |
10819 | fi |
10820 | ||
81ecdfbb | 10821 | |
9a819804 AO |
10822 | done |
10823 | fi | |
10824 | ||
10825 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10826 | for ncn_progname in ar; do |
81ecdfbb RW |
10827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10828 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10829 | if test -x $with_build_time_tools/${ncn_progname}; then |
10830 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10832 | $as_echo "yes" >&6; } | |
2429c060 PB |
10833 | break |
10834 | else | |
81ecdfbb RW |
10835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10836 | $as_echo "no" >&6; } | |
2429c060 PB |
10837 | fi |
10838 | done | |
859789af AC |
10839 | fi |
10840 | ||
2429c060 PB |
10841 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
10842 | for ncn_progname in ar; do | |
10843 | if test -n "$ncn_target_tool_prefix"; then | |
10844 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10845 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_AR_FOR_TARGET+set}" = set; then : | |
10849 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 10850 | else |
2429c060 PB |
10851 | if test -n "$AR_FOR_TARGET"; then |
10852 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 10853 | else |
c6b750e1 DJ |
10854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10855 | for as_dir in $PATH | |
10856 | do | |
10857 | IFS=$as_save_IFS | |
10858 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10859 | for ac_exec_ext in '' $ac_executable_extensions; do |
10860 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10861 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10862 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10863 | break 2 |
10864 | fi | |
10865 | done | |
81ecdfbb RW |
10866 | done |
10867 | IFS=$as_save_IFS | |
c6b750e1 | 10868 | |
7e0f7140 GK |
10869 | fi |
10870 | fi | |
c6b750e1 | 10871 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 10872 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10874 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 10875 | else |
81ecdfbb RW |
10876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10877 | $as_echo "no" >&6; } | |
7e0f7140 GK |
10878 | fi |
10879 | ||
81ecdfbb | 10880 | |
2429c060 PB |
10881 | fi |
10882 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
10883 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 10884 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10886 | $as_echo_n "checking for $ac_word... " >&6; } | |
10887 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10888 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 10889 | else |
2429c060 PB |
10890 | if test -n "$AR_FOR_TARGET"; then |
10891 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 10892 | else |
c6b750e1 DJ |
10893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10894 | for as_dir in $PATH | |
10895 | do | |
10896 | IFS=$as_save_IFS | |
10897 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10898 | for ac_exec_ext in '' $ac_executable_extensions; do |
10899 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10900 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10901 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10902 | break 2 |
10903 | fi | |
10904 | done | |
81ecdfbb RW |
10905 | done |
10906 | IFS=$as_save_IFS | |
c6b750e1 | 10907 | |
7e0f7140 GK |
10908 | fi |
10909 | fi | |
c6b750e1 | 10910 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 10911 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10913 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 10914 | else |
81ecdfbb RW |
10915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10916 | $as_echo "no" >&6; } | |
7e0f7140 | 10917 | fi |
c6b750e1 | 10918 | |
81ecdfbb | 10919 | |
2429c060 PB |
10920 | fi |
10921 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
10922 | done | |
10923 | fi | |
c6b750e1 | 10924 | |
2429c060 PB |
10925 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
10926 | set dummy ar | |
7e0f7140 | 10927 | if test $build = $target ; then |
2429c060 | 10928 | AR_FOR_TARGET="$2" |
7e0f7140 | 10929 | else |
2429c060 | 10930 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 10931 | fi |
d3f5afc4 MS |
10932 | else |
10933 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
10934 | fi |
10935 | ||
3a35eeb3 PB |
10936 | else |
10937 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
10938 | fi |
10939 | ||
10940 | ||
10941 | ||
10942 | ||
10943 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
10944 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
10946 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10947 | if test -x $with_build_time_tools/as; then |
10948 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
10949 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
10950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
10951 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 10952 | else |
81ecdfbb RW |
10953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10954 | $as_echo "no" >&6; } | |
3a35eeb3 | 10955 | fi |
2429c060 PB |
10956 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10957 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
10958 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
10959 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
10960 | fi |
10961 | fi | |
c6b750e1 | 10962 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10963 | # Extract the first word of "as", so it can be a program name with args. |
10964 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
10965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10966 | $as_echo_n "checking for $ac_word... " >&6; } | |
10967 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
10968 | $as_echo_n "(cached) " >&6 | |
2429c060 | 10969 | else |
c6b750e1 DJ |
10970 | case $AS_FOR_TARGET in |
10971 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10972 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
10973 | ;; | |
2429c060 | 10974 | *) |
c6b750e1 DJ |
10975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10976 | for as_dir in $gcc_cv_tool_dirs | |
10977 | do | |
10978 | IFS=$as_save_IFS | |
10979 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10980 | for ac_exec_ext in '' $ac_executable_extensions; do |
10981 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10982 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10984 | break 2 |
10985 | fi | |
10986 | done | |
81ecdfbb RW |
10987 | done |
10988 | IFS=$as_save_IFS | |
c6b750e1 | 10989 | |
2429c060 PB |
10990 | ;; |
10991 | esac | |
10992 | fi | |
c6b750e1 | 10993 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 10994 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
10995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10996 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 10997 | else |
81ecdfbb RW |
10998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10999 | $as_echo "no" >&6; } | |
2429c060 PB |
11000 | fi |
11001 | ||
81ecdfbb | 11002 | |
2429c060 PB |
11003 | fi |
11004 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
11005 | |
11006 | ||
11007 | if test -n "$AS_FOR_TARGET"; then | |
11008 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11009 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11010 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11011 | fi | |
11012 | ||
11013 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11014 | for ncn_progname in as; do | |
11015 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11016 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11018 | $as_echo_n "checking for $ac_word... " >&6; } | |
11019 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11020 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11021 | else |
11022 | if test -n "$AS_FOR_TARGET"; then | |
11023 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11024 | else | |
11025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11026 | for as_dir in $PATH | |
11027 | do | |
11028 | IFS=$as_save_IFS | |
11029 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11030 | for ac_exec_ext in '' $ac_executable_extensions; do |
11031 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11032 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11033 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11034 | break 2 |
11035 | fi | |
11036 | done | |
81ecdfbb RW |
11037 | done |
11038 | IFS=$as_save_IFS | |
9a819804 AO |
11039 | |
11040 | fi | |
11041 | fi | |
11042 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11043 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
11044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11045 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 11046 | else |
81ecdfbb RW |
11047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11048 | $as_echo "no" >&6; } | |
9a819804 AO |
11049 | fi |
11050 | ||
81ecdfbb | 11051 | |
9a819804 AO |
11052 | done |
11053 | fi | |
11054 | ||
11055 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11056 | for ncn_progname in as; do |
81ecdfbb RW |
11057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11058 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11059 | if test -x $with_build_time_tools/${ncn_progname}; then |
11060 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11062 | $as_echo "yes" >&6; } | |
2429c060 PB |
11063 | break |
11064 | else | |
81ecdfbb RW |
11065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11066 | $as_echo "no" >&6; } | |
2429c060 PB |
11067 | fi |
11068 | done | |
11069 | fi | |
11070 | ||
11071 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11072 | for ncn_progname in as; do | |
11073 | if test -n "$ncn_target_tool_prefix"; then | |
11074 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11075 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_AS_FOR_TARGET+set}" = set; then : | |
11079 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11080 | else |
11081 | if test -n "$AS_FOR_TARGET"; then | |
11082 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11083 | else | |
c6b750e1 DJ |
11084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11085 | for as_dir in $PATH | |
11086 | do | |
11087 | IFS=$as_save_IFS | |
11088 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11089 | for ac_exec_ext in '' $ac_executable_extensions; do |
11090 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11091 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11092 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11093 | break 2 |
11094 | fi | |
11095 | done | |
81ecdfbb RW |
11096 | done |
11097 | IFS=$as_save_IFS | |
c6b750e1 | 11098 | |
2429c060 PB |
11099 | fi |
11100 | fi | |
c6b750e1 | 11101 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11102 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11104 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11105 | else |
81ecdfbb RW |
11106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11107 | $as_echo "no" >&6; } | |
2429c060 PB |
11108 | fi |
11109 | ||
81ecdfbb | 11110 | |
2429c060 PB |
11111 | fi |
11112 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11113 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11114 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11116 | $as_echo_n "checking for $ac_word... " >&6; } | |
11117 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11118 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11119 | else |
11120 | if test -n "$AS_FOR_TARGET"; then | |
11121 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11122 | else | |
c6b750e1 DJ |
11123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11124 | for as_dir in $PATH | |
11125 | do | |
11126 | IFS=$as_save_IFS | |
11127 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11128 | for ac_exec_ext in '' $ac_executable_extensions; do |
11129 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11130 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11131 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11132 | break 2 |
11133 | fi | |
11134 | done | |
81ecdfbb RW |
11135 | done |
11136 | IFS=$as_save_IFS | |
c6b750e1 | 11137 | |
2429c060 PB |
11138 | fi |
11139 | fi | |
c6b750e1 | 11140 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11141 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11143 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11144 | else |
81ecdfbb RW |
11145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11146 | $as_echo "no" >&6; } | |
2429c060 | 11147 | fi |
c6b750e1 | 11148 | |
81ecdfbb | 11149 | |
2429c060 PB |
11150 | fi |
11151 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11152 | done | |
11153 | fi | |
c6b750e1 | 11154 | |
2429c060 PB |
11155 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11156 | set dummy as | |
11157 | if test $build = $target ; then | |
11158 | AS_FOR_TARGET="$2" | |
11159 | else | |
11160 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11161 | fi | |
d3f5afc4 MS |
11162 | else |
11163 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
11164 | fi |
11165 | ||
3a35eeb3 PB |
11166 | else |
11167 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
11168 | fi |
11169 | ||
11170 | ||
11171 | ||
11172 | ||
11173 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11174 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11176 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11177 | if test -x $with_build_time_tools/dlltool; then |
11178 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11179 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
11180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11181 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 11182 | else |
81ecdfbb RW |
11183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11184 | $as_echo "no" >&6; } | |
3a35eeb3 | 11185 | fi |
2429c060 PB |
11186 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11187 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
11188 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11189 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
11190 | fi |
11191 | fi | |
c6b750e1 | 11192 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11193 | # Extract the first word of "dlltool", so it can be a program name with args. |
11194 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
11195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11196 | $as_echo_n "checking for $ac_word... " >&6; } | |
11197 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11198 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11199 | else |
c6b750e1 DJ |
11200 | case $DLLTOOL_FOR_TARGET in |
11201 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11202 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11203 | ;; | |
2429c060 | 11204 | *) |
c6b750e1 DJ |
11205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11206 | for as_dir in $gcc_cv_tool_dirs | |
11207 | do | |
11208 | IFS=$as_save_IFS | |
11209 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11210 | for ac_exec_ext in '' $ac_executable_extensions; do |
11211 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11212 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11213 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11214 | break 2 |
11215 | fi | |
11216 | done | |
81ecdfbb RW |
11217 | done |
11218 | IFS=$as_save_IFS | |
c6b750e1 | 11219 | |
2429c060 PB |
11220 | ;; |
11221 | esac | |
11222 | fi | |
c6b750e1 | 11223 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 11224 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11226 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11227 | else |
81ecdfbb RW |
11228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11229 | $as_echo "no" >&6; } | |
2429c060 PB |
11230 | fi |
11231 | ||
81ecdfbb | 11232 | |
2429c060 PB |
11233 | fi |
11234 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
11235 | |
11236 | ||
11237 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11238 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11239 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11240 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11241 | fi | |
11242 | ||
11243 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11244 | for ncn_progname in dlltool; do | |
11245 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11246 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11248 | $as_echo_n "checking for $ac_word... " >&6; } | |
11249 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11250 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11251 | else |
11252 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11253 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11254 | else | |
11255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11256 | for as_dir in $PATH | |
11257 | do | |
11258 | IFS=$as_save_IFS | |
11259 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11260 | for ac_exec_ext in '' $ac_executable_extensions; do |
11261 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11262 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11263 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11264 | break 2 |
11265 | fi | |
11266 | done | |
81ecdfbb RW |
11267 | done |
11268 | IFS=$as_save_IFS | |
9a819804 AO |
11269 | |
11270 | fi | |
11271 | fi | |
11272 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11273 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
11274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11275 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 11276 | else |
81ecdfbb RW |
11277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11278 | $as_echo "no" >&6; } | |
9a819804 AO |
11279 | fi |
11280 | ||
81ecdfbb | 11281 | |
9a819804 AO |
11282 | done |
11283 | fi | |
11284 | ||
11285 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11286 | for ncn_progname in dlltool; do |
81ecdfbb RW |
11287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11288 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11289 | if test -x $with_build_time_tools/${ncn_progname}; then |
11290 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11292 | $as_echo "yes" >&6; } | |
2429c060 PB |
11293 | break |
11294 | else | |
81ecdfbb RW |
11295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11296 | $as_echo "no" >&6; } | |
2429c060 PB |
11297 | fi |
11298 | done | |
11299 | fi | |
11300 | ||
11301 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11302 | for ncn_progname in dlltool; do | |
11303 | if test -n "$ncn_target_tool_prefix"; then | |
11304 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11305 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11309 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11310 | else |
11311 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11312 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11313 | else | |
c6b750e1 DJ |
11314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11315 | for as_dir in $PATH | |
11316 | do | |
11317 | IFS=$as_save_IFS | |
11318 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11319 | for ac_exec_ext in '' $ac_executable_extensions; do |
11320 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11321 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11322 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11323 | break 2 |
11324 | fi | |
11325 | done | |
81ecdfbb RW |
11326 | done |
11327 | IFS=$as_save_IFS | |
c6b750e1 | 11328 | |
2429c060 PB |
11329 | fi |
11330 | fi | |
c6b750e1 | 11331 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11332 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11334 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11335 | else |
81ecdfbb RW |
11336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11337 | $as_echo "no" >&6; } | |
2429c060 PB |
11338 | fi |
11339 | ||
81ecdfbb | 11340 | |
2429c060 PB |
11341 | fi |
11342 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11343 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11344 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11346 | $as_echo_n "checking for $ac_word... " >&6; } | |
11347 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11348 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11349 | else |
11350 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11351 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11352 | else | |
c6b750e1 DJ |
11353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11354 | for as_dir in $PATH | |
11355 | do | |
11356 | IFS=$as_save_IFS | |
11357 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11358 | for ac_exec_ext in '' $ac_executable_extensions; do |
11359 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11360 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11361 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11362 | break 2 |
11363 | fi | |
11364 | done | |
81ecdfbb RW |
11365 | done |
11366 | IFS=$as_save_IFS | |
c6b750e1 | 11367 | |
2429c060 PB |
11368 | fi |
11369 | fi | |
c6b750e1 | 11370 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11371 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11373 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11374 | else |
81ecdfbb RW |
11375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11376 | $as_echo "no" >&6; } | |
2429c060 | 11377 | fi |
c6b750e1 | 11378 | |
81ecdfbb | 11379 | |
2429c060 PB |
11380 | fi |
11381 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11382 | done | |
11383 | fi | |
c6b750e1 | 11384 | |
2429c060 PB |
11385 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11386 | set dummy dlltool | |
11387 | if test $build = $target ; then | |
11388 | DLLTOOL_FOR_TARGET="$2" | |
11389 | else | |
11390 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11391 | fi | |
d3f5afc4 MS |
11392 | else |
11393 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
2429c060 PB |
11394 | fi |
11395 | ||
3a35eeb3 PB |
11396 | else |
11397 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
2429c060 PB |
11398 | fi |
11399 | ||
11400 | ||
11401 | ||
11402 | ||
11403 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11404 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11406 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11407 | if test -x $with_build_time_tools/ld; then |
11408 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11409 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
11410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11411 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 11412 | else |
81ecdfbb RW |
11413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11414 | $as_echo "no" >&6; } | |
3a35eeb3 | 11415 | fi |
2429c060 PB |
11416 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11417 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
11418 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11419 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
11420 | fi |
11421 | fi | |
c6b750e1 | 11422 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11423 | # Extract the first word of "ld", so it can be a program name with args. |
11424 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
11425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11426 | $as_echo_n "checking for $ac_word... " >&6; } | |
11427 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11428 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11429 | else |
c6b750e1 DJ |
11430 | case $LD_FOR_TARGET in |
11431 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11432 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11433 | ;; | |
2429c060 | 11434 | *) |
c6b750e1 DJ |
11435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11436 | for as_dir in $gcc_cv_tool_dirs | |
11437 | do | |
11438 | IFS=$as_save_IFS | |
11439 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11440 | for ac_exec_ext in '' $ac_executable_extensions; do |
11441 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11442 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11443 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11444 | break 2 |
11445 | fi | |
11446 | done | |
81ecdfbb RW |
11447 | done |
11448 | IFS=$as_save_IFS | |
c6b750e1 | 11449 | |
2429c060 PB |
11450 | ;; |
11451 | esac | |
11452 | fi | |
c6b750e1 | 11453 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 11454 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11456 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11457 | else |
81ecdfbb RW |
11458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11459 | $as_echo "no" >&6; } | |
2429c060 PB |
11460 | fi |
11461 | ||
81ecdfbb | 11462 | |
2429c060 PB |
11463 | fi |
11464 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
11465 | |
11466 | ||
11467 | if test -n "$LD_FOR_TARGET"; then | |
11468 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11469 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11470 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11471 | fi | |
11472 | ||
11473 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11474 | for ncn_progname in ld; do | |
11475 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11476 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11478 | $as_echo_n "checking for $ac_word... " >&6; } | |
11479 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11480 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11481 | else |
11482 | if test -n "$LD_FOR_TARGET"; then | |
11483 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11484 | else | |
11485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11486 | for as_dir in $PATH | |
11487 | do | |
11488 | IFS=$as_save_IFS | |
11489 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11490 | for ac_exec_ext in '' $ac_executable_extensions; do |
11491 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11492 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11493 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11494 | break 2 |
11495 | fi | |
11496 | done | |
81ecdfbb RW |
11497 | done |
11498 | IFS=$as_save_IFS | |
9a819804 AO |
11499 | |
11500 | fi | |
11501 | fi | |
11502 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11503 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
11504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11505 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 11506 | else |
81ecdfbb RW |
11507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11508 | $as_echo "no" >&6; } | |
9a819804 AO |
11509 | fi |
11510 | ||
81ecdfbb | 11511 | |
9a819804 AO |
11512 | done |
11513 | fi | |
11514 | ||
11515 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11516 | for ncn_progname in ld; do |
81ecdfbb RW |
11517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11518 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11519 | if test -x $with_build_time_tools/${ncn_progname}; then |
11520 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11522 | $as_echo "yes" >&6; } | |
2429c060 PB |
11523 | break |
11524 | else | |
81ecdfbb RW |
11525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11526 | $as_echo "no" >&6; } | |
2429c060 PB |
11527 | fi |
11528 | done | |
11529 | fi | |
11530 | ||
11531 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11532 | for ncn_progname in ld; do | |
11533 | if test -n "$ncn_target_tool_prefix"; then | |
11534 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11535 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_LD_FOR_TARGET+set}" = set; then : | |
11539 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11540 | else |
11541 | if test -n "$LD_FOR_TARGET"; then | |
11542 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11543 | else | |
c6b750e1 DJ |
11544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11545 | for as_dir in $PATH | |
11546 | do | |
11547 | IFS=$as_save_IFS | |
11548 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11549 | for ac_exec_ext in '' $ac_executable_extensions; do |
11550 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11551 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11552 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11553 | break 2 |
11554 | fi | |
11555 | done | |
81ecdfbb RW |
11556 | done |
11557 | IFS=$as_save_IFS | |
c6b750e1 | 11558 | |
2429c060 PB |
11559 | fi |
11560 | fi | |
c6b750e1 | 11561 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11562 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11564 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11565 | else |
81ecdfbb RW |
11566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11567 | $as_echo "no" >&6; } | |
2429c060 PB |
11568 | fi |
11569 | ||
81ecdfbb | 11570 | |
2429c060 PB |
11571 | fi |
11572 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11573 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11574 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11576 | $as_echo_n "checking for $ac_word... " >&6; } | |
11577 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11578 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11579 | else |
11580 | if test -n "$LD_FOR_TARGET"; then | |
11581 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11582 | else | |
c6b750e1 DJ |
11583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11584 | for as_dir in $PATH | |
11585 | do | |
11586 | IFS=$as_save_IFS | |
11587 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11588 | for ac_exec_ext in '' $ac_executable_extensions; do |
11589 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11590 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11591 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11592 | break 2 |
11593 | fi | |
11594 | done | |
81ecdfbb RW |
11595 | done |
11596 | IFS=$as_save_IFS | |
c6b750e1 | 11597 | |
2429c060 PB |
11598 | fi |
11599 | fi | |
c6b750e1 | 11600 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11601 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11603 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11604 | else |
81ecdfbb RW |
11605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11606 | $as_echo "no" >&6; } | |
2429c060 | 11607 | fi |
c6b750e1 | 11608 | |
81ecdfbb | 11609 | |
2429c060 PB |
11610 | fi |
11611 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11612 | done | |
11613 | fi | |
c6b750e1 | 11614 | |
2429c060 PB |
11615 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11616 | set dummy ld | |
11617 | if test $build = $target ; then | |
11618 | LD_FOR_TARGET="$2" | |
11619 | else | |
11620 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11621 | fi | |
d3f5afc4 MS |
11622 | else |
11623 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
11624 | fi |
11625 | ||
3a35eeb3 PB |
11626 | else |
11627 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
11628 | fi |
11629 | ||
11630 | ||
11631 | ||
11632 | ||
11633 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11634 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11636 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11637 | if test -x $with_build_time_tools/lipo; then |
11638 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11639 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
11640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11641 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 11642 | else |
81ecdfbb RW |
11643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11644 | $as_echo "no" >&6; } | |
3a35eeb3 | 11645 | fi |
2429c060 PB |
11646 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11647 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
11648 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11649 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
11650 | fi |
11651 | fi | |
9a819804 AO |
11652 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11653 | # Extract the first word of "lipo", so it can be a program name with args. | |
11654 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
11655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11656 | $as_echo_n "checking for $ac_word... " >&6; } | |
11657 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11658 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11659 | else |
11660 | case $LIPO_FOR_TARGET in | |
11661 | [\\/]* | ?:[\\/]*) | |
11662 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11663 | ;; | |
11664 | *) | |
11665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11666 | for as_dir in $gcc_cv_tool_dirs | |
11667 | do | |
11668 | IFS=$as_save_IFS | |
11669 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11670 | for ac_exec_ext in '' $ac_executable_extensions; do |
11671 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11672 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11673 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11674 | break 2 |
11675 | fi | |
11676 | done | |
81ecdfbb RW |
11677 | done |
11678 | IFS=$as_save_IFS | |
9a819804 AO |
11679 | |
11680 | ;; | |
11681 | esac | |
11682 | fi | |
11683 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 11684 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11686 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 11687 | else |
81ecdfbb RW |
11688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11689 | $as_echo "no" >&6; } | |
9a819804 AO |
11690 | fi |
11691 | ||
81ecdfbb | 11692 | |
9a819804 AO |
11693 | fi |
11694 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11695 | ||
11696 | ||
11697 | if test -n "$LIPO_FOR_TARGET"; then | |
11698 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11699 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11700 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11701 | fi | |
11702 | ||
11703 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11704 | for ncn_progname in lipo; do | |
11705 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11706 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11708 | $as_echo_n "checking for $ac_word... " >&6; } | |
11709 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11710 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11711 | else |
9a819804 AO |
11712 | if test -n "$LIPO_FOR_TARGET"; then |
11713 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11714 | else | |
11715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11716 | for as_dir in $PATH | |
c6b750e1 DJ |
11717 | do |
11718 | IFS=$as_save_IFS | |
11719 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11720 | for ac_exec_ext in '' $ac_executable_extensions; do |
11721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11722 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11724 | break 2 |
11725 | fi | |
11726 | done | |
81ecdfbb RW |
11727 | done |
11728 | IFS=$as_save_IFS | |
c6b750e1 | 11729 | |
2429c060 | 11730 | fi |
9a819804 AO |
11731 | fi |
11732 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 11733 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11735 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11736 | else |
81ecdfbb RW |
11737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11738 | $as_echo "no" >&6; } | |
2429c060 PB |
11739 | fi |
11740 | ||
81ecdfbb | 11741 | |
9a819804 | 11742 | done |
2429c060 | 11743 | fi |
9a819804 AO |
11744 | |
11745 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11746 | for ncn_progname in lipo; do |
81ecdfbb RW |
11747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11748 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11749 | if test -x $with_build_time_tools/${ncn_progname}; then |
11750 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11752 | $as_echo "yes" >&6; } | |
2429c060 PB |
11753 | break |
11754 | else | |
81ecdfbb RW |
11755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11756 | $as_echo "no" >&6; } | |
2429c060 PB |
11757 | fi |
11758 | done | |
11759 | fi | |
11760 | ||
11761 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11762 | for ncn_progname in lipo; do | |
11763 | if test -n "$ncn_target_tool_prefix"; then | |
11764 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11765 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11769 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11770 | else |
11771 | if test -n "$LIPO_FOR_TARGET"; then | |
11772 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11773 | else | |
c6b750e1 DJ |
11774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11775 | for as_dir in $PATH | |
11776 | do | |
11777 | IFS=$as_save_IFS | |
11778 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11779 | for ac_exec_ext in '' $ac_executable_extensions; do |
11780 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11781 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11782 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11783 | break 2 |
11784 | fi | |
11785 | done | |
81ecdfbb RW |
11786 | done |
11787 | IFS=$as_save_IFS | |
c6b750e1 | 11788 | |
2429c060 PB |
11789 | fi |
11790 | fi | |
c6b750e1 | 11791 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11792 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11794 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11795 | else |
81ecdfbb RW |
11796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11797 | $as_echo "no" >&6; } | |
2429c060 PB |
11798 | fi |
11799 | ||
81ecdfbb | 11800 | |
2429c060 PB |
11801 | fi |
11802 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11803 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11804 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11806 | $as_echo_n "checking for $ac_word... " >&6; } | |
11807 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11808 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11809 | else |
11810 | if test -n "$LIPO_FOR_TARGET"; then | |
11811 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11812 | else | |
c6b750e1 DJ |
11813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11814 | for as_dir in $PATH | |
11815 | do | |
11816 | IFS=$as_save_IFS | |
11817 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11818 | for ac_exec_ext in '' $ac_executable_extensions; do |
11819 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11820 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11821 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11822 | break 2 |
11823 | fi | |
11824 | done | |
81ecdfbb RW |
11825 | done |
11826 | IFS=$as_save_IFS | |
c6b750e1 | 11827 | |
2429c060 PB |
11828 | fi |
11829 | fi | |
c6b750e1 | 11830 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11831 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11833 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11834 | else |
81ecdfbb RW |
11835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11836 | $as_echo "no" >&6; } | |
2429c060 | 11837 | fi |
c6b750e1 | 11838 | |
81ecdfbb | 11839 | |
2429c060 PB |
11840 | fi |
11841 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
11842 | done | |
11843 | fi | |
c6b750e1 | 11844 | |
2429c060 PB |
11845 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
11846 | set dummy lipo | |
11847 | if test $build = $target ; then | |
11848 | LIPO_FOR_TARGET="$2" | |
11849 | else | |
11850 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11851 | fi | |
d3f5afc4 MS |
11852 | else |
11853 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
11854 | fi |
11855 | ||
3a35eeb3 PB |
11856 | else |
11857 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
11858 | fi |
11859 | ||
11860 | ||
11861 | ||
11862 | ||
11863 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11864 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
11866 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11867 | if test -x $with_build_time_tools/nm; then |
11868 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
11869 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
11870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
11871 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 11872 | else |
81ecdfbb RW |
11873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11874 | $as_echo "no" >&6; } | |
3a35eeb3 | 11875 | fi |
2429c060 PB |
11876 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11877 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
11878 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
11879 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
11880 | fi |
11881 | fi | |
c6b750e1 | 11882 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11883 | # Extract the first word of "nm", so it can be a program name with args. |
11884 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
11885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11886 | $as_echo_n "checking for $ac_word... " >&6; } | |
11887 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
11888 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11889 | else |
c6b750e1 DJ |
11890 | case $NM_FOR_TARGET in |
11891 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11892 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
11893 | ;; | |
2429c060 | 11894 | *) |
c6b750e1 DJ |
11895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11896 | for as_dir in $gcc_cv_tool_dirs | |
11897 | do | |
11898 | IFS=$as_save_IFS | |
11899 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11900 | for ac_exec_ext in '' $ac_executable_extensions; do |
11901 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11902 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11903 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11904 | break 2 |
11905 | fi | |
11906 | done | |
81ecdfbb RW |
11907 | done |
11908 | IFS=$as_save_IFS | |
c6b750e1 | 11909 | |
2429c060 PB |
11910 | ;; |
11911 | esac | |
11912 | fi | |
c6b750e1 | 11913 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 11914 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
11915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11916 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 11917 | else |
81ecdfbb RW |
11918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11919 | $as_echo "no" >&6; } | |
2429c060 PB |
11920 | fi |
11921 | ||
81ecdfbb | 11922 | |
2429c060 PB |
11923 | fi |
11924 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
11925 | |
11926 | ||
11927 | if test -n "$NM_FOR_TARGET"; then | |
11928 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
11929 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11930 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11931 | fi | |
11932 | ||
11933 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11934 | for ncn_progname in nm; do | |
11935 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11936 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11938 | $as_echo_n "checking for $ac_word... " >&6; } | |
11939 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11940 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11941 | else |
11942 | if test -n "$NM_FOR_TARGET"; then | |
11943 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
11944 | else | |
11945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11946 | for as_dir in $PATH | |
11947 | do | |
11948 | IFS=$as_save_IFS | |
11949 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11950 | for ac_exec_ext in '' $ac_executable_extensions; do |
11951 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11952 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11954 | break 2 |
11955 | fi | |
11956 | done | |
81ecdfbb RW |
11957 | done |
11958 | IFS=$as_save_IFS | |
9a819804 AO |
11959 | |
11960 | fi | |
11961 | fi | |
11962 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11963 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
11964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11965 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 11966 | else |
81ecdfbb RW |
11967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11968 | $as_echo "no" >&6; } | |
9a819804 AO |
11969 | fi |
11970 | ||
81ecdfbb | 11971 | |
9a819804 AO |
11972 | done |
11973 | fi | |
11974 | ||
11975 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11976 | for ncn_progname in nm; do |
81ecdfbb RW |
11977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11978 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11979 | if test -x $with_build_time_tools/${ncn_progname}; then |
11980 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11982 | $as_echo "yes" >&6; } | |
2429c060 PB |
11983 | break |
11984 | else | |
81ecdfbb RW |
11985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11986 | $as_echo "no" >&6; } | |
2429c060 PB |
11987 | fi |
11988 | done | |
11989 | fi | |
11990 | ||
11991 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
11992 | for ncn_progname in nm; do | |
11993 | if test -n "$ncn_target_tool_prefix"; then | |
11994 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 11995 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_NM_FOR_TARGET+set}" = set; then : | |
11999 | $as_echo_n "(cached) " >&6 | |
859789af | 12000 | else |
55db4b87 PB |
12001 | if test -n "$NM_FOR_TARGET"; then |
12002 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12003 | else |
c6b750e1 DJ |
12004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12005 | for as_dir in $PATH | |
12006 | do | |
12007 | IFS=$as_save_IFS | |
12008 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12009 | for ac_exec_ext in '' $ac_executable_extensions; do |
12010 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12011 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12012 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12013 | break 2 |
12014 | fi | |
12015 | done | |
81ecdfbb RW |
12016 | done |
12017 | IFS=$as_save_IFS | |
c6b750e1 | 12018 | |
859789af AC |
12019 | fi |
12020 | fi | |
c6b750e1 | 12021 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 12022 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12024 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12025 | else |
81ecdfbb RW |
12026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12027 | $as_echo "no" >&6; } | |
859789af AC |
12028 | fi |
12029 | ||
81ecdfbb | 12030 | |
2429c060 PB |
12031 | fi |
12032 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12033 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12034 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12036 | $as_echo_n "checking for $ac_word... " >&6; } | |
12037 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12038 | $as_echo_n "(cached) " >&6 | |
859789af | 12039 | else |
05cbd757 PB |
12040 | if test -n "$NM_FOR_TARGET"; then |
12041 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12042 | else |
c6b750e1 DJ |
12043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12044 | for as_dir in $PATH | |
12045 | do | |
12046 | IFS=$as_save_IFS | |
12047 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12048 | for ac_exec_ext in '' $ac_executable_extensions; do |
12049 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12050 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12051 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12052 | break 2 |
12053 | fi | |
12054 | done | |
81ecdfbb RW |
12055 | done |
12056 | IFS=$as_save_IFS | |
c6b750e1 | 12057 | |
859789af AC |
12058 | fi |
12059 | fi | |
c6b750e1 | 12060 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 12061 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12063 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12064 | else |
81ecdfbb RW |
12065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12066 | $as_echo "no" >&6; } | |
859789af | 12067 | fi |
c6b750e1 | 12068 | |
81ecdfbb | 12069 | |
2429c060 PB |
12070 | fi |
12071 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12072 | done | |
12073 | fi | |
c6b750e1 | 12074 | |
05cbd757 PB |
12075 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12076 | set dummy nm | |
12077 | if test $build = $target ; then | |
12078 | NM_FOR_TARGET="$2" | |
859789af | 12079 | else |
05cbd757 | 12080 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 12081 | fi |
d3f5afc4 MS |
12082 | else |
12083 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
12084 | fi |
12085 | ||
3a35eeb3 PB |
12086 | else |
12087 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
12088 | fi |
12089 | ||
12090 | ||
12091 | ||
12092 | ||
6b91c541 AP |
12093 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12094 | if test -n "$with_build_time_tools"; then | |
12095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12096 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12097 | if test -x $with_build_time_tools/objcopy; then | |
12098 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12099 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12101 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12102 | else | |
12103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12104 | $as_echo "no" >&6; } | |
12105 | fi | |
12106 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12107 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12108 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12109 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12110 | fi | |
12111 | fi | |
12112 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12113 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12114 | set dummy objcopy; ac_word=$2 | |
12115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12116 | $as_echo_n "checking for $ac_word... " >&6; } | |
12117 | if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12118 | $as_echo_n "(cached) " >&6 | |
12119 | else | |
12120 | case $OBJCOPY_FOR_TARGET in | |
12121 | [\\/]* | ?:[\\/]*) | |
12122 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12123 | ;; | |
12124 | *) | |
12125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12126 | for as_dir in $gcc_cv_tool_dirs | |
12127 | do | |
12128 | IFS=$as_save_IFS | |
12129 | test -z "$as_dir" && as_dir=. | |
12130 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12131 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12132 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12134 | break 2 | |
12135 | fi | |
12136 | done | |
12137 | done | |
12138 | IFS=$as_save_IFS | |
12139 | ||
12140 | ;; | |
12141 | esac | |
12142 | fi | |
12143 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12144 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12146 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12147 | else | |
12148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12149 | $as_echo "no" >&6; } | |
12150 | fi | |
12151 | ||
12152 | ||
12153 | fi | |
12154 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12155 | ||
12156 | ||
12157 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12158 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12159 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12160 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12161 | fi | |
12162 | ||
12163 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12164 | for ncn_progname in objcopy; do | |
12165 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12166 | set dummy ${ncn_progname}; ac_word=$2 | |
12167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12168 | $as_echo_n "checking for $ac_word... " >&6; } | |
12169 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12170 | $as_echo_n "(cached) " >&6 | |
12171 | else | |
12172 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12173 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12174 | else | |
12175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12176 | for as_dir in $PATH | |
12177 | do | |
12178 | IFS=$as_save_IFS | |
12179 | test -z "$as_dir" && as_dir=. | |
12180 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12181 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12182 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12183 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12184 | break 2 | |
12185 | fi | |
12186 | done | |
12187 | done | |
12188 | IFS=$as_save_IFS | |
12189 | ||
12190 | fi | |
12191 | fi | |
12192 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12193 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12195 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12196 | else | |
12197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12198 | $as_echo "no" >&6; } | |
12199 | fi | |
12200 | ||
12201 | ||
12202 | done | |
12203 | fi | |
12204 | ||
12205 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12206 | for ncn_progname in objcopy; do | |
12207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12208 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12209 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12210 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12212 | $as_echo "yes" >&6; } | |
12213 | break | |
12214 | else | |
12215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12216 | $as_echo "no" >&6; } | |
12217 | fi | |
12218 | done | |
12219 | fi | |
12220 | ||
12221 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12222 | for ncn_progname in objcopy; do | |
12223 | if test -n "$ncn_target_tool_prefix"; then | |
12224 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12225 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
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_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12229 | $as_echo_n "(cached) " >&6 | |
12230 | else | |
12231 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12232 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12233 | else | |
12234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12235 | for as_dir in $PATH | |
12236 | do | |
12237 | IFS=$as_save_IFS | |
12238 | test -z "$as_dir" && as_dir=. | |
12239 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12240 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12241 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12243 | break 2 | |
12244 | fi | |
12245 | done | |
12246 | done | |
12247 | IFS=$as_save_IFS | |
12248 | ||
12249 | fi | |
12250 | fi | |
12251 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12252 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12254 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12255 | else | |
12256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12257 | $as_echo "no" >&6; } | |
12258 | fi | |
12259 | ||
12260 | ||
12261 | fi | |
12262 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12263 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12264 | set dummy ${ncn_progname}; ac_word=$2 | |
12265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12266 | $as_echo_n "checking for $ac_word... " >&6; } | |
12267 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12268 | $as_echo_n "(cached) " >&6 | |
12269 | else | |
12270 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12271 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12272 | else | |
12273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12274 | for as_dir in $PATH | |
12275 | do | |
12276 | IFS=$as_save_IFS | |
12277 | test -z "$as_dir" && as_dir=. | |
12278 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12279 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12280 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12281 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12282 | break 2 | |
12283 | fi | |
12284 | done | |
12285 | done | |
12286 | IFS=$as_save_IFS | |
12287 | ||
12288 | fi | |
12289 | fi | |
12290 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12291 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12293 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12294 | else | |
12295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12296 | $as_echo "no" >&6; } | |
12297 | fi | |
12298 | ||
12299 | ||
12300 | fi | |
12301 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12302 | done | |
12303 | fi | |
12304 | ||
12305 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12306 | set dummy objcopy | |
12307 | if test $build = $target ; then | |
12308 | OBJCOPY_FOR_TARGET="$2" | |
12309 | else | |
12310 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12311 | fi | |
12312 | else | |
12313 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12314 | fi | |
12315 | ||
12316 | else | |
12317 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12318 | fi | |
12319 | ||
12320 | ||
12321 | ||
12322 | ||
2429c060 PB |
12323 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12324 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12326 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12327 | if test -x $with_build_time_tools/objdump; then |
12328 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12329 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
12330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12331 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12332 | else |
81ecdfbb RW |
12333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12334 | $as_echo "no" >&6; } | |
3a35eeb3 | 12335 | fi |
2429c060 PB |
12336 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12337 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
12338 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12339 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
12340 | fi |
12341 | fi | |
c6b750e1 | 12342 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12343 | # Extract the first word of "objdump", so it can be a program name with args. |
12344 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
12345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12346 | $as_echo_n "checking for $ac_word... " >&6; } | |
12347 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12348 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12349 | else |
c6b750e1 DJ |
12350 | case $OBJDUMP_FOR_TARGET in |
12351 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12352 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12353 | ;; | |
2429c060 | 12354 | *) |
c6b750e1 DJ |
12355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12356 | for as_dir in $gcc_cv_tool_dirs | |
12357 | do | |
12358 | IFS=$as_save_IFS | |
12359 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12360 | for ac_exec_ext in '' $ac_executable_extensions; do |
12361 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12362 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12363 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12364 | break 2 |
12365 | fi | |
12366 | done | |
81ecdfbb RW |
12367 | done |
12368 | IFS=$as_save_IFS | |
c6b750e1 | 12369 | |
2429c060 PB |
12370 | ;; |
12371 | esac | |
12372 | fi | |
c6b750e1 | 12373 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 12374 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12376 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 12377 | else |
81ecdfbb RW |
12378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12379 | $as_echo "no" >&6; } | |
2429c060 PB |
12380 | fi |
12381 | ||
81ecdfbb | 12382 | |
2429c060 PB |
12383 | fi |
12384 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
12385 | |
12386 | ||
12387 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12388 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12389 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12390 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12391 | fi | |
12392 | ||
12393 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12394 | for ncn_progname in objdump; do | |
12395 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12396 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12398 | $as_echo_n "checking for $ac_word... " >&6; } | |
12399 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12400 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12401 | else |
12402 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12403 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12404 | else | |
12405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12406 | for as_dir in $PATH | |
12407 | do | |
12408 | IFS=$as_save_IFS | |
12409 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12410 | for ac_exec_ext in '' $ac_executable_extensions; do |
12411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12412 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12414 | break 2 |
12415 | fi | |
12416 | done | |
81ecdfbb RW |
12417 | done |
12418 | IFS=$as_save_IFS | |
9a819804 AO |
12419 | |
12420 | fi | |
12421 | fi | |
12422 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12423 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
12424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12425 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 12426 | else |
81ecdfbb RW |
12427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12428 | $as_echo "no" >&6; } | |
9a819804 AO |
12429 | fi |
12430 | ||
81ecdfbb | 12431 | |
9a819804 AO |
12432 | done |
12433 | fi | |
12434 | ||
12435 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12436 | for ncn_progname in objdump; do |
81ecdfbb RW |
12437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12438 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12439 | if test -x $with_build_time_tools/${ncn_progname}; then |
12440 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12442 | $as_echo "yes" >&6; } | |
2429c060 PB |
12443 | break |
12444 | else | |
81ecdfbb RW |
12445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12446 | $as_echo "no" >&6; } | |
2429c060 PB |
12447 | fi |
12448 | done | |
12449 | fi | |
12450 | ||
12451 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12452 | for ncn_progname in objdump; do | |
12453 | if test -n "$ncn_target_tool_prefix"; then | |
12454 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12455 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12459 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12460 | else |
12461 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12462 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12463 | else | |
c6b750e1 DJ |
12464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12465 | for as_dir in $PATH | |
12466 | do | |
12467 | IFS=$as_save_IFS | |
12468 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12469 | for ac_exec_ext in '' $ac_executable_extensions; do |
12470 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12471 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12472 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12473 | break 2 |
12474 | fi | |
12475 | done | |
81ecdfbb RW |
12476 | done |
12477 | IFS=$as_save_IFS | |
c6b750e1 | 12478 | |
5ae72758 DJ |
12479 | fi |
12480 | fi | |
c6b750e1 | 12481 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12482 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12484 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12485 | else |
81ecdfbb RW |
12486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12487 | $as_echo "no" >&6; } | |
5ae72758 DJ |
12488 | fi |
12489 | ||
81ecdfbb | 12490 | |
2429c060 PB |
12491 | fi |
12492 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12493 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12494 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12496 | $as_echo_n "checking for $ac_word... " >&6; } | |
12497 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12498 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12499 | else |
12500 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12501 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12502 | else | |
c6b750e1 DJ |
12503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12504 | for as_dir in $PATH | |
12505 | do | |
12506 | IFS=$as_save_IFS | |
12507 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12508 | for ac_exec_ext in '' $ac_executable_extensions; do |
12509 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12510 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12511 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12512 | break 2 |
12513 | fi | |
12514 | done | |
81ecdfbb RW |
12515 | done |
12516 | IFS=$as_save_IFS | |
c6b750e1 | 12517 | |
5ae72758 DJ |
12518 | fi |
12519 | fi | |
c6b750e1 | 12520 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12521 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12523 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12524 | else |
81ecdfbb RW |
12525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12526 | $as_echo "no" >&6; } | |
5ae72758 | 12527 | fi |
c6b750e1 | 12528 | |
81ecdfbb | 12529 | |
2429c060 PB |
12530 | fi |
12531 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12532 | done | |
12533 | fi | |
c6b750e1 | 12534 | |
5ae72758 DJ |
12535 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12536 | set dummy objdump | |
12537 | if test $build = $target ; then | |
12538 | OBJDUMP_FOR_TARGET="$2" | |
12539 | else | |
12540 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12541 | fi | |
d3f5afc4 MS |
12542 | else |
12543 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
12544 | fi |
12545 | ||
3a35eeb3 PB |
12546 | else |
12547 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
12548 | fi |
12549 | ||
12550 | ||
12551 | ||
12552 | ||
12553 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12554 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12556 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12557 | if test -x $with_build_time_tools/ranlib; then |
12558 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12559 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
12560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12561 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 12562 | else |
81ecdfbb RW |
12563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12564 | $as_echo "no" >&6; } | |
3a35eeb3 | 12565 | fi |
2429c060 PB |
12566 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12567 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
12568 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12569 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
12570 | fi |
12571 | fi | |
c6b750e1 | 12572 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12573 | # Extract the first word of "ranlib", so it can be a program name with args. |
12574 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
12575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12576 | $as_echo_n "checking for $ac_word... " >&6; } | |
12577 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12578 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12579 | else |
c6b750e1 DJ |
12580 | case $RANLIB_FOR_TARGET in |
12581 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12582 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12583 | ;; | |
2429c060 | 12584 | *) |
c6b750e1 DJ |
12585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12586 | for as_dir in $gcc_cv_tool_dirs | |
12587 | do | |
12588 | IFS=$as_save_IFS | |
12589 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12590 | for ac_exec_ext in '' $ac_executable_extensions; do |
12591 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12592 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12593 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12594 | break 2 |
12595 | fi | |
12596 | done | |
81ecdfbb RW |
12597 | done |
12598 | IFS=$as_save_IFS | |
c6b750e1 | 12599 | |
2429c060 PB |
12600 | ;; |
12601 | esac | |
12602 | fi | |
c6b750e1 | 12603 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 12604 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12606 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 12607 | else |
81ecdfbb RW |
12608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12609 | $as_echo "no" >&6; } | |
2429c060 PB |
12610 | fi |
12611 | ||
81ecdfbb | 12612 | |
2429c060 PB |
12613 | fi |
12614 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
12615 | |
12616 | ||
12617 | if test -n "$RANLIB_FOR_TARGET"; then | |
12618 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12619 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12620 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12621 | fi | |
12622 | ||
12623 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12624 | for ncn_progname in ranlib; do | |
12625 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12626 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12628 | $as_echo_n "checking for $ac_word... " >&6; } | |
12629 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12630 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12631 | else |
12632 | if test -n "$RANLIB_FOR_TARGET"; then | |
12633 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12634 | else | |
12635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12636 | for as_dir in $PATH | |
12637 | do | |
12638 | IFS=$as_save_IFS | |
12639 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12640 | for ac_exec_ext in '' $ac_executable_extensions; do |
12641 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12642 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12643 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12644 | break 2 |
12645 | fi | |
12646 | done | |
81ecdfbb RW |
12647 | done |
12648 | IFS=$as_save_IFS | |
9a819804 AO |
12649 | |
12650 | fi | |
12651 | fi | |
12652 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12653 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
12654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12655 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 12656 | else |
81ecdfbb RW |
12657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12658 | $as_echo "no" >&6; } | |
9a819804 AO |
12659 | fi |
12660 | ||
81ecdfbb | 12661 | |
9a819804 AO |
12662 | done |
12663 | fi | |
12664 | ||
12665 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12666 | for ncn_progname in ranlib; do |
81ecdfbb RW |
12667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12668 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12669 | if test -x $with_build_time_tools/${ncn_progname}; then |
12670 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12672 | $as_echo "yes" >&6; } | |
2429c060 PB |
12673 | break |
12674 | else | |
81ecdfbb RW |
12675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12676 | $as_echo "no" >&6; } | |
2429c060 PB |
12677 | fi |
12678 | done | |
12679 | fi | |
12680 | ||
12681 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12682 | for ncn_progname in ranlib; do | |
12683 | if test -n "$ncn_target_tool_prefix"; then | |
12684 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12685 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12689 | $as_echo_n "(cached) " >&6 | |
859789af | 12690 | else |
55db4b87 PB |
12691 | if test -n "$RANLIB_FOR_TARGET"; then |
12692 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12693 | else |
c6b750e1 DJ |
12694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12695 | for as_dir in $PATH | |
12696 | do | |
12697 | IFS=$as_save_IFS | |
12698 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12699 | for ac_exec_ext in '' $ac_executable_extensions; do |
12700 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12701 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12702 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12703 | break 2 |
12704 | fi | |
12705 | done | |
81ecdfbb RW |
12706 | done |
12707 | IFS=$as_save_IFS | |
c6b750e1 | 12708 | |
859789af AC |
12709 | fi |
12710 | fi | |
c6b750e1 | 12711 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 12712 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12714 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12715 | else |
81ecdfbb RW |
12716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12717 | $as_echo "no" >&6; } | |
859789af AC |
12718 | fi |
12719 | ||
81ecdfbb | 12720 | |
2429c060 PB |
12721 | fi |
12722 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12723 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12724 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12726 | $as_echo_n "checking for $ac_word... " >&6; } | |
12727 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12728 | $as_echo_n "(cached) " >&6 | |
859789af | 12729 | else |
05cbd757 PB |
12730 | if test -n "$RANLIB_FOR_TARGET"; then |
12731 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12732 | else |
c6b750e1 DJ |
12733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12734 | for as_dir in $PATH | |
12735 | do | |
12736 | IFS=$as_save_IFS | |
12737 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12738 | for ac_exec_ext in '' $ac_executable_extensions; do |
12739 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12740 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12741 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12742 | break 2 |
12743 | fi | |
12744 | done | |
81ecdfbb RW |
12745 | done |
12746 | IFS=$as_save_IFS | |
c6b750e1 | 12747 | |
859789af AC |
12748 | fi |
12749 | fi | |
c6b750e1 | 12750 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 12751 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12753 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12754 | else |
81ecdfbb RW |
12755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12756 | $as_echo "no" >&6; } | |
859789af | 12757 | fi |
c6b750e1 | 12758 | |
81ecdfbb | 12759 | |
2429c060 PB |
12760 | fi |
12761 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12762 | done | |
12763 | fi | |
c6b750e1 | 12764 | |
2429c060 PB |
12765 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12766 | set dummy ranlib | |
12767 | if test $build = $target ; then | |
12768 | RANLIB_FOR_TARGET="$2" | |
12769 | else | |
12770 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 12771 | fi |
d3f5afc4 MS |
12772 | else |
12773 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 12774 | fi |
05cbd757 | 12775 | |
3a35eeb3 PB |
12776 | else |
12777 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
12778 | fi |
12779 | ||
2429c060 PB |
12780 | |
12781 | ||
12782 | ||
b121d7d4 DD |
12783 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
12784 | if test -n "$with_build_time_tools"; then | |
12785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
12786 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
12787 | if test -x $with_build_time_tools/readelf; then | |
12788 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
12789 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
12791 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
12792 | else | |
12793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12794 | $as_echo "no" >&6; } | |
12795 | fi | |
12796 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12797 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
12798 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
12799 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12800 | fi | |
12801 | fi | |
12802 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12803 | # Extract the first word of "readelf", so it can be a program name with args. | |
12804 | set dummy readelf; ac_word=$2 | |
12805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12806 | $as_echo_n "checking for $ac_word... " >&6; } | |
12807 | if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then : | |
12808 | $as_echo_n "(cached) " >&6 | |
12809 | else | |
12810 | case $READELF_FOR_TARGET in | |
12811 | [\\/]* | ?:[\\/]*) | |
12812 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
12813 | ;; | |
12814 | *) | |
12815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12816 | for as_dir in $gcc_cv_tool_dirs | |
12817 | do | |
12818 | IFS=$as_save_IFS | |
12819 | test -z "$as_dir" && as_dir=. | |
12820 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12821 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12822 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12823 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12824 | break 2 | |
12825 | fi | |
12826 | done | |
12827 | done | |
12828 | IFS=$as_save_IFS | |
12829 | ||
12830 | ;; | |
12831 | esac | |
12832 | fi | |
12833 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12834 | if test -n "$READELF_FOR_TARGET"; then | |
12835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12836 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12837 | else | |
12838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12839 | $as_echo "no" >&6; } | |
12840 | fi | |
12841 | ||
12842 | ||
12843 | fi | |
12844 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
12845 | ||
12846 | ||
12847 | if test -n "$READELF_FOR_TARGET"; then | |
12848 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12849 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12850 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12851 | fi | |
12852 | ||
12853 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12854 | for ncn_progname in readelf; do | |
12855 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12856 | set dummy ${ncn_progname}; ac_word=$2 | |
12857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12858 | $as_echo_n "checking for $ac_word... " >&6; } | |
12859 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12860 | $as_echo_n "(cached) " >&6 | |
12861 | else | |
12862 | if test -n "$READELF_FOR_TARGET"; then | |
12863 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12864 | else | |
12865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12866 | for as_dir in $PATH | |
12867 | do | |
12868 | IFS=$as_save_IFS | |
12869 | test -z "$as_dir" && as_dir=. | |
12870 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12871 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12872 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12874 | break 2 | |
12875 | fi | |
12876 | done | |
12877 | done | |
12878 | IFS=$as_save_IFS | |
12879 | ||
12880 | fi | |
12881 | fi | |
12882 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12883 | if test -n "$READELF_FOR_TARGET"; then | |
12884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12885 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12886 | else | |
12887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12888 | $as_echo "no" >&6; } | |
12889 | fi | |
12890 | ||
12891 | ||
12892 | done | |
12893 | fi | |
12894 | ||
12895 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12896 | for ncn_progname in readelf; do | |
12897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12898 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12899 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12900 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12902 | $as_echo "yes" >&6; } | |
12903 | break | |
12904 | else | |
12905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12906 | $as_echo "no" >&6; } | |
12907 | fi | |
12908 | done | |
12909 | fi | |
12910 | ||
12911 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12912 | for ncn_progname in readelf; do | |
12913 | if test -n "$ncn_target_tool_prefix"; then | |
12914 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12915 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
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_prog_READELF_FOR_TARGET+set}" = set; then : | |
12919 | $as_echo_n "(cached) " >&6 | |
12920 | else | |
12921 | if test -n "$READELF_FOR_TARGET"; then | |
12922 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12923 | else | |
12924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12925 | for as_dir in $PATH | |
12926 | do | |
12927 | IFS=$as_save_IFS | |
12928 | test -z "$as_dir" && as_dir=. | |
12929 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12930 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12931 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12933 | break 2 | |
12934 | fi | |
12935 | done | |
12936 | done | |
12937 | IFS=$as_save_IFS | |
12938 | ||
12939 | fi | |
12940 | fi | |
12941 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12942 | if test -n "$READELF_FOR_TARGET"; then | |
12943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12944 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12945 | else | |
12946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12947 | $as_echo "no" >&6; } | |
12948 | fi | |
12949 | ||
12950 | ||
12951 | fi | |
12952 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
12953 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12954 | set dummy ${ncn_progname}; ac_word=$2 | |
12955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12956 | $as_echo_n "checking for $ac_word... " >&6; } | |
12957 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12958 | $as_echo_n "(cached) " >&6 | |
12959 | else | |
12960 | if test -n "$READELF_FOR_TARGET"; then | |
12961 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12962 | else | |
12963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12964 | for as_dir in $PATH | |
12965 | do | |
12966 | IFS=$as_save_IFS | |
12967 | test -z "$as_dir" && as_dir=. | |
12968 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12969 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12970 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12971 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12972 | break 2 | |
12973 | fi | |
12974 | done | |
12975 | done | |
12976 | IFS=$as_save_IFS | |
12977 | ||
12978 | fi | |
12979 | fi | |
12980 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12981 | if test -n "$READELF_FOR_TARGET"; then | |
12982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12983 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12984 | else | |
12985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12986 | $as_echo "no" >&6; } | |
12987 | fi | |
12988 | ||
12989 | ||
12990 | fi | |
12991 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
12992 | done | |
12993 | fi | |
12994 | ||
12995 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
12996 | set dummy readelf | |
12997 | if test $build = $target ; then | |
12998 | READELF_FOR_TARGET="$2" | |
12999 | else | |
13000 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13001 | fi | |
13002 | else | |
13003 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13004 | fi | |
13005 | ||
13006 | else | |
13007 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13008 | fi | |
13009 | ||
13010 | ||
13011 | ||
13012 | ||
2429c060 PB |
13013 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13014 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13016 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13017 | if test -x $with_build_time_tools/strip; then |
13018 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13019 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
13020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13021 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 13022 | else |
81ecdfbb RW |
13023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13024 | $as_echo "no" >&6; } | |
3a35eeb3 | 13025 | fi |
2429c060 PB |
13026 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13027 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
13028 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13029 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
13030 | fi |
13031 | fi | |
c6b750e1 | 13032 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13033 | # Extract the first word of "strip", so it can be a program name with args. |
13034 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
13035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13036 | $as_echo_n "checking for $ac_word... " >&6; } | |
13037 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
13038 | $as_echo_n "(cached) " >&6 | |
2429c060 | 13039 | else |
c6b750e1 DJ |
13040 | case $STRIP_FOR_TARGET in |
13041 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13042 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13043 | ;; | |
2429c060 | 13044 | *) |
c6b750e1 DJ |
13045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13046 | for as_dir in $gcc_cv_tool_dirs | |
13047 | do | |
13048 | IFS=$as_save_IFS | |
13049 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13050 | for ac_exec_ext in '' $ac_executable_extensions; do |
13051 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13052 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13053 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13054 | break 2 |
13055 | fi | |
13056 | done | |
81ecdfbb RW |
13057 | done |
13058 | IFS=$as_save_IFS | |
c6b750e1 | 13059 | |
2429c060 PB |
13060 | ;; |
13061 | esac | |
13062 | fi | |
c6b750e1 | 13063 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 13064 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13066 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 13067 | else |
81ecdfbb RW |
13068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13069 | $as_echo "no" >&6; } | |
2429c060 PB |
13070 | fi |
13071 | ||
81ecdfbb | 13072 | |
2429c060 PB |
13073 | fi |
13074 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
13075 | |
13076 | ||
13077 | if test -n "$STRIP_FOR_TARGET"; then | |
13078 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13079 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13080 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13081 | fi | |
13082 | ||
13083 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13084 | for ncn_progname in strip; do | |
13085 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13086 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13088 | $as_echo_n "checking for $ac_word... " >&6; } | |
13089 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13090 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
13091 | else |
13092 | if test -n "$STRIP_FOR_TARGET"; then | |
13093 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13094 | else | |
13095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13096 | for as_dir in $PATH | |
13097 | do | |
13098 | IFS=$as_save_IFS | |
13099 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13100 | for ac_exec_ext in '' $ac_executable_extensions; do |
13101 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 13102 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13103 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13104 | break 2 |
13105 | fi | |
13106 | done | |
81ecdfbb RW |
13107 | done |
13108 | IFS=$as_save_IFS | |
9a819804 AO |
13109 | |
13110 | fi | |
13111 | fi | |
13112 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13113 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
13114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13115 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 13116 | else |
81ecdfbb RW |
13117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13118 | $as_echo "no" >&6; } | |
9a819804 AO |
13119 | fi |
13120 | ||
81ecdfbb | 13121 | |
9a819804 AO |
13122 | done |
13123 | fi | |
13124 | ||
13125 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13126 | for ncn_progname in strip; do |
81ecdfbb RW |
13127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13128 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13129 | if test -x $with_build_time_tools/${ncn_progname}; then |
13130 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13132 | $as_echo "yes" >&6; } | |
2429c060 PB |
13133 | break |
13134 | else | |
81ecdfbb RW |
13135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13136 | $as_echo "no" >&6; } | |
2429c060 PB |
13137 | fi |
13138 | done | |
13139 | fi | |
13140 | ||
13141 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13142 | for ncn_progname in strip; do | |
13143 | if test -n "$ncn_target_tool_prefix"; then | |
13144 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13145 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13147 | $as_echo_n "checking for $ac_word... " >&6; } | |
13148 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13149 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
13150 | else |
13151 | if test -n "$STRIP_FOR_TARGET"; then | |
13152 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
13153 | else |
13154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13155 | for as_dir in $PATH | |
13156 | do | |
13157 | IFS=$as_save_IFS | |
13158 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13159 | for ac_exec_ext in '' $ac_executable_extensions; do |
13160 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13161 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13162 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13163 | break 2 |
13164 | fi | |
13165 | done | |
81ecdfbb RW |
13166 | done |
13167 | IFS=$as_save_IFS | |
c6b750e1 | 13168 | |
7e0f7140 GK |
13169 | fi |
13170 | fi | |
c6b750e1 | 13171 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13172 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13174 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13175 | else |
81ecdfbb RW |
13176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13177 | $as_echo "no" >&6; } | |
7e0f7140 GK |
13178 | fi |
13179 | ||
81ecdfbb | 13180 | |
2429c060 PB |
13181 | fi |
13182 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13183 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13184 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13186 | $as_echo_n "checking for $ac_word... " >&6; } | |
13187 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13188 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
13189 | else |
13190 | if test -n "$STRIP_FOR_TARGET"; then | |
13191 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13192 | else | |
c6b750e1 DJ |
13193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13194 | for as_dir in $PATH | |
13195 | do | |
13196 | IFS=$as_save_IFS | |
13197 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13198 | for ac_exec_ext in '' $ac_executable_extensions; do |
13199 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13200 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13201 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13202 | break 2 |
13203 | fi | |
13204 | done | |
81ecdfbb RW |
13205 | done |
13206 | IFS=$as_save_IFS | |
c6b750e1 | 13207 | |
7e0f7140 GK |
13208 | fi |
13209 | fi | |
c6b750e1 | 13210 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13211 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13213 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13214 | else |
81ecdfbb RW |
13215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13216 | $as_echo "no" >&6; } | |
7e0f7140 | 13217 | fi |
c6b750e1 | 13218 | |
81ecdfbb | 13219 | |
2429c060 PB |
13220 | fi |
13221 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13222 | done | |
13223 | fi | |
c6b750e1 | 13224 | |
7e0f7140 GK |
13225 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13226 | set dummy strip | |
13227 | if test $build = $target ; then | |
13228 | STRIP_FOR_TARGET="$2" | |
13229 | else | |
13230 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13231 | fi | |
d3f5afc4 MS |
13232 | else |
13233 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
13234 | fi |
13235 | ||
3a35eeb3 PB |
13236 | else |
13237 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
13238 | fi |
13239 | ||
13240 | ||
13241 | ||
13242 | ||
13243 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13244 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13246 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13247 | if test -x $with_build_time_tools/windres; then |
13248 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13249 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
13250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13251 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 13252 | else |
81ecdfbb RW |
13253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13254 | $as_echo "no" >&6; } | |
3a35eeb3 | 13255 | fi |
2429c060 PB |
13256 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13257 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
13258 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13259 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
13260 | fi |
13261 | fi | |
c6b750e1 | 13262 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13263 | # Extract the first word of "windres", so it can be a program name with args. |
13264 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
13265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13266 | $as_echo_n "checking for $ac_word... " >&6; } | |
13267 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
13268 | $as_echo_n "(cached) " >&6 | |
2429c060 | 13269 | else |
c6b750e1 DJ |
13270 | case $WINDRES_FOR_TARGET in |
13271 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13272 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13273 | ;; | |
2429c060 | 13274 | *) |
c6b750e1 DJ |
13275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13276 | for as_dir in $gcc_cv_tool_dirs | |
13277 | do | |
13278 | IFS=$as_save_IFS | |
13279 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13280 | for ac_exec_ext in '' $ac_executable_extensions; do |
13281 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13282 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13283 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13284 | break 2 |
13285 | fi | |
13286 | done | |
81ecdfbb RW |
13287 | done |
13288 | IFS=$as_save_IFS | |
c6b750e1 | 13289 | |
2429c060 PB |
13290 | ;; |
13291 | esac | |
13292 | fi | |
c6b750e1 | 13293 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 13294 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13296 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 13297 | else |
81ecdfbb RW |
13298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13299 | $as_echo "no" >&6; } | |
2429c060 PB |
13300 | fi |
13301 | ||
81ecdfbb | 13302 | |
2429c060 PB |
13303 | fi |
13304 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
13305 | |
13306 | ||
13307 | if test -n "$WINDRES_FOR_TARGET"; then | |
13308 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13309 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13310 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13311 | fi | |
13312 | ||
13313 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13314 | for ncn_progname in windres; do | |
13315 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13316 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13318 | $as_echo_n "checking for $ac_word... " >&6; } | |
13319 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13320 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
13321 | else |
13322 | if test -n "$WINDRES_FOR_TARGET"; then | |
13323 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13324 | else | |
13325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13326 | for as_dir in $PATH | |
13327 | do | |
13328 | IFS=$as_save_IFS | |
13329 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13330 | for ac_exec_ext in '' $ac_executable_extensions; do |
13331 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 13332 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13333 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13334 | break 2 |
13335 | fi | |
13336 | done | |
81ecdfbb RW |
13337 | done |
13338 | IFS=$as_save_IFS | |
9a819804 AO |
13339 | |
13340 | fi | |
13341 | fi | |
13342 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13343 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
13344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13345 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 13346 | else |
81ecdfbb RW |
13347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13348 | $as_echo "no" >&6; } | |
9a819804 AO |
13349 | fi |
13350 | ||
81ecdfbb | 13351 | |
9a819804 AO |
13352 | done |
13353 | fi | |
13354 | ||
13355 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13356 | for ncn_progname in windres; do |
81ecdfbb RW |
13357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13358 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13359 | if test -x $with_build_time_tools/${ncn_progname}; then |
13360 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13362 | $as_echo "yes" >&6; } | |
2429c060 PB |
13363 | break |
13364 | else | |
81ecdfbb RW |
13365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13366 | $as_echo "no" >&6; } | |
2429c060 PB |
13367 | fi |
13368 | done | |
13369 | fi | |
13370 | ||
13371 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13372 | for ncn_progname in windres; do | |
13373 | if test -n "$ncn_target_tool_prefix"; then | |
13374 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13375 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13377 | $as_echo_n "checking for $ac_word... " >&6; } | |
13378 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13379 | $as_echo_n "(cached) " >&6 | |
859789af | 13380 | else |
55db4b87 PB |
13381 | if test -n "$WINDRES_FOR_TARGET"; then |
13382 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13383 | else |
c6b750e1 DJ |
13384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13385 | for as_dir in $PATH | |
13386 | do | |
13387 | IFS=$as_save_IFS | |
13388 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13389 | for ac_exec_ext in '' $ac_executable_extensions; do |
13390 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13391 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13392 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13393 | break 2 |
13394 | fi | |
13395 | done | |
81ecdfbb RW |
13396 | done |
13397 | IFS=$as_save_IFS | |
c6b750e1 | 13398 | |
859789af AC |
13399 | fi |
13400 | fi | |
c6b750e1 | 13401 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 13402 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13404 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13405 | else |
81ecdfbb RW |
13406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13407 | $as_echo "no" >&6; } | |
859789af AC |
13408 | fi |
13409 | ||
81ecdfbb | 13410 | |
2429c060 PB |
13411 | fi |
13412 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13413 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13414 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13416 | $as_echo_n "checking for $ac_word... " >&6; } | |
13417 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13418 | $as_echo_n "(cached) " >&6 | |
859789af | 13419 | else |
05cbd757 PB |
13420 | if test -n "$WINDRES_FOR_TARGET"; then |
13421 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13422 | else |
c6b750e1 DJ |
13423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13424 | for as_dir in $PATH | |
13425 | do | |
13426 | IFS=$as_save_IFS | |
13427 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13428 | for ac_exec_ext in '' $ac_executable_extensions; do |
13429 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13430 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13431 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13432 | break 2 |
13433 | fi | |
13434 | done | |
81ecdfbb RW |
13435 | done |
13436 | IFS=$as_save_IFS | |
c6b750e1 | 13437 | |
859789af AC |
13438 | fi |
13439 | fi | |
c6b750e1 | 13440 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 13441 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13443 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13444 | else |
81ecdfbb RW |
13445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13446 | $as_echo "no" >&6; } | |
859789af | 13447 | fi |
c6b750e1 | 13448 | |
81ecdfbb | 13449 | |
2429c060 PB |
13450 | fi |
13451 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13452 | done | |
13453 | fi | |
c6b750e1 | 13454 | |
05cbd757 PB |
13455 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13456 | set dummy windres | |
13457 | if test $build = $target ; then | |
13458 | WINDRES_FOR_TARGET="$2" | |
859789af | 13459 | else |
05cbd757 | 13460 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 13461 | fi |
d3f5afc4 MS |
13462 | else |
13463 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
13464 | fi |
13465 | ||
3a35eeb3 PB |
13466 | else |
13467 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
13468 | fi |
13469 | ||
852e5f18 | 13470 | |
0c24b341 NC |
13471 | |
13472 | ||
13473 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13474 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13476 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13477 | if test -x $with_build_time_tools/windmc; then |
13478 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13479 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
13480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13481 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13482 | else |
81ecdfbb RW |
13483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13484 | $as_echo "no" >&6; } | |
0c24b341 NC |
13485 | fi |
13486 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13487 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
13488 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
13489 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13490 | fi | |
13491 | fi | |
13492 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13493 | # Extract the first word of "windmc", so it can be a program name with args. | |
13494 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
13495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13496 | $as_echo_n "checking for $ac_word... " >&6; } | |
13497 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13498 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13499 | else |
13500 | case $WINDMC_FOR_TARGET in | |
13501 | [\\/]* | ?:[\\/]*) | |
13502 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13503 | ;; | |
13504 | *) | |
13505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13506 | for as_dir in $gcc_cv_tool_dirs | |
13507 | do | |
13508 | IFS=$as_save_IFS | |
13509 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13510 | for ac_exec_ext in '' $ac_executable_extensions; do |
13511 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13512 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13513 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13514 | break 2 |
13515 | fi | |
13516 | done | |
81ecdfbb RW |
13517 | done |
13518 | IFS=$as_save_IFS | |
0c24b341 NC |
13519 | |
13520 | ;; | |
13521 | esac | |
13522 | fi | |
13523 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 13524 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
13525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13526 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13527 | else |
81ecdfbb RW |
13528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13529 | $as_echo "no" >&6; } | |
0c24b341 NC |
13530 | fi |
13531 | ||
81ecdfbb | 13532 | |
0c24b341 NC |
13533 | fi |
13534 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13535 | ||
13536 | ||
13537 | if test -n "$WINDMC_FOR_TARGET"; then | |
13538 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13539 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13540 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13541 | fi | |
13542 | ||
13543 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13544 | for ncn_progname in windmc; do | |
13545 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13546 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13548 | $as_echo_n "checking for $ac_word... " >&6; } | |
13549 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13550 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13551 | else |
13552 | if test -n "$WINDMC_FOR_TARGET"; then | |
13553 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13554 | else | |
13555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13556 | for as_dir in $PATH | |
13557 | do | |
13558 | IFS=$as_save_IFS | |
13559 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13560 | for ac_exec_ext in '' $ac_executable_extensions; do |
13561 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13562 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13563 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13564 | break 2 |
13565 | fi | |
13566 | done | |
81ecdfbb RW |
13567 | done |
13568 | IFS=$as_save_IFS | |
0c24b341 NC |
13569 | |
13570 | fi | |
13571 | fi | |
13572 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13573 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13575 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13576 | else |
81ecdfbb RW |
13577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13578 | $as_echo "no" >&6; } | |
0c24b341 NC |
13579 | fi |
13580 | ||
81ecdfbb | 13581 | |
0c24b341 NC |
13582 | done |
13583 | fi | |
13584 | ||
13585 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13586 | for ncn_progname in windmc; do | |
81ecdfbb RW |
13587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13588 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13589 | if test -x $with_build_time_tools/${ncn_progname}; then |
13590 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13592 | $as_echo "yes" >&6; } | |
0c24b341 NC |
13593 | break |
13594 | else | |
81ecdfbb RW |
13595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13596 | $as_echo "no" >&6; } | |
0c24b341 NC |
13597 | fi |
13598 | done | |
13599 | fi | |
13600 | ||
13601 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13602 | for ncn_progname in windmc; do | |
13603 | if test -n "$ncn_target_tool_prefix"; then | |
13604 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13605 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13607 | $as_echo_n "checking for $ac_word... " >&6; } | |
13608 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13609 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13610 | else |
13611 | if test -n "$WINDMC_FOR_TARGET"; then | |
13612 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13613 | else | |
13614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13615 | for as_dir in $PATH | |
13616 | do | |
13617 | IFS=$as_save_IFS | |
13618 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13619 | for ac_exec_ext in '' $ac_executable_extensions; do |
13620 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13621 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13623 | break 2 |
13624 | fi | |
13625 | done | |
81ecdfbb RW |
13626 | done |
13627 | IFS=$as_save_IFS | |
0c24b341 NC |
13628 | |
13629 | fi | |
13630 | fi | |
13631 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13632 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13634 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13635 | else |
81ecdfbb RW |
13636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13637 | $as_echo "no" >&6; } | |
0c24b341 NC |
13638 | fi |
13639 | ||
81ecdfbb | 13640 | |
0c24b341 NC |
13641 | fi |
13642 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13643 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13644 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13646 | $as_echo_n "checking for $ac_word... " >&6; } | |
13647 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13648 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13649 | else |
13650 | if test -n "$WINDMC_FOR_TARGET"; then | |
13651 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13652 | else | |
13653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13654 | for as_dir in $PATH | |
13655 | do | |
13656 | IFS=$as_save_IFS | |
13657 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13658 | for ac_exec_ext in '' $ac_executable_extensions; do |
13659 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13660 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13661 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13662 | break 2 |
13663 | fi | |
13664 | done | |
81ecdfbb RW |
13665 | done |
13666 | IFS=$as_save_IFS | |
0c24b341 NC |
13667 | |
13668 | fi | |
13669 | fi | |
13670 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13671 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13673 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13674 | else |
81ecdfbb RW |
13675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13676 | $as_echo "no" >&6; } | |
0c24b341 NC |
13677 | fi |
13678 | ||
81ecdfbb | 13679 | |
0c24b341 NC |
13680 | fi |
13681 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13682 | done | |
13683 | fi | |
13684 | ||
13685 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13686 | set dummy windmc | |
13687 | if test $build = $target ; then | |
13688 | WINDMC_FOR_TARGET="$2" | |
13689 | else | |
13690 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13691 | fi | |
13692 | else | |
13693 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
13694 | fi | |
13695 | ||
13696 | else | |
13697 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13698 | fi | |
13699 | ||
13700 | ||
be01d343 PB |
13701 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13702 | ||
81ecdfbb RW |
13703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13704 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 13705 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13706 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13707 | # We already found the complete path | |
b8025f34 | 13708 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13710 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13711 | else |
13712 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13714 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13715 | fi |
be01d343 PB |
13716 | else |
13717 | ok=yes | |
13718 | case " ${configdirs} " in | |
13719 | *" binutils "*) ;; | |
13720 | *) ok=no ;; | |
13721 | esac | |
c6b750e1 | 13722 | |
be01d343 PB |
13723 | if test $ok = yes; then |
13724 | # An in-tree tool is available and we can use it | |
13725 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
13726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13727 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13728 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13729 | # We already found the complete path | |
b8025f34 | 13730 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13732 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13733 | elif test "x$target" = "x$host"; then |
13734 | # We can use an host tool | |
13735 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
13736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13737 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13738 | else |
13739 | # We need a cross tool | |
81ecdfbb RW |
13740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13741 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13742 | fi |
13743 | fi | |
4b900473 | 13744 | |
81ecdfbb RW |
13745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13746 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 13747 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13748 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13749 | # We already found the complete path | |
b8025f34 | 13750 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13752 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13753 | else |
13754 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13756 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13757 | fi |
be01d343 PB |
13758 | else |
13759 | ok=yes | |
13760 | case " ${configdirs} " in | |
13761 | *" gas "*) ;; | |
13762 | *) ok=no ;; | |
13763 | esac | |
c6b750e1 | 13764 | |
be01d343 PB |
13765 | if test $ok = yes; then |
13766 | # An in-tree tool is available and we can use it | |
13767 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
13768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13769 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13770 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13771 | # We already found the complete path | |
b8025f34 | 13772 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13774 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13775 | elif test "x$target" = "x$host"; then |
13776 | # We can use an host tool | |
13777 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
13778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13779 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13780 | else |
13781 | # We need a cross tool | |
81ecdfbb RW |
13782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13783 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13784 | fi |
13785 | fi | |
4b900473 | 13786 | |
81ecdfbb RW |
13787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13788 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 13789 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13790 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13791 | # We already found the complete path | |
b8025f34 | 13792 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13794 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13795 | else |
13796 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13798 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13799 | fi |
be01d343 PB |
13800 | else |
13801 | ok=yes | |
13802 | case " ${configdirs} " in | |
13803 | *" gcc "*) ;; | |
13804 | *) ok=no ;; | |
13805 | esac | |
c6b750e1 | 13806 | |
be01d343 PB |
13807 | if test $ok = yes; then |
13808 | # An in-tree tool is available and we can use it | |
13809 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13811 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13812 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13813 | # We already found the complete path | |
b8025f34 | 13814 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13816 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13817 | elif test "x$target" = "x$host"; then |
13818 | # We can use an host tool | |
13819 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
13820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13821 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13822 | else |
13823 | # We need a cross tool | |
81ecdfbb RW |
13824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13825 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13826 | fi |
13827 | fi | |
4b900473 | 13828 | |
81ecdfbb RW |
13829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13830 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 13831 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13832 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13833 | # We already found the complete path | |
b8025f34 | 13834 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13836 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13837 | else |
13838 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13840 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13841 | fi |
be01d343 PB |
13842 | else |
13843 | ok=yes | |
13844 | case " ${configdirs} " in | |
13845 | *" gcc "*) ;; | |
13846 | *) ok=no ;; | |
13847 | esac | |
13848 | case ,${enable_languages}, in | |
13849 | *,c++,*) ;; | |
13850 | *) ok=no ;; | |
13851 | esac | |
13852 | if test $ok = yes; then | |
13853 | # An in-tree tool is available and we can use it | |
95e43135 | 13854 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
81ecdfbb RW |
13855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13856 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13857 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13858 | # We already found the complete path | |
b8025f34 | 13859 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13861 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13862 | elif test "x$target" = "x$host"; then |
13863 | # We can use an host tool | |
13864 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13866 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13867 | else |
13868 | # We need a cross tool | |
81ecdfbb RW |
13869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13870 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13871 | fi |
13872 | fi | |
4b900473 | 13873 | |
81ecdfbb RW |
13874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13875 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 13876 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13877 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13878 | # We already found the complete path | |
b8025f34 | 13879 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13881 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13882 | else |
13883 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13885 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13886 | fi |
be01d343 PB |
13887 | else |
13888 | ok=yes | |
13889 | case " ${configdirs} " in | |
13890 | *" gcc "*) ;; | |
13891 | *) ok=no ;; | |
13892 | esac | |
13893 | case ,${enable_languages}, in | |
13894 | *,c++,*) ;; | |
13895 | *) ok=no ;; | |
13896 | esac | |
13897 | if test $ok = yes; then | |
13898 | # An in-tree tool is available and we can use it | |
95e43135 | 13899 | RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
81ecdfbb RW |
13900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13901 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13902 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13903 | # We already found the complete path | |
b8025f34 | 13904 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13906 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13907 | elif test "x$target" = "x$host"; then |
13908 | # We can use an host tool | |
13909 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13911 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13912 | else |
13913 | # We need a cross tool | |
81ecdfbb RW |
13914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13915 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13916 | fi |
13917 | fi | |
4b900473 | 13918 | |
81ecdfbb RW |
13919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
13920 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 13921 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13922 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13923 | # We already found the complete path | |
b8025f34 | 13924 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13926 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13927 | else |
13928 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13930 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13931 | fi |
be01d343 PB |
13932 | else |
13933 | ok=yes | |
13934 | case " ${configdirs} " in | |
13935 | *" binutils "*) ;; | |
13936 | *) ok=no ;; | |
13937 | esac | |
c6b750e1 | 13938 | |
be01d343 PB |
13939 | if test $ok = yes; then |
13940 | # An in-tree tool is available and we can use it | |
13941 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
13942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13943 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13944 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13945 | # We already found the complete path | |
b8025f34 | 13946 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13948 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13949 | elif test "x$target" = "x$host"; then |
13950 | # We can use an host tool | |
13951 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
13952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13953 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13954 | else |
13955 | # We need a cross tool | |
81ecdfbb RW |
13956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13957 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13958 | fi |
13959 | fi | |
4b900473 | 13960 | |
81ecdfbb RW |
13961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
13962 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 13963 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13964 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13965 | # We already found the complete path | |
b8025f34 | 13966 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
13967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13968 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13969 | else |
13970 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13972 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13973 | fi |
be01d343 PB |
13974 | else |
13975 | ok=yes | |
13976 | case " ${configdirs} " in | |
13977 | *" gcc "*) ;; | |
13978 | *) ok=no ;; | |
13979 | esac | |
c6b750e1 | 13980 | |
be01d343 PB |
13981 | if test $ok = yes; then |
13982 | # An in-tree tool is available and we can use it | |
13983 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13985 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13986 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13987 | # We already found the complete path | |
b8025f34 | 13988 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
13989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13990 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13991 | elif test "x$target" = "x$host"; then |
13992 | # We can use an host tool | |
13993 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
13994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13995 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13996 | else |
13997 | # We need a cross tool | |
81ecdfbb RW |
13998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13999 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14000 | fi |
14001 | fi | |
4b900473 | 14002 | |
81ecdfbb RW |
14003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14004 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 14005 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14006 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14007 | # We already found the complete path | |
b8025f34 | 14008 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14010 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14011 | else |
14012 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14014 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14015 | fi |
be01d343 PB |
14016 | else |
14017 | ok=yes | |
14018 | case " ${configdirs} " in | |
14019 | *" gcc "*) ;; | |
14020 | *) ok=no ;; | |
14021 | esac | |
14022 | case ,${enable_languages}, in | |
14023 | *,fortran,*) ;; | |
14024 | *) ok=no ;; | |
14025 | esac | |
14026 | if test $ok = yes; then | |
14027 | # An in-tree tool is available and we can use it | |
14028 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14030 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14031 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14032 | # We already found the complete path | |
b8025f34 | 14033 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14035 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14036 | elif test "x$target" = "x$host"; then |
14037 | # We can use an host tool | |
14038 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
14039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14040 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14041 | else |
14042 | # We need a cross tool | |
81ecdfbb RW |
14043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14044 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14045 | fi |
14046 | fi | |
4b900473 | 14047 | |
e552509b ILT |
14048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14049 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14050 | if test "x${build}" != "x${host}" ; then | |
14051 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14052 | # We already found the complete path | |
14053 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14055 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14056 | else | |
14057 | # Canadian cross, just use what we found | |
14058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14059 | $as_echo "pre-installed" >&6; } | |
14060 | fi | |
14061 | else | |
14062 | ok=yes | |
14063 | case " ${configdirs} " in | |
14064 | *" gcc "*) ;; | |
14065 | *) ok=no ;; | |
14066 | esac | |
14067 | case ,${enable_languages}, in | |
14068 | *,go,*) ;; | |
14069 | *) ok=no ;; | |
14070 | esac | |
14071 | if test $ok = yes; then | |
14072 | # An in-tree tool is available and we can use it | |
14073 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14075 | $as_echo "just compiled" >&6; } | |
14076 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14077 | # We already found the complete path | |
14078 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14080 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14081 | elif test "x$target" = "x$host"; then | |
14082 | # We can use an host tool | |
14083 | GOC_FOR_TARGET='$(GOC)' | |
14084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14085 | $as_echo "host tool" >&6; } | |
14086 | else | |
14087 | # We need a cross tool | |
14088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14089 | $as_echo "pre-installed" >&6; } | |
14090 | fi | |
14091 | fi | |
14092 | ||
81ecdfbb RW |
14093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14094 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 14095 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14096 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14097 | # We already found the complete path | |
b8025f34 | 14098 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14100 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14101 | else |
14102 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14104 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14105 | fi |
be01d343 PB |
14106 | else |
14107 | ok=yes | |
14108 | case " ${configdirs} " in | |
14109 | *" ld "*) ;; | |
14110 | *) ok=no ;; | |
14111 | esac | |
c6b750e1 | 14112 | |
be01d343 PB |
14113 | if test $ok = yes; then |
14114 | # An in-tree tool is available and we can use it | |
14115 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
14116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14117 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14118 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14119 | # We already found the complete path | |
b8025f34 | 14120 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14122 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14123 | elif test "x$target" = "x$host"; then |
14124 | # We can use an host tool | |
14125 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
14126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14127 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14128 | else |
14129 | # We need a cross tool | |
81ecdfbb RW |
14130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14131 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14132 | fi |
14133 | fi | |
4b900473 | 14134 | |
81ecdfbb RW |
14135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14136 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 14137 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14138 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14139 | # We already found the complete path | |
b8025f34 | 14140 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14142 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14143 | else |
14144 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14146 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14147 | fi |
be01d343 | 14148 | else |
2429c060 PB |
14149 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14150 | # We already found the complete path | |
b8025f34 | 14151 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14153 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 14154 | elif test "x$target" = "x$host"; then |
be01d343 PB |
14155 | # We can use an host tool |
14156 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
14157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14158 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14159 | else |
14160 | # We need a cross tool | |
81ecdfbb RW |
14161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14162 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14163 | fi |
14164 | fi | |
4b900473 | 14165 | |
81ecdfbb RW |
14166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14167 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 14168 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14169 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14170 | # We already found the complete path | |
b8025f34 | 14171 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14173 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14174 | else |
14175 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14177 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14178 | fi |
be01d343 PB |
14179 | else |
14180 | ok=yes | |
14181 | case " ${configdirs} " in | |
14182 | *" binutils "*) ;; | |
14183 | *) ok=no ;; | |
14184 | esac | |
c6b750e1 | 14185 | |
be01d343 PB |
14186 | if test $ok = yes; then |
14187 | # An in-tree tool is available and we can use it | |
14188 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
14189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14190 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14191 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14192 | # We already found the complete path | |
b8025f34 | 14193 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14195 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14196 | elif test "x$target" = "x$host"; then |
14197 | # We can use an host tool | |
14198 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
14199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14200 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14201 | else |
14202 | # We need a cross tool | |
81ecdfbb RW |
14203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14204 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14205 | fi |
14206 | fi | |
4b900473 | 14207 | |
6b91c541 AP |
14208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14209 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14210 | if test "x${build}" != "x${host}" ; then | |
14211 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14212 | # We already found the complete path | |
14213 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14215 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14216 | else | |
14217 | # Canadian cross, just use what we found | |
14218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14219 | $as_echo "pre-installed" >&6; } | |
14220 | fi | |
14221 | else | |
14222 | ok=yes | |
14223 | case " ${configdirs} " in | |
14224 | *" binutils "*) ;; | |
14225 | *) ok=no ;; | |
14226 | esac | |
14227 | ||
14228 | if test $ok = yes; then | |
14229 | # An in-tree tool is available and we can use it | |
14230 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14232 | $as_echo "just compiled" >&6; } | |
14233 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14234 | # We already found the complete path | |
14235 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14237 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14238 | elif test "x$target" = "x$host"; then | |
14239 | # We can use an host tool | |
1b6c0831 | 14240 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
6b91c541 AP |
14241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14242 | $as_echo "host tool" >&6; } | |
14243 | else | |
14244 | # We need a cross tool | |
14245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14246 | $as_echo "pre-installed" >&6; } | |
14247 | fi | |
14248 | fi | |
14249 | ||
81ecdfbb RW |
14250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14251 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 14252 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14253 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14254 | # We already found the complete path | |
b8025f34 | 14255 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14257 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14258 | else |
14259 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14261 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14262 | fi |
be01d343 PB |
14263 | else |
14264 | ok=yes | |
14265 | case " ${configdirs} " in | |
14266 | *" binutils "*) ;; | |
14267 | *) ok=no ;; | |
14268 | esac | |
c6b750e1 | 14269 | |
be01d343 PB |
14270 | if test $ok = yes; then |
14271 | # An in-tree tool is available and we can use it | |
14272 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
14273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14274 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14275 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14276 | # We already found the complete path | |
b8025f34 | 14277 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14279 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14280 | elif test "x$target" = "x$host"; then |
14281 | # We can use an host tool | |
14282 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
14283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14284 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14285 | else |
14286 | # We need a cross tool | |
81ecdfbb RW |
14287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14288 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14289 | fi |
14290 | fi | |
4b900473 | 14291 | |
81ecdfbb RW |
14292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14293 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 14294 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14295 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14296 | # We already found the complete path | |
b8025f34 | 14297 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14299 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14300 | else |
14301 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14303 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14304 | fi |
be01d343 PB |
14305 | else |
14306 | ok=yes | |
14307 | case " ${configdirs} " in | |
14308 | *" binutils "*) ;; | |
14309 | *) ok=no ;; | |
14310 | esac | |
c6b750e1 | 14311 | |
be01d343 PB |
14312 | if test $ok = yes; then |
14313 | # An in-tree tool is available and we can use it | |
14314 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
14315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14316 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14317 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14318 | # We already found the complete path | |
b8025f34 | 14319 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14321 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14322 | elif test "x$target" = "x$host"; then |
14323 | # We can use an host tool | |
14324 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
14325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14326 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14327 | else |
14328 | # We need a cross tool | |
81ecdfbb RW |
14329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14330 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14331 | fi |
14332 | fi | |
4b900473 | 14333 | |
b121d7d4 DD |
14334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14335 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14336 | if test "x${build}" != "x${host}" ; then | |
14337 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14338 | # We already found the complete path | |
14339 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14341 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14342 | else | |
14343 | # Canadian cross, just use what we found | |
14344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14345 | $as_echo "pre-installed" >&6; } | |
14346 | fi | |
14347 | else | |
14348 | ok=yes | |
14349 | case " ${configdirs} " in | |
14350 | *" binutils "*) ;; | |
14351 | *) ok=no ;; | |
14352 | esac | |
14353 | ||
14354 | if test $ok = yes; then | |
14355 | # An in-tree tool is available and we can use it | |
14356 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14358 | $as_echo "just compiled" >&6; } | |
14359 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14360 | # We already found the complete path | |
14361 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14363 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14364 | elif test "x$target" = "x$host"; then | |
14365 | # We can use an host tool | |
14366 | READELF_FOR_TARGET='$(READELF)' | |
14367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14368 | $as_echo "host tool" >&6; } | |
14369 | else | |
14370 | # We need a cross tool | |
14371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14372 | $as_echo "pre-installed" >&6; } | |
14373 | fi | |
14374 | fi | |
14375 | ||
81ecdfbb RW |
14376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14377 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 14378 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14379 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14380 | # We already found the complete path | |
b8025f34 | 14381 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14383 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14384 | else |
14385 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14387 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14388 | fi |
be01d343 PB |
14389 | else |
14390 | ok=yes | |
14391 | case " ${configdirs} " in | |
14392 | *" binutils "*) ;; | |
14393 | *) ok=no ;; | |
14394 | esac | |
c6b750e1 | 14395 | |
be01d343 PB |
14396 | if test $ok = yes; then |
14397 | # An in-tree tool is available and we can use it | |
9b980aa1 | 14398 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
14399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14400 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14401 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14402 | # We already found the complete path | |
b8025f34 | 14403 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14405 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14406 | elif test "x$target" = "x$host"; then |
14407 | # We can use an host tool | |
14408 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
14409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14410 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14411 | else |
14412 | # We need a cross tool | |
81ecdfbb RW |
14413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14414 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14415 | fi |
14416 | fi | |
4b900473 | 14417 | |
81ecdfbb RW |
14418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14419 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 14420 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14421 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14422 | # We already found the complete path | |
b8025f34 | 14423 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14425 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14426 | else |
14427 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14429 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14430 | fi |
be01d343 PB |
14431 | else |
14432 | ok=yes | |
14433 | case " ${configdirs} " in | |
14434 | *" binutils "*) ;; | |
14435 | *) ok=no ;; | |
14436 | esac | |
c6b750e1 | 14437 | |
be01d343 PB |
14438 | if test $ok = yes; then |
14439 | # An in-tree tool is available and we can use it | |
14440 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
14441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14442 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14443 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14444 | # We already found the complete path | |
b8025f34 | 14445 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14447 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14448 | elif test "x$target" = "x$host"; then |
14449 | # We can use an host tool | |
14450 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
14451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14452 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14453 | else |
14454 | # We need a cross tool | |
81ecdfbb RW |
14455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14456 | $as_echo "pre-installed" >&6; } | |
be01d343 | 14457 | fi |
a0da8069 | 14458 | fi |
54752a6b | 14459 | |
81ecdfbb RW |
14460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14461 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
14462 | if test "x${build}" != "x${host}" ; then |
14463 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14464 | # We already found the complete path | |
14465 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14467 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14468 | else |
14469 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14471 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14472 | fi |
14473 | else | |
14474 | ok=yes | |
14475 | case " ${configdirs} " in | |
14476 | *" binutils "*) ;; | |
14477 | *) ok=no ;; | |
14478 | esac | |
14479 | ||
14480 | if test $ok = yes; then | |
14481 | # An in-tree tool is available and we can use it | |
14482 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
14483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14484 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
14485 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14486 | # We already found the complete path | |
14487 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14489 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14490 | elif test "x$target" = "x$host"; then |
14491 | # We can use an host tool | |
14492 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
14493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14494 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
14495 | else |
14496 | # We need a cross tool | |
81ecdfbb RW |
14497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14498 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14499 | fi |
14500 | fi | |
14501 | ||
54752a6b NN |
14502 | |
14503 | ||
be01d343 | 14504 | |
4b900473 | 14505 | |
a0da8069 NN |
14506 | # Certain tools may need extra flags. |
14507 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14508 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14509 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14510 | ||
be01d343 PB |
14511 | # When building target libraries, except in a Canadian cross, we use |
14512 | # the same toolchain as the compiler we just built. | |
14513 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14514 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14515 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14516 | if test $host = $build; then | |
14517 | case " $configdirs " in | |
14518 | *" gcc "*) | |
14519 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14520 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14521 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14522 | ;; | |
14523 | esac | |
14524 | fi | |
14525 | ||
14526 | ||
14527 | ||
14528 | ||
14529 | ||
81ecdfbb RW |
14530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14531 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14532 | # Check whether --enable-maintainer-mode was given. | |
14533 | if test "${enable_maintainer_mode+set}" = set; then : | |
14534 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
14535 | else |
14536 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
14537 | fi |
14538 | ||
14539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14540 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
14541 | |
14542 | ||
14543 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14544 | MAINTAINER_MODE_TRUE= | |
14545 | MAINTAINER_MODE_FALSE='#' | |
14546 | else | |
14547 | MAINTAINER_MODE_TRUE='#' | |
14548 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 14549 | fi |
3d5e36ae AO |
14550 | MAINT=$MAINTAINER_MODE_TRUE |
14551 | ||
1d39f329 NN |
14552 | # --------------------- |
14553 | # GCC bootstrap support | |
14554 | # --------------------- | |
14555 | ||
14556 | # Stage specific cflags for build. | |
14557 | stage1_cflags="-g" | |
14558 | case $build in | |
14559 | vax-*-*) | |
14560 | case ${GCC} in | |
14561 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14562 | *) stage1_cflags="-g -J" ;; | |
14563 | esac ;; | |
1d39f329 NN |
14564 | esac |
14565 | ||
1d89b610 | 14566 | |
1d39f329 | 14567 | |
8a0d8a5c | 14568 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
14569 | # Check whether --enable-stage1-checking was given. |
14570 | if test "${enable_stage1_checking+set}" = set; then : | |
14571 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 14572 | else |
5566c1fa | 14573 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
ce6c656d L |
14574 | # For --disable-checking or implicit --enable-checking=release, avoid |
14575 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
14576 | # bootstraps. See PR62077. | |
ce6c656d L |
14577 | case $BUILD_CONFIG in |
14578 | *lto*) | |
05a13254 NC |
14579 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
14580 | *) | |
14581 | stage1_checking=--enable-checking=yes,types;; | |
ce6c656d | 14582 | esac |
05a13254 NC |
14583 | if test "x$enable_checking" = x && \ |
14584 | test -d ${srcdir}/gcc && \ | |
14585 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
14586 | stage1_checking=--enable-checking=yes,types,extra | |
14587 | fi | |
8a0d8a5c | 14588 | else |
5566c1fa | 14589 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 14590 | fi |
81ecdfbb | 14591 | fi |
8a0d8a5c PB |
14592 | |
14593 | ||
c6b750e1 | 14594 | |
81ecdfbb RW |
14595 | # Enable -Werror in bootstrap stage2 and later. |
14596 | # Check whether --enable-werror was given. | |
14597 | if test "${enable_werror+set}" = set; then : | |
14598 | enableval=$enable_werror; | |
1a6f2dc7 NN |
14599 | case ${enable_werror} in |
14600 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14601 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
14602 | esac |
14603 | ||
82033c9b | 14604 | else |
82033c9b | 14605 | |
bf41f30d NC |
14606 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
14607 | case $BUILD_CONFIG in | |
14608 | bootstrap-debug) | |
14609 | stage2_werror_flag="--enable-werror-always" ;; | |
14610 | "") | |
14611 | stage2_werror_flag="--enable-werror-always" ;; | |
14612 | esac | |
14613 | fi | |
82033c9b | 14614 | |
bf41f30d | 14615 | fi |
82033c9b | 14616 | |
1b6c0831 | 14617 | |
1b6c0831 | 14618 | |
1b6c0831 | 14619 | |
e8a5fa9c RW |
14620 | # Specify what files to not compare during bootstrap. |
14621 | ||
14622 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14623 | case "$target" in | |
14624 | hppa*64*-*-hpux*) ;; | |
bf41f30d | 14625 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;; |
1488e230 | 14626 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
e8a5fa9c RW |
14627 | esac |
14628 | ||
14629 | ||
81ecdfbb RW |
14630 | ac_config_files="$ac_config_files Makefile" |
14631 | ||
c6b750e1 | 14632 | cat >confcache <<\_ACEOF |
a0da8069 NN |
14633 | # This file is a shell script that caches the results of configure |
14634 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
14635 | # scripts and configure runs, see configure's option --config-cache. |
14636 | # It is not useful on other systems. If it contains results you don't | |
14637 | # want to keep, you may remove or edit it. | |
a0da8069 | 14638 | # |
c6b750e1 DJ |
14639 | # config.status only pays attention to the cache file if you give it |
14640 | # the --recheck option to rerun configure. | |
a0da8069 | 14641 | # |
c6b750e1 DJ |
14642 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14643 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14644 | # following values. | |
14645 | ||
14646 | _ACEOF | |
14647 | ||
a0da8069 NN |
14648 | # The following way of writing the cache mishandles newlines in values, |
14649 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14650 | # So, we kill variables containing newlines. |
a0da8069 NN |
14651 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14652 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14653 | ( |
14654 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14655 | eval ac_val=\$$ac_var | |
14656 | case $ac_val in #( | |
14657 | *${as_nl}*) | |
14658 | case $ac_var in #( | |
14659 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14660 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14661 | esac | |
14662 | case $ac_var in #( | |
14663 | _ | IFS | as_nl) ;; #( | |
14664 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14665 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14666 | esac ;; | |
14667 | esac | |
14668 | done | |
14669 | ||
c6b750e1 | 14670 | (set) 2>&1 | |
81ecdfbb RW |
14671 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14672 | *${as_nl}ac_space=\ *) | |
14673 | # `set' does not quote correctly, so add quotes: double-quote | |
14674 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
14675 | sed -n \ |
14676 | "s/'/'\\\\''/g; | |
14677 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14678 | ;; #( |
c6b750e1 DJ |
14679 | *) |
14680 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14681 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 14682 | ;; |
81ecdfbb RW |
14683 | esac | |
14684 | sort | |
14685 | ) | | |
c6b750e1 | 14686 | sed ' |
81ecdfbb | 14687 | /^ac_cv_env_/b end |
c6b750e1 | 14688 | t clear |
81ecdfbb | 14689 | :clear |
c6b750e1 DJ |
14690 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14691 | t end | |
81ecdfbb RW |
14692 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14693 | :end' >>confcache | |
14694 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14695 | if test -w "$cache_file"; then | |
14696 | test "x$cache_file" != "x/dev/null" && | |
14697 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14698 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
c6b750e1 | 14699 | cat confcache >$cache_file |
a0da8069 | 14700 | else |
81ecdfbb RW |
14701 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14702 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 14703 | fi |
852e5f18 | 14704 | fi |
a0da8069 | 14705 | rm -f confcache |
852e5f18 | 14706 | |
a0da8069 NN |
14707 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14708 | # Let make expand exec_prefix. | |
14709 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 14710 | |
a0da8069 NN |
14711 | # Transform confdefs.h into DEFS. |
14712 | # Protect against shell expansion while executing Makefile rules. | |
14713 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
14714 | # |
14715 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 14716 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 14717 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
14718 | ac_script=' |
14719 | :mline | |
14720 | /\\$/{ | |
14721 | N | |
14722 | s,\\\n,, | |
14723 | b mline | |
14724 | } | |
c6b750e1 | 14725 | t clear |
81ecdfbb RW |
14726 | :clear |
14727 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 14728 | t quote |
81ecdfbb | 14729 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 14730 | t quote |
81ecdfbb RW |
14731 | b any |
14732 | :quote | |
14733 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14734 | s/\[/\\&/g | |
14735 | s/\]/\\&/g | |
14736 | s/\$/$$/g | |
14737 | H | |
14738 | :any | |
14739 | ${ | |
14740 | g | |
14741 | s/^\n// | |
14742 | s/\n/ /g | |
14743 | p | |
14744 | } | |
14745 | ' | |
14746 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
14747 | |
14748 | ||
14749 | ac_libobjs= | |
14750 | ac_ltlibobjs= | |
14751 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14752 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14753 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14754 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14755 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14756 | # will be set to the directory where LIBOBJS objects are built. | |
14757 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14758 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
14759 | done |
14760 | LIBOBJS=$ac_libobjs | |
852e5f18 | 14761 | |
c6b750e1 | 14762 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 14763 | |
cac3d6c4 | 14764 | |
c6b750e1 DJ |
14765 | |
14766 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 14767 | ac_write_fail=0 |
c6b750e1 DJ |
14768 | ac_clean_files_save=$ac_clean_files |
14769 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14770 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14771 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14772 | as_write_fail=0 | |
14773 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
14774 | #! $SHELL |
14775 | # Generated by $as_me. | |
a0da8069 | 14776 | # Run this file to recreate the current configuration. |
a0da8069 | 14777 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 14778 | # configure, is in config.log if it exists. |
376a0e54 | 14779 | |
c6b750e1 DJ |
14780 | debug=false |
14781 | ac_cs_recheck=false | |
14782 | ac_cs_silent=false | |
c6b750e1 | 14783 | |
81ecdfbb RW |
14784 | SHELL=\${CONFIG_SHELL-$SHELL} |
14785 | export SHELL | |
14786 | _ASEOF | |
14787 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14788 | ## -------------------- ## | |
14789 | ## M4sh Initialization. ## | |
14790 | ## -------------------- ## | |
14791 | ||
14792 | # Be more Bourne compatible | |
14793 | DUALCASE=1; export DUALCASE # for MKS sh | |
14794 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
14795 | emulate sh |
14796 | NULLCMD=: | |
81ecdfbb | 14797 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
14798 | # is contrary to our usage. Disable this feature. |
14799 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14800 | setopt NO_GLOB_SUBST |
14801 | else | |
14802 | case `(set -o) 2>/dev/null` in #( | |
14803 | *posix*) : | |
14804 | set -o posix ;; #( | |
14805 | *) : | |
14806 | ;; | |
14807 | esac | |
c6b750e1 | 14808 | fi |
c6b750e1 | 14809 | |
81ecdfbb RW |
14810 | |
14811 | as_nl=' | |
14812 | ' | |
14813 | export as_nl | |
14814 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14815 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14816 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14817 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14818 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14819 | # but without wasting forks for bash or zsh. | |
14820 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14821 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14822 | as_echo='print -r --' | |
14823 | as_echo_n='print -rn --' | |
14824 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14825 | as_echo='printf %s\n' | |
14826 | as_echo_n='printf %s' | |
14827 | else | |
14828 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14829 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14830 | as_echo_n='/usr/ucb/echo -n' | |
14831 | else | |
14832 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14833 | as_echo_n_body='eval | |
14834 | arg=$1; | |
14835 | case $arg in #( | |
14836 | *"$as_nl"*) | |
14837 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14838 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14839 | esac; | |
14840 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14841 | ' | |
14842 | export as_echo_n_body | |
14843 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14844 | fi | |
14845 | export as_echo_body | |
14846 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
14847 | fi |
14848 | ||
81ecdfbb RW |
14849 | # The user is always right. |
14850 | if test "${PATH_SEPARATOR+set}" != set; then | |
14851 | PATH_SEPARATOR=: | |
14852 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14853 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14854 | PATH_SEPARATOR=';' | |
14855 | } | |
14856 | fi | |
14857 | ||
14858 | ||
14859 | # IFS | |
14860 | # We need space, tab and new line, in precisely that order. Quoting is | |
14861 | # there to prevent editors from complaining about space-tab. | |
14862 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14863 | # splitting by setting IFS to empty value.) | |
14864 | IFS=" "" $as_nl" | |
14865 | ||
14866 | # Find who we are. Look in the path if we contain no directory separator. | |
14867 | case $0 in #(( | |
14868 | *[\\/]* ) as_myself=$0 ;; | |
14869 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14870 | for as_dir in $PATH | |
14871 | do | |
14872 | IFS=$as_save_IFS | |
14873 | test -z "$as_dir" && as_dir=. | |
14874 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14875 | done | |
14876 | IFS=$as_save_IFS | |
14877 | ||
14878 | ;; | |
14879 | esac | |
14880 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14881 | # in which case we are not to be found in the path. | |
14882 | if test "x$as_myself" = x; then | |
14883 | as_myself=$0 | |
14884 | fi | |
14885 | if test ! -f "$as_myself"; then | |
14886 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14887 | exit 1 | |
14888 | fi | |
c6b750e1 | 14889 | |
81ecdfbb RW |
14890 | # Unset variables that we do not need and which cause bugs (e.g. in |
14891 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14892 | # suppresses any "Segmentation fault" message there. '((' could | |
14893 | # trigger a bug in pdksh 5.2.14. | |
14894 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14895 | do eval test x\${$as_var+set} = xset \ | |
14896 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14897 | done | |
c6b750e1 DJ |
14898 | PS1='$ ' |
14899 | PS2='> ' | |
14900 | PS4='+ ' | |
14901 | ||
14902 | # NLS nuisances. | |
81ecdfbb RW |
14903 | LC_ALL=C |
14904 | export LC_ALL | |
14905 | LANGUAGE=C | |
14906 | export LANGUAGE | |
14907 | ||
14908 | # CDPATH. | |
14909 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14910 | ||
14911 | ||
14912 | # as_fn_error ERROR [LINENO LOG_FD] | |
14913 | # --------------------------------- | |
14914 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14915 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14916 | # script with status $?, using 1 if that was 0. | |
14917 | as_fn_error () | |
14918 | { | |
14919 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14920 | if test "$3"; then | |
14921 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14922 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
c6b750e1 | 14923 | fi |
81ecdfbb RW |
14924 | $as_echo "$as_me: error: $1" >&2 |
14925 | as_fn_exit $as_status | |
14926 | } # as_fn_error | |
14927 | ||
14928 | ||
14929 | # as_fn_set_status STATUS | |
14930 | # ----------------------- | |
14931 | # Set $? to STATUS, without forking. | |
14932 | as_fn_set_status () | |
14933 | { | |
14934 | return $1 | |
14935 | } # as_fn_set_status | |
14936 | ||
14937 | # as_fn_exit STATUS | |
14938 | # ----------------- | |
14939 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14940 | as_fn_exit () | |
14941 | { | |
14942 | set +e | |
14943 | as_fn_set_status $1 | |
14944 | exit $1 | |
14945 | } # as_fn_exit | |
14946 | ||
14947 | # as_fn_unset VAR | |
14948 | # --------------- | |
14949 | # Portably unset VAR. | |
14950 | as_fn_unset () | |
14951 | { | |
14952 | { eval $1=; unset $1;} | |
14953 | } | |
14954 | as_unset=as_fn_unset | |
14955 | # as_fn_append VAR VALUE | |
14956 | # ---------------------- | |
14957 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14958 | # advantage of any shell optimizations that allow amortized linear growth over | |
14959 | # repeated appends, instead of the typical quadratic growth present in naive | |
14960 | # implementations. | |
14961 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14962 | eval 'as_fn_append () | |
14963 | { | |
14964 | eval $1+=\$2 | |
14965 | }' | |
14966 | else | |
14967 | as_fn_append () | |
14968 | { | |
14969 | eval $1=\$$1\$2 | |
14970 | } | |
14971 | fi # as_fn_append | |
14972 | ||
14973 | # as_fn_arith ARG... | |
14974 | # ------------------ | |
14975 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14976 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14977 | # must be portable across $(()) and expr. | |
14978 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14979 | eval 'as_fn_arith () | |
14980 | { | |
14981 | as_val=$(( $* )) | |
14982 | }' | |
14983 | else | |
14984 | as_fn_arith () | |
14985 | { | |
14986 | as_val=`expr "$@" || test $? -eq 1` | |
14987 | } | |
14988 | fi # as_fn_arith | |
14989 | ||
c6b750e1 | 14990 | |
81ecdfbb RW |
14991 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14992 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
14993 | as_expr=expr |
14994 | else | |
14995 | as_expr=false | |
14996 | fi | |
14997 | ||
81ecdfbb | 14998 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
14999 | as_basename=basename |
15000 | else | |
15001 | as_basename=false | |
15002 | fi | |
15003 | ||
81ecdfbb RW |
15004 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15005 | as_dirname=dirname | |
15006 | else | |
15007 | as_dirname=false | |
15008 | fi | |
c6b750e1 | 15009 | |
81ecdfbb | 15010 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
15011 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15012 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15013 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15014 | $as_echo X/"$0" | | |
15015 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15016 | s//\1/ | |
15017 | q | |
15018 | } | |
15019 | /^X\/\(\/\/\)$/{ | |
15020 | s//\1/ | |
15021 | q | |
15022 | } | |
15023 | /^X\/\(\/\).*/{ | |
15024 | s//\1/ | |
15025 | q | |
15026 | } | |
15027 | s/.*/./; q'` | |
c6b750e1 | 15028 | |
c6b750e1 DJ |
15029 | # Avoid depending upon Character Ranges. |
15030 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15031 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15032 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15033 | as_cr_digits='0123456789' | |
15034 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15035 | ||
81ecdfbb RW |
15036 | ECHO_C= ECHO_N= ECHO_T= |
15037 | case `echo -n x` in #((((( | |
15038 | -n*) | |
15039 | case `echo 'xy\c'` in | |
15040 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15041 | xy) ECHO_C='\c';; | |
15042 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15043 | ECHO_T=' ';; | |
15044 | esac;; | |
15045 | *) | |
15046 | ECHO_N='-n';; | |
c6b750e1 DJ |
15047 | esac |
15048 | ||
81ecdfbb RW |
15049 | rm -f conf$$ conf$$.exe conf$$.file |
15050 | if test -d conf$$.dir; then | |
15051 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 15052 | else |
81ecdfbb RW |
15053 | rm -f conf$$.dir |
15054 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 15055 | fi |
81ecdfbb RW |
15056 | if (echo >conf$$.file) 2>/dev/null; then |
15057 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 15058 | as_ln_s='ln -s' |
81ecdfbb RW |
15059 | # ... but there are two gotchas: |
15060 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15061 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15062 | # In both cases, we have to default to `cp -p'. | |
15063 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15064 | as_ln_s='cp -p' | |
15065 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15066 | as_ln_s=ln | |
15067 | else | |
15068 | as_ln_s='cp -p' | |
c6b750e1 | 15069 | fi |
c6b750e1 DJ |
15070 | else |
15071 | as_ln_s='cp -p' | |
15072 | fi | |
81ecdfbb RW |
15073 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15074 | rmdir conf$$.dir 2>/dev/null | |
15075 | ||
15076 | ||
15077 | # as_fn_mkdir_p | |
15078 | # ------------- | |
15079 | # Create "$as_dir" as a directory, including parents if necessary. | |
15080 | as_fn_mkdir_p () | |
15081 | { | |
15082 | ||
15083 | case $as_dir in #( | |
15084 | -*) as_dir=./$as_dir;; | |
15085 | esac | |
15086 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15087 | as_dirs= | |
15088 | while :; do | |
15089 | case $as_dir in #( | |
15090 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15091 | *) as_qdir=$as_dir;; | |
15092 | esac | |
15093 | as_dirs="'$as_qdir' $as_dirs" | |
15094 | as_dir=`$as_dirname -- "$as_dir" || | |
15095 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15096 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15097 | X"$as_dir" : 'X\(//\)$' \| \ | |
15098 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15099 | $as_echo X"$as_dir" | | |
15100 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15101 | s//\1/ | |
15102 | q | |
15103 | } | |
15104 | /^X\(\/\/\)[^/].*/{ | |
15105 | s//\1/ | |
15106 | q | |
15107 | } | |
15108 | /^X\(\/\/\)$/{ | |
15109 | s//\1/ | |
15110 | q | |
15111 | } | |
15112 | /^X\(\/\).*/{ | |
15113 | s//\1/ | |
15114 | q | |
15115 | } | |
15116 | s/.*/./; q'` | |
15117 | test -d "$as_dir" && break | |
15118 | done | |
15119 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15120 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
15121 | ||
c6b750e1 | 15122 | |
81ecdfbb | 15123 | } # as_fn_mkdir_p |
c6b750e1 | 15124 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 15125 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
15126 | else |
15127 | test -d ./-p && rmdir ./-p | |
15128 | as_mkdir_p=false | |
15129 | fi | |
15130 | ||
81ecdfbb RW |
15131 | if test -x / >/dev/null 2>&1; then |
15132 | as_test_x='test -x' | |
15133 | else | |
15134 | if ls -dL / >/dev/null 2>&1; then | |
15135 | as_ls_L_option=L | |
15136 | else | |
15137 | as_ls_L_option= | |
15138 | fi | |
15139 | as_test_x=' | |
15140 | eval sh -c '\'' | |
15141 | if test -d "$1"; then | |
15142 | test -d "$1/."; | |
15143 | else | |
15144 | case $1 in #( | |
15145 | -*)set "./$1";; | |
15146 | esac; | |
15147 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
15148 | ???[sx]*):;;*)false;;esac;fi | |
15149 | '\'' sh | |
15150 | ' | |
15151 | fi | |
15152 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
15153 | |
15154 | # Sed expression to map a string onto a valid CPP name. | |
15155 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15156 | ||
15157 | # Sed expression to map a string onto a valid variable name. | |
15158 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15159 | ||
15160 | ||
c6b750e1 | 15161 | exec 6>&1 |
81ecdfbb RW |
15162 | ## ----------------------------------- ## |
15163 | ## Main body of $CONFIG_STATUS script. ## | |
15164 | ## ----------------------------------- ## | |
15165 | _ASEOF | |
15166 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15167 | ||
15168 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15169 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 15170 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
15171 | # values after options handling. |
15172 | ac_log=" | |
c6b750e1 | 15173 | This file was extended by $as_me, which was |
81ecdfbb | 15174 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
15175 | |
15176 | CONFIG_FILES = $CONFIG_FILES | |
15177 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15178 | CONFIG_LINKS = $CONFIG_LINKS | |
15179 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15180 | $ $0 $@ | |
15181 | ||
81ecdfbb RW |
15182 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15183 | " | |
15184 | ||
c6b750e1 DJ |
15185 | _ACEOF |
15186 | ||
81ecdfbb RW |
15187 | case $ac_config_files in *" |
15188 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15189 | esac | |
c6b750e1 | 15190 | |
c6b750e1 | 15191 | |
c6b750e1 | 15192 | |
81ecdfbb RW |
15193 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15194 | # Files that config.status was made for. | |
15195 | config_files="$ac_config_files" | |
c6b750e1 | 15196 | |
81ecdfbb | 15197 | _ACEOF |
c6b750e1 | 15198 | |
81ecdfbb | 15199 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15200 | ac_cs_usage="\ |
81ecdfbb RW |
15201 | \`$as_me' instantiates files and other configuration actions |
15202 | from templates according to the current configuration. Unless the files | |
15203 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 15204 | |
81ecdfbb | 15205 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
15206 | |
15207 | -h, --help print this help, then exit | |
81ecdfbb RW |
15208 | -V, --version print version number and configuration settings, then exit |
15209 | -q, --quiet, --silent | |
15210 | do not print progress messages | |
c6b750e1 DJ |
15211 | -d, --debug don't remove temporary files |
15212 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
15213 | --file=FILE[:TEMPLATE] |
15214 | instantiate the configuration file FILE | |
c6b750e1 DJ |
15215 | |
15216 | Configuration files: | |
15217 | $config_files | |
15218 | ||
81ecdfbb | 15219 | Report bugs to the package provider." |
c6b750e1 | 15220 | |
81ecdfbb RW |
15221 | _ACEOF |
15222 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
c6b750e1 DJ |
15223 | ac_cs_version="\\ |
15224 | config.status | |
81ecdfbb RW |
15225 | configured by $0, generated by GNU Autoconf 2.64, |
15226 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
c6b750e1 | 15227 | |
81ecdfbb | 15228 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
15229 | This config.status script is free software; the Free Software Foundation |
15230 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
15231 | |
15232 | ac_pwd='$ac_pwd' | |
15233 | srcdir='$srcdir' | |
15234 | INSTALL='$INSTALL' | |
8e957354 | 15235 | AWK='$AWK' |
81ecdfbb | 15236 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
15237 | _ACEOF |
15238 | ||
81ecdfbb RW |
15239 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15240 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
15241 | ac_need_defaults=: |
15242 | while test $# != 0 | |
a0da8069 | 15243 | do |
c6b750e1 DJ |
15244 | case $1 in |
15245 | --*=*) | |
81ecdfbb RW |
15246 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15247 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
15248 | ac_shift=: |
15249 | ;; | |
81ecdfbb | 15250 | *) |
c6b750e1 DJ |
15251 | ac_option=$1 |
15252 | ac_optarg=$2 | |
15253 | ac_shift=shift | |
15254 | ;; | |
c6b750e1 DJ |
15255 | esac |
15256 | ||
15257 | case $ac_option in | |
15258 | # Handling of the options. | |
a0da8069 | 15259 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 15260 | ac_cs_recheck=: ;; |
81ecdfbb RW |
15261 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15262 | $as_echo "$ac_cs_version"; exit ;; | |
15263 | --debug | --debu | --deb | --de | --d | -d ) | |
c6b750e1 DJ |
15264 | debug=: ;; |
15265 | --file | --fil | --fi | --f ) | |
15266 | $ac_shift | |
81ecdfbb RW |
15267 | case $ac_optarg in |
15268 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15269 | esac | |
15270 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 15271 | ac_need_defaults=false;; |
81ecdfbb RW |
15272 | --he | --h | --help | --hel | -h ) |
15273 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
15274 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15275 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15276 | ac_cs_silent=: ;; | |
15277 | ||
15278 | # This is an error. | |
81ecdfbb RW |
15279 | -*) as_fn_error "unrecognized option: \`$1' |
15280 | Try \`$0 --help' for more information." ;; | |
c6b750e1 | 15281 | |
81ecdfbb RW |
15282 | *) as_fn_append ac_config_targets " $1" |
15283 | ac_need_defaults=false ;; | |
c6b750e1 | 15284 | |
376a0e54 | 15285 | esac |
c6b750e1 | 15286 | shift |
376a0e54 CM |
15287 | done |
15288 | ||
c6b750e1 | 15289 | ac_configure_extra_args= |
376a0e54 | 15290 | |
c6b750e1 DJ |
15291 | if $ac_cs_silent; then |
15292 | exec 6>/dev/null | |
15293 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15294 | fi | |
376a0e54 | 15295 | |
c6b750e1 | 15296 | _ACEOF |
81ecdfbb | 15297 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 15298 | if \$ac_cs_recheck; then |
81ecdfbb RW |
15299 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15300 | shift | |
15301 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15302 | CONFIG_SHELL='$SHELL' | |
15303 | export CONFIG_SHELL | |
15304 | exec "\$@" | |
c6b750e1 DJ |
15305 | fi |
15306 | ||
15307 | _ACEOF | |
81ecdfbb RW |
15308 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15309 | exec 5>>config.log | |
15310 | { | |
15311 | echo | |
15312 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15313 | ## Running $as_me. ## | |
15314 | _ASBOX | |
15315 | $as_echo "$ac_log" | |
15316 | } >&5 | |
c6b750e1 | 15317 | |
81ecdfbb RW |
15318 | _ACEOF |
15319 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
15320 | # |
15321 | # INIT-COMMANDS | |
15322 | # | |
15323 | extrasub_build="$extrasub_build" | |
15324 | extrasub_host="$extrasub_host" | |
15325 | extrasub_target="$extrasub_target" | |
15326 | ||
81ecdfbb | 15327 | _ACEOF |
c6b750e1 | 15328 | |
81ecdfbb | 15329 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15330 | |
81ecdfbb | 15331 | # Handling of arguments. |
c6b750e1 DJ |
15332 | for ac_config_target in $ac_config_targets |
15333 | do | |
81ecdfbb RW |
15334 | case $ac_config_target in |
15335 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15336 | ||
15337 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
c6b750e1 DJ |
15338 | esac |
15339 | done | |
15340 | ||
81ecdfbb | 15341 | |
c6b750e1 DJ |
15342 | # If the user did not use the arguments to specify the items to instantiate, |
15343 | # then the envvar interface is used. Set only those that are not. | |
15344 | # We use the long form for the default assignment because of an extremely | |
15345 | # bizarre bug on SunOS 4.1.3. | |
15346 | if $ac_need_defaults; then | |
15347 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15348 | fi | |
15349 | ||
15350 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 15351 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 15352 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
15353 | # Hook for its removal unless debugging. |
15354 | # Note that there is a small window in which the directory will not be cleaned: | |
15355 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
15356 | $debug || |
15357 | { | |
81ecdfbb RW |
15358 | tmp= |
15359 | trap 'exit_status=$? | |
15360 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15361 | ' 0 | |
15362 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 15363 | } |
c6b750e1 DJ |
15364 | # Create a (secure) tmp directory for tmp files. |
15365 | ||
15366 | { | |
81ecdfbb | 15367 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
c6b750e1 DJ |
15368 | test -n "$tmp" && test -d "$tmp" |
15369 | } || | |
15370 | { | |
81ecdfbb RW |
15371 | tmp=./conf$$-$RANDOM |
15372 | (umask 077 && mkdir "$tmp") | |
15373 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
15374 | ||
15375 | # Set up the scripts for CONFIG_FILES section. | |
15376 | # No need to generate them if there are no CONFIG_FILES. | |
15377 | # This happens for instance with `./config.status config.h'. | |
15378 | if test -n "$CONFIG_FILES"; then | |
15379 | ||
15380 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15381 | ac_cs_awk_getline=: | |
15382 | ac_cs_awk_pipe_init= | |
15383 | ac_cs_awk_read_file=' | |
15384 | while ((getline aline < (F[key])) > 0) | |
15385 | print(aline) | |
15386 | close(F[key])' | |
15387 | ac_cs_awk_pipe_fini= | |
15388 | else | |
15389 | ac_cs_awk_getline=false | |
15390 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15391 | ac_cs_awk_read_file=' | |
15392 | print "|#_!!_#|" | |
15393 | print "cat " F[key] " &&" | |
15394 | '$ac_cs_awk_pipe_init | |
15395 | # The final `:' finishes the AND list. | |
15396 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15397 | fi | |
15398 | ac_cr=`echo X | tr X '\015'` | |
15399 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15400 | # But we know of no other shell where ac_cr would be empty at this | |
15401 | # point, so we can use a bashism as a fallback. | |
15402 | if test "x$ac_cr" = x; then | |
15403 | eval ac_cr=\$\'\\r\' | |
15404 | fi | |
15405 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15406 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15407 | ac_cs_awk_cr='\r' | |
15408 | else | |
15409 | ac_cs_awk_cr=$ac_cr | |
15410 | fi | |
15411 | ||
15412 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15413 | _ACEOF | |
15414 | ||
15415 | # Create commands to substitute file output variables. | |
c6b750e1 | 15416 | { |
81ecdfbb RW |
15417 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
15418 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
15419 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
15420 | echo "_ACAWK" && | |
15421 | echo "_ACEOF" | |
15422 | } >conf$$files.sh && | |
15423 | . ./conf$$files.sh || | |
15424 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15425 | rm -f conf$$files.sh | |
c6b750e1 | 15426 | |
81ecdfbb RW |
15427 | { |
15428 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15429 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15430 | echo "_ACEOF" | |
15431 | } >conf$$subs.sh || | |
15432 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15433 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15434 | ac_delim='%!_!# ' | |
15435 | for ac_last_try in false false false false false :; do | |
15436 | . ./conf$$subs.sh || | |
15437 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15438 | ||
15439 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15440 | if test $ac_delim_n = $ac_delim_num; then | |
15441 | break | |
15442 | elif $ac_last_try; then | |
15443 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15444 | else | |
15445 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15446 | fi | |
15447 | done | |
15448 | rm -f conf$$subs.sh | |
15449 | ||
15450 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15451 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
c6b750e1 | 15452 | _ACEOF |
81ecdfbb RW |
15453 | sed -n ' |
15454 | h | |
15455 | s/^/S["/; s/!.*/"]=/ | |
15456 | p | |
15457 | g | |
15458 | s/^[^!]*!// | |
15459 | :repl | |
15460 | t repl | |
15461 | s/'"$ac_delim"'$// | |
15462 | t delim | |
15463 | :nl | |
15464 | h | |
15465 | s/\(.\{148\}\).*/\1/ | |
15466 | t more1 | |
15467 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15468 | p | |
15469 | n | |
15470 | b repl | |
15471 | :more1 | |
15472 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15473 | p | |
15474 | g | |
15475 | s/.\{148\}// | |
15476 | t nl | |
15477 | :delim | |
15478 | h | |
15479 | s/\(.\{148\}\).*/\1/ | |
15480 | t more2 | |
15481 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15482 | p | |
15483 | b | |
15484 | :more2 | |
15485 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15486 | p | |
15487 | g | |
15488 | s/.\{148\}// | |
15489 | t delim | |
15490 | ' <conf$$subs.awk | sed ' | |
15491 | /^[^""]/{ | |
15492 | N | |
15493 | s/\n// | |
15494 | } | |
15495 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15496 | rm -f conf$$subs.awk | |
15497 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15498 | _ACAWK | |
15499 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15500 | for (key in S) S_is_set[key] = 1 | |
15501 | FS = "\a" | |
15502 | \$ac_cs_awk_pipe_init | |
15503 | } | |
15504 | { | |
15505 | line = $ 0 | |
15506 | nfields = split(line, field, "@") | |
15507 | substed = 0 | |
15508 | len = length(field[1]) | |
15509 | for (i = 2; i < nfields; i++) { | |
15510 | key = field[i] | |
15511 | keylen = length(key) | |
15512 | if (S_is_set[key]) { | |
15513 | value = S[key] | |
15514 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15515 | len += length(value) + length(field[++i]) | |
15516 | substed = 1 | |
15517 | } else | |
15518 | len += 1 + keylen | |
15519 | } | |
15520 | if (nfields == 3 && !substed) { | |
15521 | key = field[2] | |
15522 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15523 | \$ac_cs_awk_read_file | |
15524 | next | |
15525 | } | |
15526 | } | |
15527 | print line | |
15528 | } | |
15529 | \$ac_cs_awk_pipe_fini | |
15530 | _ACAWK | |
15531 | _ACEOF | |
15532 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15533 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15534 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15535 | else | |
15536 | cat | |
15537 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15538 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15539 | _ACEOF | |
15540 | ||
15541 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15542 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15543 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15544 | # (actually we leave an empty line to preserve line numbers). | |
15545 | if test "x$srcdir" = x.; then | |
15546 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15547 | s/:*\$(srcdir):*/:/ | |
15548 | s/:*\${srcdir}:*/:/ | |
15549 | s/:*@srcdir@:*/:/ | |
15550 | s/^\([^=]*=[ ]*\):*/\1/ | |
15551 | s/:*$// | |
15552 | s/^[^=]*=[ ]*$// | |
15553 | }' | |
15554 | fi | |
c6b750e1 | 15555 | |
81ecdfbb RW |
15556 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15557 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 15558 | |
c6b750e1 | 15559 | |
81ecdfbb RW |
15560 | eval set X " :F $CONFIG_FILES " |
15561 | shift | |
15562 | for ac_tag | |
15563 | do | |
15564 | case $ac_tag in | |
15565 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15566 | esac | |
15567 | case $ac_mode$ac_tag in | |
15568 | :[FHL]*:*);; | |
15569 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15570 | :[FH]-) ac_tag=-:-;; | |
15571 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15572 | esac | |
15573 | ac_save_IFS=$IFS | |
15574 | IFS=: | |
15575 | set x $ac_tag | |
15576 | IFS=$ac_save_IFS | |
15577 | shift | |
15578 | ac_file=$1 | |
15579 | shift | |
252b5132 | 15580 | |
81ecdfbb RW |
15581 | case $ac_mode in |
15582 | :L) ac_source=$1;; | |
15583 | :[FH]) | |
15584 | ac_file_inputs= | |
15585 | for ac_f | |
15586 | do | |
15587 | case $ac_f in | |
15588 | -) ac_f="$tmp/stdin";; | |
15589 | *) # Look for the file first in the build tree, then in the source tree | |
15590 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15591 | # because $ac_f cannot contain `:'. | |
15592 | test -f "$ac_f" || | |
15593 | case $ac_f in | |
15594 | [\\/$]*) false;; | |
15595 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15596 | esac || | |
15597 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15598 | esac | |
15599 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15600 | as_fn_append ac_file_inputs " '$ac_f'" | |
15601 | done | |
c6b750e1 | 15602 | |
81ecdfbb RW |
15603 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15604 | # use $as_me), people would be surprised to read: | |
15605 | # /* config.h. Generated by config.status. */ | |
15606 | configure_input='Generated from '` | |
15607 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15608 | `' by configure.' | |
15609 | if test x"$ac_file" != x-; then | |
15610 | configure_input="$ac_file. $configure_input" | |
15611 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15612 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 15613 | fi |
81ecdfbb RW |
15614 | # Neutralize special characters interpreted by sed in replacement strings. |
15615 | case $configure_input in #( | |
15616 | *\&* | *\|* | *\\* ) | |
15617 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15618 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15619 | *) ac_sed_conf_input=$configure_input;; | |
15620 | esac | |
cac3d6c4 | 15621 | |
81ecdfbb RW |
15622 | case $ac_tag in |
15623 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15624 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15625 | esac | |
15626 | ;; | |
a0da8069 | 15627 | esac |
252b5132 | 15628 | |
81ecdfbb | 15629 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
15630 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15631 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15632 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15633 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15634 | $as_echo X"$ac_file" | | |
15635 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15636 | s//\1/ | |
15637 | q | |
15638 | } | |
15639 | /^X\(\/\/\)[^/].*/{ | |
15640 | s//\1/ | |
15641 | q | |
15642 | } | |
15643 | /^X\(\/\/\)$/{ | |
15644 | s//\1/ | |
15645 | q | |
15646 | } | |
15647 | /^X\(\/\).*/{ | |
15648 | s//\1/ | |
15649 | q | |
15650 | } | |
15651 | s/.*/./; q'` | |
15652 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 15653 | ac_builddir=. |
252b5132 | 15654 | |
81ecdfbb RW |
15655 | case "$ac_dir" in |
15656 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15657 | *) | |
15658 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15659 | # A ".." for each directory in $ac_dir_suffix. | |
15660 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15661 | case $ac_top_builddir_sub in | |
15662 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15663 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15664 | esac ;; | |
15665 | esac | |
15666 | ac_abs_top_builddir=$ac_pwd | |
15667 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15668 | # for backward compatibility: | |
15669 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
15670 | |
15671 | case $srcdir in | |
81ecdfbb | 15672 | .) # We are building in place. |
c6b750e1 | 15673 | ac_srcdir=. |
81ecdfbb RW |
15674 | ac_top_srcdir=$ac_top_builddir_sub |
15675 | ac_abs_top_srcdir=$ac_pwd ;; | |
15676 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 15677 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15678 | ac_top_srcdir=$srcdir |
15679 | ac_abs_top_srcdir=$srcdir ;; | |
15680 | *) # Relative name. | |
15681 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15682 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15683 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 15684 | esac |
81ecdfbb | 15685 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 15686 | |
252b5132 | 15687 | |
81ecdfbb RW |
15688 | case $ac_mode in |
15689 | :F) | |
15690 | # | |
15691 | # CONFIG_FILE | |
15692 | # | |
c6b750e1 DJ |
15693 | |
15694 | case $INSTALL in | |
15695 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 15696 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 15697 | esac |
81ecdfbb | 15698 | _ACEOF |
252b5132 | 15699 | |
81ecdfbb RW |
15700 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15701 | # If the template does not know about datarootdir, expand it. | |
15702 | # FIXME: This hack should be removed a few years after 2.60. | |
15703 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15704 | ac_sed_dataroot=' | |
15705 | /datarootdir/ { | |
15706 | p | |
15707 | q | |
15708 | } | |
15709 | /@datadir@/p | |
15710 | /@docdir@/p | |
15711 | /@infodir@/p | |
15712 | /@localedir@/p | |
15713 | /@mandir@/p' | |
15714 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15715 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15716 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15717 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15718 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 15719 | _ACEOF |
81ecdfbb RW |
15720 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15721 | ac_datarootdir_hack=' | |
15722 | s&@datadir@&$datadir&g | |
15723 | s&@docdir@&$docdir&g | |
15724 | s&@infodir@&$infodir&g | |
15725 | s&@localedir@&$localedir&g | |
15726 | s&@mandir@&$mandir&g | |
15727 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15728 | esac | |
15729 | _ACEOF | |
15730 | ||
15731 | # Neutralize VPATH when `$srcdir' = `.'. | |
15732 | # Shell code in configure.ac might set extrasub. | |
15733 | # FIXME: do we really want to maintain this feature? | |
15734 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15735 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
15736 | $extrasub |
15737 | _ACEOF | |
81ecdfbb | 15738 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
15739 | :t |
15740 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
15741 | s|@configure_input@|$ac_sed_conf_input|;t t |
15742 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15743 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15744 | s&@srcdir@&$ac_srcdir&;t t | |
15745 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15746 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15747 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15748 | s&@builddir@&$ac_builddir&;t t | |
15749 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15750 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15751 | s&@INSTALL@&$ac_INSTALL&;t t | |
15752 | $ac_datarootdir_hack | |
15753 | " | |
15754 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15755 | if $ac_cs_awk_getline; then | |
15756 | $AWK -f "$tmp/subs.awk" | |
15757 | else | |
15758 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15759 | fi >$tmp/out \ | |
15760 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15761 | ||
15762 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15763 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15764 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15765 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15766 | which seems to be undefined. Please make sure it is defined." >&5 | |
15767 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15768 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15769 | ||
15770 | rm -f "$tmp/stdin" | |
15771 | case $ac_file in | |
15772 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
15773 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15774 | esac \ | |
15775 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15776 | ;; | |
c148b4cb | 15777 | |
c148b4cb | 15778 | |
c148b4cb | 15779 | |
81ecdfbb RW |
15780 | esac |
15781 | ||
06a51eac RW |
15782 | |
15783 | case $ac_file$ac_mode in | |
15784 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15785 | sed "$extrasub_host" | | |
15786 | sed "$extrasub_target" > mf$$ | |
15787 | mv -f mf$$ Makefile ;; | |
15788 | ||
15789 | esac | |
81ecdfbb RW |
15790 | done # for ac_tag |
15791 | ||
15792 | ||
15793 | as_fn_exit 0 | |
c6b750e1 | 15794 | _ACEOF |
c6b750e1 DJ |
15795 | ac_clean_files=$ac_clean_files_save |
15796 | ||
81ecdfbb RW |
15797 | test $ac_write_fail = 0 || |
15798 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15799 | ||
c6b750e1 DJ |
15800 | |
15801 | # configure is writing to config.log, and then calls config.status. | |
15802 | # config.status does its own redirection, appending to config.log. | |
15803 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15804 | # by configure, so config.status won't be able to write to it; its | |
15805 | # output is simply discarded. So we exec the FD to /dev/null, | |
15806 | # effectively closing config.log, so it can be properly (re)opened and | |
15807 | # appended to by config.status. When coming back to configure, we | |
15808 | # need to make the FD available again. | |
15809 | if test "$no_create" != yes; then | |
15810 | ac_cs_success=: | |
15811 | ac_config_status_args= | |
15812 | test "$silent" = yes && | |
15813 | ac_config_status_args="$ac_config_status_args --quiet" | |
15814 | exec 5>/dev/null | |
15815 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15816 | exec 5>>config.log | |
15817 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15818 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
15819 | $ac_cs_success || as_fn_exit $? |
15820 | fi | |
15821 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15822 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15823 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 15824 | fi |
c148b4cb | 15825 |