]>
Commit | Line | Data |
---|---|---|
a0da8069 | 1 | #! /bin/sh |
a0da8069 | 2 | # Guess values for system-dependent variables and create Makefiles. |
81ecdfbb RW |
3 | # Generated by GNU Autoconf 2.64. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
a0da8069 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
c6b750e1 | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
c6b750e1 | 31 | fi |
c6b750e1 | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
c6b750e1 DJ |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
c6b750e1 DJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
8e957354 PB |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
81ecdfbb RW |
173 | if (eval "$as_required") 2>/dev/null; then : |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
c6b750e1 | 184 | do |
81ecdfbb RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
c6b750e1 | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell [email protected] about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
c6b750e1 | 233 | fi |
81ecdfbb RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
c6b750e1 | 263 | |
81ecdfbb RW |
264 | # as_fn_exit STATUS |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
372 | ||
373 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
c6b750e1 | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
c6b750e1 | 410 | |
c6b750e1 DJ |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
417 | ||
c6b750e1 | 418 | |
81ecdfbb RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
c6b750e1 | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
c6b750e1 | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c6b750e1 | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
c6b750e1 | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
c6b750e1 DJ |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
c6b750e1 DJ |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
c6b750e1 DJ |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
c6b750e1 | 483 | fi |
c6b750e1 DJ |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
c6b750e1 DJ |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
81ecdfbb RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
519 | |
520 | # Sed expression to map a string onto a valid CPP name. | |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
81ecdfbb | 527 | exec 7<&0 </dev/null 6>&1 |
a0da8069 | 528 | |
c6b750e1 DJ |
529 | # Name of the host. |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
c6b750e1 DJ |
534 | # |
535 | # Initializations. | |
536 | # | |
a0da8069 | 537 | ac_default_prefix=/usr/local |
81ecdfbb | 538 | ac_clean_files= |
c6b750e1 | 539 | ac_config_libobj_dir=. |
81ecdfbb | 540 | LIBOBJS= |
c6b750e1 DJ |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
c6b750e1 DJ |
545 | |
546 | # Identity of this package. | |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
81ecdfbb | 552 | PACKAGE_URL= |
c6b750e1 DJ |
553 | |
554 | ac_unique_file="move-if-change" | |
81ecdfbb RW |
555 | enable_option_checking=no |
556 | ac_subst_vars='LTLIBOBJS | |
557 | LIBOBJS | |
558 | compare_exclusions | |
82033c9b | 559 | host_shared |
81ecdfbb RW |
560 | stage2_werror_flag |
561 | stage1_checking | |
562 | stage1_cflags | |
563 | MAINT | |
564 | MAINTAINER_MODE_FALSE | |
565 | MAINTAINER_MODE_TRUE | |
566 | COMPILER_NM_FOR_TARGET | |
567 | COMPILER_LD_FOR_TARGET | |
568 | COMPILER_AS_FOR_TARGET | |
569 | FLAGS_FOR_TARGET | |
570 | RAW_CXX_FOR_TARGET | |
571 | WINDMC_FOR_TARGET | |
572 | WINDRES_FOR_TARGET | |
573 | STRIP_FOR_TARGET | |
b121d7d4 | 574 | READELF_FOR_TARGET |
81ecdfbb RW |
575 | RANLIB_FOR_TARGET |
576 | OBJDUMP_FOR_TARGET | |
6b91c541 | 577 | OBJCOPY_FOR_TARGET |
81ecdfbb RW |
578 | NM_FOR_TARGET |
579 | LIPO_FOR_TARGET | |
580 | LD_FOR_TARGET | |
581 | DLLTOOL_FOR_TARGET | |
582 | AS_FOR_TARGET | |
583 | AR_FOR_TARGET | |
e552509b | 584 | GOC_FOR_TARGET |
81ecdfbb | 585 | GFORTRAN_FOR_TARGET |
81ecdfbb RW |
586 | GCC_FOR_TARGET |
587 | CXX_FOR_TARGET | |
588 | CC_FOR_TARGET | |
b121d7d4 | 589 | READELF |
81ecdfbb RW |
590 | OBJDUMP |
591 | OBJCOPY | |
592 | WINDMC | |
593 | WINDRES | |
594 | STRIP | |
595 | RANLIB | |
596 | NM | |
597 | LIPO | |
598 | LD | |
599 | DLLTOOL | |
600 | AS | |
601 | AR | |
602 | RUNTEST | |
603 | EXPECT | |
604 | MAKEINFO | |
605 | FLEX | |
606 | LEX | |
607 | M4 | |
608 | BISON | |
609 | YACC | |
81ecdfbb RW |
610 | WINDRES_FOR_BUILD |
611 | WINDMC_FOR_BUILD | |
612 | RANLIB_FOR_BUILD | |
613 | NM_FOR_BUILD | |
614 | LD_FOR_BUILD | |
615 | LDFLAGS_FOR_BUILD | |
e552509b | 616 | GOC_FOR_BUILD |
81ecdfbb | 617 | GFORTRAN_FOR_BUILD |
81ecdfbb RW |
618 | DLLTOOL_FOR_BUILD |
619 | CXX_FOR_BUILD | |
620 | CXXFLAGS_FOR_BUILD | |
621 | CFLAGS_FOR_BUILD | |
622 | CC_FOR_BUILD | |
623 | AS_FOR_BUILD | |
624 | AR_FOR_BUILD | |
911e63d0 | 625 | target_configdirs |
81ecdfbb | 626 | configdirs |
81ecdfbb | 627 | build_configdirs |
81ecdfbb RW |
628 | INSTALL_GDB_TK |
629 | GDB_TK | |
630 | CONFIGURE_GDB_TK | |
631 | build_tooldir | |
632 | tooldir | |
633 | GCC_SHLIB_SUBDIR | |
634 | RPATH_ENVVAR | |
4074d5f2 RW |
635 | target_configargs |
636 | host_configargs | |
637 | build_configargs | |
96655cc4 | 638 | BUILD_CONFIG |
91c1f14c | 639 | LDFLAGS_FOR_TARGET |
81ecdfbb RW |
640 | CXXFLAGS_FOR_TARGET |
641 | CFLAGS_FOR_TARGET | |
642 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
643 | SYSROOT_CFLAGS_FOR_TARGET | |
e81d5d05 | 644 | extra_host_zlib_configure_flags |
700d40ca | 645 | extra_host_libiberty_configure_flags |
1b6c0831 L |
646 | stage1_languages |
647 | extra_linker_plugin_flags | |
648 | extra_linker_plugin_configure_flags | |
7ec59b9e | 649 | islinc |
1b6c0831 | 650 | isllibs |
52cf9762 | 651 | islver |
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 | |
81ecdfbb RW |
784 | enable_stage1_languages |
785 | enable_objc_gc | |
05a13254 NC |
786 | with_target_bdw_gc |
787 | with_target_bdw_gc_include | |
788 | with_target_bdw_gc_lib | |
81ecdfbb RW |
789 | with_build_sysroot |
790 | with_debug_prefix_map | |
96655cc4 | 791 | with_build_config |
730af8ee | 792 | enable_vtable_verify |
81ecdfbb RW |
793 | enable_serial_configure |
794 | with_build_time_tools | |
795 | enable_maintainer_mode | |
796 | enable_stage1_checking | |
797 | enable_werror | |
82033c9b | 798 | enable_host_shared |
81ecdfbb RW |
799 | ' |
800 | ac_precious_vars='build_alias | |
801 | host_alias | |
802 | target_alias | |
803 | CC | |
804 | CFLAGS | |
805 | LDFLAGS | |
806 | LIBS | |
807 | CPPFLAGS | |
808 | CXX | |
809 | CXXFLAGS | |
810 | CCC | |
4074d5f2 RW |
811 | build_configargs |
812 | host_configargs | |
813 | target_configargs | |
81ecdfbb RW |
814 | AR |
815 | AS | |
816 | DLLTOOL | |
817 | LD | |
818 | LIPO | |
819 | NM | |
820 | RANLIB | |
821 | STRIP | |
822 | WINDRES | |
823 | WINDMC | |
824 | OBJCOPY | |
825 | OBJDUMP | |
b121d7d4 | 826 | READELF |
81ecdfbb RW |
827 | CC_FOR_TARGET |
828 | CXX_FOR_TARGET | |
829 | GCC_FOR_TARGET | |
81ecdfbb | 830 | GFORTRAN_FOR_TARGET |
e552509b | 831 | GOC_FOR_TARGET |
81ecdfbb RW |
832 | AR_FOR_TARGET |
833 | AS_FOR_TARGET | |
834 | DLLTOOL_FOR_TARGET | |
835 | LD_FOR_TARGET | |
836 | LIPO_FOR_TARGET | |
837 | NM_FOR_TARGET | |
6b91c541 | 838 | OBJCOPY_FOR_TARGET |
81ecdfbb RW |
839 | OBJDUMP_FOR_TARGET |
840 | RANLIB_FOR_TARGET | |
b121d7d4 | 841 | READELF_FOR_TARGET |
81ecdfbb RW |
842 | STRIP_FOR_TARGET |
843 | WINDRES_FOR_TARGET | |
844 | WINDMC_FOR_TARGET' | |
845 | ||
a0da8069 NN |
846 | |
847 | # Initialize some variables set by options. | |
c6b750e1 DJ |
848 | ac_init_help= |
849 | ac_init_version=false | |
81ecdfbb RW |
850 | ac_unrecognized_opts= |
851 | ac_unrecognized_sep= | |
a0da8069 NN |
852 | # The variables have the same names as the options, with |
853 | # dashes changed to underlines. | |
c6b750e1 | 854 | cache_file=/dev/null |
a0da8069 | 855 | exec_prefix=NONE |
a0da8069 | 856 | no_create= |
a0da8069 NN |
857 | no_recursion= |
858 | prefix=NONE | |
859 | program_prefix=NONE | |
860 | program_suffix=NONE | |
861 | program_transform_name=s,x,x, | |
862 | silent= | |
863 | site= | |
864 | srcdir= | |
a0da8069 NN |
865 | verbose= |
866 | x_includes=NONE | |
867 | x_libraries=NONE | |
c6b750e1 DJ |
868 | |
869 | # Installation directory options. | |
870 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
871 | # and all the variables that are supposed to be based on exec_prefix | |
872 | # by default will actually change. | |
873 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 874 | # (The list follows the same order as the GNU Coding Standards.) |
a0da8069 NN |
875 | bindir='${exec_prefix}/bin' |
876 | sbindir='${exec_prefix}/sbin' | |
877 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
878 | datarootdir='${prefix}/share' |
879 | datadir='${datarootdir}' | |
a0da8069 NN |
880 | sysconfdir='${prefix}/etc' |
881 | sharedstatedir='${prefix}/com' | |
882 | localstatedir='${prefix}/var' | |
a0da8069 NN |
883 | includedir='${prefix}/include' |
884 | oldincludedir='/usr/include' | |
81ecdfbb RW |
885 | docdir='${datarootdir}/doc/${PACKAGE}' |
886 | infodir='${datarootdir}/info' | |
887 | htmldir='${docdir}' | |
888 | dvidir='${docdir}' | |
889 | pdfdir='${docdir}' | |
890 | psdir='${docdir}' | |
891 | libdir='${exec_prefix}/lib' | |
892 | localedir='${datarootdir}/locale' | |
893 | mandir='${datarootdir}/man' | |
252b5132 | 894 | |
a0da8069 | 895 | ac_prev= |
81ecdfbb | 896 | ac_dashdash= |
a0da8069 NN |
897 | for ac_option |
898 | do | |
a0da8069 NN |
899 | # If the previous option needs an argument, assign it. |
900 | if test -n "$ac_prev"; then | |
81ecdfbb | 901 | eval $ac_prev=\$ac_option |
a0da8069 NN |
902 | ac_prev= |
903 | continue | |
904 | fi | |
252b5132 | 905 | |
81ecdfbb RW |
906 | case $ac_option in |
907 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
908 | *) ac_optarg=yes ;; | |
909 | esac | |
a0da8069 NN |
910 | |
911 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
912 | ||
81ecdfbb RW |
913 | case $ac_dashdash$ac_option in |
914 | --) | |
915 | ac_dashdash=yes ;; | |
a0da8069 NN |
916 | |
917 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
918 | ac_prev=bindir ;; | |
919 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
c6b750e1 | 920 | bindir=$ac_optarg ;; |
a0da8069 NN |
921 | |
922 | -build | --build | --buil | --bui | --bu) | |
c6b750e1 | 923 | ac_prev=build_alias ;; |
a0da8069 | 924 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
c6b750e1 | 925 | build_alias=$ac_optarg ;; |
a0da8069 NN |
926 | |
927 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
928 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
929 | ac_prev=cache_file ;; | |
930 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
931 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
c6b750e1 DJ |
932 | cache_file=$ac_optarg ;; |
933 | ||
934 | --config-cache | -C) | |
935 | cache_file=config.cache ;; | |
a0da8069 | 936 | |
81ecdfbb | 937 | -datadir | --datadir | --datadi | --datad) |
a0da8069 | 938 | ac_prev=datadir ;; |
81ecdfbb | 939 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
c6b750e1 | 940 | datadir=$ac_optarg ;; |
a0da8069 | 941 | |
81ecdfbb RW |
942 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
943 | | --dataroo | --dataro | --datar) | |
944 | ac_prev=datarootdir ;; | |
945 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
946 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
947 | datarootdir=$ac_optarg ;; | |
948 | ||
a0da8069 | 949 | -disable-* | --disable-*) |
81ecdfbb | 950 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a0da8069 | 951 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
952 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
953 | as_fn_error "invalid feature name: $ac_useropt" | |
954 | ac_useropt_orig=$ac_useropt | |
955 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
956 | case $ac_user_opts in | |
957 | *" | |
958 | "enable_$ac_useropt" | |
959 | "*) ;; | |
960 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
961 | ac_unrecognized_sep=', ';; | |
962 | esac | |
963 | eval enable_$ac_useropt=no ;; | |
964 | ||
965 | -docdir | --docdir | --docdi | --doc | --do) | |
966 | ac_prev=docdir ;; | |
967 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
968 | docdir=$ac_optarg ;; | |
969 | ||
970 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
971 | ac_prev=dvidir ;; | |
972 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
973 | dvidir=$ac_optarg ;; | |
a0da8069 NN |
974 | |
975 | -enable-* | --enable-*) | |
81ecdfbb | 976 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a0da8069 | 977 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
978 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
979 | as_fn_error "invalid feature name: $ac_useropt" | |
980 | ac_useropt_orig=$ac_useropt | |
981 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
982 | case $ac_user_opts in | |
983 | *" | |
984 | "enable_$ac_useropt" | |
985 | "*) ;; | |
986 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
987 | ac_unrecognized_sep=', ';; | |
a0da8069 | 988 | esac |
81ecdfbb | 989 | eval enable_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
990 | |
991 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
992 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
993 | | --exec | --exe | --ex) | |
994 | ac_prev=exec_prefix ;; | |
995 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
996 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
997 | | --exec=* | --exe=* | --ex=*) | |
c6b750e1 | 998 | exec_prefix=$ac_optarg ;; |
a0da8069 NN |
999 | |
1000 | -gas | --gas | --ga | --g) | |
1001 | # Obsolete; use --with-gas. | |
1002 | with_gas=yes ;; | |
1003 | ||
c6b750e1 DJ |
1004 | -help | --help | --hel | --he | -h) |
1005 | ac_init_help=long ;; | |
1006 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1007 | ac_init_help=recursive ;; | |
1008 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1009 | ac_init_help=short ;; | |
a0da8069 NN |
1010 | |
1011 | -host | --host | --hos | --ho) | |
c6b750e1 | 1012 | ac_prev=host_alias ;; |
a0da8069 | 1013 | -host=* | --host=* | --hos=* | --ho=*) |
c6b750e1 | 1014 | host_alias=$ac_optarg ;; |
a0da8069 | 1015 | |
81ecdfbb RW |
1016 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1017 | ac_prev=htmldir ;; | |
1018 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1019 | | --ht=*) | |
1020 | htmldir=$ac_optarg ;; | |
1021 | ||
a0da8069 NN |
1022 | -includedir | --includedir | --includedi | --included | --include \ |
1023 | | --includ | --inclu | --incl | --inc) | |
1024 | ac_prev=includedir ;; | |
1025 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1026 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
c6b750e1 | 1027 | includedir=$ac_optarg ;; |
a0da8069 NN |
1028 | |
1029 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1030 | ac_prev=infodir ;; | |
1031 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
c6b750e1 | 1032 | infodir=$ac_optarg ;; |
a0da8069 NN |
1033 | |
1034 | -libdir | --libdir | --libdi | --libd) | |
1035 | ac_prev=libdir ;; | |
1036 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
c6b750e1 | 1037 | libdir=$ac_optarg ;; |
a0da8069 NN |
1038 | |
1039 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1040 | | --libexe | --libex | --libe) | |
1041 | ac_prev=libexecdir ;; | |
1042 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1043 | | --libexe=* | --libex=* | --libe=*) | |
c6b750e1 | 1044 | libexecdir=$ac_optarg ;; |
a0da8069 | 1045 | |
81ecdfbb RW |
1046 | -localedir | --localedir | --localedi | --localed | --locale) |
1047 | ac_prev=localedir ;; | |
1048 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1049 | localedir=$ac_optarg ;; | |
1050 | ||
a0da8069 | 1051 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1052 | | --localstate | --localstat | --localsta | --localst | --locals) |
a0da8069 NN |
1053 | ac_prev=localstatedir ;; |
1054 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1055 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
c6b750e1 | 1056 | localstatedir=$ac_optarg ;; |
a0da8069 NN |
1057 | |
1058 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1059 | ac_prev=mandir ;; | |
1060 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
c6b750e1 | 1061 | mandir=$ac_optarg ;; |
a0da8069 NN |
1062 | |
1063 | -nfp | --nfp | --nf) | |
1064 | # Obsolete; use --without-fp. | |
1065 | with_fp=no ;; | |
1066 | ||
1067 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c6b750e1 | 1068 | | --no-cr | --no-c | -n) |
a0da8069 NN |
1069 | no_create=yes ;; |
1070 | ||
1071 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1072 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1073 | no_recursion=yes ;; | |
1074 | ||
1075 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1076 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1077 | | --oldin | --oldi | --old | --ol | --o) | |
1078 | ac_prev=oldincludedir ;; | |
1079 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1080 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1081 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
c6b750e1 | 1082 | oldincludedir=$ac_optarg ;; |
a0da8069 NN |
1083 | |
1084 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1085 | ac_prev=prefix ;; | |
1086 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
c6b750e1 | 1087 | prefix=$ac_optarg ;; |
a0da8069 NN |
1088 | |
1089 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1090 | | --program-pre | --program-pr | --program-p) | |
1091 | ac_prev=program_prefix ;; | |
1092 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1093 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
c6b750e1 | 1094 | program_prefix=$ac_optarg ;; |
a0da8069 NN |
1095 | |
1096 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1097 | | --program-suf | --program-su | --program-s) | |
1098 | ac_prev=program_suffix ;; | |
1099 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1100 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
c6b750e1 | 1101 | program_suffix=$ac_optarg ;; |
a0da8069 NN |
1102 | |
1103 | -program-transform-name | --program-transform-name \ | |
1104 | | --program-transform-nam | --program-transform-na \ | |
1105 | | --program-transform-n | --program-transform- \ | |
1106 | | --program-transform | --program-transfor \ | |
1107 | | --program-transfo | --program-transf \ | |
1108 | | --program-trans | --program-tran \ | |
1109 | | --progr-tra | --program-tr | --program-t) | |
1110 | ac_prev=program_transform_name ;; | |
1111 | -program-transform-name=* | --program-transform-name=* \ | |
1112 | | --program-transform-nam=* | --program-transform-na=* \ | |
1113 | | --program-transform-n=* | --program-transform-=* \ | |
1114 | | --program-transform=* | --program-transfor=* \ | |
1115 | | --program-transfo=* | --program-transf=* \ | |
1116 | | --program-trans=* | --program-tran=* \ | |
1117 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
c6b750e1 | 1118 | program_transform_name=$ac_optarg ;; |
a0da8069 | 1119 | |
81ecdfbb RW |
1120 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1121 | ac_prev=pdfdir ;; | |
1122 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1123 | pdfdir=$ac_optarg ;; | |
1124 | ||
1125 | -psdir | --psdir | --psdi | --psd | --ps) | |
1126 | ac_prev=psdir ;; | |
1127 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1128 | psdir=$ac_optarg ;; | |
1129 | ||
a0da8069 NN |
1130 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1131 | | -silent | --silent | --silen | --sile | --sil) | |
1132 | silent=yes ;; | |
1133 | ||
1134 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1135 | ac_prev=sbindir ;; | |
1136 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1137 | | --sbi=* | --sb=*) | |
c6b750e1 | 1138 | sbindir=$ac_optarg ;; |
a0da8069 NN |
1139 | |
1140 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1141 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1142 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1143 | | --sha | --sh) | |
1144 | ac_prev=sharedstatedir ;; | |
1145 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1146 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1147 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1148 | | --sha=* | --sh=*) | |
c6b750e1 | 1149 | sharedstatedir=$ac_optarg ;; |
a0da8069 NN |
1150 | |
1151 | -site | --site | --sit) | |
1152 | ac_prev=site ;; | |
1153 | -site=* | --site=* | --sit=*) | |
c6b750e1 | 1154 | site=$ac_optarg ;; |
a0da8069 NN |
1155 | |
1156 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1157 | ac_prev=srcdir ;; | |
1158 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
c6b750e1 | 1159 | srcdir=$ac_optarg ;; |
a0da8069 NN |
1160 | |
1161 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1162 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1163 | ac_prev=sysconfdir ;; | |
1164 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1165 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
c6b750e1 | 1166 | sysconfdir=$ac_optarg ;; |
a0da8069 NN |
1167 | |
1168 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
c6b750e1 | 1169 | ac_prev=target_alias ;; |
a0da8069 | 1170 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
c6b750e1 | 1171 | target_alias=$ac_optarg ;; |
a0da8069 NN |
1172 | |
1173 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1174 | verbose=yes ;; | |
1175 | ||
c6b750e1 DJ |
1176 | -version | --version | --versio | --versi | --vers | -V) |
1177 | ac_init_version=: ;; | |
a0da8069 NN |
1178 | |
1179 | -with-* | --with-*) | |
81ecdfbb | 1180 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a0da8069 | 1181 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1182 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1183 | as_fn_error "invalid package name: $ac_useropt" | |
1184 | ac_useropt_orig=$ac_useropt | |
1185 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1186 | case $ac_user_opts in | |
1187 | *" | |
1188 | "with_$ac_useropt" | |
1189 | "*) ;; | |
1190 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1191 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1192 | esac |
81ecdfbb | 1193 | eval with_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1194 | |
1195 | -without-* | --without-*) | |
81ecdfbb | 1196 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a0da8069 | 1197 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1198 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1199 | as_fn_error "invalid package name: $ac_useropt" | |
1200 | ac_useropt_orig=$ac_useropt | |
1201 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1202 | case $ac_user_opts in | |
1203 | *" | |
1204 | "with_$ac_useropt" | |
1205 | "*) ;; | |
1206 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1207 | ac_unrecognized_sep=', ';; | |
1208 | esac | |
1209 | eval with_$ac_useropt=no ;; | |
a0da8069 NN |
1210 | |
1211 | --x) | |
1212 | # Obsolete; use --with-x. | |
1213 | with_x=yes ;; | |
1214 | ||
1215 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1216 | | --x-incl | --x-inc | --x-in | --x-i) | |
1217 | ac_prev=x_includes ;; | |
1218 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1219 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
c6b750e1 | 1220 | x_includes=$ac_optarg ;; |
a0da8069 NN |
1221 | |
1222 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1223 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1224 | ac_prev=x_libraries ;; | |
1225 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1226 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
c6b750e1 | 1227 | x_libraries=$ac_optarg ;; |
a0da8069 | 1228 | |
81ecdfbb RW |
1229 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1230 | Try \`$0 --help' for more information." | |
a0da8069 NN |
1231 | ;; |
1232 | ||
c6b750e1 DJ |
1233 | *=*) |
1234 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1235 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1236 | case $ac_envvar in #( |
1237 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1238 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1239 | esac | |
1240 | eval $ac_envvar=\$ac_optarg | |
c6b750e1 DJ |
1241 | export $ac_envvar ;; |
1242 | ||
a0da8069 | 1243 | *) |
c6b750e1 | 1244 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1245 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
c6b750e1 | 1246 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1247 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
c6b750e1 | 1248 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
a0da8069 NN |
1249 | ;; |
1250 | ||
1251 | esac | |
1252 | done | |
1253 | ||
1254 | if test -n "$ac_prev"; then | |
c6b750e1 | 1255 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1256 | as_fn_error "missing argument to $ac_option" |
a0da8069 | 1257 | fi |
a0da8069 | 1258 | |
81ecdfbb RW |
1259 | if test -n "$ac_unrecognized_opts"; then |
1260 | case $enable_option_checking in | |
1261 | no) ;; | |
1262 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1263 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
c6b750e1 | 1264 | esac |
81ecdfbb | 1265 | fi |
a0da8069 | 1266 | |
81ecdfbb RW |
1267 | # Check all directory arguments for consistency. |
1268 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1269 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1270 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1271 | libdir localedir mandir | |
a0da8069 | 1272 | do |
81ecdfbb RW |
1273 | eval ac_val=\$$ac_var |
1274 | # Remove trailing slashes. | |
1275 | case $ac_val in | |
1276 | */ ) | |
1277 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1278 | eval $ac_var=\$ac_val;; | |
1279 | esac | |
1280 | # Be sure to have absolute directory names. | |
c6b750e1 | 1281 | case $ac_val in |
81ecdfbb RW |
1282 | [\\/$]* | ?:[\\/]* ) continue;; |
1283 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a0da8069 | 1284 | esac |
81ecdfbb | 1285 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
a0da8069 NN |
1286 | done |
1287 | ||
c6b750e1 DJ |
1288 | # There might be people who depend on the old broken behavior: `$host' |
1289 | # used to hold the argument of --host etc. | |
1290 | # FIXME: To remove some day. | |
1291 | build=$build_alias | |
1292 | host=$host_alias | |
1293 | target=$target_alias | |
376a0e54 | 1294 | |
c6b750e1 DJ |
1295 | # FIXME: To remove some day. |
1296 | if test "x$host_alias" != x; then | |
1297 | if test "x$build_alias" = x; then | |
1298 | cross_compiling=maybe | |
81ecdfbb | 1299 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
c6b750e1 DJ |
1300 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1301 | elif test "x$build_alias" != "x$host_alias"; then | |
1302 | cross_compiling=yes | |
1303 | fi | |
1304 | fi | |
1305 | ||
1306 | ac_tool_prefix= | |
1307 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1308 | ||
1309 | test "$silent" = yes && exec 6>/dev/null | |
a0da8069 | 1310 | |
a0da8069 | 1311 | |
81ecdfbb RW |
1312 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1313 | ac_ls_di=`ls -di .` && | |
1314 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1315 | as_fn_error "working directory cannot be determined" | |
1316 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1317 | as_fn_error "pwd does not report name of working directory" | |
1318 | ||
1319 | ||
a0da8069 NN |
1320 | # Find the source files, if location was not specified. |
1321 | if test -z "$srcdir"; then | |
1322 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1323 | # Try the directory containing this script, then the parent directory. |
1324 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1325 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1326 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1327 | X"$as_myself" : 'X\(//\)$' \| \ | |
1328 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1329 | $as_echo X"$as_myself" | | |
1330 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1331 | s//\1/ | |
1332 | q | |
1333 | } | |
1334 | /^X\(\/\/\)[^/].*/{ | |
1335 | s//\1/ | |
1336 | q | |
1337 | } | |
1338 | /^X\(\/\/\)$/{ | |
1339 | s//\1/ | |
1340 | q | |
1341 | } | |
1342 | /^X\(\/\).*/{ | |
1343 | s//\1/ | |
1344 | q | |
1345 | } | |
1346 | s/.*/./; q'` | |
a0da8069 | 1347 | srcdir=$ac_confdir |
81ecdfbb | 1348 | if test ! -r "$srcdir/$ac_unique_file"; then |
a0da8069 NN |
1349 | srcdir=.. |
1350 | fi | |
1351 | else | |
1352 | ac_srcdir_defaulted=no | |
1353 | fi | |
81ecdfbb RW |
1354 | if test ! -r "$srcdir/$ac_unique_file"; then |
1355 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1356 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1357 | fi | |
1358 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1359 | ac_abs_confdir=`( | |
1360 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1361 | pwd)` | |
1362 | # When building in place, set srcdir=. | |
1363 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1364 | srcdir=. | |
1365 | fi | |
1366 | # Remove unnecessary trailing slashes from srcdir. | |
1367 | # Double slashes in file names in object file debugging info | |
1368 | # mess up M-x gdb in Emacs. | |
1369 | case $srcdir in | |
1370 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1371 | esac | |
6d0cd39e AM |
1372 | case $srcdir in |
1373 | *" "*) | |
1374 | as_fn_error "path to source, $srcdir, contains spaces" | |
1375 | ;; | |
1376 | esac | |
9cc8ae67 PB |
1377 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1378 | ||
81ecdfbb RW |
1379 | for ac_var in $ac_precious_vars; do |
1380 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1381 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1382 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1383 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1384 | done | |
c6b750e1 DJ |
1385 | |
1386 | # | |
1387 | # Report the --help message. | |
1388 | # | |
1389 | if test "$ac_init_help" = "long"; then | |
1390 | # Omit some internal or obsolete options to make the list less imposing. | |
1391 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1392 | cat <<_ACEOF | |
1393 | \`configure' configures this package to adapt to many kinds of systems. | |
1394 | ||
1395 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1396 | ||
1397 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1398 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1399 | ||
1400 | Defaults for the options are specified in brackets. | |
1401 | ||
1402 | Configuration: | |
1403 | -h, --help display this help and exit | |
1404 | --help=short display options specific to this package | |
1405 | --help=recursive display the short help of all the included packages | |
1406 | -V, --version display version information and exit | |
1407 | -q, --quiet, --silent do not print \`checking...' messages | |
1408 | --cache-file=FILE cache test results in FILE [disabled] | |
1409 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1410 | -n, --no-create do not create output files | |
1411 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1412 | ||
c6b750e1 DJ |
1413 | Installation directories: |
1414 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1415 | [$ac_default_prefix] |
c6b750e1 | 1416 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1417 | [PREFIX] |
c6b750e1 DJ |
1418 | |
1419 | By default, \`make install' will install all the files in | |
1420 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1421 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1422 | for instance \`--prefix=\$HOME'. | |
1423 | ||
1424 | For better control, use the options below. | |
1425 | ||
1426 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1427 | --bindir=DIR user executables [EPREFIX/bin] |
1428 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1429 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1430 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1431 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1432 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1433 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1434 | --includedir=DIR C header files [PREFIX/include] | |
1435 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1436 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1437 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1438 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1439 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1440 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1441 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1442 | --htmldir=DIR html documentation [DOCDIR] | |
1443 | --dvidir=DIR dvi documentation [DOCDIR] | |
1444 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1445 | --psdir=DIR ps documentation [DOCDIR] | |
c6b750e1 DJ |
1446 | _ACEOF |
1447 | ||
1448 | cat <<\_ACEOF | |
1449 | ||
1450 | Program names: | |
1451 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1452 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1453 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1454 | ||
1455 | System types: | |
1456 | --build=BUILD configure for building on BUILD [guessed] | |
1457 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1458 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1459 | _ACEOF | |
a0da8069 | 1460 | fi |
a0da8069 | 1461 | |
c6b750e1 DJ |
1462 | if test -n "$ac_init_help"; then |
1463 | ||
1464 | cat <<\_ACEOF | |
1465 | ||
1466 | Optional Features: | |
81ecdfbb | 1467 | --disable-option-checking ignore unrecognized --enable/--with options |
c6b750e1 DJ |
1468 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1469 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1b6c0831 L |
1470 | --enable-as-accelerator-for=ARG |
1471 | build as offload target compiler. Specify offload | |
1472 | host triple by ARG | |
1473 | --enable-offload-targets=LIST | |
1474 | enable offloading to devices from comma-separated | |
1475 | LIST of TARGET[=DIR]. Use optional path to find | |
1476 | offload target compiler during the build | |
c7791212 | 1477 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7837304f | 1478 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
6c3bc0f8 | 1479 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
edeefb67 L |
1480 | Enable compressed debug sections for gas, gold or ld |
1481 | by default | |
89a1e9c3 PB |
1482 | --disable-libquadmath do not build libquadmath directory |
1483 | --disable-libquadmath-support | |
1484 | disable libquadmath support for Fortran | |
521ec477 DD |
1485 | --enable-libada build libada directory |
1486 | --enable-libssp build libssp directory | |
f66a9a70 | 1487 | --disable-libstdcxx do not build libstdc++-v3 directory |
1b6c0831 L |
1488 | --enable-liboffloadmic=ARG |
1489 | build liboffloadmic [ARG={no,host,target}] | |
ffdd6afc | 1490 | --enable-bootstrap enable bootstrapping [yes if native build] |
7ec59b9e | 1491 | --disable-isl-version-check |
4849dfd8 | 1492 | disable check for isl version |
700d40ca | 1493 | --enable-lto enable link time optimization support |
1b6c0831 L |
1494 | --enable-linker-plugin-configure-flags=FLAGS |
1495 | additional flags for configuring linker plugins | |
1496 | [none] | |
1497 | --enable-linker-plugin-flags=FLAGS | |
1498 | additional flags for configuring and building linker | |
1499 | plugins [none] | |
7837304f AS |
1500 | --enable-stage1-languages[=all] |
1501 | choose additional languages to build during stage1. | |
1502 | Mostly useful for compiler development | |
1503 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1504 | Objective-C runtime | |
ce6c656d | 1505 | --enable-vtable-verify Enable vtable verification feature |
521ec477 | 1506 | --enable-serial-[{host,target,build}-]configure |
7837304f AS |
1507 | force sequential configuration of sub-packages for |
1508 | the host, target or build machine, or all | |
1509 | sub-packages | |
1510 | --enable-maintainer-mode | |
1511 | enable make rules and dependencies not useful (and | |
1512 | sometimes confusing) to the casual installer | |
1513 | --enable-stage1-checking[=all] | |
1514 | choose additional checking for stage1 of the | |
1515 | compiler | |
c6b750e1 | 1516 | --enable-werror enable -Werror in bootstrap stage2 and later |
82033c9b | 1517 | --enable-host-shared build host code as shared libraries |
c6b750e1 DJ |
1518 | |
1519 | Optional Packages: | |
1520 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1521 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1522 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
cf39cfc5 | 1523 | --with-system-zlib use installed libz |
7837304f AS |
1524 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1525 | Equivalent to --with-mpc-include=PATH/include plus | |
1526 | --with-mpc-lib=PATH/lib | |
1527 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1528 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
521ec477 DD |
1529 | --with-mpfr-dir=PATH this option has been REMOVED |
1530 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
7837304f AS |
1531 | Equivalent to --with-mpfr-include=PATH/include plus |
1532 | --with-mpfr-lib=PATH/lib | |
c6b750e1 | 1533 | --with-mpfr-include=PATH |
521ec477 DD |
1534 | specify directory for installed MPFR include files |
1535 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1536 | --with-gmp-dir=PATH this option has been REMOVED | |
7837304f AS |
1537 | --with-gmp=PATH specify prefix directory for the installed GMP |
1538 | package. Equivalent to | |
1539 | --with-gmp-include=PATH/include plus | |
1540 | --with-gmp-lib=PATH/lib | |
521ec477 DD |
1541 | --with-gmp-include=PATH specify directory for installed GMP include files |
1542 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
b3676d82 | 1543 | --with-stage1-libs=LIBS libraries for stage1 |
7837304f AS |
1544 | --with-stage1-ldflags=FLAGS |
1545 | linker flags for stage1 | |
7837304f AS |
1546 | --with-boot-libs=LIBS libraries for stage2 and later |
1547 | --with-boot-ldflags=FLAGS | |
1548 | linker flags for stage2 and later | |
4849dfd8 | 1549 | --with-isl=PATH Specify prefix directory for the installed isl |
7837304f | 1550 | package. Equivalent to |
7ec59b9e L |
1551 | --with-isl-include=PATH/include plus |
1552 | --with-isl-lib=PATH/lib | |
4849dfd8 NC |
1553 | --with-isl-include=PATH Specify directory for installed isl include files |
1554 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
05a13254 NC |
1555 | --with-target-bdw-gc=PATHLIST |
1556 | specify prefix directory for installed bdw-gc | |
1557 | package. Equivalent to | |
1558 | --with-target-bdw-gc-include=PATH/include plus | |
1559 | --with-target-bdw-gc-lib=PATH/lib | |
1560 | --with-target-bdw-gc-include=PATHLIST | |
1561 | specify directories for installed bdw-gc include | |
1562 | files | |
1563 | --with-target-bdw-gc-lib=PATHLIST | |
1564 | specify directories for installed bdw-gc library | |
521ec477 | 1565 | --with-build-sysroot=SYSROOT |
c6b750e1 | 1566 | use sysroot as the system root during the build |
8a6ee3ab | 1567 | --with-debug-prefix-map='A=B C=D ...' |
7837304f AS |
1568 | map A to B, C to D ... in debug information |
1569 | --with-build-config='NAME NAME2...' | |
1570 | use config/NAME.mk build configuration | |
521ec477 | 1571 | --with-build-time-tools=PATH |
c6b750e1 | 1572 | use given path to find target tools during the build |
c6b750e1 DJ |
1573 | |
1574 | Some influential environment variables: | |
1575 | CC C compiler command | |
1576 | CFLAGS C compiler flags | |
1577 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1578 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1579 | LIBS libraries to pass to the linker, e.g. -l<library> |
1580 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1581 | you have headers in a nonstandard directory <include dir> | |
18f6b6ee PB |
1582 | CXX C++ compiler command |
1583 | CXXFLAGS C++ compiler flags | |
4074d5f2 RW |
1584 | build_configargs |
1585 | additional configure arguments for build directories | |
1586 | host_configargs | |
1587 | additional configure arguments for host directories | |
1588 | target_configargs | |
1589 | additional configure arguments for target directories | |
9a819804 AO |
1590 | AR AR for the host |
1591 | AS AS for the host | |
1592 | DLLTOOL DLLTOOL for the host | |
1593 | LD LD for the host | |
1594 | LIPO LIPO for the host | |
1595 | NM NM for the host | |
1596 | RANLIB RANLIB for the host | |
1597 | STRIP STRIP for the host | |
1598 | WINDRES WINDRES for the host | |
0c24b341 | 1599 | WINDMC WINDMC for the host |
9a819804 AO |
1600 | OBJCOPY OBJCOPY for the host |
1601 | OBJDUMP OBJDUMP for the host | |
b121d7d4 | 1602 | READELF READELF for the host |
9a819804 AO |
1603 | CC_FOR_TARGET |
1604 | CC for the target | |
1605 | CXX_FOR_TARGET | |
1606 | CXX for the target | |
1607 | GCC_FOR_TARGET | |
1608 | GCC for the target | |
9a819804 AO |
1609 | GFORTRAN_FOR_TARGET |
1610 | GFORTRAN for the target | |
e552509b ILT |
1611 | GOC_FOR_TARGET |
1612 | GOC for the target | |
9a819804 AO |
1613 | AR_FOR_TARGET |
1614 | AR for the target | |
1615 | AS_FOR_TARGET | |
1616 | AS for the target | |
1617 | DLLTOOL_FOR_TARGET | |
1618 | DLLTOOL for the target | |
1619 | LD_FOR_TARGET | |
1620 | LD for the target | |
1621 | LIPO_FOR_TARGET | |
1622 | LIPO for the target | |
1623 | NM_FOR_TARGET | |
1624 | NM for the target | |
6b91c541 AP |
1625 | OBJCOPY_FOR_TARGET |
1626 | OBJCOPY for the target | |
9a819804 AO |
1627 | OBJDUMP_FOR_TARGET |
1628 | OBJDUMP for the target | |
1629 | RANLIB_FOR_TARGET | |
1630 | RANLIB for the target | |
b121d7d4 DD |
1631 | READELF_FOR_TARGET |
1632 | READELF for the target | |
9a819804 AO |
1633 | STRIP_FOR_TARGET |
1634 | STRIP for the target | |
1635 | WINDRES_FOR_TARGET | |
1636 | WINDRES for the target | |
0c24b341 NC |
1637 | WINDMC_FOR_TARGET |
1638 | WINDMC for the target | |
c6b750e1 DJ |
1639 | |
1640 | Use these variables to override the choices made by `configure' or to help | |
1641 | it to find libraries and programs with nonstandard names/locations. | |
1642 | ||
81ecdfbb | 1643 | Report bugs to the package provider. |
c6b750e1 | 1644 | _ACEOF |
81ecdfbb | 1645 | ac_status=$? |
c6b750e1 DJ |
1646 | fi |
1647 | ||
1648 | if test "$ac_init_help" = "recursive"; then | |
1649 | # If there are subdirs, report their specific --help. | |
c6b750e1 | 1650 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1651 | test -d "$ac_dir" || |
1652 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1653 | continue | |
c6b750e1 DJ |
1654 | ac_builddir=. |
1655 | ||
81ecdfbb RW |
1656 | case "$ac_dir" in |
1657 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1658 | *) | |
1659 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1660 | # A ".." for each directory in $ac_dir_suffix. | |
1661 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1662 | case $ac_top_builddir_sub in | |
1663 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1664 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1665 | esac ;; | |
1666 | esac | |
1667 | ac_abs_top_builddir=$ac_pwd | |
1668 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1669 | # for backward compatibility: | |
1670 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
1671 | |
1672 | case $srcdir in | |
81ecdfbb | 1673 | .) # We are building in place. |
c6b750e1 | 1674 | ac_srcdir=. |
81ecdfbb RW |
1675 | ac_top_srcdir=$ac_top_builddir_sub |
1676 | ac_abs_top_srcdir=$ac_pwd ;; | |
1677 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 1678 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1679 | ac_top_srcdir=$srcdir |
1680 | ac_abs_top_srcdir=$srcdir ;; | |
1681 | *) # Relative name. | |
1682 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1683 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1684 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 1685 | esac |
81ecdfbb RW |
1686 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1687 | ||
1688 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1689 | # Check for guested configure. | |
1690 | if test -f "$ac_srcdir/configure.gnu"; then | |
1691 | echo && | |
1692 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1693 | elif test -f "$ac_srcdir/configure"; then | |
1694 | echo && | |
1695 | $SHELL "$ac_srcdir/configure" --help=recursive | |
c6b750e1 | 1696 | else |
81ecdfbb RW |
1697 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1698 | fi || ac_status=$? | |
1699 | cd "$ac_pwd" || { ac_status=$?; break; } | |
c6b750e1 DJ |
1700 | done |
1701 | fi | |
1702 | ||
81ecdfbb | 1703 | test -n "$ac_init_help" && exit $ac_status |
c6b750e1 DJ |
1704 | if $ac_init_version; then |
1705 | cat <<\_ACEOF | |
81ecdfbb RW |
1706 | configure |
1707 | generated by GNU Autoconf 2.64 | |
c6b750e1 | 1708 | |
81ecdfbb | 1709 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
1710 | This configure script is free software; the Free Software Foundation |
1711 | gives unlimited permission to copy, distribute and modify it. | |
1712 | _ACEOF | |
81ecdfbb | 1713 | exit |
c6b750e1 | 1714 | fi |
81ecdfbb RW |
1715 | |
1716 | ## ------------------------ ## | |
1717 | ## Autoconf initialization. ## | |
1718 | ## ------------------------ ## | |
1719 | ||
1720 | # ac_fn_c_try_compile LINENO | |
1721 | # -------------------------- | |
1722 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1723 | ac_fn_c_try_compile () | |
1724 | { | |
1725 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1726 | rm -f conftest.$ac_objext | |
1727 | if { { ac_try="$ac_compile" | |
1728 | case "(($ac_try" in | |
1729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1730 | *) ac_try_echo=$ac_try;; | |
1731 | esac | |
1732 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1733 | $as_echo "$ac_try_echo"; } >&5 | |
1734 | (eval "$ac_compile") 2>conftest.err | |
1735 | ac_status=$? | |
1736 | if test -s conftest.err; then | |
1737 | grep -v '^ *+' conftest.err >conftest.er1 | |
1738 | cat conftest.er1 >&5 | |
1739 | mv -f conftest.er1 conftest.err | |
1740 | fi | |
1741 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1742 | test $ac_status = 0; } && { | |
1743 | test -z "$ac_c_werror_flag" || | |
1744 | test ! -s conftest.err | |
1745 | } && test -s conftest.$ac_objext; then : | |
1746 | ac_retval=0 | |
1747 | else | |
1748 | $as_echo "$as_me: failed program was:" >&5 | |
1749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1750 | ||
1751 | ac_retval=1 | |
1752 | fi | |
1753 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1754 | return $ac_retval | |
1755 | ||
1756 | } # ac_fn_c_try_compile | |
1757 | ||
1758 | # ac_fn_cxx_try_compile LINENO | |
1759 | # ---------------------------- | |
1760 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1761 | ac_fn_cxx_try_compile () | |
1762 | { | |
1763 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1764 | rm -f conftest.$ac_objext | |
1765 | if { { ac_try="$ac_compile" | |
1766 | case "(($ac_try" in | |
1767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1768 | *) ac_try_echo=$ac_try;; | |
1769 | esac | |
1770 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1771 | $as_echo "$ac_try_echo"; } >&5 | |
1772 | (eval "$ac_compile") 2>conftest.err | |
1773 | ac_status=$? | |
1774 | if test -s conftest.err; then | |
1775 | grep -v '^ *+' conftest.err >conftest.er1 | |
1776 | cat conftest.er1 >&5 | |
1777 | mv -f conftest.er1 conftest.err | |
1778 | fi | |
1779 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1780 | test $ac_status = 0; } && { | |
1781 | test -z "$ac_cxx_werror_flag" || | |
1782 | test ! -s conftest.err | |
1783 | } && test -s conftest.$ac_objext; then : | |
1784 | ac_retval=0 | |
1785 | else | |
1786 | $as_echo "$as_me: failed program was:" >&5 | |
1787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1788 | ||
1789 | ac_retval=1 | |
1790 | fi | |
1791 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1792 | return $ac_retval | |
1793 | ||
1794 | } # ac_fn_cxx_try_compile | |
1795 | ||
b3676d82 EB |
1796 | # ac_fn_cxx_try_link LINENO |
1797 | # ------------------------- | |
1798 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1799 | ac_fn_cxx_try_link () | |
1800 | { | |
1801 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1802 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1803 | if { { ac_try="$ac_link" | |
1804 | case "(($ac_try" in | |
1805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1806 | *) ac_try_echo=$ac_try;; | |
1807 | esac | |
1808 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1809 | $as_echo "$ac_try_echo"; } >&5 | |
1810 | (eval "$ac_link") 2>conftest.err | |
1811 | ac_status=$? | |
1812 | if test -s conftest.err; then | |
1813 | grep -v '^ *+' conftest.err >conftest.er1 | |
1814 | cat conftest.er1 >&5 | |
1815 | mv -f conftest.er1 conftest.err | |
1816 | fi | |
1817 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1818 | test $ac_status = 0; } && { | |
1819 | test -z "$ac_cxx_werror_flag" || | |
1820 | test ! -s conftest.err | |
1821 | } && test -s conftest$ac_exeext && { | |
1822 | test "$cross_compiling" = yes || | |
1823 | $as_test_x conftest$ac_exeext | |
1824 | }; then : | |
1825 | ac_retval=0 | |
1826 | else | |
1827 | $as_echo "$as_me: failed program was:" >&5 | |
1828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1829 | ||
1830 | ac_retval=1 | |
1831 | fi | |
1832 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1833 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1834 | # interfere with the next link command; also delete a directory that is | |
1835 | # left behind by Apple's compiler. We do this before executing the actions. | |
1836 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1837 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1838 | return $ac_retval | |
1839 | ||
1840 | } # ac_fn_cxx_try_link | |
1841 | ||
81ecdfbb RW |
1842 | # ac_fn_c_try_link LINENO |
1843 | # ----------------------- | |
1844 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1845 | ac_fn_c_try_link () | |
1846 | { | |
1847 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1848 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1849 | if { { ac_try="$ac_link" | |
1850 | case "(($ac_try" in | |
1851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1852 | *) ac_try_echo=$ac_try;; | |
1853 | esac | |
1854 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1855 | $as_echo "$ac_try_echo"; } >&5 | |
1856 | (eval "$ac_link") 2>conftest.err | |
1857 | ac_status=$? | |
1858 | if test -s conftest.err; then | |
1859 | grep -v '^ *+' conftest.err >conftest.er1 | |
1860 | cat conftest.er1 >&5 | |
1861 | mv -f conftest.er1 conftest.err | |
1862 | fi | |
1863 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1864 | test $ac_status = 0; } && { | |
1865 | test -z "$ac_c_werror_flag" || | |
1866 | test ! -s conftest.err | |
1867 | } && test -s conftest$ac_exeext && { | |
1868 | test "$cross_compiling" = yes || | |
1869 | $as_test_x conftest$ac_exeext | |
1870 | }; then : | |
1871 | ac_retval=0 | |
1872 | else | |
1873 | $as_echo "$as_me: failed program was:" >&5 | |
1874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1875 | ||
1876 | ac_retval=1 | |
1877 | fi | |
1878 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1879 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1880 | # interfere with the next link command; also delete a directory that is | |
1881 | # left behind by Apple's compiler. We do this before executing the actions. | |
1882 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1883 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1884 | return $ac_retval | |
1885 | ||
1886 | } # ac_fn_c_try_link | |
1887 | cat >config.log <<_ACEOF | |
c6b750e1 DJ |
1888 | This file contains any messages produced by compilers while |
1889 | running configure, to aid debugging if configure makes a mistake. | |
1890 | ||
1891 | It was created by $as_me, which was | |
81ecdfbb | 1892 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
1893 | |
1894 | $ $0 $@ | |
1895 | ||
1896 | _ACEOF | |
81ecdfbb | 1897 | exec 5>>config.log |
c6b750e1 DJ |
1898 | { |
1899 | cat <<_ASUNAME | |
1900 | ## --------- ## | |
1901 | ## Platform. ## | |
1902 | ## --------- ## | |
1903 | ||
1904 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1905 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1906 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1907 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1908 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1909 | ||
1910 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1911 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1912 | ||
1913 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1914 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1915 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 1916 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
c6b750e1 DJ |
1917 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1918 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1919 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1920 | ||
1921 | _ASUNAME | |
1922 | ||
1923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1924 | for as_dir in $PATH | |
1925 | do | |
1926 | IFS=$as_save_IFS | |
1927 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1928 | $as_echo "PATH: $as_dir" |
1929 | done | |
1930 | IFS=$as_save_IFS | |
c6b750e1 DJ |
1931 | |
1932 | } >&5 | |
1933 | ||
1934 | cat >&5 <<_ACEOF | |
1935 | ||
1936 | ||
1937 | ## ----------- ## | |
1938 | ## Core tests. ## | |
1939 | ## ----------- ## | |
1940 | ||
1941 | _ACEOF | |
1942 | ||
1943 | ||
1944 | # Keep a trace of the command line. | |
1945 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1946 | # Strip out --silent because we don't want to record it for future runs. | |
1947 | # Also quote any args containing shell meta-characters. | |
1948 | # Make two passes to allow for proper duplicate-argument suppression. | |
1949 | ac_configure_args= | |
1950 | ac_configure_args0= | |
1951 | ac_configure_args1= | |
c6b750e1 DJ |
1952 | ac_must_keep_next=false |
1953 | for ac_pass in 1 2 | |
1954 | do | |
1955 | for ac_arg | |
1956 | do | |
1957 | case $ac_arg in | |
1958 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1959 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1960 | | -silent | --silent | --silen | --sile | --sil) | |
1961 | continue ;; | |
81ecdfbb RW |
1962 | *\'*) |
1963 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c6b750e1 DJ |
1964 | esac |
1965 | case $ac_pass in | |
81ecdfbb | 1966 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
c6b750e1 | 1967 | 2) |
81ecdfbb | 1968 | as_fn_append ac_configure_args1 " '$ac_arg'" |
c6b750e1 DJ |
1969 | if test $ac_must_keep_next = true; then |
1970 | ac_must_keep_next=false # Got value, back to normal. | |
1971 | else | |
1972 | case $ac_arg in | |
1973 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1974 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1975 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1976 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1977 | case "$ac_configure_args0 " in | |
1978 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1979 | esac | |
1980 | ;; | |
1981 | -* ) ac_must_keep_next=true ;; | |
1982 | esac | |
1983 | fi | |
81ecdfbb | 1984 | as_fn_append ac_configure_args " '$ac_arg'" |
c6b750e1 DJ |
1985 | ;; |
1986 | esac | |
1987 | done | |
1988 | done | |
81ecdfbb RW |
1989 | { ac_configure_args0=; unset ac_configure_args0;} |
1990 | { ac_configure_args1=; unset ac_configure_args1;} | |
c6b750e1 DJ |
1991 | |
1992 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1993 | # config.log. We remove comments because anyway the quotes in there | |
1994 | # would cause problems or look ugly. | |
81ecdfbb RW |
1995 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1996 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
c6b750e1 DJ |
1997 | trap 'exit_status=$? |
1998 | # Save into config.log some information that might help in debugging. | |
1999 | { | |
2000 | echo | |
2001 | ||
2002 | cat <<\_ASBOX | |
2003 | ## ---------------- ## | |
2004 | ## Cache variables. ## | |
2005 | ## ---------------- ## | |
2006 | _ASBOX | |
2007 | echo | |
2008 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2009 | ( |
2010 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2011 | eval ac_val=\$$ac_var | |
2012 | case $ac_val in #( | |
2013 | *${as_nl}*) | |
2014 | case $ac_var in #( | |
2015 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2016 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2017 | esac | |
2018 | case $ac_var in #( | |
2019 | _ | IFS | as_nl) ;; #( | |
2020 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2021 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2022 | esac ;; | |
2023 | esac | |
2024 | done | |
c6b750e1 | 2025 | (set) 2>&1 | |
81ecdfbb RW |
2026 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2027 | *${as_nl}ac_space=\ *) | |
c6b750e1 | 2028 | sed -n \ |
81ecdfbb RW |
2029 | "s/'\''/'\''\\\\'\'''\''/g; |
2030 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2031 | ;; #( | |
c6b750e1 | 2032 | *) |
81ecdfbb | 2033 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 2034 | ;; |
81ecdfbb RW |
2035 | esac | |
2036 | sort | |
2037 | ) | |
c6b750e1 DJ |
2038 | echo |
2039 | ||
2040 | cat <<\_ASBOX | |
2041 | ## ----------------- ## | |
2042 | ## Output variables. ## | |
2043 | ## ----------------- ## | |
2044 | _ASBOX | |
2045 | echo | |
2046 | for ac_var in $ac_subst_vars | |
2047 | do | |
81ecdfbb RW |
2048 | eval ac_val=\$$ac_var |
2049 | case $ac_val in | |
2050 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2051 | esac | |
2052 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2053 | done | sort |
2054 | echo | |
2055 | ||
2056 | if test -n "$ac_subst_files"; then | |
2057 | cat <<\_ASBOX | |
81ecdfbb RW |
2058 | ## ------------------- ## |
2059 | ## File substitutions. ## | |
2060 | ## ------------------- ## | |
c6b750e1 DJ |
2061 | _ASBOX |
2062 | echo | |
2063 | for ac_var in $ac_subst_files | |
2064 | do | |
81ecdfbb RW |
2065 | eval ac_val=\$$ac_var |
2066 | case $ac_val in | |
2067 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2068 | esac | |
2069 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2070 | done | sort |
2071 | echo | |
2072 | fi | |
2073 | ||
2074 | if test -s confdefs.h; then | |
2075 | cat <<\_ASBOX | |
2076 | ## ----------- ## | |
2077 | ## confdefs.h. ## | |
2078 | ## ----------- ## | |
2079 | _ASBOX | |
2080 | echo | |
81ecdfbb | 2081 | cat confdefs.h |
c6b750e1 DJ |
2082 | echo |
2083 | fi | |
2084 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2085 | $as_echo "$as_me: caught signal $ac_signal" |
2086 | $as_echo "$as_me: exit $exit_status" | |
c6b750e1 | 2087 | } >&5 |
81ecdfbb RW |
2088 | rm -f core *.core core.conftest.* && |
2089 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
c6b750e1 | 2090 | exit $exit_status |
81ecdfbb | 2091 | ' 0 |
c6b750e1 | 2092 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2093 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
c6b750e1 DJ |
2094 | done |
2095 | ac_signal=0 | |
2096 | ||
2097 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2098 | rm -f -r conftest* confdefs.h |
2099 | ||
2100 | $as_echo "/* confdefs.h */" > confdefs.h | |
c6b750e1 DJ |
2101 | |
2102 | # Predefined preprocessor variables. | |
2103 | ||
2104 | cat >>confdefs.h <<_ACEOF | |
2105 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2106 | _ACEOF | |
2107 | ||
c6b750e1 DJ |
2108 | cat >>confdefs.h <<_ACEOF |
2109 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2110 | _ACEOF | |
2111 | ||
c6b750e1 DJ |
2112 | cat >>confdefs.h <<_ACEOF |
2113 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2114 | _ACEOF | |
2115 | ||
c6b750e1 DJ |
2116 | cat >>confdefs.h <<_ACEOF |
2117 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2118 | _ACEOF | |
2119 | ||
c6b750e1 DJ |
2120 | cat >>confdefs.h <<_ACEOF |
2121 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2122 | _ACEOF | |
2123 | ||
81ecdfbb RW |
2124 | cat >>confdefs.h <<_ACEOF |
2125 | #define PACKAGE_URL "$PACKAGE_URL" | |
2126 | _ACEOF | |
2127 | ||
c6b750e1 DJ |
2128 | |
2129 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2130 | # Prefer an explicitly selected file to automatically selected ones. |
2131 | ac_site_file1=NONE | |
2132 | ac_site_file2=NONE | |
2133 | if test -n "$CONFIG_SITE"; then | |
2134 | ac_site_file1=$CONFIG_SITE | |
2135 | elif test "x$prefix" != xNONE; then | |
2136 | ac_site_file1=$prefix/share/config.site | |
2137 | ac_site_file2=$prefix/etc/config.site | |
2138 | else | |
2139 | ac_site_file1=$ac_default_prefix/share/config.site | |
2140 | ac_site_file2=$ac_default_prefix/etc/config.site | |
a0da8069 | 2141 | fi |
81ecdfbb RW |
2142 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2143 | do | |
2144 | test "x$ac_site_file" = xNONE && continue | |
a0da8069 | 2145 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2146 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2147 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
c6b750e1 | 2148 | sed 's/^/| /' "$ac_site_file" >&5 |
a0da8069 NN |
2149 | . "$ac_site_file" |
2150 | fi | |
2151 | done | |
2152 | ||
2153 | if test -r "$cache_file"; then | |
c6b750e1 DJ |
2154 | # Some versions of bash will fail to source /dev/null (special |
2155 | # files actually), so we avoid doing that. | |
2156 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2157 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2158 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
c6b750e1 | 2159 | case $cache_file in |
81ecdfbb RW |
2160 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2161 | *) . "./$cache_file";; | |
c6b750e1 DJ |
2162 | esac |
2163 | fi | |
a0da8069 | 2164 | else |
81ecdfbb RW |
2165 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2166 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
c6b750e1 DJ |
2167 | >$cache_file |
2168 | fi | |
2169 | ||
2170 | # Check that the precious variables saved in the cache have kept the same | |
2171 | # value. | |
2172 | ac_cache_corrupted=false | |
81ecdfbb | 2173 | for ac_var in $ac_precious_vars; do |
c6b750e1 DJ |
2174 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2175 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2176 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2177 | eval ac_new_val=\$ac_env_${ac_var}_value | |
c6b750e1 DJ |
2178 | case $ac_old_set,$ac_new_set in |
2179 | set,) | |
81ecdfbb RW |
2180 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2181 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
c6b750e1 DJ |
2182 | ac_cache_corrupted=: ;; |
2183 | ,set) | |
81ecdfbb RW |
2184 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2185 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
c6b750e1 DJ |
2186 | ac_cache_corrupted=: ;; |
2187 | ,);; | |
2188 | *) | |
2189 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2190 | # differences in whitespace do not lead to failure. |
2191 | ac_old_val_w=`echo x $ac_old_val` | |
2192 | ac_new_val_w=`echo x $ac_new_val` | |
2193 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2194 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2195 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2196 | ac_cache_corrupted=: | |
2197 | else | |
2198 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2199 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2200 | eval $ac_var=\$ac_old_val | |
2201 | fi | |
2202 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2203 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2204 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2205 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
c6b750e1 DJ |
2206 | fi;; |
2207 | esac | |
2208 | # Pass precious variables to config.status. | |
2209 | if test "$ac_new_set" = set; then | |
2210 | case $ac_new_val in | |
81ecdfbb | 2211 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c6b750e1 DJ |
2212 | *) ac_arg=$ac_var=$ac_new_val ;; |
2213 | esac | |
2214 | case " $ac_configure_args " in | |
2215 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2216 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
c6b750e1 DJ |
2217 | esac |
2218 | fi | |
2219 | done | |
2220 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2221 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2222 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2223 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2224 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2225 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
a0da8069 | 2226 | fi |
81ecdfbb RW |
2227 | ## -------------------- ## |
2228 | ## Main body of script. ## | |
2229 | ## -------------------- ## | |
a0da8069 NN |
2230 | |
2231 | ac_ext=c | |
a0da8069 | 2232 | ac_cpp='$CPP $CPPFLAGS' |
c6b750e1 DJ |
2233 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2234 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2235 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2236 | ||
2237 | ||
2238 | ||
2239 | ||
c6b750e1 DJ |
2240 | |
2241 | ||
34a0f3cf | 2242 | |
c6b750e1 | 2243 | |
5b553f7e RW |
2244 | |
2245 | progname=$0 | |
2246 | # if PWD already has a value, it is probably wrong. | |
2247 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2248 | ||
2249 | # Export original configure arguments for use by sub-configures. | |
2250 | # Quote arguments with shell meta charatcers. | |
2251 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2252 | set -- "$progname" "$@" | |
2253 | for ac_arg | |
2254 | do | |
2255 | case "$ac_arg" in | |
2256 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2257 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2258 | # if the argument is of the form -foo=baz, quote the baz part only | |
2259 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2260 | *) ;; | |
2261 | esac | |
2262 | # Add the quoted argument to the list. | |
2263 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2264 | done | |
2265 | if test "$silent" = yes; then | |
2266 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2267 | fi | |
2268 | # Remove the initial space we just introduced and, as these will be | |
2269 | # expanded by make, quote '$'. | |
2270 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2271 | ||
c6b750e1 DJ |
2272 | |
2273 | # Find the build, host, and target systems. | |
a0da8069 | 2274 | ac_aux_dir= |
81ecdfbb RW |
2275 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2276 | for ac_t in install-sh install.sh shtool; do | |
2277 | if test -f "$ac_dir/$ac_t"; then | |
2278 | ac_aux_dir=$ac_dir | |
2279 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2280 | break 2 | |
2281 | fi | |
2282 | done | |
a0da8069 NN |
2283 | done |
2284 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2285 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a0da8069 | 2286 | fi |
81ecdfbb RW |
2287 | |
2288 | # These three variables are undocumented and unsupported, | |
2289 | # and are intended to be withdrawn in a future Autoconf release. | |
2290 | # They can cause serious problems if a builder's source tree is in a directory | |
2291 | # whose full name contains unusual characters. | |
2292 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2293 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2294 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2295 | ||
a0da8069 | 2296 | |
c6b750e1 | 2297 | # Make sure we can run config.sub. |
81ecdfbb RW |
2298 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2299 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2300 | ||
2301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2302 | $as_echo_n "checking build system type... " >&6; } | |
2303 | if test "${ac_cv_build+set}" = set; then : | |
2304 | $as_echo_n "(cached) " >&6 | |
2305 | else | |
2306 | ac_build_alias=$build_alias | |
2307 | test "x$ac_build_alias" = x && | |
2308 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2309 | test "x$ac_build_alias" = x && | |
2310 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2311 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2312 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2313 | ||
2314 | fi | |
2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2316 | $as_echo "$ac_cv_build" >&6; } | |
2317 | case $ac_cv_build in | |
2318 | *-*-*) ;; | |
2319 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2320 | esac | |
c6b750e1 | 2321 | build=$ac_cv_build |
81ecdfbb RW |
2322 | ac_save_IFS=$IFS; IFS='-' |
2323 | set x $ac_cv_build | |
2324 | shift | |
2325 | build_cpu=$1 | |
2326 | build_vendor=$2 | |
2327 | shift; shift | |
2328 | # Remember, the first character of IFS is used to create $*, | |
2329 | # except with old shells: | |
2330 | build_os=$* | |
2331 | IFS=$ac_save_IFS | |
2332 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
a0da8069 | 2333 | |
a0da8069 | 2334 | |
c6b750e1 DJ |
2335 | case ${build_alias} in |
2336 | "") build_noncanonical=${build} ;; | |
2337 | *) build_noncanonical=${build_alias} ;; | |
cac3d6c4 CM |
2338 | esac |
2339 | ||
2340 | ||
cac3d6c4 | 2341 | |
c6b750e1 DJ |
2342 | case ${host_alias} in |
2343 | "") host_noncanonical=${build_noncanonical} ;; | |
2344 | *) host_noncanonical=${host_alias} ;; | |
cac3d6c4 CM |
2345 | esac |
2346 | ||
cac3d6c4 | 2347 | |
c6b750e1 DJ |
2348 | |
2349 | case ${target_alias} in | |
2350 | "") target_noncanonical=${host_noncanonical} ;; | |
2351 | *) target_noncanonical=${target_alias} ;; | |
cac3d6c4 CM |
2352 | esac |
2353 | ||
cac3d6c4 | 2354 | |
c6b750e1 DJ |
2355 | |
2356 | ||
2357 | test "$host_noncanonical" = "$target_noncanonical" && | |
a0da8069 NN |
2358 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2359 | NONENONEs,x,x, && | |
c6b750e1 | 2360 | program_transform_name=s,y,y, |
cac3d6c4 | 2361 | |
81ecdfbb RW |
2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2363 | $as_echo_n "checking host system type... " >&6; } | |
2364 | if test "${ac_cv_host+set}" = set; then : | |
2365 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 2366 | else |
81ecdfbb RW |
2367 | if test "x$host_alias" = x; then |
2368 | ac_cv_host=$ac_cv_build | |
2369 | else | |
2370 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2371 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2372 | fi | |
c6b750e1 DJ |
2373 | |
2374 | fi | |
81ecdfbb RW |
2375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2376 | $as_echo "$ac_cv_host" >&6; } | |
2377 | case $ac_cv_host in | |
2378 | *-*-*) ;; | |
2379 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2380 | esac | |
c6b750e1 | 2381 | host=$ac_cv_host |
81ecdfbb RW |
2382 | ac_save_IFS=$IFS; IFS='-' |
2383 | set x $ac_cv_host | |
2384 | shift | |
2385 | host_cpu=$1 | |
2386 | host_vendor=$2 | |
2387 | shift; shift | |
2388 | # Remember, the first character of IFS is used to create $*, | |
2389 | # except with old shells: | |
2390 | host_os=$* | |
2391 | IFS=$ac_save_IFS | |
2392 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2393 | |
2394 | ||
81ecdfbb RW |
2395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2396 | $as_echo_n "checking target system type... " >&6; } | |
2397 | if test "${ac_cv_target+set}" = set; then : | |
2398 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 2399 | else |
81ecdfbb RW |
2400 | if test "x$target_alias" = x; then |
2401 | ac_cv_target=$ac_cv_host | |
2402 | else | |
2403 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2404 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2405 | fi | |
c6b750e1 | 2406 | |
cac3d6c4 | 2407 | fi |
81ecdfbb RW |
2408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2409 | $as_echo "$ac_cv_target" >&6; } | |
2410 | case $ac_cv_target in | |
2411 | *-*-*) ;; | |
2412 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2413 | esac | |
c6b750e1 | 2414 | target=$ac_cv_target |
81ecdfbb RW |
2415 | ac_save_IFS=$IFS; IFS='-' |
2416 | set x $ac_cv_target | |
2417 | shift | |
2418 | target_cpu=$1 | |
2419 | target_vendor=$2 | |
2420 | shift; shift | |
2421 | # Remember, the first character of IFS is used to create $*, | |
2422 | # except with old shells: | |
2423 | target_os=$* | |
2424 | IFS=$ac_save_IFS | |
2425 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2426 | |
2427 | ||
2428 | # The aliases save the names the user supplied, while $host etc. | |
2429 | # will get canonicalized. | |
2430 | test -n "$target_alias" && | |
2431 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2432 | NONENONEs,x,x, && | |
2433 | program_prefix=${target_alias}- | |
81ecdfbb | 2434 | |
a0da8069 | 2435 | test "$program_prefix" != NONE && |
81ecdfbb | 2436 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
a0da8069 NN |
2437 | # Use a double $ so make ignores it. |
2438 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2439 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2440 | # Double any \ or $. | |
c6b750e1 | 2441 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2442 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2443 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
cac3d6c4 | 2444 | |
a0da8069 NN |
2445 | |
2446 | ||
e5c3f801 NN |
2447 | # Get 'install' or 'install-sh' and its variants. |
2448 | # Find a good install program. We prefer a C program (faster), | |
2449 | # so one script is as good as another. But avoid the broken or | |
2450 | # incompatible versions: | |
2451 | # SysV /etc/install, /usr/sbin/install | |
2452 | # SunOS /usr/etc/install | |
2453 | # IRIX /sbin/install | |
2454 | # AIX /bin/install | |
c6b750e1 | 2455 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5c3f801 NN |
2456 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2457 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2458 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c6b750e1 | 2459 | # OS/2's system install, which has a completely different semantic |
e5c3f801 | 2460 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2461 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2463 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5c3f801 | 2464 | if test -z "$INSTALL"; then |
81ecdfbb RW |
2465 | if test "${ac_cv_path_install+set}" = set; then : |
2466 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
2467 | else |
2468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2469 | for as_dir in $PATH | |
2470 | do | |
2471 | IFS=$as_save_IFS | |
2472 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2473 | # Account for people who put trailing slashes in PATH elements. |
2474 | case $as_dir/ in #(( | |
2475 | ./ | .// | /[cC]/* | \ | |
c6b750e1 | 2476 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2477 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
c6b750e1 DJ |
2478 | /usr/ucb/* ) ;; |
2479 | *) | |
2480 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2481 | # Don't use installbsd from OSF since it installs stuff as root | |
2482 | # by default. | |
2483 | for ac_prog in ginstall scoinst install; do | |
2484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 2485 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
e5c3f801 | 2486 | if test $ac_prog = install && |
c6b750e1 | 2487 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e5c3f801 NN |
2488 | # AIX install. It has an incompatible calling convention. |
2489 | : | |
c6b750e1 DJ |
2490 | elif test $ac_prog = install && |
2491 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2492 | # program-specific install script used by HP pwplus--don't use. | |
2493 | : | |
e5c3f801 | 2494 | else |
58c85be7 RW |
2495 | rm -rf conftest.one conftest.two conftest.dir |
2496 | echo one > conftest.one | |
2497 | echo two > conftest.two | |
2498 | mkdir conftest.dir | |
2499 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2500 | test -s conftest.one && test -s conftest.two && | |
2501 | test -s conftest.dir/conftest.one && | |
2502 | test -s conftest.dir/conftest.two | |
2503 | then | |
2504 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2505 | break 3 | |
2506 | fi | |
e5c3f801 NN |
2507 | fi |
2508 | fi | |
2509 | done | |
c6b750e1 DJ |
2510 | done |
2511 | ;; | |
2512 | esac | |
81ecdfbb RW |
2513 | |
2514 | done | |
2515 | IFS=$as_save_IFS | |
c6b750e1 | 2516 | |
58c85be7 | 2517 | rm -rf conftest.one conftest.two conftest.dir |
e5c3f801 NN |
2518 | |
2519 | fi | |
2520 | if test "${ac_cv_path_install+set}" = set; then | |
c6b750e1 | 2521 | INSTALL=$ac_cv_path_install |
e5c3f801 | 2522 | else |
58c85be7 RW |
2523 | # As a last resort, use the slow shell script. Don't cache a |
2524 | # value for INSTALL within a source directory, because that will | |
e5c3f801 | 2525 | # break other packages using the cache if that directory is |
58c85be7 | 2526 | # removed, or if the value is a relative name. |
c6b750e1 | 2527 | INSTALL=$ac_install_sh |
e5c3f801 NN |
2528 | fi |
2529 | fi | |
81ecdfbb RW |
2530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2531 | $as_echo "$INSTALL" >&6; } | |
e5c3f801 NN |
2532 | |
2533 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2534 | # It thinks the first close brace ends the variable substitution. | |
2535 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2536 | ||
c6b750e1 | 2537 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
e5c3f801 NN |
2538 | |
2539 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2540 | ||
81ecdfbb RW |
2541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2542 | $as_echo_n "checking whether ln works... " >&6; } | |
2543 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2544 | $as_echo_n "(cached) " >&6 | |
656fdd47 PB |
2545 | else |
2546 | rm -f conftestdata_t | |
2547 | echo >conftestdata_f | |
2548 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2549 | then | |
2550 | acx_cv_prog_LN=ln | |
2551 | else | |
2552 | acx_cv_prog_LN=no | |
2553 | fi | |
2554 | rm -f conftestdata_f conftestdata_t | |
2555 | ||
2556 | fi | |
2557 | if test $acx_cv_prog_LN = no; then | |
2558 | LN="cp" | |
81ecdfbb RW |
2559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2560 | $as_echo "no, using $LN" >&6; } | |
656fdd47 PB |
2561 | else |
2562 | LN="$acx_cv_prog_LN" | |
81ecdfbb RW |
2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2564 | $as_echo "yes" >&6; } | |
656fdd47 PB |
2565 | fi |
2566 | ||
81ecdfbb RW |
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2568 | $as_echo_n "checking whether ln -s works... " >&6; } | |
c6b750e1 DJ |
2569 | LN_S=$as_ln_s |
2570 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
2571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2572 | $as_echo "yes" >&6; } | |
cac3d6c4 | 2573 | else |
81ecdfbb RW |
2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2575 | $as_echo "no, using $LN_S" >&6; } | |
dfdffa2c PB |
2576 | fi |
2577 | ||
8e957354 PB |
2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2579 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2580 | if test "${ac_cv_path_SED+set}" = set; then : | |
2581 | $as_echo_n "(cached) " >&6 | |
2582 | else | |
2583 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2584 | for ac_i in 1 2 3 4 5 6 7; do | |
2585 | ac_script="$ac_script$as_nl$ac_script" | |
2586 | done | |
2587 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2588 | { ac_script=; unset ac_script;} | |
2589 | if test -z "$SED"; then | |
2590 | ac_path_SED_found=false | |
2591 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2593 | for as_dir in $PATH | |
2594 | do | |
2595 | IFS=$as_save_IFS | |
2596 | test -z "$as_dir" && as_dir=. | |
2597 | for ac_prog in sed gsed; do | |
2598 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2599 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2600 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2601 | # Check for GNU ac_path_SED and select it if it is found. | |
2602 | # Check for GNU $ac_path_SED | |
2603 | case `"$ac_path_SED" --version 2>&1` in | |
2604 | *GNU*) | |
2605 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2606 | *) | |
2607 | ac_count=0 | |
2608 | $as_echo_n 0123456789 >"conftest.in" | |
2609 | while : | |
2610 | do | |
2611 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2612 | mv "conftest.tmp" "conftest.in" | |
2613 | cp "conftest.in" "conftest.nl" | |
2614 | $as_echo '' >> "conftest.nl" | |
2615 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2616 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2617 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2618 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2619 | # Best one so far, save it but keep looking for a better one | |
2620 | ac_cv_path_SED="$ac_path_SED" | |
2621 | ac_path_SED_max=$ac_count | |
2622 | fi | |
2623 | # 10*(2^10) chars as input seems more than enough | |
2624 | test $ac_count -gt 10 && break | |
2625 | done | |
2626 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2627 | esac | |
2628 | ||
2629 | $ac_path_SED_found && break 3 | |
2630 | done | |
2631 | done | |
2632 | done | |
2633 | IFS=$as_save_IFS | |
2634 | if test -z "$ac_cv_path_SED"; then | |
2635 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2636 | fi | |
2637 | else | |
2638 | ac_cv_path_SED=$SED | |
2639 | fi | |
2640 | ||
2641 | fi | |
2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2643 | $as_echo "$ac_cv_path_SED" >&6; } | |
2644 | SED="$ac_cv_path_SED" | |
2645 | rm -f conftest.sed | |
2646 | ||
2647 | for ac_prog in gawk mawk nawk awk | |
2648 | do | |
2649 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2650 | set dummy $ac_prog; ac_word=$2 | |
2651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2652 | $as_echo_n "checking for $ac_word... " >&6; } | |
2653 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2654 | $as_echo_n "(cached) " >&6 | |
2655 | else | |
2656 | if test -n "$AWK"; then | |
2657 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2658 | else | |
2659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2660 | for as_dir in $PATH | |
2661 | do | |
2662 | IFS=$as_save_IFS | |
2663 | test -z "$as_dir" && as_dir=. | |
2664 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2665 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2666 | ac_cv_prog_AWK="$ac_prog" | |
2667 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2668 | break 2 | |
2669 | fi | |
2670 | done | |
2671 | done | |
2672 | IFS=$as_save_IFS | |
2673 | ||
2674 | fi | |
2675 | fi | |
2676 | AWK=$ac_cv_prog_AWK | |
2677 | if test -n "$AWK"; then | |
2678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2679 | $as_echo "$AWK" >&6; } | |
2680 | else | |
2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2682 | $as_echo "no" >&6; } | |
2683 | fi | |
2684 | ||
2685 | ||
2686 | test -n "$AWK" && break | |
2687 | done | |
2688 | ||
e5c3f801 | 2689 | |
0fdbe983 DJ |
2690 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2691 | ||
2692 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2693 | # a relative path. | |
2694 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2695 | INSTALL="${srcpwd}/install-sh -c" | |
2696 | fi | |
2697 | ||
a0da8069 NN |
2698 | # Set srcdir to "." if that's what it is. |
2699 | # This is important for multilib support. | |
2700 | pwd=`${PWDCMD-pwd}` | |
a0da8069 NN |
2701 | if test "${pwd}" = "${srcpwd}" ; then |
2702 | srcdir=. | |
252b5132 RH |
2703 | fi |
2704 | ||
a0da8069 | 2705 | topsrcdir=$srcpwd |
252b5132 | 2706 | |
a0da8069 | 2707 | extra_host_args= |
afefada0 | 2708 | |
a0da8069 NN |
2709 | ### To add a new directory to the tree, first choose whether it is a target |
2710 | ### or a host dependent tool. Then put it into the appropriate list | |
2711 | ### (library or tools, host or target), doing a dependency sort. | |
252b5132 | 2712 | |
c6b750e1 | 2713 | # Subdirs will be configured in the order listed in build_configdirs, |
a0da8069 | 2714 | # configdirs, or target_configdirs; see the serialization section below. |
252b5132 | 2715 | |
c6b750e1 DJ |
2716 | # Dependency sorting is only needed when *configuration* must be done in |
2717 | # a particular order. In all cases a dependency should be specified in | |
a0da8069 | 2718 | # the Makefile, whether or not it's implicitly specified here. |
252b5132 | 2719 | |
a0da8069 NN |
2720 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2721 | # cause circular dependencies and break everything horribly. | |
252b5132 | 2722 | |
6a9cf61e PB |
2723 | # these library is used by various programs built for the build |
2724 | # environment | |
2725 | # | |
1b6c0831 | 2726 | build_libs="build-libiberty build-libcpp" |
6a9cf61e PB |
2727 | |
2728 | # these tools are built for the build environment | |
a90ef4bf | 2729 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
6a9cf61e | 2730 | |
a0da8069 | 2731 | # these libraries are used by various programs built for the host environment |
1b6c0831 L |
2732 | #f |
2733 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv" | |
a0da8069 | 2734 | |
a0da8069 NN |
2735 | # these tools are built for the host environment |
2736 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2737 | # know that we are building the simulator. | |
2738 | # binutils, gas and ld appear in that order because it makes sense to run | |
2739 | # "make check" in that particular order. | |
e6de499b | 2740 | # If --enable-gold is used, "gold" may replace "ld". |
1b6c0831 | 2741 | 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 | 2742 | |
a0da8069 NN |
2743 | # these libraries are built for the target environment, and are built after |
2744 | # the host libraries and the host tools (which may be a cross compiler) | |
ffdd6afc | 2745 | # Note that libiberty is not a target library. |
b1299c4e | 2746 | target_libraries="target-libgcc \ |
2bf680c4 | 2747 | target-libbacktrace \ |
a0da8069 NN |
2748 | target-libgloss \ |
2749 | target-newlib \ | |
cff87f51 | 2750 | target-libgomp \ |
522e3d71 | 2751 | target-libcilkrts \ |
1b6c0831 | 2752 | target-liboffloadmic \ |
7ec59b9e | 2753 | target-libatomic \ |
d32e2926 | 2754 | target-libitm \ |
b9459e83 | 2755 | target-libstdc++-v3 \ |
5286fdef | 2756 | target-libsanitizer \ |
95e43135 | 2757 | target-libvtv \ |
1b6c0831 | 2758 | target-libmpx \ |
bb780410 | 2759 | target-libssp \ |
e552509b | 2760 | target-libquadmath \ |
4b1cb4fe | 2761 | target-libgfortran \ |
05a13254 | 2762 | target-libffi \ |
a2592b1b | 2763 | target-libobjc \ |
e552509b ILT |
2764 | target-libada \ |
2765 | target-libgo" | |
a0da8069 | 2766 | |
9c14acb8 NN |
2767 | # these tools are built using the target libraries, and are intended to |
2768 | # run only in the target environment | |
a0da8069 | 2769 | # |
9c14acb8 | 2770 | # note: any program that *uses* libraries that are in the "target_libraries" |
0377a422 | 2771 | # list belongs in this list. |
a0da8069 | 2772 | # |
a90ef4bf | 2773 | target_tools="target-rda" |
252b5132 | 2774 | |
a0da8069 | 2775 | ################################################################################ |
252b5132 | 2776 | |
a0da8069 NN |
2777 | ## All tools belong in one of the four categories, and are assigned above |
2778 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2779 | ## is important because configure will choke if they ever get through. | |
2780 | ## ${configdirs} is directories we build using the host tools. | |
2781 | ## ${target_configdirs} is directories we build using the target tools. | |
a0da8069 | 2782 | configdirs=`echo ${host_libs} ${host_tools}` |
9c14acb8 | 2783 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
ee025550 | 2784 | build_configdirs=`echo ${build_libs} ${build_tools}` |
dd12c3a8 | 2785 | |
9cc8ae67 PB |
2786 | |
2787 | ||
a0da8069 | 2788 | ################################################################################ |
252b5132 | 2789 | |
a0da8069 | 2790 | srcname="gnu development package" |
252b5132 | 2791 | |
a0da8069 NN |
2792 | # This gets set non-empty for some net releases of packages. |
2793 | appdirs="" | |
252b5132 | 2794 | |
a0da8069 NN |
2795 | # Define is_cross_compiler to save on calls to 'test'. |
2796 | is_cross_compiler= | |
2797 | if test x"${host}" = x"${target}" ; then | |
2798 | is_cross_compiler=no | |
252b5132 | 2799 | else |
a0da8069 | 2800 | is_cross_compiler=yes |
c6b750e1 | 2801 | fi |
252b5132 | 2802 | |
9175bfc0 | 2803 | # Find the build and target subdir names. |
dd12c3a8 | 2804 | |
66a79c16 DJ |
2805 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2806 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2807 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2808 | # However, they still use the build modules, because the corresponding | |
2809 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2810 | # finishes. So: | |
2811 | # - build_subdir is where we find build modules, and never changes. | |
2812 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2813 | ||
2814 | # Prefix 'build-' so this never conflicts with target_subdir. | |
dd12c3a8 | 2815 | build_subdir="build-${build_noncanonical}" |
c6b750e1 | 2816 | |
81ecdfbb RW |
2817 | # Check whether --with-build-libsubdir was given. |
2818 | if test "${with_build_libsubdir+set}" = set; then : | |
2819 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
66a79c16 DJ |
2820 | else |
2821 | build_libsubdir="$build_subdir" | |
81ecdfbb RW |
2822 | fi |
2823 | ||
b00612cc PB |
2824 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2825 | if ( test $srcdir = . && test -d gcc ) \ | |
2826 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2827 | host_subdir="host-${host_noncanonical}" | |
2828 | else | |
2829 | host_subdir=. | |
2830 | fi | |
dd12c3a8 NN |
2831 | # No prefix. |
2832 | target_subdir=${target_noncanonical} | |
c6b750e1 | 2833 | |
2fd0b40b RW |
2834 | # Be sure to cover against remnants of an in-tree build. |
2835 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2836 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2837 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2838 | fi | |
252b5132 | 2839 | |
a0da8069 NN |
2840 | # Skipdirs are removed silently. |
2841 | skipdirs= | |
2842 | # Noconfigdirs are removed loudly. | |
2843 | noconfigdirs="" | |
252b5132 | 2844 | |
a0da8069 NN |
2845 | use_gnu_ld= |
2846 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2847 | if test x$with_gnu_ld = xno ; then | |
2848 | use_gnu_ld=no | |
93f9b408 | 2849 | noconfigdirs="$noconfigdirs ld gold" |
252b5132 RH |
2850 | fi |
2851 | ||
a0da8069 NN |
2852 | use_gnu_as= |
2853 | # Make sure we don't let GNU as be added if we didn't want it. | |
2854 | if test x$with_gnu_as = xno ; then | |
2855 | use_gnu_as=no | |
2856 | noconfigdirs="$noconfigdirs gas" | |
252b5132 RH |
2857 | fi |
2858 | ||
700d40ca | 2859 | use_included_zlib= |
cf39cfc5 L |
2860 | |
2861 | # Check whether --with-system-zlib was given. | |
2862 | if test "${with_system_zlib+set}" = set; then : | |
2863 | withval=$with_system_zlib; | |
2864 | fi | |
2865 | ||
700d40ca ILT |
2866 | # Make sure we don't let ZLIB be added if we didn't want it. |
2867 | if test x$with_system_zlib = xyes ; then | |
2868 | use_included_zlib=no | |
2869 | noconfigdirs="$noconfigdirs zlib" | |
2870 | fi | |
2871 | ||
c6b750e1 | 2872 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2873 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2874 | |
a0da8069 NN |
2875 | case ${with_x} in |
2876 | yes | "") ;; # the default value for this tree is that X11 is available | |
2877 | no) | |
675c6968 | 2878 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2879 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2880 | enable_gdbtk=no |
a0da8069 NN |
2881 | ;; |
2882 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2883 | esac | |
252b5132 | 2884 | |
0377a422 | 2885 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2886 | # Remove these if host=target. |
2887 | cross_only="target-libgloss target-newlib target-opcodes" | |
2888 | ||
2889 | case $is_cross_compiler in | |
2890 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2891 | esac |
252b5132 | 2892 | |
a0da8069 NN |
2893 | # If both --with-headers and --with-libs are specified, default to |
2894 | # --without-newlib. | |
32be62b5 RS |
2895 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2896 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
2897 | if test x"${with_newlib}" = x ; then |
2898 | with_newlib=no | |
2899 | fi | |
252b5132 RH |
2900 | fi |
2901 | ||
a0da8069 NN |
2902 | # Recognize --with-newlib/--without-newlib. |
2903 | case ${with_newlib} in | |
2904 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2905 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2906 | esac | |
252b5132 | 2907 | |
1b6c0831 L |
2908 | # Check whether --enable-as-accelerator-for was given. |
2909 | if test "${enable_as_accelerator_for+set}" = set; then : | |
2910 | enableval=$enable_as_accelerator_for; | |
2911 | fi | |
2912 | ||
2913 | ||
2914 | # Check whether --enable-offload-targets was given. | |
2915 | if test "${enable_offload_targets+set}" = set; then : | |
2916 | enableval=$enable_offload_targets; | |
2917 | if test x"$enable_offload_targets" = x; then | |
2918 | as_fn_error "no offload targets specified" "$LINENO" 5 | |
2919 | fi | |
2920 | ||
2921 | else | |
2922 | enable_offload_targets= | |
2923 | fi | |
2924 | ||
2925 | ||
c7791212 NC |
2926 | # Handle --enable-gold, --enable-ld. |
2927 | # --disable-gold [--enable-ld] | |
2928 | # Build only ld. Default option. | |
d3b50760 L |
2929 | # --enable-gold [--enable-ld] |
2930 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2931 | # as "ld.bfd" and "ld". | |
2932 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
2933 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2934 | # install ld as "ld.bfd". | |
2935 | # --enable-gold[=default] --disable-ld | |
2936 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2937 | # --enable-gold --enable-ld=default | |
d3b50760 L |
2938 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2939 | # and ld.bfd). | |
c7791212 NC |
2940 | # In other words, ld is default |
2941 | # --enable-gold=default --enable-ld=default | |
2942 | # Error. | |
2943 | ||
2944 | default_ld= | |
81ecdfbb RW |
2945 | # Check whether --enable-gold was given. |
2946 | if test "${enable_gold+set}" = set; then : | |
2947 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
2948 | else |
2949 | ENABLE_GOLD=no | |
81ecdfbb RW |
2950 | fi |
2951 | ||
c7791212 NC |
2952 | case "${ENABLE_GOLD}" in |
2953 | yes|default) | |
e6de499b NC |
2954 | # Check for ELF target. |
2955 | is_elf=no | |
2956 | case "${target}" in | |
2957 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2344b8da | 2958 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
5b806d27 | 2959 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
d5451cd4 | 2960 | | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-fuchsia*) |
e6de499b NC |
2961 | case "${target}" in |
2962 | *-*-linux*aout* | *-*-linux*oldld*) | |
2963 | ;; | |
2964 | *) | |
2965 | is_elf=yes | |
2966 | ;; | |
2967 | esac | |
2968 | esac | |
2969 | ||
2970 | if test "$is_elf" = "yes"; then | |
2971 | # Check for target supported by gold. | |
93f9b408 | 2972 | case "${target}" in |
6d26190c | 2973 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
ea016470 | 2974 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
c7791212 NC |
2975 | configdirs="$configdirs gold" |
2976 | if test x${ENABLE_GOLD} = xdefault; then | |
2977 | default_ld=gold | |
2978 | fi | |
e6de499b | 2979 | ENABLE_GOLD=yes |
93f9b408 ILT |
2980 | ;; |
2981 | esac | |
e6de499b NC |
2982 | fi |
2983 | ;; | |
2984 | no) | |
2985 | ;; | |
2986 | *) | |
2987 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2988 | ;; | |
c7791212 NC |
2989 | esac |
2990 | ||
2991 | # Check whether --enable-ld was given. | |
2992 | if test "${enable_ld+set}" = set; then : | |
2993 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2994 | else | |
2995 | ENABLE_LD=yes | |
2996 | fi | |
2997 | ||
2998 | ||
2999 | case "${ENABLE_LD}" in | |
3000 | default) | |
d3b50760 | 3001 | if test x${default_ld} != x; then |
c7791212 NC |
3002 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
3003 | fi | |
3004 | ;; | |
3005 | yes) | |
3006 | ;; | |
3007 | no) | |
3008 | if test x${ENABLE_GOLD} != xyes; then | |
3009 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3010 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3011 | fi | |
3012 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3013 | ;; | |
3014 | *) | |
3015 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
3016 | ;; | |
3017 | esac | |
93f9b408 | 3018 | |
edeefb67 L |
3019 | # PR gas/19109 |
3020 | # Decide the default method for compressing debug sections. | |
3021 | # Provide a configure time option to override our default. | |
3022 | # Check whether --enable-compressed_debug_sections was given. | |
3023 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3024 | enableval=$enable_compressed_debug_sections; | |
3025 | if test x"$enable_compressed_debug_sections" = xyes; then | |
3026 | as_fn_error "no program with compressed debug sections specified" "$LINENO" 5 | |
3027 | fi | |
3028 | ||
3029 | else | |
3030 | enable_compressed_debug_sections= | |
3031 | fi | |
3032 | ||
3033 | ||
a0da8069 | 3034 | # Configure extra directories which are host specific |
252b5132 | 3035 | |
a0da8069 NN |
3036 | case "${host}" in |
3037 | *-cygwin*) | |
3038 | configdirs="$configdirs libtermcap" ;; | |
3039 | esac | |
252b5132 | 3040 | |
59f7ec45 HPN |
3041 | # A target can indicate whether a language isn't supported for some reason. |
3042 | # Only spaces may be used in this macro; not newlines or tabs. | |
3043 | unsupported_languages= | |
3044 | ||
c6b750e1 | 3045 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
3046 | # target this usually means that a port of the program doesn't |
3047 | # exist yet. | |
252b5132 | 3048 | |
a0da8069 | 3049 | case "${host}" in |
3516a403 | 3050 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 3051 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 3052 | ;; |
a0da8069 | 3053 | esac |
252b5132 | 3054 | |
4b1cb4fe | 3055 | |
89a1e9c3 PB |
3056 | # Check whether --enable-libquadmath was given. |
3057 | if test "${enable_libquadmath+set}" = set; then : | |
3058 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3059 | else | |
3060 | ENABLE_LIBQUADMATH=yes | |
3061 | fi | |
3062 | ||
3063 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3064 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3065 | fi | |
3066 | ||
3067 | ||
3068 | # Check whether --enable-libquadmath-support was given. | |
3069 | if test "${enable_libquadmath_support+set}" = set; then : | |
3070 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3071 | else | |
3072 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3073 | fi | |
3074 | ||
3075 | enable_libquadmath_support= | |
3076 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3077 | enable_libquadmath_support=no | |
3078 | fi | |
3079 | ||
3080 | ||
81ecdfbb RW |
3081 | # Check whether --enable-libada was given. |
3082 | if test "${enable_libada+set}" = set; then : | |
3083 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
3084 | else |
3085 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
3086 | fi |
3087 | ||
a2592b1b | 3088 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 3089 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
3090 | fi |
3091 | ||
81ecdfbb RW |
3092 | # Check whether --enable-libssp was given. |
3093 | if test "${enable_libssp+set}" = set; then : | |
3094 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
3095 | else |
3096 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
3097 | fi |
3098 | ||
5f128533 | 3099 | |
f66a9a70 L |
3100 | # Check whether --enable-libstdcxx was given. |
3101 | if test "${enable_libstdcxx+set}" = set; then : | |
3102 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3103 | else | |
3104 | ENABLE_LIBSTDCXX=default | |
3105 | fi | |
3106 | ||
3107 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1b6c0831 L |
3108 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
3109 | fi | |
3110 | ||
3111 | # If this is accelerator compiler and its target is intelmic we enable | |
3112 | # target liboffloadmic by default. If this is compiler with offloading | |
3113 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3114 | # liboffloadmic is disabled by default. | |
3115 | # Check whether --enable-liboffloadmic was given. | |
3116 | if test "${enable_liboffloadmic+set}" = set; then : | |
3117 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3118 | no | host | target) | |
3119 | enable_liboffloadmic=$enableval ;; | |
3120 | *) | |
3121 | as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; | |
3122 | esac | |
3123 | else | |
3124 | if test x"$enable_as_accelerator_for" != x; then | |
3125 | case "${target}" in | |
3126 | *-intelmic-* | *-intelmicemul-*) | |
3127 | enable_liboffloadmic=target | |
3128 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3129 | ;; | |
3130 | *) | |
3131 | enable_liboffloadmic=no | |
3132 | ;; | |
3133 | esac | |
3134 | else | |
3135 | case "${enable_offload_targets}" in | |
3136 | *-intelmic-* | *-intelmicemul-*) | |
3137 | enable_liboffloadmic=host | |
3138 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3139 | ;; | |
3140 | *) | |
3141 | enable_liboffloadmic=no | |
3142 | ;; | |
3143 | esac | |
3144 | fi | |
f66a9a70 L |
3145 | fi |
3146 | ||
1b6c0831 L |
3147 | |
3148 | ||
68996839 | 3149 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
a6df5a19 | 3150 | if test x$enable_libgomp = x ; then |
b3ded179 | 3151 | case "${target}" in |
29383458 | 3152 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
b3ded179 | 3153 | ;; |
5b806d27 | 3154 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
b3ded179 | 3155 | ;; |
2479f722 | 3156 | *-*-solaris2* | *-*-hpux11*) |
b3ded179 PB |
3157 | ;; |
3158 | *-*-darwin* | *-*-aix*) | |
3159 | ;; | |
68996839 NC |
3160 | nvptx*-*-*) |
3161 | ;; | |
b3ded179 PB |
3162 | *) |
3163 | noconfigdirs="$noconfigdirs target-libgomp" | |
3164 | ;; | |
3165 | esac | |
a6df5a19 | 3166 | fi |
b3ded179 | 3167 | |
7ec59b9e L |
3168 | # Disable libatomic on unsupported systems. |
3169 | if test -d ${srcdir}/libatomic; then | |
3170 | if test x$enable_libatomic = x; then | |
3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3172 | $as_echo_n "checking for libatomic support... " >&6; } | |
3173 | if (srcdir=${srcdir}/libatomic; \ | |
3174 | . ${srcdir}/configure.tgt; \ | |
3175 | test -n "$UNSUPPORTED") | |
3176 | then | |
3177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3178 | $as_echo "no" >&6; } | |
3179 | noconfigdirs="$noconfigdirs target-libatomic" | |
3180 | else | |
3181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3182 | $as_echo "yes" >&6; } | |
3183 | fi | |
3184 | fi | |
3185 | fi | |
3186 | ||
522e3d71 | 3187 | # Disable libcilkrts on unsupported systems. |
3188 | if test -d ${srcdir}/libcilkrts; then | |
3189 | if test x$enable_libcilkrts = x; then | |
3190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5 | |
3191 | $as_echo_n "checking for libcilkrts support... " >&6; } | |
3192 | if (srcdir=${srcdir}/libcilkrts; \ | |
3193 | . ${srcdir}/configure.tgt; \ | |
3194 | test -n "$UNSUPPORTED") | |
3195 | then | |
3196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3197 | $as_echo "no" >&6; } | |
3198 | noconfigdirs="$noconfigdirs target-libcilkrts" | |
3199 | else | |
3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3201 | $as_echo "yes" >&6; } | |
3202 | fi | |
3203 | fi | |
3204 | fi | |
3205 | ||
1b6c0831 L |
3206 | # Disable liboffloadmic on unsupported systems. |
3207 | if test -d ${srcdir}/liboffloadmic; then | |
3208 | if test x$enable_liboffloadmic != xno; then | |
3209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3210 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3211 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3212 | . ${srcdir}/configure.tgt; \ | |
3213 | test -n "$UNSUPPORTED") | |
3214 | then | |
3215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3216 | $as_echo "no" >&6; } | |
3217 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3218 | else | |
3219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3220 | $as_echo "yes" >&6; } | |
3221 | fi | |
3222 | fi | |
3223 | fi | |
3224 | ||
d32e2926 RH |
3225 | # Disable libitm on unsupported systems. |
3226 | if test -d ${srcdir}/libitm; then | |
3227 | if test x$enable_libitm = x; then | |
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3229 | $as_echo_n "checking for libitm support... " >&6; } | |
3230 | if (srcdir=${srcdir}/libitm; \ | |
3231 | . ${srcdir}/configure.tgt; \ | |
3232 | test -n "$UNSUPPORTED") | |
3233 | then | |
3234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3235 | $as_echo "no" >&6; } | |
3236 | noconfigdirs="$noconfigdirs target-libitm" | |
3237 | else | |
3238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3239 | $as_echo "yes" >&6; } | |
3240 | fi | |
3241 | fi | |
3242 | fi | |
3243 | ||
5286fdef L |
3244 | # Disable libsanitizer on unsupported systems. |
3245 | if test -d ${srcdir}/libsanitizer; then | |
3246 | if test x$enable_libsanitizer = x; then | |
3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3248 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3249 | if (srcdir=${srcdir}/libsanitizer; \ | |
3250 | . ${srcdir}/configure.tgt; \ | |
3251 | test -n "$UNSUPPORTED") | |
3252 | then | |
3253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3254 | $as_echo "no" >&6; } | |
3255 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3256 | else | |
3257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3258 | $as_echo "yes" >&6; } | |
3259 | fi | |
3260 | fi | |
3261 | fi | |
3262 | ||
95e43135 JBG |
3263 | # Disable libvtv on unsupported systems. |
3264 | if test -d ${srcdir}/libvtv; then | |
3265 | if test x$enable_libvtv = x; then | |
3266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3267 | $as_echo_n "checking for libvtv support... " >&6; } | |
3268 | if (srcdir=${srcdir}/libvtv; \ | |
3269 | . ${srcdir}/configure.tgt; \ | |
3270 | test "$VTV_SUPPORTED" != "yes") | |
3271 | then | |
3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3273 | $as_echo "no" >&6; } | |
3274 | noconfigdirs="$noconfigdirs target-libvtv" | |
3275 | else | |
3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3277 | $as_echo "yes" >&6; } | |
3278 | fi | |
3279 | fi | |
3280 | fi | |
3281 | ||
1b6c0831 L |
3282 | |
3283 | # Enable libmpx on supported systems by request. | |
3284 | if test -d ${srcdir}/libmpx; then | |
4849dfd8 | 3285 | if test x$enable_libmpx = x; then |
1b6c0831 L |
3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5 |
3287 | $as_echo_n "checking for libmpx support... " >&6; } | |
3288 | if (srcdir=${srcdir}/libmpx; \ | |
3289 | . ${srcdir}/configure.tgt; \ | |
3290 | test "$LIBMPX_SUPPORTED" != "yes") | |
3291 | then | |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3293 | $as_echo "no" >&6; } | |
3294 | noconfigdirs="$noconfigdirs target-libmpx" | |
3295 | else | |
3296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3297 | $as_echo "yes" >&6; } | |
3298 | fi | |
1b6c0831 L |
3299 | fi |
3300 | fi | |
3301 | ||
3302 | ||
3303 | ||
1488e230 DE |
3304 | # Disable libquadmath for some systems. |
3305 | case "${target}" in | |
5286fdef L |
3306 | avr-*-*) |
3307 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3308 | ;; | |
1488e230 DE |
3309 | # libquadmath is unused on AIX and libquadmath build process use of |
3310 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3311 | powerpc-*-aix* | rs6000-*-aix*) | |
3312 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3313 | ;; | |
3314 | esac | |
3315 | ||
065a5627 JM |
3316 | # Disable libssp for some systems. |
3317 | case "${target}" in | |
3318 | avr-*-*) | |
c5f5c3c2 | 3319 | # No hosted I/O support. |
065a5627 JM |
3320 | noconfigdirs="$noconfigdirs target-libssp" |
3321 | ;; | |
3322 | powerpc-*-aix* | rs6000-*-aix*) | |
3323 | noconfigdirs="$noconfigdirs target-libssp" | |
3324 | ;; | |
99c513f6 | 3325 | rl78-*-*) |
202e2356 NC |
3326 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3327 | # doesn't fault for those - instead, it gives a build-time error | |
3328 | # for explicit misaligned loads. | |
99c513f6 DD |
3329 | noconfigdirs="$noconfigdirs target-libssp" |
3330 | ;; | |
1b6c0831 L |
3331 | visium-*-*) |
3332 | # No hosted I/O support. | |
3333 | noconfigdirs="$noconfigdirs target-libssp" | |
3334 | ;; | |
065a5627 JM |
3335 | esac |
3336 | ||
065a5627 | 3337 | # Disable libstdc++-v3 for some systems. |
f66a9a70 L |
3338 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3339 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3340 | case "${target}" in | |
3341 | *-*-vxworks*) | |
3342 | # VxWorks uses the Dinkumware C++ library. | |
3343 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3344 | ;; | |
3345 | arm*-wince-pe*) | |
3346 | # the C++ libraries don't build on top of CE's C libraries | |
3347 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3348 | ;; | |
3349 | avr-*-*) | |
3350 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3351 | ;; | |
969b1713 L |
3352 | ft32-*-*) |
3353 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3354 | ;; | |
f66a9a70 L |
3355 | esac |
3356 | fi | |
065a5627 JM |
3357 | |
3358 | # Disable Fortran for some systems. | |
3359 | case "${target}" in | |
3360 | mmix-*-*) | |
3361 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3362 | unsupported_languages="$unsupported_languages fortran" | |
3363 | ;; | |
3364 | esac | |
3365 | ||
05a13254 | 3366 | # Disable libffi for some systems. |
0827f9a6 | 3367 | case "${target}" in |
9863d716 JM |
3368 | powerpc-*-darwin*) |
3369 | ;; | |
3370 | i[3456789]86-*-darwin*) | |
3371 | ;; | |
3372 | x86_64-*-darwin[912]*) | |
3373 | ;; | |
3374 | *-*-darwin*) | |
05a13254 | 3375 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3376 | ;; |
9863d716 | 3377 | *-*-netware*) |
05a13254 NC |
3378 | noconfigdirs="$noconfigdirs target-libffi" |
3379 | ;; | |
3380 | *-*-phoenix*) | |
3381 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 JM |
3382 | ;; |
3383 | *-*-rtems*) | |
05a13254 | 3384 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3385 | ;; |
3386 | *-*-tpf*) | |
05a13254 | 3387 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3388 | ;; |
3389 | *-*-uclinux*) | |
05a13254 | 3390 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3391 | ;; |
3392 | *-*-vxworks*) | |
05a13254 NC |
3393 | noconfigdirs="$noconfigdirs target-libffi" |
3394 | ;; | |
3395 | aarch64*-*-freebsd*) | |
3396 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 | 3397 | ;; |
9863d716 | 3398 | alpha*-*-*vms*) |
05a13254 | 3399 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3400 | ;; |
1b6c0831 | 3401 | arm*-*-freebsd*) |
05a13254 | 3402 | noconfigdirs="$noconfigdirs target-libffi" |
1b6c0831 | 3403 | ;; |
0827f9a6 | 3404 | arm-wince-pe) |
05a13254 | 3405 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3406 | ;; |
9863d716 | 3407 | arm*-*-symbianelf*) |
05a13254 | 3408 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3409 | ;; |
9863d716 | 3410 | cris-*-* | crisv32-*-*) |
9863d716 JM |
3411 | case "${target}" in |
3412 | *-*-linux*) | |
3413 | ;; | |
3414 | *) # See PR46792 regarding target-libffi. | |
05a13254 | 3415 | noconfigdirs="$noconfigdirs target-libffi";; |
9863d716 JM |
3416 | esac |
3417 | ;; | |
82ae827f | 3418 | hppa*64*-*-hpux*) |
05a13254 | 3419 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3420 | ;; |
3421 | hppa*-hp-hpux11*) | |
3422 | ;; | |
82ae827f | 3423 | hppa*-*-hpux*) |
05a13254 | 3424 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3425 | ;; |
9863d716 | 3426 | ia64*-*-*vms*) |
05a13254 | 3427 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3428 | ;; |
9863d716 | 3429 | i[3456789]86-w64-mingw*) |
05a13254 | 3430 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3431 | ;; |
3432 | i[3456789]86-*-mingw*) | |
05a13254 | 3433 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3434 | ;; |
3435 | x86_64-*-mingw*) | |
05a13254 | 3436 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3437 | ;; |
9863d716 | 3438 | mmix-*-*) |
05a13254 | 3439 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3440 | ;; |
3441 | powerpc-*-aix*) | |
3442 | # copied from rs6000-*-* entry | |
05a13254 | 3443 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3444 | ;; |
9863d716 | 3445 | rs6000-*-aix*) |
05a13254 | 3446 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3447 | ;; |
3f8107ab | 3448 | ft32-*-*) |
05a13254 | 3449 | noconfigdirs="$noconfigdirs target-libffi" |
3f8107ab | 3450 | ;; |
9863d716 | 3451 | *-*-lynxos*) |
05a13254 | 3452 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3453 | ;; |
9863d716 JM |
3454 | esac |
3455 | ||
1b6c0831 L |
3456 | # Disable the go frontend on systems where it is known to not work. Please keep |
3457 | # this in sync with contrib/config-list.mk. | |
3458 | case "${target}" in | |
3459 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) | |
3460 | unsupported_languages="$unsupported_languages go" | |
3461 | ;; | |
3462 | esac | |
3463 | ||
a413f71a ILT |
3464 | # Disable libgo for some systems where it is known to not work. |
3465 | # For testing, you can easily override this with --enable-libgo. | |
3466 | if test x$enable_libgo = x; then | |
3467 | case "${target}" in | |
3468 | *-*-darwin*) | |
3469 | # PR 46986 | |
3470 | noconfigdirs="$noconfigdirs target-libgo" | |
3471 | ;; | |
3472 | *-*-cygwin* | *-*-mingw*) | |
3473 | noconfigdirs="$noconfigdirs target-libgo" | |
3474 | ;; | |
3475 | *-*-aix*) | |
3476 | noconfigdirs="$noconfigdirs target-libgo" | |
3477 | ;; | |
3478 | esac | |
3479 | fi | |
3480 | ||
691bb5a1 DD |
3481 | # Default libgloss CPU subdirectory. |
3482 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3483 | |
ff46fb8f JM |
3484 | case "${target}" in |
3485 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3486 | libgloss_dir=wince | |
3487 | ;; | |
f1dd87fc YZ |
3488 | aarch64*-*-* ) |
3489 | libgloss_dir=aarch64 | |
3490 | ;; | |
ff46fb8f JM |
3491 | arm*-*-*) |
3492 | libgloss_dir=arm | |
3493 | ;; | |
3494 | cris-*-* | crisv32-*-*) | |
3495 | libgloss_dir=cris | |
3496 | ;; | |
3497 | hppa*-*-*) | |
3498 | libgloss_dir=pa | |
3499 | ;; | |
3500 | i[3456789]86-*-*) | |
3501 | libgloss_dir=i386 | |
3502 | ;; | |
3503 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3504 | libgloss_dir=m68hc11 | |
3505 | ;; | |
3506 | m68*-*-* | fido-*-*) | |
3507 | libgloss_dir=m68k | |
3508 | ;; | |
3509 | mips*-*-*) | |
3510 | libgloss_dir=mips | |
3511 | ;; | |
3512 | powerpc*-*-*) | |
3513 | libgloss_dir=rs6000 | |
3514 | ;; | |
3515 | sparc*-*-*) | |
3516 | libgloss_dir=sparc | |
3517 | ;; | |
3518 | esac | |
3519 | ||
c7e4b184 | 3520 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3521 | case "${target}" in |
c7e4b184 JM |
3522 | alpha*-dec-osf*) |
3523 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3524 | ;; | |
3525 | i[3456789]86-*-linux*) | |
3526 | # This section makes it possible to build newlib natively on linux. | |
3527 | # If we are using a cross compiler then don't configure newlib. | |
3528 | if test x${is_cross_compiler} != xno ; then | |
3529 | noconfigdirs="$noconfigdirs target-newlib" | |
3530 | fi | |
3531 | noconfigdirs="$noconfigdirs target-libgloss" | |
3532 | # If we are not using a cross compiler, do configure newlib. | |
3533 | # Note however, that newlib will only be configured in this situation | |
3534 | # if the --with-newlib option has been given, because otherwise | |
3535 | # 'target-newlib' will appear in skipdirs. | |
3536 | ;; | |
3537 | i[3456789]86-*-rdos*) | |
3538 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3539 | ;; | |
3540 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3541 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3542 | ;; | |
3543 | sparc-*-sunos4*) | |
3544 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3545 | ;; | |
3546 | *-*-aix*) | |
3547 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3548 | ;; | |
3549 | *-*-beos*) | |
3550 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3551 | ;; | |
a0da8069 | 3552 | *-*-chorusos) |
b2f14e4a | 3553 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3554 | ;; |
c7e4b184 JM |
3555 | *-*-dragonfly*) |
3556 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3557 | ;; | |
3558 | *-*-freebsd*) | |
3559 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3560 | ;; | |
3561 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3562 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3563 | ;; | |
3564 | *-*-lynxos*) | |
3565 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3566 | ;; | |
3567 | *-*-mingw*) | |
3568 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3569 | ;; | |
3570 | *-*-netbsd*) | |
3571 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3572 | ;; | |
3573 | *-*-netware*) | |
3574 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3575 | ;; | |
3576 | *-*-tpf*) | |
3577 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3578 | ;; | |
3579 | *-*-uclinux*) | |
3580 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3581 | ;; | |
3582 | *-*-vxworks*) | |
3583 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3584 | ;; | |
3585 | esac | |
3586 | ||
3587 | case "${target}" in | |
3588 | *-*-chorusos) | |
3589 | ;; | |
f075eb5e TG |
3590 | aarch64-*-darwin*) |
3591 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3592 | noconfigdirs="$noconfigdirs sim target-rda" | |
3593 | ;; | |
3594 | arm-*-darwin*) | |
3595 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3596 | noconfigdirs="$noconfigdirs sim target-rda" | |
3597 | ;; | |
24741ab2 | 3598 | powerpc-*-darwin*) |
9d39db92 | 3599 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3600 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3601 | ;; |
85bd1942 TG |
3602 | i[3456789]86-*-darwin*) |
3603 | noconfigdirs="$noconfigdirs ld gprof" | |
3604 | noconfigdirs="$noconfigdirs sim target-rda" | |
3605 | ;; | |
e8a5fa9c | 3606 | x86_64-*-darwin[912]*) |
652dec25 TG |
3607 | noconfigdirs="$noconfigdirs ld gas gprof" |
3608 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3609 | ;; |
04d1ab34 | 3610 | *-*-darwin*) |
d320aacb | 3611 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3612 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3613 | ;; |
5b806d27 | 3614 | *-*-dragonfly*) |
5b806d27 | 3615 | ;; |
de0b4a87 | 3616 | *-*-freebsd*) |
4b1cb4fe DD |
3617 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3618 | && test -f /usr/local/include/gmp.h; then | |
3619 | with_gmp=/usr/local | |
3620 | fi | |
4b1cb4fe | 3621 | ;; |
f8a495c8 NC |
3622 | *-*-kaos*) |
3623 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3624 | noconfigdirs="$noconfigdirs target-libgloss" |
3625 | ;; | |
a0da8069 | 3626 | *-*-netbsd*) |
a0da8069 | 3627 | ;; |
2a3124ca | 3628 | *-*-netware*) |
a0da8069 | 3629 | ;; |
05a13254 NC |
3630 | *-*-phoenix*) |
3631 | noconfigdirs="$noconfigdirs target-libgloss" | |
3632 | ;; | |
a0da8069 | 3633 | *-*-rtems*) |
9863d716 | 3634 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3635 | ;; |
1587117a EC |
3636 | # The tpf target doesn't support gdb yet. |
3637 | *-*-tpf*) | |
c7e4b184 | 3638 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3639 | ;; |
c1968181 | 3640 | *-*-uclinux*) |
c7e4b184 | 3641 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3642 | ;; |
a0da8069 | 3643 | *-*-vxworks*) |
a0da8069 NN |
3644 | ;; |
3645 | alpha*-dec-osf*) | |
3646 | # ld works, but does not support shared libraries. | |
a0da8069 | 3647 | # gas doesn't generate exception information. |
c7e4b184 | 3648 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3649 | ;; |
3650 | alpha*-*-*vms*) | |
9863d716 | 3651 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3652 | ;; |
a0da8069 NN |
3653 | alpha*-*-*) |
3654 | # newlib is not 64 bit ready | |
9863d716 | 3655 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3656 | ;; |
a0da8069 | 3657 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3658 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 | 3659 | ;; |
05a13254 NC |
3660 | arc*-*-*) |
3661 | noconfigdirs="$noconfigdirs sim" | |
a0da8069 | 3662 | ;; |
a0da8069 | 3663 | arm-*-pe*) |
9863d716 | 3664 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3665 | ;; |
a0da8069 | 3666 | arm-*-riscix*) |
b2f14e4a | 3667 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3668 | ;; |
8e71395b L |
3669 | avr-*-*) |
3670 | if test x${with_avrlibc} != xno; then | |
3671 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3672 | fi | |
3673 | ;; | |
a0da8069 | 3674 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3675 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3676 | ;; |
b2f14e4a JM |
3677 | tic54x-*-*) |
3678 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3679 | ;; |
a0da8069 | 3680 | d10v-*-*) |
b2f14e4a | 3681 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3682 | ;; |
3683 | d30v-*-*) | |
b2f14e4a | 3684 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3685 | ;; |
3686 | fr30-*-elf*) | |
9863d716 | 3687 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3688 | ;; |
3f8107ab AM |
3689 | ft32-*-*) |
3690 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3691 | ;; | |
20135e4c | 3692 | moxie-*-*) |
10b8fe5e | 3693 | noconfigdirs="$noconfigdirs" |
20135e4c | 3694 | ;; |
a0da8069 | 3695 | h8300*-*-*) |
9863d716 | 3696 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3697 | ;; |
3698 | h8500-*-*) | |
b2f14e4a | 3699 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3700 | ;; |
caeba88f | 3701 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3702 | ;; |
5569a85f JDA |
3703 | hppa*64*-*-hpux*) |
3704 | noconfigdirs="$noconfigdirs gdb" | |
3705 | ;; | |
3706 | hppa*-*-hpux11*) | |
3707 | noconfigdirs="$noconfigdirs gdb ld" | |
3708 | ;; | |
93cc359e | 3709 | hppa*64*-*-linux*) |
a0da8069 | 3710 | ;; |
f0ff0f90 | 3711 | hppa*-*-linux*) |
5dcac624 | 3712 | ;; |
a0da8069 | 3713 | hppa*-*-*elf* | \ |
a0da8069 NN |
3714 | hppa*-*-lites* | \ |
3715 | hppa*-*-openbsd* | \ | |
3716 | hppa*64*-*-*) | |
4f0ef2d8 | 3717 | ;; |
691bb5a1 | 3718 | hppa*-*-pro*) |
691bb5a1 | 3719 | ;; |
a0da8069 | 3720 | hppa*-*-*) |
9863d716 | 3721 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3722 | ;; |
b07c2aad | 3723 | i960-*-*) |
b2f14e4a | 3724 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3725 | ;; |
a0da8069 NN |
3726 | ia64*-*-elf*) |
3727 | # No gdb support yet. | |
0377a422 | 3728 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3729 | ;; |
3730 | ia64*-**-hpux*) | |
92c9a463 | 3731 | # No ld support yet. |
5569a85f | 3732 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
a0da8069 | 3733 | ;; |
19e99079 | 3734 | ia64*-*-*vms*) |
7ec59b9e L |
3735 | # No ld support yet. |
3736 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
19e99079 | 3737 | ;; |
1f53ca9a | 3738 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3739 | ;; |
3740 | i[3456789]86-*-mingw*) | |
45055374 | 3741 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3742 | ;; |
a0da8069 NN |
3743 | *-*-cygwin*) |
3744 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3745 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3746 | # always build newlib if winsup directory is present. |
45055374 | 3747 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3748 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3749 | elif test -d "$srcdir/newlib"; then |
45055374 | 3750 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3751 | fi |
c6b750e1 | 3752 | ;; |
ec11bdc6 | 3753 | i[3456789]86-*-pe) |
782cb41f | 3754 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3755 | ;; |
ec11bdc6 | 3756 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3757 | # The linker does not yet know about weak symbols in COFF, |
3758 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3759 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3760 | ;; |
ec11bdc6 | 3761 | i[3456789]86-*-sco*) |
b2f14e4a | 3762 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3763 | ;; |
cff32a7c | 3764 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
a0da8069 NN |
3765 | noconfigdirs="$noconfigdirs target-libgloss" |
3766 | ;; | |
ec11bdc6 | 3767 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3768 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3769 | ;; |
ec11bdc6 | 3770 | i[3456789]86-*-beos*) |
c7e4b184 | 3771 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3772 | ;; |
b59bea8a | 3773 | i[3456789]86-*-rdos*) |
c7e4b184 | 3774 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3775 | ;; |
a0da8069 | 3776 | mmix-*-*) |
9863d716 | 3777 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3778 | ;; |
4970f871 | 3779 | mt-*-*) |
cdb9b172 AH |
3780 | noconfigdirs="$noconfigdirs sim" |
3781 | ;; | |
a0da8069 NN |
3782 | powerpc-*-aix*) |
3783 | # copied from rs6000-*-* entry | |
c7e4b184 | 3784 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3785 | ;; |
93cc359e | 3786 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 3787 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 3788 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
3789 | # always build newlib. |
3790 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3791 | ;; | |
3792 | # This is temporary until we can link against shared libraries | |
3793 | powerpcle-*-solaris*) | |
b2f14e4a | 3794 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
3795 | ;; |
3796 | powerpc-*-beos*) | |
c7e4b184 | 3797 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3798 | ;; |
a0da8069 | 3799 | rs6000-*-lynxos*) |
c7e4b184 | 3800 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3801 | ;; |
3802 | rs6000-*-aix*) | |
c7e4b184 | 3803 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3804 | ;; |
3805 | rs6000-*-*) | |
9863d716 | 3806 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3807 | ;; |
3808 | m68k-apollo-*) | |
b2f14e4a | 3809 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 3810 | ;; |
25a07265 | 3811 | microblaze*) |
9863d716 | 3812 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 3813 | ;; |
a9d58c06 | 3814 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
5bd8be13 RS |
3815 | if test x$with_newlib = xyes; then |
3816 | noconfigdirs="$noconfigdirs gprof" | |
3817 | fi | |
5bd8be13 | 3818 | ;; |
a0da8069 | 3819 | mips*-*-irix5*) |
b2f14e4a | 3820 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
3821 | ;; |
3822 | mips*-*-irix6*) | |
9863d716 | 3823 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3824 | ;; |
a0da8069 | 3825 | mips*-*-bsd*) |
e8044f35 | 3826 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
a0da8069 | 3827 | ;; |
a0da8069 | 3828 | mips*-*-linux*) |
a0da8069 | 3829 | ;; |
e8044f35 RS |
3830 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3831 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3832 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3833 | ;; | |
a0da8069 | 3834 | mips*-*-*) |
9863d716 | 3835 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3836 | ;; |
1b6c0831 | 3837 | nvptx*-*-*) |
1b6c0831 L |
3838 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3839 | ;; | |
05a13254 | 3840 | sh-*-*) |
e8a5fa9c RW |
3841 | case "${target}" in |
3842 | sh*-*-elf) | |
9863d716 | 3843 | ;; |
e8a5fa9c | 3844 | *) |
9863d716 | 3845 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 3846 | esac |
a0da8069 | 3847 | ;; |
a0da8069 | 3848 | sparc-*-sunos4*) |
c7e4b184 | 3849 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
3850 | use_gnu_ld=no |
3851 | fi | |
3852 | ;; | |
619a3713 | 3853 | tic6x-*-*) |
40ae9136 | 3854 | noconfigdirs="$noconfigdirs sim" |
619a3713 | 3855 | ;; |
05a13254 | 3856 | tilepro*-*-* | tilegx*-*-*) |
eb4b2452 NC |
3857 | noconfigdirs="$noconfigdirs sim" |
3858 | ;; | |
a0da8069 | 3859 | v810-*-*) |
b2f14e4a | 3860 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
3861 | ;; |
3862 | vax-*-*) | |
9863d716 | 3863 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3864 | ;; |
a0da8069 | 3865 | esac |
252b5132 | 3866 | |
a0da8069 NN |
3867 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3868 | # depends upon some newlib header files. | |
3869 | case "${noconfigdirs}" in | |
3870 | *target-libgloss*) ;; | |
3871 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3872 | esac | |
3873 | ||
a0da8069 | 3874 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
3875 | host_makefile_frag=/dev/null |
3876 | if test -d ${srcdir}/config ; then | |
3877 | case "${host}" in | |
ec11bdc6 | 3878 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
3879 | host_makefile_frag="config/mh-djgpp" |
3880 | ;; | |
3881 | *-cygwin*) | |
e33b51a6 | 3882 | |
81ecdfbb RW |
3883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3884 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 3885 | echo a >cygwin-cat-check |
1f53ca9a | 3886 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 3887 | rm cygwin-cat-check |
81ecdfbb RW |
3888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3889 | $as_echo "yes" >&6; } | |
e33b51a6 | 3890 | else |
8ade07e9 | 3891 | rm cygwin-cat-check |
81ecdfbb RW |
3892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3893 | $as_echo "no" >&6; } | |
3894 | as_fn_error "The cat command does not ignore carriage return characters. | |
e33b51a6 NC |
3895 | Please either mount the build directory in binary mode or run the following |
3896 | commands before running any configure script: | |
3897 | set -o igncr | |
3898 | export SHELLOPTS | |
81ecdfbb | 3899 | " "$LINENO" 5 |
e33b51a6 | 3900 | fi |
e33b51a6 | 3901 | |
a0da8069 NN |
3902 | host_makefile_frag="config/mh-cygwin" |
3903 | ;; | |
8a1599ab | 3904 | *-mingw*) |
84e7906e | 3905 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 3906 | ;; |
ce6c656d L |
3907 | alpha*-linux*) |
3908 | host_makefile_frag="config/mh-alpha-linux" | |
3909 | ;; | |
da888c87 | 3910 | hppa*-hp-hpux10*) |
da888c87 | 3911 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 3912 | ;; |
3516a403 | 3913 | hppa*-hp-hpux*) |
da888c87 PB |
3914 | host_makefile_frag="config/mh-pa" |
3915 | ;; | |
3916 | hppa*-*) | |
3917 | host_makefile_frag="config/mh-pa" | |
3918 | ;; | |
e552509b ILT |
3919 | *-*-darwin*) |
3920 | host_makefile_frag="config/mh-darwin" | |
0df3d27f | 3921 | ;; |
f6d183c0 PB |
3922 | powerpc-*-aix*) |
3923 | host_makefile_frag="config/mh-ppc-aix" | |
3924 | ;; | |
3925 | rs6000-*-aix*) | |
3926 | host_makefile_frag="config/mh-ppc-aix" | |
3927 | ;; | |
a0da8069 NN |
3928 | esac |
3929 | fi | |
3930 | ||
9e07f89d | 3931 | if test "${build}" != "${host}" ; then |
1576798e PB |
3932 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3933 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 3934 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
1576798e | 3935 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
1576798e | 3936 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
e552509b | 3937 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
1576798e PB |
3938 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3939 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3940 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3941 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3942 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3943 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3944 | else | |
3945 | AR_FOR_BUILD="\$(AR)" | |
3946 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 3947 | CC_FOR_BUILD="\$(CC)" |
1576798e | 3948 | CXX_FOR_BUILD="\$(CXX)" |
1576798e | 3949 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
e552509b | 3950 | GOC_FOR_BUILD="\$(GOC)" |
1576798e PB |
3951 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3952 | LD_FOR_BUILD="\$(LD)" | |
3953 | NM_FOR_BUILD="\$(NM)" | |
3954 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3955 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3956 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
3957 | fi |
3958 | ||
3959 | ac_ext=c | |
c6b750e1 DJ |
3960 | ac_cpp='$CPP $CPPFLAGS' |
3961 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3962 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3963 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3964 | if test -n "$ac_tool_prefix"; then | |
3965 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3966 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3968 | $as_echo_n "checking for $ac_word... " >&6; } | |
3969 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3970 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
3971 | else |
3972 | if test -n "$CC"; then | |
3973 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3974 | else | |
3975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3976 | for as_dir in $PATH | |
3977 | do | |
3978 | IFS=$as_save_IFS | |
3979 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3980 | for ac_exec_ext in '' $ac_executable_extensions; do |
3981 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3982 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 3983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3984 | break 2 |
3985 | fi | |
3986 | done | |
81ecdfbb RW |
3987 | done |
3988 | IFS=$as_save_IFS | |
c6b750e1 DJ |
3989 | |
3990 | fi | |
3991 | fi | |
3992 | CC=$ac_cv_prog_CC | |
3993 | if test -n "$CC"; then | |
81ecdfbb RW |
3994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3995 | $as_echo "$CC" >&6; } | |
c6b750e1 | 3996 | else |
81ecdfbb RW |
3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3998 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3999 | fi |
4000 | ||
81ecdfbb | 4001 | |
c6b750e1 DJ |
4002 | fi |
4003 | if test -z "$ac_cv_prog_CC"; then | |
4004 | ac_ct_CC=$CC | |
6a9cf61e | 4005 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 4006 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
4007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4008 | $as_echo_n "checking for $ac_word... " >&6; } | |
4009 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4010 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
4011 | else |
4012 | if test -n "$ac_ct_CC"; then | |
4013 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4014 | else | |
4015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4016 | for as_dir in $PATH | |
4017 | do | |
4018 | IFS=$as_save_IFS | |
4019 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4020 | for ac_exec_ext in '' $ac_executable_extensions; do |
4021 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4022 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4024 | break 2 |
4025 | fi | |
4026 | done | |
81ecdfbb RW |
4027 | done |
4028 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4029 | |
4030 | fi | |
4031 | fi | |
4032 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4033 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4035 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 4036 | else |
81ecdfbb RW |
4037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4038 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4039 | fi |
4040 | ||
81ecdfbb RW |
4041 | if test "x$ac_ct_CC" = x; then |
4042 | CC="" | |
4043 | else | |
4044 | case $cross_compiling:$ac_tool_warned in | |
4045 | yes:) | |
4046 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4047 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4048 | ac_tool_warned=yes ;; | |
4049 | esac | |
4050 | CC=$ac_ct_CC | |
4051 | fi | |
c6b750e1 DJ |
4052 | else |
4053 | CC="$ac_cv_prog_CC" | |
4054 | fi | |
4055 | ||
4056 | if test -z "$CC"; then | |
81ecdfbb RW |
4057 | if test -n "$ac_tool_prefix"; then |
4058 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 4059 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4061 | $as_echo_n "checking for $ac_word... " >&6; } | |
4062 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4063 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4064 | else |
4065 | if test -n "$CC"; then | |
4066 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4067 | else | |
c6b750e1 DJ |
4068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4069 | for as_dir in $PATH | |
4070 | do | |
4071 | IFS=$as_save_IFS | |
4072 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4073 | for ac_exec_ext in '' $ac_executable_extensions; do |
4074 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4075 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4077 | break 2 |
4078 | fi | |
4079 | done | |
81ecdfbb RW |
4080 | done |
4081 | IFS=$as_save_IFS | |
c6b750e1 | 4082 | |
9e07f89d NN |
4083 | fi |
4084 | fi | |
c6b750e1 | 4085 | CC=$ac_cv_prog_CC |
9e07f89d | 4086 | if test -n "$CC"; then |
81ecdfbb RW |
4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4088 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4089 | else |
81ecdfbb RW |
4090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4091 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4092 | fi |
4093 | ||
c6b750e1 | 4094 | |
81ecdfbb | 4095 | fi |
c6b750e1 | 4096 | fi |
9e07f89d NN |
4097 | if test -z "$CC"; then |
4098 | # Extract the first word of "cc", so it can be a program name with args. | |
4099 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4101 | $as_echo_n "checking for $ac_word... " >&6; } | |
4102 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4103 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4104 | else |
4105 | if test -n "$CC"; then | |
4106 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4107 | else | |
9e07f89d | 4108 | ac_prog_rejected=no |
c6b750e1 DJ |
4109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4110 | for as_dir in $PATH | |
4111 | do | |
4112 | IFS=$as_save_IFS | |
4113 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4114 | for ac_exec_ext in '' $ac_executable_extensions; do |
4115 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 DJ |
4116 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4117 | ac_prog_rejected=yes | |
4118 | continue | |
4119 | fi | |
4120 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4121 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4122 | break 2 |
4123 | fi | |
4124 | done | |
81ecdfbb RW |
4125 | done |
4126 | IFS=$as_save_IFS | |
c6b750e1 | 4127 | |
9e07f89d NN |
4128 | if test $ac_prog_rejected = yes; then |
4129 | # We found a bogon in the path, so make sure we never use it. | |
4130 | set dummy $ac_cv_prog_CC | |
4131 | shift | |
c6b750e1 | 4132 | if test $# != 0; then |
9e07f89d NN |
4133 | # We chose a different compiler from the bogus one. |
4134 | # However, it has the same basename, so the bogon will be chosen | |
4135 | # first if we set CC to just the basename; use the full file name. | |
4136 | shift | |
c6b750e1 | 4137 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
4138 | fi |
4139 | fi | |
4140 | fi | |
4141 | fi | |
c6b750e1 | 4142 | CC=$ac_cv_prog_CC |
9e07f89d | 4143 | if test -n "$CC"; then |
81ecdfbb RW |
4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4145 | $as_echo "$CC" >&6; } | |
9e07f89d | 4146 | else |
81ecdfbb RW |
4147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4148 | $as_echo "no" >&6; } | |
9e07f89d NN |
4149 | fi |
4150 | ||
81ecdfbb | 4151 | |
c6b750e1 DJ |
4152 | fi |
4153 | if test -z "$CC"; then | |
4154 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4155 | for ac_prog in cl.exe |
c6b750e1 DJ |
4156 | do |
4157 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4158 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4160 | $as_echo_n "checking for $ac_word... " >&6; } | |
4161 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4162 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4163 | else |
4164 | if test -n "$CC"; then | |
4165 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4166 | else | |
c6b750e1 DJ |
4167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4168 | for as_dir in $PATH | |
4169 | do | |
4170 | IFS=$as_save_IFS | |
4171 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4172 | for ac_exec_ext in '' $ac_executable_extensions; do |
4173 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4174 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4175 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 4176 | break 2 |
376a0e54 | 4177 | fi |
c6b750e1 | 4178 | done |
81ecdfbb RW |
4179 | done |
4180 | IFS=$as_save_IFS | |
cac3d6c4 | 4181 | |
c6b750e1 DJ |
4182 | fi |
4183 | fi | |
4184 | CC=$ac_cv_prog_CC | |
4185 | if test -n "$CC"; then | |
81ecdfbb RW |
4186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4187 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 4188 | else |
81ecdfbb RW |
4189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4190 | $as_echo "no" >&6; } | |
9e07f89d | 4191 | fi |
cac3d6c4 | 4192 | |
81ecdfbb | 4193 | |
c6b750e1 DJ |
4194 | test -n "$CC" && break |
4195 | done | |
cac3d6c4 | 4196 | fi |
c6b750e1 DJ |
4197 | if test -z "$CC"; then |
4198 | ac_ct_CC=$CC | |
81ecdfbb | 4199 | for ac_prog in cl.exe |
c6b750e1 DJ |
4200 | do |
4201 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4202 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4204 | $as_echo_n "checking for $ac_word... " >&6; } | |
4205 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4206 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 4207 | else |
c6b750e1 DJ |
4208 | if test -n "$ac_ct_CC"; then |
4209 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 4210 | else |
c6b750e1 DJ |
4211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4212 | for as_dir in $PATH | |
4213 | do | |
4214 | IFS=$as_save_IFS | |
4215 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4216 | for ac_exec_ext in '' $ac_executable_extensions; do |
4217 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4218 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4219 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4220 | break 2 |
4221 | fi | |
4222 | done | |
81ecdfbb RW |
4223 | done |
4224 | IFS=$as_save_IFS | |
c6b750e1 | 4225 | |
cac3d6c4 CM |
4226 | fi |
4227 | fi | |
c6b750e1 DJ |
4228 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4229 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4231 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 4232 | else |
81ecdfbb RW |
4233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4234 | $as_echo "no" >&6; } | |
cac3d6c4 | 4235 | fi |
376a0e54 | 4236 | |
81ecdfbb | 4237 | |
c6b750e1 DJ |
4238 | test -n "$ac_ct_CC" && break |
4239 | done | |
4240 | ||
81ecdfbb RW |
4241 | if test "x$ac_ct_CC" = x; then |
4242 | CC="" | |
4243 | else | |
4244 | case $cross_compiling:$ac_tool_warned in | |
4245 | yes:) | |
4246 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4247 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4248 | ac_tool_warned=yes ;; | |
4249 | esac | |
4250 | CC=$ac_ct_CC | |
4251 | fi | |
c6b750e1 DJ |
4252 | fi |
4253 | ||
4254 | fi | |
4255 | ||
4256 | ||
81ecdfbb RW |
4257 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4258 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4259 | as_fn_error "no acceptable C compiler found in \$PATH | |
4260 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 DJ |
4261 | |
4262 | # Provide some information about the compiler. | |
81ecdfbb RW |
4263 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4264 | set X $ac_compile | |
4265 | ac_compiler=$2 | |
4266 | for ac_option in --version -v -V -qversion; do | |
4267 | { { ac_try="$ac_compiler $ac_option >&5" | |
4268 | case "(($ac_try" in | |
4269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4270 | *) ac_try_echo=$ac_try;; | |
4271 | esac | |
4272 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4273 | $as_echo "$ac_try_echo"; } >&5 | |
4274 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4275 | ac_status=$? |
81ecdfbb RW |
4276 | if test -s conftest.err; then |
4277 | sed '10a\ | |
4278 | ... rest of stderr output deleted ... | |
4279 | 10q' conftest.err >conftest.er1 | |
4280 | cat conftest.er1 >&5 | |
4281 | rm -f conftest.er1 conftest.err | |
4282 | fi | |
4283 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4284 | test $ac_status = 0; } | |
4285 | done | |
c6b750e1 | 4286 | |
81ecdfbb | 4287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4288 | /* end confdefs.h. */ |
4289 | ||
4290 | int | |
4291 | main () | |
4292 | { | |
4293 | ||
4294 | ; | |
4295 | return 0; | |
4296 | } | |
4297 | _ACEOF | |
4298 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 4299 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
c6b750e1 DJ |
4300 | # Try to create an executable without -o first, disregard a.out. |
4301 | # It will help us diagnose broken compilers, and finding out an intuition | |
4302 | # of exeext. | |
81ecdfbb RW |
4303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4304 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4305 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4306 | ||
4307 | # The possible output files: | |
4308 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4309 | ||
4310 | ac_rmfiles= | |
4311 | for ac_file in $ac_files | |
4312 | do | |
4313 | case $ac_file in | |
4314 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4315 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4316 | esac | |
4317 | done | |
4318 | rm -f $ac_rmfiles | |
4319 | ||
4320 | if { { ac_try="$ac_link_default" | |
4321 | case "(($ac_try" in | |
4322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4323 | *) ac_try_echo=$ac_try;; | |
4324 | esac | |
4325 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4326 | $as_echo "$ac_try_echo"; } >&5 | |
4327 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4328 | ac_status=$? |
81ecdfbb RW |
4329 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4330 | test $ac_status = 0; }; then : | |
4331 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4332 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4333 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4334 | # so that the user can short-circuit this test for compilers unknown to | |
4335 | # Autoconf. | |
4336 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4337 | do |
4338 | test -f "$ac_file" || continue | |
4339 | case $ac_file in | |
81ecdfbb | 4340 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4341 | ;; |
4342 | [ab].out ) | |
4343 | # We found the default executable, but exeext='' is most | |
4344 | # certainly right. | |
4345 | break;; | |
4346 | *.* ) | |
81ecdfbb RW |
4347 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4348 | then :; else | |
4349 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4350 | fi | |
4351 | # We set ac_cv_exeext here because the later test for it is not | |
4352 | # safe: cross compilers may not add the suffix if given an `-o' | |
4353 | # argument, so we may need to know it at that point already. | |
4354 | # Even if this section looks crufty: it has the advantage of | |
4355 | # actually working. | |
c6b750e1 DJ |
4356 | break;; |
4357 | * ) | |
4358 | break;; | |
4359 | esac | |
4360 | done | |
81ecdfbb RW |
4361 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4362 | ||
c6b750e1 | 4363 | else |
81ecdfbb RW |
4364 | ac_file='' |
4365 | fi | |
4366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4367 | $as_echo "$ac_file" >&6; } | |
4368 | if test -z "$ac_file"; then : | |
4369 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4370 | sed 's/^/| /' conftest.$ac_ext >&5 |
4371 | ||
81ecdfbb RW |
4372 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4373 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4374 | { as_fn_set_status 77 | |
4375 | as_fn_error "C compiler cannot create executables | |
4376 | See \`config.log' for more details." "$LINENO" 5; }; } | |
c6b750e1 | 4377 | fi |
c6b750e1 | 4378 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4379 | |
81ecdfbb | 4380 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4381 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4383 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
c6b750e1 DJ |
4384 | # If not cross compiling, check that we can run a simple program. |
4385 | if test "$cross_compiling" != yes; then | |
4386 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
4387 | { { case "(($ac_try" in |
4388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4389 | *) ac_try_echo=$ac_try;; | |
4390 | esac | |
4391 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4392 | $as_echo "$ac_try_echo"; } >&5 | |
4393 | (eval "$ac_try") 2>&5 | |
c6b750e1 | 4394 | ac_status=$? |
81ecdfbb RW |
4395 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4396 | test $ac_status = 0; }; }; then | |
c6b750e1 DJ |
4397 | cross_compiling=no |
4398 | else | |
4399 | if test "$cross_compiling" = maybe; then | |
4400 | cross_compiling=yes | |
4401 | else | |
81ecdfbb RW |
4402 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4403 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4404 | as_fn_error "cannot run C compiled programs. | |
c6b750e1 | 4405 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 4406 | See \`config.log' for more details." "$LINENO" 5; } |
c6b750e1 DJ |
4407 | fi |
4408 | fi | |
4409 | fi | |
81ecdfbb RW |
4410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4411 | $as_echo "yes" >&6; } | |
c6b750e1 | 4412 | |
81ecdfbb | 4413 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
c6b750e1 | 4414 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 4415 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4416 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4418 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4420 | $as_echo "$cross_compiling" >&6; } | |
4421 | ||
4422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4423 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4424 | if { { ac_try="$ac_link" | |
4425 | case "(($ac_try" in | |
4426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4427 | *) ac_try_echo=$ac_try;; | |
4428 | esac | |
4429 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4430 | $as_echo "$ac_try_echo"; } >&5 | |
4431 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4432 | ac_status=$? |
81ecdfbb RW |
4433 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4434 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4435 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4436 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4437 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4438 | # `rm'. | |
4439 | for ac_file in conftest.exe conftest conftest.*; do | |
4440 | test -f "$ac_file" || continue | |
4441 | case $ac_file in | |
81ecdfbb | 4442 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4443 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4444 | break;; |
4445 | * ) break;; | |
4446 | esac | |
4447 | done | |
4448 | else | |
81ecdfbb RW |
4449 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4450 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4451 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4452 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4453 | fi |
c6b750e1 | 4454 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
4455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4456 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4457 | |
4458 | rm -f conftest.$ac_ext | |
4459 | EXEEXT=$ac_cv_exeext | |
4460 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
4461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4462 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4463 | if test "${ac_cv_objext+set}" = set; then : | |
4464 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4465 | else |
81ecdfbb | 4466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4467 | /* end confdefs.h. */ |
4468 | ||
4469 | int | |
4470 | main () | |
4471 | { | |
4472 | ||
4473 | ; | |
4474 | return 0; | |
4475 | } | |
4476 | _ACEOF | |
4477 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4478 | if { { ac_try="$ac_compile" |
4479 | case "(($ac_try" in | |
4480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4481 | *) ac_try_echo=$ac_try;; | |
4482 | esac | |
4483 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4484 | $as_echo "$ac_try_echo"; } >&5 | |
4485 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4486 | ac_status=$? |
81ecdfbb RW |
4487 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4488 | test $ac_status = 0; }; then : | |
4489 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4490 | test -f "$ac_file" || continue; | |
c6b750e1 | 4491 | case $ac_file in |
81ecdfbb | 4492 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4493 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4494 | break;; | |
4495 | esac | |
4496 | done | |
cac3d6c4 | 4497 | else |
81ecdfbb | 4498 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4499 | sed 's/^/| /' conftest.$ac_ext >&5 |
4500 | ||
81ecdfbb RW |
4501 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4502 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4503 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4504 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4505 | fi |
c6b750e1 DJ |
4506 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4507 | fi | |
81ecdfbb RW |
4508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4509 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4510 | OBJEXT=$ac_cv_objext |
4511 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4513 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4514 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4515 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4516 | else |
81ecdfbb | 4517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4518 | /* end confdefs.h. */ |
4519 | ||
4520 | int | |
4521 | main () | |
4522 | { | |
4523 | #ifndef __GNUC__ | |
4524 | choke me | |
4525 | #endif | |
4526 | ||
4527 | ; | |
4528 | return 0; | |
4529 | } | |
4530 | _ACEOF | |
81ecdfbb | 4531 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4532 | ac_compiler_gnu=yes |
4533 | else | |
81ecdfbb | 4534 | ac_compiler_gnu=no |
c6b750e1 | 4535 | fi |
81ecdfbb | 4536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4537 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4538 | ||
4539 | fi | |
81ecdfbb RW |
4540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4541 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4542 | if test $ac_compiler_gnu = yes; then | |
4543 | GCC=yes | |
4544 | else | |
4545 | GCC= | |
4546 | fi | |
c6b750e1 DJ |
4547 | ac_test_CFLAGS=${CFLAGS+set} |
4548 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4550 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4551 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4552 | $as_echo_n "(cached) " >&6 | |
4553 | else | |
4554 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4555 | ac_c_werror_flag=yes | |
4556 | ac_cv_prog_cc_g=no | |
4557 | CFLAGS="-g" | |
4558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4559 | /* end confdefs.h. */ |
4560 | ||
4561 | int | |
4562 | main () | |
4563 | { | |
4564 | ||
4565 | ; | |
4566 | return 0; | |
4567 | } | |
4568 | _ACEOF | |
81ecdfbb | 4569 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4570 | ac_cv_prog_cc_g=yes |
4571 | else | |
81ecdfbb RW |
4572 | CFLAGS="" |
4573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4574 | /* end confdefs.h. */ | |
4575 | ||
4576 | int | |
4577 | main () | |
4578 | { | |
4579 | ||
4580 | ; | |
4581 | return 0; | |
4582 | } | |
4583 | _ACEOF | |
4584 | if ac_fn_c_try_compile "$LINENO"; then : | |
4585 | ||
4586 | else | |
4587 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4588 | CFLAGS="-g" | |
4589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4590 | /* end confdefs.h. */ | |
cac3d6c4 | 4591 | |
81ecdfbb RW |
4592 | int |
4593 | main () | |
4594 | { | |
4595 | ||
4596 | ; | |
4597 | return 0; | |
4598 | } | |
4599 | _ACEOF | |
4600 | if ac_fn_c_try_compile "$LINENO"; then : | |
4601 | ac_cv_prog_cc_g=yes | |
4602 | fi | |
4603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4604 | fi |
81ecdfbb | 4605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4606 | fi |
81ecdfbb RW |
4607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4608 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4609 | fi | |
4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4611 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4612 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4613 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4614 | elif test $ac_cv_prog_cc_g = yes; then |
4615 | if test "$GCC" = yes; then | |
4616 | CFLAGS="-g -O2" | |
4617 | else | |
4618 | CFLAGS="-g" | |
4619 | fi | |
4620 | else | |
4621 | if test "$GCC" = yes; then | |
4622 | CFLAGS="-O2" | |
4623 | else | |
4624 | CFLAGS= | |
4625 | fi | |
4626 | fi | |
81ecdfbb RW |
4627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4628 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4629 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4630 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4631 | else |
81ecdfbb | 4632 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4633 | ac_save_CC=$CC |
81ecdfbb | 4634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4635 | /* end confdefs.h. */ |
4636 | #include <stdarg.h> | |
4637 | #include <stdio.h> | |
4638 | #include <sys/types.h> | |
4639 | #include <sys/stat.h> | |
4640 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4641 | struct buf { int x; }; | |
4642 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4643 | static char *e (p, i) | |
4644 | char **p; | |
4645 | int i; | |
4646 | { | |
4647 | return p[i]; | |
4648 | } | |
4649 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4650 | { | |
4651 | char *s; | |
4652 | va_list v; | |
4653 | va_start (v,p); | |
4654 | s = g (p, va_arg (v,int)); | |
4655 | va_end (v); | |
4656 | return s; | |
4657 | } | |
4658 | ||
4659 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4660 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4661 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4662 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4663 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4664 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4665 | that's true only with -std. */ |
c6b750e1 DJ |
4666 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4667 | ||
81ecdfbb RW |
4668 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4669 | inside strings and character constants. */ | |
4670 | #define FOO(x) 'x' | |
4671 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4672 | ||
c6b750e1 DJ |
4673 | int test (int i, double x); |
4674 | struct s1 {int (*f) (int a);}; | |
4675 | struct s2 {int (*f) (double a);}; | |
4676 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4677 | int argc; | |
4678 | char **argv; | |
4679 | int | |
4680 | main () | |
4681 | { | |
4682 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4683 | ; | |
4684 | return 0; | |
4685 | } | |
4686 | _ACEOF | |
81ecdfbb RW |
4687 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4688 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4689 | do |
4690 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4691 | if ac_fn_c_try_compile "$LINENO"; then : |
4692 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4693 | fi |
81ecdfbb RW |
4694 | rm -f core conftest.err conftest.$ac_objext |
4695 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4696 | done |
81ecdfbb | 4697 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4698 | CC=$ac_save_CC |
4699 | ||
4700 | fi | |
81ecdfbb RW |
4701 | # AC_CACHE_VAL |
4702 | case "x$ac_cv_prog_cc_c89" in | |
4703 | x) | |
4704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4705 | $as_echo "none needed" >&6; } ;; | |
4706 | xno) | |
4707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4708 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4709 | *) |
81ecdfbb RW |
4710 | CC="$CC $ac_cv_prog_cc_c89" |
4711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4712 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4713 | esac |
81ecdfbb | 4714 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4715 | |
c6b750e1 DJ |
4716 | fi |
4717 | ||
c6b750e1 DJ |
4718 | ac_ext=c |
4719 | ac_cpp='$CPP $CPPFLAGS' | |
4720 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4721 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4722 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4723 | |
81ecdfbb | 4724 | ac_ext=cpp |
18f6b6ee PB |
4725 | ac_cpp='$CXXCPP $CPPFLAGS' |
4726 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4727 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4728 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
4729 | if test -z "$CXX"; then |
4730 | if test -n "$CCC"; then | |
4731 | CXX=$CCC | |
4732 | else | |
4733 | if test -n "$ac_tool_prefix"; then | |
4734 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
4735 | do |
4736 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4737 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4739 | $as_echo_n "checking for $ac_word... " >&6; } | |
4740 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4741 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4742 | else |
4743 | if test -n "$CXX"; then | |
4744 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4745 | else | |
4746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4747 | for as_dir in $PATH | |
4748 | do | |
4749 | IFS=$as_save_IFS | |
4750 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4751 | for ac_exec_ext in '' $ac_executable_extensions; do |
4752 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4753 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
4755 | break 2 |
4756 | fi | |
4757 | done | |
81ecdfbb RW |
4758 | done |
4759 | IFS=$as_save_IFS | |
512b7dfb | 4760 | |
18f6b6ee PB |
4761 | fi |
4762 | fi | |
4763 | CXX=$ac_cv_prog_CXX | |
4764 | if test -n "$CXX"; then | |
81ecdfbb RW |
4765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4766 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 4767 | else |
81ecdfbb RW |
4768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4769 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4770 | fi |
4771 | ||
81ecdfbb | 4772 | |
18f6b6ee PB |
4773 | test -n "$CXX" && break |
4774 | done | |
4775 | fi | |
4776 | if test -z "$CXX"; then | |
4777 | ac_ct_CXX=$CXX | |
81ecdfbb | 4778 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
4779 | do |
4780 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4781 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4783 | $as_echo_n "checking for $ac_word... " >&6; } | |
4784 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4785 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4786 | else |
4787 | if test -n "$ac_ct_CXX"; then | |
4788 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4789 | else | |
4790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4791 | for as_dir in $PATH | |
4792 | do | |
4793 | IFS=$as_save_IFS | |
4794 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4795 | for ac_exec_ext in '' $ac_executable_extensions; do |
4796 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4797 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4798 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 4799 | break 2 |
512b7dfb | 4800 | fi |
18f6b6ee | 4801 | done |
81ecdfbb RW |
4802 | done |
4803 | IFS=$as_save_IFS | |
512b7dfb | 4804 | |
18f6b6ee PB |
4805 | fi |
4806 | fi | |
4807 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4808 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
4809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4810 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 4811 | else |
81ecdfbb RW |
4812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4813 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4814 | fi |
4815 | ||
81ecdfbb | 4816 | |
18f6b6ee PB |
4817 | test -n "$ac_ct_CXX" && break |
4818 | done | |
18f6b6ee | 4819 | |
81ecdfbb RW |
4820 | if test "x$ac_ct_CXX" = x; then |
4821 | CXX="g++" | |
4822 | else | |
4823 | case $cross_compiling:$ac_tool_warned in | |
4824 | yes:) | |
4825 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4826 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4827 | ac_tool_warned=yes ;; | |
4828 | esac | |
4829 | CXX=$ac_ct_CXX | |
4830 | fi | |
18f6b6ee PB |
4831 | fi |
4832 | ||
81ecdfbb RW |
4833 | fi |
4834 | fi | |
18f6b6ee | 4835 | # Provide some information about the compiler. |
81ecdfbb RW |
4836 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4837 | set X $ac_compile | |
4838 | ac_compiler=$2 | |
4839 | for ac_option in --version -v -V -qversion; do | |
4840 | { { ac_try="$ac_compiler $ac_option >&5" | |
4841 | case "(($ac_try" in | |
4842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4843 | *) ac_try_echo=$ac_try;; | |
4844 | esac | |
4845 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4846 | $as_echo "$ac_try_echo"; } >&5 | |
4847 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 4848 | ac_status=$? |
81ecdfbb RW |
4849 | if test -s conftest.err; then |
4850 | sed '10a\ | |
4851 | ... rest of stderr output deleted ... | |
4852 | 10q' conftest.err >conftest.er1 | |
4853 | cat conftest.er1 >&5 | |
4854 | rm -f conftest.er1 conftest.err | |
4855 | fi | |
4856 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4857 | test $ac_status = 0; } | |
4858 | done | |
18f6b6ee | 4859 | |
81ecdfbb RW |
4860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4861 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4862 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4863 | $as_echo_n "(cached) " >&6 | |
18f6b6ee | 4864 | else |
81ecdfbb | 4865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
4866 | /* end confdefs.h. */ |
4867 | ||
4868 | int | |
4869 | main () | |
4870 | { | |
4871 | #ifndef __GNUC__ | |
4872 | choke me | |
4873 | #endif | |
4874 | ||
4875 | ; | |
4876 | return 0; | |
4877 | } | |
4878 | _ACEOF | |
81ecdfbb | 4879 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4880 | ac_compiler_gnu=yes |
4881 | else | |
81ecdfbb | 4882 | ac_compiler_gnu=no |
18f6b6ee | 4883 | fi |
81ecdfbb | 4884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
4885 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4886 | ||
4887 | fi | |
81ecdfbb RW |
4888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4889 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4890 | if test $ac_compiler_gnu = yes; then | |
4891 | GXX=yes | |
4892 | else | |
4893 | GXX= | |
4894 | fi | |
18f6b6ee PB |
4895 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4896 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4898 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4899 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4900 | $as_echo_n "(cached) " >&6 | |
4901 | else | |
4902 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4903 | ac_cxx_werror_flag=yes | |
4904 | ac_cv_prog_cxx_g=no | |
4905 | CXXFLAGS="-g" | |
4906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
4907 | /* end confdefs.h. */ |
4908 | ||
4909 | int | |
4910 | main () | |
4911 | { | |
4912 | ||
4913 | ; | |
4914 | return 0; | |
4915 | } | |
4916 | _ACEOF | |
81ecdfbb | 4917 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4918 | ac_cv_prog_cxx_g=yes |
4919 | else | |
81ecdfbb RW |
4920 | CXXFLAGS="" |
4921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4922 | /* end confdefs.h. */ |
81ecdfbb | 4923 | |
18f6b6ee PB |
4924 | int |
4925 | main () | |
4926 | { | |
81ecdfbb | 4927 | |
18f6b6ee PB |
4928 | ; |
4929 | return 0; | |
4930 | } | |
4931 | _ACEOF | |
81ecdfbb | 4932 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 4933 | |
81ecdfbb RW |
4934 | else |
4935 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4936 | CXXFLAGS="-g" | |
4937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4938 | /* end confdefs.h. */ |
81ecdfbb | 4939 | |
18f6b6ee PB |
4940 | int |
4941 | main () | |
4942 | { | |
81ecdfbb | 4943 | |
18f6b6ee PB |
4944 | ; |
4945 | return 0; | |
4946 | } | |
4947 | _ACEOF | |
81ecdfbb RW |
4948 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4949 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 4950 | fi |
81ecdfbb RW |
4951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4952 | fi | |
4953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4954 | fi | |
4955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4956 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4957 | fi | |
4958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4959 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4960 | if test "$ac_test_CXXFLAGS" = set; then | |
4961 | CXXFLAGS=$ac_save_CXXFLAGS | |
4962 | elif test $ac_cv_prog_cxx_g = yes; then | |
4963 | if test "$GXX" = yes; then | |
4964 | CXXFLAGS="-g -O2" | |
4965 | else | |
4966 | CXXFLAGS="-g" | |
4967 | fi | |
4968 | else | |
4969 | if test "$GXX" = yes; then | |
4970 | CXXFLAGS="-O2" | |
4971 | else | |
4972 | CXXFLAGS= | |
4973 | fi | |
18f6b6ee | 4974 | fi |
18f6b6ee PB |
4975 | ac_ext=c |
4976 | ac_cpp='$CPP $CPPFLAGS' | |
4977 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4978 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4979 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4980 | ||
4981 | ||
4982 | # We must set the default linker to the linker used by gcc for the correct | |
4983 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
4984 | # set the LD default to the ld used by gcc. | |
4985 | if test -z "$LD"; then | |
4986 | if test "$GCC" = yes; then | |
4987 | case $build in | |
4988 | *-*-mingw*) | |
4989 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
4990 | *) | |
4991 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
4992 | esac | |
4993 | case $gcc_prog_ld in | |
4994 | # Accept absolute paths. | |
4995 | [\\/]* | [A-Za-z]:[\\/]*) | |
4996 | LD="$gcc_prog_ld" ;; | |
4997 | esac | |
4998 | fi | |
512b7dfb PB |
4999 | fi |
5000 | ||
b3676d82 EB |
5001 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5002 | have_static_libs=no | |
5003 | if test "$GCC" = yes; then | |
5004 | saved_LDFLAGS="$LDFLAGS" | |
5005 | ||
5006 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5008 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5009 | ac_ext=cpp | |
5010 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5011 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5012 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5013 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5014 | ||
5015 | ||
5016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5017 | /* end confdefs.h. */ | |
a882be68 EB |
5018 | |
5019 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5020 | #error -static-libstdc++ not implemented | |
5021 | #endif | |
b3676d82 EB |
5022 | int main() {} |
5023 | _ACEOF | |
5024 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5026 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5027 | else | |
5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5029 | $as_echo "no" >&6; } | |
5030 | fi | |
5031 | rm -f core conftest.err conftest.$ac_objext \ | |
5032 | conftest$ac_exeext conftest.$ac_ext | |
5033 | ac_ext=c | |
5034 | ac_cpp='$CPP $CPPFLAGS' | |
5035 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5036 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5037 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5038 | ||
5039 | ||
5040 | LDFLAGS="$saved_LDFLAGS" | |
5041 | fi | |
5042 | ||
512b7dfb PB |
5043 | |
5044 | ||
5045 | ||
c6b750e1 | 5046 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5047 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
5048 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
5049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5050 | $as_echo_n "checking for $ac_word... " >&6; } | |
5051 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
5052 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 5053 | else |
512b7dfb PB |
5054 | if test -n "$GNATBIND"; then |
5055 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 5056 | else |
c6b750e1 DJ |
5057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5058 | for as_dir in $PATH | |
5059 | do | |
5060 | IFS=$as_save_IFS | |
5061 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5062 | for ac_exec_ext in '' $ac_executable_extensions; do |
5063 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5064 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 5065 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5066 | break 2 |
5067 | fi | |
5068 | done | |
81ecdfbb RW |
5069 | done |
5070 | IFS=$as_save_IFS | |
c6b750e1 | 5071 | |
9e07f89d NN |
5072 | fi |
5073 | fi | |
512b7dfb PB |
5074 | GNATBIND=$ac_cv_prog_GNATBIND |
5075 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5077 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 5078 | else |
81ecdfbb RW |
5079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5080 | $as_echo "no" >&6; } | |
9e07f89d NN |
5081 | fi |
5082 | ||
81ecdfbb | 5083 | |
c6b750e1 | 5084 | fi |
512b7dfb PB |
5085 | if test -z "$ac_cv_prog_GNATBIND"; then |
5086 | ac_ct_GNATBIND=$GNATBIND | |
5087 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
5088 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
5089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5090 | $as_echo_n "checking for $ac_word... " >&6; } | |
5091 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
5092 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 5093 | else |
512b7dfb PB |
5094 | if test -n "$ac_ct_GNATBIND"; then |
5095 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 5096 | else |
c6b750e1 DJ |
5097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5098 | for as_dir in $PATH | |
5099 | do | |
5100 | IFS=$as_save_IFS | |
5101 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5102 | for ac_exec_ext in '' $ac_executable_extensions; do |
5103 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5104 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 5105 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5106 | break 2 |
5107 | fi | |
5108 | done | |
81ecdfbb RW |
5109 | done |
5110 | IFS=$as_save_IFS | |
c6b750e1 | 5111 | |
9e07f89d NN |
5112 | fi |
5113 | fi | |
512b7dfb PB |
5114 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5115 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
5116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5117 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 5118 | else |
81ecdfbb RW |
5119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5120 | $as_echo "no" >&6; } | |
9e07f89d NN |
5121 | fi |
5122 | ||
81ecdfbb RW |
5123 | if test "x$ac_ct_GNATBIND" = x; then |
5124 | GNATBIND="no" | |
5125 | else | |
5126 | case $cross_compiling:$ac_tool_warned in | |
5127 | yes:) | |
5128 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5129 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5130 | ac_tool_warned=yes ;; | |
5131 | esac | |
5132 | GNATBIND=$ac_ct_GNATBIND | |
5133 | fi | |
24ff9987 | 5134 | else |
512b7dfb | 5135 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
5136 | fi |
5137 | ||
7df2cd5d | 5138 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5139 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
5140 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
5141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5142 | $as_echo_n "checking for $ac_word... " >&6; } | |
5143 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
5144 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 5145 | else |
512b7dfb PB |
5146 | if test -n "$GNATMAKE"; then |
5147 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5148 | else |
5149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5150 | for as_dir in $PATH | |
5151 | do | |
5152 | IFS=$as_save_IFS | |
5153 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5154 | for ac_exec_ext in '' $ac_executable_extensions; do |
5155 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5156 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 5157 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5158 | break 2 |
5159 | fi | |
5160 | done | |
81ecdfbb RW |
5161 | done |
5162 | IFS=$as_save_IFS | |
7df2cd5d PB |
5163 | |
5164 | fi | |
5165 | fi | |
512b7dfb PB |
5166 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5167 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
5168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5169 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 5170 | else |
81ecdfbb RW |
5171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5172 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5173 | fi |
5174 | ||
81ecdfbb | 5175 | |
7df2cd5d | 5176 | fi |
512b7dfb PB |
5177 | if test -z "$ac_cv_prog_GNATMAKE"; then |
5178 | ac_ct_GNATMAKE=$GNATMAKE | |
5179 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
5180 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
5181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5182 | $as_echo_n "checking for $ac_word... " >&6; } | |
5183 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
5184 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 5185 | else |
512b7dfb PB |
5186 | if test -n "$ac_ct_GNATMAKE"; then |
5187 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5188 | else |
5189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5190 | for as_dir in $PATH | |
5191 | do | |
5192 | IFS=$as_save_IFS | |
5193 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5194 | for ac_exec_ext in '' $ac_executable_extensions; do |
5195 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5196 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 5197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5198 | break 2 |
5199 | fi | |
5200 | done | |
81ecdfbb RW |
5201 | done |
5202 | IFS=$as_save_IFS | |
7df2cd5d | 5203 | |
7df2cd5d PB |
5204 | fi |
5205 | fi | |
512b7dfb PB |
5206 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5207 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
5208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5209 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 5210 | else |
81ecdfbb RW |
5211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5212 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5213 | fi |
5214 | ||
81ecdfbb RW |
5215 | if test "x$ac_ct_GNATMAKE" = x; then |
5216 | GNATMAKE="no" | |
5217 | else | |
5218 | case $cross_compiling:$ac_tool_warned in | |
5219 | yes:) | |
5220 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5221 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5222 | ac_tool_warned=yes ;; | |
5223 | esac | |
5224 | GNATMAKE=$ac_ct_GNATMAKE | |
5225 | fi | |
7df2cd5d | 5226 | else |
512b7dfb | 5227 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
5228 | fi |
5229 | ||
81ecdfbb RW |
5230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5231 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
5232 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
5233 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
5234 | else |
5235 | cat >conftest.adb <<EOF | |
5236 | procedure conftest is begin null; end conftest; | |
5237 | EOF | |
5238 | acx_cv_cc_gcc_supports_ada=no | |
5239 | # There is a bug in old released versions of GCC which causes the | |
5240 | # driver to exit successfully when the appropriate language module | |
5241 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5242 | # Therefore we must check for the error message as well as an | |
5243 | # unsuccessful exit. | |
b8908782 DD |
5244 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5245 | # given a .adb file, but produce no object file. So we must check | |
5246 | # if an object file was really produced to guard against this. | |
9e07f89d | 5247 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 5248 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 5249 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
5250 | fi |
5251 | rm -f conftest.* | |
5252 | fi | |
81ecdfbb RW |
5253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5254 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 5255 | |
64b986c0 | 5256 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
5257 | have_gnat=yes |
5258 | else | |
5259 | have_gnat=no | |
5260 | fi | |
5261 | ||
81ecdfbb RW |
5262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5263 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5264 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5265 | $as_echo_n "(cached) " >&6 | |
b8908782 DD |
5266 | else |
5267 | echo abfoo >t1 | |
5268 | echo cdfoo >t2 | |
da17fe9d | 5269 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
4b1cb4fe DD |
5270 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5271 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5272 | : | |
5273 | else | |
5274 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5275 | fi | |
5276 | fi | |
b8908782 DD |
5277 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5278 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 5279 | : |
b8908782 DD |
5280 | else |
5281 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5282 | fi | |
5283 | fi | |
5284 | rm t1 t2 | |
5285 | ||
5286 | fi | |
81ecdfbb RW |
5287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5288 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
5289 | do_compare="$gcc_cv_prog_cmp_skip" |
5290 | ||
5291 | ||
9e07f89d | 5292 | |
ffdd6afc ILT |
5293 | # Check whether --enable-bootstrap was given. |
5294 | if test "${enable_bootstrap+set}" = set; then : | |
5295 | enableval=$enable_bootstrap; | |
5296 | else | |
5297 | enable_bootstrap=default | |
5298 | fi | |
5299 | ||
5300 | ||
5301 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5302 | if test -r $srcdir/gcc/configure; then | |
5303 | have_compiler=yes | |
5304 | else | |
5305 | have_compiler=no | |
5306 | fi | |
5307 | ||
5308 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5309 | *:*:*:no) ;; | |
5310 | ||
5311 | # Default behavior. Enable bootstrap if we have a compiler | |
5312 | # and we are in a native configuration. | |
5313 | yes:$build:$build:default) | |
5314 | enable_bootstrap=yes ;; | |
5315 | ||
5316 | *:*:*:default) | |
5317 | enable_bootstrap=no ;; | |
5318 | ||
5319 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5320 | yes:$build:$build:yes) | |
5321 | ;; | |
5322 | ||
5323 | # Other configurations, but we have a compiler. Assume the user knows | |
5324 | # what he's doing. | |
5325 | yes:*:*:yes) | |
5326 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5327 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5328 | ;; | |
5329 | ||
5330 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5331 | no:*:*:yes) | |
5332 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5333 | ||
5334 | # Fail if wrong command line | |
5335 | *) | |
5336 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5337 | ;; | |
5338 | esac | |
5339 | ||
ce6c656d L |
5340 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5341 | # C++98 compiler can still start the bootstrap. | |
5342 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
5343 | CXX="$CXX -std=gnu++98" | |
5344 | fi | |
5345 | ||
d5f2ee2e KG |
5346 | # Used for setting $lt_cv_objdir |
5347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5348 | $as_echo_n "checking for objdir... " >&6; } | |
5349 | if test "${lt_cv_objdir+set}" = set; then : | |
5350 | $as_echo_n "(cached) " >&6 | |
5351 | else | |
5352 | rm -f .libs 2>/dev/null | |
5353 | mkdir .libs 2>/dev/null | |
5354 | if test -d .libs; then | |
5355 | lt_cv_objdir=.libs | |
5356 | else | |
5357 | # MS-DOS does not allow filenames that begin with a dot. | |
5358 | lt_cv_objdir=_libs | |
5359 | fi | |
5360 | rmdir .libs 2>/dev/null | |
5361 | fi | |
5362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5363 | $as_echo "$lt_cv_objdir" >&6; } | |
5364 | objdir=$lt_cv_objdir | |
5365 | ||
5366 | ||
5367 | ||
5368 | ||
5369 | ||
5370 | cat >>confdefs.h <<_ACEOF | |
5371 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5372 | _ACEOF | |
5373 | ||
5374 | ||
5375 | ||
e8a5fa9c | 5376 | # Check for GMP, MPFR and MPC |
d9b76ff9 | 5377 | gmplibs="-lmpc -lmpfr -lgmp" |
4b1cb4fe | 5378 | gmpinc= |
4b900473 | 5379 | have_gmp=no |
e8a5fa9c RW |
5380 | |
5381 | # Specify a location for mpc | |
5382 | # check for this first so it ends up on the link line before mpfr. | |
5383 | ||
81ecdfbb RW |
5384 | # Check whether --with-mpc was given. |
5385 | if test "${with_mpc+set}" = set; then : | |
5386 | withval=$with_mpc; | |
5387 | fi | |
e8a5fa9c | 5388 | |
e8a5fa9c | 5389 | |
e552509b | 5390 | # Check whether --with-mpc-include was given. |
81ecdfbb RW |
5391 | if test "${with_mpc_include+set}" = set; then : |
5392 | withval=$with_mpc_include; | |
5393 | fi | |
e8a5fa9c | 5394 | |
e8a5fa9c | 5395 | |
e552509b | 5396 | # Check whether --with-mpc-lib was given. |
81ecdfbb RW |
5397 | if test "${with_mpc_lib+set}" = set; then : |
5398 | withval=$with_mpc_lib; | |
5399 | fi | |
e8a5fa9c | 5400 | |
e8a5fa9c RW |
5401 | |
5402 | if test "x$with_mpc" != x; then | |
d9b76ff9 KG |
5403 | gmplibs="-L$with_mpc/lib $gmplibs" |
5404 | gmpinc="-I$with_mpc/include $gmpinc" | |
e8a5fa9c RW |
5405 | fi |
5406 | if test "x$with_mpc_include" != x; then | |
d9b76ff9 | 5407 | gmpinc="-I$with_mpc_include $gmpinc" |
e8a5fa9c RW |
5408 | fi |
5409 | if test "x$with_mpc_lib" != x; then | |
d9b76ff9 | 5410 | gmplibs="-L$with_mpc_lib $gmplibs" |
e8a5fa9c RW |
5411 | fi |
5412 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
d5f2ee2e | 5413 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
d9b76ff9 | 5414 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
e8a5fa9c RW |
5415 | # Do not test the mpc version. Assume that it is sufficient, since |
5416 | # it is in the source tree, and the library has not been built yet | |
5417 | # but it would be included on the link line in the version check below | |
5418 | # hence making the test fail. | |
d9b76ff9 | 5419 | have_gmp=yes |
e8a5fa9c | 5420 | fi |
4b900473 | 5421 | |
11b04d1f DD |
5422 | # Specify a location for mpfr |
5423 | # check for this first so it ends up on the link line before gmp. | |
c6b750e1 | 5424 | |
81ecdfbb RW |
5425 | # Check whether --with-mpfr-dir was given. |
5426 | if test "${with_mpfr_dir+set}" = set; then : | |
5427 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5428 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5429 | fi | |
5430 | ||
11b04d1f DD |
5431 | |
5432 | ||
81ecdfbb RW |
5433 | # Check whether --with-mpfr was given. |
5434 | if test "${with_mpfr+set}" = set; then : | |
5435 | withval=$with_mpfr; | |
5436 | fi | |
c6b750e1 | 5437 | |
11b04d1f | 5438 | |
e552509b | 5439 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
5440 | if test "${with_mpfr_include+set}" = set; then : |
5441 | withval=$with_mpfr_include; | |
5442 | fi | |
c6b750e1 | 5443 | |
8a0d8a5c | 5444 | |
e552509b | 5445 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
5446 | if test "${with_mpfr_lib+set}" = set; then : |
5447 | withval=$with_mpfr_lib; | |
5448 | fi | |
8a0d8a5c | 5449 | |
11b04d1f DD |
5450 | |
5451 | if test "x$with_mpfr" != x; then | |
5452 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 5453 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 5454 | fi |
8a0d8a5c | 5455 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 5456 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
5457 | fi |
5458 | if test "x$with_mpfr_lib" != x; then | |
5459 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5460 | fi | |
4b900473 | 5461 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
58b1dd21 | 5462 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
05a13254 NC |
5463 | if ! test -d ${srcdir}/mpfr/src; then |
5464 | as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 | |
58b1dd21 | 5465 | fi |
05a13254 NC |
5466 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
5467 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5468 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
4b900473 PB |
5469 | # Do not test the mpfr version. Assume that it is sufficient, since |
5470 | # it is in the source tree, and the library has not been built yet | |
5471 | # but it would be included on the link line in the version check below | |
5472 | # hence making the test fail. | |
5473 | have_gmp=yes | |
5474 | fi | |
11b04d1f | 5475 | |
4b1cb4fe | 5476 | # Specify a location for gmp |
c6b750e1 | 5477 | |
81ecdfbb RW |
5478 | # Check whether --with-gmp-dir was given. |
5479 | if test "${with_gmp_dir+set}" = set; then : | |
5480 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5481 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5482 | fi | |
5483 | ||
4b1cb4fe DD |
5484 | |
5485 | ||
81ecdfbb RW |
5486 | # Check whether --with-gmp was given. |
5487 | if test "${with_gmp+set}" = set; then : | |
5488 | withval=$with_gmp; | |
5489 | fi | |
c6b750e1 | 5490 | |
4b1cb4fe | 5491 | |
e552509b | 5492 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
5493 | if test "${with_gmp_include+set}" = set; then : |
5494 | withval=$with_gmp_include; | |
5495 | fi | |
c6b750e1 | 5496 | |
8a0d8a5c | 5497 | |
e552509b | 5498 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
5499 | if test "${with_gmp_lib+set}" = set; then : |
5500 | withval=$with_gmp_lib; | |
5501 | fi | |
8a0d8a5c PB |
5502 | |
5503 | ||
4b1cb4fe | 5504 | |
11b04d1f DD |
5505 | if test "x$with_gmp" != x; then |
5506 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5507 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 5508 | fi |
8a0d8a5c PB |
5509 | if test "x$with_gmp_include" != x; then |
5510 | gmpinc="-I$with_gmp_include $gmpinc" | |
5511 | fi | |
5512 | if test "x$with_gmp_lib" != x; then | |
5513 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5514 | fi | |
4b900473 | 5515 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 5516 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5517 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 5518 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 5519 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
7ec59b9e | 5520 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
4b900473 PB |
5521 | # Do not test the gmp version. Assume that it is sufficient, since |
5522 | # it is in the source tree, and the library has not been built yet | |
5523 | # but it would be included on the link line in the version check below | |
5524 | # hence making the test fail. | |
5525 | have_gmp=yes | |
5526 | fi | |
4b1cb4fe | 5527 | |
ceb92e78 | 5528 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
5529 | have_gmp=yes |
5530 | saved_CFLAGS="$CFLAGS" | |
5531 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
5532 | # Check for the recommended and required versions of GMP. |
5533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5534 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
a009f2e7 RW |
5535 | |
5536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a6b5846e KG |
5537 | /* end confdefs.h. */ |
5538 | #include "gmp.h" | |
5539 | int | |
5540 | main () | |
5541 | { | |
5542 | ||
5543 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5544 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8e71395b | 5545 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
a6b5846e KG |
5546 | choke me |
5547 | #endif | |
5548 | ||
5549 | ; | |
5550 | return 0; | |
5551 | } | |
5552 | _ACEOF | |
5553 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 5554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5555 | /* end confdefs.h. */ |
a6b5846e | 5556 | #include <gmp.h> |
c6b750e1 DJ |
5557 | int |
5558 | main () | |
5559 | { | |
4b1cb4fe | 5560 | |
a6b5846e KG |
5561 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5562 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5563 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
5564 | choke me |
5565 | #endif | |
c6b750e1 DJ |
5566 | |
5567 | ; | |
5568 | return 0; | |
5569 | } | |
5570 | _ACEOF | |
81ecdfbb RW |
5571 | if ac_fn_c_try_compile "$LINENO"; then : |
5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5573 | $as_echo "yes" >&6; } | |
a6b5846e KG |
5574 | else |
5575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5576 | $as_echo "buggy but acceptable" >&6; } | |
5577 | fi | |
5578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 5579 | else |
81ecdfbb RW |
5580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5581 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5582 | fi |
81ecdfbb | 5583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 5584 | |
e8a5fa9c | 5585 | # If we have GMP, check the MPFR version. |
4b900473 | 5586 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
5587 | # Check for the recommended and required versions of MPFR. |
5588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5589 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 5590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5591 | /* end confdefs.h. */ |
9b134994 | 5592 | #include <gmp.h> |
4b900473 | 5593 | #include <mpfr.h> |
c6b750e1 DJ |
5594 | int |
5595 | main () | |
5596 | { | |
9b134994 | 5597 | |
7ec59b9e | 5598 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
4b900473 PB |
5599 | choke me |
5600 | #endif | |
c6b750e1 DJ |
5601 | |
5602 | ; | |
5603 | return 0; | |
5604 | } | |
5605 | _ACEOF | |
81ecdfbb RW |
5606 | if ac_fn_c_try_compile "$LINENO"; then : |
5607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 5608 | /* end confdefs.h. */ |
4b1cb4fe | 5609 | #include <gmp.h> |
4b900473 | 5610 | #include <mpfr.h> |
c6b750e1 DJ |
5611 | int |
5612 | main () | |
5613 | { | |
9dbaa842 | 5614 | |
a6b5846e | 5615 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
4b900473 PB |
5616 | choke me |
5617 | #endif | |
e8a5fa9c RW |
5618 | |
5619 | ; | |
5620 | return 0; | |
5621 | } | |
5622 | _ACEOF | |
81ecdfbb RW |
5623 | if ac_fn_c_try_compile "$LINENO"; then : |
5624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5625 | $as_echo "yes" >&6; } | |
e8a5fa9c | 5626 | else |
81ecdfbb RW |
5627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5628 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 5629 | fi |
81ecdfbb | 5630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 5631 | else |
81ecdfbb RW |
5632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5633 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 5634 | fi |
81ecdfbb | 5635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5636 | fi |
5637 | ||
5638 | # Check for the MPC header version. | |
d9b76ff9 | 5639 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 5640 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
5641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5642 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
5644 | /* end confdefs.h. */ |
5645 | #include <mpc.h> | |
5646 | int | |
5647 | main () | |
5648 | { | |
5649 | ||
a6b5846e KG |
5650 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5651 | choke me | |
5652 | #endif | |
5653 | ||
5654 | ; | |
5655 | return 0; | |
5656 | } | |
5657 | _ACEOF | |
5658 | if ac_fn_c_try_compile "$LINENO"; then : | |
5659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5660 | /* end confdefs.h. */ | |
5661 | #include <mpc.h> | |
5662 | int | |
5663 | main () | |
5664 | { | |
5665 | ||
5666 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
5667 | choke me |
5668 | #endif | |
5669 | ||
5670 | ; | |
5671 | return 0; | |
5672 | } | |
5673 | _ACEOF | |
81ecdfbb RW |
5674 | if ac_fn_c_try_compile "$LINENO"; then : |
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 5676 | $as_echo "yes" >&6; } |
a6b5846e KG |
5677 | else |
5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5679 | $as_echo "buggy but acceptable" >&6; } | |
5680 | fi | |
5681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 5682 | else |
81ecdfbb | 5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 5684 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 5685 | fi |
81ecdfbb | 5686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5687 | fi |
5688 | ||
5689 | # Now check the MPFR library. | |
5690 | if test x"$have_gmp" = xyes; then | |
5691 | saved_LIBS="$LIBS" | |
5692 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5694 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 5695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 5696 | /* end confdefs.h. */ |
d9b76ff9 | 5697 | #include <mpc.h> |
e8a5fa9c RW |
5698 | int |
5699 | main () | |
5700 | { | |
5701 | ||
5702 | mpfr_t n; | |
5703 | mpfr_t x; | |
d9b76ff9 | 5704 | mpc_t c; |
e8a5fa9c RW |
5705 | int t; |
5706 | mpfr_init (n); | |
5707 | mpfr_init (x); | |
5708 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5709 | mpfr_erfc (n, x, GMP_RNDN); | |
5710 | mpfr_subnormalize (x, t, GMP_RNDN); | |
d9b76ff9 KG |
5711 | mpfr_clear(n); |
5712 | mpfr_clear(x); | |
5713 | mpc_init2 (c, 53); | |
5714 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5715 | mpc_cosh (c, c, MPC_RNDNN); | |
5716 | mpc_pow (c, c, c, MPC_RNDNN); | |
5717 | mpc_acosh (c, c, MPC_RNDNN); | |
5718 | mpc_clear (c); | |
c6b750e1 DJ |
5719 | |
5720 | ; | |
5721 | return 0; | |
5722 | } | |
5723 | _ACEOF | |
81ecdfbb RW |
5724 | if ac_fn_c_try_link "$LINENO"; then : |
5725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5726 | $as_echo "yes" >&6; } | |
c6b750e1 | 5727 | else |
81ecdfbb RW |
5728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5729 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5730 | fi |
81ecdfbb RW |
5731 | rm -f core conftest.err conftest.$ac_objext \ |
5732 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
5733 | LIBS="$saved_LIBS" |
5734 | fi | |
5735 | ||
4b900473 | 5736 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 5737 | |
a6b5846e KG |
5738 | # The library versions listed in the error message below should match |
5739 | # the HARD-minimums enforced above. | |
4b900473 | 5740 | if test x$have_gmp != xyes; then |
7ec59b9e | 5741 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
d9b76ff9 KG |
5742 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5743 | their locations. Source code for these libraries can be found at | |
5744 | their respective hosting sites as well as at | |
5745 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5746 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5747 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5748 | make sure that you have installed both the libraries and the header | |
5749 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 5750 | fi |
9dbaa842 DD |
5751 | fi |
5752 | ||
e8a5fa9c RW |
5753 | # Flags needed for both GMP, MPFR and/or MPC. |
5754 | ||
5755 | ||
5756 | ||
4b1cb4fe DD |
5757 | |
5758 | ||
5759 | ||
7ec59b9e | 5760 | |
b3676d82 | 5761 | # Libraries to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5762 | |
b3676d82 EB |
5763 | # Check whether --with-stage1-libs was given. |
5764 | if test "${with_stage1_libs+set}" = set; then : | |
5765 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5766 | stage1_libs= | |
e8a5fa9c | 5767 | else |
b3676d82 | 5768 | stage1_libs=$withval |
e8a5fa9c RW |
5769 | fi |
5770 | else | |
68996839 | 5771 | stage1_libs= |
81ecdfbb RW |
5772 | fi |
5773 | ||
e8a5fa9c RW |
5774 | |
5775 | ||
b3676d82 | 5776 | # Linker flags to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5777 | |
b3676d82 EB |
5778 | # Check whether --with-stage1-ldflags was given. |
5779 | if test "${with_stage1_ldflags+set}" = set; then : | |
5780 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5781 | stage1_ldflags= | |
e8a5fa9c | 5782 | else |
b3676d82 | 5783 | stage1_ldflags=$withval |
e8a5fa9c RW |
5784 | fi |
5785 | else | |
b3676d82 EB |
5786 | stage1_ldflags= |
5787 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5788 | # if supported. But if the user explicitly specified the libraries to use, | |
5789 | # trust that they are doing what they want. | |
5790 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5791 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5792 | fi | |
81ecdfbb RW |
5793 | fi |
5794 | ||
e8a5fa9c RW |
5795 | |
5796 | ||
68996839 | 5797 | # Libraries to use for stage2 and later builds. |
e8a5fa9c | 5798 | |
81ecdfbb RW |
5799 | # Check whether --with-boot-libs was given. |
5800 | if test "${with_boot_libs+set}" = set; then : | |
5801 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5802 | poststage1_libs= |
5803 | else | |
5804 | poststage1_libs=$withval | |
5805 | fi | |
5806 | else | |
68996839 | 5807 | poststage1_libs= |
81ecdfbb RW |
5808 | fi |
5809 | ||
e8a5fa9c RW |
5810 | |
5811 | ||
143754cd NC |
5812 | # Linker flags to use for stage2 and later builds. |
5813 | ||
5814 | # Check whether --with-boot-ldflags was given. | |
5815 | if test "${with_boot_ldflags+set}" = set; then : | |
5816 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5817 | poststage1_ldflags= | |
5818 | else | |
5819 | poststage1_ldflags=$withval | |
5820 | fi | |
5821 | else | |
5822 | poststage1_ldflags= | |
4f11b223 ILT |
5823 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5824 | # statically. But if the user explicitly specified the libraries to | |
5825 | # use, trust that they are doing what they want. | |
5826 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
5827 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5828 | fi | |
5829 | fi | |
5830 | ||
5831 | ||
5832 | ||
4849dfd8 | 5833 | # GCC GRAPHITE dependency isl. |
1b6c0831 | 5834 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
e28c595f JM |
5835 | |
5836 | ||
7ec59b9e L |
5837 | # Check whether --with-isl was given. |
5838 | if test "${with_isl+set}" = set; then : | |
5839 | withval=$with_isl; | |
81ecdfbb | 5840 | fi |
e28c595f | 5841 | |
e28c595f | 5842 | |
1b6c0831 | 5843 | # Treat --without-isl as a request to disable |
8e71395b | 5844 | # GRAPHITE support and skip all following checks. |
1b6c0831 | 5845 | if test "x$with_isl" != "xno"; then |
4849dfd8 | 5846 | # Check for isl |
8e71395b L |
5847 | |
5848 | ||
7ec59b9e L |
5849 | # Check whether --with-isl-include was given. |
5850 | if test "${with_isl_include+set}" = set; then : | |
5851 | withval=$with_isl_include; | |
81ecdfbb RW |
5852 | fi |
5853 | ||
e28c595f | 5854 | |
7ec59b9e L |
5855 | # Check whether --with-isl-lib was given. |
5856 | if test "${with_isl_lib+set}" = set; then : | |
5857 | withval=$with_isl_lib; | |
81ecdfbb | 5858 | fi |
e28c595f | 5859 | |
e28c595f | 5860 | |
7ec59b9e L |
5861 | # Check whether --enable-isl-version-check was given. |
5862 | if test "${enable_isl_version_check+set}" = set; then : | |
5863 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5864 | else | |
5865 | ENABLE_ISL_CHECK=yes | |
b123da99 SP |
5866 | fi |
5867 | ||
5868 | ||
7ec59b9e L |
5869 | # Initialize isllibs and islinc. |
5870 | case $with_isl in | |
5871 | no) | |
5872 | isllibs= | |
5873 | islinc= | |
5874 | ;; | |
5875 | "" | yes) | |
5876 | ;; | |
5877 | *) | |
5878 | isllibs="-L$with_isl/lib" | |
5879 | islinc="-I$with_isl/include" | |
5880 | ;; | |
5881 | esac | |
5882 | if test "x${with_isl_include}" != x ; then | |
5883 | islinc="-I$with_isl_include" | |
5884 | fi | |
5885 | if test "x${with_isl_lib}" != x; then | |
5886 | isllibs="-L$with_isl_lib" | |
5887 | fi | |
5888 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5889 | && test -d ${srcdir}/isl; then | |
5890 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5891 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5892 | ENABLE_ISL_CHECK=no | |
4849dfd8 NC |
5893 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
5894 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
7ec59b9e | 5895 | fi |
b123da99 | 5896 | |
1b6c0831 | 5897 | isllibs="${isllibs} -lisl" |
b123da99 | 5898 | |
e28c595f | 5899 | |
b3fc79f8 JBG |
5900 | |
5901 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
5902 | _isl_saved_CFLAGS=$CFLAGS | |
5903 | _isl_saved_LDFLAGS=$LDFLAGS | |
5904 | _isl_saved_LIBS=$LIBS | |
5905 | ||
5906 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
4849dfd8 NC |
5907 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
5908 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
b3fc79f8 | 5909 | |
52cf9762 NC |
5910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5 |
5911 | $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; } | |
1b6c0831 | 5912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3fc79f8 | 5913 | /* end confdefs.h. */ |
4849dfd8 | 5914 | #include <isl/ctx.h> |
b3fc79f8 JBG |
5915 | int |
5916 | main () | |
5917 | { | |
4849dfd8 | 5918 | isl_ctx_get_max_operations (isl_ctx_alloc ()); |
b3fc79f8 JBG |
5919 | ; |
5920 | return 0; | |
5921 | } | |
5922 | _ACEOF | |
1b6c0831 | 5923 | if ac_fn_c_try_link "$LINENO"; then : |
b3fc79f8 JBG |
5924 | gcc_cv_isl=yes |
5925 | else | |
5926 | gcc_cv_isl=no | |
5927 | fi | |
1b6c0831 L |
5928 | rm -f core conftest.err conftest.$ac_objext \ |
5929 | conftest$ac_exeext conftest.$ac_ext | |
b3fc79f8 JBG |
5930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
5931 | $as_echo "$gcc_cv_isl" >&6; } | |
5932 | ||
4849dfd8 | 5933 | if test "${gcc_cv_isl}" = no ; then |
52cf9762 NC |
5934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5 |
5935 | $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; } | |
5936 | fi | |
5937 | ||
5938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5 | |
5939 | $as_echo_n "checking for isl 0.16 or 0.15... " >&6; } | |
5940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5941 | /* end confdefs.h. */ | |
5942 | #include <isl/schedule.h> | |
5943 | int | |
5944 | main () | |
5945 | { | |
5946 | isl_options_set_schedule_serialize_sccs (NULL, 0); | |
5947 | ; | |
5948 | return 0; | |
5949 | } | |
5950 | _ACEOF | |
5951 | if ac_fn_c_try_link "$LINENO"; then : | |
5952 | ac_has_isl_options_set_schedule_serialize_sccs=yes | |
5953 | else | |
5954 | ac_has_isl_options_set_schedule_serialize_sccs=no | |
5955 | fi | |
5956 | rm -f core conftest.err conftest.$ac_objext \ | |
5957 | conftest$ac_exeext conftest.$ac_ext | |
5958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5 | |
5959 | $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; } | |
5960 | ||
5961 | if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then | |
5962 | islver="0.15" | |
5963 | ||
4849dfd8 NC |
5964 | fi |
5965 | ||
b3fc79f8 JBG |
5966 | CFLAGS=$_isl_saved_CFLAGS |
5967 | LDFLAGS=$_isl_saved_LDFLAGS | |
5968 | LIBS=$_isl_saved_LIBS | |
5969 | fi | |
5970 | ||
5971 | ||
e28c595f | 5972 | |
e28c595f | 5973 | |
7ec59b9e L |
5974 | |
5975 | ||
7ec59b9e L |
5976 | if test "x${with_isl}" = xno; then |
5977 | graphite_requested=no | |
5978 | elif test "x${with_isl}" != x \ | |
5979 | || test "x${with_isl_include}" != x \ | |
5980 | || test "x${with_isl_lib}" != x ; then | |
5981 | graphite_requested=yes | |
5982 | else | |
5983 | graphite_requested=no | |
b123da99 | 5984 | fi |
e28c595f | 5985 | |
e28c595f JM |
5986 | |
5987 | ||
7ec59b9e L |
5988 | if test "${gcc_cv_isl}" = no ; then |
5989 | isllibs= | |
5990 | islinc= | |
5991 | fi | |
e28c595f | 5992 | |
7ec59b9e L |
5993 | if test "${graphite_requested}" = yes \ |
5994 | && test "x${isllibs}" = x \ | |
5995 | && test "x${islinc}" = x ; then | |
e28c595f | 5996 | |
4849dfd8 | 5997 | as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
7ec59b9e | 5998 | fi |
e552509b | 5999 | |
e28c595f | 6000 | |
e552509b ILT |
6001 | fi |
6002 | ||
4849dfd8 | 6003 | # If the isl check failed, disable builds of in-tree variant of isl |
8e71395b | 6004 | if test "x$with_isl" = xno || |
8e71395b | 6005 | test "x$gcc_cv_isl" = xno; then |
1b6c0831 | 6006 | noconfigdirs="$noconfigdirs isl" |
8e71395b | 6007 | islinc= |
7ec59b9e L |
6008 | fi |
6009 | ||
8e71395b L |
6010 | |
6011 | ||
6012 | ||
700d40ca ILT |
6013 | # Check for LTO support. |
6014 | # Check whether --enable-lto was given. | |
6015 | if test "${enable_lto+set}" = set; then : | |
6016 | enableval=$enable_lto; enable_lto=$enableval | |
6017 | else | |
6018 | enable_lto=yes; default_enable_lto=yes | |
6019 | fi | |
6020 | ||
6021 | ||
143754cd | 6022 | |
e49e5c92 DK |
6023 | |
6024 | ||
6025 | target_elf=no | |
6026 | case $target in | |
6027 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
090bc50f | 6028 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
1b6c0831 L |
6029 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
6030 | nvptx-*-none) | |
e49e5c92 DK |
6031 | target_elf=no |
6032 | ;; | |
6033 | *) | |
6034 | target_elf=yes | |
6035 | ;; | |
6036 | esac | |
6037 | ||
6038 | if test $target_elf = yes; then : | |
74cea91b DK |
6039 | # ELF platforms build the lto-plugin always. |
6040 | build_lto_plugin=yes | |
e49e5c92 | 6041 | |
e49e5c92 DK |
6042 | else |
6043 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 6044 | case $target in |
52cf9762 | 6045 | *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;; |
74cea91b | 6046 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
6047 | *) enable_lto=no ;; |
6048 | esac | |
e49e5c92 | 6049 | else |
29821356 RW |
6050 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6051 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
6052 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6053 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6054 | # -flto it won't be needed until after installation anyway. | |
6055 | case $target in | |
52cf9762 | 6056 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
e49e5c92 DK |
6057 | *) if test x"$enable_lto" = x"yes"; then |
6058 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6059 | fi | |
6060 | ;; | |
6061 | esac | |
6062 | fi | |
a8eb3f0a | 6063 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 6064 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 6065 | case $target in |
74cea91b | 6066 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
6067 | *) ;; |
6068 | esac | |
74cea91b | 6069 | |
e49e5c92 DK |
6070 | fi |
6071 | ||
700d40ca | 6072 | |
1b6c0831 L |
6073 | # Check whether --enable-linker-plugin-configure-flags was given. |
6074 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6075 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6076 | else | |
6077 | extra_linker_plugin_configure_flags= | |
6078 | fi | |
6079 | ||
6080 | ||
6081 | # Check whether --enable-linker-plugin-flags was given. | |
6082 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6083 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6084 | else | |
6085 | extra_linker_plugin_flags= | |
6086 | fi | |
6087 | ||
6088 | ||
6089 | ||
e28c595f | 6090 | |
7ec59b9e | 6091 | # By default, C and C++ are the only stage 1 languages. |
9b134994 | 6092 | stage1_languages=,c, |
1d39f329 | 6093 | |
e8a5fa9c | 6094 | # Target libraries that we bootstrap. |
2aa2364a | 6095 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 6096 | |
9e07f89d NN |
6097 | # Figure out what language subdirectories are present. |
6098 | # Look if the user specified --enable-languages="..."; if not, use | |
6099 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6100 | # go away some day. | |
6101 | # NB: embedded tabs in this IF block -- do not untabify | |
6102 | if test -d ${srcdir}/gcc; then | |
6103 | if test x"${enable_languages+set}" != xset; then | |
6104 | if test x"${LANGUAGES+set}" = xset; then | |
6105 | enable_languages="${LANGUAGES}" | |
136bb21f | 6106 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
9e07f89d NN |
6107 | else |
6108 | enable_languages=all | |
6109 | fi | |
6110 | else | |
6111 | if test x"${enable_languages}" = x || | |
6112 | test x"${enable_languages}" = xyes; | |
6113 | then | |
136bb21f | 6114 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
9e07f89d NN |
6115 | exit 1 |
6116 | fi | |
6117 | fi | |
6118 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6119 | ||
096f7d00 DE |
6120 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6121 | # and make the substitution. | |
6122 | case ,${enable_languages}, in | |
6123 | *,f95,*) | |
136bb21f | 6124 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
096f7d00 DE |
6125 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6126 | ;; | |
6127 | esac | |
6128 | ||
7ec59b9e L |
6129 | # If bootstrapping, C++ must be enabled. |
6130 | case ",$enable_languages,:$enable_bootstrap" in | |
6131 | *,c++,*:*) ;; | |
6132 | *:yes) | |
ffdd6afc ILT |
6133 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6134 | enable_languages="${enable_languages},c++" | |
6135 | else | |
7ec59b9e | 6136 | as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5 |
ffdd6afc ILT |
6137 | fi |
6138 | ;; | |
6139 | esac | |
6140 | ||
9e07f89d NN |
6141 | # First scan to see if an enabled language requires some other language. |
6142 | # We assume that a given config-lang.in will list all the language | |
6143 | # front ends it requires, even if some are required indirectly. | |
6144 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6145 | case ${lang_frag} in | |
6146 | ..) ;; | |
6147 | # The odd quoting in the next line works around | |
6148 | # an apparent bug in bash 1.12 on linux. | |
6149 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6150 | *) | |
e552509b ILT |
6151 | # From the config-lang.in, get $language, $lang_requires, and |
6152 | # $lang_requires_boot_languages. | |
9e07f89d NN |
6153 | language= |
6154 | lang_requires= | |
e552509b | 6155 | lang_requires_boot_languages= |
9e07f89d | 6156 | . ${lang_frag} |
e552509b | 6157 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
6158 | case ,${enable_languages}, in |
6159 | *,$other,*) ;; | |
6160 | *,all,*) ;; | |
6161 | *,$language,*) | |
6162 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6163 | enable_languages="${enable_languages},${other}" | |
6164 | ;; | |
6165 | esac | |
6166 | done | |
e552509b ILT |
6167 | for other in ${lang_requires_boot_languages} ; do |
6168 | if test "$other" != "c"; then | |
6169 | case ,${enable_stage1_languages}, in | |
6170 | *,$other,*) ;; | |
6171 | *,all,*) ;; | |
6172 | *) | |
6173 | case ,${enable_languages}, in | |
6174 | *,$language,*) | |
6175 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6176 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6177 | ;; | |
6178 | esac | |
6179 | ;; | |
6180 | esac | |
6181 | fi | |
6182 | done | |
9e07f89d NN |
6183 | ;; |
6184 | esac | |
6185 | done | |
6186 | ||
9b134994 | 6187 | new_enable_languages=,c, |
700d40ca ILT |
6188 | |
6189 | # If LTO is enabled, add the LTO front end. | |
700d40ca | 6190 | if test "$enable_lto" = "yes" ; then |
6811fb56 RW |
6191 | case ,${enable_languages}, in |
6192 | *,lto,*) ;; | |
6193 | *) enable_languages="${enable_languages},lto" ;; | |
6194 | esac | |
a8eb3f0a | 6195 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca | 6196 | configdirs="$configdirs lto-plugin" |
700d40ca ILT |
6197 | fi |
6198 | fi | |
6199 | ||
1b6c0831 L |
6200 | # If we're building an offloading compiler, add the LTO front end. |
6201 | if test x"$enable_as_accelerator_for" != x ; then | |
6202 | case ,${enable_languages}, in | |
6203 | *,lto,*) ;; | |
6204 | *) enable_languages="${enable_languages},lto" ;; | |
6205 | esac | |
6206 | fi | |
700d40ca | 6207 | |
9e07f89d | 6208 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 6209 | potential_languages=,c, |
9e07f89d | 6210 | |
9e1a94f4 ILT |
6211 | enabled_target_libs= |
6212 | disabled_target_libs= | |
6213 | ||
9e07f89d NN |
6214 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6215 | case ${lang_frag} in | |
6216 | ..) ;; | |
6217 | # The odd quoting in the next line works around | |
6218 | # an apparent bug in bash 1.12 on linux. | |
6219 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6220 | *) | |
c6b750e1 | 6221 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 6222 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
6223 | language= |
6224 | target_libs= | |
6225 | lang_dirs= | |
64ce424c | 6226 | subdir_requires= |
9b134994 PB |
6227 | boot_language=no |
6228 | build_by_default=yes | |
9e07f89d | 6229 | . ${lang_frag} |
9b134994 PB |
6230 | if test x${language} = x; then |
6231 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6232 | exit 1 | |
6233 | fi | |
6234 | ||
ffdd6afc | 6235 | if test "$language" = "c++"; then |
7ec59b9e | 6236 | boot_language=yes |
e8a5fa9c RW |
6237 | fi |
6238 | ||
8e71395b | 6239 | add_this_lang=no |
9b134994 PB |
6240 | case ,${enable_languages}, in |
6241 | *,${language},*) | |
7ec59b9e L |
6242 | # Language was explicitly selected; include it |
6243 | # unless it is C, which is enabled by default. | |
6244 | if test "$language" != "c"; then | |
6245 | add_this_lang=yes | |
6246 | fi | |
9e07f89d | 6247 | ;; |
9b134994 PB |
6248 | *,all,*) |
6249 | # 'all' was selected, select it if it is a default language | |
8e71395b L |
6250 | if test "$language" != "c"; then |
6251 | add_this_lang=${build_by_default} | |
6252 | fi | |
9e07f89d NN |
6253 | ;; |
6254 | esac | |
4b1cb4fe | 6255 | |
64ce424c | 6256 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 6257 | for i in $subdir_requires; do |
3d3adb43 | 6258 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
64ce424c PB |
6259 | case ,${enable_languages}, in |
6260 | *,${language},*) | |
6261 | # Specifically requested language; tell them. | |
81ecdfbb | 6262 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c PB |
6263 | ;; |
6264 | *) | |
6265 | # Silently disable. | |
9b134994 | 6266 | add_this_lang=unsupported |
64ce424c PB |
6267 | ;; |
6268 | esac | |
6269 | done | |
6270 | ||
9b134994 PB |
6271 | # Disable Ada if no preexisting GNAT is available. |
6272 | case ,${enable_languages},:${language}:${have_gnat} in | |
6273 | *,${language},*:ada:no) | |
6274 | # Specifically requested language; tell them. | |
81ecdfbb | 6275 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
9b134994 PB |
6276 | ;; |
6277 | *:ada:no) | |
6278 | # Silently disable. | |
6279 | add_this_lang=unsupported | |
6280 | ;; | |
6281 | esac | |
6282 | ||
59f7ec45 HPN |
6283 | # Disable a language that is unsupported by the target. |
6284 | case " $unsupported_languages " in | |
6285 | *" $language "*) | |
9b134994 | 6286 | add_this_lang=unsupported |
59f7ec45 HPN |
6287 | ;; |
6288 | esac | |
6289 | ||
4b1cb4fe | 6290 | case $add_this_lang in |
9b134994 | 6291 | unsupported) |
9e07f89d | 6292 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
6293 | disabled_target_libs="$disabled_target_libs $target_libs" |
6294 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 6295 | ;; |
9b134994 PB |
6296 | no) |
6297 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
6298 | disabled_target_libs="$disabled_target_libs $target_libs" |
6299 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
6300 | potential_languages="${potential_languages}${language}," |
6301 | ;; | |
6302 | yes) | |
6303 | new_enable_languages="${new_enable_languages}${language}," | |
6304 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 6305 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 6306 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
6307 | case "${boot_language}:,$enable_stage1_languages," in |
6308 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 6309 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
6310 | case ",$stage1_languages," in |
6311 | *,$language,* | ,yes, | ,all,) ;; | |
6312 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6313 | esac | |
e8a5fa9c RW |
6314 | # We need to bootstrap any supporting libraries. |
6315 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
1d39f329 NN |
6316 | ;; |
6317 | esac | |
6318 | ;; | |
9e07f89d NN |
6319 | esac |
6320 | ;; | |
6321 | esac | |
6322 | done | |
6323 | ||
9e1a94f4 ILT |
6324 | # Add target libraries which are only needed for disabled languages |
6325 | # to noconfigdirs. | |
6326 | if test -n "$disabled_target_libs"; then | |
6327 | for dir in $disabled_target_libs; do | |
6328 | case " $enabled_target_libs " in | |
6329 | *" ${dir} "*) ;; | |
6330 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6331 | esac | |
6332 | done | |
6333 | fi | |
6334 | ||
81ecdfbb RW |
6335 | # Check whether --enable-stage1-languages was given. |
6336 | if test "${enable_stage1_languages+set}" = set; then : | |
6337 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
6338 | ,no,|,,) |
6339 | # Set it to something that will have no effect in the loop below | |
6340 | enable_stage1_languages=c ;; | |
6341 | ,yes,) | |
6342 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6343 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6344 | *,all,*) | |
6345 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6346 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6347 | esac | |
6348 | ||
6349 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6350 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6351 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6352 | case $potential_languages in | |
6353 | *,$i,*) | |
6354 | case $stage1_languages in | |
6355 | *,$i,*) ;; | |
6356 | *) stage1_languages="$stage1_languages$i," ;; | |
6357 | esac ;; | |
6358 | *) | |
6359 | case $missing_languages in | |
6360 | *,$i,*) ;; | |
6361 | *) missing_languages="$missing_languages$i," ;; | |
6362 | esac ;; | |
6363 | esac | |
6364 | done | |
81ecdfbb RW |
6365 | fi |
6366 | ||
9b134994 PB |
6367 | |
6368 | # Remove leading/trailing commas that were added for simplicity | |
6369 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 6370 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
6371 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6372 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6373 | ||
9e07f89d | 6374 | if test "x$missing_languages" != x; then |
81ecdfbb | 6375 | as_fn_error " |
27258dd4 | 6376 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 6377 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 6378 | fi |
9e07f89d NN |
6379 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6380 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 6381 | enable_languages="$new_enable_languages" |
9e07f89d | 6382 | fi |
9b134994 | 6383 | |
c6b750e1 | 6384 | |
81ec575a | 6385 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
6386 | fi |
6387 | ||
a6df5a19 PB |
6388 | # Handle --disable-<component> generically. |
6389 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6390 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
6391 | varname=`echo $dirname | sed -e s/+/_/g` |
6392 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
6393 | noconfigdirs="$noconfigdirs $dir" |
6394 | fi | |
6395 | done | |
6396 | ||
4f0ef2d8 | 6397 | # Check for Boehm's garbage collector |
81ecdfbb RW |
6398 | # Check whether --enable-objc-gc was given. |
6399 | if test "${enable_objc_gc+set}" = set; then : | |
05a13254 | 6400 | enableval=$enable_objc_gc; |
81ecdfbb RW |
6401 | fi |
6402 | ||
4f0ef2d8 | 6403 | |
05a13254 NC |
6404 | # Check whether --with-target-bdw-gc was given. |
6405 | if test "${with_target_bdw_gc+set}" = set; then : | |
6406 | withval=$with_target_bdw_gc; | |
6407 | fi | |
6408 | ||
6409 | ||
6410 | # Check whether --with-target-bdw-gc-include was given. | |
6411 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
6412 | withval=$with_target_bdw_gc_include; | |
6413 | fi | |
6414 | ||
6415 | ||
6416 | # Check whether --with-target-bdw-gc-lib was given. | |
6417 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
6418 | withval=$with_target_bdw_gc_lib; | |
6419 | fi | |
6420 | ||
6421 | ||
6422 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
6423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
6424 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
6425 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
6426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 | |
6427 | $as_echo "using bdw-gc in default locations" >&6; } | |
6428 | else | |
6429 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
6430 | as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 | |
6431 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then | |
6432 | as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 | |
6433 | else | |
6434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
6435 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
d42c4017 | 6436 | fi |
05a13254 | 6437 | fi |
4f0ef2d8 CD |
6438 | esac |
6439 | ||
1b6c0831 | 6440 | # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
7ec59b9e | 6441 | case ,${enable_languages}, in |
1b6c0831 L |
6442 | *,c++,*) |
6443 | # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++ | |
6444 | case "${noconfigdirs}" in | |
6445 | *target-libstdc++-v3*) | |
6446 | noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer" | |
6447 | ;; | |
6448 | *) ;; | |
6449 | esac | |
6450 | ;; | |
7ec59b9e | 6451 | *) |
1b6c0831 | 6452 | noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
7ec59b9e L |
6453 | ;; |
6454 | esac | |
6455 | ||
caeba88f AL |
6456 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6457 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
6458 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6459 | ||
6460 | notsupp="" | |
6461 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 6462 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
6463 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6464 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6465 | if test -r $srcdir/$dirname/configure ; then | |
6466 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6467 | true | |
6468 | else | |
6469 | notsupp="$notsupp $dir" | |
6470 | fi | |
6471 | fi | |
6472 | fi | |
caeba88f AL |
6473 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6474 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6475 | if test -r $srcdir/$dirname/configure ; then | |
6476 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6477 | true | |
6478 | else | |
6479 | notsupp="$notsupp $dir" | |
6480 | fi | |
6481 | fi | |
6482 | fi | |
9e07f89d NN |
6483 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6484 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6485 | if test -r $srcdir/$dirname/configure ; then | |
6486 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6487 | true | |
6488 | else | |
6489 | notsupp="$notsupp $dir" | |
6490 | fi | |
6491 | fi | |
6492 | fi | |
6493 | done | |
6494 | ||
9e07f89d NN |
6495 | # Quietly strip out all directories which aren't configurable in this tree. |
6496 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6497 | # is now the case. | |
6a9cf61e PB |
6498 | build_configdirs_all="$build_configdirs" |
6499 | build_configdirs= | |
6500 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 6501 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
6502 | if test -f ${srcdir}/$j/configure ; then |
6503 | build_configdirs="${build_configdirs} $i" | |
6504 | fi | |
6505 | done | |
6506 | ||
9e07f89d NN |
6507 | configdirs_all="$configdirs" |
6508 | configdirs= | |
6509 | for i in ${configdirs_all} ; do | |
6510 | if test -f ${srcdir}/$i/configure ; then | |
6511 | configdirs="${configdirs} $i" | |
6512 | fi | |
6513 | done | |
6a9cf61e | 6514 | |
9e07f89d NN |
6515 | target_configdirs_all="$target_configdirs" |
6516 | target_configdirs= | |
6517 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 6518 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
6519 | if test -f ${srcdir}/$j/configure ; then |
6520 | target_configdirs="${target_configdirs} $i" | |
6521 | fi | |
6522 | done | |
6523 | ||
1b6c0831 L |
6524 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6525 | # so we have to add it after the preceding checks. | |
6526 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6527 | then | |
6528 | case " $configdirs " in | |
6529 | *" libiberty "*) | |
6530 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6531 | configdirs="$configdirs libiberty-linker-plugin" | |
6532 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6533 | --with-libiberty=../libiberty-linker-plugin";; | |
6534 | *) | |
6535 | as_fn_error "libiberty missing" "$LINENO" 5;; | |
6536 | esac | |
6537 | fi | |
6538 | ||
6539 | # Sometimes we have special requirements for the host libiberty. | |
6540 | extra_host_libiberty_configure_flags= | |
e81d5d05 | 6541 | extra_host_zlib_configure_flags= |
1b6c0831 L |
6542 | case " $configdirs " in |
6543 | *" lto-plugin "* | *" libcc1 "*) | |
6544 | # When these are to be built as shared libraries, the same applies to | |
6545 | # libiberty. | |
6546 | extra_host_libiberty_configure_flags=--enable-shared | |
6547 | ;; | |
e81d5d05 L |
6548 | *" bfd "*) |
6549 | # When bfd is to be built as a shared library, the same applies to | |
6550 | # zlib. | |
6551 | if test "$enable_shared" = "yes"; then | |
6552 | extra_host_zlib_configure_flags=--enable-host-shared | |
6553 | fi | |
6554 | ;; | |
1b6c0831 L |
6555 | esac |
6556 | ||
6557 | ||
e81d5d05 | 6558 | |
9e07f89d NN |
6559 | # Produce a warning message for the subdirs we can't configure. |
6560 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6561 | # FSF releases, it's important to let people know when their machine isn't | |
6562 | # supported by the one or two programs in a package. | |
6563 | ||
6564 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6565 | # If $appdirs is non-empty, at least one of those directories must still | |
6566 | # be configured, or we error out. (E.g., if the gas release supports a | |
6567 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6568 | # pretend that all is well.) | |
6569 | if test -n "$appdirs" ; then | |
6570 | for dir in $appdirs ; do | |
6571 | if test -r $dir/Makefile.in ; then | |
6572 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6573 | appdirs="" | |
6574 | break | |
6575 | fi | |
6a9cf61e | 6576 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
6577 | appdirs="" |
6578 | break | |
6579 | fi | |
6580 | fi | |
6581 | done | |
6582 | if test -n "$appdirs" ; then | |
6583 | echo "*** This configuration is not supported by this package." 1>&2 | |
6584 | exit 1 | |
6585 | fi | |
6586 | fi | |
6587 | # Okay, some application will build, or we don't care to check. Still | |
6588 | # notify of subdirs not getting built. | |
6589 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6590 | echo " ${notsupp}" 1>&2 | |
6591 | echo " (Any other directories should still work fine.)" 1>&2 | |
6592 | fi | |
6593 | ||
6594 | case "$host" in | |
6595 | *msdosdjgpp*) | |
6596 | enable_gdbtk=no ;; | |
6597 | esac | |
6598 | ||
18f6b6ee PB |
6599 | # To find our prefix, in gcc_cv_tool_prefix. |
6600 | ||
6601 | # The user is always right. | |
6602 | if test "${PATH_SEPARATOR+set}" != set; then | |
6603 | echo "#! /bin/sh" >conf$$.sh | |
6604 | echo "exit 0" >>conf$$.sh | |
6605 | chmod +x conf$$.sh | |
6606 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6607 | PATH_SEPARATOR=';' | |
6608 | else | |
6609 | PATH_SEPARATOR=: | |
6610 | fi | |
6611 | rm -f conf$$.sh | |
6612 | fi | |
6613 | ||
6614 | ||
6615 | ||
6616 | if test "x$exec_prefix" = xNONE; then | |
6617 | if test "x$prefix" = xNONE; then | |
6618 | gcc_cv_tool_prefix=$ac_default_prefix | |
6619 | else | |
6620 | gcc_cv_tool_prefix=$prefix | |
6621 | fi | |
6622 | else | |
6623 | gcc_cv_tool_prefix=$exec_prefix | |
6624 | fi | |
6625 | ||
6626 | # If there is no compiler in the tree, use the PATH only. In any | |
6627 | # case, if there is no compiler in the tree nobody should use | |
6628 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6629 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6630 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6631 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6632 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6633 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6634 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6635 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6636 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6637 | else | |
6638 | gcc_cv_tool_dirs= | |
6639 | fi | |
6640 | ||
6641 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6642 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6643 | fi | |
6644 | ||
6645 | ||
6646 | ||
9e07f89d NN |
6647 | copy_dirs= |
6648 | ||
c6b750e1 | 6649 | |
81ecdfbb RW |
6650 | # Check whether --with-build-sysroot was given. |
6651 | if test "${with_build_sysroot+set}" = set; then : | |
6652 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
6653 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6654 | fi | |
6655 | else | |
6656 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 6657 | fi |
a19b6204 MM |
6658 | |
6659 | ||
8a6ee3ab | 6660 | |
81ecdfbb RW |
6661 | |
6662 | # Check whether --with-debug-prefix-map was given. | |
6663 | if test "${with_debug_prefix_map+set}" = set; then : | |
6664 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
6665 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6666 | for debug_map in $withval; do | |
6667 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6668 | done | |
6669 | fi | |
6670 | else | |
6671 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
6672 | fi |
6673 | ||
8a6ee3ab JM |
6674 | |
6675 | ||
7f6ef0c0 PB |
6676 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6677 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6678 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6679 | # We want to ensure that TARGET libraries (which we know are built with | |
6680 | # gcc) are built with "-O2 -g", so include those options when setting | |
6681 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6682 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
6683 | if test "x${is_cross_compiler}" = xyes; then |
6684 | CFLAGS_FOR_TARGET="-g -O2" | |
6685 | else | |
6686 | CFLAGS_FOR_TARGET=$CFLAGS | |
6687 | case " $CFLAGS " in | |
6688 | *" -O2 "*) ;; | |
6689 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6690 | esac | |
6691 | case " $CFLAGS " in | |
6692 | *" -g "* | *" -g3 "*) ;; | |
6693 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6694 | esac | |
6695 | fi | |
7f6ef0c0 PB |
6696 | fi |
6697 | ||
6698 | ||
6699 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
6700 | if test "x${is_cross_compiler}" = xyes; then |
6701 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6702 | else | |
6703 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6704 | case " $CXXFLAGS " in | |
6705 | *" -O2 "*) ;; | |
6706 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6707 | esac | |
6708 | case " $CXXFLAGS " in | |
6709 | *" -g "* | *" -g3 "*) ;; | |
6710 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6711 | esac | |
6712 | fi | |
7f6ef0c0 PB |
6713 | fi |
6714 | ||
6715 | ||
91c1f14c DK |
6716 | |
6717 | ||
9e07f89d NN |
6718 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6719 | # the named directory are copied to $(tooldir)/sys-include. | |
6720 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6721 | if test x${is_cross_compiler} = xno ; then | |
6722 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6723 | exit 1 | |
6724 | fi | |
6725 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 6726 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 6727 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
6728 | fi |
6729 | fi | |
6730 | ||
6731 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6732 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6733 | # are permitted. | |
6734 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6735 | if test x${is_cross_compiler} = xno ; then | |
6736 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6737 | exit 1 | |
6738 | fi | |
6739 | if test x"${with_libs}" != xyes ; then | |
6740 | # Copy the libraries in reverse order, so that files in the first named | |
6741 | # library override files in subsequent libraries. | |
18f6b6ee | 6742 | x=${gcc_cv_tool_prefix} |
9e07f89d | 6743 | for l in ${with_libs}; do |
c6b750e1 | 6744 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
6745 | done |
6746 | fi | |
6747 | fi | |
6748 | ||
700d40ca | 6749 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
6750 | # |
6751 | # This is done by determining whether or not the appropriate directory | |
6752 | # is available, and by checking whether or not specific configurations | |
6753 | # have requested that this magic not happen. | |
c6b750e1 DJ |
6754 | # |
6755 | # The command line options always override the explicit settings in | |
136bb21f | 6756 | # configure.ac, and the settings in configure.ac override this magic. |
2429c060 | 6757 | # |
c6b750e1 | 6758 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 6759 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
6760 | # --without-gnu-ld options for the configure script. Similarly, if |
6761 | # the default is to use the included zlib and you don't want to do that, | |
6762 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
6763 | |
6764 | if test x${use_gnu_as} = x && | |
6765 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6766 | with_gnu_as=yes | |
6767 | extra_host_args="$extra_host_args --with-gnu-as" | |
6768 | fi | |
6769 | ||
6770 | if test x${use_gnu_ld} = x && | |
93f9b408 | 6771 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
6772 | with_gnu_ld=yes |
6773 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6774 | fi | |
6775 | ||
700d40ca ILT |
6776 | if test x${use_included_zlib} = x && |
6777 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6778 | : | |
6779 | else | |
6780 | with_system_zlib=yes | |
6781 | extra_host_args="$extra_host_args --with-system-zlib" | |
6782 | fi | |
6783 | ||
2429c060 PB |
6784 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6785 | # can detect this case. | |
6786 | ||
6787 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6788 | with_newlib=yes | |
6789 | extra_host_args="$extra_host_args --with-newlib" | |
6790 | fi | |
6791 | ||
9e07f89d NN |
6792 | # Handle ${copy_dirs} |
6793 | set fnord ${copy_dirs} | |
6794 | shift | |
6795 | while test $# != 0 ; do | |
6796 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6797 | : | |
6798 | else | |
6799 | echo Copying $1 to $2 | |
6800 | ||
6801 | # Use the install script to create the directory and all required | |
6802 | # parent directories. | |
6803 | if test -d $2 ; then | |
6804 | : | |
6805 | else | |
6806 | echo >config.temp | |
6807 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6808 | fi | |
6809 | ||
6810 | # Copy the directory, assuming we have tar. | |
6811 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6812 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6813 | ||
6814 | # It is the responsibility of the user to correctly adjust all | |
6815 | # symlinks. If somebody can figure out how to handle them correctly | |
6816 | # here, feel free to add the code. | |
6817 | ||
6818 | echo $1 > $2/COPIED | |
6819 | fi | |
6820 | shift; shift | |
6821 | done | |
6822 | ||
2429c060 PB |
6823 | # Determine a target-dependent exec_prefix that the installed |
6824 | # gcc will search in. Keep this list sorted by triplet, with | |
6825 | # the *-*-osname triplets last. | |
6826 | md_exec_prefix= | |
6827 | case "${target}" in | |
521ec477 | 6828 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
6829 | md_exec_prefix=/dev/env/DJDIR/bin |
6830 | ;; | |
2429c060 | 6831 | *-*-hpux* | \ |
2429c060 | 6832 | *-*-nto-qnx* | \ |
1f111696 | 6833 | *-*-solaris2*) |
2429c060 PB |
6834 | md_exec_prefix=/usr/ccs/bin |
6835 | ;; | |
6836 | esac | |
6837 | ||
a0da8069 NN |
6838 | extra_arflags_for_target= |
6839 | extra_nmflags_for_target= | |
6840 | extra_ranlibflags_for_target= | |
6841 | target_makefile_frag=/dev/null | |
6842 | case "${target}" in | |
77d7106f AM |
6843 | spu-*-*) |
6844 | target_makefile_frag="config/mt-spu" | |
6845 | ;; | |
a9d58c06 | 6846 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
429acdec RS |
6847 | target_makefile_frag="config/mt-sde" |
6848 | ;; | |
f3b1e08e RS |
6849 | mipsisa*-*-elfoabi*) |
6850 | target_makefile_frag="config/mt-mips-elfoabi" | |
6851 | ;; | |
e7c8859c RS |
6852 | mips*-*-*linux* | mips*-*-gnu*) |
6853 | target_makefile_frag="config/mt-mips-gnu" | |
6854 | ;; | |
d9e042ac SL |
6855 | nios2-*-elf*) |
6856 | target_makefile_frag="config/mt-nios2-elf" | |
6857 | ;; | |
29383458 | 6858 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 6859 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
6860 | ;; |
6861 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 6862 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
6863 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6864 | # harmless if we're using GNU nm or ar. | |
6865 | extra_arflags_for_target=" -X32_64" | |
6866 | extra_nmflags_for_target=" -B -X32_64" | |
6867 | ;; | |
a0da8069 NN |
6868 | esac |
6869 | ||
6870 | alphaieee_frag=/dev/null | |
6871 | case $target in | |
6872 | alpha*-*-*) | |
6873 | # This just makes sure to use the -mieee option to build target libs. | |
6874 | # This should probably be set individually by each library. | |
6875 | alphaieee_frag="config/mt-alphaieee" | |
6876 | ;; | |
6877 | esac | |
6878 | ||
6879 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6880 | # the target libraries, similarly if it is not specified, use -Os | |
6881 | # on selected platforms. | |
6882 | ospace_frag=/dev/null | |
6883 | case "${enable_target_optspace}:${target}" in | |
6884 | yes:*) | |
6885 | ospace_frag="config/mt-ospace" | |
6886 | ;; | |
6887 | :d30v-*) | |
6888 | ospace_frag="config/mt-d30v" | |
6889 | ;; | |
16beab3d | 6890 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
a0da8069 NN |
6891 | ospace_frag="config/mt-ospace" |
6892 | ;; | |
6893 | no:* | :*) | |
6894 | ;; | |
6895 | *) | |
6896 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6897 | ;; | |
6898 | esac | |
6899 | ||
a0da8069 NN |
6900 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6901 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 6902 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
6903 | build_tooldir=${tooldir} |
6904 | ||
a0da8069 NN |
6905 | # Create a .gdbinit file which runs the one in srcdir |
6906 | # and tells GDB to look there for source files. | |
6907 | ||
6908 | if test -r ${srcdir}/.gdbinit ; then | |
6909 | case ${srcdir} in | |
6910 | .) ;; | |
6911 | *) cat > ./.gdbinit <<EOF | |
6912 | # ${NO_EDIT} | |
6913 | dir ${srcdir} | |
6914 | dir . | |
6915 | source ${srcdir}/.gdbinit | |
6916 | EOF | |
6917 | ;; | |
6918 | esac | |
6919 | fi | |
6920 | ||
a0da8069 NN |
6921 | # Make sure that the compiler is able to generate an executable. If it |
6922 | # can't, we are probably in trouble. We don't care whether we can run the | |
6923 | # executable--we might be using a cross compiler--we only care whether it | |
6924 | # can be created. At this point the main configure script has set CC. | |
6925 | we_are_ok=no | |
6926 | echo "int main () { return 0; }" > conftest.c | |
6927 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
6928 | if test $? = 0 ; then | |
6929 | if test -s conftest || test -s conftest.exe ; then | |
6930 | we_are_ok=yes | |
6931 | fi | |
c6b750e1 | 6932 | fi |
a0da8069 NN |
6933 | case $we_are_ok in |
6934 | no) | |
6935 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
6936 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
6937 | rm -f conftest* | |
6938 | exit 1 | |
6939 | ;; | |
6940 | esac | |
6941 | rm -f conftest* | |
6942 | ||
3bbd2f8f | 6943 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
6944 | case "${host}" in |
6945 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 6946 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 6947 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
6948 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
6949 | esac | |
6950 | ||
3bbd2f8f | 6951 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
6952 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
6953 | # built executables to PATH. | |
3bbd2f8f AL |
6954 | if test "$RPATH_ENVVAR" = PATH; then |
6955 | GCC_SHLIB_SUBDIR=/shlib | |
6956 | else | |
6957 | GCC_SHLIB_SUBDIR= | |
6958 | fi | |
6959 | ||
730af8ee | 6960 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
6961 | case $enable_bootstrap in | |
6962 | yes) | |
6963 | bootstrap_suffix=bootstrap | |
6964 | BUILD_CONFIG=bootstrap-debug | |
6965 | ;; | |
6966 | no) | |
6967 | bootstrap_suffix=no-bootstrap | |
6968 | BUILD_CONFIG= | |
6969 | ;; | |
6970 | esac | |
6971 | ||
6972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
6973 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
6974 | ||
6975 | ||
6976 | # Check whether --with-build-config was given. | |
6977 | if test "${with_build_config+set}" = set; then : | |
6978 | withval=$with_build_config; case $with_build_config in | |
6979 | yes) with_build_config= ;; | |
6980 | no) with_build_config= BUILD_CONFIG= ;; | |
6981 | esac | |
6982 | fi | |
6983 | ||
6984 | ||
6985 | if test "x${with_build_config}" != x; then | |
6986 | BUILD_CONFIG=$with_build_config | |
6987 | else | |
6988 | case $BUILD_CONFIG in | |
6989 | bootstrap-debug) | |
6990 | if echo "int f (void) { return 0; }" > conftest.c && | |
6991 | ${CC} -c conftest.c && | |
6992 | mv conftest.o conftest.o.g0 && | |
6993 | ${CC} -c -g conftest.c && | |
6994 | mv conftest.o conftest.o.g && | |
6995 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
6996 | : | |
6997 | else | |
6998 | BUILD_CONFIG= | |
6999 | fi | |
7000 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7001 | ;; | |
7002 | esac | |
7003 | fi | |
7004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7005 | $as_echo "$BUILD_CONFIG" >&6; } | |
7006 | ||
7007 | ||
7008 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7010 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7011 | # Check whether --enable-vtable-verify was given. | |
7012 | if test "${enable_vtable_verify+set}" = set; then : | |
7013 | enableval=$enable_vtable_verify; case "$enableval" in | |
7014 | yes) enable_vtable_verify=yes ;; | |
7015 | no) enable_vtable_verify=no ;; | |
7016 | *) enable_vtable_verify=no;; | |
7017 | esac | |
7018 | else | |
7019 | enable_vtable_verify=no | |
7020 | fi | |
7021 | ||
7022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7023 | $as_echo "$enable_vtable_verify" >&6; } | |
7024 | ||
a0da8069 NN |
7025 | # Record target_configdirs and the configure arguments for target and |
7026 | # build configuration in Makefile. | |
7027 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 7028 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
201f096f | 7029 | bootstrap_fixincludes=no |
a0da8069 | 7030 | |
2aa2364a JR |
7031 | # If we are building libgomp, bootstrap it. |
7032 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7033 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7034 | fi | |
7035 | ||
730af8ee | 7036 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7037 | # or bootstrap-ubsan, bootstrap it. | |
7038 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7039 | case "$BUILD_CONFIG" in | |
7040 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7041 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
201f096f | 7042 | bootstrap_fixincludes=yes |
730af8ee | 7043 | ;; |
7044 | esac | |
5eb08693 L |
7045 | fi |
7046 | ||
730af8ee | 7047 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7048 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7049 | test "$enable_vtable_verify" != no; then | |
95e43135 JBG |
7050 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7051 | fi | |
7052 | ||
05a13254 NC |
7053 | # If we are building libmpx and $BUILD_CONFIG contains bootstrap-mpx, |
7054 | # bootstrap it. | |
1b6c0831 | 7055 | if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then |
05a13254 NC |
7056 | case "$BUILD_CONFIG" in |
7057 | *bootstrap-mpx* ) | |
7058 | bootstrap_target_libs=${bootstrap_target_libs}target-libmpx, | |
7059 | ;; | |
7060 | esac | |
1b6c0831 L |
7061 | fi |
7062 | ||
a0da8069 NN |
7063 | # Determine whether gdb needs tk/tcl or not. |
7064 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7065 | # and in that case we want gdb to be built without tk. Ugh! | |
7066 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7067 | # so we should be able to put the 'maybe's in unconditionally and | |
7068 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7069 | # 100% sure that that's safe though. | |
c180f501 | 7070 | |
675c6968 | 7071 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
7072 | case "$enable_gdbtk" in |
7073 | no) | |
7074 | GDB_TK="" ;; | |
c180f501 AC |
7075 | yes) |
7076 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 7077 | *) |
c180f501 AC |
7078 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7079 | # distro. Eventually someone will fix this and move Insight, nee | |
7080 | # gdbtk to a separate directory. | |
7081 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7082 | GDB_TK="${gdb_tk}" | |
7083 | else | |
7084 | GDB_TK="" | |
7085 | fi | |
7086 | ;; | |
a0da8069 | 7087 | esac |
907be67c DJ |
7088 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7089 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 7090 | |
6bd3dfaa | 7091 | # Strip out unwanted targets. |
dd12c3a8 NN |
7092 | |
7093 | # While at that, we remove Makefiles if we were started for recursive | |
7094 | # configuration, so that the top-level Makefile reconfigures them, | |
7095 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 7096 | |
06a51eac RW |
7097 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7098 | # but now we're fixing up the Makefile ourselves with the additional | |
7099 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7100 | # extrasub-{build,host,target} not because there is any reason to split | |
7101 | # the substitutions up that way, but only to remain below the limit of | |
7102 | # 99 commands in a script, for HP-UX sed. | |
7103 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
dd12c3a8 | 7104 | |
16b1ad29 RW |
7105 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7106 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7107 | yes:yes:*\ gold\ *:*) | |
7108 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
7109 | ;; | |
7110 | esac | |
7111 | ||
06a51eac | 7112 | extrasub_build= |
6a9cf61e | 7113 | for module in ${build_configdirs} ; do |
498d4a71 CF |
7114 | if test -z "${no_recursion}" \ |
7115 | && test -f ${build_subdir}/${module}/Makefile; then | |
7116 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7117 | rm -f ${build_subdir}/${module}/Makefile | |
7118 | fi | |
06a51eac | 7119 | extrasub_build="$extrasub_build |
498d4a71 CF |
7120 | /^@if build-$module\$/d |
7121 | /^@endif build-$module\$/d | |
7122 | /^@if build-$module-$bootstrap_suffix\$/d | |
7123 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7124 | done | |
06a51eac | 7125 | extrasub_host= |
498d4a71 | 7126 | for module in ${configdirs} ; do |
80911fe1 | 7127 | if test -z "${no_recursion}"; then |
8cf39b1b | 7128 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
7129 | if test -f ${file}; then |
7130 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7131 | rm -f ${file} | |
7132 | fi | |
7133 | done | |
498d4a71 | 7134 | fi |
201f096f | 7135 | case ${module},${bootstrap_fixincludes} in |
7136 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7137 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7138 | esac | |
06a51eac | 7139 | extrasub_host="$extrasub_host |
498d4a71 CF |
7140 | /^@if $module\$/d |
7141 | /^@endif $module\$/d | |
201f096f | 7142 | /^@if $module-$host_bootstrap_suffix\$/d |
7143 | /^@endif $module-$host_bootstrap_suffix\$/d" | |
498d4a71 | 7144 | done |
06a51eac | 7145 | extrasub_target= |
498d4a71 CF |
7146 | for module in ${target_configdirs} ; do |
7147 | if test -z "${no_recursion}" \ | |
7148 | && test -f ${target_subdir}/${module}/Makefile; then | |
7149 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7150 | rm -f ${target_subdir}/${module}/Makefile | |
7151 | fi | |
e8a5fa9c RW |
7152 | |
7153 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7154 | case $bootstrap_target_libs in | |
7155 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7156 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7157 | esac | |
7158 | ||
06a51eac | 7159 | extrasub_target="$extrasub_target |
498d4a71 CF |
7160 | /^@if target-$module\$/d |
7161 | /^@endif target-$module\$/d | |
e8a5fa9c RW |
7162 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7163 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
7164 | done |
7165 | ||
06a51eac RW |
7166 | # Do the final fixup along with target modules. |
7167 | extrasub_target="$extrasub_target | |
6bd3dfaa | 7168 | /^@if /,/^@endif /d" |
a0da8069 NN |
7169 | |
7170 | # Create the serialization dependencies. This uses a temporary file. | |
7171 | ||
81ecdfbb RW |
7172 | # Check whether --enable-serial-configure was given. |
7173 | if test "${enable_serial_configure+set}" = set; then : | |
7174 | enableval=$enable_serial_configure; | |
7175 | fi | |
e6bfb94a AO |
7176 | |
7177 | ||
1047cb91 DD |
7178 | case ${enable_serial_configure} in |
7179 | yes) | |
7180 | enable_serial_build_configure=yes | |
7181 | enable_serial_host_configure=yes | |
7182 | enable_serial_target_configure=yes | |
7183 | ;; | |
7184 | esac | |
7185 | ||
a0da8069 NN |
7186 | # These force 'configure's to be done one at a time, to avoid problems |
7187 | # with contention over a shared config.cache. | |
7188 | rm -f serdep.tmp | |
e6bfb94a | 7189 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 7190 | olditem= |
1047cb91 | 7191 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
7192 | for item in ${build_configdirs} ; do |
7193 | case ${olditem} in | |
7194 | "") ;; | |
e6bfb94a | 7195 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7196 | esac |
7197 | olditem=${item} | |
7198 | done | |
7199 | olditem= | |
1047cb91 | 7200 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
7201 | for item in ${configdirs} ; do |
7202 | case ${olditem} in | |
7203 | "") ;; | |
e6bfb94a | 7204 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7205 | esac |
7206 | olditem=${item} | |
7207 | done | |
7208 | olditem= | |
1047cb91 | 7209 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
7210 | for item in ${target_configdirs} ; do |
7211 | case ${olditem} in | |
7212 | "") ;; | |
e6bfb94a | 7213 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7214 | esac |
7215 | olditem=${item} | |
7216 | done | |
7217 | serialization_dependencies=serdep.tmp | |
7218 | ||
7219 | ||
e6bfb94a | 7220 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 7221 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
7222 | # might not want to pass down to subconfigures. The exception being |
7223 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7224 | # files altogether, and which should be passed on to subconfigures. | |
7225 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7226 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 7227 | baseargs= |
65b4571a | 7228 | tbaseargs= |
c6b750e1 DJ |
7229 | keep_next=no |
7230 | skip_next=no | |
7231 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
7232 | for ac_arg |
7233 | do | |
c6b750e1 DJ |
7234 | if test X"$skip_next" = X"yes"; then |
7235 | skip_next=no | |
7236 | continue | |
7237 | fi | |
7238 | if test X"$keep_next" = X"yes"; then | |
7239 | case $ac_arg in | |
7240 | *\'*) | |
7241 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7242 | esac | |
7243 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7244 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
7245 | keep_next=no |
7246 | continue | |
7247 | fi | |
7248 | ||
7249 | # Handle separated arguments. Based on the logic generated by | |
7250 | # autoconf 2.59. | |
7251 | case $ac_arg in | |
7252 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7253 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7254 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7255 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7256 | separate_arg=no | |
7257 | ;; | |
7258 | -*) | |
7259 | separate_arg=yes | |
7260 | ;; | |
7261 | *) | |
7262 | separate_arg=no | |
7263 | ;; | |
7264 | esac | |
7265 | ||
65b4571a AO |
7266 | skip_targ=no |
7267 | case $ac_arg in | |
7268 | ||
7269 | --with-* | --without-*) | |
7270 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7271 | ||
7272 | case $libopt in | |
7273 | *[-_]include) | |
7274 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7275 | ;; | |
7276 | *[-_]lib) | |
7277 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7278 | ;; | |
7279 | *) | |
7280 | lib=$libopt | |
7281 | ;; | |
7282 | esac | |
7283 | ||
7284 | ||
7285 | case $lib in | |
1b6c0831 | 7286 | mpc | mpfr | gmp | isl) |
65b4571a AO |
7287 | # If we're processing --with-$lib, --with-$lib-include or |
7288 | # --with-$lib-lib, for one of the libs above, and target is | |
7289 | # different from host, don't pass the current argument to any | |
7290 | # target library's configure. | |
7291 | if test x$is_cross_compiler = xyes; then | |
7292 | skip_targ=yes | |
7293 | fi | |
7294 | ;; | |
7295 | esac | |
7296 | ;; | |
7297 | esac | |
7298 | ||
c6b750e1 | 7299 | case "$ac_arg" in |
30167e0a NC |
7300 | --cache-file=/dev/null | \ |
7301 | -cache-file=/dev/null ) | |
7302 | # Handled here to avoid the test to skip args below. | |
7303 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7304 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
7305 | # Assert: $separate_arg should always be no. |
7306 | keep_next=$separate_arg | |
7307 | ;; | |
c6b750e1 DJ |
7308 | --no*) |
7309 | continue | |
7310 | ;; | |
7311 | --c* | \ | |
7312 | --sr* | \ | |
7313 | --ho* | \ | |
7314 | --bu* | \ | |
7315 | --t* | \ | |
7316 | --program-* | \ | |
7317 | -cache_file* | \ | |
7318 | -srcdir* | \ | |
7319 | -host* | \ | |
7320 | -build* | \ | |
7321 | -target* | \ | |
7322 | -program-prefix* | \ | |
7323 | -program-suffix* | \ | |
7324 | -program-transform-name* ) | |
7325 | skip_next=$separate_arg | |
7326 | continue | |
7327 | ;; | |
7328 | -*) | |
7329 | # An option. Add it. | |
7330 | case $ac_arg in | |
7331 | *\'*) | |
7332 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7333 | esac | |
7334 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
7335 | if test X"$skip_targ" = Xno; then |
7336 | tbaseargs="$tbaseargs '$ac_arg'" | |
7337 | fi | |
c6b750e1 DJ |
7338 | keep_next=$separate_arg |
7339 | ;; | |
7340 | *) | |
7341 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7342 | # pass it down; let the Makefile handle this. | |
7343 | continue | |
7344 | ;; | |
7345 | esac | |
7346 | done | |
7347 | # Remove the initial space we just introduced and, as these will be | |
7348 | # expanded by make, quote '$'. | |
7349 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 7350 | |
f27d4f92 DJ |
7351 | # Add in --program-transform-name, after --program-prefix and |
7352 | # --program-suffix have been applied to it. Autoconf has already | |
7353 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7354 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 7355 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
7356 | # Also, because we want to override the logic in subdir configure scripts to |
7357 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7358 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7359 | ${program_transform_name} | |
7360 | EOF_SED | |
7361 | gcc_transform_name=`cat conftestsed.out` | |
7362 | rm -f conftestsed.out | |
7363 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 7364 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
7365 | if test "$silent" = yes; then |
7366 | baseargs="$baseargs --silent" | |
65b4571a | 7367 | tbaseargs="$tbaseargs --silent" |
2444379b | 7368 | fi |
34a0f3cf | 7369 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 7370 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 7371 | |
4074d5f2 RW |
7372 | # Record and document user additions to sub configure arguments. |
7373 | ||
7374 | ||
7375 | ||
7376 | ||
a0da8069 NN |
7377 | # For the build-side libraries, we just need to pretend we're native, |
7378 | # and not use the same cache file. Multilibs are neither needed nor | |
1b6c0831 L |
7379 | # desired. We can't even use the same cache file for all build-side |
7380 | # libraries, as they're compiled differently; some with C, some with | |
7381 | # C++ or with different feature-enabling options. | |
7382 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
a0da8069 NN |
7383 | |
7384 | # For host modules, accept cache file option, or specification as blank. | |
7385 | case "${cache_file}" in | |
7386 | "") # empty | |
7387 | cache_file_option="" ;; | |
7388 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7389 | cache_file_option="--cache-file=${cache_file}" ;; | |
7390 | *) # relative path | |
7391 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7392 | esac | |
7393 | ||
82252c06 NN |
7394 | # Host dirs don't like to share a cache file either, horribly enough. |
7395 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 7396 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 7397 | |
65b4571a | 7398 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
7399 | |
7400 | # Passing a --with-cross-host argument lets the target libraries know | |
7401 | # whether they are being built with a cross-compiler or being built | |
7402 | # native. However, it would be better to use other mechanisms to make the | |
7403 | # sorts of decisions they want to make on this basis. Please consider | |
7404 | # this option to be deprecated. FIXME. | |
7405 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 7406 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
7407 | fi |
7408 | ||
afc0578d | 7409 | # Special user-friendly check for native x86_64-linux build, if |
7410 | # multilib is not explicitly enabled. | |
7411 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7412 | x86_64-*linux*:yes:$build:$build:) | |
ce6c656d | 7413 | # Make sure we have a development environment that handles 32-bit |
afc0578d | 7414 | dev64=no |
7415 | echo "int main () { return 0; }" > conftest.c | |
7416 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7417 | if test $? = 0 ; then | |
7418 | if test -s conftest || test -s conftest.exe ; then | |
7419 | dev64=yes | |
7420 | fi | |
7421 | fi | |
7422 | rm -f conftest* | |
7423 | if test x${dev64} != xyes ; then | |
ce6c656d | 7424 | 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 | 7425 | fi |
7426 | ;; | |
7427 | esac | |
7428 | ||
938d2b74 RW |
7429 | # Default to --enable-multilib. |
7430 | if test x${enable_multilib} = x ; then | |
a0da8069 | 7431 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 7432 | fi |
a0da8069 NN |
7433 | |
7434 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7435 | # changed from the earlier setting of with_newlib. | |
7436 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7437 | target_configargs="--with-newlib ${target_configargs}" | |
7438 | fi | |
7439 | ||
95036d20 NN |
7440 | # Different target subdirs use different values of certain variables |
7441 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7442 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7443 | # it doesn't automatically accept command-line overrides of them. | |
7444 | # This means it's not safe for target subdirs to share a cache file, | |
7445 | # which is disgusting, but there you have it. Hopefully this can be | |
7446 | # fixed in future. It's still worthwhile to use a cache file for each | |
7447 | # directory. I think. | |
7448 | ||
ae380b45 MS |
7449 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7450 | # We need to pass --target, as newer autoconf's requires consistency | |
7451 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 7452 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 7453 | |
a0da8069 NN |
7454 | FLAGS_FOR_TARGET= |
7455 | case " $target_configdirs " in | |
7456 | *" newlib "*) | |
7457 | case " $target_configargs " in | |
7458 | *" --with-newlib "*) | |
7459 | case "$target" in | |
1f53ca9a | 7460 | *-cygwin*) |
6d94c122 | 7461 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
1f53ca9a | 7462 | ;; |
a0da8069 NN |
7463 | esac |
7464 | ||
7465 | # If we're not building GCC, don't discard standard headers. | |
7466 | if test -d ${srcdir}/gcc; then | |
7467 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7468 | ||
7469 | if test "${build}" != "${host}"; then | |
7470 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7471 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7472 | # to it. This is right: we don't want to search that directory | |
7473 | # for binaries, but we want the header files in there, so add | |
7474 | # them explicitly. | |
e552509b | 7475 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
7476 | |
7477 | # Someone might think of using the pre-installed headers on | |
7478 | # Canadian crosses, in case the installed compiler is not fully | |
7479 | # compatible with the compiler being built. In this case, it | |
7480 | # would be better to flag an error than risking having | |
7481 | # incompatible object files being constructed. We can't | |
7482 | # guarantee that an error will be flagged, but let's hope the | |
7483 | # compiler will do it, when presented with incompatible header | |
7484 | # files. | |
7485 | fi | |
7486 | fi | |
7487 | ||
7488 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 7489 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
7490 | # Here host == target, so we don't need to build gcc, |
7491 | # so we don't want to discard standard headers. | |
7492 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7493 | ;; | |
7494 | *) | |
7495 | # If we're building newlib, use its generic headers last, but search | |
7496 | # for any libc-related directories first (so make it the last -B | |
7497 | # switch). | |
7498 | 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 |
7499 | |
7500 | # If we're building libgloss, find the startup file, simulator library | |
7501 | # and linker script. | |
7502 | case " $target_configdirs " in | |
7503 | *" libgloss "*) | |
7504 | # Look for startup file, simulator library and maybe linker script. | |
7505 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7506 | # Look for libnosys.a in case the target needs it. | |
7507 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7508 | # Most targets have the linker script in the source directory. | |
7509 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7510 | ;; | |
7511 | esac | |
a0da8069 NN |
7512 | ;; |
7513 | esac | |
7514 | ;; | |
7515 | esac | |
7516 | ;; | |
7517 | esac | |
1f53ca9a | 7518 | |
45055374 | 7519 | case "$target" in |
1f53ca9a AO |
7520 | x86_64-*mingw* | *-w64-mingw*) |
7521 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7522 | # however, use a symlink named 'mingw' in ${prefix} . | |
7523 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7524 | ;; | |
7525 | *-mingw*) | |
7526 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7527 | 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' | |
7528 | ;; | |
45055374 | 7529 | esac |
a0da8069 | 7530 | |
5fbad20a DD |
7531 | # Allow the user to override the flags for |
7532 | # our build compiler if desired. | |
c66487f8 NC |
7533 | if test x"${build}" = x"${host}" ; then |
7534 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7535 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7536 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7537 | fi | |
5fbad20a | 7538 | |
a0da8069 NN |
7539 | # On Canadian crosses, we'll be searching the right directories for |
7540 | # the previously-installed cross compiler, so don't bother to add | |
7541 | # flags for directories within the install tree of the compiler | |
7542 | # being built; programs in there won't even run. | |
7543 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7544 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 7545 | 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 |
7546 | fi |
7547 | ||
7548 | if test "x${use_gnu_ld}" = x && | |
7549 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7550 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 7551 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
7552 | fi |
7553 | ||
a481dbb7 DD |
7554 | # Search for other target-specific linker scripts and such. |
7555 | case "${target}" in | |
4e206d7e DB |
7556 | mep*) |
7557 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7558 | ;; | |
7559 | esac | |
7560 | ||
a0da8069 | 7561 | # Makefile fragments. |
3e707e94 PB |
7562 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7563 | do | |
7564 | eval fragval=\$$frag | |
7565 | if test $fragval != /dev/null; then | |
7566 | eval $frag=${srcdir}/$fragval | |
7567 | fi | |
7568 | done | |
a0da8069 NN |
7569 | |
7570 | ||
7571 | ||
7572 | ||
7573 | ||
7574 | # Miscellanea: directories, flags, etc. | |
7575 | ||
7576 | ||
7577 | ||
7578 | ||
7579 | ||
7580 | ||
7581 | ||
3bbd2f8f | 7582 | |
6a9cf61e | 7583 | # Build module lists & subconfigure args. |
a0da8069 NN |
7584 | |
7585 | ||
7586 | ||
be01d343 PB |
7587 | # Host module lists & subconfigure args. |
7588 | ||
7589 | ||
7590 | ||
911e63d0 | 7591 | |
be01d343 PB |
7592 | # Target module lists & subconfigure args. |
7593 | ||
7594 | ||
7595 | ||
7596 | # Build tools. | |
7597 | ||
7598 | ||
7599 | ||
1576798e PB |
7600 | |
7601 | ||
7602 | ||
7603 | ||
7604 | ||
7605 | ||
7606 | ||
7607 | ||
7608 | ||
7609 | ||
7610 | ||
7611 | ||
7612 | ||
be01d343 PB |
7613 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7614 | # on the build machine. These are used if the Makefile can't locate these | |
7615 | # programs in objdir. | |
7616 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7617 | ||
7618 | for ac_prog in 'bison -y' byacc yacc | |
7619 | do | |
c6b750e1 | 7620 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7621 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7623 | $as_echo_n "checking for $ac_word... " >&6; } | |
7624 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7625 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7626 | else |
7627 | if test -n "$YACC"; then | |
7628 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7629 | else | |
c6b750e1 DJ |
7630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7631 | for as_dir in $PATH | |
7632 | do | |
7633 | IFS=$as_save_IFS | |
7634 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7635 | for ac_exec_ext in '' $ac_executable_extensions; do |
7636 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7637 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 7638 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7639 | break 2 |
7640 | fi | |
7641 | done | |
81ecdfbb RW |
7642 | done |
7643 | IFS=$as_save_IFS | |
c6b750e1 | 7644 | |
be01d343 PB |
7645 | fi |
7646 | fi | |
c6b750e1 | 7647 | YACC=$ac_cv_prog_YACC |
be01d343 | 7648 | if test -n "$YACC"; then |
81ecdfbb RW |
7649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7650 | $as_echo "$YACC" >&6; } | |
be01d343 | 7651 | else |
81ecdfbb RW |
7652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7653 | $as_echo "no" >&6; } | |
be01d343 PB |
7654 | fi |
7655 | ||
81ecdfbb | 7656 | |
c6b750e1 | 7657 | test -n "$YACC" && break |
be01d343 PB |
7658 | done |
7659 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7660 | ||
7661 | case " $build_configdirs " in | |
7662 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
7663 | esac |
7664 | ||
7665 | for ac_prog in bison | |
7666 | do | |
c6b750e1 | 7667 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7668 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7670 | $as_echo_n "checking for $ac_word... " >&6; } | |
7671 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7672 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7673 | else |
7674 | if test -n "$BISON"; then | |
7675 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7676 | else | |
c6b750e1 DJ |
7677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7678 | for as_dir in $PATH | |
7679 | do | |
7680 | IFS=$as_save_IFS | |
7681 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7682 | for ac_exec_ext in '' $ac_executable_extensions; do |
7683 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7684 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 7685 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7686 | break 2 |
7687 | fi | |
7688 | done | |
81ecdfbb RW |
7689 | done |
7690 | IFS=$as_save_IFS | |
c6b750e1 | 7691 | |
be01d343 PB |
7692 | fi |
7693 | fi | |
c6b750e1 | 7694 | BISON=$ac_cv_prog_BISON |
be01d343 | 7695 | if test -n "$BISON"; then |
81ecdfbb RW |
7696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7697 | $as_echo "$BISON" >&6; } | |
be01d343 | 7698 | else |
81ecdfbb RW |
7699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7700 | $as_echo "no" >&6; } | |
be01d343 PB |
7701 | fi |
7702 | ||
81ecdfbb | 7703 | |
c6b750e1 | 7704 | test -n "$BISON" && break |
be01d343 PB |
7705 | done |
7706 | test -n "$BISON" || BISON="$MISSING bison" | |
7707 | ||
7708 | case " $build_configdirs " in | |
7709 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7710 | esac | |
7711 | ||
7712 | for ac_prog in gm4 gnum4 m4 | |
7713 | do | |
c6b750e1 | 7714 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7715 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7717 | $as_echo_n "checking for $ac_word... " >&6; } | |
7718 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7719 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7720 | else |
7721 | if test -n "$M4"; then | |
7722 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7723 | else | |
c6b750e1 DJ |
7724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7725 | for as_dir in $PATH | |
7726 | do | |
7727 | IFS=$as_save_IFS | |
7728 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7729 | for ac_exec_ext in '' $ac_executable_extensions; do |
7730 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7731 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 7732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7733 | break 2 |
7734 | fi | |
7735 | done | |
81ecdfbb RW |
7736 | done |
7737 | IFS=$as_save_IFS | |
c6b750e1 | 7738 | |
be01d343 PB |
7739 | fi |
7740 | fi | |
c6b750e1 | 7741 | M4=$ac_cv_prog_M4 |
be01d343 | 7742 | if test -n "$M4"; then |
81ecdfbb RW |
7743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7744 | $as_echo "$M4" >&6; } | |
be01d343 | 7745 | else |
81ecdfbb RW |
7746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7747 | $as_echo "no" >&6; } | |
be01d343 PB |
7748 | fi |
7749 | ||
81ecdfbb | 7750 | |
c6b750e1 | 7751 | test -n "$M4" && break |
be01d343 PB |
7752 | done |
7753 | test -n "$M4" || M4="$MISSING m4" | |
7754 | ||
7755 | case " $build_configdirs " in | |
7756 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7757 | esac | |
7758 | ||
7759 | for ac_prog in flex lex | |
7760 | do | |
c6b750e1 | 7761 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7762 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7764 | $as_echo_n "checking for $ac_word... " >&6; } | |
7765 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7766 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7767 | else |
7768 | if test -n "$LEX"; then | |
7769 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7770 | else | |
c6b750e1 DJ |
7771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7772 | for as_dir in $PATH | |
7773 | do | |
7774 | IFS=$as_save_IFS | |
7775 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7776 | for ac_exec_ext in '' $ac_executable_extensions; do |
7777 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7778 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 7779 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7780 | break 2 |
7781 | fi | |
7782 | done | |
81ecdfbb RW |
7783 | done |
7784 | IFS=$as_save_IFS | |
c6b750e1 | 7785 | |
be01d343 PB |
7786 | fi |
7787 | fi | |
c6b750e1 | 7788 | LEX=$ac_cv_prog_LEX |
be01d343 | 7789 | if test -n "$LEX"; then |
81ecdfbb RW |
7790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7791 | $as_echo "$LEX" >&6; } | |
be01d343 | 7792 | else |
81ecdfbb RW |
7793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7794 | $as_echo "no" >&6; } | |
be01d343 PB |
7795 | fi |
7796 | ||
81ecdfbb | 7797 | |
c6b750e1 | 7798 | test -n "$LEX" && break |
be01d343 PB |
7799 | done |
7800 | test -n "$LEX" || LEX="$MISSING flex" | |
7801 | ||
7802 | case " $build_configdirs " in | |
7803 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7804 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7805 | esac | |
7806 | ||
7807 | for ac_prog in flex | |
7808 | do | |
c6b750e1 | 7809 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7810 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7812 | $as_echo_n "checking for $ac_word... " >&6; } | |
7813 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7814 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7815 | else |
7816 | if test -n "$FLEX"; then | |
7817 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7818 | else | |
c6b750e1 DJ |
7819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7820 | for as_dir in $PATH | |
7821 | do | |
7822 | IFS=$as_save_IFS | |
7823 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7824 | for ac_exec_ext in '' $ac_executable_extensions; do |
7825 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7826 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 7827 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7828 | break 2 |
7829 | fi | |
7830 | done | |
81ecdfbb RW |
7831 | done |
7832 | IFS=$as_save_IFS | |
c6b750e1 | 7833 | |
be01d343 PB |
7834 | fi |
7835 | fi | |
c6b750e1 | 7836 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 7837 | if test -n "$FLEX"; then |
81ecdfbb RW |
7838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7839 | $as_echo "$FLEX" >&6; } | |
be01d343 | 7840 | else |
81ecdfbb RW |
7841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7842 | $as_echo "no" >&6; } | |
be01d343 PB |
7843 | fi |
7844 | ||
81ecdfbb | 7845 | |
c6b750e1 | 7846 | test -n "$FLEX" && break |
be01d343 PB |
7847 | done |
7848 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7849 | ||
7850 | case " $build_configdirs " in | |
7851 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7852 | esac | |
7853 | ||
7854 | for ac_prog in makeinfo | |
7855 | do | |
c6b750e1 | 7856 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7857 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7859 | $as_echo_n "checking for $ac_word... " >&6; } | |
7860 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7861 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7862 | else |
7863 | if test -n "$MAKEINFO"; then | |
7864 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7865 | else | |
c6b750e1 DJ |
7866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7867 | for as_dir in $PATH | |
7868 | do | |
7869 | IFS=$as_save_IFS | |
7870 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7871 | for ac_exec_ext in '' $ac_executable_extensions; do |
7872 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7873 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 7874 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7875 | break 2 |
7876 | fi | |
7877 | done | |
81ecdfbb RW |
7878 | done |
7879 | IFS=$as_save_IFS | |
c6b750e1 | 7880 | |
be01d343 PB |
7881 | fi |
7882 | fi | |
c6b750e1 | 7883 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 7884 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
7885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7886 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 7887 | else |
81ecdfbb RW |
7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7889 | $as_echo "no" >&6; } | |
be01d343 PB |
7890 | fi |
7891 | ||
81ecdfbb | 7892 | |
c6b750e1 | 7893 | test -n "$MAKEINFO" && break |
be01d343 PB |
7894 | done |
7895 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7896 | ||
7897 | case " $build_configdirs " in | |
7898 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7899 | *) | |
7900 | ||
10ad8ef3 | 7901 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
7902 | # higher, else we use the "missing" dummy. |
7903 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 7904 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
7905 | : |
7906 | else | |
7907 | MAKEINFO="$MISSING makeinfo" | |
7908 | fi | |
7909 | ;; | |
7910 | ||
7911 | esac | |
a0da8069 | 7912 | |
be01d343 | 7913 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 7914 | |
be01d343 PB |
7915 | for ac_prog in expect |
7916 | do | |
c6b750e1 | 7917 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7918 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7920 | $as_echo_n "checking for $ac_word... " >&6; } | |
7921 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7922 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7923 | else |
7924 | if test -n "$EXPECT"; then | |
7925 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7926 | else | |
c6b750e1 DJ |
7927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7928 | for as_dir in $PATH | |
7929 | do | |
7930 | IFS=$as_save_IFS | |
7931 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7932 | for ac_exec_ext in '' $ac_executable_extensions; do |
7933 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7934 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 7935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7936 | break 2 |
7937 | fi | |
7938 | done | |
81ecdfbb RW |
7939 | done |
7940 | IFS=$as_save_IFS | |
c6b750e1 | 7941 | |
be01d343 PB |
7942 | fi |
7943 | fi | |
c6b750e1 | 7944 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 7945 | if test -n "$EXPECT"; then |
81ecdfbb RW |
7946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
7947 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 7948 | else |
81ecdfbb RW |
7949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7950 | $as_echo "no" >&6; } | |
be01d343 | 7951 | fi |
a0da8069 | 7952 | |
81ecdfbb | 7953 | |
c6b750e1 | 7954 | test -n "$EXPECT" && break |
be01d343 PB |
7955 | done |
7956 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 7957 | |
be01d343 PB |
7958 | case " $configdirs " in |
7959 | *" expect "*) | |
7960 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
7961 | ;; | |
7962 | esac | |
a0da8069 | 7963 | |
be01d343 PB |
7964 | for ac_prog in runtest |
7965 | do | |
c6b750e1 | 7966 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7967 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7969 | $as_echo_n "checking for $ac_word... " >&6; } | |
7970 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
7971 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7972 | else |
7973 | if test -n "$RUNTEST"; then | |
7974 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
7975 | else | |
c6b750e1 DJ |
7976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7977 | for as_dir in $PATH | |
7978 | do | |
7979 | IFS=$as_save_IFS | |
7980 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7981 | for ac_exec_ext in '' $ac_executable_extensions; do |
7982 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7983 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 7984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7985 | break 2 |
7986 | fi | |
7987 | done | |
81ecdfbb RW |
7988 | done |
7989 | IFS=$as_save_IFS | |
c6b750e1 | 7990 | |
be01d343 PB |
7991 | fi |
7992 | fi | |
c6b750e1 | 7993 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 7994 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
7995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
7996 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 7997 | else |
81ecdfbb RW |
7998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7999 | $as_echo "no" >&6; } | |
be01d343 | 8000 | fi |
a0da8069 | 8001 | |
81ecdfbb | 8002 | |
c6b750e1 | 8003 | test -n "$RUNTEST" && break |
be01d343 PB |
8004 | done |
8005 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 8006 | |
be01d343 PB |
8007 | case " $configdirs " in |
8008 | *" dejagnu "*) | |
6b89cc21 | 8009 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
8010 | ;; |
8011 | esac | |
a0da8069 NN |
8012 | |
8013 | ||
a0da8069 | 8014 | # Host tools. |
859789af AC |
8015 | ncn_tool_prefix= |
8016 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8017 | ncn_target_tool_prefix= | |
8018 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8019 | ||
9a819804 AO |
8020 | |
8021 | ||
8022 | if test -n "$AR"; then | |
8023 | ac_cv_prog_AR=$AR | |
8024 | elif test -n "$ac_cv_prog_AR"; then | |
8025 | AR=$ac_cv_prog_AR | |
8026 | fi | |
8027 | ||
8028 | if test -n "$ac_cv_prog_AR"; then | |
8029 | for ncn_progname in ar; do | |
8030 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8031 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8033 | $as_echo_n "checking for $ac_word... " >&6; } | |
8034 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8035 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8036 | else |
8037 | if test -n "$AR"; then | |
8038 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8039 | else | |
8040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8041 | for as_dir in $PATH | |
8042 | do | |
8043 | IFS=$as_save_IFS | |
8044 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8045 | for ac_exec_ext in '' $ac_executable_extensions; do |
8046 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8047 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8048 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8049 | break 2 |
8050 | fi | |
8051 | done | |
81ecdfbb RW |
8052 | done |
8053 | IFS=$as_save_IFS | |
9a819804 AO |
8054 | |
8055 | fi | |
8056 | fi | |
8057 | AR=$ac_cv_prog_AR | |
8058 | if test -n "$AR"; then | |
81ecdfbb RW |
8059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8060 | $as_echo "$AR" >&6; } | |
9a819804 | 8061 | else |
81ecdfbb RW |
8062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8063 | $as_echo "no" >&6; } | |
9a819804 AO |
8064 | fi |
8065 | ||
81ecdfbb | 8066 | |
9a819804 AO |
8067 | done |
8068 | fi | |
8069 | ||
8070 | for ncn_progname in ar; do | |
05cbd757 PB |
8071 | if test -n "$ncn_tool_prefix"; then |
8072 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8073 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8075 | $as_echo_n "checking for $ac_word... " >&6; } | |
8076 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8077 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8078 | else |
8079 | if test -n "$AR"; then | |
8080 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8081 | else | |
c6b750e1 DJ |
8082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8083 | for as_dir in $PATH | |
8084 | do | |
8085 | IFS=$as_save_IFS | |
8086 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8087 | for ac_exec_ext in '' $ac_executable_extensions; do |
8088 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8089 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8090 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8091 | break 2 |
8092 | fi | |
8093 | done | |
81ecdfbb RW |
8094 | done |
8095 | IFS=$as_save_IFS | |
c6b750e1 | 8096 | |
859789af AC |
8097 | fi |
8098 | fi | |
c6b750e1 | 8099 | AR=$ac_cv_prog_AR |
859789af | 8100 | if test -n "$AR"; then |
81ecdfbb RW |
8101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8102 | $as_echo "$AR" >&6; } | |
859789af | 8103 | else |
81ecdfbb RW |
8104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8105 | $as_echo "no" >&6; } | |
859789af AC |
8106 | fi |
8107 | ||
81ecdfbb | 8108 | |
05cbd757 PB |
8109 | fi |
8110 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8111 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8112 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8114 | $as_echo_n "checking for $ac_word... " >&6; } | |
8115 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8116 | $as_echo_n "(cached) " >&6 | |
859789af | 8117 | else |
05cbd757 PB |
8118 | if test -n "$AR"; then |
8119 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 8120 | else |
c6b750e1 DJ |
8121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8122 | for as_dir in $PATH | |
8123 | do | |
8124 | IFS=$as_save_IFS | |
8125 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8126 | for ac_exec_ext in '' $ac_executable_extensions; do |
8127 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8128 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8129 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8130 | break 2 |
8131 | fi | |
8132 | done | |
81ecdfbb RW |
8133 | done |
8134 | IFS=$as_save_IFS | |
c6b750e1 | 8135 | |
859789af AC |
8136 | fi |
8137 | fi | |
c6b750e1 | 8138 | AR=$ac_cv_prog_AR |
05cbd757 | 8139 | if test -n "$AR"; then |
81ecdfbb RW |
8140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8141 | $as_echo "$AR" >&6; } | |
859789af | 8142 | else |
81ecdfbb RW |
8143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8144 | $as_echo "no" >&6; } | |
859789af | 8145 | fi |
c6b750e1 | 8146 | |
81ecdfbb | 8147 | |
05cbd757 PB |
8148 | fi |
8149 | test -n "$ac_cv_prog_AR" && break | |
8150 | done | |
8151 | ||
8152 | if test -z "$ac_cv_prog_AR" ; then | |
8153 | set dummy ar | |
8154 | if test $build = $host ; then | |
8155 | AR="$2" | |
859789af | 8156 | else |
05cbd757 | 8157 | AR="${ncn_tool_prefix}$2" |
859789af | 8158 | fi |
859789af AC |
8159 | fi |
8160 | ||
9a819804 AO |
8161 | |
8162 | ||
8163 | if test -n "$AS"; then | |
8164 | ac_cv_prog_AS=$AS | |
8165 | elif test -n "$ac_cv_prog_AS"; then | |
8166 | AS=$ac_cv_prog_AS | |
8167 | fi | |
8168 | ||
8169 | if test -n "$ac_cv_prog_AS"; then | |
8170 | for ncn_progname in as; do | |
8171 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8172 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8174 | $as_echo_n "checking for $ac_word... " >&6; } | |
8175 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8176 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8177 | else |
8178 | if test -n "$AS"; then | |
8179 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8180 | else | |
8181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8182 | for as_dir in $PATH | |
8183 | do | |
8184 | IFS=$as_save_IFS | |
8185 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8186 | for ac_exec_ext in '' $ac_executable_extensions; do |
8187 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8188 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8189 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8190 | break 2 |
8191 | fi | |
8192 | done | |
81ecdfbb RW |
8193 | done |
8194 | IFS=$as_save_IFS | |
9a819804 AO |
8195 | |
8196 | fi | |
8197 | fi | |
8198 | AS=$ac_cv_prog_AS | |
8199 | if test -n "$AS"; then | |
81ecdfbb RW |
8200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8201 | $as_echo "$AS" >&6; } | |
9a819804 | 8202 | else |
81ecdfbb RW |
8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8204 | $as_echo "no" >&6; } | |
9a819804 AO |
8205 | fi |
8206 | ||
81ecdfbb | 8207 | |
9a819804 AO |
8208 | done |
8209 | fi | |
8210 | ||
8211 | for ncn_progname in as; do | |
05cbd757 PB |
8212 | if test -n "$ncn_tool_prefix"; then |
8213 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8214 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8216 | $as_echo_n "checking for $ac_word... " >&6; } | |
8217 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8218 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8219 | else |
8220 | if test -n "$AS"; then | |
8221 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
8222 | else |
8223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8224 | for as_dir in $PATH | |
8225 | do | |
8226 | IFS=$as_save_IFS | |
8227 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8228 | for ac_exec_ext in '' $ac_executable_extensions; do |
8229 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8230 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8231 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8232 | break 2 |
8233 | fi | |
8234 | done | |
81ecdfbb RW |
8235 | done |
8236 | IFS=$as_save_IFS | |
c6b750e1 | 8237 | |
859789af AC |
8238 | fi |
8239 | fi | |
c6b750e1 | 8240 | AS=$ac_cv_prog_AS |
859789af | 8241 | if test -n "$AS"; then |
81ecdfbb RW |
8242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8243 | $as_echo "$AS" >&6; } | |
859789af | 8244 | else |
81ecdfbb RW |
8245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8246 | $as_echo "no" >&6; } | |
859789af AC |
8247 | fi |
8248 | ||
81ecdfbb | 8249 | |
05cbd757 PB |
8250 | fi |
8251 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8252 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8253 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8255 | $as_echo_n "checking for $ac_word... " >&6; } | |
8256 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8257 | $as_echo_n "(cached) " >&6 | |
859789af | 8258 | else |
05cbd757 PB |
8259 | if test -n "$AS"; then |
8260 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 8261 | else |
c6b750e1 DJ |
8262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8263 | for as_dir in $PATH | |
8264 | do | |
8265 | IFS=$as_save_IFS | |
8266 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8267 | for ac_exec_ext in '' $ac_executable_extensions; do |
8268 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8269 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8270 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8271 | break 2 |
8272 | fi | |
8273 | done | |
81ecdfbb RW |
8274 | done |
8275 | IFS=$as_save_IFS | |
c6b750e1 | 8276 | |
859789af AC |
8277 | fi |
8278 | fi | |
c6b750e1 | 8279 | AS=$ac_cv_prog_AS |
05cbd757 | 8280 | if test -n "$AS"; then |
81ecdfbb RW |
8281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8282 | $as_echo "$AS" >&6; } | |
859789af | 8283 | else |
81ecdfbb RW |
8284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8285 | $as_echo "no" >&6; } | |
859789af | 8286 | fi |
c6b750e1 | 8287 | |
81ecdfbb | 8288 | |
05cbd757 PB |
8289 | fi |
8290 | test -n "$ac_cv_prog_AS" && break | |
8291 | done | |
8292 | ||
8293 | if test -z "$ac_cv_prog_AS" ; then | |
8294 | set dummy as | |
8295 | if test $build = $host ; then | |
8296 | AS="$2" | |
859789af | 8297 | else |
05cbd757 | 8298 | AS="${ncn_tool_prefix}$2" |
859789af | 8299 | fi |
859789af AC |
8300 | fi |
8301 | ||
9a819804 AO |
8302 | |
8303 | ||
8304 | if test -n "$DLLTOOL"; then | |
8305 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8306 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8307 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8308 | fi | |
8309 | ||
8310 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8311 | for ncn_progname in dlltool; do | |
8312 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8313 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8315 | $as_echo_n "checking for $ac_word... " >&6; } | |
8316 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8317 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8318 | else |
8319 | if test -n "$DLLTOOL"; then | |
8320 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8321 | else | |
8322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8323 | for as_dir in $PATH | |
8324 | do | |
8325 | IFS=$as_save_IFS | |
8326 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8327 | for ac_exec_ext in '' $ac_executable_extensions; do |
8328 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8329 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8330 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8331 | break 2 |
8332 | fi | |
8333 | done | |
81ecdfbb RW |
8334 | done |
8335 | IFS=$as_save_IFS | |
9a819804 AO |
8336 | |
8337 | fi | |
8338 | fi | |
8339 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8340 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
8341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8342 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 8343 | else |
81ecdfbb RW |
8344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8345 | $as_echo "no" >&6; } | |
9a819804 AO |
8346 | fi |
8347 | ||
81ecdfbb | 8348 | |
9a819804 AO |
8349 | done |
8350 | fi | |
8351 | ||
8352 | for ncn_progname in dlltool; do | |
05cbd757 PB |
8353 | if test -n "$ncn_tool_prefix"; then |
8354 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8355 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8357 | $as_echo_n "checking for $ac_word... " >&6; } | |
8358 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8359 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8360 | else |
8361 | if test -n "$DLLTOOL"; then | |
8362 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8363 | else | |
c6b750e1 DJ |
8364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8365 | for as_dir in $PATH | |
8366 | do | |
8367 | IFS=$as_save_IFS | |
8368 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8369 | for ac_exec_ext in '' $ac_executable_extensions; do |
8370 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8371 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8372 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8373 | break 2 |
8374 | fi | |
8375 | done | |
81ecdfbb RW |
8376 | done |
8377 | IFS=$as_save_IFS | |
c6b750e1 | 8378 | |
859789af AC |
8379 | fi |
8380 | fi | |
c6b750e1 | 8381 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 8382 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8384 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8385 | else |
81ecdfbb RW |
8386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8387 | $as_echo "no" >&6; } | |
859789af AC |
8388 | fi |
8389 | ||
81ecdfbb | 8390 | |
05cbd757 PB |
8391 | fi |
8392 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8393 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8394 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8396 | $as_echo_n "checking for $ac_word... " >&6; } | |
8397 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8398 | $as_echo_n "(cached) " >&6 | |
859789af | 8399 | else |
05cbd757 PB |
8400 | if test -n "$DLLTOOL"; then |
8401 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 8402 | else |
c6b750e1 DJ |
8403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8404 | for as_dir in $PATH | |
8405 | do | |
8406 | IFS=$as_save_IFS | |
8407 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8408 | for ac_exec_ext in '' $ac_executable_extensions; do |
8409 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8410 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8411 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8412 | break 2 |
8413 | fi | |
8414 | done | |
81ecdfbb RW |
8415 | done |
8416 | IFS=$as_save_IFS | |
c6b750e1 | 8417 | |
859789af AC |
8418 | fi |
8419 | fi | |
c6b750e1 | 8420 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 8421 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8423 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8424 | else |
81ecdfbb RW |
8425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8426 | $as_echo "no" >&6; } | |
859789af | 8427 | fi |
c6b750e1 | 8428 | |
81ecdfbb | 8429 | |
05cbd757 PB |
8430 | fi |
8431 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8432 | done | |
8433 | ||
8434 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8435 | set dummy dlltool | |
8436 | if test $build = $host ; then | |
8437 | DLLTOOL="$2" | |
859789af | 8438 | else |
05cbd757 | 8439 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 8440 | fi |
859789af AC |
8441 | fi |
8442 | ||
9a819804 AO |
8443 | |
8444 | ||
8445 | if test -n "$LD"; then | |
8446 | ac_cv_prog_LD=$LD | |
8447 | elif test -n "$ac_cv_prog_LD"; then | |
8448 | LD=$ac_cv_prog_LD | |
8449 | fi | |
8450 | ||
8451 | if test -n "$ac_cv_prog_LD"; then | |
8452 | for ncn_progname in ld; do | |
8453 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8454 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8456 | $as_echo_n "checking for $ac_word... " >&6; } | |
8457 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8458 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8459 | else |
8460 | if test -n "$LD"; then | |
8461 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8462 | else | |
8463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8464 | for as_dir in $PATH | |
8465 | do | |
8466 | IFS=$as_save_IFS | |
8467 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8468 | for ac_exec_ext in '' $ac_executable_extensions; do |
8469 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8470 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8471 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8472 | break 2 |
8473 | fi | |
8474 | done | |
81ecdfbb RW |
8475 | done |
8476 | IFS=$as_save_IFS | |
9a819804 AO |
8477 | |
8478 | fi | |
8479 | fi | |
8480 | LD=$ac_cv_prog_LD | |
8481 | if test -n "$LD"; then | |
81ecdfbb RW |
8482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8483 | $as_echo "$LD" >&6; } | |
9a819804 | 8484 | else |
81ecdfbb RW |
8485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8486 | $as_echo "no" >&6; } | |
9a819804 AO |
8487 | fi |
8488 | ||
81ecdfbb | 8489 | |
9a819804 AO |
8490 | done |
8491 | fi | |
8492 | ||
8493 | for ncn_progname in ld; do | |
05cbd757 PB |
8494 | if test -n "$ncn_tool_prefix"; then |
8495 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8496 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8498 | $as_echo_n "checking for $ac_word... " >&6; } | |
8499 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8500 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8501 | else |
8502 | if test -n "$LD"; then | |
8503 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8504 | else | |
c6b750e1 DJ |
8505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8506 | for as_dir in $PATH | |
8507 | do | |
8508 | IFS=$as_save_IFS | |
8509 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8510 | for ac_exec_ext in '' $ac_executable_extensions; do |
8511 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8512 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8513 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8514 | break 2 |
8515 | fi | |
8516 | done | |
81ecdfbb RW |
8517 | done |
8518 | IFS=$as_save_IFS | |
c6b750e1 | 8519 | |
859789af AC |
8520 | fi |
8521 | fi | |
c6b750e1 | 8522 | LD=$ac_cv_prog_LD |
859789af | 8523 | if test -n "$LD"; then |
81ecdfbb RW |
8524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8525 | $as_echo "$LD" >&6; } | |
859789af | 8526 | else |
81ecdfbb RW |
8527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8528 | $as_echo "no" >&6; } | |
859789af AC |
8529 | fi |
8530 | ||
81ecdfbb | 8531 | |
05cbd757 PB |
8532 | fi |
8533 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8534 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8535 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8537 | $as_echo_n "checking for $ac_word... " >&6; } | |
8538 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8539 | $as_echo_n "(cached) " >&6 | |
859789af | 8540 | else |
05cbd757 PB |
8541 | if test -n "$LD"; then |
8542 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 8543 | else |
c6b750e1 DJ |
8544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8545 | for as_dir in $PATH | |
8546 | do | |
8547 | IFS=$as_save_IFS | |
8548 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8549 | for ac_exec_ext in '' $ac_executable_extensions; do |
8550 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8551 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8552 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8553 | break 2 |
8554 | fi | |
8555 | done | |
81ecdfbb RW |
8556 | done |
8557 | IFS=$as_save_IFS | |
c6b750e1 | 8558 | |
859789af AC |
8559 | fi |
8560 | fi | |
c6b750e1 | 8561 | LD=$ac_cv_prog_LD |
05cbd757 | 8562 | if test -n "$LD"; then |
81ecdfbb RW |
8563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8564 | $as_echo "$LD" >&6; } | |
859789af | 8565 | else |
81ecdfbb RW |
8566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8567 | $as_echo "no" >&6; } | |
859789af | 8568 | fi |
c6b750e1 | 8569 | |
81ecdfbb | 8570 | |
05cbd757 PB |
8571 | fi |
8572 | test -n "$ac_cv_prog_LD" && break | |
8573 | done | |
8574 | ||
8575 | if test -z "$ac_cv_prog_LD" ; then | |
8576 | set dummy ld | |
8577 | if test $build = $host ; then | |
8578 | LD="$2" | |
859789af | 8579 | else |
05cbd757 | 8580 | LD="${ncn_tool_prefix}$2" |
859789af | 8581 | fi |
859789af AC |
8582 | fi |
8583 | ||
9a819804 AO |
8584 | |
8585 | ||
8586 | if test -n "$LIPO"; then | |
8587 | ac_cv_prog_LIPO=$LIPO | |
8588 | elif test -n "$ac_cv_prog_LIPO"; then | |
8589 | LIPO=$ac_cv_prog_LIPO | |
8590 | fi | |
8591 | ||
8592 | if test -n "$ac_cv_prog_LIPO"; then | |
8593 | for ncn_progname in lipo; do | |
8594 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8595 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8597 | $as_echo_n "checking for $ac_word... " >&6; } | |
8598 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8599 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8600 | else |
8601 | if test -n "$LIPO"; then | |
8602 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8603 | else | |
8604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8605 | for as_dir in $PATH | |
8606 | do | |
8607 | IFS=$as_save_IFS | |
8608 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8609 | for ac_exec_ext in '' $ac_executable_extensions; do |
8610 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8611 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8612 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8613 | break 2 |
8614 | fi | |
8615 | done | |
81ecdfbb RW |
8616 | done |
8617 | IFS=$as_save_IFS | |
9a819804 AO |
8618 | |
8619 | fi | |
8620 | fi | |
8621 | LIPO=$ac_cv_prog_LIPO | |
8622 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8624 | $as_echo "$LIPO" >&6; } | |
9a819804 | 8625 | else |
81ecdfbb RW |
8626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8627 | $as_echo "no" >&6; } | |
9a819804 AO |
8628 | fi |
8629 | ||
81ecdfbb | 8630 | |
9a819804 AO |
8631 | done |
8632 | fi | |
8633 | ||
8634 | for ncn_progname in lipo; do | |
be01d343 PB |
8635 | if test -n "$ncn_tool_prefix"; then |
8636 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8637 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8639 | $as_echo_n "checking for $ac_word... " >&6; } | |
8640 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8641 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8642 | else |
8643 | if test -n "$LIPO"; then | |
8644 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8645 | else | |
c6b750e1 DJ |
8646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8647 | for as_dir in $PATH | |
8648 | do | |
8649 | IFS=$as_save_IFS | |
8650 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8651 | for ac_exec_ext in '' $ac_executable_extensions; do |
8652 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8653 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8654 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8655 | break 2 |
8656 | fi | |
8657 | done | |
81ecdfbb RW |
8658 | done |
8659 | IFS=$as_save_IFS | |
c6b750e1 | 8660 | |
be01d343 PB |
8661 | fi |
8662 | fi | |
c6b750e1 | 8663 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8664 | if test -n "$LIPO"; then |
81ecdfbb RW |
8665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8666 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8667 | else |
81ecdfbb RW |
8668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8669 | $as_echo "no" >&6; } | |
be01d343 PB |
8670 | fi |
8671 | ||
81ecdfbb | 8672 | |
be01d343 PB |
8673 | fi |
8674 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8675 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8676 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8678 | $as_echo_n "checking for $ac_word... " >&6; } | |
8679 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8680 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8681 | else |
8682 | if test -n "$LIPO"; then | |
8683 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8684 | else | |
c6b750e1 DJ |
8685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8686 | for as_dir in $PATH | |
8687 | do | |
8688 | IFS=$as_save_IFS | |
8689 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8690 | for ac_exec_ext in '' $ac_executable_extensions; do |
8691 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8692 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8694 | break 2 |
8695 | fi | |
8696 | done | |
81ecdfbb RW |
8697 | done |
8698 | IFS=$as_save_IFS | |
c6b750e1 | 8699 | |
be01d343 PB |
8700 | fi |
8701 | fi | |
c6b750e1 | 8702 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8703 | if test -n "$LIPO"; then |
81ecdfbb RW |
8704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8705 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8706 | else |
81ecdfbb RW |
8707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8708 | $as_echo "no" >&6; } | |
be01d343 | 8709 | fi |
c6b750e1 | 8710 | |
81ecdfbb | 8711 | |
be01d343 PB |
8712 | fi |
8713 | test -n "$ac_cv_prog_LIPO" && break | |
8714 | done | |
8715 | ||
8716 | if test -z "$ac_cv_prog_LIPO" ; then | |
8717 | set dummy lipo | |
8718 | if test $build = $host ; then | |
8719 | LIPO="$2" | |
8720 | else | |
8721 | LIPO="${ncn_tool_prefix}$2" | |
8722 | fi | |
8723 | fi | |
8724 | ||
9a819804 AO |
8725 | |
8726 | ||
8727 | if test -n "$NM"; then | |
8728 | ac_cv_prog_NM=$NM | |
8729 | elif test -n "$ac_cv_prog_NM"; then | |
8730 | NM=$ac_cv_prog_NM | |
8731 | fi | |
8732 | ||
8733 | if test -n "$ac_cv_prog_NM"; then | |
8734 | for ncn_progname in nm; do | |
8735 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8736 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8738 | $as_echo_n "checking for $ac_word... " >&6; } | |
8739 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8740 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8741 | else |
8742 | if test -n "$NM"; then | |
8743 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8744 | else | |
c6b750e1 DJ |
8745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8746 | for as_dir in $PATH | |
8747 | do | |
8748 | IFS=$as_save_IFS | |
8749 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8750 | for ac_exec_ext in '' $ac_executable_extensions; do |
8751 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8752 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8753 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8754 | break 2 |
8755 | fi | |
8756 | done | |
81ecdfbb RW |
8757 | done |
8758 | IFS=$as_save_IFS | |
c6b750e1 | 8759 | |
859789af AC |
8760 | fi |
8761 | fi | |
c6b750e1 | 8762 | NM=$ac_cv_prog_NM |
859789af | 8763 | if test -n "$NM"; then |
81ecdfbb RW |
8764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8765 | $as_echo "$NM" >&6; } | |
859789af | 8766 | else |
81ecdfbb RW |
8767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8768 | $as_echo "no" >&6; } | |
859789af AC |
8769 | fi |
8770 | ||
81ecdfbb | 8771 | |
9a819804 AO |
8772 | done |
8773 | fi | |
8774 | ||
8775 | for ncn_progname in nm; do | |
8776 | if test -n "$ncn_tool_prefix"; then | |
8777 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8778 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8780 | $as_echo_n "checking for $ac_word... " >&6; } | |
8781 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8782 | $as_echo_n "(cached) " >&6 | |
859789af | 8783 | else |
05cbd757 PB |
8784 | if test -n "$NM"; then |
8785 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 8786 | else |
c6b750e1 DJ |
8787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8788 | for as_dir in $PATH | |
8789 | do | |
8790 | IFS=$as_save_IFS | |
8791 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8792 | for ac_exec_ext in '' $ac_executable_extensions; do |
8793 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8794 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8796 | break 2 |
8797 | fi | |
8798 | done | |
81ecdfbb RW |
8799 | done |
8800 | IFS=$as_save_IFS | |
c6b750e1 | 8801 | |
859789af AC |
8802 | fi |
8803 | fi | |
c6b750e1 | 8804 | NM=$ac_cv_prog_NM |
05cbd757 | 8805 | if test -n "$NM"; then |
81ecdfbb RW |
8806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8807 | $as_echo "$NM" >&6; } | |
859789af | 8808 | else |
81ecdfbb RW |
8809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8810 | $as_echo "no" >&6; } | |
859789af | 8811 | fi |
c6b750e1 | 8812 | |
81ecdfbb | 8813 | |
05cbd757 | 8814 | fi |
9a819804 AO |
8815 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8816 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8817 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8819 | $as_echo_n "checking for $ac_word... " >&6; } | |
8820 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8821 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8822 | else |
8823 | if test -n "$NM"; then | |
8824 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8825 | else | |
8826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8827 | for as_dir in $PATH | |
8828 | do | |
8829 | IFS=$as_save_IFS | |
8830 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8831 | for ac_exec_ext in '' $ac_executable_extensions; do |
8832 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8833 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8834 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8835 | break 2 |
8836 | fi | |
8837 | done | |
81ecdfbb RW |
8838 | done |
8839 | IFS=$as_save_IFS | |
9a819804 AO |
8840 | |
8841 | fi | |
8842 | fi | |
8843 | NM=$ac_cv_prog_NM | |
8844 | if test -n "$NM"; then | |
81ecdfbb RW |
8845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8846 | $as_echo "$NM" >&6; } | |
9a819804 | 8847 | else |
81ecdfbb RW |
8848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8849 | $as_echo "no" >&6; } | |
9a819804 AO |
8850 | fi |
8851 | ||
81ecdfbb | 8852 | |
9a819804 AO |
8853 | fi |
8854 | test -n "$ac_cv_prog_NM" && break | |
8855 | done | |
8856 | ||
8857 | if test -z "$ac_cv_prog_NM" ; then | |
8858 | set dummy nm | |
8859 | if test $build = $host ; then | |
8860 | NM="$2" | |
8861 | else | |
8862 | NM="${ncn_tool_prefix}$2" | |
8863 | fi | |
8864 | fi | |
8865 | ||
8866 | ||
8867 | ||
8868 | if test -n "$RANLIB"; then | |
8869 | ac_cv_prog_RANLIB=$RANLIB | |
8870 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8871 | RANLIB=$ac_cv_prog_RANLIB | |
8872 | fi | |
8873 | ||
8874 | if test -n "$ac_cv_prog_RANLIB"; then | |
8875 | for ncn_progname in ranlib; do | |
8876 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8877 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8879 | $as_echo_n "checking for $ac_word... " >&6; } | |
8880 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8881 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8882 | else |
8883 | if test -n "$RANLIB"; then | |
8884 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8885 | else | |
8886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8887 | for as_dir in $PATH | |
8888 | do | |
8889 | IFS=$as_save_IFS | |
8890 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8891 | for ac_exec_ext in '' $ac_executable_extensions; do |
8892 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8893 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 8894 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8895 | break 2 |
8896 | fi | |
8897 | done | |
81ecdfbb RW |
8898 | done |
8899 | IFS=$as_save_IFS | |
9a819804 AO |
8900 | |
8901 | fi | |
8902 | fi | |
8903 | RANLIB=$ac_cv_prog_RANLIB | |
8904 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
8905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8906 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 8907 | else |
81ecdfbb RW |
8908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8909 | $as_echo "no" >&6; } | |
9a819804 AO |
8910 | fi |
8911 | ||
81ecdfbb | 8912 | |
9a819804 AO |
8913 | done |
8914 | fi | |
859789af | 8915 | |
9a819804 | 8916 | for ncn_progname in ranlib; do |
05cbd757 PB |
8917 | if test -n "$ncn_tool_prefix"; then |
8918 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8919 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8921 | $as_echo_n "checking for $ac_word... " >&6; } | |
8922 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8923 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8924 | else |
8925 | if test -n "$RANLIB"; then | |
8926 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8927 | else | |
c6b750e1 DJ |
8928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8929 | for as_dir in $PATH | |
8930 | do | |
8931 | IFS=$as_save_IFS | |
8932 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8933 | for ac_exec_ext in '' $ac_executable_extensions; do |
8934 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8935 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8936 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8937 | break 2 |
8938 | fi | |
8939 | done | |
81ecdfbb RW |
8940 | done |
8941 | IFS=$as_save_IFS | |
c6b750e1 | 8942 | |
859789af AC |
8943 | fi |
8944 | fi | |
c6b750e1 | 8945 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 8946 | if test -n "$RANLIB"; then |
81ecdfbb RW |
8947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8948 | $as_echo "$RANLIB" >&6; } | |
859789af | 8949 | else |
81ecdfbb RW |
8950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8951 | $as_echo "no" >&6; } | |
859789af AC |
8952 | fi |
8953 | ||
81ecdfbb | 8954 | |
05cbd757 PB |
8955 | fi |
8956 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
8957 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8958 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8960 | $as_echo_n "checking for $ac_word... " >&6; } | |
8961 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8962 | $as_echo_n "(cached) " >&6 | |
859789af | 8963 | else |
05cbd757 PB |
8964 | if test -n "$RANLIB"; then |
8965 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 8966 | else |
c6b750e1 DJ |
8967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8968 | for as_dir in $PATH | |
8969 | do | |
8970 | IFS=$as_save_IFS | |
8971 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8972 | for ac_exec_ext in '' $ac_executable_extensions; do |
8973 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8974 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 8975 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8976 | break 2 |
8977 | fi | |
8978 | done | |
81ecdfbb RW |
8979 | done |
8980 | IFS=$as_save_IFS | |
c6b750e1 | 8981 | |
859789af AC |
8982 | fi |
8983 | fi | |
c6b750e1 | 8984 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 8985 | if test -n "$RANLIB"; then |
81ecdfbb RW |
8986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8987 | $as_echo "$RANLIB" >&6; } | |
859789af | 8988 | else |
81ecdfbb RW |
8989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8990 | $as_echo "no" >&6; } | |
859789af | 8991 | fi |
c6b750e1 | 8992 | |
81ecdfbb | 8993 | |
859789af | 8994 | fi |
05cbd757 PB |
8995 | test -n "$ac_cv_prog_RANLIB" && break |
8996 | done | |
8997 | ||
8998 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 8999 | RANLIB="true" |
859789af AC |
9000 | fi |
9001 | ||
9a819804 AO |
9002 | |
9003 | ||
9004 | if test -n "$STRIP"; then | |
9005 | ac_cv_prog_STRIP=$STRIP | |
9006 | elif test -n "$ac_cv_prog_STRIP"; then | |
9007 | STRIP=$ac_cv_prog_STRIP | |
9008 | fi | |
9009 | ||
9010 | if test -n "$ac_cv_prog_STRIP"; then | |
9011 | for ncn_progname in strip; do | |
9012 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9013 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9015 | $as_echo_n "checking for $ac_word... " >&6; } | |
9016 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9017 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9018 | else |
9019 | if test -n "$STRIP"; then | |
9020 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9021 | else | |
9022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9023 | for as_dir in $PATH | |
9024 | do | |
9025 | IFS=$as_save_IFS | |
9026 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9027 | for ac_exec_ext in '' $ac_executable_extensions; do |
9028 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9029 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9031 | break 2 |
9032 | fi | |
9033 | done | |
81ecdfbb RW |
9034 | done |
9035 | IFS=$as_save_IFS | |
9a819804 AO |
9036 | |
9037 | fi | |
9038 | fi | |
9039 | STRIP=$ac_cv_prog_STRIP | |
9040 | if test -n "$STRIP"; then | |
81ecdfbb RW |
9041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9042 | $as_echo "$STRIP" >&6; } | |
9a819804 | 9043 | else |
81ecdfbb RW |
9044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9045 | $as_echo "no" >&6; } | |
9a819804 AO |
9046 | fi |
9047 | ||
81ecdfbb | 9048 | |
9a819804 AO |
9049 | done |
9050 | fi | |
9051 | ||
9052 | for ncn_progname in strip; do | |
be01d343 PB |
9053 | if test -n "$ncn_tool_prefix"; then |
9054 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9055 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9057 | $as_echo_n "checking for $ac_word... " >&6; } | |
9058 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9059 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
9060 | else |
9061 | if test -n "$STRIP"; then | |
9062 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9063 | else | |
c6b750e1 DJ |
9064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9065 | for as_dir in $PATH | |
9066 | do | |
9067 | IFS=$as_save_IFS | |
9068 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9069 | for ac_exec_ext in '' $ac_executable_extensions; do |
9070 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9071 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9072 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9073 | break 2 |
9074 | fi | |
9075 | done | |
81ecdfbb RW |
9076 | done |
9077 | IFS=$as_save_IFS | |
c6b750e1 | 9078 | |
be01d343 PB |
9079 | fi |
9080 | fi | |
c6b750e1 | 9081 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9082 | if test -n "$STRIP"; then |
81ecdfbb RW |
9083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9084 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9085 | else |
81ecdfbb RW |
9086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9087 | $as_echo "no" >&6; } | |
be01d343 PB |
9088 | fi |
9089 | ||
81ecdfbb | 9090 | |
be01d343 PB |
9091 | fi |
9092 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9093 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9094 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9096 | $as_echo_n "checking for $ac_word... " >&6; } | |
9097 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9098 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
9099 | else |
9100 | if test -n "$STRIP"; then | |
9101 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9102 | else | |
c6b750e1 DJ |
9103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9104 | for as_dir in $PATH | |
9105 | do | |
9106 | IFS=$as_save_IFS | |
9107 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9108 | for ac_exec_ext in '' $ac_executable_extensions; do |
9109 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9110 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9111 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9112 | break 2 |
9113 | fi | |
9114 | done | |
81ecdfbb RW |
9115 | done |
9116 | IFS=$as_save_IFS | |
c6b750e1 | 9117 | |
be01d343 PB |
9118 | fi |
9119 | fi | |
c6b750e1 | 9120 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9121 | if test -n "$STRIP"; then |
81ecdfbb RW |
9122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9123 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9124 | else |
81ecdfbb RW |
9125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9126 | $as_echo "no" >&6; } | |
be01d343 | 9127 | fi |
c6b750e1 | 9128 | |
81ecdfbb | 9129 | |
be01d343 PB |
9130 | fi |
9131 | test -n "$ac_cv_prog_STRIP" && break | |
9132 | done | |
9133 | ||
9134 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 9135 | STRIP="true" |
be01d343 PB |
9136 | fi |
9137 | ||
9a819804 AO |
9138 | |
9139 | ||
9140 | if test -n "$WINDRES"; then | |
9141 | ac_cv_prog_WINDRES=$WINDRES | |
9142 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9143 | WINDRES=$ac_cv_prog_WINDRES | |
9144 | fi | |
9145 | ||
9146 | if test -n "$ac_cv_prog_WINDRES"; then | |
9147 | for ncn_progname in windres; do | |
9148 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9149 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9151 | $as_echo_n "checking for $ac_word... " >&6; } | |
9152 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9153 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9154 | else |
9155 | if test -n "$WINDRES"; then | |
9156 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9157 | else | |
9158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9159 | for as_dir in $PATH | |
9160 | do | |
9161 | IFS=$as_save_IFS | |
9162 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9163 | for ac_exec_ext in '' $ac_executable_extensions; do |
9164 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9165 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9166 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9167 | break 2 |
9168 | fi | |
9169 | done | |
81ecdfbb RW |
9170 | done |
9171 | IFS=$as_save_IFS | |
9a819804 AO |
9172 | |
9173 | fi | |
9174 | fi | |
9175 | WINDRES=$ac_cv_prog_WINDRES | |
9176 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
9177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9178 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 9179 | else |
81ecdfbb RW |
9180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9181 | $as_echo "no" >&6; } | |
9a819804 AO |
9182 | fi |
9183 | ||
81ecdfbb | 9184 | |
9a819804 AO |
9185 | done |
9186 | fi | |
9187 | ||
9188 | for ncn_progname in windres; do | |
05cbd757 PB |
9189 | if test -n "$ncn_tool_prefix"; then |
9190 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9191 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9193 | $as_echo_n "checking for $ac_word... " >&6; } | |
9194 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9195 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9196 | else |
9197 | if test -n "$WINDRES"; then | |
9198 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9199 | else | |
c6b750e1 DJ |
9200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9201 | for as_dir in $PATH | |
9202 | do | |
9203 | IFS=$as_save_IFS | |
9204 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9205 | for ac_exec_ext in '' $ac_executable_extensions; do |
9206 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9207 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9209 | break 2 |
9210 | fi | |
9211 | done | |
81ecdfbb RW |
9212 | done |
9213 | IFS=$as_save_IFS | |
c6b750e1 | 9214 | |
859789af AC |
9215 | fi |
9216 | fi | |
c6b750e1 | 9217 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 9218 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9220 | $as_echo "$WINDRES" >&6; } | |
859789af | 9221 | else |
81ecdfbb RW |
9222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9223 | $as_echo "no" >&6; } | |
859789af AC |
9224 | fi |
9225 | ||
81ecdfbb | 9226 | |
05cbd757 PB |
9227 | fi |
9228 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9229 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9230 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9232 | $as_echo_n "checking for $ac_word... " >&6; } | |
9233 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9234 | $as_echo_n "(cached) " >&6 | |
859789af | 9235 | else |
05cbd757 PB |
9236 | if test -n "$WINDRES"; then |
9237 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 9238 | else |
c6b750e1 DJ |
9239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9240 | for as_dir in $PATH | |
9241 | do | |
9242 | IFS=$as_save_IFS | |
9243 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9244 | for ac_exec_ext in '' $ac_executable_extensions; do |
9245 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9246 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9247 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9248 | break 2 |
9249 | fi | |
9250 | done | |
81ecdfbb RW |
9251 | done |
9252 | IFS=$as_save_IFS | |
c6b750e1 | 9253 | |
859789af AC |
9254 | fi |
9255 | fi | |
c6b750e1 | 9256 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 9257 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9259 | $as_echo "$WINDRES" >&6; } | |
859789af | 9260 | else |
81ecdfbb RW |
9261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9262 | $as_echo "no" >&6; } | |
859789af | 9263 | fi |
c6b750e1 | 9264 | |
81ecdfbb | 9265 | |
05cbd757 PB |
9266 | fi |
9267 | test -n "$ac_cv_prog_WINDRES" && break | |
9268 | done | |
9269 | ||
9270 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9271 | set dummy windres | |
9272 | if test $build = $host ; then | |
9273 | WINDRES="$2" | |
859789af | 9274 | else |
05cbd757 | 9275 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 9276 | fi |
859789af AC |
9277 | fi |
9278 | ||
9a819804 AO |
9279 | |
9280 | ||
0c24b341 NC |
9281 | if test -n "$WINDMC"; then |
9282 | ac_cv_prog_WINDMC=$WINDMC | |
9283 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9284 | WINDMC=$ac_cv_prog_WINDMC | |
9285 | fi | |
9286 | ||
9287 | if test -n "$ac_cv_prog_WINDMC"; then | |
9288 | for ncn_progname in windmc; do | |
9289 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9290 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9292 | $as_echo_n "checking for $ac_word... " >&6; } | |
9293 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9294 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9295 | else |
9296 | if test -n "$WINDMC"; then | |
9297 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9298 | else | |
9299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9300 | for as_dir in $PATH | |
9301 | do | |
9302 | IFS=$as_save_IFS | |
9303 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9304 | for ac_exec_ext in '' $ac_executable_extensions; do |
9305 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9306 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9307 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9308 | break 2 |
9309 | fi | |
9310 | done | |
81ecdfbb RW |
9311 | done |
9312 | IFS=$as_save_IFS | |
0c24b341 NC |
9313 | |
9314 | fi | |
9315 | fi | |
9316 | WINDMC=$ac_cv_prog_WINDMC | |
9317 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9319 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9320 | else |
81ecdfbb RW |
9321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9322 | $as_echo "no" >&6; } | |
0c24b341 NC |
9323 | fi |
9324 | ||
81ecdfbb | 9325 | |
0c24b341 NC |
9326 | done |
9327 | fi | |
9328 | ||
9329 | for ncn_progname in windmc; do | |
9330 | if test -n "$ncn_tool_prefix"; then | |
9331 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9332 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9334 | $as_echo_n "checking for $ac_word... " >&6; } | |
9335 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9336 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9337 | else |
9338 | if test -n "$WINDMC"; then | |
9339 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9340 | else | |
9341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9342 | for as_dir in $PATH | |
9343 | do | |
9344 | IFS=$as_save_IFS | |
9345 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9346 | for ac_exec_ext in '' $ac_executable_extensions; do |
9347 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9348 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9349 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9350 | break 2 |
9351 | fi | |
9352 | done | |
81ecdfbb RW |
9353 | done |
9354 | IFS=$as_save_IFS | |
0c24b341 NC |
9355 | |
9356 | fi | |
9357 | fi | |
9358 | WINDMC=$ac_cv_prog_WINDMC | |
9359 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9361 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9362 | else |
81ecdfbb RW |
9363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9364 | $as_echo "no" >&6; } | |
0c24b341 NC |
9365 | fi |
9366 | ||
81ecdfbb | 9367 | |
0c24b341 NC |
9368 | fi |
9369 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9370 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9371 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9373 | $as_echo_n "checking for $ac_word... " >&6; } | |
9374 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9375 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9376 | else |
9377 | if test -n "$WINDMC"; then | |
9378 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9379 | else | |
9380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9381 | for as_dir in $PATH | |
9382 | do | |
9383 | IFS=$as_save_IFS | |
9384 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9385 | for ac_exec_ext in '' $ac_executable_extensions; do |
9386 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9387 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9388 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9389 | break 2 |
9390 | fi | |
9391 | done | |
81ecdfbb RW |
9392 | done |
9393 | IFS=$as_save_IFS | |
0c24b341 NC |
9394 | |
9395 | fi | |
9396 | fi | |
9397 | WINDMC=$ac_cv_prog_WINDMC | |
9398 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9400 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9401 | else |
81ecdfbb RW |
9402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9403 | $as_echo "no" >&6; } | |
0c24b341 NC |
9404 | fi |
9405 | ||
81ecdfbb | 9406 | |
0c24b341 NC |
9407 | fi |
9408 | test -n "$ac_cv_prog_WINDMC" && break | |
9409 | done | |
9410 | ||
9411 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9412 | set dummy windmc | |
9413 | if test $build = $host ; then | |
9414 | WINDMC="$2" | |
9415 | else | |
9416 | WINDMC="${ncn_tool_prefix}$2" | |
9417 | fi | |
9418 | fi | |
9419 | ||
9420 | ||
9421 | ||
9a819804 AO |
9422 | if test -n "$OBJCOPY"; then |
9423 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9424 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9425 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9426 | fi | |
9427 | ||
9428 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9429 | for ncn_progname in objcopy; do | |
9430 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9431 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9433 | $as_echo_n "checking for $ac_word... " >&6; } | |
9434 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9435 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9436 | else |
9437 | if test -n "$OBJCOPY"; then | |
9438 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9439 | else | |
9440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9441 | for as_dir in $PATH | |
9442 | do | |
9443 | IFS=$as_save_IFS | |
9444 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9445 | for ac_exec_ext in '' $ac_executable_extensions; do |
9446 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9447 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9448 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9449 | break 2 |
9450 | fi | |
9451 | done | |
81ecdfbb RW |
9452 | done |
9453 | IFS=$as_save_IFS | |
9a819804 AO |
9454 | |
9455 | fi | |
9456 | fi | |
9457 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9458 | if test -n "$OBJCOPY"; then | |
81ecdfbb RW |
9459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9460 | $as_echo "$OBJCOPY" >&6; } | |
9a819804 | 9461 | else |
81ecdfbb RW |
9462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9463 | $as_echo "no" >&6; } | |
9a819804 AO |
9464 | fi |
9465 | ||
81ecdfbb | 9466 | |
9a819804 AO |
9467 | done |
9468 | fi | |
9469 | ||
9470 | for ncn_progname in objcopy; do | |
05cbd757 PB |
9471 | if test -n "$ncn_tool_prefix"; then |
9472 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9473 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9475 | $as_echo_n "checking for $ac_word... " >&6; } | |
9476 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9477 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9478 | else |
9479 | if test -n "$OBJCOPY"; then | |
9480 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9481 | else | |
c6b750e1 DJ |
9482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9483 | for as_dir in $PATH | |
9484 | do | |
9485 | IFS=$as_save_IFS | |
9486 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9487 | for ac_exec_ext in '' $ac_executable_extensions; do |
9488 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9489 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9490 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9491 | break 2 |
9492 | fi | |
9493 | done | |
81ecdfbb RW |
9494 | done |
9495 | IFS=$as_save_IFS | |
c6b750e1 | 9496 | |
859789af AC |
9497 | fi |
9498 | fi | |
c6b750e1 | 9499 | OBJCOPY=$ac_cv_prog_OBJCOPY |
859789af | 9500 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9502 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9503 | else |
81ecdfbb RW |
9504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9505 | $as_echo "no" >&6; } | |
859789af AC |
9506 | fi |
9507 | ||
81ecdfbb | 9508 | |
05cbd757 PB |
9509 | fi |
9510 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9511 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9512 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9514 | $as_echo_n "checking for $ac_word... " >&6; } | |
9515 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9516 | $as_echo_n "(cached) " >&6 | |
859789af | 9517 | else |
05cbd757 PB |
9518 | if test -n "$OBJCOPY"; then |
9519 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
859789af | 9520 | else |
c6b750e1 DJ |
9521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9522 | for as_dir in $PATH | |
9523 | do | |
9524 | IFS=$as_save_IFS | |
9525 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9526 | for ac_exec_ext in '' $ac_executable_extensions; do |
9527 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9528 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9529 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9530 | break 2 |
9531 | fi | |
9532 | done | |
81ecdfbb RW |
9533 | done |
9534 | IFS=$as_save_IFS | |
c6b750e1 | 9535 | |
859789af AC |
9536 | fi |
9537 | fi | |
c6b750e1 | 9538 | OBJCOPY=$ac_cv_prog_OBJCOPY |
05cbd757 | 9539 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9541 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9542 | else |
81ecdfbb RW |
9543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9544 | $as_echo "no" >&6; } | |
859789af | 9545 | fi |
c6b750e1 | 9546 | |
81ecdfbb | 9547 | |
05cbd757 PB |
9548 | fi |
9549 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9550 | done | |
9551 | ||
9552 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9553 | set dummy objcopy | |
9554 | if test $build = $host ; then | |
9555 | OBJCOPY="$2" | |
859789af | 9556 | else |
05cbd757 | 9557 | OBJCOPY="${ncn_tool_prefix}$2" |
859789af | 9558 | fi |
859789af AC |
9559 | fi |
9560 | ||
9a819804 AO |
9561 | |
9562 | ||
9563 | if test -n "$OBJDUMP"; then | |
9564 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9565 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9566 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9567 | fi | |
9568 | ||
9569 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9570 | for ncn_progname in objdump; do | |
9571 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9572 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9574 | $as_echo_n "checking for $ac_word... " >&6; } | |
9575 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9576 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9577 | else |
9578 | if test -n "$OBJDUMP"; then | |
9579 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9580 | else | |
9581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9582 | for as_dir in $PATH | |
9583 | do | |
9584 | IFS=$as_save_IFS | |
9585 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9586 | for ac_exec_ext in '' $ac_executable_extensions; do |
9587 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9588 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9589 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9590 | break 2 |
9591 | fi | |
9592 | done | |
81ecdfbb RW |
9593 | done |
9594 | IFS=$as_save_IFS | |
9a819804 AO |
9595 | |
9596 | fi | |
9597 | fi | |
9598 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9599 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
9600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9601 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 9602 | else |
81ecdfbb RW |
9603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9604 | $as_echo "no" >&6; } | |
9a819804 AO |
9605 | fi |
9606 | ||
81ecdfbb | 9607 | |
9a819804 AO |
9608 | done |
9609 | fi | |
9610 | ||
9611 | for ncn_progname in objdump; do | |
05cbd757 PB |
9612 | if test -n "$ncn_tool_prefix"; then |
9613 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9614 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9616 | $as_echo_n "checking for $ac_word... " >&6; } | |
9617 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9618 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9619 | else |
9620 | if test -n "$OBJDUMP"; then | |
9621 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9622 | else | |
c6b750e1 DJ |
9623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9624 | for as_dir in $PATH | |
9625 | do | |
9626 | IFS=$as_save_IFS | |
9627 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9628 | for ac_exec_ext in '' $ac_executable_extensions; do |
9629 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9630 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9631 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9632 | break 2 |
9633 | fi | |
9634 | done | |
81ecdfbb RW |
9635 | done |
9636 | IFS=$as_save_IFS | |
c6b750e1 | 9637 | |
859789af AC |
9638 | fi |
9639 | fi | |
c6b750e1 | 9640 | OBJDUMP=$ac_cv_prog_OBJDUMP |
859789af | 9641 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9643 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9644 | else |
81ecdfbb RW |
9645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9646 | $as_echo "no" >&6; } | |
859789af AC |
9647 | fi |
9648 | ||
81ecdfbb | 9649 | |
05cbd757 PB |
9650 | fi |
9651 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9652 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9653 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9655 | $as_echo_n "checking for $ac_word... " >&6; } | |
9656 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9657 | $as_echo_n "(cached) " >&6 | |
859789af | 9658 | else |
05cbd757 PB |
9659 | if test -n "$OBJDUMP"; then |
9660 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 9661 | else |
c6b750e1 DJ |
9662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9663 | for as_dir in $PATH | |
9664 | do | |
9665 | IFS=$as_save_IFS | |
9666 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9667 | for ac_exec_ext in '' $ac_executable_extensions; do |
9668 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9669 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9670 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9671 | break 2 |
9672 | fi | |
9673 | done | |
81ecdfbb RW |
9674 | done |
9675 | IFS=$as_save_IFS | |
c6b750e1 | 9676 | |
859789af AC |
9677 | fi |
9678 | fi | |
c6b750e1 | 9679 | OBJDUMP=$ac_cv_prog_OBJDUMP |
05cbd757 | 9680 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9682 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9683 | else |
81ecdfbb RW |
9684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9685 | $as_echo "no" >&6; } | |
859789af | 9686 | fi |
c6b750e1 | 9687 | |
81ecdfbb | 9688 | |
05cbd757 PB |
9689 | fi |
9690 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9691 | done | |
9692 | ||
9693 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9694 | set dummy objdump | |
9695 | if test $build = $host ; then | |
9696 | OBJDUMP="$2" | |
859789af | 9697 | else |
05cbd757 | 9698 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 9699 | fi |
859789af AC |
9700 | fi |
9701 | ||
a0da8069 NN |
9702 | |
9703 | ||
b121d7d4 DD |
9704 | if test -n "$READELF"; then |
9705 | ac_cv_prog_READELF=$READELF | |
9706 | elif test -n "$ac_cv_prog_READELF"; then | |
9707 | READELF=$ac_cv_prog_READELF | |
9708 | fi | |
9709 | ||
9710 | if test -n "$ac_cv_prog_READELF"; then | |
9711 | for ncn_progname in readelf; do | |
9712 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9713 | set dummy ${ncn_progname}; ac_word=$2 | |
9714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9715 | $as_echo_n "checking for $ac_word... " >&6; } | |
9716 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9717 | $as_echo_n "(cached) " >&6 | |
9718 | else | |
9719 | if test -n "$READELF"; then | |
9720 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9721 | else | |
9722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9723 | for as_dir in $PATH | |
9724 | do | |
9725 | IFS=$as_save_IFS | |
9726 | test -z "$as_dir" && as_dir=. | |
9727 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9728 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9729 | ac_cv_prog_READELF="${ncn_progname}" | |
9730 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9731 | break 2 | |
9732 | fi | |
9733 | done | |
9734 | done | |
9735 | IFS=$as_save_IFS | |
9736 | ||
9737 | fi | |
9738 | fi | |
9739 | READELF=$ac_cv_prog_READELF | |
9740 | if test -n "$READELF"; then | |
9741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9742 | $as_echo "$READELF" >&6; } | |
9743 | else | |
9744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9745 | $as_echo "no" >&6; } | |
9746 | fi | |
9747 | ||
9748 | ||
9749 | done | |
9750 | fi | |
9751 | ||
9752 | for ncn_progname in readelf; do | |
9753 | if test -n "$ncn_tool_prefix"; then | |
9754 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9755 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9757 | $as_echo_n "checking for $ac_word... " >&6; } | |
9758 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9759 | $as_echo_n "(cached) " >&6 | |
9760 | else | |
9761 | if test -n "$READELF"; then | |
9762 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9763 | else | |
9764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9765 | for as_dir in $PATH | |
9766 | do | |
9767 | IFS=$as_save_IFS | |
9768 | test -z "$as_dir" && as_dir=. | |
9769 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9770 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9771 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" | |
9772 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9773 | break 2 | |
9774 | fi | |
9775 | done | |
9776 | done | |
9777 | IFS=$as_save_IFS | |
9778 | ||
9779 | fi | |
9780 | fi | |
9781 | READELF=$ac_cv_prog_READELF | |
9782 | if test -n "$READELF"; then | |
9783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9784 | $as_echo "$READELF" >&6; } | |
9785 | else | |
9786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9787 | $as_echo "no" >&6; } | |
9788 | fi | |
9789 | ||
9790 | ||
9791 | fi | |
9792 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9793 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9794 | set dummy ${ncn_progname}; ac_word=$2 | |
9795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9796 | $as_echo_n "checking for $ac_word... " >&6; } | |
9797 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9798 | $as_echo_n "(cached) " >&6 | |
9799 | else | |
9800 | if test -n "$READELF"; then | |
9801 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9802 | else | |
9803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9804 | for as_dir in $PATH | |
9805 | do | |
9806 | IFS=$as_save_IFS | |
9807 | test -z "$as_dir" && as_dir=. | |
9808 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9809 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9810 | ac_cv_prog_READELF="${ncn_progname}" | |
9811 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9812 | break 2 | |
9813 | fi | |
9814 | done | |
9815 | done | |
9816 | IFS=$as_save_IFS | |
9817 | ||
9818 | fi | |
9819 | fi | |
9820 | READELF=$ac_cv_prog_READELF | |
9821 | if test -n "$READELF"; then | |
9822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9823 | $as_echo "$READELF" >&6; } | |
9824 | else | |
9825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9826 | $as_echo "no" >&6; } | |
9827 | fi | |
9828 | ||
9829 | ||
9830 | fi | |
9831 | test -n "$ac_cv_prog_READELF" && break | |
9832 | done | |
9833 | ||
9834 | if test -z "$ac_cv_prog_READELF" ; then | |
9835 | set dummy readelf | |
9836 | if test $build = $host ; then | |
9837 | READELF="$2" | |
9838 | else | |
9839 | READELF="${ncn_tool_prefix}$2" | |
9840 | fi | |
9841 | fi | |
9842 | ||
9843 | ||
9844 | ||
a0da8069 NN |
9845 | |
9846 | ||
9847 | ||
be01d343 | 9848 | # Target tools. |
c6b750e1 | 9849 | |
81ecdfbb RW |
9850 | # Check whether --with-build-time-tools was given. |
9851 | if test "${with_build_time_tools+set}" = set; then : | |
9852 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
9853 | x/*) ;; |
9854 | *) | |
9855 | with_build_time_tools= | |
81ecdfbb RW |
9856 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9857 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
9858 | ;; |
9859 | esac | |
859789af | 9860 | else |
2429c060 | 9861 | with_build_time_tools= |
81ecdfbb RW |
9862 | fi |
9863 | ||
859789af | 9864 | |
9a819804 AO |
9865 | |
9866 | ||
9867 | if test -n "$CC_FOR_TARGET"; then | |
9868 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9869 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9870 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9871 | fi | |
9872 | ||
9873 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9874 | for ncn_progname in cc gcc; do | |
9875 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9876 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9878 | $as_echo_n "checking for $ac_word... " >&6; } | |
9879 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9880 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9881 | else |
9882 | if test -n "$CC_FOR_TARGET"; then | |
9883 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9884 | else | |
9885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9886 | for as_dir in $PATH | |
9887 | do | |
9888 | IFS=$as_save_IFS | |
9889 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9890 | for ac_exec_ext in '' $ac_executable_extensions; do |
9891 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9892 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9894 | break 2 |
9895 | fi | |
9896 | done | |
81ecdfbb RW |
9897 | done |
9898 | IFS=$as_save_IFS | |
9a819804 AO |
9899 | |
9900 | fi | |
9901 | fi | |
9902 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9903 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
9904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9905 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 9906 | else |
81ecdfbb RW |
9907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9908 | $as_echo "no" >&6; } | |
9a819804 AO |
9909 | fi |
9910 | ||
81ecdfbb | 9911 | |
9a819804 AO |
9912 | done |
9913 | fi | |
9914 | ||
9915 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 9916 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
9917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9918 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
9919 | if test -x $with_build_time_tools/${ncn_progname}; then |
9920 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
9921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9922 | $as_echo "yes" >&6; } | |
cac3d6c4 | 9923 | break |
2429c060 | 9924 | else |
81ecdfbb RW |
9925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9926 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
9927 | fi |
9928 | done | |
55db4b87 PB |
9929 | fi |
9930 | ||
2429c060 PB |
9931 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
9932 | for ncn_progname in cc gcc; do | |
9933 | if test -n "$ncn_target_tool_prefix"; then | |
9934 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9935 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9937 | $as_echo_n "checking for $ac_word... " >&6; } | |
9938 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9939 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
9940 | else |
9941 | if test -n "$CC_FOR_TARGET"; then | |
9942 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9943 | else | |
c6b750e1 DJ |
9944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9945 | for as_dir in $PATH | |
9946 | do | |
9947 | IFS=$as_save_IFS | |
9948 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9949 | for ac_exec_ext in '' $ac_executable_extensions; do |
9950 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9951 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 9952 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9953 | break 2 |
9954 | fi | |
9955 | done | |
81ecdfbb RW |
9956 | done |
9957 | IFS=$as_save_IFS | |
c6b750e1 | 9958 | |
55db4b87 PB |
9959 | fi |
9960 | fi | |
c6b750e1 | 9961 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 9962 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
9963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9964 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 9965 | else |
81ecdfbb RW |
9966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9967 | $as_echo "no" >&6; } | |
55db4b87 PB |
9968 | fi |
9969 | ||
81ecdfbb | 9970 | |
2429c060 PB |
9971 | fi |
9972 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
9973 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9974 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9976 | $as_echo_n "checking for $ac_word... " >&6; } | |
9977 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9978 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 9979 | else |
05cbd757 PB |
9980 | if test -n "$CC_FOR_TARGET"; then |
9981 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 9982 | else |
c6b750e1 DJ |
9983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9984 | for as_dir in $PATH | |
9985 | do | |
9986 | IFS=$as_save_IFS | |
9987 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9988 | for ac_exec_ext in '' $ac_executable_extensions; do |
9989 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9990 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9991 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9992 | break 2 |
9993 | fi | |
9994 | done | |
81ecdfbb RW |
9995 | done |
9996 | IFS=$as_save_IFS | |
c6b750e1 | 9997 | |
55db4b87 PB |
9998 | fi |
9999 | fi | |
c6b750e1 | 10000 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 10001 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10003 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10004 | else |
81ecdfbb RW |
10005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10006 | $as_echo "no" >&6; } | |
55db4b87 | 10007 | fi |
c6b750e1 | 10008 | |
81ecdfbb | 10009 | |
2429c060 PB |
10010 | fi |
10011 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10012 | done | |
10013 | fi | |
c6b750e1 | 10014 | |
05cbd757 PB |
10015 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10016 | set dummy cc gcc | |
10017 | if test $build = $target ; then | |
10018 | CC_FOR_TARGET="$2" | |
55db4b87 | 10019 | else |
05cbd757 | 10020 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10021 | fi |
d3f5afc4 MS |
10022 | else |
10023 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
10024 | fi |
10025 | ||
9a819804 AO |
10026 | |
10027 | ||
10028 | if test -n "$CXX_FOR_TARGET"; then | |
10029 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10030 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10031 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10032 | fi | |
10033 | ||
10034 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10035 | for ncn_progname in c++ g++ cxx gxx; do | |
10036 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10037 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10039 | $as_echo_n "checking for $ac_word... " >&6; } | |
10040 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10041 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10042 | else |
10043 | if test -n "$CXX_FOR_TARGET"; then | |
10044 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10045 | else | |
10046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10047 | for as_dir in $PATH | |
10048 | do | |
10049 | IFS=$as_save_IFS | |
10050 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10051 | for ac_exec_ext in '' $ac_executable_extensions; do |
10052 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10053 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10054 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10055 | break 2 |
10056 | fi | |
10057 | done | |
81ecdfbb RW |
10058 | done |
10059 | IFS=$as_save_IFS | |
9a819804 AO |
10060 | |
10061 | fi | |
10062 | fi | |
10063 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10064 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
10065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10066 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 10067 | else |
81ecdfbb RW |
10068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10069 | $as_echo "no" >&6; } | |
9a819804 AO |
10070 | fi |
10071 | ||
81ecdfbb | 10072 | |
9a819804 AO |
10073 | done |
10074 | fi | |
10075 | ||
10076 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10077 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
10078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10079 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10080 | if test -x $with_build_time_tools/${ncn_progname}; then |
10081 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10083 | $as_echo "yes" >&6; } | |
2429c060 PB |
10084 | break |
10085 | else | |
81ecdfbb RW |
10086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10087 | $as_echo "no" >&6; } | |
2429c060 PB |
10088 | fi |
10089 | done | |
10090 | fi | |
10091 | ||
10092 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10093 | for ncn_progname in c++ g++ cxx gxx; do | |
10094 | if test -n "$ncn_target_tool_prefix"; then | |
10095 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10096 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10098 | $as_echo_n "checking for $ac_word... " >&6; } | |
10099 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10100 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10101 | else |
10102 | if test -n "$CXX_FOR_TARGET"; then | |
10103 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10104 | else | |
c6b750e1 DJ |
10105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10106 | for as_dir in $PATH | |
10107 | do | |
10108 | IFS=$as_save_IFS | |
10109 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10110 | for ac_exec_ext in '' $ac_executable_extensions; do |
10111 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10112 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10113 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10114 | break 2 |
10115 | fi | |
10116 | done | |
81ecdfbb RW |
10117 | done |
10118 | IFS=$as_save_IFS | |
c6b750e1 | 10119 | |
55db4b87 PB |
10120 | fi |
10121 | fi | |
c6b750e1 | 10122 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 10123 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10125 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10126 | else |
81ecdfbb RW |
10127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10128 | $as_echo "no" >&6; } | |
55db4b87 PB |
10129 | fi |
10130 | ||
81ecdfbb | 10131 | |
2429c060 PB |
10132 | fi |
10133 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10134 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10135 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10137 | $as_echo_n "checking for $ac_word... " >&6; } | |
10138 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10139 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10140 | else |
05cbd757 PB |
10141 | if test -n "$CXX_FOR_TARGET"; then |
10142 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10143 | else |
c6b750e1 DJ |
10144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10145 | for as_dir in $PATH | |
10146 | do | |
10147 | IFS=$as_save_IFS | |
10148 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10149 | for ac_exec_ext in '' $ac_executable_extensions; do |
10150 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10151 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10153 | break 2 |
10154 | fi | |
10155 | done | |
81ecdfbb RW |
10156 | done |
10157 | IFS=$as_save_IFS | |
c6b750e1 | 10158 | |
55db4b87 PB |
10159 | fi |
10160 | fi | |
c6b750e1 | 10161 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 10162 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10164 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10165 | else |
81ecdfbb RW |
10166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10167 | $as_echo "no" >&6; } | |
55db4b87 | 10168 | fi |
c6b750e1 | 10169 | |
81ecdfbb | 10170 | |
2429c060 PB |
10171 | fi |
10172 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10173 | done | |
10174 | fi | |
c6b750e1 | 10175 | |
05cbd757 PB |
10176 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10177 | set dummy c++ g++ cxx gxx | |
10178 | if test $build = $target ; then | |
10179 | CXX_FOR_TARGET="$2" | |
55db4b87 | 10180 | else |
05cbd757 | 10181 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10182 | fi |
d3f5afc4 MS |
10183 | else |
10184 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
10185 | fi |
10186 | ||
9a819804 AO |
10187 | |
10188 | ||
10189 | if test -n "$GCC_FOR_TARGET"; then | |
10190 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10191 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10192 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10193 | fi | |
10194 | ||
10195 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10196 | for ncn_progname in gcc; do | |
10197 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10198 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10200 | $as_echo_n "checking for $ac_word... " >&6; } | |
10201 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10202 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10203 | else |
10204 | if test -n "$GCC_FOR_TARGET"; then | |
10205 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10206 | else | |
10207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10208 | for as_dir in $PATH | |
10209 | do | |
10210 | IFS=$as_save_IFS | |
10211 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10212 | for ac_exec_ext in '' $ac_executable_extensions; do |
10213 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10214 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10215 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10216 | break 2 |
10217 | fi | |
10218 | done | |
81ecdfbb RW |
10219 | done |
10220 | IFS=$as_save_IFS | |
9a819804 AO |
10221 | |
10222 | fi | |
10223 | fi | |
10224 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10225 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
10226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10227 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 10228 | else |
81ecdfbb RW |
10229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10230 | $as_echo "no" >&6; } | |
9a819804 AO |
10231 | fi |
10232 | ||
81ecdfbb | 10233 | |
9a819804 AO |
10234 | done |
10235 | fi | |
10236 | ||
10237 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10238 | for ncn_progname in gcc; do |
81ecdfbb RW |
10239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10240 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10241 | if test -x $with_build_time_tools/${ncn_progname}; then |
10242 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10244 | $as_echo "yes" >&6; } | |
2429c060 PB |
10245 | break |
10246 | else | |
81ecdfbb RW |
10247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10248 | $as_echo "no" >&6; } | |
2429c060 PB |
10249 | fi |
10250 | done | |
10251 | fi | |
10252 | ||
10253 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10254 | for ncn_progname in gcc; do | |
10255 | if test -n "$ncn_target_tool_prefix"; then | |
10256 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10257 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10259 | $as_echo_n "checking for $ac_word... " >&6; } | |
10260 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10261 | $as_echo_n "(cached) " >&6 | |
859789af | 10262 | else |
2429c060 PB |
10263 | if test -n "$GCC_FOR_TARGET"; then |
10264 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10265 | else |
c6b750e1 DJ |
10266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10267 | for as_dir in $PATH | |
10268 | do | |
10269 | IFS=$as_save_IFS | |
10270 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10271 | for ac_exec_ext in '' $ac_executable_extensions; do |
10272 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10273 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10274 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10275 | break 2 |
10276 | fi | |
10277 | done | |
81ecdfbb RW |
10278 | done |
10279 | IFS=$as_save_IFS | |
c6b750e1 | 10280 | |
55db4b87 PB |
10281 | fi |
10282 | fi | |
c6b750e1 | 10283 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 10284 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10286 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10287 | else |
81ecdfbb RW |
10288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10289 | $as_echo "no" >&6; } | |
55db4b87 PB |
10290 | fi |
10291 | ||
81ecdfbb | 10292 | |
2429c060 PB |
10293 | fi |
10294 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10295 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10296 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10298 | $as_echo_n "checking for $ac_word... " >&6; } | |
10299 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10300 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10301 | else |
05cbd757 PB |
10302 | if test -n "$GCC_FOR_TARGET"; then |
10303 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10304 | else |
c6b750e1 DJ |
10305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10306 | for as_dir in $PATH | |
10307 | do | |
10308 | IFS=$as_save_IFS | |
10309 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10310 | for ac_exec_ext in '' $ac_executable_extensions; do |
10311 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10312 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10313 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10314 | break 2 |
10315 | fi | |
10316 | done | |
81ecdfbb RW |
10317 | done |
10318 | IFS=$as_save_IFS | |
c6b750e1 | 10319 | |
55db4b87 PB |
10320 | fi |
10321 | fi | |
c6b750e1 | 10322 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 10323 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10325 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10326 | else |
81ecdfbb RW |
10327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10328 | $as_echo "no" >&6; } | |
55db4b87 | 10329 | fi |
c6b750e1 | 10330 | |
81ecdfbb | 10331 | |
2429c060 PB |
10332 | fi |
10333 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10334 | done | |
10335 | fi | |
c6b750e1 | 10336 | |
05cbd757 PB |
10337 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10338 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
10339 | else |
10340 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
10341 | fi |
10342 | ||
9a819804 AO |
10343 | |
10344 | ||
9a819804 AO |
10345 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10346 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10347 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10348 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
10349 | fi |
10350 | ||
9a819804 AO |
10351 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10352 | for ncn_progname in gfortran; do | |
10353 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10354 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10356 | $as_echo_n "checking for $ac_word... " >&6; } | |
10357 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10358 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10359 | else |
9a819804 AO |
10360 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10361 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10362 | else |
c6b750e1 DJ |
10363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10364 | for as_dir in $PATH | |
10365 | do | |
10366 | IFS=$as_save_IFS | |
10367 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10368 | for ac_exec_ext in '' $ac_executable_extensions; do |
10369 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10370 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10371 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10372 | break 2 |
10373 | fi | |
10374 | done | |
81ecdfbb RW |
10375 | done |
10376 | IFS=$as_save_IFS | |
c6b750e1 | 10377 | |
55db4b87 PB |
10378 | fi |
10379 | fi | |
9a819804 AO |
10380 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10381 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
10382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10383 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10384 | else |
81ecdfbb RW |
10385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10386 | $as_echo "no" >&6; } | |
55db4b87 | 10387 | fi |
c6b750e1 | 10388 | |
81ecdfbb | 10389 | |
2429c060 PB |
10390 | done |
10391 | fi | |
c6b750e1 | 10392 | |
9a819804 | 10393 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 10394 | for ncn_progname in gfortran; do |
81ecdfbb RW |
10395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10396 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10397 | if test -x $with_build_time_tools/${ncn_progname}; then |
10398 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10400 | $as_echo "yes" >&6; } | |
2429c060 PB |
10401 | break |
10402 | else | |
81ecdfbb RW |
10403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10404 | $as_echo "no" >&6; } | |
2429c060 PB |
10405 | fi |
10406 | done | |
10407 | fi | |
10408 | ||
10409 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10410 | for ncn_progname in gfortran; do | |
10411 | if test -n "$ncn_target_tool_prefix"; then | |
10412 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10413 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10415 | $as_echo_n "checking for $ac_word... " >&6; } | |
10416 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10417 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10418 | else |
10419 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10420 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10421 | else | |
c6b750e1 DJ |
10422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10423 | for as_dir in $PATH | |
10424 | do | |
10425 | IFS=$as_save_IFS | |
10426 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10427 | for ac_exec_ext in '' $ac_executable_extensions; do |
10428 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10429 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10430 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10431 | break 2 |
10432 | fi | |
10433 | done | |
81ecdfbb RW |
10434 | done |
10435 | IFS=$as_save_IFS | |
c6b750e1 | 10436 | |
55db4b87 PB |
10437 | fi |
10438 | fi | |
c6b750e1 | 10439 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
55db4b87 | 10440 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10442 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10443 | else |
81ecdfbb RW |
10444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10445 | $as_echo "no" >&6; } | |
55db4b87 PB |
10446 | fi |
10447 | ||
81ecdfbb | 10448 | |
2429c060 PB |
10449 | fi |
10450 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10451 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10452 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10454 | $as_echo_n "checking for $ac_word... " >&6; } | |
10455 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10456 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10457 | else |
05cbd757 | 10458 | if test -n "$GFORTRAN_FOR_TARGET"; then |
c6b750e1 DJ |
10459 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10460 | else | |
10461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10462 | for as_dir in $PATH | |
10463 | do | |
10464 | IFS=$as_save_IFS | |
10465 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10466 | for ac_exec_ext in '' $ac_executable_extensions; do |
10467 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10468 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10470 | break 2 |
10471 | fi | |
10472 | done | |
81ecdfbb RW |
10473 | done |
10474 | IFS=$as_save_IFS | |
c6b750e1 | 10475 | |
55db4b87 PB |
10476 | fi |
10477 | fi | |
c6b750e1 | 10478 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
05cbd757 | 10479 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10481 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10482 | else |
81ecdfbb RW |
10483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10484 | $as_echo "no" >&6; } | |
55db4b87 | 10485 | fi |
c6b750e1 | 10486 | |
81ecdfbb | 10487 | |
2429c060 PB |
10488 | fi |
10489 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10490 | done | |
10491 | fi | |
c6b750e1 | 10492 | |
05cbd757 PB |
10493 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10494 | set dummy gfortran | |
10495 | if test $build = $target ; then | |
10496 | GFORTRAN_FOR_TARGET="$2" | |
55db4b87 | 10497 | else |
05cbd757 | 10498 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10499 | fi |
d3f5afc4 MS |
10500 | else |
10501 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
859789af AC |
10502 | fi |
10503 | ||
2429c060 PB |
10504 | |
10505 | ||
e552509b ILT |
10506 | if test -n "$GOC_FOR_TARGET"; then |
10507 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10508 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10509 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10510 | fi | |
10511 | ||
10512 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10513 | for ncn_progname in gccgo; do | |
10514 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10515 | set dummy ${ncn_progname}; ac_word=$2 | |
10516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10517 | $as_echo_n "checking for $ac_word... " >&6; } | |
10518 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10519 | $as_echo_n "(cached) " >&6 | |
10520 | else | |
10521 | if test -n "$GOC_FOR_TARGET"; then | |
10522 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10523 | else | |
10524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10525 | for as_dir in $PATH | |
10526 | do | |
10527 | IFS=$as_save_IFS | |
10528 | test -z "$as_dir" && as_dir=. | |
10529 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10530 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10531 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10532 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10533 | break 2 | |
10534 | fi | |
10535 | done | |
10536 | done | |
10537 | IFS=$as_save_IFS | |
10538 | ||
10539 | fi | |
10540 | fi | |
10541 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10542 | if test -n "$GOC_FOR_TARGET"; then | |
10543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10544 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10545 | else | |
10546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10547 | $as_echo "no" >&6; } | |
10548 | fi | |
10549 | ||
10550 | ||
10551 | done | |
10552 | fi | |
10553 | ||
10554 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10555 | for ncn_progname in gccgo; do | |
10556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10557 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10558 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10559 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10561 | $as_echo "yes" >&6; } | |
10562 | break | |
10563 | else | |
10564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10565 | $as_echo "no" >&6; } | |
10566 | fi | |
10567 | done | |
10568 | fi | |
10569 | ||
10570 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10571 | for ncn_progname in gccgo; do | |
10572 | if test -n "$ncn_target_tool_prefix"; then | |
10573 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10574 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10576 | $as_echo_n "checking for $ac_word... " >&6; } | |
10577 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10578 | $as_echo_n "(cached) " >&6 | |
10579 | else | |
10580 | if test -n "$GOC_FOR_TARGET"; then | |
10581 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10582 | else | |
10583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10584 | for as_dir in $PATH | |
10585 | do | |
10586 | IFS=$as_save_IFS | |
10587 | test -z "$as_dir" && as_dir=. | |
10588 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10589 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10590 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10591 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10592 | break 2 | |
10593 | fi | |
10594 | done | |
10595 | done | |
10596 | IFS=$as_save_IFS | |
10597 | ||
10598 | fi | |
10599 | fi | |
10600 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10601 | if test -n "$GOC_FOR_TARGET"; then | |
10602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10603 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10604 | else | |
10605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10606 | $as_echo "no" >&6; } | |
10607 | fi | |
10608 | ||
10609 | ||
10610 | fi | |
10611 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10612 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10613 | set dummy ${ncn_progname}; ac_word=$2 | |
10614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10615 | $as_echo_n "checking for $ac_word... " >&6; } | |
10616 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10617 | $as_echo_n "(cached) " >&6 | |
10618 | else | |
10619 | if test -n "$GOC_FOR_TARGET"; then | |
10620 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10621 | else | |
10622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10623 | for as_dir in $PATH | |
10624 | do | |
10625 | IFS=$as_save_IFS | |
10626 | test -z "$as_dir" && as_dir=. | |
10627 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10628 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10629 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10630 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10631 | break 2 | |
10632 | fi | |
10633 | done | |
10634 | done | |
10635 | IFS=$as_save_IFS | |
10636 | ||
10637 | fi | |
10638 | fi | |
10639 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10640 | if test -n "$GOC_FOR_TARGET"; then | |
10641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10642 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10643 | else | |
10644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10645 | $as_echo "no" >&6; } | |
10646 | fi | |
10647 | ||
10648 | ||
10649 | fi | |
10650 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10651 | done | |
10652 | fi | |
10653 | ||
10654 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10655 | set dummy gccgo | |
10656 | if test $build = $target ; then | |
10657 | GOC_FOR_TARGET="$2" | |
10658 | else | |
10659 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10660 | fi | |
10661 | else | |
10662 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10663 | fi | |
10664 | ||
10665 | ||
10666 | ||
2429c060 PB |
10667 | cat > conftest.c << \EOF |
10668 | #ifdef __GNUC__ | |
10669 | gcc_yay; | |
10670 | #endif | |
10671 | EOF | |
10672 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10673 | have_gcc_for_target=yes | |
859789af | 10674 | else |
2429c060 PB |
10675 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
10676 | have_gcc_for_target=no | |
859789af | 10677 | fi |
2429c060 PB |
10678 | rm conftest.c |
10679 | ||
10680 | ||
10681 | ||
859789af | 10682 | |
2429c060 PB |
10683 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
10684 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10686 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10687 | if test -x $with_build_time_tools/ar; then |
10688 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10689 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
10690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10691 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 10692 | else |
81ecdfbb RW |
10693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10694 | $as_echo "no" >&6; } | |
3a35eeb3 | 10695 | fi |
2429c060 PB |
10696 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10697 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
10698 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10699 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 10700 | fi |
2429c060 | 10701 | fi |
c6b750e1 | 10702 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10703 | # Extract the first word of "ar", so it can be a program name with args. |
10704 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
10705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10706 | $as_echo_n "checking for $ac_word... " >&6; } | |
10707 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10708 | $as_echo_n "(cached) " >&6 | |
859789af | 10709 | else |
c6b750e1 DJ |
10710 | case $AR_FOR_TARGET in |
10711 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10712 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10713 | ;; | |
2429c060 | 10714 | *) |
c6b750e1 DJ |
10715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10716 | for as_dir in $gcc_cv_tool_dirs | |
10717 | do | |
10718 | IFS=$as_save_IFS | |
10719 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10720 | for ac_exec_ext in '' $ac_executable_extensions; do |
10721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10722 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10724 | break 2 |
10725 | fi | |
10726 | done | |
81ecdfbb RW |
10727 | done |
10728 | IFS=$as_save_IFS | |
c6b750e1 | 10729 | |
2429c060 PB |
10730 | ;; |
10731 | esac | |
859789af | 10732 | fi |
c6b750e1 | 10733 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 10734 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10736 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 10737 | else |
81ecdfbb RW |
10738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10739 | $as_echo "no" >&6; } | |
859789af | 10740 | fi |
05cbd757 | 10741 | |
81ecdfbb | 10742 | |
2429c060 PB |
10743 | fi |
10744 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
10745 | |
10746 | ||
10747 | if test -n "$AR_FOR_TARGET"; then | |
10748 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10749 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10750 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10751 | fi | |
10752 | ||
10753 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10754 | for ncn_progname in ar; do | |
10755 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10756 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10758 | $as_echo_n "checking for $ac_word... " >&6; } | |
10759 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10760 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10761 | else |
10762 | if test -n "$AR_FOR_TARGET"; then | |
10763 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10764 | else | |
10765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10766 | for as_dir in $PATH | |
10767 | do | |
10768 | IFS=$as_save_IFS | |
10769 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10770 | for ac_exec_ext in '' $ac_executable_extensions; do |
10771 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10772 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10773 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10774 | break 2 |
10775 | fi | |
10776 | done | |
81ecdfbb RW |
10777 | done |
10778 | IFS=$as_save_IFS | |
9a819804 AO |
10779 | |
10780 | fi | |
10781 | fi | |
10782 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10783 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
10784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10785 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 10786 | else |
81ecdfbb RW |
10787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10788 | $as_echo "no" >&6; } | |
9a819804 AO |
10789 | fi |
10790 | ||
81ecdfbb | 10791 | |
9a819804 AO |
10792 | done |
10793 | fi | |
10794 | ||
10795 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10796 | for ncn_progname in ar; do |
81ecdfbb RW |
10797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10798 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10799 | if test -x $with_build_time_tools/${ncn_progname}; then |
10800 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10802 | $as_echo "yes" >&6; } | |
2429c060 PB |
10803 | break |
10804 | else | |
81ecdfbb RW |
10805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10806 | $as_echo "no" >&6; } | |
2429c060 PB |
10807 | fi |
10808 | done | |
859789af AC |
10809 | fi |
10810 | ||
2429c060 PB |
10811 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
10812 | for ncn_progname in ar; do | |
10813 | if test -n "$ncn_target_tool_prefix"; then | |
10814 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10815 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10817 | $as_echo_n "checking for $ac_word... " >&6; } | |
10818 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10819 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 10820 | else |
2429c060 PB |
10821 | if test -n "$AR_FOR_TARGET"; then |
10822 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 10823 | else |
c6b750e1 DJ |
10824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10825 | for as_dir in $PATH | |
10826 | do | |
10827 | IFS=$as_save_IFS | |
10828 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10829 | for ac_exec_ext in '' $ac_executable_extensions; do |
10830 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10831 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10833 | break 2 |
10834 | fi | |
10835 | done | |
81ecdfbb RW |
10836 | done |
10837 | IFS=$as_save_IFS | |
c6b750e1 | 10838 | |
7e0f7140 GK |
10839 | fi |
10840 | fi | |
c6b750e1 | 10841 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 10842 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10844 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 10845 | else |
81ecdfbb RW |
10846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10847 | $as_echo "no" >&6; } | |
7e0f7140 GK |
10848 | fi |
10849 | ||
81ecdfbb | 10850 | |
2429c060 PB |
10851 | fi |
10852 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
10853 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 10854 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10856 | $as_echo_n "checking for $ac_word... " >&6; } | |
10857 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10858 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 10859 | else |
2429c060 PB |
10860 | if test -n "$AR_FOR_TARGET"; then |
10861 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 10862 | else |
c6b750e1 DJ |
10863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10864 | for as_dir in $PATH | |
10865 | do | |
10866 | IFS=$as_save_IFS | |
10867 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10868 | for ac_exec_ext in '' $ac_executable_extensions; do |
10869 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10870 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10871 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10872 | break 2 |
10873 | fi | |
10874 | done | |
81ecdfbb RW |
10875 | done |
10876 | IFS=$as_save_IFS | |
c6b750e1 | 10877 | |
7e0f7140 GK |
10878 | fi |
10879 | fi | |
c6b750e1 | 10880 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 10881 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10883 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 10884 | else |
81ecdfbb RW |
10885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10886 | $as_echo "no" >&6; } | |
7e0f7140 | 10887 | fi |
c6b750e1 | 10888 | |
81ecdfbb | 10889 | |
2429c060 PB |
10890 | fi |
10891 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
10892 | done | |
10893 | fi | |
c6b750e1 | 10894 | |
2429c060 PB |
10895 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
10896 | set dummy ar | |
7e0f7140 | 10897 | if test $build = $target ; then |
2429c060 | 10898 | AR_FOR_TARGET="$2" |
7e0f7140 | 10899 | else |
2429c060 | 10900 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 10901 | fi |
d3f5afc4 MS |
10902 | else |
10903 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
10904 | fi |
10905 | ||
3a35eeb3 PB |
10906 | else |
10907 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
10908 | fi |
10909 | ||
10910 | ||
10911 | ||
10912 | ||
10913 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
10914 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
10916 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10917 | if test -x $with_build_time_tools/as; then |
10918 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
10919 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
10920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
10921 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 10922 | else |
81ecdfbb RW |
10923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10924 | $as_echo "no" >&6; } | |
3a35eeb3 | 10925 | fi |
2429c060 PB |
10926 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10927 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
10928 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
10929 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
10930 | fi |
10931 | fi | |
c6b750e1 | 10932 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10933 | # Extract the first word of "as", so it can be a program name with args. |
10934 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
10935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10936 | $as_echo_n "checking for $ac_word... " >&6; } | |
10937 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
10938 | $as_echo_n "(cached) " >&6 | |
2429c060 | 10939 | else |
c6b750e1 DJ |
10940 | case $AS_FOR_TARGET in |
10941 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10942 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
10943 | ;; | |
2429c060 | 10944 | *) |
c6b750e1 DJ |
10945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10946 | for as_dir in $gcc_cv_tool_dirs | |
10947 | do | |
10948 | IFS=$as_save_IFS | |
10949 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10950 | for ac_exec_ext in '' $ac_executable_extensions; do |
10951 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10952 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10954 | break 2 |
10955 | fi | |
10956 | done | |
81ecdfbb RW |
10957 | done |
10958 | IFS=$as_save_IFS | |
c6b750e1 | 10959 | |
2429c060 PB |
10960 | ;; |
10961 | esac | |
10962 | fi | |
c6b750e1 | 10963 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 10964 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
10965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10966 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 10967 | else |
81ecdfbb RW |
10968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10969 | $as_echo "no" >&6; } | |
2429c060 PB |
10970 | fi |
10971 | ||
81ecdfbb | 10972 | |
2429c060 PB |
10973 | fi |
10974 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
10975 | |
10976 | ||
10977 | if test -n "$AS_FOR_TARGET"; then | |
10978 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
10979 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10980 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10981 | fi | |
10982 | ||
10983 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10984 | for ncn_progname in as; do | |
10985 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10986 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10988 | $as_echo_n "checking for $ac_word... " >&6; } | |
10989 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10990 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10991 | else |
10992 | if test -n "$AS_FOR_TARGET"; then | |
10993 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10994 | else | |
10995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10996 | for as_dir in $PATH | |
10997 | do | |
10998 | IFS=$as_save_IFS | |
10999 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11000 | for ac_exec_ext in '' $ac_executable_extensions; do |
11001 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11002 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11003 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11004 | break 2 |
11005 | fi | |
11006 | done | |
81ecdfbb RW |
11007 | done |
11008 | IFS=$as_save_IFS | |
9a819804 AO |
11009 | |
11010 | fi | |
11011 | fi | |
11012 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11013 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
11014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11015 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 11016 | else |
81ecdfbb RW |
11017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11018 | $as_echo "no" >&6; } | |
9a819804 AO |
11019 | fi |
11020 | ||
81ecdfbb | 11021 | |
9a819804 AO |
11022 | done |
11023 | fi | |
11024 | ||
11025 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11026 | for ncn_progname in as; do |
81ecdfbb RW |
11027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11028 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11029 | if test -x $with_build_time_tools/${ncn_progname}; then |
11030 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11032 | $as_echo "yes" >&6; } | |
2429c060 PB |
11033 | break |
11034 | else | |
81ecdfbb RW |
11035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11036 | $as_echo "no" >&6; } | |
2429c060 PB |
11037 | fi |
11038 | done | |
11039 | fi | |
11040 | ||
11041 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11042 | for ncn_progname in as; do | |
11043 | if test -n "$ncn_target_tool_prefix"; then | |
11044 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11045 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11047 | $as_echo_n "checking for $ac_word... " >&6; } | |
11048 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11049 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11050 | else |
11051 | if test -n "$AS_FOR_TARGET"; then | |
11052 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11053 | else | |
c6b750e1 DJ |
11054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11055 | for as_dir in $PATH | |
11056 | do | |
11057 | IFS=$as_save_IFS | |
11058 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11059 | for ac_exec_ext in '' $ac_executable_extensions; do |
11060 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11061 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11063 | break 2 |
11064 | fi | |
11065 | done | |
81ecdfbb RW |
11066 | done |
11067 | IFS=$as_save_IFS | |
c6b750e1 | 11068 | |
2429c060 PB |
11069 | fi |
11070 | fi | |
c6b750e1 | 11071 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11072 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11074 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11075 | else |
81ecdfbb RW |
11076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11077 | $as_echo "no" >&6; } | |
2429c060 PB |
11078 | fi |
11079 | ||
81ecdfbb | 11080 | |
2429c060 PB |
11081 | fi |
11082 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11083 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11084 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11086 | $as_echo_n "checking for $ac_word... " >&6; } | |
11087 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11088 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11089 | else |
11090 | if test -n "$AS_FOR_TARGET"; then | |
11091 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11092 | else | |
c6b750e1 DJ |
11093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11094 | for as_dir in $PATH | |
11095 | do | |
11096 | IFS=$as_save_IFS | |
11097 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11098 | for ac_exec_ext in '' $ac_executable_extensions; do |
11099 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11100 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11102 | break 2 |
11103 | fi | |
11104 | done | |
81ecdfbb RW |
11105 | done |
11106 | IFS=$as_save_IFS | |
c6b750e1 | 11107 | |
2429c060 PB |
11108 | fi |
11109 | fi | |
c6b750e1 | 11110 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11111 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11113 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11114 | else |
81ecdfbb RW |
11115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11116 | $as_echo "no" >&6; } | |
2429c060 | 11117 | fi |
c6b750e1 | 11118 | |
81ecdfbb | 11119 | |
2429c060 PB |
11120 | fi |
11121 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11122 | done | |
11123 | fi | |
c6b750e1 | 11124 | |
2429c060 PB |
11125 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11126 | set dummy as | |
11127 | if test $build = $target ; then | |
11128 | AS_FOR_TARGET="$2" | |
11129 | else | |
11130 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11131 | fi | |
d3f5afc4 MS |
11132 | else |
11133 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
11134 | fi |
11135 | ||
3a35eeb3 PB |
11136 | else |
11137 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
11138 | fi |
11139 | ||
11140 | ||
11141 | ||
11142 | ||
11143 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11144 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11146 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11147 | if test -x $with_build_time_tools/dlltool; then |
11148 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11149 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
11150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11151 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 11152 | else |
81ecdfbb RW |
11153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11154 | $as_echo "no" >&6; } | |
3a35eeb3 | 11155 | fi |
2429c060 PB |
11156 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11157 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
11158 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11159 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
11160 | fi |
11161 | fi | |
c6b750e1 | 11162 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11163 | # Extract the first word of "dlltool", so it can be a program name with args. |
11164 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
11165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11166 | $as_echo_n "checking for $ac_word... " >&6; } | |
11167 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11168 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11169 | else |
c6b750e1 DJ |
11170 | case $DLLTOOL_FOR_TARGET in |
11171 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11172 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11173 | ;; | |
2429c060 | 11174 | *) |
c6b750e1 DJ |
11175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11176 | for as_dir in $gcc_cv_tool_dirs | |
11177 | do | |
11178 | IFS=$as_save_IFS | |
11179 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11180 | for ac_exec_ext in '' $ac_executable_extensions; do |
11181 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11182 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11183 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11184 | break 2 |
11185 | fi | |
11186 | done | |
81ecdfbb RW |
11187 | done |
11188 | IFS=$as_save_IFS | |
c6b750e1 | 11189 | |
2429c060 PB |
11190 | ;; |
11191 | esac | |
11192 | fi | |
c6b750e1 | 11193 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 11194 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11196 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11197 | else |
81ecdfbb RW |
11198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11199 | $as_echo "no" >&6; } | |
2429c060 PB |
11200 | fi |
11201 | ||
81ecdfbb | 11202 | |
2429c060 PB |
11203 | fi |
11204 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
11205 | |
11206 | ||
11207 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11208 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11209 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11210 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11211 | fi | |
11212 | ||
11213 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11214 | for ncn_progname in dlltool; do | |
11215 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11216 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11218 | $as_echo_n "checking for $ac_word... " >&6; } | |
11219 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11220 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11221 | else |
11222 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11223 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11224 | else | |
11225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11226 | for as_dir in $PATH | |
11227 | do | |
11228 | IFS=$as_save_IFS | |
11229 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11230 | for ac_exec_ext in '' $ac_executable_extensions; do |
11231 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11232 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11234 | break 2 |
11235 | fi | |
11236 | done | |
81ecdfbb RW |
11237 | done |
11238 | IFS=$as_save_IFS | |
9a819804 AO |
11239 | |
11240 | fi | |
11241 | fi | |
11242 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11243 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
11244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11245 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 11246 | else |
81ecdfbb RW |
11247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11248 | $as_echo "no" >&6; } | |
9a819804 AO |
11249 | fi |
11250 | ||
81ecdfbb | 11251 | |
9a819804 AO |
11252 | done |
11253 | fi | |
11254 | ||
11255 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11256 | for ncn_progname in dlltool; do |
81ecdfbb RW |
11257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11258 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11259 | if test -x $with_build_time_tools/${ncn_progname}; then |
11260 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11262 | $as_echo "yes" >&6; } | |
2429c060 PB |
11263 | break |
11264 | else | |
81ecdfbb RW |
11265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11266 | $as_echo "no" >&6; } | |
2429c060 PB |
11267 | fi |
11268 | done | |
11269 | fi | |
11270 | ||
11271 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11272 | for ncn_progname in dlltool; do | |
11273 | if test -n "$ncn_target_tool_prefix"; then | |
11274 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11275 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11277 | $as_echo_n "checking for $ac_word... " >&6; } | |
11278 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11279 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11280 | else |
11281 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11282 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11283 | else | |
c6b750e1 DJ |
11284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11285 | for as_dir in $PATH | |
11286 | do | |
11287 | IFS=$as_save_IFS | |
11288 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11289 | for ac_exec_ext in '' $ac_executable_extensions; do |
11290 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11291 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11292 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11293 | break 2 |
11294 | fi | |
11295 | done | |
81ecdfbb RW |
11296 | done |
11297 | IFS=$as_save_IFS | |
c6b750e1 | 11298 | |
2429c060 PB |
11299 | fi |
11300 | fi | |
c6b750e1 | 11301 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11302 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11304 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11305 | else |
81ecdfbb RW |
11306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11307 | $as_echo "no" >&6; } | |
2429c060 PB |
11308 | fi |
11309 | ||
81ecdfbb | 11310 | |
2429c060 PB |
11311 | fi |
11312 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11313 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11314 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11316 | $as_echo_n "checking for $ac_word... " >&6; } | |
11317 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11318 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11319 | else |
11320 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11321 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11322 | else | |
c6b750e1 DJ |
11323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11324 | for as_dir in $PATH | |
11325 | do | |
11326 | IFS=$as_save_IFS | |
11327 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11328 | for ac_exec_ext in '' $ac_executable_extensions; do |
11329 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11330 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11331 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11332 | break 2 |
11333 | fi | |
11334 | done | |
81ecdfbb RW |
11335 | done |
11336 | IFS=$as_save_IFS | |
c6b750e1 | 11337 | |
2429c060 PB |
11338 | fi |
11339 | fi | |
c6b750e1 | 11340 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11341 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11343 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11344 | else |
81ecdfbb RW |
11345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11346 | $as_echo "no" >&6; } | |
2429c060 | 11347 | fi |
c6b750e1 | 11348 | |
81ecdfbb | 11349 | |
2429c060 PB |
11350 | fi |
11351 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11352 | done | |
11353 | fi | |
c6b750e1 | 11354 | |
2429c060 PB |
11355 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11356 | set dummy dlltool | |
11357 | if test $build = $target ; then | |
11358 | DLLTOOL_FOR_TARGET="$2" | |
11359 | else | |
11360 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11361 | fi | |
d3f5afc4 MS |
11362 | else |
11363 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
2429c060 PB |
11364 | fi |
11365 | ||
3a35eeb3 PB |
11366 | else |
11367 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
2429c060 PB |
11368 | fi |
11369 | ||
11370 | ||
11371 | ||
11372 | ||
11373 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11374 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11376 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11377 | if test -x $with_build_time_tools/ld; then |
11378 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11379 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
11380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11381 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 11382 | else |
81ecdfbb RW |
11383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11384 | $as_echo "no" >&6; } | |
3a35eeb3 | 11385 | fi |
2429c060 PB |
11386 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11387 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
11388 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11389 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
11390 | fi |
11391 | fi | |
c6b750e1 | 11392 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11393 | # Extract the first word of "ld", so it can be a program name with args. |
11394 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
11395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11396 | $as_echo_n "checking for $ac_word... " >&6; } | |
11397 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11398 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11399 | else |
c6b750e1 DJ |
11400 | case $LD_FOR_TARGET in |
11401 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11402 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11403 | ;; | |
2429c060 | 11404 | *) |
c6b750e1 DJ |
11405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11406 | for as_dir in $gcc_cv_tool_dirs | |
11407 | do | |
11408 | IFS=$as_save_IFS | |
11409 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11410 | for ac_exec_ext in '' $ac_executable_extensions; do |
11411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11412 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11414 | break 2 |
11415 | fi | |
11416 | done | |
81ecdfbb RW |
11417 | done |
11418 | IFS=$as_save_IFS | |
c6b750e1 | 11419 | |
2429c060 PB |
11420 | ;; |
11421 | esac | |
11422 | fi | |
c6b750e1 | 11423 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 11424 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11426 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11427 | else |
81ecdfbb RW |
11428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11429 | $as_echo "no" >&6; } | |
2429c060 PB |
11430 | fi |
11431 | ||
81ecdfbb | 11432 | |
2429c060 PB |
11433 | fi |
11434 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
11435 | |
11436 | ||
11437 | if test -n "$LD_FOR_TARGET"; then | |
11438 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11439 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11440 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11441 | fi | |
11442 | ||
11443 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11444 | for ncn_progname in ld; do | |
11445 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11446 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11448 | $as_echo_n "checking for $ac_word... " >&6; } | |
11449 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11450 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11451 | else |
11452 | if test -n "$LD_FOR_TARGET"; then | |
11453 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11454 | else | |
11455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11456 | for as_dir in $PATH | |
11457 | do | |
11458 | IFS=$as_save_IFS | |
11459 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11460 | for ac_exec_ext in '' $ac_executable_extensions; do |
11461 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11462 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11463 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11464 | break 2 |
11465 | fi | |
11466 | done | |
81ecdfbb RW |
11467 | done |
11468 | IFS=$as_save_IFS | |
9a819804 AO |
11469 | |
11470 | fi | |
11471 | fi | |
11472 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11473 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
11474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11475 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 11476 | else |
81ecdfbb RW |
11477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11478 | $as_echo "no" >&6; } | |
9a819804 AO |
11479 | fi |
11480 | ||
81ecdfbb | 11481 | |
9a819804 AO |
11482 | done |
11483 | fi | |
11484 | ||
11485 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11486 | for ncn_progname in ld; do |
81ecdfbb RW |
11487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11488 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11489 | if test -x $with_build_time_tools/${ncn_progname}; then |
11490 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11492 | $as_echo "yes" >&6; } | |
2429c060 PB |
11493 | break |
11494 | else | |
81ecdfbb RW |
11495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11496 | $as_echo "no" >&6; } | |
2429c060 PB |
11497 | fi |
11498 | done | |
11499 | fi | |
11500 | ||
11501 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11502 | for ncn_progname in ld; do | |
11503 | if test -n "$ncn_target_tool_prefix"; then | |
11504 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11505 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11507 | $as_echo_n "checking for $ac_word... " >&6; } | |
11508 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11509 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11510 | else |
11511 | if test -n "$LD_FOR_TARGET"; then | |
11512 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11513 | else | |
c6b750e1 DJ |
11514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11515 | for as_dir in $PATH | |
11516 | do | |
11517 | IFS=$as_save_IFS | |
11518 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11519 | for ac_exec_ext in '' $ac_executable_extensions; do |
11520 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11521 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11522 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11523 | break 2 |
11524 | fi | |
11525 | done | |
81ecdfbb RW |
11526 | done |
11527 | IFS=$as_save_IFS | |
c6b750e1 | 11528 | |
2429c060 PB |
11529 | fi |
11530 | fi | |
c6b750e1 | 11531 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11532 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11534 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11535 | else |
81ecdfbb RW |
11536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11537 | $as_echo "no" >&6; } | |
2429c060 PB |
11538 | fi |
11539 | ||
81ecdfbb | 11540 | |
2429c060 PB |
11541 | fi |
11542 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11543 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11544 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11546 | $as_echo_n "checking for $ac_word... " >&6; } | |
11547 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11548 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11549 | else |
11550 | if test -n "$LD_FOR_TARGET"; then | |
11551 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11552 | else | |
c6b750e1 DJ |
11553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11554 | for as_dir in $PATH | |
11555 | do | |
11556 | IFS=$as_save_IFS | |
11557 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11558 | for ac_exec_ext in '' $ac_executable_extensions; do |
11559 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11560 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11562 | break 2 |
11563 | fi | |
11564 | done | |
81ecdfbb RW |
11565 | done |
11566 | IFS=$as_save_IFS | |
c6b750e1 | 11567 | |
2429c060 PB |
11568 | fi |
11569 | fi | |
c6b750e1 | 11570 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11571 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11573 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11574 | else |
81ecdfbb RW |
11575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11576 | $as_echo "no" >&6; } | |
2429c060 | 11577 | fi |
c6b750e1 | 11578 | |
81ecdfbb | 11579 | |
2429c060 PB |
11580 | fi |
11581 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11582 | done | |
11583 | fi | |
c6b750e1 | 11584 | |
2429c060 PB |
11585 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11586 | set dummy ld | |
11587 | if test $build = $target ; then | |
11588 | LD_FOR_TARGET="$2" | |
11589 | else | |
11590 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11591 | fi | |
d3f5afc4 MS |
11592 | else |
11593 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
11594 | fi |
11595 | ||
3a35eeb3 PB |
11596 | else |
11597 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
11598 | fi |
11599 | ||
11600 | ||
11601 | ||
11602 | ||
11603 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11604 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11606 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11607 | if test -x $with_build_time_tools/lipo; then |
11608 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11609 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
11610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11611 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 11612 | else |
81ecdfbb RW |
11613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11614 | $as_echo "no" >&6; } | |
3a35eeb3 | 11615 | fi |
2429c060 PB |
11616 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11617 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
11618 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11619 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
11620 | fi |
11621 | fi | |
9a819804 AO |
11622 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11623 | # Extract the first word of "lipo", so it can be a program name with args. | |
11624 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
11625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11626 | $as_echo_n "checking for $ac_word... " >&6; } | |
11627 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11628 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11629 | else |
11630 | case $LIPO_FOR_TARGET in | |
11631 | [\\/]* | ?:[\\/]*) | |
11632 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11633 | ;; | |
11634 | *) | |
11635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11636 | for as_dir in $gcc_cv_tool_dirs | |
11637 | do | |
11638 | IFS=$as_save_IFS | |
11639 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11640 | for ac_exec_ext in '' $ac_executable_extensions; do |
11641 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11642 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11643 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11644 | break 2 |
11645 | fi | |
11646 | done | |
81ecdfbb RW |
11647 | done |
11648 | IFS=$as_save_IFS | |
9a819804 AO |
11649 | |
11650 | ;; | |
11651 | esac | |
11652 | fi | |
11653 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 11654 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11656 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 11657 | else |
81ecdfbb RW |
11658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11659 | $as_echo "no" >&6; } | |
9a819804 AO |
11660 | fi |
11661 | ||
81ecdfbb | 11662 | |
9a819804 AO |
11663 | fi |
11664 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11665 | ||
11666 | ||
11667 | if test -n "$LIPO_FOR_TARGET"; then | |
11668 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11669 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11670 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11671 | fi | |
11672 | ||
11673 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11674 | for ncn_progname in lipo; do | |
11675 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11676 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11678 | $as_echo_n "checking for $ac_word... " >&6; } | |
11679 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11680 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11681 | else |
9a819804 AO |
11682 | if test -n "$LIPO_FOR_TARGET"; then |
11683 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11684 | else | |
11685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11686 | for as_dir in $PATH | |
c6b750e1 DJ |
11687 | do |
11688 | IFS=$as_save_IFS | |
11689 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11690 | for ac_exec_ext in '' $ac_executable_extensions; do |
11691 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11692 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11694 | break 2 |
11695 | fi | |
11696 | done | |
81ecdfbb RW |
11697 | done |
11698 | IFS=$as_save_IFS | |
c6b750e1 | 11699 | |
2429c060 | 11700 | fi |
9a819804 AO |
11701 | fi |
11702 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 11703 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11705 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11706 | else |
81ecdfbb RW |
11707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11708 | $as_echo "no" >&6; } | |
2429c060 PB |
11709 | fi |
11710 | ||
81ecdfbb | 11711 | |
9a819804 | 11712 | done |
2429c060 | 11713 | fi |
9a819804 AO |
11714 | |
11715 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11716 | for ncn_progname in lipo; do |
81ecdfbb RW |
11717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11718 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11719 | if test -x $with_build_time_tools/${ncn_progname}; then |
11720 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11722 | $as_echo "yes" >&6; } | |
2429c060 PB |
11723 | break |
11724 | else | |
81ecdfbb RW |
11725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11726 | $as_echo "no" >&6; } | |
2429c060 PB |
11727 | fi |
11728 | done | |
11729 | fi | |
11730 | ||
11731 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11732 | for ncn_progname in lipo; do | |
11733 | if test -n "$ncn_target_tool_prefix"; then | |
11734 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11735 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11737 | $as_echo_n "checking for $ac_word... " >&6; } | |
11738 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11739 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11740 | else |
11741 | if test -n "$LIPO_FOR_TARGET"; then | |
11742 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11743 | else | |
c6b750e1 DJ |
11744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11745 | for as_dir in $PATH | |
11746 | do | |
11747 | IFS=$as_save_IFS | |
11748 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11749 | for ac_exec_ext in '' $ac_executable_extensions; do |
11750 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11751 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11752 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11753 | break 2 |
11754 | fi | |
11755 | done | |
81ecdfbb RW |
11756 | done |
11757 | IFS=$as_save_IFS | |
c6b750e1 | 11758 | |
2429c060 PB |
11759 | fi |
11760 | fi | |
c6b750e1 | 11761 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11762 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11764 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11765 | else |
81ecdfbb RW |
11766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11767 | $as_echo "no" >&6; } | |
2429c060 PB |
11768 | fi |
11769 | ||
81ecdfbb | 11770 | |
2429c060 PB |
11771 | fi |
11772 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11773 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11774 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11776 | $as_echo_n "checking for $ac_word... " >&6; } | |
11777 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11778 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11779 | else |
11780 | if test -n "$LIPO_FOR_TARGET"; then | |
11781 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11782 | else | |
c6b750e1 DJ |
11783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11784 | for as_dir in $PATH | |
11785 | do | |
11786 | IFS=$as_save_IFS | |
11787 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11788 | for ac_exec_ext in '' $ac_executable_extensions; do |
11789 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11790 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11791 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11792 | break 2 |
11793 | fi | |
11794 | done | |
81ecdfbb RW |
11795 | done |
11796 | IFS=$as_save_IFS | |
c6b750e1 | 11797 | |
2429c060 PB |
11798 | fi |
11799 | fi | |
c6b750e1 | 11800 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11801 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11803 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11804 | else |
81ecdfbb RW |
11805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11806 | $as_echo "no" >&6; } | |
2429c060 | 11807 | fi |
c6b750e1 | 11808 | |
81ecdfbb | 11809 | |
2429c060 PB |
11810 | fi |
11811 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
11812 | done | |
11813 | fi | |
c6b750e1 | 11814 | |
2429c060 PB |
11815 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
11816 | set dummy lipo | |
11817 | if test $build = $target ; then | |
11818 | LIPO_FOR_TARGET="$2" | |
11819 | else | |
11820 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11821 | fi | |
d3f5afc4 MS |
11822 | else |
11823 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
11824 | fi |
11825 | ||
3a35eeb3 PB |
11826 | else |
11827 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
11828 | fi |
11829 | ||
11830 | ||
11831 | ||
11832 | ||
11833 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11834 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
11836 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11837 | if test -x $with_build_time_tools/nm; then |
11838 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
11839 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
11840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
11841 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 11842 | else |
81ecdfbb RW |
11843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11844 | $as_echo "no" >&6; } | |
3a35eeb3 | 11845 | fi |
2429c060 PB |
11846 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11847 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
11848 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
11849 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
11850 | fi |
11851 | fi | |
c6b750e1 | 11852 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11853 | # Extract the first word of "nm", so it can be a program name with args. |
11854 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
11855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11856 | $as_echo_n "checking for $ac_word... " >&6; } | |
11857 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
11858 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11859 | else |
c6b750e1 DJ |
11860 | case $NM_FOR_TARGET in |
11861 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11862 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
11863 | ;; | |
2429c060 | 11864 | *) |
c6b750e1 DJ |
11865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11866 | for as_dir in $gcc_cv_tool_dirs | |
11867 | do | |
11868 | IFS=$as_save_IFS | |
11869 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11870 | for ac_exec_ext in '' $ac_executable_extensions; do |
11871 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11872 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11874 | break 2 |
11875 | fi | |
11876 | done | |
81ecdfbb RW |
11877 | done |
11878 | IFS=$as_save_IFS | |
c6b750e1 | 11879 | |
2429c060 PB |
11880 | ;; |
11881 | esac | |
11882 | fi | |
c6b750e1 | 11883 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 11884 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
11885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11886 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 11887 | else |
81ecdfbb RW |
11888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11889 | $as_echo "no" >&6; } | |
2429c060 PB |
11890 | fi |
11891 | ||
81ecdfbb | 11892 | |
2429c060 PB |
11893 | fi |
11894 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
11895 | |
11896 | ||
11897 | if test -n "$NM_FOR_TARGET"; then | |
11898 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
11899 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11900 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11901 | fi | |
11902 | ||
11903 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11904 | for ncn_progname in nm; do | |
11905 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11906 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11908 | $as_echo_n "checking for $ac_word... " >&6; } | |
11909 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11910 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11911 | else |
11912 | if test -n "$NM_FOR_TARGET"; then | |
11913 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
11914 | else | |
11915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11916 | for as_dir in $PATH | |
11917 | do | |
11918 | IFS=$as_save_IFS | |
11919 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11920 | for ac_exec_ext in '' $ac_executable_extensions; do |
11921 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11922 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11924 | break 2 |
11925 | fi | |
11926 | done | |
81ecdfbb RW |
11927 | done |
11928 | IFS=$as_save_IFS | |
9a819804 AO |
11929 | |
11930 | fi | |
11931 | fi | |
11932 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11933 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
11934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11935 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 11936 | else |
81ecdfbb RW |
11937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11938 | $as_echo "no" >&6; } | |
9a819804 AO |
11939 | fi |
11940 | ||
81ecdfbb | 11941 | |
9a819804 AO |
11942 | done |
11943 | fi | |
11944 | ||
11945 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11946 | for ncn_progname in nm; do |
81ecdfbb RW |
11947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11948 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11949 | if test -x $with_build_time_tools/${ncn_progname}; then |
11950 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11952 | $as_echo "yes" >&6; } | |
2429c060 PB |
11953 | break |
11954 | else | |
81ecdfbb RW |
11955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11956 | $as_echo "no" >&6; } | |
2429c060 PB |
11957 | fi |
11958 | done | |
11959 | fi | |
11960 | ||
11961 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
11962 | for ncn_progname in nm; do | |
11963 | if test -n "$ncn_target_tool_prefix"; then | |
11964 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 11965 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11967 | $as_echo_n "checking for $ac_word... " >&6; } | |
11968 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11969 | $as_echo_n "(cached) " >&6 | |
859789af | 11970 | else |
55db4b87 PB |
11971 | if test -n "$NM_FOR_TARGET"; then |
11972 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 11973 | else |
c6b750e1 DJ |
11974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11975 | for as_dir in $PATH | |
11976 | do | |
11977 | IFS=$as_save_IFS | |
11978 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11979 | for ac_exec_ext in '' $ac_executable_extensions; do |
11980 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11981 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11983 | break 2 |
11984 | fi | |
11985 | done | |
81ecdfbb RW |
11986 | done |
11987 | IFS=$as_save_IFS | |
c6b750e1 | 11988 | |
859789af AC |
11989 | fi |
11990 | fi | |
c6b750e1 | 11991 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 11992 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
11993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11994 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 11995 | else |
81ecdfbb RW |
11996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11997 | $as_echo "no" >&6; } | |
859789af AC |
11998 | fi |
11999 | ||
81ecdfbb | 12000 | |
2429c060 PB |
12001 | fi |
12002 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12003 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12004 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12006 | $as_echo_n "checking for $ac_word... " >&6; } | |
12007 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12008 | $as_echo_n "(cached) " >&6 | |
859789af | 12009 | else |
05cbd757 PB |
12010 | if test -n "$NM_FOR_TARGET"; then |
12011 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12012 | else |
c6b750e1 DJ |
12013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12014 | for as_dir in $PATH | |
12015 | do | |
12016 | IFS=$as_save_IFS | |
12017 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12018 | for ac_exec_ext in '' $ac_executable_extensions; do |
12019 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12020 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12021 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12022 | break 2 |
12023 | fi | |
12024 | done | |
81ecdfbb RW |
12025 | done |
12026 | IFS=$as_save_IFS | |
c6b750e1 | 12027 | |
859789af AC |
12028 | fi |
12029 | fi | |
c6b750e1 | 12030 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 12031 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12033 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12034 | else |
81ecdfbb RW |
12035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12036 | $as_echo "no" >&6; } | |
859789af | 12037 | fi |
c6b750e1 | 12038 | |
81ecdfbb | 12039 | |
2429c060 PB |
12040 | fi |
12041 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12042 | done | |
12043 | fi | |
c6b750e1 | 12044 | |
05cbd757 PB |
12045 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12046 | set dummy nm | |
12047 | if test $build = $target ; then | |
12048 | NM_FOR_TARGET="$2" | |
859789af | 12049 | else |
05cbd757 | 12050 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 12051 | fi |
d3f5afc4 MS |
12052 | else |
12053 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
12054 | fi |
12055 | ||
3a35eeb3 PB |
12056 | else |
12057 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
12058 | fi |
12059 | ||
12060 | ||
12061 | ||
12062 | ||
6b91c541 AP |
12063 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12064 | if test -n "$with_build_time_tools"; then | |
12065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12066 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12067 | if test -x $with_build_time_tools/objcopy; then | |
12068 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12069 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12071 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12072 | else | |
12073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12074 | $as_echo "no" >&6; } | |
12075 | fi | |
12076 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12077 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12078 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12079 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12080 | fi | |
12081 | fi | |
12082 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12083 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12084 | set dummy objcopy; ac_word=$2 | |
12085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12086 | $as_echo_n "checking for $ac_word... " >&6; } | |
12087 | if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12088 | $as_echo_n "(cached) " >&6 | |
12089 | else | |
12090 | case $OBJCOPY_FOR_TARGET in | |
12091 | [\\/]* | ?:[\\/]*) | |
12092 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12093 | ;; | |
12094 | *) | |
12095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12096 | for as_dir in $gcc_cv_tool_dirs | |
12097 | do | |
12098 | IFS=$as_save_IFS | |
12099 | test -z "$as_dir" && as_dir=. | |
12100 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12101 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12102 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12103 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12104 | break 2 | |
12105 | fi | |
12106 | done | |
12107 | done | |
12108 | IFS=$as_save_IFS | |
12109 | ||
12110 | ;; | |
12111 | esac | |
12112 | fi | |
12113 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12114 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12116 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12117 | else | |
12118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12119 | $as_echo "no" >&6; } | |
12120 | fi | |
12121 | ||
12122 | ||
12123 | fi | |
12124 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12125 | ||
12126 | ||
12127 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12128 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12129 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12130 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12131 | fi | |
12132 | ||
12133 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12134 | for ncn_progname in objcopy; do | |
12135 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12136 | set dummy ${ncn_progname}; ac_word=$2 | |
12137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12138 | $as_echo_n "checking for $ac_word... " >&6; } | |
12139 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12140 | $as_echo_n "(cached) " >&6 | |
12141 | else | |
12142 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12143 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12144 | else | |
12145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12146 | for as_dir in $PATH | |
12147 | do | |
12148 | IFS=$as_save_IFS | |
12149 | test -z "$as_dir" && as_dir=. | |
12150 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12151 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12152 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12153 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12154 | break 2 | |
12155 | fi | |
12156 | done | |
12157 | done | |
12158 | IFS=$as_save_IFS | |
12159 | ||
12160 | fi | |
12161 | fi | |
12162 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12163 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12165 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12166 | else | |
12167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12168 | $as_echo "no" >&6; } | |
12169 | fi | |
12170 | ||
12171 | ||
12172 | done | |
12173 | fi | |
12174 | ||
12175 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12176 | for ncn_progname in objcopy; do | |
12177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12178 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12179 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12180 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12182 | $as_echo "yes" >&6; } | |
12183 | break | |
12184 | else | |
12185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12186 | $as_echo "no" >&6; } | |
12187 | fi | |
12188 | done | |
12189 | fi | |
12190 | ||
12191 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12192 | for ncn_progname in objcopy; do | |
12193 | if test -n "$ncn_target_tool_prefix"; then | |
12194 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12195 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12197 | $as_echo_n "checking for $ac_word... " >&6; } | |
12198 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12199 | $as_echo_n "(cached) " >&6 | |
12200 | else | |
12201 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12202 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12203 | else | |
12204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12205 | for as_dir in $PATH | |
12206 | do | |
12207 | IFS=$as_save_IFS | |
12208 | test -z "$as_dir" && as_dir=. | |
12209 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12210 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12211 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12212 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12213 | break 2 | |
12214 | fi | |
12215 | done | |
12216 | done | |
12217 | IFS=$as_save_IFS | |
12218 | ||
12219 | fi | |
12220 | fi | |
12221 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12222 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12224 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12225 | else | |
12226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12227 | $as_echo "no" >&6; } | |
12228 | fi | |
12229 | ||
12230 | ||
12231 | fi | |
12232 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12233 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12234 | set dummy ${ncn_progname}; ac_word=$2 | |
12235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12236 | $as_echo_n "checking for $ac_word... " >&6; } | |
12237 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12238 | $as_echo_n "(cached) " >&6 | |
12239 | else | |
12240 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12241 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12242 | else | |
12243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12244 | for as_dir in $PATH | |
12245 | do | |
12246 | IFS=$as_save_IFS | |
12247 | test -z "$as_dir" && as_dir=. | |
12248 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12249 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12250 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12251 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12252 | break 2 | |
12253 | fi | |
12254 | done | |
12255 | done | |
12256 | IFS=$as_save_IFS | |
12257 | ||
12258 | fi | |
12259 | fi | |
12260 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12261 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12263 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12264 | else | |
12265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12266 | $as_echo "no" >&6; } | |
12267 | fi | |
12268 | ||
12269 | ||
12270 | fi | |
12271 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12272 | done | |
12273 | fi | |
12274 | ||
12275 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12276 | set dummy objcopy | |
12277 | if test $build = $target ; then | |
12278 | OBJCOPY_FOR_TARGET="$2" | |
12279 | else | |
12280 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12281 | fi | |
12282 | else | |
12283 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12284 | fi | |
12285 | ||
12286 | else | |
12287 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12288 | fi | |
12289 | ||
12290 | ||
12291 | ||
12292 | ||
2429c060 PB |
12293 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12294 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12296 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12297 | if test -x $with_build_time_tools/objdump; then |
12298 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12299 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
12300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12301 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12302 | else |
81ecdfbb RW |
12303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12304 | $as_echo "no" >&6; } | |
3a35eeb3 | 12305 | fi |
2429c060 PB |
12306 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12307 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
12308 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12309 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
12310 | fi |
12311 | fi | |
c6b750e1 | 12312 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12313 | # Extract the first word of "objdump", so it can be a program name with args. |
12314 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
12315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12316 | $as_echo_n "checking for $ac_word... " >&6; } | |
12317 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12318 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12319 | else |
c6b750e1 DJ |
12320 | case $OBJDUMP_FOR_TARGET in |
12321 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12322 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12323 | ;; | |
2429c060 | 12324 | *) |
c6b750e1 DJ |
12325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12326 | for as_dir in $gcc_cv_tool_dirs | |
12327 | do | |
12328 | IFS=$as_save_IFS | |
12329 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12330 | for ac_exec_ext in '' $ac_executable_extensions; do |
12331 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12332 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12333 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12334 | break 2 |
12335 | fi | |
12336 | done | |
81ecdfbb RW |
12337 | done |
12338 | IFS=$as_save_IFS | |
c6b750e1 | 12339 | |
2429c060 PB |
12340 | ;; |
12341 | esac | |
12342 | fi | |
c6b750e1 | 12343 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 12344 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12346 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 12347 | else |
81ecdfbb RW |
12348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12349 | $as_echo "no" >&6; } | |
2429c060 PB |
12350 | fi |
12351 | ||
81ecdfbb | 12352 | |
2429c060 PB |
12353 | fi |
12354 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
12355 | |
12356 | ||
12357 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12358 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12359 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12360 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12361 | fi | |
12362 | ||
12363 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12364 | for ncn_progname in objdump; do | |
12365 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12366 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12368 | $as_echo_n "checking for $ac_word... " >&6; } | |
12369 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12370 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12371 | else |
12372 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12373 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12374 | else | |
12375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12376 | for as_dir in $PATH | |
12377 | do | |
12378 | IFS=$as_save_IFS | |
12379 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12380 | for ac_exec_ext in '' $ac_executable_extensions; do |
12381 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12382 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12384 | break 2 |
12385 | fi | |
12386 | done | |
81ecdfbb RW |
12387 | done |
12388 | IFS=$as_save_IFS | |
9a819804 AO |
12389 | |
12390 | fi | |
12391 | fi | |
12392 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12393 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
12394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12395 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 12396 | else |
81ecdfbb RW |
12397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12398 | $as_echo "no" >&6; } | |
9a819804 AO |
12399 | fi |
12400 | ||
81ecdfbb | 12401 | |
9a819804 AO |
12402 | done |
12403 | fi | |
12404 | ||
12405 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12406 | for ncn_progname in objdump; do |
81ecdfbb RW |
12407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12408 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12409 | if test -x $with_build_time_tools/${ncn_progname}; then |
12410 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12412 | $as_echo "yes" >&6; } | |
2429c060 PB |
12413 | break |
12414 | else | |
81ecdfbb RW |
12415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12416 | $as_echo "no" >&6; } | |
2429c060 PB |
12417 | fi |
12418 | done | |
12419 | fi | |
12420 | ||
12421 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12422 | for ncn_progname in objdump; do | |
12423 | if test -n "$ncn_target_tool_prefix"; then | |
12424 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12425 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12427 | $as_echo_n "checking for $ac_word... " >&6; } | |
12428 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12429 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12430 | else |
12431 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12432 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12433 | else | |
c6b750e1 DJ |
12434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12435 | for as_dir in $PATH | |
12436 | do | |
12437 | IFS=$as_save_IFS | |
12438 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12439 | for ac_exec_ext in '' $ac_executable_extensions; do |
12440 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12441 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12442 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12443 | break 2 |
12444 | fi | |
12445 | done | |
81ecdfbb RW |
12446 | done |
12447 | IFS=$as_save_IFS | |
c6b750e1 | 12448 | |
5ae72758 DJ |
12449 | fi |
12450 | fi | |
c6b750e1 | 12451 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12452 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12454 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12455 | else |
81ecdfbb RW |
12456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12457 | $as_echo "no" >&6; } | |
5ae72758 DJ |
12458 | fi |
12459 | ||
81ecdfbb | 12460 | |
2429c060 PB |
12461 | fi |
12462 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12463 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12464 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12466 | $as_echo_n "checking for $ac_word... " >&6; } | |
12467 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12468 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12469 | else |
12470 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12471 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12472 | else | |
c6b750e1 DJ |
12473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12474 | for as_dir in $PATH | |
12475 | do | |
12476 | IFS=$as_save_IFS | |
12477 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12478 | for ac_exec_ext in '' $ac_executable_extensions; do |
12479 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12480 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12481 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12482 | break 2 |
12483 | fi | |
12484 | done | |
81ecdfbb RW |
12485 | done |
12486 | IFS=$as_save_IFS | |
c6b750e1 | 12487 | |
5ae72758 DJ |
12488 | fi |
12489 | fi | |
c6b750e1 | 12490 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12491 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12493 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12494 | else |
81ecdfbb RW |
12495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12496 | $as_echo "no" >&6; } | |
5ae72758 | 12497 | fi |
c6b750e1 | 12498 | |
81ecdfbb | 12499 | |
2429c060 PB |
12500 | fi |
12501 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12502 | done | |
12503 | fi | |
c6b750e1 | 12504 | |
5ae72758 DJ |
12505 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12506 | set dummy objdump | |
12507 | if test $build = $target ; then | |
12508 | OBJDUMP_FOR_TARGET="$2" | |
12509 | else | |
12510 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12511 | fi | |
d3f5afc4 MS |
12512 | else |
12513 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
12514 | fi |
12515 | ||
3a35eeb3 PB |
12516 | else |
12517 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
12518 | fi |
12519 | ||
12520 | ||
12521 | ||
12522 | ||
12523 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12524 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12526 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12527 | if test -x $with_build_time_tools/ranlib; then |
12528 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12529 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
12530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12531 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 12532 | else |
81ecdfbb RW |
12533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12534 | $as_echo "no" >&6; } | |
3a35eeb3 | 12535 | fi |
2429c060 PB |
12536 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12537 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
12538 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12539 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
12540 | fi |
12541 | fi | |
c6b750e1 | 12542 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12543 | # Extract the first word of "ranlib", so it can be a program name with args. |
12544 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
12545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12546 | $as_echo_n "checking for $ac_word... " >&6; } | |
12547 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12548 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12549 | else |
c6b750e1 DJ |
12550 | case $RANLIB_FOR_TARGET in |
12551 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12552 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12553 | ;; | |
2429c060 | 12554 | *) |
c6b750e1 DJ |
12555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12556 | for as_dir in $gcc_cv_tool_dirs | |
12557 | do | |
12558 | IFS=$as_save_IFS | |
12559 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12560 | for ac_exec_ext in '' $ac_executable_extensions; do |
12561 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12562 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12563 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12564 | break 2 |
12565 | fi | |
12566 | done | |
81ecdfbb RW |
12567 | done |
12568 | IFS=$as_save_IFS | |
c6b750e1 | 12569 | |
2429c060 PB |
12570 | ;; |
12571 | esac | |
12572 | fi | |
c6b750e1 | 12573 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 12574 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12576 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 12577 | else |
81ecdfbb RW |
12578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12579 | $as_echo "no" >&6; } | |
2429c060 PB |
12580 | fi |
12581 | ||
81ecdfbb | 12582 | |
2429c060 PB |
12583 | fi |
12584 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
12585 | |
12586 | ||
12587 | if test -n "$RANLIB_FOR_TARGET"; then | |
12588 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12589 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12590 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12591 | fi | |
12592 | ||
12593 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12594 | for ncn_progname in ranlib; do | |
12595 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12596 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12598 | $as_echo_n "checking for $ac_word... " >&6; } | |
12599 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12600 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12601 | else |
12602 | if test -n "$RANLIB_FOR_TARGET"; then | |
12603 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12604 | else | |
12605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12606 | for as_dir in $PATH | |
12607 | do | |
12608 | IFS=$as_save_IFS | |
12609 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12610 | for ac_exec_ext in '' $ac_executable_extensions; do |
12611 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12612 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12613 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12614 | break 2 |
12615 | fi | |
12616 | done | |
81ecdfbb RW |
12617 | done |
12618 | IFS=$as_save_IFS | |
9a819804 AO |
12619 | |
12620 | fi | |
12621 | fi | |
12622 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12623 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
12624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12625 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 12626 | else |
81ecdfbb RW |
12627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12628 | $as_echo "no" >&6; } | |
9a819804 AO |
12629 | fi |
12630 | ||
81ecdfbb | 12631 | |
9a819804 AO |
12632 | done |
12633 | fi | |
12634 | ||
12635 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12636 | for ncn_progname in ranlib; do |
81ecdfbb RW |
12637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12638 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12639 | if test -x $with_build_time_tools/${ncn_progname}; then |
12640 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12642 | $as_echo "yes" >&6; } | |
2429c060 PB |
12643 | break |
12644 | else | |
81ecdfbb RW |
12645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12646 | $as_echo "no" >&6; } | |
2429c060 PB |
12647 | fi |
12648 | done | |
12649 | fi | |
12650 | ||
12651 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12652 | for ncn_progname in ranlib; do | |
12653 | if test -n "$ncn_target_tool_prefix"; then | |
12654 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12655 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12657 | $as_echo_n "checking for $ac_word... " >&6; } | |
12658 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12659 | $as_echo_n "(cached) " >&6 | |
859789af | 12660 | else |
55db4b87 PB |
12661 | if test -n "$RANLIB_FOR_TARGET"; then |
12662 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12663 | else |
c6b750e1 DJ |
12664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12665 | for as_dir in $PATH | |
12666 | do | |
12667 | IFS=$as_save_IFS | |
12668 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12669 | for ac_exec_ext in '' $ac_executable_extensions; do |
12670 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12671 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12672 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12673 | break 2 |
12674 | fi | |
12675 | done | |
81ecdfbb RW |
12676 | done |
12677 | IFS=$as_save_IFS | |
c6b750e1 | 12678 | |
859789af AC |
12679 | fi |
12680 | fi | |
c6b750e1 | 12681 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 12682 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12684 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12685 | else |
81ecdfbb RW |
12686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12687 | $as_echo "no" >&6; } | |
859789af AC |
12688 | fi |
12689 | ||
81ecdfbb | 12690 | |
2429c060 PB |
12691 | fi |
12692 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12693 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12694 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12696 | $as_echo_n "checking for $ac_word... " >&6; } | |
12697 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12698 | $as_echo_n "(cached) " >&6 | |
859789af | 12699 | else |
05cbd757 PB |
12700 | if test -n "$RANLIB_FOR_TARGET"; then |
12701 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12702 | else |
c6b750e1 DJ |
12703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12704 | for as_dir in $PATH | |
12705 | do | |
12706 | IFS=$as_save_IFS | |
12707 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12708 | for ac_exec_ext in '' $ac_executable_extensions; do |
12709 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12710 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12711 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12712 | break 2 |
12713 | fi | |
12714 | done | |
81ecdfbb RW |
12715 | done |
12716 | IFS=$as_save_IFS | |
c6b750e1 | 12717 | |
859789af AC |
12718 | fi |
12719 | fi | |
c6b750e1 | 12720 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 12721 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12723 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12724 | else |
81ecdfbb RW |
12725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12726 | $as_echo "no" >&6; } | |
859789af | 12727 | fi |
c6b750e1 | 12728 | |
81ecdfbb | 12729 | |
2429c060 PB |
12730 | fi |
12731 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12732 | done | |
12733 | fi | |
c6b750e1 | 12734 | |
2429c060 PB |
12735 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12736 | set dummy ranlib | |
12737 | if test $build = $target ; then | |
12738 | RANLIB_FOR_TARGET="$2" | |
12739 | else | |
12740 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 12741 | fi |
d3f5afc4 MS |
12742 | else |
12743 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 12744 | fi |
05cbd757 | 12745 | |
3a35eeb3 PB |
12746 | else |
12747 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
12748 | fi |
12749 | ||
2429c060 PB |
12750 | |
12751 | ||
12752 | ||
b121d7d4 DD |
12753 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
12754 | if test -n "$with_build_time_tools"; then | |
12755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
12756 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
12757 | if test -x $with_build_time_tools/readelf; then | |
12758 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
12759 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
12761 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
12762 | else | |
12763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12764 | $as_echo "no" >&6; } | |
12765 | fi | |
12766 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12767 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
12768 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
12769 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12770 | fi | |
12771 | fi | |
12772 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12773 | # Extract the first word of "readelf", so it can be a program name with args. | |
12774 | set dummy readelf; ac_word=$2 | |
12775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12776 | $as_echo_n "checking for $ac_word... " >&6; } | |
12777 | if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then : | |
12778 | $as_echo_n "(cached) " >&6 | |
12779 | else | |
12780 | case $READELF_FOR_TARGET in | |
12781 | [\\/]* | ?:[\\/]*) | |
12782 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
12783 | ;; | |
12784 | *) | |
12785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12786 | for as_dir in $gcc_cv_tool_dirs | |
12787 | do | |
12788 | IFS=$as_save_IFS | |
12789 | test -z "$as_dir" && as_dir=. | |
12790 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12791 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12792 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12794 | break 2 | |
12795 | fi | |
12796 | done | |
12797 | done | |
12798 | IFS=$as_save_IFS | |
12799 | ||
12800 | ;; | |
12801 | esac | |
12802 | fi | |
12803 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12804 | if test -n "$READELF_FOR_TARGET"; then | |
12805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12806 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12807 | else | |
12808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12809 | $as_echo "no" >&6; } | |
12810 | fi | |
12811 | ||
12812 | ||
12813 | fi | |
12814 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
12815 | ||
12816 | ||
12817 | if test -n "$READELF_FOR_TARGET"; then | |
12818 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12819 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12820 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12821 | fi | |
12822 | ||
12823 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12824 | for ncn_progname in readelf; do | |
12825 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12826 | set dummy ${ncn_progname}; ac_word=$2 | |
12827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12828 | $as_echo_n "checking for $ac_word... " >&6; } | |
12829 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12830 | $as_echo_n "(cached) " >&6 | |
12831 | else | |
12832 | if test -n "$READELF_FOR_TARGET"; then | |
12833 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12834 | else | |
12835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12836 | for as_dir in $PATH | |
12837 | do | |
12838 | IFS=$as_save_IFS | |
12839 | test -z "$as_dir" && as_dir=. | |
12840 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12841 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12842 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12843 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12844 | break 2 | |
12845 | fi | |
12846 | done | |
12847 | done | |
12848 | IFS=$as_save_IFS | |
12849 | ||
12850 | fi | |
12851 | fi | |
12852 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12853 | if test -n "$READELF_FOR_TARGET"; then | |
12854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12855 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12856 | else | |
12857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12858 | $as_echo "no" >&6; } | |
12859 | fi | |
12860 | ||
12861 | ||
12862 | done | |
12863 | fi | |
12864 | ||
12865 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12866 | for ncn_progname in readelf; do | |
12867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12868 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12869 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12870 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12872 | $as_echo "yes" >&6; } | |
12873 | break | |
12874 | else | |
12875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12876 | $as_echo "no" >&6; } | |
12877 | fi | |
12878 | done | |
12879 | fi | |
12880 | ||
12881 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12882 | for ncn_progname in readelf; do | |
12883 | if test -n "$ncn_target_tool_prefix"; then | |
12884 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12885 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12887 | $as_echo_n "checking for $ac_word... " >&6; } | |
12888 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12889 | $as_echo_n "(cached) " >&6 | |
12890 | else | |
12891 | if test -n "$READELF_FOR_TARGET"; then | |
12892 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12893 | else | |
12894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12895 | for as_dir in $PATH | |
12896 | do | |
12897 | IFS=$as_save_IFS | |
12898 | test -z "$as_dir" && as_dir=. | |
12899 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12900 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12901 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12902 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12903 | break 2 | |
12904 | fi | |
12905 | done | |
12906 | done | |
12907 | IFS=$as_save_IFS | |
12908 | ||
12909 | fi | |
12910 | fi | |
12911 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12912 | if test -n "$READELF_FOR_TARGET"; then | |
12913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12914 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12915 | else | |
12916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12917 | $as_echo "no" >&6; } | |
12918 | fi | |
12919 | ||
12920 | ||
12921 | fi | |
12922 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
12923 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12924 | set dummy ${ncn_progname}; ac_word=$2 | |
12925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12926 | $as_echo_n "checking for $ac_word... " >&6; } | |
12927 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12928 | $as_echo_n "(cached) " >&6 | |
12929 | else | |
12930 | if test -n "$READELF_FOR_TARGET"; then | |
12931 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12932 | else | |
12933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12934 | for as_dir in $PATH | |
12935 | do | |
12936 | IFS=$as_save_IFS | |
12937 | test -z "$as_dir" && as_dir=. | |
12938 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12939 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12940 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12941 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12942 | break 2 | |
12943 | fi | |
12944 | done | |
12945 | done | |
12946 | IFS=$as_save_IFS | |
12947 | ||
12948 | fi | |
12949 | fi | |
12950 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12951 | if test -n "$READELF_FOR_TARGET"; then | |
12952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12953 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12954 | else | |
12955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12956 | $as_echo "no" >&6; } | |
12957 | fi | |
12958 | ||
12959 | ||
12960 | fi | |
12961 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
12962 | done | |
12963 | fi | |
12964 | ||
12965 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
12966 | set dummy readelf | |
12967 | if test $build = $target ; then | |
12968 | READELF_FOR_TARGET="$2" | |
12969 | else | |
12970 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12971 | fi | |
12972 | else | |
12973 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
12974 | fi | |
12975 | ||
12976 | else | |
12977 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12978 | fi | |
12979 | ||
12980 | ||
12981 | ||
12982 | ||
2429c060 PB |
12983 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
12984 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
12986 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12987 | if test -x $with_build_time_tools/strip; then |
12988 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
12989 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
12990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
12991 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12992 | else |
81ecdfbb RW |
12993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12994 | $as_echo "no" >&6; } | |
3a35eeb3 | 12995 | fi |
2429c060 PB |
12996 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12997 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
12998 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
12999 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
13000 | fi |
13001 | fi | |
c6b750e1 | 13002 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13003 | # Extract the first word of "strip", so it can be a program name with args. |
13004 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
13005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13006 | $as_echo_n "checking for $ac_word... " >&6; } | |
13007 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
13008 | $as_echo_n "(cached) " >&6 | |
2429c060 | 13009 | else |
c6b750e1 DJ |
13010 | case $STRIP_FOR_TARGET in |
13011 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13012 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13013 | ;; | |
2429c060 | 13014 | *) |
c6b750e1 DJ |
13015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13016 | for as_dir in $gcc_cv_tool_dirs | |
13017 | do | |
13018 | IFS=$as_save_IFS | |
13019 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13020 | for ac_exec_ext in '' $ac_executable_extensions; do |
13021 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13022 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13024 | break 2 |
13025 | fi | |
13026 | done | |
81ecdfbb RW |
13027 | done |
13028 | IFS=$as_save_IFS | |
c6b750e1 | 13029 | |
2429c060 PB |
13030 | ;; |
13031 | esac | |
13032 | fi | |
c6b750e1 | 13033 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 13034 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13036 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 13037 | else |
81ecdfbb RW |
13038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13039 | $as_echo "no" >&6; } | |
2429c060 PB |
13040 | fi |
13041 | ||
81ecdfbb | 13042 | |
2429c060 PB |
13043 | fi |
13044 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
13045 | |
13046 | ||
13047 | if test -n "$STRIP_FOR_TARGET"; then | |
13048 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13049 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13050 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13051 | fi | |
13052 | ||
13053 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13054 | for ncn_progname in strip; do | |
13055 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13056 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13058 | $as_echo_n "checking for $ac_word... " >&6; } | |
13059 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13060 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
13061 | else |
13062 | if test -n "$STRIP_FOR_TARGET"; then | |
13063 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13064 | else | |
13065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13066 | for as_dir in $PATH | |
13067 | do | |
13068 | IFS=$as_save_IFS | |
13069 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13070 | for ac_exec_ext in '' $ac_executable_extensions; do |
13071 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 13072 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13073 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13074 | break 2 |
13075 | fi | |
13076 | done | |
81ecdfbb RW |
13077 | done |
13078 | IFS=$as_save_IFS | |
9a819804 AO |
13079 | |
13080 | fi | |
13081 | fi | |
13082 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13083 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
13084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13085 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 13086 | else |
81ecdfbb RW |
13087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13088 | $as_echo "no" >&6; } | |
9a819804 AO |
13089 | fi |
13090 | ||
81ecdfbb | 13091 | |
9a819804 AO |
13092 | done |
13093 | fi | |
13094 | ||
13095 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13096 | for ncn_progname in strip; do |
81ecdfbb RW |
13097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13098 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13099 | if test -x $with_build_time_tools/${ncn_progname}; then |
13100 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13102 | $as_echo "yes" >&6; } | |
2429c060 PB |
13103 | break |
13104 | else | |
81ecdfbb RW |
13105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13106 | $as_echo "no" >&6; } | |
2429c060 PB |
13107 | fi |
13108 | done | |
13109 | fi | |
13110 | ||
13111 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13112 | for ncn_progname in strip; do | |
13113 | if test -n "$ncn_target_tool_prefix"; then | |
13114 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13115 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13117 | $as_echo_n "checking for $ac_word... " >&6; } | |
13118 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13119 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
13120 | else |
13121 | if test -n "$STRIP_FOR_TARGET"; then | |
13122 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
13123 | else |
13124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13125 | for as_dir in $PATH | |
13126 | do | |
13127 | IFS=$as_save_IFS | |
13128 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13129 | for ac_exec_ext in '' $ac_executable_extensions; do |
13130 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13131 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13132 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13133 | break 2 |
13134 | fi | |
13135 | done | |
81ecdfbb RW |
13136 | done |
13137 | IFS=$as_save_IFS | |
c6b750e1 | 13138 | |
7e0f7140 GK |
13139 | fi |
13140 | fi | |
c6b750e1 | 13141 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13142 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13144 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13145 | else |
81ecdfbb RW |
13146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13147 | $as_echo "no" >&6; } | |
7e0f7140 GK |
13148 | fi |
13149 | ||
81ecdfbb | 13150 | |
2429c060 PB |
13151 | fi |
13152 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13153 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13154 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13156 | $as_echo_n "checking for $ac_word... " >&6; } | |
13157 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13158 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
13159 | else |
13160 | if test -n "$STRIP_FOR_TARGET"; then | |
13161 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13162 | else | |
c6b750e1 DJ |
13163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13164 | for as_dir in $PATH | |
13165 | do | |
13166 | IFS=$as_save_IFS | |
13167 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13168 | for ac_exec_ext in '' $ac_executable_extensions; do |
13169 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13170 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13171 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13172 | break 2 |
13173 | fi | |
13174 | done | |
81ecdfbb RW |
13175 | done |
13176 | IFS=$as_save_IFS | |
c6b750e1 | 13177 | |
7e0f7140 GK |
13178 | fi |
13179 | fi | |
c6b750e1 | 13180 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13181 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13183 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13184 | else |
81ecdfbb RW |
13185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13186 | $as_echo "no" >&6; } | |
7e0f7140 | 13187 | fi |
c6b750e1 | 13188 | |
81ecdfbb | 13189 | |
2429c060 PB |
13190 | fi |
13191 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13192 | done | |
13193 | fi | |
c6b750e1 | 13194 | |
7e0f7140 GK |
13195 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13196 | set dummy strip | |
13197 | if test $build = $target ; then | |
13198 | STRIP_FOR_TARGET="$2" | |
13199 | else | |
13200 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13201 | fi | |
d3f5afc4 MS |
13202 | else |
13203 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
13204 | fi |
13205 | ||
3a35eeb3 PB |
13206 | else |
13207 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
13208 | fi |
13209 | ||
13210 | ||
13211 | ||
13212 | ||
13213 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13214 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13216 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13217 | if test -x $with_build_time_tools/windres; then |
13218 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13219 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
13220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13221 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 13222 | else |
81ecdfbb RW |
13223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13224 | $as_echo "no" >&6; } | |
3a35eeb3 | 13225 | fi |
2429c060 PB |
13226 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13227 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
13228 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13229 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
13230 | fi |
13231 | fi | |
c6b750e1 | 13232 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13233 | # Extract the first word of "windres", so it can be a program name with args. |
13234 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
13235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13236 | $as_echo_n "checking for $ac_word... " >&6; } | |
13237 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
13238 | $as_echo_n "(cached) " >&6 | |
2429c060 | 13239 | else |
c6b750e1 DJ |
13240 | case $WINDRES_FOR_TARGET in |
13241 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13242 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13243 | ;; | |
2429c060 | 13244 | *) |
c6b750e1 DJ |
13245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13246 | for as_dir in $gcc_cv_tool_dirs | |
13247 | do | |
13248 | IFS=$as_save_IFS | |
13249 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13250 | for ac_exec_ext in '' $ac_executable_extensions; do |
13251 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13252 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13253 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13254 | break 2 |
13255 | fi | |
13256 | done | |
81ecdfbb RW |
13257 | done |
13258 | IFS=$as_save_IFS | |
c6b750e1 | 13259 | |
2429c060 PB |
13260 | ;; |
13261 | esac | |
13262 | fi | |
c6b750e1 | 13263 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 13264 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13266 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 13267 | else |
81ecdfbb RW |
13268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13269 | $as_echo "no" >&6; } | |
2429c060 PB |
13270 | fi |
13271 | ||
81ecdfbb | 13272 | |
2429c060 PB |
13273 | fi |
13274 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
13275 | |
13276 | ||
13277 | if test -n "$WINDRES_FOR_TARGET"; then | |
13278 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13279 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13280 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13281 | fi | |
13282 | ||
13283 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13284 | for ncn_progname in windres; do | |
13285 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13286 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13288 | $as_echo_n "checking for $ac_word... " >&6; } | |
13289 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13290 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
13291 | else |
13292 | if test -n "$WINDRES_FOR_TARGET"; then | |
13293 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13294 | else | |
13295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13296 | for as_dir in $PATH | |
13297 | do | |
13298 | IFS=$as_save_IFS | |
13299 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13300 | for ac_exec_ext in '' $ac_executable_extensions; do |
13301 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 13302 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13303 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13304 | break 2 |
13305 | fi | |
13306 | done | |
81ecdfbb RW |
13307 | done |
13308 | IFS=$as_save_IFS | |
9a819804 AO |
13309 | |
13310 | fi | |
13311 | fi | |
13312 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13313 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
13314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13315 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 13316 | else |
81ecdfbb RW |
13317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13318 | $as_echo "no" >&6; } | |
9a819804 AO |
13319 | fi |
13320 | ||
81ecdfbb | 13321 | |
9a819804 AO |
13322 | done |
13323 | fi | |
13324 | ||
13325 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13326 | for ncn_progname in windres; do |
81ecdfbb RW |
13327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13328 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13329 | if test -x $with_build_time_tools/${ncn_progname}; then |
13330 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13332 | $as_echo "yes" >&6; } | |
2429c060 PB |
13333 | break |
13334 | else | |
81ecdfbb RW |
13335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13336 | $as_echo "no" >&6; } | |
2429c060 PB |
13337 | fi |
13338 | done | |
13339 | fi | |
13340 | ||
13341 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13342 | for ncn_progname in windres; do | |
13343 | if test -n "$ncn_target_tool_prefix"; then | |
13344 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13345 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13347 | $as_echo_n "checking for $ac_word... " >&6; } | |
13348 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13349 | $as_echo_n "(cached) " >&6 | |
859789af | 13350 | else |
55db4b87 PB |
13351 | if test -n "$WINDRES_FOR_TARGET"; then |
13352 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13353 | else |
c6b750e1 DJ |
13354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13355 | for as_dir in $PATH | |
13356 | do | |
13357 | IFS=$as_save_IFS | |
13358 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13359 | for ac_exec_ext in '' $ac_executable_extensions; do |
13360 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13361 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13362 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13363 | break 2 |
13364 | fi | |
13365 | done | |
81ecdfbb RW |
13366 | done |
13367 | IFS=$as_save_IFS | |
c6b750e1 | 13368 | |
859789af AC |
13369 | fi |
13370 | fi | |
c6b750e1 | 13371 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 13372 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13374 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13375 | else |
81ecdfbb RW |
13376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13377 | $as_echo "no" >&6; } | |
859789af AC |
13378 | fi |
13379 | ||
81ecdfbb | 13380 | |
2429c060 PB |
13381 | fi |
13382 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13383 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13384 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13386 | $as_echo_n "checking for $ac_word... " >&6; } | |
13387 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13388 | $as_echo_n "(cached) " >&6 | |
859789af | 13389 | else |
05cbd757 PB |
13390 | if test -n "$WINDRES_FOR_TARGET"; then |
13391 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13392 | else |
c6b750e1 DJ |
13393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13394 | for as_dir in $PATH | |
13395 | do | |
13396 | IFS=$as_save_IFS | |
13397 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13398 | for ac_exec_ext in '' $ac_executable_extensions; do |
13399 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13400 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13401 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13402 | break 2 |
13403 | fi | |
13404 | done | |
81ecdfbb RW |
13405 | done |
13406 | IFS=$as_save_IFS | |
c6b750e1 | 13407 | |
859789af AC |
13408 | fi |
13409 | fi | |
c6b750e1 | 13410 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 13411 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13413 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13414 | else |
81ecdfbb RW |
13415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13416 | $as_echo "no" >&6; } | |
859789af | 13417 | fi |
c6b750e1 | 13418 | |
81ecdfbb | 13419 | |
2429c060 PB |
13420 | fi |
13421 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13422 | done | |
13423 | fi | |
c6b750e1 | 13424 | |
05cbd757 PB |
13425 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13426 | set dummy windres | |
13427 | if test $build = $target ; then | |
13428 | WINDRES_FOR_TARGET="$2" | |
859789af | 13429 | else |
05cbd757 | 13430 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 13431 | fi |
d3f5afc4 MS |
13432 | else |
13433 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
13434 | fi |
13435 | ||
3a35eeb3 PB |
13436 | else |
13437 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
13438 | fi |
13439 | ||
852e5f18 | 13440 | |
0c24b341 NC |
13441 | |
13442 | ||
13443 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13444 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13446 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13447 | if test -x $with_build_time_tools/windmc; then |
13448 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13449 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
13450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13451 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13452 | else |
81ecdfbb RW |
13453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13454 | $as_echo "no" >&6; } | |
0c24b341 NC |
13455 | fi |
13456 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13457 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
13458 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
13459 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13460 | fi | |
13461 | fi | |
13462 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13463 | # Extract the first word of "windmc", so it can be a program name with args. | |
13464 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
13465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13466 | $as_echo_n "checking for $ac_word... " >&6; } | |
13467 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13468 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13469 | else |
13470 | case $WINDMC_FOR_TARGET in | |
13471 | [\\/]* | ?:[\\/]*) | |
13472 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13473 | ;; | |
13474 | *) | |
13475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13476 | for as_dir in $gcc_cv_tool_dirs | |
13477 | do | |
13478 | IFS=$as_save_IFS | |
13479 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13480 | for ac_exec_ext in '' $ac_executable_extensions; do |
13481 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13482 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13484 | break 2 |
13485 | fi | |
13486 | done | |
81ecdfbb RW |
13487 | done |
13488 | IFS=$as_save_IFS | |
0c24b341 NC |
13489 | |
13490 | ;; | |
13491 | esac | |
13492 | fi | |
13493 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 13494 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
13495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13496 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13497 | else |
81ecdfbb RW |
13498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13499 | $as_echo "no" >&6; } | |
0c24b341 NC |
13500 | fi |
13501 | ||
81ecdfbb | 13502 | |
0c24b341 NC |
13503 | fi |
13504 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13505 | ||
13506 | ||
13507 | if test -n "$WINDMC_FOR_TARGET"; then | |
13508 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13509 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13510 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13511 | fi | |
13512 | ||
13513 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13514 | for ncn_progname in windmc; do | |
13515 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13516 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13518 | $as_echo_n "checking for $ac_word... " >&6; } | |
13519 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13520 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13521 | else |
13522 | if test -n "$WINDMC_FOR_TARGET"; then | |
13523 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13524 | else | |
13525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13526 | for as_dir in $PATH | |
13527 | do | |
13528 | IFS=$as_save_IFS | |
13529 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13530 | for ac_exec_ext in '' $ac_executable_extensions; do |
13531 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13532 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13533 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13534 | break 2 |
13535 | fi | |
13536 | done | |
81ecdfbb RW |
13537 | done |
13538 | IFS=$as_save_IFS | |
0c24b341 NC |
13539 | |
13540 | fi | |
13541 | fi | |
13542 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13543 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13545 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13546 | else |
81ecdfbb RW |
13547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13548 | $as_echo "no" >&6; } | |
0c24b341 NC |
13549 | fi |
13550 | ||
81ecdfbb | 13551 | |
0c24b341 NC |
13552 | done |
13553 | fi | |
13554 | ||
13555 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13556 | for ncn_progname in windmc; do | |
81ecdfbb RW |
13557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13558 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13559 | if test -x $with_build_time_tools/${ncn_progname}; then |
13560 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13562 | $as_echo "yes" >&6; } | |
0c24b341 NC |
13563 | break |
13564 | else | |
81ecdfbb RW |
13565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13566 | $as_echo "no" >&6; } | |
0c24b341 NC |
13567 | fi |
13568 | done | |
13569 | fi | |
13570 | ||
13571 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13572 | for ncn_progname in windmc; do | |
13573 | if test -n "$ncn_target_tool_prefix"; then | |
13574 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13575 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13577 | $as_echo_n "checking for $ac_word... " >&6; } | |
13578 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13579 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13580 | else |
13581 | if test -n "$WINDMC_FOR_TARGET"; then | |
13582 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13583 | else | |
13584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13585 | for as_dir in $PATH | |
13586 | do | |
13587 | IFS=$as_save_IFS | |
13588 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13589 | for ac_exec_ext in '' $ac_executable_extensions; do |
13590 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13591 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13592 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13593 | break 2 |
13594 | fi | |
13595 | done | |
81ecdfbb RW |
13596 | done |
13597 | IFS=$as_save_IFS | |
0c24b341 NC |
13598 | |
13599 | fi | |
13600 | fi | |
13601 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13602 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13604 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13605 | else |
81ecdfbb RW |
13606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13607 | $as_echo "no" >&6; } | |
0c24b341 NC |
13608 | fi |
13609 | ||
81ecdfbb | 13610 | |
0c24b341 NC |
13611 | fi |
13612 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13613 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13614 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13616 | $as_echo_n "checking for $ac_word... " >&6; } | |
13617 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13618 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13619 | else |
13620 | if test -n "$WINDMC_FOR_TARGET"; then | |
13621 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13622 | else | |
13623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13624 | for as_dir in $PATH | |
13625 | do | |
13626 | IFS=$as_save_IFS | |
13627 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13628 | for ac_exec_ext in '' $ac_executable_extensions; do |
13629 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13630 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13631 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13632 | break 2 |
13633 | fi | |
13634 | done | |
81ecdfbb RW |
13635 | done |
13636 | IFS=$as_save_IFS | |
0c24b341 NC |
13637 | |
13638 | fi | |
13639 | fi | |
13640 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13641 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13643 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13644 | else |
81ecdfbb RW |
13645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13646 | $as_echo "no" >&6; } | |
0c24b341 NC |
13647 | fi |
13648 | ||
81ecdfbb | 13649 | |
0c24b341 NC |
13650 | fi |
13651 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13652 | done | |
13653 | fi | |
13654 | ||
13655 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13656 | set dummy windmc | |
13657 | if test $build = $target ; then | |
13658 | WINDMC_FOR_TARGET="$2" | |
13659 | else | |
13660 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13661 | fi | |
13662 | else | |
13663 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
13664 | fi | |
13665 | ||
13666 | else | |
13667 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13668 | fi | |
13669 | ||
13670 | ||
be01d343 PB |
13671 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13672 | ||
81ecdfbb RW |
13673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13674 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 13675 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13676 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13677 | # We already found the complete path | |
b8025f34 | 13678 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13680 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13681 | else |
13682 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13684 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13685 | fi |
be01d343 PB |
13686 | else |
13687 | ok=yes | |
13688 | case " ${configdirs} " in | |
13689 | *" binutils "*) ;; | |
13690 | *) ok=no ;; | |
13691 | esac | |
c6b750e1 | 13692 | |
be01d343 PB |
13693 | if test $ok = yes; then |
13694 | # An in-tree tool is available and we can use it | |
13695 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
13696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13697 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13698 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13699 | # We already found the complete path | |
b8025f34 | 13700 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13702 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13703 | elif test "x$target" = "x$host"; then |
13704 | # We can use an host tool | |
13705 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
13706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13707 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13708 | else |
13709 | # We need a cross tool | |
81ecdfbb RW |
13710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13711 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13712 | fi |
13713 | fi | |
4b900473 | 13714 | |
81ecdfbb RW |
13715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13716 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 13717 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13718 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13719 | # We already found the complete path | |
b8025f34 | 13720 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13722 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13723 | else |
13724 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13726 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13727 | fi |
be01d343 PB |
13728 | else |
13729 | ok=yes | |
13730 | case " ${configdirs} " in | |
13731 | *" gas "*) ;; | |
13732 | *) ok=no ;; | |
13733 | esac | |
c6b750e1 | 13734 | |
be01d343 PB |
13735 | if test $ok = yes; then |
13736 | # An in-tree tool is available and we can use it | |
13737 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
13738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13739 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13740 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13741 | # We already found the complete path | |
b8025f34 | 13742 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13744 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13745 | elif test "x$target" = "x$host"; then |
13746 | # We can use an host tool | |
13747 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
13748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13749 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13750 | else |
13751 | # We need a cross tool | |
81ecdfbb RW |
13752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13753 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13754 | fi |
13755 | fi | |
4b900473 | 13756 | |
81ecdfbb RW |
13757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13758 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 13759 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13760 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13761 | # We already found the complete path | |
b8025f34 | 13762 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13764 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13765 | else |
13766 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13768 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13769 | fi |
be01d343 PB |
13770 | else |
13771 | ok=yes | |
13772 | case " ${configdirs} " in | |
13773 | *" gcc "*) ;; | |
13774 | *) ok=no ;; | |
13775 | esac | |
c6b750e1 | 13776 | |
be01d343 PB |
13777 | if test $ok = yes; then |
13778 | # An in-tree tool is available and we can use it | |
13779 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13781 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13782 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13783 | # We already found the complete path | |
b8025f34 | 13784 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13786 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13787 | elif test "x$target" = "x$host"; then |
13788 | # We can use an host tool | |
13789 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
13790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13791 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13792 | else |
13793 | # We need a cross tool | |
81ecdfbb RW |
13794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13795 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13796 | fi |
13797 | fi | |
4b900473 | 13798 | |
81ecdfbb RW |
13799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13800 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 13801 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13802 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13803 | # We already found the complete path | |
b8025f34 | 13804 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13806 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13807 | else |
13808 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13810 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13811 | fi |
be01d343 PB |
13812 | else |
13813 | ok=yes | |
13814 | case " ${configdirs} " in | |
13815 | *" gcc "*) ;; | |
13816 | *) ok=no ;; | |
13817 | esac | |
13818 | case ,${enable_languages}, in | |
13819 | *,c++,*) ;; | |
13820 | *) ok=no ;; | |
13821 | esac | |
13822 | if test $ok = yes; then | |
13823 | # An in-tree tool is available and we can use it | |
95e43135 | 13824 | 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 |
13825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13826 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13827 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13828 | # We already found the complete path | |
b8025f34 | 13829 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13831 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13832 | elif test "x$target" = "x$host"; then |
13833 | # We can use an host tool | |
13834 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13836 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13837 | else |
13838 | # We need a cross tool | |
81ecdfbb RW |
13839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13840 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13841 | fi |
13842 | fi | |
4b900473 | 13843 | |
81ecdfbb RW |
13844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13845 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 13846 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13847 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13848 | # We already found the complete path | |
b8025f34 | 13849 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13851 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13852 | else |
13853 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13855 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13856 | fi |
be01d343 PB |
13857 | else |
13858 | ok=yes | |
13859 | case " ${configdirs} " in | |
13860 | *" gcc "*) ;; | |
13861 | *) ok=no ;; | |
13862 | esac | |
13863 | case ,${enable_languages}, in | |
13864 | *,c++,*) ;; | |
13865 | *) ok=no ;; | |
13866 | esac | |
13867 | if test $ok = yes; then | |
13868 | # An in-tree tool is available and we can use it | |
95e43135 | 13869 | 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 |
13870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13871 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13872 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13873 | # We already found the complete path | |
b8025f34 | 13874 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13876 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13877 | elif test "x$target" = "x$host"; then |
13878 | # We can use an host tool | |
13879 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13881 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13882 | else |
13883 | # We need a cross tool | |
81ecdfbb RW |
13884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13885 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13886 | fi |
13887 | fi | |
4b900473 | 13888 | |
81ecdfbb RW |
13889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
13890 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 13891 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13892 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13893 | # We already found the complete path | |
b8025f34 | 13894 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13896 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13897 | else |
13898 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13900 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13901 | fi |
be01d343 PB |
13902 | else |
13903 | ok=yes | |
13904 | case " ${configdirs} " in | |
13905 | *" binutils "*) ;; | |
13906 | *) ok=no ;; | |
13907 | esac | |
c6b750e1 | 13908 | |
be01d343 PB |
13909 | if test $ok = yes; then |
13910 | # An in-tree tool is available and we can use it | |
13911 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
13912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13913 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13914 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13915 | # We already found the complete path | |
b8025f34 | 13916 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13918 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13919 | elif test "x$target" = "x$host"; then |
13920 | # We can use an host tool | |
13921 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
13922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13923 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13924 | else |
13925 | # We need a cross tool | |
81ecdfbb RW |
13926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13927 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13928 | fi |
13929 | fi | |
4b900473 | 13930 | |
81ecdfbb RW |
13931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
13932 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 13933 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13934 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13935 | # We already found the complete path | |
b8025f34 | 13936 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
13937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13938 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13939 | else |
13940 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13942 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13943 | fi |
be01d343 PB |
13944 | else |
13945 | ok=yes | |
13946 | case " ${configdirs} " in | |
13947 | *" gcc "*) ;; | |
13948 | *) ok=no ;; | |
13949 | esac | |
c6b750e1 | 13950 | |
be01d343 PB |
13951 | if test $ok = yes; then |
13952 | # An in-tree tool is available and we can use it | |
13953 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13955 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13956 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13957 | # We already found the complete path | |
b8025f34 | 13958 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
13959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13960 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13961 | elif test "x$target" = "x$host"; then |
13962 | # We can use an host tool | |
13963 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
13964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13965 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13966 | else |
13967 | # We need a cross tool | |
81ecdfbb RW |
13968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13969 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13970 | fi |
13971 | fi | |
4b900473 | 13972 | |
81ecdfbb RW |
13973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
13974 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 13975 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13976 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13977 | # We already found the complete path | |
b8025f34 | 13978 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
13979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13980 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13981 | else |
13982 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13984 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13985 | fi |
be01d343 PB |
13986 | else |
13987 | ok=yes | |
13988 | case " ${configdirs} " in | |
13989 | *" gcc "*) ;; | |
13990 | *) ok=no ;; | |
13991 | esac | |
13992 | case ,${enable_languages}, in | |
13993 | *,fortran,*) ;; | |
13994 | *) ok=no ;; | |
13995 | esac | |
13996 | if test $ok = yes; then | |
13997 | # An in-tree tool is available and we can use it | |
13998 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14000 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14001 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14002 | # We already found the complete path | |
b8025f34 | 14003 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14005 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14006 | elif test "x$target" = "x$host"; then |
14007 | # We can use an host tool | |
14008 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
14009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14010 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14011 | else |
14012 | # We need a cross tool | |
81ecdfbb RW |
14013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14014 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14015 | fi |
14016 | fi | |
4b900473 | 14017 | |
e552509b ILT |
14018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14019 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14020 | if test "x${build}" != "x${host}" ; then | |
14021 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14022 | # We already found the complete path | |
14023 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14025 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14026 | else | |
14027 | # Canadian cross, just use what we found | |
14028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14029 | $as_echo "pre-installed" >&6; } | |
14030 | fi | |
14031 | else | |
14032 | ok=yes | |
14033 | case " ${configdirs} " in | |
14034 | *" gcc "*) ;; | |
14035 | *) ok=no ;; | |
14036 | esac | |
14037 | case ,${enable_languages}, in | |
14038 | *,go,*) ;; | |
14039 | *) ok=no ;; | |
14040 | esac | |
14041 | if test $ok = yes; then | |
14042 | # An in-tree tool is available and we can use it | |
14043 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14045 | $as_echo "just compiled" >&6; } | |
14046 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14047 | # We already found the complete path | |
14048 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14050 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14051 | elif test "x$target" = "x$host"; then | |
14052 | # We can use an host tool | |
14053 | GOC_FOR_TARGET='$(GOC)' | |
14054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14055 | $as_echo "host tool" >&6; } | |
14056 | else | |
14057 | # We need a cross tool | |
14058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14059 | $as_echo "pre-installed" >&6; } | |
14060 | fi | |
14061 | fi | |
14062 | ||
81ecdfbb RW |
14063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14064 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 14065 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14066 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14067 | # We already found the complete path | |
b8025f34 | 14068 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14070 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14071 | else |
14072 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14074 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14075 | fi |
be01d343 PB |
14076 | else |
14077 | ok=yes | |
14078 | case " ${configdirs} " in | |
14079 | *" ld "*) ;; | |
14080 | *) ok=no ;; | |
14081 | esac | |
c6b750e1 | 14082 | |
be01d343 PB |
14083 | if test $ok = yes; then |
14084 | # An in-tree tool is available and we can use it | |
14085 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
14086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14087 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14088 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14089 | # We already found the complete path | |
b8025f34 | 14090 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14092 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14093 | elif test "x$target" = "x$host"; then |
14094 | # We can use an host tool | |
14095 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
14096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14097 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14098 | else |
14099 | # We need a cross tool | |
81ecdfbb RW |
14100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14101 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14102 | fi |
14103 | fi | |
4b900473 | 14104 | |
81ecdfbb RW |
14105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14106 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 14107 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14108 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14109 | # We already found the complete path | |
b8025f34 | 14110 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14112 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14113 | else |
14114 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14116 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14117 | fi |
be01d343 | 14118 | else |
2429c060 PB |
14119 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14120 | # We already found the complete path | |
b8025f34 | 14121 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14123 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 14124 | elif test "x$target" = "x$host"; then |
be01d343 PB |
14125 | # We can use an host tool |
14126 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
14127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14128 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14129 | else |
14130 | # We need a cross tool | |
81ecdfbb RW |
14131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14132 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14133 | fi |
14134 | fi | |
4b900473 | 14135 | |
81ecdfbb RW |
14136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14137 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 14138 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14139 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14140 | # We already found the complete path | |
b8025f34 | 14141 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14143 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14144 | else |
14145 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14147 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14148 | fi |
be01d343 PB |
14149 | else |
14150 | ok=yes | |
14151 | case " ${configdirs} " in | |
14152 | *" binutils "*) ;; | |
14153 | *) ok=no ;; | |
14154 | esac | |
c6b750e1 | 14155 | |
be01d343 PB |
14156 | if test $ok = yes; then |
14157 | # An in-tree tool is available and we can use it | |
14158 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
14159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14160 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14161 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14162 | # We already found the complete path | |
b8025f34 | 14163 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14165 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14166 | elif test "x$target" = "x$host"; then |
14167 | # We can use an host tool | |
14168 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
14169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14170 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14171 | else |
14172 | # We need a cross tool | |
81ecdfbb RW |
14173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14174 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14175 | fi |
14176 | fi | |
4b900473 | 14177 | |
6b91c541 AP |
14178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14179 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14180 | if test "x${build}" != "x${host}" ; then | |
14181 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14182 | # We already found the complete path | |
14183 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14185 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14186 | else | |
14187 | # Canadian cross, just use what we found | |
14188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14189 | $as_echo "pre-installed" >&6; } | |
14190 | fi | |
14191 | else | |
14192 | ok=yes | |
14193 | case " ${configdirs} " in | |
14194 | *" binutils "*) ;; | |
14195 | *) ok=no ;; | |
14196 | esac | |
14197 | ||
14198 | if test $ok = yes; then | |
14199 | # An in-tree tool is available and we can use it | |
14200 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14202 | $as_echo "just compiled" >&6; } | |
14203 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14204 | # We already found the complete path | |
14205 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14207 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14208 | elif test "x$target" = "x$host"; then | |
14209 | # We can use an host tool | |
1b6c0831 | 14210 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
6b91c541 AP |
14211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14212 | $as_echo "host tool" >&6; } | |
14213 | else | |
14214 | # We need a cross tool | |
14215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14216 | $as_echo "pre-installed" >&6; } | |
14217 | fi | |
14218 | fi | |
14219 | ||
81ecdfbb RW |
14220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14221 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 14222 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14223 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14224 | # We already found the complete path | |
b8025f34 | 14225 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14227 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14228 | else |
14229 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14231 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14232 | fi |
be01d343 PB |
14233 | else |
14234 | ok=yes | |
14235 | case " ${configdirs} " in | |
14236 | *" binutils "*) ;; | |
14237 | *) ok=no ;; | |
14238 | esac | |
c6b750e1 | 14239 | |
be01d343 PB |
14240 | if test $ok = yes; then |
14241 | # An in-tree tool is available and we can use it | |
14242 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
14243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14244 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14245 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14246 | # We already found the complete path | |
b8025f34 | 14247 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14249 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14250 | elif test "x$target" = "x$host"; then |
14251 | # We can use an host tool | |
14252 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
14253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14254 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14255 | else |
14256 | # We need a cross tool | |
81ecdfbb RW |
14257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14258 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14259 | fi |
14260 | fi | |
4b900473 | 14261 | |
81ecdfbb RW |
14262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14263 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 14264 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14265 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14266 | # We already found the complete path | |
b8025f34 | 14267 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14269 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14270 | else |
14271 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14273 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14274 | fi |
be01d343 PB |
14275 | else |
14276 | ok=yes | |
14277 | case " ${configdirs} " in | |
14278 | *" binutils "*) ;; | |
14279 | *) ok=no ;; | |
14280 | esac | |
c6b750e1 | 14281 | |
be01d343 PB |
14282 | if test $ok = yes; then |
14283 | # An in-tree tool is available and we can use it | |
14284 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
14285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14286 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14287 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14288 | # We already found the complete path | |
b8025f34 | 14289 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14291 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14292 | elif test "x$target" = "x$host"; then |
14293 | # We can use an host tool | |
14294 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
14295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14296 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14297 | else |
14298 | # We need a cross tool | |
81ecdfbb RW |
14299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14300 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14301 | fi |
14302 | fi | |
4b900473 | 14303 | |
b121d7d4 DD |
14304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14305 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14306 | if test "x${build}" != "x${host}" ; then | |
14307 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14308 | # We already found the complete path | |
14309 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14311 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14312 | else | |
14313 | # Canadian cross, just use what we found | |
14314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14315 | $as_echo "pre-installed" >&6; } | |
14316 | fi | |
14317 | else | |
14318 | ok=yes | |
14319 | case " ${configdirs} " in | |
14320 | *" binutils "*) ;; | |
14321 | *) ok=no ;; | |
14322 | esac | |
14323 | ||
14324 | if test $ok = yes; then | |
14325 | # An in-tree tool is available and we can use it | |
14326 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14328 | $as_echo "just compiled" >&6; } | |
14329 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14330 | # We already found the complete path | |
14331 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14333 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14334 | elif test "x$target" = "x$host"; then | |
14335 | # We can use an host tool | |
14336 | READELF_FOR_TARGET='$(READELF)' | |
14337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14338 | $as_echo "host tool" >&6; } | |
14339 | else | |
14340 | # We need a cross tool | |
14341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14342 | $as_echo "pre-installed" >&6; } | |
14343 | fi | |
14344 | fi | |
14345 | ||
81ecdfbb RW |
14346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14347 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 14348 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14349 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14350 | # We already found the complete path | |
b8025f34 | 14351 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14353 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14354 | else |
14355 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14357 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14358 | fi |
be01d343 PB |
14359 | else |
14360 | ok=yes | |
14361 | case " ${configdirs} " in | |
14362 | *" binutils "*) ;; | |
14363 | *) ok=no ;; | |
14364 | esac | |
c6b750e1 | 14365 | |
be01d343 PB |
14366 | if test $ok = yes; then |
14367 | # An in-tree tool is available and we can use it | |
9b980aa1 | 14368 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
14369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14370 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14371 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14372 | # We already found the complete path | |
b8025f34 | 14373 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14375 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14376 | elif test "x$target" = "x$host"; then |
14377 | # We can use an host tool | |
14378 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
14379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14380 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14381 | else |
14382 | # We need a cross tool | |
81ecdfbb RW |
14383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14384 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14385 | fi |
14386 | fi | |
4b900473 | 14387 | |
81ecdfbb RW |
14388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14389 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 14390 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14391 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14392 | # We already found the complete path | |
b8025f34 | 14393 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14395 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14396 | else |
14397 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14399 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14400 | fi |
be01d343 PB |
14401 | else |
14402 | ok=yes | |
14403 | case " ${configdirs} " in | |
14404 | *" binutils "*) ;; | |
14405 | *) ok=no ;; | |
14406 | esac | |
c6b750e1 | 14407 | |
be01d343 PB |
14408 | if test $ok = yes; then |
14409 | # An in-tree tool is available and we can use it | |
14410 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
14411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14412 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14413 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14414 | # We already found the complete path | |
b8025f34 | 14415 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14417 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14418 | elif test "x$target" = "x$host"; then |
14419 | # We can use an host tool | |
14420 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
14421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14422 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14423 | else |
14424 | # We need a cross tool | |
81ecdfbb RW |
14425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14426 | $as_echo "pre-installed" >&6; } | |
be01d343 | 14427 | fi |
a0da8069 | 14428 | fi |
54752a6b | 14429 | |
81ecdfbb RW |
14430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14431 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
14432 | if test "x${build}" != "x${host}" ; then |
14433 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14434 | # We already found the complete path | |
14435 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14437 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14438 | else |
14439 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14441 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14442 | fi |
14443 | else | |
14444 | ok=yes | |
14445 | case " ${configdirs} " in | |
14446 | *" binutils "*) ;; | |
14447 | *) ok=no ;; | |
14448 | esac | |
14449 | ||
14450 | if test $ok = yes; then | |
14451 | # An in-tree tool is available and we can use it | |
14452 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
14453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14454 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
14455 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14456 | # We already found the complete path | |
14457 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14459 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14460 | elif test "x$target" = "x$host"; then |
14461 | # We can use an host tool | |
14462 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
14463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14464 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
14465 | else |
14466 | # We need a cross tool | |
81ecdfbb RW |
14467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14468 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14469 | fi |
14470 | fi | |
14471 | ||
54752a6b NN |
14472 | |
14473 | ||
be01d343 | 14474 | |
4b900473 | 14475 | |
a0da8069 NN |
14476 | # Certain tools may need extra flags. |
14477 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14478 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14479 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14480 | ||
be01d343 PB |
14481 | # When building target libraries, except in a Canadian cross, we use |
14482 | # the same toolchain as the compiler we just built. | |
14483 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14484 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14485 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14486 | if test $host = $build; then | |
14487 | case " $configdirs " in | |
14488 | *" gcc "*) | |
14489 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14490 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14491 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14492 | ;; | |
14493 | esac | |
14494 | fi | |
14495 | ||
14496 | ||
14497 | ||
14498 | ||
14499 | ||
81ecdfbb RW |
14500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14501 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14502 | # Check whether --enable-maintainer-mode was given. | |
14503 | if test "${enable_maintainer_mode+set}" = set; then : | |
14504 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
14505 | else |
14506 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
14507 | fi |
14508 | ||
14509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14510 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
14511 | |
14512 | ||
14513 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14514 | MAINTAINER_MODE_TRUE= | |
14515 | MAINTAINER_MODE_FALSE='#' | |
14516 | else | |
14517 | MAINTAINER_MODE_TRUE='#' | |
14518 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 14519 | fi |
3d5e36ae AO |
14520 | MAINT=$MAINTAINER_MODE_TRUE |
14521 | ||
1d39f329 NN |
14522 | # --------------------- |
14523 | # GCC bootstrap support | |
14524 | # --------------------- | |
14525 | ||
14526 | # Stage specific cflags for build. | |
14527 | stage1_cflags="-g" | |
14528 | case $build in | |
14529 | vax-*-*) | |
14530 | case ${GCC} in | |
14531 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14532 | *) stage1_cflags="-g -J" ;; | |
14533 | esac ;; | |
1d39f329 NN |
14534 | esac |
14535 | ||
1d89b610 | 14536 | |
1d39f329 | 14537 | |
8a0d8a5c | 14538 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
14539 | # Check whether --enable-stage1-checking was given. |
14540 | if test "${enable_stage1_checking+set}" = set; then : | |
14541 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 14542 | else |
5566c1fa | 14543 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
ce6c656d L |
14544 | # For --disable-checking or implicit --enable-checking=release, avoid |
14545 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
14546 | # bootstraps. See PR62077. | |
ce6c656d L |
14547 | case $BUILD_CONFIG in |
14548 | *lto*) | |
05a13254 NC |
14549 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
14550 | *) | |
14551 | stage1_checking=--enable-checking=yes,types;; | |
ce6c656d | 14552 | esac |
05a13254 NC |
14553 | if test "x$enable_checking" = x && \ |
14554 | test -d ${srcdir}/gcc && \ | |
14555 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
14556 | stage1_checking=--enable-checking=yes,types,extra | |
14557 | fi | |
8a0d8a5c | 14558 | else |
5566c1fa | 14559 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 14560 | fi |
81ecdfbb | 14561 | fi |
8a0d8a5c PB |
14562 | |
14563 | ||
c6b750e1 | 14564 | |
81ecdfbb RW |
14565 | # Enable -Werror in bootstrap stage2 and later. |
14566 | # Check whether --enable-werror was given. | |
14567 | if test "${enable_werror+set}" = set; then : | |
14568 | enableval=$enable_werror; | |
1d39f329 | 14569 | else |
a0323144 | 14570 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
1d39f329 | 14571 | enable_werror=yes |
79fcd0ec PB |
14572 | else |
14573 | enable_werror=no | |
14574 | fi | |
81ecdfbb RW |
14575 | fi |
14576 | ||
1a6f2dc7 NN |
14577 | case ${enable_werror} in |
14578 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14579 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
14580 | esac |
14581 | ||
14582 | ||
82033c9b JBG |
14583 | # Enable --enable-host-shared. |
14584 | # Check whether --enable-host-shared was given. | |
14585 | if test "${enable_host_shared+set}" = set; then : | |
14586 | enableval=$enable_host_shared; host_shared=$enableval | |
14587 | else | |
14588 | host_shared=no | |
14589 | fi | |
14590 | ||
14591 | ||
14592 | ||
1b6c0831 L |
14593 | # PR jit/64780: Require the user to explicitly specify |
14594 | # --enable-host-shared if the jit is enabled, hinting | |
14595 | # that they might want to do a separate configure/build of | |
14596 | # the jit, to avoid users from slowing down the rest of the | |
14597 | # compiler by enabling the jit. | |
14598 | if test ${host_shared} = "no" ; then | |
14599 | case "${enable_languages}" in | |
14600 | *jit*) | |
14601 | as_fn_error " | |
14602 | Enabling language \"jit\" requires --enable-host-shared. | |
14603 | ||
14604 | --enable-host-shared typically slows the rest of the compiler down by | |
14605 | a few %, so you must explicitly enable it. | |
14606 | ||
14607 | If you want to build both the jit and the regular compiler, it is often | |
14608 | best to do this via two separate configure/builds, in separate | |
14609 | directories, to avoid imposing the performance cost of | |
14610 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
14611 | ;; | |
14612 | *) | |
14613 | ;; | |
14614 | esac | |
14615 | fi | |
14616 | ||
e8a5fa9c RW |
14617 | # Specify what files to not compare during bootstrap. |
14618 | ||
14619 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14620 | case "$target" in | |
14621 | hppa*64*-*-hpux*) ;; | |
14622 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
1488e230 | 14623 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
e8a5fa9c RW |
14624 | esac |
14625 | ||
14626 | ||
81ecdfbb RW |
14627 | ac_config_files="$ac_config_files Makefile" |
14628 | ||
c6b750e1 | 14629 | cat >confcache <<\_ACEOF |
a0da8069 NN |
14630 | # This file is a shell script that caches the results of configure |
14631 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
14632 | # scripts and configure runs, see configure's option --config-cache. |
14633 | # It is not useful on other systems. If it contains results you don't | |
14634 | # want to keep, you may remove or edit it. | |
a0da8069 | 14635 | # |
c6b750e1 DJ |
14636 | # config.status only pays attention to the cache file if you give it |
14637 | # the --recheck option to rerun configure. | |
a0da8069 | 14638 | # |
c6b750e1 DJ |
14639 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14640 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14641 | # following values. | |
14642 | ||
14643 | _ACEOF | |
14644 | ||
a0da8069 NN |
14645 | # The following way of writing the cache mishandles newlines in values, |
14646 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14647 | # So, we kill variables containing newlines. |
a0da8069 NN |
14648 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14649 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14650 | ( |
14651 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14652 | eval ac_val=\$$ac_var | |
14653 | case $ac_val in #( | |
14654 | *${as_nl}*) | |
14655 | case $ac_var in #( | |
14656 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14657 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14658 | esac | |
14659 | case $ac_var in #( | |
14660 | _ | IFS | as_nl) ;; #( | |
14661 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14662 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14663 | esac ;; | |
14664 | esac | |
14665 | done | |
14666 | ||
c6b750e1 | 14667 | (set) 2>&1 | |
81ecdfbb RW |
14668 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14669 | *${as_nl}ac_space=\ *) | |
14670 | # `set' does not quote correctly, so add quotes: double-quote | |
14671 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
14672 | sed -n \ |
14673 | "s/'/'\\\\''/g; | |
14674 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14675 | ;; #( |
c6b750e1 DJ |
14676 | *) |
14677 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14678 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 14679 | ;; |
81ecdfbb RW |
14680 | esac | |
14681 | sort | |
14682 | ) | | |
c6b750e1 | 14683 | sed ' |
81ecdfbb | 14684 | /^ac_cv_env_/b end |
c6b750e1 | 14685 | t clear |
81ecdfbb | 14686 | :clear |
c6b750e1 DJ |
14687 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14688 | t end | |
81ecdfbb RW |
14689 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14690 | :end' >>confcache | |
14691 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14692 | if test -w "$cache_file"; then | |
14693 | test "x$cache_file" != "x/dev/null" && | |
14694 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14695 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
c6b750e1 | 14696 | cat confcache >$cache_file |
a0da8069 | 14697 | else |
81ecdfbb RW |
14698 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14699 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 14700 | fi |
852e5f18 | 14701 | fi |
a0da8069 | 14702 | rm -f confcache |
852e5f18 | 14703 | |
a0da8069 NN |
14704 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14705 | # Let make expand exec_prefix. | |
14706 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 14707 | |
a0da8069 NN |
14708 | # Transform confdefs.h into DEFS. |
14709 | # Protect against shell expansion while executing Makefile rules. | |
14710 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
14711 | # |
14712 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 14713 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 14714 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
14715 | ac_script=' |
14716 | :mline | |
14717 | /\\$/{ | |
14718 | N | |
14719 | s,\\\n,, | |
14720 | b mline | |
14721 | } | |
c6b750e1 | 14722 | t clear |
81ecdfbb RW |
14723 | :clear |
14724 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 14725 | t quote |
81ecdfbb | 14726 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 14727 | t quote |
81ecdfbb RW |
14728 | b any |
14729 | :quote | |
14730 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14731 | s/\[/\\&/g | |
14732 | s/\]/\\&/g | |
14733 | s/\$/$$/g | |
14734 | H | |
14735 | :any | |
14736 | ${ | |
14737 | g | |
14738 | s/^\n// | |
14739 | s/\n/ /g | |
14740 | p | |
14741 | } | |
14742 | ' | |
14743 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
14744 | |
14745 | ||
14746 | ac_libobjs= | |
14747 | ac_ltlibobjs= | |
14748 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14749 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14750 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14751 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14752 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14753 | # will be set to the directory where LIBOBJS objects are built. | |
14754 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14755 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
14756 | done |
14757 | LIBOBJS=$ac_libobjs | |
852e5f18 | 14758 | |
c6b750e1 | 14759 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 14760 | |
cac3d6c4 | 14761 | |
c6b750e1 DJ |
14762 | |
14763 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 14764 | ac_write_fail=0 |
c6b750e1 DJ |
14765 | ac_clean_files_save=$ac_clean_files |
14766 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14767 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14768 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14769 | as_write_fail=0 | |
14770 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
14771 | #! $SHELL |
14772 | # Generated by $as_me. | |
a0da8069 | 14773 | # Run this file to recreate the current configuration. |
a0da8069 | 14774 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 14775 | # configure, is in config.log if it exists. |
376a0e54 | 14776 | |
c6b750e1 DJ |
14777 | debug=false |
14778 | ac_cs_recheck=false | |
14779 | ac_cs_silent=false | |
c6b750e1 | 14780 | |
81ecdfbb RW |
14781 | SHELL=\${CONFIG_SHELL-$SHELL} |
14782 | export SHELL | |
14783 | _ASEOF | |
14784 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14785 | ## -------------------- ## | |
14786 | ## M4sh Initialization. ## | |
14787 | ## -------------------- ## | |
14788 | ||
14789 | # Be more Bourne compatible | |
14790 | DUALCASE=1; export DUALCASE # for MKS sh | |
14791 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
14792 | emulate sh |
14793 | NULLCMD=: | |
81ecdfbb | 14794 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
14795 | # is contrary to our usage. Disable this feature. |
14796 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14797 | setopt NO_GLOB_SUBST |
14798 | else | |
14799 | case `(set -o) 2>/dev/null` in #( | |
14800 | *posix*) : | |
14801 | set -o posix ;; #( | |
14802 | *) : | |
14803 | ;; | |
14804 | esac | |
c6b750e1 | 14805 | fi |
c6b750e1 | 14806 | |
81ecdfbb RW |
14807 | |
14808 | as_nl=' | |
14809 | ' | |
14810 | export as_nl | |
14811 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14812 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14813 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14814 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14815 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14816 | # but without wasting forks for bash or zsh. | |
14817 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14818 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14819 | as_echo='print -r --' | |
14820 | as_echo_n='print -rn --' | |
14821 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14822 | as_echo='printf %s\n' | |
14823 | as_echo_n='printf %s' | |
14824 | else | |
14825 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14826 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14827 | as_echo_n='/usr/ucb/echo -n' | |
14828 | else | |
14829 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14830 | as_echo_n_body='eval | |
14831 | arg=$1; | |
14832 | case $arg in #( | |
14833 | *"$as_nl"*) | |
14834 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14835 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14836 | esac; | |
14837 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14838 | ' | |
14839 | export as_echo_n_body | |
14840 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14841 | fi | |
14842 | export as_echo_body | |
14843 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
14844 | fi |
14845 | ||
81ecdfbb RW |
14846 | # The user is always right. |
14847 | if test "${PATH_SEPARATOR+set}" != set; then | |
14848 | PATH_SEPARATOR=: | |
14849 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14850 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14851 | PATH_SEPARATOR=';' | |
14852 | } | |
14853 | fi | |
14854 | ||
14855 | ||
14856 | # IFS | |
14857 | # We need space, tab and new line, in precisely that order. Quoting is | |
14858 | # there to prevent editors from complaining about space-tab. | |
14859 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14860 | # splitting by setting IFS to empty value.) | |
14861 | IFS=" "" $as_nl" | |
14862 | ||
14863 | # Find who we are. Look in the path if we contain no directory separator. | |
14864 | case $0 in #(( | |
14865 | *[\\/]* ) as_myself=$0 ;; | |
14866 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14867 | for as_dir in $PATH | |
14868 | do | |
14869 | IFS=$as_save_IFS | |
14870 | test -z "$as_dir" && as_dir=. | |
14871 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14872 | done | |
14873 | IFS=$as_save_IFS | |
14874 | ||
14875 | ;; | |
14876 | esac | |
14877 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14878 | # in which case we are not to be found in the path. | |
14879 | if test "x$as_myself" = x; then | |
14880 | as_myself=$0 | |
14881 | fi | |
14882 | if test ! -f "$as_myself"; then | |
14883 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14884 | exit 1 | |
14885 | fi | |
c6b750e1 | 14886 | |
81ecdfbb RW |
14887 | # Unset variables that we do not need and which cause bugs (e.g. in |
14888 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14889 | # suppresses any "Segmentation fault" message there. '((' could | |
14890 | # trigger a bug in pdksh 5.2.14. | |
14891 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14892 | do eval test x\${$as_var+set} = xset \ | |
14893 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14894 | done | |
c6b750e1 DJ |
14895 | PS1='$ ' |
14896 | PS2='> ' | |
14897 | PS4='+ ' | |
14898 | ||
14899 | # NLS nuisances. | |
81ecdfbb RW |
14900 | LC_ALL=C |
14901 | export LC_ALL | |
14902 | LANGUAGE=C | |
14903 | export LANGUAGE | |
14904 | ||
14905 | # CDPATH. | |
14906 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14907 | ||
14908 | ||
14909 | # as_fn_error ERROR [LINENO LOG_FD] | |
14910 | # --------------------------------- | |
14911 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14912 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14913 | # script with status $?, using 1 if that was 0. | |
14914 | as_fn_error () | |
14915 | { | |
14916 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14917 | if test "$3"; then | |
14918 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14919 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
c6b750e1 | 14920 | fi |
81ecdfbb RW |
14921 | $as_echo "$as_me: error: $1" >&2 |
14922 | as_fn_exit $as_status | |
14923 | } # as_fn_error | |
14924 | ||
14925 | ||
14926 | # as_fn_set_status STATUS | |
14927 | # ----------------------- | |
14928 | # Set $? to STATUS, without forking. | |
14929 | as_fn_set_status () | |
14930 | { | |
14931 | return $1 | |
14932 | } # as_fn_set_status | |
14933 | ||
14934 | # as_fn_exit STATUS | |
14935 | # ----------------- | |
14936 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14937 | as_fn_exit () | |
14938 | { | |
14939 | set +e | |
14940 | as_fn_set_status $1 | |
14941 | exit $1 | |
14942 | } # as_fn_exit | |
14943 | ||
14944 | # as_fn_unset VAR | |
14945 | # --------------- | |
14946 | # Portably unset VAR. | |
14947 | as_fn_unset () | |
14948 | { | |
14949 | { eval $1=; unset $1;} | |
14950 | } | |
14951 | as_unset=as_fn_unset | |
14952 | # as_fn_append VAR VALUE | |
14953 | # ---------------------- | |
14954 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14955 | # advantage of any shell optimizations that allow amortized linear growth over | |
14956 | # repeated appends, instead of the typical quadratic growth present in naive | |
14957 | # implementations. | |
14958 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14959 | eval 'as_fn_append () | |
14960 | { | |
14961 | eval $1+=\$2 | |
14962 | }' | |
14963 | else | |
14964 | as_fn_append () | |
14965 | { | |
14966 | eval $1=\$$1\$2 | |
14967 | } | |
14968 | fi # as_fn_append | |
14969 | ||
14970 | # as_fn_arith ARG... | |
14971 | # ------------------ | |
14972 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14973 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14974 | # must be portable across $(()) and expr. | |
14975 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14976 | eval 'as_fn_arith () | |
14977 | { | |
14978 | as_val=$(( $* )) | |
14979 | }' | |
14980 | else | |
14981 | as_fn_arith () | |
14982 | { | |
14983 | as_val=`expr "$@" || test $? -eq 1` | |
14984 | } | |
14985 | fi # as_fn_arith | |
14986 | ||
c6b750e1 | 14987 | |
81ecdfbb RW |
14988 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14989 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
14990 | as_expr=expr |
14991 | else | |
14992 | as_expr=false | |
14993 | fi | |
14994 | ||
81ecdfbb | 14995 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
14996 | as_basename=basename |
14997 | else | |
14998 | as_basename=false | |
14999 | fi | |
15000 | ||
81ecdfbb RW |
15001 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15002 | as_dirname=dirname | |
15003 | else | |
15004 | as_dirname=false | |
15005 | fi | |
c6b750e1 | 15006 | |
81ecdfbb | 15007 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
15008 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15009 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15010 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15011 | $as_echo X/"$0" | | |
15012 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15013 | s//\1/ | |
15014 | q | |
15015 | } | |
15016 | /^X\/\(\/\/\)$/{ | |
15017 | s//\1/ | |
15018 | q | |
15019 | } | |
15020 | /^X\/\(\/\).*/{ | |
15021 | s//\1/ | |
15022 | q | |
15023 | } | |
15024 | s/.*/./; q'` | |
c6b750e1 | 15025 | |
c6b750e1 DJ |
15026 | # Avoid depending upon Character Ranges. |
15027 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15028 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15029 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15030 | as_cr_digits='0123456789' | |
15031 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15032 | ||
81ecdfbb RW |
15033 | ECHO_C= ECHO_N= ECHO_T= |
15034 | case `echo -n x` in #((((( | |
15035 | -n*) | |
15036 | case `echo 'xy\c'` in | |
15037 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15038 | xy) ECHO_C='\c';; | |
15039 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15040 | ECHO_T=' ';; | |
15041 | esac;; | |
15042 | *) | |
15043 | ECHO_N='-n';; | |
c6b750e1 DJ |
15044 | esac |
15045 | ||
81ecdfbb RW |
15046 | rm -f conf$$ conf$$.exe conf$$.file |
15047 | if test -d conf$$.dir; then | |
15048 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 15049 | else |
81ecdfbb RW |
15050 | rm -f conf$$.dir |
15051 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 15052 | fi |
81ecdfbb RW |
15053 | if (echo >conf$$.file) 2>/dev/null; then |
15054 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 15055 | as_ln_s='ln -s' |
81ecdfbb RW |
15056 | # ... but there are two gotchas: |
15057 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15058 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15059 | # In both cases, we have to default to `cp -p'. | |
15060 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15061 | as_ln_s='cp -p' | |
15062 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15063 | as_ln_s=ln | |
15064 | else | |
15065 | as_ln_s='cp -p' | |
c6b750e1 | 15066 | fi |
c6b750e1 DJ |
15067 | else |
15068 | as_ln_s='cp -p' | |
15069 | fi | |
81ecdfbb RW |
15070 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15071 | rmdir conf$$.dir 2>/dev/null | |
15072 | ||
15073 | ||
15074 | # as_fn_mkdir_p | |
15075 | # ------------- | |
15076 | # Create "$as_dir" as a directory, including parents if necessary. | |
15077 | as_fn_mkdir_p () | |
15078 | { | |
15079 | ||
15080 | case $as_dir in #( | |
15081 | -*) as_dir=./$as_dir;; | |
15082 | esac | |
15083 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15084 | as_dirs= | |
15085 | while :; do | |
15086 | case $as_dir in #( | |
15087 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15088 | *) as_qdir=$as_dir;; | |
15089 | esac | |
15090 | as_dirs="'$as_qdir' $as_dirs" | |
15091 | as_dir=`$as_dirname -- "$as_dir" || | |
15092 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15093 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15094 | X"$as_dir" : 'X\(//\)$' \| \ | |
15095 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15096 | $as_echo X"$as_dir" | | |
15097 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15098 | s//\1/ | |
15099 | q | |
15100 | } | |
15101 | /^X\(\/\/\)[^/].*/{ | |
15102 | s//\1/ | |
15103 | q | |
15104 | } | |
15105 | /^X\(\/\/\)$/{ | |
15106 | s//\1/ | |
15107 | q | |
15108 | } | |
15109 | /^X\(\/\).*/{ | |
15110 | s//\1/ | |
15111 | q | |
15112 | } | |
15113 | s/.*/./; q'` | |
15114 | test -d "$as_dir" && break | |
15115 | done | |
15116 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15117 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
15118 | ||
c6b750e1 | 15119 | |
81ecdfbb | 15120 | } # as_fn_mkdir_p |
c6b750e1 | 15121 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 15122 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
15123 | else |
15124 | test -d ./-p && rmdir ./-p | |
15125 | as_mkdir_p=false | |
15126 | fi | |
15127 | ||
81ecdfbb RW |
15128 | if test -x / >/dev/null 2>&1; then |
15129 | as_test_x='test -x' | |
15130 | else | |
15131 | if ls -dL / >/dev/null 2>&1; then | |
15132 | as_ls_L_option=L | |
15133 | else | |
15134 | as_ls_L_option= | |
15135 | fi | |
15136 | as_test_x=' | |
15137 | eval sh -c '\'' | |
15138 | if test -d "$1"; then | |
15139 | test -d "$1/."; | |
15140 | else | |
15141 | case $1 in #( | |
15142 | -*)set "./$1";; | |
15143 | esac; | |
15144 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
15145 | ???[sx]*):;;*)false;;esac;fi | |
15146 | '\'' sh | |
15147 | ' | |
15148 | fi | |
15149 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
15150 | |
15151 | # Sed expression to map a string onto a valid CPP name. | |
15152 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15153 | ||
15154 | # Sed expression to map a string onto a valid variable name. | |
15155 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15156 | ||
15157 | ||
c6b750e1 | 15158 | exec 6>&1 |
81ecdfbb RW |
15159 | ## ----------------------------------- ## |
15160 | ## Main body of $CONFIG_STATUS script. ## | |
15161 | ## ----------------------------------- ## | |
15162 | _ASEOF | |
15163 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15164 | ||
15165 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15166 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 15167 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
15168 | # values after options handling. |
15169 | ac_log=" | |
c6b750e1 | 15170 | This file was extended by $as_me, which was |
81ecdfbb | 15171 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
15172 | |
15173 | CONFIG_FILES = $CONFIG_FILES | |
15174 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15175 | CONFIG_LINKS = $CONFIG_LINKS | |
15176 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15177 | $ $0 $@ | |
15178 | ||
81ecdfbb RW |
15179 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15180 | " | |
15181 | ||
c6b750e1 DJ |
15182 | _ACEOF |
15183 | ||
81ecdfbb RW |
15184 | case $ac_config_files in *" |
15185 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15186 | esac | |
c6b750e1 | 15187 | |
c6b750e1 | 15188 | |
c6b750e1 | 15189 | |
81ecdfbb RW |
15190 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15191 | # Files that config.status was made for. | |
15192 | config_files="$ac_config_files" | |
c6b750e1 | 15193 | |
81ecdfbb | 15194 | _ACEOF |
c6b750e1 | 15195 | |
81ecdfbb | 15196 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15197 | ac_cs_usage="\ |
81ecdfbb RW |
15198 | \`$as_me' instantiates files and other configuration actions |
15199 | from templates according to the current configuration. Unless the files | |
15200 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 15201 | |
81ecdfbb | 15202 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
15203 | |
15204 | -h, --help print this help, then exit | |
81ecdfbb RW |
15205 | -V, --version print version number and configuration settings, then exit |
15206 | -q, --quiet, --silent | |
15207 | do not print progress messages | |
c6b750e1 DJ |
15208 | -d, --debug don't remove temporary files |
15209 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
15210 | --file=FILE[:TEMPLATE] |
15211 | instantiate the configuration file FILE | |
c6b750e1 DJ |
15212 | |
15213 | Configuration files: | |
15214 | $config_files | |
15215 | ||
81ecdfbb | 15216 | Report bugs to the package provider." |
c6b750e1 | 15217 | |
81ecdfbb RW |
15218 | _ACEOF |
15219 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
c6b750e1 DJ |
15220 | ac_cs_version="\\ |
15221 | config.status | |
81ecdfbb RW |
15222 | configured by $0, generated by GNU Autoconf 2.64, |
15223 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
c6b750e1 | 15224 | |
81ecdfbb | 15225 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
15226 | This config.status script is free software; the Free Software Foundation |
15227 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
15228 | |
15229 | ac_pwd='$ac_pwd' | |
15230 | srcdir='$srcdir' | |
15231 | INSTALL='$INSTALL' | |
8e957354 | 15232 | AWK='$AWK' |
81ecdfbb | 15233 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
15234 | _ACEOF |
15235 | ||
81ecdfbb RW |
15236 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15237 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
15238 | ac_need_defaults=: |
15239 | while test $# != 0 | |
a0da8069 | 15240 | do |
c6b750e1 DJ |
15241 | case $1 in |
15242 | --*=*) | |
81ecdfbb RW |
15243 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15244 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
15245 | ac_shift=: |
15246 | ;; | |
81ecdfbb | 15247 | *) |
c6b750e1 DJ |
15248 | ac_option=$1 |
15249 | ac_optarg=$2 | |
15250 | ac_shift=shift | |
15251 | ;; | |
c6b750e1 DJ |
15252 | esac |
15253 | ||
15254 | case $ac_option in | |
15255 | # Handling of the options. | |
a0da8069 | 15256 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 15257 | ac_cs_recheck=: ;; |
81ecdfbb RW |
15258 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15259 | $as_echo "$ac_cs_version"; exit ;; | |
15260 | --debug | --debu | --deb | --de | --d | -d ) | |
c6b750e1 DJ |
15261 | debug=: ;; |
15262 | --file | --fil | --fi | --f ) | |
15263 | $ac_shift | |
81ecdfbb RW |
15264 | case $ac_optarg in |
15265 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15266 | esac | |
15267 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 15268 | ac_need_defaults=false;; |
81ecdfbb RW |
15269 | --he | --h | --help | --hel | -h ) |
15270 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
15271 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15272 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15273 | ac_cs_silent=: ;; | |
15274 | ||
15275 | # This is an error. | |
81ecdfbb RW |
15276 | -*) as_fn_error "unrecognized option: \`$1' |
15277 | Try \`$0 --help' for more information." ;; | |
c6b750e1 | 15278 | |
81ecdfbb RW |
15279 | *) as_fn_append ac_config_targets " $1" |
15280 | ac_need_defaults=false ;; | |
c6b750e1 | 15281 | |
376a0e54 | 15282 | esac |
c6b750e1 | 15283 | shift |
376a0e54 CM |
15284 | done |
15285 | ||
c6b750e1 | 15286 | ac_configure_extra_args= |
376a0e54 | 15287 | |
c6b750e1 DJ |
15288 | if $ac_cs_silent; then |
15289 | exec 6>/dev/null | |
15290 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15291 | fi | |
376a0e54 | 15292 | |
c6b750e1 | 15293 | _ACEOF |
81ecdfbb | 15294 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 15295 | if \$ac_cs_recheck; then |
81ecdfbb RW |
15296 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15297 | shift | |
15298 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15299 | CONFIG_SHELL='$SHELL' | |
15300 | export CONFIG_SHELL | |
15301 | exec "\$@" | |
c6b750e1 DJ |
15302 | fi |
15303 | ||
15304 | _ACEOF | |
81ecdfbb RW |
15305 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15306 | exec 5>>config.log | |
15307 | { | |
15308 | echo | |
15309 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15310 | ## Running $as_me. ## | |
15311 | _ASBOX | |
15312 | $as_echo "$ac_log" | |
15313 | } >&5 | |
c6b750e1 | 15314 | |
81ecdfbb RW |
15315 | _ACEOF |
15316 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
15317 | # |
15318 | # INIT-COMMANDS | |
15319 | # | |
15320 | extrasub_build="$extrasub_build" | |
15321 | extrasub_host="$extrasub_host" | |
15322 | extrasub_target="$extrasub_target" | |
15323 | ||
81ecdfbb | 15324 | _ACEOF |
c6b750e1 | 15325 | |
81ecdfbb | 15326 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15327 | |
81ecdfbb | 15328 | # Handling of arguments. |
c6b750e1 DJ |
15329 | for ac_config_target in $ac_config_targets |
15330 | do | |
81ecdfbb RW |
15331 | case $ac_config_target in |
15332 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15333 | ||
15334 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
c6b750e1 DJ |
15335 | esac |
15336 | done | |
15337 | ||
81ecdfbb | 15338 | |
c6b750e1 DJ |
15339 | # If the user did not use the arguments to specify the items to instantiate, |
15340 | # then the envvar interface is used. Set only those that are not. | |
15341 | # We use the long form for the default assignment because of an extremely | |
15342 | # bizarre bug on SunOS 4.1.3. | |
15343 | if $ac_need_defaults; then | |
15344 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15345 | fi | |
15346 | ||
15347 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 15348 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 15349 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
15350 | # Hook for its removal unless debugging. |
15351 | # Note that there is a small window in which the directory will not be cleaned: | |
15352 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
15353 | $debug || |
15354 | { | |
81ecdfbb RW |
15355 | tmp= |
15356 | trap 'exit_status=$? | |
15357 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15358 | ' 0 | |
15359 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 15360 | } |
c6b750e1 DJ |
15361 | # Create a (secure) tmp directory for tmp files. |
15362 | ||
15363 | { | |
81ecdfbb | 15364 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
c6b750e1 DJ |
15365 | test -n "$tmp" && test -d "$tmp" |
15366 | } || | |
15367 | { | |
81ecdfbb RW |
15368 | tmp=./conf$$-$RANDOM |
15369 | (umask 077 && mkdir "$tmp") | |
15370 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
15371 | ||
15372 | # Set up the scripts for CONFIG_FILES section. | |
15373 | # No need to generate them if there are no CONFIG_FILES. | |
15374 | # This happens for instance with `./config.status config.h'. | |
15375 | if test -n "$CONFIG_FILES"; then | |
15376 | ||
15377 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15378 | ac_cs_awk_getline=: | |
15379 | ac_cs_awk_pipe_init= | |
15380 | ac_cs_awk_read_file=' | |
15381 | while ((getline aline < (F[key])) > 0) | |
15382 | print(aline) | |
15383 | close(F[key])' | |
15384 | ac_cs_awk_pipe_fini= | |
15385 | else | |
15386 | ac_cs_awk_getline=false | |
15387 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15388 | ac_cs_awk_read_file=' | |
15389 | print "|#_!!_#|" | |
15390 | print "cat " F[key] " &&" | |
15391 | '$ac_cs_awk_pipe_init | |
15392 | # The final `:' finishes the AND list. | |
15393 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15394 | fi | |
15395 | ac_cr=`echo X | tr X '\015'` | |
15396 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15397 | # But we know of no other shell where ac_cr would be empty at this | |
15398 | # point, so we can use a bashism as a fallback. | |
15399 | if test "x$ac_cr" = x; then | |
15400 | eval ac_cr=\$\'\\r\' | |
15401 | fi | |
15402 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15403 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15404 | ac_cs_awk_cr='\r' | |
15405 | else | |
15406 | ac_cs_awk_cr=$ac_cr | |
15407 | fi | |
15408 | ||
15409 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15410 | _ACEOF | |
15411 | ||
15412 | # Create commands to substitute file output variables. | |
c6b750e1 | 15413 | { |
81ecdfbb RW |
15414 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
15415 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
15416 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
15417 | echo "_ACAWK" && | |
15418 | echo "_ACEOF" | |
15419 | } >conf$$files.sh && | |
15420 | . ./conf$$files.sh || | |
15421 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15422 | rm -f conf$$files.sh | |
c6b750e1 | 15423 | |
81ecdfbb RW |
15424 | { |
15425 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15426 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15427 | echo "_ACEOF" | |
15428 | } >conf$$subs.sh || | |
15429 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15430 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15431 | ac_delim='%!_!# ' | |
15432 | for ac_last_try in false false false false false :; do | |
15433 | . ./conf$$subs.sh || | |
15434 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15435 | ||
15436 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15437 | if test $ac_delim_n = $ac_delim_num; then | |
15438 | break | |
15439 | elif $ac_last_try; then | |
15440 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15441 | else | |
15442 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15443 | fi | |
15444 | done | |
15445 | rm -f conf$$subs.sh | |
15446 | ||
15447 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15448 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
c6b750e1 | 15449 | _ACEOF |
81ecdfbb RW |
15450 | sed -n ' |
15451 | h | |
15452 | s/^/S["/; s/!.*/"]=/ | |
15453 | p | |
15454 | g | |
15455 | s/^[^!]*!// | |
15456 | :repl | |
15457 | t repl | |
15458 | s/'"$ac_delim"'$// | |
15459 | t delim | |
15460 | :nl | |
15461 | h | |
15462 | s/\(.\{148\}\).*/\1/ | |
15463 | t more1 | |
15464 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15465 | p | |
15466 | n | |
15467 | b repl | |
15468 | :more1 | |
15469 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15470 | p | |
15471 | g | |
15472 | s/.\{148\}// | |
15473 | t nl | |
15474 | :delim | |
15475 | h | |
15476 | s/\(.\{148\}\).*/\1/ | |
15477 | t more2 | |
15478 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15479 | p | |
15480 | b | |
15481 | :more2 | |
15482 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15483 | p | |
15484 | g | |
15485 | s/.\{148\}// | |
15486 | t delim | |
15487 | ' <conf$$subs.awk | sed ' | |
15488 | /^[^""]/{ | |
15489 | N | |
15490 | s/\n// | |
15491 | } | |
15492 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15493 | rm -f conf$$subs.awk | |
15494 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15495 | _ACAWK | |
15496 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15497 | for (key in S) S_is_set[key] = 1 | |
15498 | FS = "\a" | |
15499 | \$ac_cs_awk_pipe_init | |
15500 | } | |
15501 | { | |
15502 | line = $ 0 | |
15503 | nfields = split(line, field, "@") | |
15504 | substed = 0 | |
15505 | len = length(field[1]) | |
15506 | for (i = 2; i < nfields; i++) { | |
15507 | key = field[i] | |
15508 | keylen = length(key) | |
15509 | if (S_is_set[key]) { | |
15510 | value = S[key] | |
15511 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15512 | len += length(value) + length(field[++i]) | |
15513 | substed = 1 | |
15514 | } else | |
15515 | len += 1 + keylen | |
15516 | } | |
15517 | if (nfields == 3 && !substed) { | |
15518 | key = field[2] | |
15519 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15520 | \$ac_cs_awk_read_file | |
15521 | next | |
15522 | } | |
15523 | } | |
15524 | print line | |
15525 | } | |
15526 | \$ac_cs_awk_pipe_fini | |
15527 | _ACAWK | |
15528 | _ACEOF | |
15529 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15530 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15531 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15532 | else | |
15533 | cat | |
15534 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15535 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15536 | _ACEOF | |
15537 | ||
15538 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15539 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15540 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15541 | # (actually we leave an empty line to preserve line numbers). | |
15542 | if test "x$srcdir" = x.; then | |
15543 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15544 | s/:*\$(srcdir):*/:/ | |
15545 | s/:*\${srcdir}:*/:/ | |
15546 | s/:*@srcdir@:*/:/ | |
15547 | s/^\([^=]*=[ ]*\):*/\1/ | |
15548 | s/:*$// | |
15549 | s/^[^=]*=[ ]*$// | |
15550 | }' | |
15551 | fi | |
c6b750e1 | 15552 | |
81ecdfbb RW |
15553 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15554 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 15555 | |
c6b750e1 | 15556 | |
81ecdfbb RW |
15557 | eval set X " :F $CONFIG_FILES " |
15558 | shift | |
15559 | for ac_tag | |
15560 | do | |
15561 | case $ac_tag in | |
15562 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15563 | esac | |
15564 | case $ac_mode$ac_tag in | |
15565 | :[FHL]*:*);; | |
15566 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15567 | :[FH]-) ac_tag=-:-;; | |
15568 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15569 | esac | |
15570 | ac_save_IFS=$IFS | |
15571 | IFS=: | |
15572 | set x $ac_tag | |
15573 | IFS=$ac_save_IFS | |
15574 | shift | |
15575 | ac_file=$1 | |
15576 | shift | |
252b5132 | 15577 | |
81ecdfbb RW |
15578 | case $ac_mode in |
15579 | :L) ac_source=$1;; | |
15580 | :[FH]) | |
15581 | ac_file_inputs= | |
15582 | for ac_f | |
15583 | do | |
15584 | case $ac_f in | |
15585 | -) ac_f="$tmp/stdin";; | |
15586 | *) # Look for the file first in the build tree, then in the source tree | |
15587 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15588 | # because $ac_f cannot contain `:'. | |
15589 | test -f "$ac_f" || | |
15590 | case $ac_f in | |
15591 | [\\/$]*) false;; | |
15592 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15593 | esac || | |
15594 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15595 | esac | |
15596 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15597 | as_fn_append ac_file_inputs " '$ac_f'" | |
15598 | done | |
c6b750e1 | 15599 | |
81ecdfbb RW |
15600 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15601 | # use $as_me), people would be surprised to read: | |
15602 | # /* config.h. Generated by config.status. */ | |
15603 | configure_input='Generated from '` | |
15604 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15605 | `' by configure.' | |
15606 | if test x"$ac_file" != x-; then | |
15607 | configure_input="$ac_file. $configure_input" | |
15608 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15609 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 15610 | fi |
81ecdfbb RW |
15611 | # Neutralize special characters interpreted by sed in replacement strings. |
15612 | case $configure_input in #( | |
15613 | *\&* | *\|* | *\\* ) | |
15614 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15615 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15616 | *) ac_sed_conf_input=$configure_input;; | |
15617 | esac | |
cac3d6c4 | 15618 | |
81ecdfbb RW |
15619 | case $ac_tag in |
15620 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15621 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15622 | esac | |
15623 | ;; | |
a0da8069 | 15624 | esac |
252b5132 | 15625 | |
81ecdfbb | 15626 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
15627 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15628 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15629 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15630 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15631 | $as_echo X"$ac_file" | | |
15632 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15633 | s//\1/ | |
15634 | q | |
15635 | } | |
15636 | /^X\(\/\/\)[^/].*/{ | |
15637 | s//\1/ | |
15638 | q | |
15639 | } | |
15640 | /^X\(\/\/\)$/{ | |
15641 | s//\1/ | |
15642 | q | |
15643 | } | |
15644 | /^X\(\/\).*/{ | |
15645 | s//\1/ | |
15646 | q | |
15647 | } | |
15648 | s/.*/./; q'` | |
15649 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 15650 | ac_builddir=. |
252b5132 | 15651 | |
81ecdfbb RW |
15652 | case "$ac_dir" in |
15653 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15654 | *) | |
15655 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15656 | # A ".." for each directory in $ac_dir_suffix. | |
15657 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15658 | case $ac_top_builddir_sub in | |
15659 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15660 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15661 | esac ;; | |
15662 | esac | |
15663 | ac_abs_top_builddir=$ac_pwd | |
15664 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15665 | # for backward compatibility: | |
15666 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
15667 | |
15668 | case $srcdir in | |
81ecdfbb | 15669 | .) # We are building in place. |
c6b750e1 | 15670 | ac_srcdir=. |
81ecdfbb RW |
15671 | ac_top_srcdir=$ac_top_builddir_sub |
15672 | ac_abs_top_srcdir=$ac_pwd ;; | |
15673 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 15674 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15675 | ac_top_srcdir=$srcdir |
15676 | ac_abs_top_srcdir=$srcdir ;; | |
15677 | *) # Relative name. | |
15678 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15679 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15680 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 15681 | esac |
81ecdfbb | 15682 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 15683 | |
252b5132 | 15684 | |
81ecdfbb RW |
15685 | case $ac_mode in |
15686 | :F) | |
15687 | # | |
15688 | # CONFIG_FILE | |
15689 | # | |
c6b750e1 DJ |
15690 | |
15691 | case $INSTALL in | |
15692 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 15693 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 15694 | esac |
81ecdfbb | 15695 | _ACEOF |
252b5132 | 15696 | |
81ecdfbb RW |
15697 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15698 | # If the template does not know about datarootdir, expand it. | |
15699 | # FIXME: This hack should be removed a few years after 2.60. | |
15700 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15701 | ac_sed_dataroot=' | |
15702 | /datarootdir/ { | |
15703 | p | |
15704 | q | |
15705 | } | |
15706 | /@datadir@/p | |
15707 | /@docdir@/p | |
15708 | /@infodir@/p | |
15709 | /@localedir@/p | |
15710 | /@mandir@/p' | |
15711 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15712 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15713 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15714 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15715 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 15716 | _ACEOF |
81ecdfbb RW |
15717 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15718 | ac_datarootdir_hack=' | |
15719 | s&@datadir@&$datadir&g | |
15720 | s&@docdir@&$docdir&g | |
15721 | s&@infodir@&$infodir&g | |
15722 | s&@localedir@&$localedir&g | |
15723 | s&@mandir@&$mandir&g | |
15724 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15725 | esac | |
15726 | _ACEOF | |
15727 | ||
15728 | # Neutralize VPATH when `$srcdir' = `.'. | |
15729 | # Shell code in configure.ac might set extrasub. | |
15730 | # FIXME: do we really want to maintain this feature? | |
15731 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15732 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
15733 | $extrasub |
15734 | _ACEOF | |
81ecdfbb | 15735 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
15736 | :t |
15737 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
15738 | s|@configure_input@|$ac_sed_conf_input|;t t |
15739 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15740 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15741 | s&@srcdir@&$ac_srcdir&;t t | |
15742 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15743 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15744 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15745 | s&@builddir@&$ac_builddir&;t t | |
15746 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15747 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15748 | s&@INSTALL@&$ac_INSTALL&;t t | |
15749 | $ac_datarootdir_hack | |
15750 | " | |
15751 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15752 | if $ac_cs_awk_getline; then | |
15753 | $AWK -f "$tmp/subs.awk" | |
15754 | else | |
15755 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15756 | fi >$tmp/out \ | |
15757 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15758 | ||
15759 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15760 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15761 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15762 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15763 | which seems to be undefined. Please make sure it is defined." >&5 | |
15764 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15765 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15766 | ||
15767 | rm -f "$tmp/stdin" | |
15768 | case $ac_file in | |
15769 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
15770 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15771 | esac \ | |
15772 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15773 | ;; | |
c148b4cb | 15774 | |
c148b4cb | 15775 | |
c148b4cb | 15776 | |
81ecdfbb RW |
15777 | esac |
15778 | ||
06a51eac RW |
15779 | |
15780 | case $ac_file$ac_mode in | |
15781 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15782 | sed "$extrasub_host" | | |
15783 | sed "$extrasub_target" > mf$$ | |
15784 | mv -f mf$$ Makefile ;; | |
15785 | ||
15786 | esac | |
81ecdfbb RW |
15787 | done # for ac_tag |
15788 | ||
15789 | ||
15790 | as_fn_exit 0 | |
c6b750e1 | 15791 | _ACEOF |
c6b750e1 DJ |
15792 | ac_clean_files=$ac_clean_files_save |
15793 | ||
81ecdfbb RW |
15794 | test $ac_write_fail = 0 || |
15795 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15796 | ||
c6b750e1 DJ |
15797 | |
15798 | # configure is writing to config.log, and then calls config.status. | |
15799 | # config.status does its own redirection, appending to config.log. | |
15800 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15801 | # by configure, so config.status won't be able to write to it; its | |
15802 | # output is simply discarded. So we exec the FD to /dev/null, | |
15803 | # effectively closing config.log, so it can be properly (re)opened and | |
15804 | # appended to by config.status. When coming back to configure, we | |
15805 | # need to make the FD available again. | |
15806 | if test "$no_create" != yes; then | |
15807 | ac_cs_success=: | |
15808 | ac_config_status_args= | |
15809 | test "$silent" = yes && | |
15810 | ac_config_status_args="$ac_config_status_args --quiet" | |
15811 | exec 5>/dev/null | |
15812 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15813 | exec 5>>config.log | |
15814 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15815 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
15816 | $ac_cs_success || as_fn_exit $? |
15817 | fi | |
15818 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15819 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15820 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 15821 | fi |
c148b4cb | 15822 |