]>
Commit | Line | Data |
---|---|---|
bafecfd6 | 1 | #! /bin/sh |
bafecfd6 | 2 | # Guess values for system-dependent variables and create Makefiles. |
efd58f08 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. | |
bafecfd6 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
efd58f08 RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
b58b6ee1 | 14 | |
efd58f08 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 : | |
b58b6ee1 DJ |
18 | emulate sh |
19 | NULLCMD=: | |
efd58f08 | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b58b6ee1 DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
efd58f08 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 | |
b58b6ee1 | 31 | fi |
b58b6ee1 | 32 | |
efd58f08 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 | } | |
b58b6ee1 DJ |
79 | fi |
80 | ||
81 | ||
efd58f08 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 | |
b58b6ee1 DJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
efd58f08 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'\" && | |
a8a01987 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" | |
efd58f08 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 | |
b58b6ee1 | 184 | do |
efd58f08 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." | |
b58b6ee1 | 228 | else |
efd58f08 RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
b58b6ee1 | 233 | fi |
efd58f08 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 | |
b58b6ee1 | 263 | |
efd58f08 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 | |
b58b6ee1 DJ |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
efd58f08 | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b58b6ee1 DJ |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
efd58f08 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 | |
b58b6ee1 | 391 | |
efd58f08 | 392 | as_me=`$as_basename -- "$0" || |
b58b6ee1 DJ |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
efd58f08 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'` | |
b58b6ee1 | 410 | |
b58b6ee1 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 | ||
b58b6ee1 | 418 | |
efd58f08 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 | | |
b58b6ee1 | 428 | sed ' |
efd58f08 RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
b58b6ee1 | 433 | N |
efd58f08 RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b58b6ee1 | 436 | t loop |
efd58f08 | 437 | s/-\n.*// |
b58b6ee1 | 438 | ' >$as_me.lineno && |
efd58f08 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; } | |
b58b6ee1 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 | |
efd58f08 RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
b58b6ee1 DJ |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
efd58f08 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';; | |
b58b6ee1 DJ |
461 | esac |
462 | ||
efd58f08 RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
b58b6ee1 | 466 | else |
efd58f08 RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
b58b6ee1 | 469 | fi |
efd58f08 RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b58b6ee1 | 472 | as_ln_s='ln -s' |
efd58f08 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' | |
b58b6ee1 | 483 | fi |
b58b6ee1 DJ |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
efd58f08 RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
b58b6ee1 DJ |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
efd58f08 | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
b58b6ee1 DJ |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
efd58f08 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 | |
b58b6ee1 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 | ||
efd58f08 | 527 | exec 7<&0 </dev/null 6>&1 |
bafecfd6 | 528 | |
b58b6ee1 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 | ||
b58b6ee1 DJ |
534 | # |
535 | # Initializations. | |
536 | # | |
bafecfd6 | 537 | ac_default_prefix=/usr/local |
efd58f08 | 538 | ac_clean_files= |
b58b6ee1 | 539 | ac_config_libobj_dir=. |
efd58f08 | 540 | LIBOBJS= |
b58b6ee1 DJ |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
b58b6ee1 DJ |
545 | |
546 | # Identity of this package. | |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
efd58f08 | 552 | PACKAGE_URL= |
b58b6ee1 DJ |
553 | |
554 | ac_unique_file="move-if-change" | |
efd58f08 RW |
555 | enable_option_checking=no |
556 | ac_subst_vars='LTLIBOBJS | |
557 | LIBOBJS | |
558 | compare_exclusions | |
559 | stage2_werror_flag | |
560 | stage1_checking | |
561 | stage1_cflags | |
562 | MAINT | |
563 | MAINTAINER_MODE_FALSE | |
564 | MAINTAINER_MODE_TRUE | |
565 | COMPILER_NM_FOR_TARGET | |
566 | COMPILER_LD_FOR_TARGET | |
567 | COMPILER_AS_FOR_TARGET | |
568 | FLAGS_FOR_TARGET | |
569 | RAW_CXX_FOR_TARGET | |
570 | WINDMC_FOR_TARGET | |
571 | WINDRES_FOR_TARGET | |
572 | STRIP_FOR_TARGET | |
46e7439b | 573 | READELF_FOR_TARGET |
efd58f08 RW |
574 | RANLIB_FOR_TARGET |
575 | OBJDUMP_FOR_TARGET | |
576 | NM_FOR_TARGET | |
577 | LIPO_FOR_TARGET | |
578 | LD_FOR_TARGET | |
579 | DLLTOOL_FOR_TARGET | |
580 | AS_FOR_TARGET | |
581 | AR_FOR_TARGET | |
d5b7129a | 582 | GOC_FOR_TARGET |
efd58f08 RW |
583 | GFORTRAN_FOR_TARGET |
584 | GCJ_FOR_TARGET | |
585 | GCC_FOR_TARGET | |
586 | CXX_FOR_TARGET | |
587 | CC_FOR_TARGET | |
46e7439b | 588 | READELF |
efd58f08 RW |
589 | OBJDUMP |
590 | OBJCOPY | |
591 | WINDMC | |
592 | WINDRES | |
593 | STRIP | |
594 | RANLIB | |
595 | NM | |
596 | LIPO | |
597 | LD | |
598 | DLLTOOL | |
599 | AS | |
600 | AR | |
601 | RUNTEST | |
602 | EXPECT | |
603 | MAKEINFO | |
604 | FLEX | |
605 | LEX | |
606 | M4 | |
607 | BISON | |
608 | YACC | |
efd58f08 RW |
609 | WINDRES_FOR_BUILD |
610 | WINDMC_FOR_BUILD | |
611 | RANLIB_FOR_BUILD | |
612 | NM_FOR_BUILD | |
613 | LD_FOR_BUILD | |
614 | LDFLAGS_FOR_BUILD | |
d5b7129a | 615 | GOC_FOR_BUILD |
efd58f08 RW |
616 | GFORTRAN_FOR_BUILD |
617 | GCJ_FOR_BUILD | |
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 | |
e894eef9 | 625 | target_configdirs |
efd58f08 | 626 | configdirs |
efd58f08 | 627 | build_configdirs |
efd58f08 RW |
628 | INSTALL_GDB_TK |
629 | GDB_TK | |
630 | CONFIGURE_GDB_TK | |
631 | build_tooldir | |
632 | tooldir | |
633 | GCC_SHLIB_SUBDIR | |
634 | RPATH_ENVVAR | |
1d694d8e RW |
635 | target_configargs |
636 | host_configargs | |
637 | build_configargs | |
55662058 | 638 | BUILD_CONFIG |
2e7bf520 | 639 | LDFLAGS_FOR_TARGET |
efd58f08 RW |
640 | CXXFLAGS_FOR_TARGET |
641 | CFLAGS_FOR_TARGET | |
642 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
643 | SYSROOT_CFLAGS_FOR_TARGET | |
644 | stage1_languages | |
bd45d6fa | 645 | extra_host_libiberty_configure_flags |
efd58f08 RW |
646 | clooginc |
647 | clooglibs | |
a626f4ee L |
648 | islinc |
649 | isllibs | |
efd58f08 | 650 | poststage1_ldflags |
f107c370 | 651 | poststage1_libs |
efd58f08 RW |
652 | stage1_libs |
653 | stage1_ldflags | |
a626f4ee | 654 | extra_isl_gmp_configure_flags |
efd58f08 RW |
655 | extra_mpc_mpfr_configure_flags |
656 | extra_mpc_gmp_configure_flags | |
657 | extra_mpfr_configure_flags | |
658 | gmpinc | |
659 | gmplibs | |
660 | do_compare | |
661 | GNATMAKE | |
662 | GNATBIND | |
663 | ac_ct_CXX | |
664 | CXXFLAGS | |
665 | CXX | |
666 | OBJEXT | |
667 | EXEEXT | |
668 | ac_ct_CC | |
669 | CPPFLAGS | |
670 | LDFLAGS | |
671 | CFLAGS | |
672 | CC | |
c9161585 | 673 | EXTRA_CONFIGARGS_LIBJAVA |
efd58f08 RW |
674 | target_subdir |
675 | host_subdir | |
676 | build_subdir | |
677 | build_libsubdir | |
a8a01987 PB |
678 | AWK |
679 | SED | |
efd58f08 RW |
680 | LN_S |
681 | LN | |
682 | INSTALL_DATA | |
683 | INSTALL_SCRIPT | |
684 | INSTALL_PROGRAM | |
685 | target_os | |
686 | target_vendor | |
687 | target_cpu | |
688 | target | |
689 | host_os | |
690 | host_vendor | |
691 | host_cpu | |
692 | host | |
693 | target_noncanonical | |
694 | host_noncanonical | |
695 | build_noncanonical | |
696 | build_os | |
697 | build_vendor | |
698 | build_cpu | |
699 | build | |
700 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
701 | target_alias | |
702 | host_alias | |
703 | build_alias | |
704 | LIBS | |
705 | ECHO_T | |
706 | ECHO_N | |
707 | ECHO_C | |
708 | DEFS | |
709 | mandir | |
710 | localedir | |
711 | libdir | |
712 | psdir | |
713 | pdfdir | |
714 | dvidir | |
715 | htmldir | |
716 | infodir | |
717 | docdir | |
718 | oldincludedir | |
719 | includedir | |
720 | localstatedir | |
721 | sharedstatedir | |
722 | sysconfdir | |
723 | datadir | |
724 | datarootdir | |
725 | libexecdir | |
726 | sbindir | |
727 | bindir | |
728 | program_transform_name | |
729 | prefix | |
730 | exec_prefix | |
731 | PACKAGE_URL | |
732 | PACKAGE_BUGREPORT | |
733 | PACKAGE_STRING | |
734 | PACKAGE_VERSION | |
735 | PACKAGE_TARNAME | |
736 | PACKAGE_NAME | |
737 | PATH_SEPARATOR | |
738 | SHELL' | |
739 | ac_subst_files='serialization_dependencies | |
740 | host_makefile_frag | |
741 | target_makefile_frag | |
742 | alphaieee_frag | |
743 | ospace_frag' | |
744 | ac_user_opts=' | |
745 | enable_option_checking | |
746 | with_build_libsubdir | |
747 | enable_gold | |
679e4c82 | 748 | enable_ld |
d4b54911 PB |
749 | enable_libquadmath |
750 | enable_libquadmath_support | |
efd58f08 RW |
751 | enable_libada |
752 | enable_libssp | |
c9161585 ILT |
753 | enable_static_libjava |
754 | enable_bootstrap | |
efd58f08 RW |
755 | with_mpc |
756 | with_mpc_include | |
757 | with_mpc_lib | |
758 | with_mpfr_dir | |
759 | with_mpfr | |
760 | with_mpfr_include | |
761 | with_mpfr_lib | |
762 | with_gmp_dir | |
763 | with_gmp | |
764 | with_gmp_include | |
765 | with_gmp_lib | |
766 | with_host_libstdcxx | |
767 | with_stage1_ldflags | |
768 | with_stage1_libs | |
efd58f08 | 769 | with_boot_libs |
f107c370 | 770 | with_boot_ldflags |
a626f4ee L |
771 | with_isl |
772 | with_isl_include | |
773 | with_isl_lib | |
774 | enable_isl_version_check | |
efd58f08 RW |
775 | with_cloog |
776 | with_cloog_include | |
777 | with_cloog_lib | |
778 | enable_cloog_version_check | |
bd45d6fa | 779 | enable_lto |
efd58f08 RW |
780 | enable_stage1_languages |
781 | enable_objc_gc | |
782 | with_build_sysroot | |
783 | with_debug_prefix_map | |
55662058 | 784 | with_build_config |
efd58f08 RW |
785 | enable_serial_configure |
786 | with_build_time_tools | |
787 | enable_maintainer_mode | |
788 | enable_stage1_checking | |
789 | enable_werror | |
efd58f08 RW |
790 | ' |
791 | ac_precious_vars='build_alias | |
792 | host_alias | |
793 | target_alias | |
794 | CC | |
795 | CFLAGS | |
796 | LDFLAGS | |
797 | LIBS | |
798 | CPPFLAGS | |
799 | CXX | |
800 | CXXFLAGS | |
801 | CCC | |
1d694d8e RW |
802 | build_configargs |
803 | host_configargs | |
804 | target_configargs | |
efd58f08 RW |
805 | AR |
806 | AS | |
807 | DLLTOOL | |
808 | LD | |
809 | LIPO | |
810 | NM | |
811 | RANLIB | |
812 | STRIP | |
813 | WINDRES | |
814 | WINDMC | |
815 | OBJCOPY | |
816 | OBJDUMP | |
46e7439b | 817 | READELF |
efd58f08 RW |
818 | CC_FOR_TARGET |
819 | CXX_FOR_TARGET | |
820 | GCC_FOR_TARGET | |
821 | GCJ_FOR_TARGET | |
822 | GFORTRAN_FOR_TARGET | |
d5b7129a | 823 | GOC_FOR_TARGET |
efd58f08 RW |
824 | AR_FOR_TARGET |
825 | AS_FOR_TARGET | |
826 | DLLTOOL_FOR_TARGET | |
827 | LD_FOR_TARGET | |
828 | LIPO_FOR_TARGET | |
829 | NM_FOR_TARGET | |
830 | OBJDUMP_FOR_TARGET | |
831 | RANLIB_FOR_TARGET | |
46e7439b | 832 | READELF_FOR_TARGET |
efd58f08 RW |
833 | STRIP_FOR_TARGET |
834 | WINDRES_FOR_TARGET | |
835 | WINDMC_FOR_TARGET' | |
836 | ||
bafecfd6 NN |
837 | |
838 | # Initialize some variables set by options. | |
b58b6ee1 DJ |
839 | ac_init_help= |
840 | ac_init_version=false | |
efd58f08 RW |
841 | ac_unrecognized_opts= |
842 | ac_unrecognized_sep= | |
bafecfd6 NN |
843 | # The variables have the same names as the options, with |
844 | # dashes changed to underlines. | |
b58b6ee1 | 845 | cache_file=/dev/null |
bafecfd6 | 846 | exec_prefix=NONE |
bafecfd6 | 847 | no_create= |
bafecfd6 NN |
848 | no_recursion= |
849 | prefix=NONE | |
850 | program_prefix=NONE | |
851 | program_suffix=NONE | |
852 | program_transform_name=s,x,x, | |
853 | silent= | |
854 | site= | |
855 | srcdir= | |
bafecfd6 NN |
856 | verbose= |
857 | x_includes=NONE | |
858 | x_libraries=NONE | |
b58b6ee1 DJ |
859 | |
860 | # Installation directory options. | |
861 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
862 | # and all the variables that are supposed to be based on exec_prefix | |
863 | # by default will actually change. | |
864 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
efd58f08 | 865 | # (The list follows the same order as the GNU Coding Standards.) |
bafecfd6 NN |
866 | bindir='${exec_prefix}/bin' |
867 | sbindir='${exec_prefix}/sbin' | |
868 | libexecdir='${exec_prefix}/libexec' | |
efd58f08 RW |
869 | datarootdir='${prefix}/share' |
870 | datadir='${datarootdir}' | |
bafecfd6 NN |
871 | sysconfdir='${prefix}/etc' |
872 | sharedstatedir='${prefix}/com' | |
873 | localstatedir='${prefix}/var' | |
bafecfd6 NN |
874 | includedir='${prefix}/include' |
875 | oldincludedir='/usr/include' | |
efd58f08 RW |
876 | docdir='${datarootdir}/doc/${PACKAGE}' |
877 | infodir='${datarootdir}/info' | |
878 | htmldir='${docdir}' | |
879 | dvidir='${docdir}' | |
880 | pdfdir='${docdir}' | |
881 | psdir='${docdir}' | |
882 | libdir='${exec_prefix}/lib' | |
883 | localedir='${datarootdir}/locale' | |
884 | mandir='${datarootdir}/man' | |
a3acbf46 | 885 | |
bafecfd6 | 886 | ac_prev= |
efd58f08 | 887 | ac_dashdash= |
bafecfd6 NN |
888 | for ac_option |
889 | do | |
bafecfd6 NN |
890 | # If the previous option needs an argument, assign it. |
891 | if test -n "$ac_prev"; then | |
efd58f08 | 892 | eval $ac_prev=\$ac_option |
bafecfd6 NN |
893 | ac_prev= |
894 | continue | |
895 | fi | |
a3acbf46 | 896 | |
efd58f08 RW |
897 | case $ac_option in |
898 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
899 | *) ac_optarg=yes ;; | |
900 | esac | |
bafecfd6 NN |
901 | |
902 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
903 | ||
efd58f08 RW |
904 | case $ac_dashdash$ac_option in |
905 | --) | |
906 | ac_dashdash=yes ;; | |
bafecfd6 NN |
907 | |
908 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
909 | ac_prev=bindir ;; | |
910 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b58b6ee1 | 911 | bindir=$ac_optarg ;; |
bafecfd6 NN |
912 | |
913 | -build | --build | --buil | --bui | --bu) | |
b58b6ee1 | 914 | ac_prev=build_alias ;; |
bafecfd6 | 915 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b58b6ee1 | 916 | build_alias=$ac_optarg ;; |
bafecfd6 NN |
917 | |
918 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
919 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
920 | ac_prev=cache_file ;; | |
921 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
922 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b58b6ee1 DJ |
923 | cache_file=$ac_optarg ;; |
924 | ||
925 | --config-cache | -C) | |
926 | cache_file=config.cache ;; | |
bafecfd6 | 927 | |
efd58f08 | 928 | -datadir | --datadir | --datadi | --datad) |
bafecfd6 | 929 | ac_prev=datadir ;; |
efd58f08 | 930 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b58b6ee1 | 931 | datadir=$ac_optarg ;; |
bafecfd6 | 932 | |
efd58f08 RW |
933 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
934 | | --dataroo | --dataro | --datar) | |
935 | ac_prev=datarootdir ;; | |
936 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
937 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
938 | datarootdir=$ac_optarg ;; | |
939 | ||
bafecfd6 | 940 | -disable-* | --disable-*) |
efd58f08 | 941 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bafecfd6 | 942 | # Reject names that are not valid shell variable names. |
efd58f08 RW |
943 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
944 | as_fn_error "invalid feature name: $ac_useropt" | |
945 | ac_useropt_orig=$ac_useropt | |
946 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
947 | case $ac_user_opts in | |
948 | *" | |
949 | "enable_$ac_useropt" | |
950 | "*) ;; | |
951 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
952 | ac_unrecognized_sep=', ';; | |
953 | esac | |
954 | eval enable_$ac_useropt=no ;; | |
955 | ||
956 | -docdir | --docdir | --docdi | --doc | --do) | |
957 | ac_prev=docdir ;; | |
958 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
959 | docdir=$ac_optarg ;; | |
960 | ||
961 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
962 | ac_prev=dvidir ;; | |
963 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
964 | dvidir=$ac_optarg ;; | |
bafecfd6 NN |
965 | |
966 | -enable-* | --enable-*) | |
efd58f08 | 967 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bafecfd6 | 968 | # Reject names that are not valid shell variable names. |
efd58f08 RW |
969 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
970 | as_fn_error "invalid feature name: $ac_useropt" | |
971 | ac_useropt_orig=$ac_useropt | |
972 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
973 | case $ac_user_opts in | |
974 | *" | |
975 | "enable_$ac_useropt" | |
976 | "*) ;; | |
977 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
978 | ac_unrecognized_sep=', ';; | |
bafecfd6 | 979 | esac |
efd58f08 | 980 | eval enable_$ac_useropt=\$ac_optarg ;; |
bafecfd6 NN |
981 | |
982 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
983 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
984 | | --exec | --exe | --ex) | |
985 | ac_prev=exec_prefix ;; | |
986 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
987 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
988 | | --exec=* | --exe=* | --ex=*) | |
b58b6ee1 | 989 | exec_prefix=$ac_optarg ;; |
bafecfd6 NN |
990 | |
991 | -gas | --gas | --ga | --g) | |
992 | # Obsolete; use --with-gas. | |
993 | with_gas=yes ;; | |
994 | ||
b58b6ee1 DJ |
995 | -help | --help | --hel | --he | -h) |
996 | ac_init_help=long ;; | |
997 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
998 | ac_init_help=recursive ;; | |
999 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1000 | ac_init_help=short ;; | |
bafecfd6 NN |
1001 | |
1002 | -host | --host | --hos | --ho) | |
b58b6ee1 | 1003 | ac_prev=host_alias ;; |
bafecfd6 | 1004 | -host=* | --host=* | --hos=* | --ho=*) |
b58b6ee1 | 1005 | host_alias=$ac_optarg ;; |
bafecfd6 | 1006 | |
efd58f08 RW |
1007 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1008 | ac_prev=htmldir ;; | |
1009 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1010 | | --ht=*) | |
1011 | htmldir=$ac_optarg ;; | |
1012 | ||
bafecfd6 NN |
1013 | -includedir | --includedir | --includedi | --included | --include \ |
1014 | | --includ | --inclu | --incl | --inc) | |
1015 | ac_prev=includedir ;; | |
1016 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1017 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b58b6ee1 | 1018 | includedir=$ac_optarg ;; |
bafecfd6 NN |
1019 | |
1020 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1021 | ac_prev=infodir ;; | |
1022 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b58b6ee1 | 1023 | infodir=$ac_optarg ;; |
bafecfd6 NN |
1024 | |
1025 | -libdir | --libdir | --libdi | --libd) | |
1026 | ac_prev=libdir ;; | |
1027 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b58b6ee1 | 1028 | libdir=$ac_optarg ;; |
bafecfd6 NN |
1029 | |
1030 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1031 | | --libexe | --libex | --libe) | |
1032 | ac_prev=libexecdir ;; | |
1033 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1034 | | --libexe=* | --libex=* | --libe=*) | |
b58b6ee1 | 1035 | libexecdir=$ac_optarg ;; |
bafecfd6 | 1036 | |
efd58f08 RW |
1037 | -localedir | --localedir | --localedi | --localed | --locale) |
1038 | ac_prev=localedir ;; | |
1039 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1040 | localedir=$ac_optarg ;; | |
1041 | ||
bafecfd6 | 1042 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
efd58f08 | 1043 | | --localstate | --localstat | --localsta | --localst | --locals) |
bafecfd6 NN |
1044 | ac_prev=localstatedir ;; |
1045 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
efd58f08 | 1046 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b58b6ee1 | 1047 | localstatedir=$ac_optarg ;; |
bafecfd6 NN |
1048 | |
1049 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1050 | ac_prev=mandir ;; | |
1051 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b58b6ee1 | 1052 | mandir=$ac_optarg ;; |
bafecfd6 NN |
1053 | |
1054 | -nfp | --nfp | --nf) | |
1055 | # Obsolete; use --without-fp. | |
1056 | with_fp=no ;; | |
1057 | ||
1058 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b58b6ee1 | 1059 | | --no-cr | --no-c | -n) |
bafecfd6 NN |
1060 | no_create=yes ;; |
1061 | ||
1062 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1063 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1064 | no_recursion=yes ;; | |
1065 | ||
1066 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1067 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1068 | | --oldin | --oldi | --old | --ol | --o) | |
1069 | ac_prev=oldincludedir ;; | |
1070 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1071 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1072 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b58b6ee1 | 1073 | oldincludedir=$ac_optarg ;; |
bafecfd6 NN |
1074 | |
1075 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1076 | ac_prev=prefix ;; | |
1077 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b58b6ee1 | 1078 | prefix=$ac_optarg ;; |
bafecfd6 NN |
1079 | |
1080 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1081 | | --program-pre | --program-pr | --program-p) | |
1082 | ac_prev=program_prefix ;; | |
1083 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1084 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b58b6ee1 | 1085 | program_prefix=$ac_optarg ;; |
bafecfd6 NN |
1086 | |
1087 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1088 | | --program-suf | --program-su | --program-s) | |
1089 | ac_prev=program_suffix ;; | |
1090 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1091 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b58b6ee1 | 1092 | program_suffix=$ac_optarg ;; |
bafecfd6 NN |
1093 | |
1094 | -program-transform-name | --program-transform-name \ | |
1095 | | --program-transform-nam | --program-transform-na \ | |
1096 | | --program-transform-n | --program-transform- \ | |
1097 | | --program-transform | --program-transfor \ | |
1098 | | --program-transfo | --program-transf \ | |
1099 | | --program-trans | --program-tran \ | |
1100 | | --progr-tra | --program-tr | --program-t) | |
1101 | ac_prev=program_transform_name ;; | |
1102 | -program-transform-name=* | --program-transform-name=* \ | |
1103 | | --program-transform-nam=* | --program-transform-na=* \ | |
1104 | | --program-transform-n=* | --program-transform-=* \ | |
1105 | | --program-transform=* | --program-transfor=* \ | |
1106 | | --program-transfo=* | --program-transf=* \ | |
1107 | | --program-trans=* | --program-tran=* \ | |
1108 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b58b6ee1 | 1109 | program_transform_name=$ac_optarg ;; |
bafecfd6 | 1110 | |
efd58f08 RW |
1111 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1112 | ac_prev=pdfdir ;; | |
1113 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1114 | pdfdir=$ac_optarg ;; | |
1115 | ||
1116 | -psdir | --psdir | --psdi | --psd | --ps) | |
1117 | ac_prev=psdir ;; | |
1118 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1119 | psdir=$ac_optarg ;; | |
1120 | ||
bafecfd6 NN |
1121 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1122 | | -silent | --silent | --silen | --sile | --sil) | |
1123 | silent=yes ;; | |
1124 | ||
1125 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1126 | ac_prev=sbindir ;; | |
1127 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1128 | | --sbi=* | --sb=*) | |
b58b6ee1 | 1129 | sbindir=$ac_optarg ;; |
bafecfd6 NN |
1130 | |
1131 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1132 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1133 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1134 | | --sha | --sh) | |
1135 | ac_prev=sharedstatedir ;; | |
1136 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1137 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1138 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1139 | | --sha=* | --sh=*) | |
b58b6ee1 | 1140 | sharedstatedir=$ac_optarg ;; |
bafecfd6 NN |
1141 | |
1142 | -site | --site | --sit) | |
1143 | ac_prev=site ;; | |
1144 | -site=* | --site=* | --sit=*) | |
b58b6ee1 | 1145 | site=$ac_optarg ;; |
bafecfd6 NN |
1146 | |
1147 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1148 | ac_prev=srcdir ;; | |
1149 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b58b6ee1 | 1150 | srcdir=$ac_optarg ;; |
bafecfd6 NN |
1151 | |
1152 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1153 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1154 | ac_prev=sysconfdir ;; | |
1155 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1156 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b58b6ee1 | 1157 | sysconfdir=$ac_optarg ;; |
bafecfd6 NN |
1158 | |
1159 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b58b6ee1 | 1160 | ac_prev=target_alias ;; |
bafecfd6 | 1161 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b58b6ee1 | 1162 | target_alias=$ac_optarg ;; |
bafecfd6 NN |
1163 | |
1164 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1165 | verbose=yes ;; | |
1166 | ||
b58b6ee1 DJ |
1167 | -version | --version | --versio | --versi | --vers | -V) |
1168 | ac_init_version=: ;; | |
bafecfd6 NN |
1169 | |
1170 | -with-* | --with-*) | |
efd58f08 | 1171 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bafecfd6 | 1172 | # Reject names that are not valid shell variable names. |
efd58f08 RW |
1173 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1174 | as_fn_error "invalid package name: $ac_useropt" | |
1175 | ac_useropt_orig=$ac_useropt | |
1176 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1177 | case $ac_user_opts in | |
1178 | *" | |
1179 | "with_$ac_useropt" | |
1180 | "*) ;; | |
1181 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1182 | ac_unrecognized_sep=', ';; | |
bafecfd6 | 1183 | esac |
efd58f08 | 1184 | eval with_$ac_useropt=\$ac_optarg ;; |
bafecfd6 NN |
1185 | |
1186 | -without-* | --without-*) | |
efd58f08 | 1187 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bafecfd6 | 1188 | # Reject names that are not valid shell variable names. |
efd58f08 RW |
1189 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1190 | as_fn_error "invalid package name: $ac_useropt" | |
1191 | ac_useropt_orig=$ac_useropt | |
1192 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1193 | case $ac_user_opts in | |
1194 | *" | |
1195 | "with_$ac_useropt" | |
1196 | "*) ;; | |
1197 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1198 | ac_unrecognized_sep=', ';; | |
1199 | esac | |
1200 | eval with_$ac_useropt=no ;; | |
bafecfd6 NN |
1201 | |
1202 | --x) | |
1203 | # Obsolete; use --with-x. | |
1204 | with_x=yes ;; | |
1205 | ||
1206 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1207 | | --x-incl | --x-inc | --x-in | --x-i) | |
1208 | ac_prev=x_includes ;; | |
1209 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1210 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b58b6ee1 | 1211 | x_includes=$ac_optarg ;; |
bafecfd6 NN |
1212 | |
1213 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1214 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1215 | ac_prev=x_libraries ;; | |
1216 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1217 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b58b6ee1 | 1218 | x_libraries=$ac_optarg ;; |
bafecfd6 | 1219 | |
efd58f08 RW |
1220 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1221 | Try \`$0 --help' for more information." | |
bafecfd6 NN |
1222 | ;; |
1223 | ||
b58b6ee1 DJ |
1224 | *=*) |
1225 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1226 | # Reject names that are not valid shell variable names. | |
efd58f08 RW |
1227 | case $ac_envvar in #( |
1228 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1229 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1230 | esac | |
1231 | eval $ac_envvar=\$ac_optarg | |
b58b6ee1 DJ |
1232 | export $ac_envvar ;; |
1233 | ||
bafecfd6 | 1234 | *) |
b58b6ee1 | 1235 | # FIXME: should be removed in autoconf 3.0. |
efd58f08 | 1236 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b58b6ee1 | 1237 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
efd58f08 | 1238 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b58b6ee1 | 1239 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
bafecfd6 NN |
1240 | ;; |
1241 | ||
1242 | esac | |
1243 | done | |
1244 | ||
1245 | if test -n "$ac_prev"; then | |
b58b6ee1 | 1246 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
efd58f08 | 1247 | as_fn_error "missing argument to $ac_option" |
bafecfd6 | 1248 | fi |
bafecfd6 | 1249 | |
efd58f08 RW |
1250 | if test -n "$ac_unrecognized_opts"; then |
1251 | case $enable_option_checking in | |
1252 | no) ;; | |
1253 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1254 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
b58b6ee1 | 1255 | esac |
efd58f08 | 1256 | fi |
bafecfd6 | 1257 | |
efd58f08 RW |
1258 | # Check all directory arguments for consistency. |
1259 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1260 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1261 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1262 | libdir localedir mandir | |
bafecfd6 | 1263 | do |
efd58f08 RW |
1264 | eval ac_val=\$$ac_var |
1265 | # Remove trailing slashes. | |
1266 | case $ac_val in | |
1267 | */ ) | |
1268 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1269 | eval $ac_var=\$ac_val;; | |
1270 | esac | |
1271 | # Be sure to have absolute directory names. | |
b58b6ee1 | 1272 | case $ac_val in |
efd58f08 RW |
1273 | [\\/$]* | ?:[\\/]* ) continue;; |
1274 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
bafecfd6 | 1275 | esac |
efd58f08 | 1276 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
bafecfd6 NN |
1277 | done |
1278 | ||
b58b6ee1 DJ |
1279 | # There might be people who depend on the old broken behavior: `$host' |
1280 | # used to hold the argument of --host etc. | |
1281 | # FIXME: To remove some day. | |
1282 | build=$build_alias | |
1283 | host=$host_alias | |
1284 | target=$target_alias | |
76402c80 | 1285 | |
b58b6ee1 DJ |
1286 | # FIXME: To remove some day. |
1287 | if test "x$host_alias" != x; then | |
1288 | if test "x$build_alias" = x; then | |
1289 | cross_compiling=maybe | |
efd58f08 | 1290 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
b58b6ee1 DJ |
1291 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1292 | elif test "x$build_alias" != "x$host_alias"; then | |
1293 | cross_compiling=yes | |
1294 | fi | |
1295 | fi | |
1296 | ||
1297 | ac_tool_prefix= | |
1298 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1299 | ||
1300 | test "$silent" = yes && exec 6>/dev/null | |
bafecfd6 | 1301 | |
bafecfd6 | 1302 | |
efd58f08 RW |
1303 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1304 | ac_ls_di=`ls -di .` && | |
1305 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1306 | as_fn_error "working directory cannot be determined" | |
1307 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1308 | as_fn_error "pwd does not report name of working directory" | |
1309 | ||
1310 | ||
bafecfd6 NN |
1311 | # Find the source files, if location was not specified. |
1312 | if test -z "$srcdir"; then | |
1313 | ac_srcdir_defaulted=yes | |
efd58f08 RW |
1314 | # Try the directory containing this script, then the parent directory. |
1315 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1316 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1317 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1318 | X"$as_myself" : 'X\(//\)$' \| \ | |
1319 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1320 | $as_echo X"$as_myself" | | |
1321 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1322 | s//\1/ | |
1323 | q | |
1324 | } | |
1325 | /^X\(\/\/\)[^/].*/{ | |
1326 | s//\1/ | |
1327 | q | |
1328 | } | |
1329 | /^X\(\/\/\)$/{ | |
1330 | s//\1/ | |
1331 | q | |
1332 | } | |
1333 | /^X\(\/\).*/{ | |
1334 | s//\1/ | |
1335 | q | |
1336 | } | |
1337 | s/.*/./; q'` | |
bafecfd6 | 1338 | srcdir=$ac_confdir |
efd58f08 | 1339 | if test ! -r "$srcdir/$ac_unique_file"; then |
bafecfd6 NN |
1340 | srcdir=.. |
1341 | fi | |
1342 | else | |
1343 | ac_srcdir_defaulted=no | |
1344 | fi | |
efd58f08 RW |
1345 | if test ! -r "$srcdir/$ac_unique_file"; then |
1346 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1347 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1348 | fi | |
1349 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1350 | ac_abs_confdir=`( | |
1351 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1352 | pwd)` | |
1353 | # When building in place, set srcdir=. | |
1354 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1355 | srcdir=. | |
1356 | fi | |
1357 | # Remove unnecessary trailing slashes from srcdir. | |
1358 | # Double slashes in file names in object file debugging info | |
1359 | # mess up M-x gdb in Emacs. | |
1360 | case $srcdir in | |
1361 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1362 | esac | |
c7fc8442 AM |
1363 | case $srcdir in |
1364 | *" "*) | |
1365 | as_fn_error "path to source, $srcdir, contains spaces" | |
1366 | ;; | |
1367 | esac | |
3fbb5e3d PB |
1368 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1369 | ||
efd58f08 RW |
1370 | for ac_var in $ac_precious_vars; do |
1371 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1372 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1373 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1374 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1375 | done | |
b58b6ee1 DJ |
1376 | |
1377 | # | |
1378 | # Report the --help message. | |
1379 | # | |
1380 | if test "$ac_init_help" = "long"; then | |
1381 | # Omit some internal or obsolete options to make the list less imposing. | |
1382 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1383 | cat <<_ACEOF | |
1384 | \`configure' configures this package to adapt to many kinds of systems. | |
1385 | ||
1386 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1387 | ||
1388 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1389 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1390 | ||
1391 | Defaults for the options are specified in brackets. | |
1392 | ||
1393 | Configuration: | |
1394 | -h, --help display this help and exit | |
1395 | --help=short display options specific to this package | |
1396 | --help=recursive display the short help of all the included packages | |
1397 | -V, --version display version information and exit | |
1398 | -q, --quiet, --silent do not print \`checking...' messages | |
1399 | --cache-file=FILE cache test results in FILE [disabled] | |
1400 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1401 | -n, --no-create do not create output files | |
1402 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1403 | ||
b58b6ee1 DJ |
1404 | Installation directories: |
1405 | --prefix=PREFIX install architecture-independent files in PREFIX | |
efd58f08 | 1406 | [$ac_default_prefix] |
b58b6ee1 | 1407 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
efd58f08 | 1408 | [PREFIX] |
b58b6ee1 DJ |
1409 | |
1410 | By default, \`make install' will install all the files in | |
1411 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1412 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1413 | for instance \`--prefix=\$HOME'. | |
1414 | ||
1415 | For better control, use the options below. | |
1416 | ||
1417 | Fine tuning of the installation directories: | |
efd58f08 RW |
1418 | --bindir=DIR user executables [EPREFIX/bin] |
1419 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1420 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1421 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1422 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1423 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1424 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1425 | --includedir=DIR C header files [PREFIX/include] | |
1426 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1427 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1428 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1429 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1430 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1431 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1432 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1433 | --htmldir=DIR html documentation [DOCDIR] | |
1434 | --dvidir=DIR dvi documentation [DOCDIR] | |
1435 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1436 | --psdir=DIR ps documentation [DOCDIR] | |
b58b6ee1 DJ |
1437 | _ACEOF |
1438 | ||
1439 | cat <<\_ACEOF | |
1440 | ||
1441 | Program names: | |
1442 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1443 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1444 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1445 | ||
1446 | System types: | |
1447 | --build=BUILD configure for building on BUILD [guessed] | |
1448 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1449 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1450 | _ACEOF | |
bafecfd6 | 1451 | fi |
bafecfd6 | 1452 | |
b58b6ee1 DJ |
1453 | if test -n "$ac_init_help"; then |
1454 | ||
1455 | cat <<\_ACEOF | |
1456 | ||
1457 | Optional Features: | |
efd58f08 | 1458 | --disable-option-checking ignore unrecognized --enable/--with options |
b58b6ee1 DJ |
1459 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1460 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
679e4c82 | 1461 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
5623c499 | 1462 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
d4b54911 PB |
1463 | --disable-libquadmath do not build libquadmath directory |
1464 | --disable-libquadmath-support | |
1465 | disable libquadmath support for Fortran | |
b301596e DD |
1466 | --enable-libada build libada directory |
1467 | --enable-libssp build libssp directory | |
c9161585 ILT |
1468 | --enable-static-libjava[=ARG] |
1469 | build static libjava [default=no] | |
1470 | --enable-bootstrap enable bootstrapping [yes if native build] | |
a626f4ee L |
1471 | --disable-isl-version-check |
1472 | disable check for ISL version | |
d5b7129a ILT |
1473 | --disable-cloog-version-check |
1474 | disable check for CLooG version | |
bd45d6fa | 1475 | --enable-lto enable link time optimization support |
5623c499 AS |
1476 | --enable-stage1-languages[=all] |
1477 | choose additional languages to build during stage1. | |
1478 | Mostly useful for compiler development | |
1479 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1480 | Objective-C runtime | |
b301596e | 1481 | --enable-serial-[{host,target,build}-]configure |
5623c499 AS |
1482 | force sequential configuration of sub-packages for |
1483 | the host, target or build machine, or all | |
1484 | sub-packages | |
1485 | --enable-maintainer-mode | |
1486 | enable make rules and dependencies not useful (and | |
1487 | sometimes confusing) to the casual installer | |
1488 | --enable-stage1-checking[=all] | |
1489 | choose additional checking for stage1 of the | |
1490 | compiler | |
b58b6ee1 DJ |
1491 | --enable-werror enable -Werror in bootstrap stage2 and later |
1492 | ||
1493 | Optional Packages: | |
1494 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1495 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1496 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
5623c499 AS |
1497 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1498 | Equivalent to --with-mpc-include=PATH/include plus | |
1499 | --with-mpc-lib=PATH/lib | |
1500 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1501 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
b301596e DD |
1502 | --with-mpfr-dir=PATH this option has been REMOVED |
1503 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
5623c499 AS |
1504 | Equivalent to --with-mpfr-include=PATH/include plus |
1505 | --with-mpfr-lib=PATH/lib | |
b58b6ee1 | 1506 | --with-mpfr-include=PATH |
b301596e DD |
1507 | specify directory for installed MPFR include files |
1508 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1509 | --with-gmp-dir=PATH this option has been REMOVED | |
5623c499 AS |
1510 | --with-gmp=PATH specify prefix directory for the installed GMP |
1511 | package. Equivalent to | |
1512 | --with-gmp-include=PATH/include plus | |
1513 | --with-gmp-lib=PATH/lib | |
b301596e DD |
1514 | --with-gmp-include=PATH specify directory for installed GMP include files |
1515 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
5623c499 AS |
1516 | --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when |
1517 | linking with PPL | |
1518 | --with-stage1-ldflags=FLAGS | |
1519 | linker flags for stage1 | |
1520 | --with-stage1-libs=LIBS libraries for stage1 | |
1521 | --with-boot-libs=LIBS libraries for stage2 and later | |
1522 | --with-boot-ldflags=FLAGS | |
1523 | linker flags for stage2 and later | |
a626f4ee | 1524 | --with-isl=PATH Specify prefix directory for the installed ISL |
5623c499 | 1525 | package. Equivalent to |
a626f4ee L |
1526 | --with-isl-include=PATH/include plus |
1527 | --with-isl-lib=PATH/lib | |
1528 | --with-isl-include=PATH Specify directory for installed ISL include files | |
1529 | --with-isl-lib=PATH Specify the directory for the installed ISL library | |
d5b7129a ILT |
1530 | --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL |
1531 | package. Equivalent to | |
1532 | --with-cloog-include=PATH/include plus | |
1533 | --with-cloog-lib=PATH/lib | |
1534 | --with-cloog-include=PATH | |
1535 | Specify directory for installed CLooG include files | |
1536 | --with-cloog-lib=PATH Specify the directory for the installed CLooG | |
1537 | library | |
b301596e | 1538 | --with-build-sysroot=SYSROOT |
b58b6ee1 | 1539 | use sysroot as the system root during the build |
fcc5fef0 | 1540 | --with-debug-prefix-map='A=B C=D ...' |
5623c499 AS |
1541 | map A to B, C to D ... in debug information |
1542 | --with-build-config='NAME NAME2...' | |
1543 | use config/NAME.mk build configuration | |
b301596e | 1544 | --with-build-time-tools=PATH |
b58b6ee1 | 1545 | use given path to find target tools during the build |
b58b6ee1 DJ |
1546 | |
1547 | Some influential environment variables: | |
1548 | CC C compiler command | |
1549 | CFLAGS C compiler flags | |
1550 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1551 | nonstandard directory <lib dir> | |
efd58f08 RW |
1552 | LIBS libraries to pass to the linker, e.g. -l<library> |
1553 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1554 | you have headers in a nonstandard directory <include dir> | |
b8c26111 PB |
1555 | CXX C++ compiler command |
1556 | CXXFLAGS C++ compiler flags | |
1d694d8e RW |
1557 | build_configargs |
1558 | additional configure arguments for build directories | |
1559 | host_configargs | |
1560 | additional configure arguments for host directories | |
1561 | target_configargs | |
1562 | additional configure arguments for target directories | |
82026593 AO |
1563 | AR AR for the host |
1564 | AS AS for the host | |
1565 | DLLTOOL DLLTOOL for the host | |
1566 | LD LD for the host | |
1567 | LIPO LIPO for the host | |
1568 | NM NM for the host | |
1569 | RANLIB RANLIB for the host | |
1570 | STRIP STRIP for the host | |
1571 | WINDRES WINDRES for the host | |
bffcbe34 | 1572 | WINDMC WINDMC for the host |
82026593 AO |
1573 | OBJCOPY OBJCOPY for the host |
1574 | OBJDUMP OBJDUMP for the host | |
46e7439b | 1575 | READELF READELF for the host |
82026593 AO |
1576 | CC_FOR_TARGET |
1577 | CC for the target | |
1578 | CXX_FOR_TARGET | |
1579 | CXX for the target | |
1580 | GCC_FOR_TARGET | |
1581 | GCC for the target | |
1582 | GCJ_FOR_TARGET | |
1583 | GCJ for the target | |
1584 | GFORTRAN_FOR_TARGET | |
1585 | GFORTRAN for the target | |
d5b7129a ILT |
1586 | GOC_FOR_TARGET |
1587 | GOC for the target | |
82026593 AO |
1588 | AR_FOR_TARGET |
1589 | AR for the target | |
1590 | AS_FOR_TARGET | |
1591 | AS for the target | |
1592 | DLLTOOL_FOR_TARGET | |
1593 | DLLTOOL for the target | |
1594 | LD_FOR_TARGET | |
1595 | LD for the target | |
1596 | LIPO_FOR_TARGET | |
1597 | LIPO for the target | |
1598 | NM_FOR_TARGET | |
1599 | NM for the target | |
1600 | OBJDUMP_FOR_TARGET | |
1601 | OBJDUMP for the target | |
1602 | RANLIB_FOR_TARGET | |
1603 | RANLIB for the target | |
46e7439b DD |
1604 | READELF_FOR_TARGET |
1605 | READELF for the target | |
82026593 AO |
1606 | STRIP_FOR_TARGET |
1607 | STRIP for the target | |
1608 | WINDRES_FOR_TARGET | |
1609 | WINDRES for the target | |
bffcbe34 NC |
1610 | WINDMC_FOR_TARGET |
1611 | WINDMC for the target | |
b58b6ee1 DJ |
1612 | |
1613 | Use these variables to override the choices made by `configure' or to help | |
1614 | it to find libraries and programs with nonstandard names/locations. | |
1615 | ||
efd58f08 | 1616 | Report bugs to the package provider. |
b58b6ee1 | 1617 | _ACEOF |
efd58f08 | 1618 | ac_status=$? |
b58b6ee1 DJ |
1619 | fi |
1620 | ||
1621 | if test "$ac_init_help" = "recursive"; then | |
1622 | # If there are subdirs, report their specific --help. | |
b58b6ee1 | 1623 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
efd58f08 RW |
1624 | test -d "$ac_dir" || |
1625 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1626 | continue | |
b58b6ee1 DJ |
1627 | ac_builddir=. |
1628 | ||
efd58f08 RW |
1629 | case "$ac_dir" in |
1630 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1631 | *) | |
1632 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1633 | # A ".." for each directory in $ac_dir_suffix. | |
1634 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1635 | case $ac_top_builddir_sub in | |
1636 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1637 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1638 | esac ;; | |
1639 | esac | |
1640 | ac_abs_top_builddir=$ac_pwd | |
1641 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1642 | # for backward compatibility: | |
1643 | ac_top_builddir=$ac_top_build_prefix | |
b58b6ee1 DJ |
1644 | |
1645 | case $srcdir in | |
efd58f08 | 1646 | .) # We are building in place. |
b58b6ee1 | 1647 | ac_srcdir=. |
efd58f08 RW |
1648 | ac_top_srcdir=$ac_top_builddir_sub |
1649 | ac_abs_top_srcdir=$ac_pwd ;; | |
1650 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b58b6ee1 | 1651 | ac_srcdir=$srcdir$ac_dir_suffix; |
efd58f08 RW |
1652 | ac_top_srcdir=$srcdir |
1653 | ac_abs_top_srcdir=$srcdir ;; | |
1654 | *) # Relative name. | |
1655 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1656 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1657 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b58b6ee1 | 1658 | esac |
efd58f08 RW |
1659 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1660 | ||
1661 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1662 | # Check for guested configure. | |
1663 | if test -f "$ac_srcdir/configure.gnu"; then | |
1664 | echo && | |
1665 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1666 | elif test -f "$ac_srcdir/configure"; then | |
1667 | echo && | |
1668 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b58b6ee1 | 1669 | else |
efd58f08 RW |
1670 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1671 | fi || ac_status=$? | |
1672 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b58b6ee1 DJ |
1673 | done |
1674 | fi | |
1675 | ||
efd58f08 | 1676 | test -n "$ac_init_help" && exit $ac_status |
b58b6ee1 DJ |
1677 | if $ac_init_version; then |
1678 | cat <<\_ACEOF | |
efd58f08 RW |
1679 | configure |
1680 | generated by GNU Autoconf 2.64 | |
b58b6ee1 | 1681 | |
efd58f08 | 1682 | Copyright (C) 2009 Free Software Foundation, Inc. |
b58b6ee1 DJ |
1683 | This configure script is free software; the Free Software Foundation |
1684 | gives unlimited permission to copy, distribute and modify it. | |
1685 | _ACEOF | |
efd58f08 | 1686 | exit |
b58b6ee1 | 1687 | fi |
efd58f08 RW |
1688 | |
1689 | ## ------------------------ ## | |
1690 | ## Autoconf initialization. ## | |
1691 | ## ------------------------ ## | |
1692 | ||
1693 | # ac_fn_c_try_compile LINENO | |
1694 | # -------------------------- | |
1695 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1696 | ac_fn_c_try_compile () | |
1697 | { | |
1698 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1699 | rm -f conftest.$ac_objext | |
1700 | if { { ac_try="$ac_compile" | |
1701 | case "(($ac_try" in | |
1702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1703 | *) ac_try_echo=$ac_try;; | |
1704 | esac | |
1705 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1706 | $as_echo "$ac_try_echo"; } >&5 | |
1707 | (eval "$ac_compile") 2>conftest.err | |
1708 | ac_status=$? | |
1709 | if test -s conftest.err; then | |
1710 | grep -v '^ *+' conftest.err >conftest.er1 | |
1711 | cat conftest.er1 >&5 | |
1712 | mv -f conftest.er1 conftest.err | |
1713 | fi | |
1714 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1715 | test $ac_status = 0; } && { | |
1716 | test -z "$ac_c_werror_flag" || | |
1717 | test ! -s conftest.err | |
1718 | } && test -s conftest.$ac_objext; then : | |
1719 | ac_retval=0 | |
1720 | else | |
1721 | $as_echo "$as_me: failed program was:" >&5 | |
1722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1723 | ||
1724 | ac_retval=1 | |
1725 | fi | |
1726 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1727 | return $ac_retval | |
1728 | ||
1729 | } # ac_fn_c_try_compile | |
1730 | ||
1731 | # ac_fn_cxx_try_compile LINENO | |
1732 | # ---------------------------- | |
1733 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1734 | ac_fn_cxx_try_compile () | |
1735 | { | |
1736 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1737 | rm -f conftest.$ac_objext | |
1738 | if { { ac_try="$ac_compile" | |
1739 | case "(($ac_try" in | |
1740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1741 | *) ac_try_echo=$ac_try;; | |
1742 | esac | |
1743 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1744 | $as_echo "$ac_try_echo"; } >&5 | |
1745 | (eval "$ac_compile") 2>conftest.err | |
1746 | ac_status=$? | |
1747 | if test -s conftest.err; then | |
1748 | grep -v '^ *+' conftest.err >conftest.er1 | |
1749 | cat conftest.er1 >&5 | |
1750 | mv -f conftest.er1 conftest.err | |
1751 | fi | |
1752 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1753 | test $ac_status = 0; } && { | |
1754 | test -z "$ac_cxx_werror_flag" || | |
1755 | test ! -s conftest.err | |
1756 | } && test -s conftest.$ac_objext; then : | |
1757 | ac_retval=0 | |
1758 | else | |
1759 | $as_echo "$as_me: failed program was:" >&5 | |
1760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1761 | ||
1762 | ac_retval=1 | |
1763 | fi | |
1764 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1765 | return $ac_retval | |
1766 | ||
1767 | } # ac_fn_cxx_try_compile | |
1768 | ||
1769 | # ac_fn_c_try_link LINENO | |
1770 | # ----------------------- | |
1771 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1772 | ac_fn_c_try_link () | |
1773 | { | |
1774 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1775 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1776 | if { { ac_try="$ac_link" | |
1777 | case "(($ac_try" in | |
1778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1779 | *) ac_try_echo=$ac_try;; | |
1780 | esac | |
1781 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1782 | $as_echo "$ac_try_echo"; } >&5 | |
1783 | (eval "$ac_link") 2>conftest.err | |
1784 | ac_status=$? | |
1785 | if test -s conftest.err; then | |
1786 | grep -v '^ *+' conftest.err >conftest.er1 | |
1787 | cat conftest.er1 >&5 | |
1788 | mv -f conftest.er1 conftest.err | |
1789 | fi | |
1790 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1791 | test $ac_status = 0; } && { | |
1792 | test -z "$ac_c_werror_flag" || | |
1793 | test ! -s conftest.err | |
1794 | } && test -s conftest$ac_exeext && { | |
1795 | test "$cross_compiling" = yes || | |
1796 | $as_test_x conftest$ac_exeext | |
1797 | }; then : | |
1798 | ac_retval=0 | |
1799 | else | |
1800 | $as_echo "$as_me: failed program was:" >&5 | |
1801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1802 | ||
1803 | ac_retval=1 | |
1804 | fi | |
1805 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1806 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1807 | # interfere with the next link command; also delete a directory that is | |
1808 | # left behind by Apple's compiler. We do this before executing the actions. | |
1809 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1810 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1811 | return $ac_retval | |
1812 | ||
1813 | } # ac_fn_c_try_link | |
a626f4ee L |
1814 | |
1815 | # ac_fn_c_try_run LINENO | |
1816 | # ---------------------- | |
1817 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1818 | # that executables *can* be run. | |
1819 | ac_fn_c_try_run () | |
1820 | { | |
1821 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1822 | if { { ac_try="$ac_link" | |
1823 | case "(($ac_try" in | |
1824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1825 | *) ac_try_echo=$ac_try;; | |
1826 | esac | |
1827 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1828 | $as_echo "$ac_try_echo"; } >&5 | |
1829 | (eval "$ac_link") 2>&5 | |
1830 | ac_status=$? | |
1831 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1832 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1833 | { { case "(($ac_try" in | |
1834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1835 | *) ac_try_echo=$ac_try;; | |
1836 | esac | |
1837 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1838 | $as_echo "$ac_try_echo"; } >&5 | |
1839 | (eval "$ac_try") 2>&5 | |
1840 | ac_status=$? | |
1841 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1842 | test $ac_status = 0; }; }; then : | |
1843 | ac_retval=0 | |
1844 | else | |
1845 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1846 | $as_echo "$as_me: failed program was:" >&5 | |
1847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1848 | ||
1849 | ac_retval=$ac_status | |
1850 | fi | |
1851 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1852 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1853 | return $ac_retval | |
1854 | ||
1855 | } # ac_fn_c_try_run | |
efd58f08 | 1856 | cat >config.log <<_ACEOF |
b58b6ee1 DJ |
1857 | This file contains any messages produced by compilers while |
1858 | running configure, to aid debugging if configure makes a mistake. | |
1859 | ||
1860 | It was created by $as_me, which was | |
efd58f08 | 1861 | generated by GNU Autoconf 2.64. Invocation command line was |
b58b6ee1 DJ |
1862 | |
1863 | $ $0 $@ | |
1864 | ||
1865 | _ACEOF | |
efd58f08 | 1866 | exec 5>>config.log |
b58b6ee1 DJ |
1867 | { |
1868 | cat <<_ASUNAME | |
1869 | ## --------- ## | |
1870 | ## Platform. ## | |
1871 | ## --------- ## | |
1872 | ||
1873 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1874 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1875 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1876 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1877 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1878 | ||
1879 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1880 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1881 | ||
1882 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1883 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1884 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
efd58f08 | 1885 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
b58b6ee1 DJ |
1886 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1887 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1888 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1889 | ||
1890 | _ASUNAME | |
1891 | ||
1892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1893 | for as_dir in $PATH | |
1894 | do | |
1895 | IFS=$as_save_IFS | |
1896 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
1897 | $as_echo "PATH: $as_dir" |
1898 | done | |
1899 | IFS=$as_save_IFS | |
b58b6ee1 DJ |
1900 | |
1901 | } >&5 | |
1902 | ||
1903 | cat >&5 <<_ACEOF | |
1904 | ||
1905 | ||
1906 | ## ----------- ## | |
1907 | ## Core tests. ## | |
1908 | ## ----------- ## | |
1909 | ||
1910 | _ACEOF | |
1911 | ||
1912 | ||
1913 | # Keep a trace of the command line. | |
1914 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1915 | # Strip out --silent because we don't want to record it for future runs. | |
1916 | # Also quote any args containing shell meta-characters. | |
1917 | # Make two passes to allow for proper duplicate-argument suppression. | |
1918 | ac_configure_args= | |
1919 | ac_configure_args0= | |
1920 | ac_configure_args1= | |
b58b6ee1 DJ |
1921 | ac_must_keep_next=false |
1922 | for ac_pass in 1 2 | |
1923 | do | |
1924 | for ac_arg | |
1925 | do | |
1926 | case $ac_arg in | |
1927 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1928 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1929 | | -silent | --silent | --silen | --sile | --sil) | |
1930 | continue ;; | |
efd58f08 RW |
1931 | *\'*) |
1932 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b58b6ee1 DJ |
1933 | esac |
1934 | case $ac_pass in | |
efd58f08 | 1935 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b58b6ee1 | 1936 | 2) |
efd58f08 | 1937 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b58b6ee1 DJ |
1938 | if test $ac_must_keep_next = true; then |
1939 | ac_must_keep_next=false # Got value, back to normal. | |
1940 | else | |
1941 | case $ac_arg in | |
1942 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1943 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1944 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1945 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1946 | case "$ac_configure_args0 " in | |
1947 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1948 | esac | |
1949 | ;; | |
1950 | -* ) ac_must_keep_next=true ;; | |
1951 | esac | |
1952 | fi | |
efd58f08 | 1953 | as_fn_append ac_configure_args " '$ac_arg'" |
b58b6ee1 DJ |
1954 | ;; |
1955 | esac | |
1956 | done | |
1957 | done | |
efd58f08 RW |
1958 | { ac_configure_args0=; unset ac_configure_args0;} |
1959 | { ac_configure_args1=; unset ac_configure_args1;} | |
b58b6ee1 DJ |
1960 | |
1961 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1962 | # config.log. We remove comments because anyway the quotes in there | |
1963 | # would cause problems or look ugly. | |
efd58f08 RW |
1964 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1965 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b58b6ee1 DJ |
1966 | trap 'exit_status=$? |
1967 | # Save into config.log some information that might help in debugging. | |
1968 | { | |
1969 | echo | |
1970 | ||
1971 | cat <<\_ASBOX | |
1972 | ## ---------------- ## | |
1973 | ## Cache variables. ## | |
1974 | ## ---------------- ## | |
1975 | _ASBOX | |
1976 | echo | |
1977 | # The following way of writing the cache mishandles newlines in values, | |
efd58f08 RW |
1978 | ( |
1979 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1980 | eval ac_val=\$$ac_var | |
1981 | case $ac_val in #( | |
1982 | *${as_nl}*) | |
1983 | case $ac_var in #( | |
1984 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1985 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1986 | esac | |
1987 | case $ac_var in #( | |
1988 | _ | IFS | as_nl) ;; #( | |
1989 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1990 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1991 | esac ;; | |
1992 | esac | |
1993 | done | |
b58b6ee1 | 1994 | (set) 2>&1 | |
efd58f08 RW |
1995 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1996 | *${as_nl}ac_space=\ *) | |
b58b6ee1 | 1997 | sed -n \ |
efd58f08 RW |
1998 | "s/'\''/'\''\\\\'\'''\''/g; |
1999 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2000 | ;; #( | |
b58b6ee1 | 2001 | *) |
efd58f08 | 2002 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b58b6ee1 | 2003 | ;; |
efd58f08 RW |
2004 | esac | |
2005 | sort | |
2006 | ) | |
b58b6ee1 DJ |
2007 | echo |
2008 | ||
2009 | cat <<\_ASBOX | |
2010 | ## ----------------- ## | |
2011 | ## Output variables. ## | |
2012 | ## ----------------- ## | |
2013 | _ASBOX | |
2014 | echo | |
2015 | for ac_var in $ac_subst_vars | |
2016 | do | |
efd58f08 RW |
2017 | eval ac_val=\$$ac_var |
2018 | case $ac_val in | |
2019 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2020 | esac | |
2021 | $as_echo "$ac_var='\''$ac_val'\''" | |
b58b6ee1 DJ |
2022 | done | sort |
2023 | echo | |
2024 | ||
2025 | if test -n "$ac_subst_files"; then | |
2026 | cat <<\_ASBOX | |
efd58f08 RW |
2027 | ## ------------------- ## |
2028 | ## File substitutions. ## | |
2029 | ## ------------------- ## | |
b58b6ee1 DJ |
2030 | _ASBOX |
2031 | echo | |
2032 | for ac_var in $ac_subst_files | |
2033 | do | |
efd58f08 RW |
2034 | eval ac_val=\$$ac_var |
2035 | case $ac_val in | |
2036 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2037 | esac | |
2038 | $as_echo "$ac_var='\''$ac_val'\''" | |
b58b6ee1 DJ |
2039 | done | sort |
2040 | echo | |
2041 | fi | |
2042 | ||
2043 | if test -s confdefs.h; then | |
2044 | cat <<\_ASBOX | |
2045 | ## ----------- ## | |
2046 | ## confdefs.h. ## | |
2047 | ## ----------- ## | |
2048 | _ASBOX | |
2049 | echo | |
efd58f08 | 2050 | cat confdefs.h |
b58b6ee1 DJ |
2051 | echo |
2052 | fi | |
2053 | test "$ac_signal" != 0 && | |
efd58f08 RW |
2054 | $as_echo "$as_me: caught signal $ac_signal" |
2055 | $as_echo "$as_me: exit $exit_status" | |
b58b6ee1 | 2056 | } >&5 |
efd58f08 RW |
2057 | rm -f core *.core core.conftest.* && |
2058 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b58b6ee1 | 2059 | exit $exit_status |
efd58f08 | 2060 | ' 0 |
b58b6ee1 | 2061 | for ac_signal in 1 2 13 15; do |
efd58f08 | 2062 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b58b6ee1 DJ |
2063 | done |
2064 | ac_signal=0 | |
2065 | ||
2066 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
efd58f08 RW |
2067 | rm -f -r conftest* confdefs.h |
2068 | ||
2069 | $as_echo "/* confdefs.h */" > confdefs.h | |
b58b6ee1 DJ |
2070 | |
2071 | # Predefined preprocessor variables. | |
2072 | ||
2073 | cat >>confdefs.h <<_ACEOF | |
2074 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2075 | _ACEOF | |
2076 | ||
b58b6ee1 DJ |
2077 | cat >>confdefs.h <<_ACEOF |
2078 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2079 | _ACEOF | |
2080 | ||
b58b6ee1 DJ |
2081 | cat >>confdefs.h <<_ACEOF |
2082 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2083 | _ACEOF | |
2084 | ||
b58b6ee1 DJ |
2085 | cat >>confdefs.h <<_ACEOF |
2086 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2087 | _ACEOF | |
2088 | ||
b58b6ee1 DJ |
2089 | cat >>confdefs.h <<_ACEOF |
2090 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2091 | _ACEOF | |
2092 | ||
efd58f08 RW |
2093 | cat >>confdefs.h <<_ACEOF |
2094 | #define PACKAGE_URL "$PACKAGE_URL" | |
2095 | _ACEOF | |
2096 | ||
b58b6ee1 DJ |
2097 | |
2098 | # Let the site file select an alternate cache file if it wants to. | |
efd58f08 RW |
2099 | # Prefer an explicitly selected file to automatically selected ones. |
2100 | ac_site_file1=NONE | |
2101 | ac_site_file2=NONE | |
2102 | if test -n "$CONFIG_SITE"; then | |
2103 | ac_site_file1=$CONFIG_SITE | |
2104 | elif test "x$prefix" != xNONE; then | |
2105 | ac_site_file1=$prefix/share/config.site | |
2106 | ac_site_file2=$prefix/etc/config.site | |
2107 | else | |
2108 | ac_site_file1=$ac_default_prefix/share/config.site | |
2109 | ac_site_file2=$ac_default_prefix/etc/config.site | |
bafecfd6 | 2110 | fi |
efd58f08 RW |
2111 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2112 | do | |
2113 | test "x$ac_site_file" = xNONE && continue | |
bafecfd6 | 2114 | if test -r "$ac_site_file"; then |
efd58f08 RW |
2115 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2116 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b58b6ee1 | 2117 | sed 's/^/| /' "$ac_site_file" >&5 |
bafecfd6 NN |
2118 | . "$ac_site_file" |
2119 | fi | |
2120 | done | |
2121 | ||
2122 | if test -r "$cache_file"; then | |
b58b6ee1 DJ |
2123 | # Some versions of bash will fail to source /dev/null (special |
2124 | # files actually), so we avoid doing that. | |
2125 | if test -f "$cache_file"; then | |
efd58f08 RW |
2126 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2127 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b58b6ee1 | 2128 | case $cache_file in |
efd58f08 RW |
2129 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2130 | *) . "./$cache_file";; | |
b58b6ee1 DJ |
2131 | esac |
2132 | fi | |
bafecfd6 | 2133 | else |
efd58f08 RW |
2134 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2135 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b58b6ee1 DJ |
2136 | >$cache_file |
2137 | fi | |
2138 | ||
2139 | # Check that the precious variables saved in the cache have kept the same | |
2140 | # value. | |
2141 | ac_cache_corrupted=false | |
efd58f08 | 2142 | for ac_var in $ac_precious_vars; do |
b58b6ee1 DJ |
2143 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2144 | eval ac_new_set=\$ac_env_${ac_var}_set | |
efd58f08 RW |
2145 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2146 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b58b6ee1 DJ |
2147 | case $ac_old_set,$ac_new_set in |
2148 | set,) | |
efd58f08 RW |
2149 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2150 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b58b6ee1 DJ |
2151 | ac_cache_corrupted=: ;; |
2152 | ,set) | |
efd58f08 RW |
2153 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2154 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b58b6ee1 DJ |
2155 | ac_cache_corrupted=: ;; |
2156 | ,);; | |
2157 | *) | |
2158 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
efd58f08 RW |
2159 | # differences in whitespace do not lead to failure. |
2160 | ac_old_val_w=`echo x $ac_old_val` | |
2161 | ac_new_val_w=`echo x $ac_new_val` | |
2162 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2163 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2164 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2165 | ac_cache_corrupted=: | |
2166 | else | |
2167 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2168 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2169 | eval $ac_var=\$ac_old_val | |
2170 | fi | |
2171 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2172 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2173 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2174 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b58b6ee1 DJ |
2175 | fi;; |
2176 | esac | |
2177 | # Pass precious variables to config.status. | |
2178 | if test "$ac_new_set" = set; then | |
2179 | case $ac_new_val in | |
efd58f08 | 2180 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b58b6ee1 DJ |
2181 | *) ac_arg=$ac_var=$ac_new_val ;; |
2182 | esac | |
2183 | case " $ac_configure_args " in | |
2184 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
efd58f08 | 2185 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b58b6ee1 DJ |
2186 | esac |
2187 | fi | |
2188 | done | |
2189 | if $ac_cache_corrupted; then | |
efd58f08 RW |
2190 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2191 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2192 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2193 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2194 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
bafecfd6 | 2195 | fi |
efd58f08 RW |
2196 | ## -------------------- ## |
2197 | ## Main body of script. ## | |
2198 | ## -------------------- ## | |
bafecfd6 NN |
2199 | |
2200 | ac_ext=c | |
bafecfd6 | 2201 | ac_cpp='$CPP $CPPFLAGS' |
b58b6ee1 DJ |
2202 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2203 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2204 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2205 | ||
2206 | ||
2207 | ||
2208 | ||
b58b6ee1 DJ |
2209 | |
2210 | ||
5546e07b | 2211 | |
b58b6ee1 | 2212 | |
00f8aa9c RW |
2213 | |
2214 | progname=$0 | |
2215 | # if PWD already has a value, it is probably wrong. | |
2216 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2217 | ||
2218 | # Export original configure arguments for use by sub-configures. | |
2219 | # Quote arguments with shell meta charatcers. | |
2220 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2221 | set -- "$progname" "$@" | |
2222 | for ac_arg | |
2223 | do | |
2224 | case "$ac_arg" in | |
2225 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2226 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2227 | # if the argument is of the form -foo=baz, quote the baz part only | |
2228 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2229 | *) ;; | |
2230 | esac | |
2231 | # Add the quoted argument to the list. | |
2232 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2233 | done | |
2234 | if test "$silent" = yes; then | |
2235 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2236 | fi | |
2237 | # Remove the initial space we just introduced and, as these will be | |
2238 | # expanded by make, quote '$'. | |
2239 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2240 | ||
b58b6ee1 DJ |
2241 | |
2242 | # Find the build, host, and target systems. | |
bafecfd6 | 2243 | ac_aux_dir= |
efd58f08 RW |
2244 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2245 | for ac_t in install-sh install.sh shtool; do | |
2246 | if test -f "$ac_dir/$ac_t"; then | |
2247 | ac_aux_dir=$ac_dir | |
2248 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2249 | break 2 | |
2250 | fi | |
2251 | done | |
bafecfd6 NN |
2252 | done |
2253 | if test -z "$ac_aux_dir"; then | |
efd58f08 | 2254 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
bafecfd6 | 2255 | fi |
efd58f08 RW |
2256 | |
2257 | # These three variables are undocumented and unsupported, | |
2258 | # and are intended to be withdrawn in a future Autoconf release. | |
2259 | # They can cause serious problems if a builder's source tree is in a directory | |
2260 | # whose full name contains unusual characters. | |
2261 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2262 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2263 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2264 | ||
bafecfd6 | 2265 | |
b58b6ee1 | 2266 | # Make sure we can run config.sub. |
efd58f08 RW |
2267 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2268 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2269 | ||
2270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2271 | $as_echo_n "checking build system type... " >&6; } | |
2272 | if test "${ac_cv_build+set}" = set; then : | |
2273 | $as_echo_n "(cached) " >&6 | |
2274 | else | |
2275 | ac_build_alias=$build_alias | |
2276 | test "x$ac_build_alias" = x && | |
2277 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2278 | test "x$ac_build_alias" = x && | |
2279 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2280 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2281 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2282 | ||
2283 | fi | |
2284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2285 | $as_echo "$ac_cv_build" >&6; } | |
2286 | case $ac_cv_build in | |
2287 | *-*-*) ;; | |
2288 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2289 | esac | |
b58b6ee1 | 2290 | build=$ac_cv_build |
efd58f08 RW |
2291 | ac_save_IFS=$IFS; IFS='-' |
2292 | set x $ac_cv_build | |
2293 | shift | |
2294 | build_cpu=$1 | |
2295 | build_vendor=$2 | |
2296 | shift; shift | |
2297 | # Remember, the first character of IFS is used to create $*, | |
2298 | # except with old shells: | |
2299 | build_os=$* | |
2300 | IFS=$ac_save_IFS | |
2301 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
bafecfd6 | 2302 | |
bafecfd6 | 2303 | |
b58b6ee1 DJ |
2304 | case ${build_alias} in |
2305 | "") build_noncanonical=${build} ;; | |
2306 | *) build_noncanonical=${build_alias} ;; | |
f69e2532 CM |
2307 | esac |
2308 | ||
2309 | ||
f69e2532 | 2310 | |
b58b6ee1 DJ |
2311 | case ${host_alias} in |
2312 | "") host_noncanonical=${build_noncanonical} ;; | |
2313 | *) host_noncanonical=${host_alias} ;; | |
f69e2532 CM |
2314 | esac |
2315 | ||
f69e2532 | 2316 | |
b58b6ee1 DJ |
2317 | |
2318 | case ${target_alias} in | |
2319 | "") target_noncanonical=${host_noncanonical} ;; | |
2320 | *) target_noncanonical=${target_alias} ;; | |
f69e2532 CM |
2321 | esac |
2322 | ||
f69e2532 | 2323 | |
b58b6ee1 DJ |
2324 | |
2325 | ||
2326 | test "$host_noncanonical" = "$target_noncanonical" && | |
bafecfd6 NN |
2327 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2328 | NONENONEs,x,x, && | |
b58b6ee1 | 2329 | program_transform_name=s,y,y, |
f69e2532 | 2330 | |
efd58f08 RW |
2331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2332 | $as_echo_n "checking host system type... " >&6; } | |
2333 | if test "${ac_cv_host+set}" = set; then : | |
2334 | $as_echo_n "(cached) " >&6 | |
f69e2532 | 2335 | else |
efd58f08 RW |
2336 | if test "x$host_alias" = x; then |
2337 | ac_cv_host=$ac_cv_build | |
2338 | else | |
2339 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2340 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2341 | fi | |
b58b6ee1 DJ |
2342 | |
2343 | fi | |
efd58f08 RW |
2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2345 | $as_echo "$ac_cv_host" >&6; } | |
2346 | case $ac_cv_host in | |
2347 | *-*-*) ;; | |
2348 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2349 | esac | |
b58b6ee1 | 2350 | host=$ac_cv_host |
efd58f08 RW |
2351 | ac_save_IFS=$IFS; IFS='-' |
2352 | set x $ac_cv_host | |
2353 | shift | |
2354 | host_cpu=$1 | |
2355 | host_vendor=$2 | |
2356 | shift; shift | |
2357 | # Remember, the first character of IFS is used to create $*, | |
2358 | # except with old shells: | |
2359 | host_os=$* | |
2360 | IFS=$ac_save_IFS | |
2361 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
b58b6ee1 DJ |
2362 | |
2363 | ||
efd58f08 RW |
2364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2365 | $as_echo_n "checking target system type... " >&6; } | |
2366 | if test "${ac_cv_target+set}" = set; then : | |
2367 | $as_echo_n "(cached) " >&6 | |
b58b6ee1 | 2368 | else |
efd58f08 RW |
2369 | if test "x$target_alias" = x; then |
2370 | ac_cv_target=$ac_cv_host | |
2371 | else | |
2372 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2373 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2374 | fi | |
b58b6ee1 | 2375 | |
f69e2532 | 2376 | fi |
efd58f08 RW |
2377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2378 | $as_echo "$ac_cv_target" >&6; } | |
2379 | case $ac_cv_target in | |
2380 | *-*-*) ;; | |
2381 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2382 | esac | |
b58b6ee1 | 2383 | target=$ac_cv_target |
efd58f08 RW |
2384 | ac_save_IFS=$IFS; IFS='-' |
2385 | set x $ac_cv_target | |
2386 | shift | |
2387 | target_cpu=$1 | |
2388 | target_vendor=$2 | |
2389 | shift; shift | |
2390 | # Remember, the first character of IFS is used to create $*, | |
2391 | # except with old shells: | |
2392 | target_os=$* | |
2393 | IFS=$ac_save_IFS | |
2394 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
b58b6ee1 DJ |
2395 | |
2396 | ||
2397 | # The aliases save the names the user supplied, while $host etc. | |
2398 | # will get canonicalized. | |
2399 | test -n "$target_alias" && | |
2400 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2401 | NONENONEs,x,x, && | |
2402 | program_prefix=${target_alias}- | |
efd58f08 | 2403 | |
bafecfd6 | 2404 | test "$program_prefix" != NONE && |
efd58f08 | 2405 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bafecfd6 NN |
2406 | # Use a double $ so make ignores it. |
2407 | test "$program_suffix" != NONE && | |
efd58f08 RW |
2408 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2409 | # Double any \ or $. | |
b58b6ee1 | 2410 | # By default was `s,x,x', remove it if useless. |
efd58f08 RW |
2411 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2412 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
f69e2532 | 2413 | |
bafecfd6 NN |
2414 | |
2415 | ||
282c0e47 NN |
2416 | # Get 'install' or 'install-sh' and its variants. |
2417 | # Find a good install program. We prefer a C program (faster), | |
2418 | # so one script is as good as another. But avoid the broken or | |
2419 | # incompatible versions: | |
2420 | # SysV /etc/install, /usr/sbin/install | |
2421 | # SunOS /usr/etc/install | |
2422 | # IRIX /sbin/install | |
2423 | # AIX /bin/install | |
b58b6ee1 | 2424 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
282c0e47 NN |
2425 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2426 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2427 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
b58b6ee1 | 2428 | # OS/2's system install, which has a completely different semantic |
282c0e47 | 2429 | # ./install, which can be erroneously created by make from ./install.sh. |
e30fd60f | 2430 | # Reject install programs that cannot install multiple files. |
efd58f08 RW |
2431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2432 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
282c0e47 | 2433 | if test -z "$INSTALL"; then |
efd58f08 RW |
2434 | if test "${ac_cv_path_install+set}" = set; then : |
2435 | $as_echo_n "(cached) " >&6 | |
b58b6ee1 DJ |
2436 | else |
2437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2438 | for as_dir in $PATH | |
2439 | do | |
2440 | IFS=$as_save_IFS | |
2441 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
2442 | # Account for people who put trailing slashes in PATH elements. |
2443 | case $as_dir/ in #(( | |
2444 | ./ | .// | /[cC]/* | \ | |
b58b6ee1 | 2445 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
efd58f08 | 2446 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
b58b6ee1 DJ |
2447 | /usr/ucb/* ) ;; |
2448 | *) | |
2449 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2450 | # Don't use installbsd from OSF since it installs stuff as root | |
2451 | # by default. | |
2452 | for ac_prog in ginstall scoinst install; do | |
2453 | for ac_exec_ext in '' $ac_executable_extensions; do | |
efd58f08 | 2454 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
282c0e47 | 2455 | if test $ac_prog = install && |
b58b6ee1 | 2456 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
282c0e47 NN |
2457 | # AIX install. It has an incompatible calling convention. |
2458 | : | |
b58b6ee1 DJ |
2459 | elif test $ac_prog = install && |
2460 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2461 | # program-specific install script used by HP pwplus--don't use. | |
2462 | : | |
282c0e47 | 2463 | else |
e30fd60f RW |
2464 | rm -rf conftest.one conftest.two conftest.dir |
2465 | echo one > conftest.one | |
2466 | echo two > conftest.two | |
2467 | mkdir conftest.dir | |
2468 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2469 | test -s conftest.one && test -s conftest.two && | |
2470 | test -s conftest.dir/conftest.one && | |
2471 | test -s conftest.dir/conftest.two | |
2472 | then | |
2473 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2474 | break 3 | |
2475 | fi | |
282c0e47 NN |
2476 | fi |
2477 | fi | |
2478 | done | |
b58b6ee1 DJ |
2479 | done |
2480 | ;; | |
2481 | esac | |
efd58f08 RW |
2482 | |
2483 | done | |
2484 | IFS=$as_save_IFS | |
b58b6ee1 | 2485 | |
e30fd60f | 2486 | rm -rf conftest.one conftest.two conftest.dir |
282c0e47 NN |
2487 | |
2488 | fi | |
2489 | if test "${ac_cv_path_install+set}" = set; then | |
b58b6ee1 | 2490 | INSTALL=$ac_cv_path_install |
282c0e47 | 2491 | else |
e30fd60f RW |
2492 | # As a last resort, use the slow shell script. Don't cache a |
2493 | # value for INSTALL within a source directory, because that will | |
282c0e47 | 2494 | # break other packages using the cache if that directory is |
e30fd60f | 2495 | # removed, or if the value is a relative name. |
b58b6ee1 | 2496 | INSTALL=$ac_install_sh |
282c0e47 NN |
2497 | fi |
2498 | fi | |
efd58f08 RW |
2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2500 | $as_echo "$INSTALL" >&6; } | |
282c0e47 NN |
2501 | |
2502 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2503 | # It thinks the first close brace ends the variable substitution. | |
2504 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2505 | ||
b58b6ee1 | 2506 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
282c0e47 NN |
2507 | |
2508 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2509 | ||
efd58f08 RW |
2510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2511 | $as_echo_n "checking whether ln works... " >&6; } | |
2512 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2513 | $as_echo_n "(cached) " >&6 | |
21ff191e PB |
2514 | else |
2515 | rm -f conftestdata_t | |
2516 | echo >conftestdata_f | |
2517 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2518 | then | |
2519 | acx_cv_prog_LN=ln | |
2520 | else | |
2521 | acx_cv_prog_LN=no | |
2522 | fi | |
2523 | rm -f conftestdata_f conftestdata_t | |
2524 | ||
2525 | fi | |
2526 | if test $acx_cv_prog_LN = no; then | |
2527 | LN="cp" | |
efd58f08 RW |
2528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2529 | $as_echo "no, using $LN" >&6; } | |
21ff191e PB |
2530 | else |
2531 | LN="$acx_cv_prog_LN" | |
efd58f08 RW |
2532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2533 | $as_echo "yes" >&6; } | |
21ff191e PB |
2534 | fi |
2535 | ||
efd58f08 RW |
2536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2537 | $as_echo_n "checking whether ln -s works... " >&6; } | |
b58b6ee1 DJ |
2538 | LN_S=$as_ln_s |
2539 | if test "$LN_S" = "ln -s"; then | |
efd58f08 RW |
2540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2541 | $as_echo "yes" >&6; } | |
f69e2532 | 2542 | else |
efd58f08 RW |
2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2544 | $as_echo "no, using $LN_S" >&6; } | |
35269421 PB |
2545 | fi |
2546 | ||
a8a01987 PB |
2547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2548 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2549 | if test "${ac_cv_path_SED+set}" = set; then : | |
2550 | $as_echo_n "(cached) " >&6 | |
2551 | else | |
2552 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2553 | for ac_i in 1 2 3 4 5 6 7; do | |
2554 | ac_script="$ac_script$as_nl$ac_script" | |
2555 | done | |
2556 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2557 | { ac_script=; unset ac_script;} | |
2558 | if test -z "$SED"; then | |
2559 | ac_path_SED_found=false | |
2560 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2562 | for as_dir in $PATH | |
2563 | do | |
2564 | IFS=$as_save_IFS | |
2565 | test -z "$as_dir" && as_dir=. | |
2566 | for ac_prog in sed gsed; do | |
2567 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2568 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2569 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2570 | # Check for GNU ac_path_SED and select it if it is found. | |
2571 | # Check for GNU $ac_path_SED | |
2572 | case `"$ac_path_SED" --version 2>&1` in | |
2573 | *GNU*) | |
2574 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2575 | *) | |
2576 | ac_count=0 | |
2577 | $as_echo_n 0123456789 >"conftest.in" | |
2578 | while : | |
2579 | do | |
2580 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2581 | mv "conftest.tmp" "conftest.in" | |
2582 | cp "conftest.in" "conftest.nl" | |
2583 | $as_echo '' >> "conftest.nl" | |
2584 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2585 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2586 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2587 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2588 | # Best one so far, save it but keep looking for a better one | |
2589 | ac_cv_path_SED="$ac_path_SED" | |
2590 | ac_path_SED_max=$ac_count | |
2591 | fi | |
2592 | # 10*(2^10) chars as input seems more than enough | |
2593 | test $ac_count -gt 10 && break | |
2594 | done | |
2595 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2596 | esac | |
2597 | ||
2598 | $ac_path_SED_found && break 3 | |
2599 | done | |
2600 | done | |
2601 | done | |
2602 | IFS=$as_save_IFS | |
2603 | if test -z "$ac_cv_path_SED"; then | |
2604 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2605 | fi | |
2606 | else | |
2607 | ac_cv_path_SED=$SED | |
2608 | fi | |
2609 | ||
2610 | fi | |
2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2612 | $as_echo "$ac_cv_path_SED" >&6; } | |
2613 | SED="$ac_cv_path_SED" | |
2614 | rm -f conftest.sed | |
2615 | ||
2616 | for ac_prog in gawk mawk nawk awk | |
2617 | do | |
2618 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2619 | set dummy $ac_prog; ac_word=$2 | |
2620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2621 | $as_echo_n "checking for $ac_word... " >&6; } | |
2622 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2623 | $as_echo_n "(cached) " >&6 | |
2624 | else | |
2625 | if test -n "$AWK"; then | |
2626 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2627 | else | |
2628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2629 | for as_dir in $PATH | |
2630 | do | |
2631 | IFS=$as_save_IFS | |
2632 | test -z "$as_dir" && as_dir=. | |
2633 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2634 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2635 | ac_cv_prog_AWK="$ac_prog" | |
2636 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2637 | break 2 | |
2638 | fi | |
2639 | done | |
2640 | done | |
2641 | IFS=$as_save_IFS | |
2642 | ||
2643 | fi | |
2644 | fi | |
2645 | AWK=$ac_cv_prog_AWK | |
2646 | if test -n "$AWK"; then | |
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2648 | $as_echo "$AWK" >&6; } | |
2649 | else | |
2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2651 | $as_echo "no" >&6; } | |
2652 | fi | |
2653 | ||
2654 | ||
2655 | test -n "$AWK" && break | |
2656 | done | |
2657 | ||
282c0e47 | 2658 | |
714fa3b8 DJ |
2659 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2660 | ||
2661 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2662 | # a relative path. | |
2663 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2664 | INSTALL="${srcpwd}/install-sh -c" | |
2665 | fi | |
2666 | ||
bafecfd6 NN |
2667 | # Set srcdir to "." if that's what it is. |
2668 | # This is important for multilib support. | |
2669 | pwd=`${PWDCMD-pwd}` | |
bafecfd6 NN |
2670 | if test "${pwd}" = "${srcpwd}" ; then |
2671 | srcdir=. | |
a3acbf46 RH |
2672 | fi |
2673 | ||
bafecfd6 | 2674 | topsrcdir=$srcpwd |
a3acbf46 | 2675 | |
bafecfd6 | 2676 | extra_host_args= |
afdaeaab | 2677 | |
bafecfd6 NN |
2678 | ### To add a new directory to the tree, first choose whether it is a target |
2679 | ### or a host dependent tool. Then put it into the appropriate list | |
2680 | ### (library or tools, host or target), doing a dependency sort. | |
a3acbf46 | 2681 | |
b58b6ee1 | 2682 | # Subdirs will be configured in the order listed in build_configdirs, |
bafecfd6 | 2683 | # configdirs, or target_configdirs; see the serialization section below. |
a3acbf46 | 2684 | |
b58b6ee1 DJ |
2685 | # Dependency sorting is only needed when *configuration* must be done in |
2686 | # a particular order. In all cases a dependency should be specified in | |
bafecfd6 | 2687 | # the Makefile, whether or not it's implicitly specified here. |
a3acbf46 | 2688 | |
bafecfd6 NN |
2689 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2690 | # cause circular dependencies and break everything horribly. | |
a3acbf46 | 2691 | |
2cb47d68 PB |
2692 | # these library is used by various programs built for the build |
2693 | # environment | |
2694 | # | |
2695 | build_libs="build-libiberty" | |
2696 | ||
2697 | # these tools are built for the build environment | |
64196564 | 2698 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
2cb47d68 | 2699 | |
bafecfd6 NN |
2700 | # these libraries are used by various programs built for the host environment |
2701 | # | |
a626f4ee | 2702 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv" |
bafecfd6 | 2703 | |
bafecfd6 NN |
2704 | # these tools are built for the host environment |
2705 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2706 | # know that we are building the simulator. | |
2707 | # binutils, gas and ld appear in that order because it makes sense to run | |
2708 | # "make check" in that particular order. | |
32c2e09b | 2709 | # If --enable-gold is used, "gold" may replace "ld". |
64196564 | 2710 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools" |
bafecfd6 NN |
2711 | |
2712 | # libgcj represents the runtime libraries only used by gcj. | |
2713 | libgcj="target-libffi \ | |
bafecfd6 | 2714 | target-zlib \ |
bafecfd6 NN |
2715 | target-libjava" |
2716 | ||
2717 | # these libraries are built for the target environment, and are built after | |
2718 | # the host libraries and the host tools (which may be a cross compiler) | |
c9161585 | 2719 | # Note that libiberty is not a target library. |
1277a9a0 | 2720 | target_libraries="target-libgcc \ |
bafecfd6 NN |
2721 | target-libgloss \ |
2722 | target-newlib \ | |
a8c17d42 | 2723 | target-libgomp \ |
a626f4ee | 2724 | target-libatomic \ |
068a111a | 2725 | target-libitm \ |
76ab491a | 2726 | target-libstdc++-v3 \ |
cb2333e8 | 2727 | target-libmudflap \ |
2c193664 | 2728 | target-libssp \ |
d5b7129a | 2729 | target-libquadmath \ |
cb2333e8 | 2730 | target-libgfortran \ |
e1e5148c | 2731 | target-boehm-gc \ |
6f2480fb | 2732 | ${libgcj} \ |
d832a288 | 2733 | target-libobjc \ |
d5b7129a ILT |
2734 | target-libada \ |
2735 | target-libgo" | |
bafecfd6 | 2736 | |
5283b643 NN |
2737 | # these tools are built using the target libraries, and are intended to |
2738 | # run only in the target environment | |
bafecfd6 | 2739 | # |
5283b643 | 2740 | # note: any program that *uses* libraries that are in the "target_libraries" |
5b45e8c9 | 2741 | # list belongs in this list. |
bafecfd6 | 2742 | # |
64196564 | 2743 | target_tools="target-rda" |
a3acbf46 | 2744 | |
bafecfd6 | 2745 | ################################################################################ |
a3acbf46 | 2746 | |
bafecfd6 NN |
2747 | ## All tools belong in one of the four categories, and are assigned above |
2748 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2749 | ## is important because configure will choke if they ever get through. | |
2750 | ## ${configdirs} is directories we build using the host tools. | |
2751 | ## ${target_configdirs} is directories we build using the target tools. | |
bafecfd6 | 2752 | configdirs=`echo ${host_libs} ${host_tools}` |
5283b643 | 2753 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
607d4caf | 2754 | build_configdirs=`echo ${build_libs} ${build_tools}` |
9b520963 | 2755 | |
3fbb5e3d PB |
2756 | |
2757 | ||
bafecfd6 | 2758 | ################################################################################ |
a3acbf46 | 2759 | |
bafecfd6 | 2760 | srcname="gnu development package" |
a3acbf46 | 2761 | |
bafecfd6 NN |
2762 | # This gets set non-empty for some net releases of packages. |
2763 | appdirs="" | |
a3acbf46 | 2764 | |
bafecfd6 NN |
2765 | # Define is_cross_compiler to save on calls to 'test'. |
2766 | is_cross_compiler= | |
2767 | if test x"${host}" = x"${target}" ; then | |
2768 | is_cross_compiler=no | |
a3acbf46 | 2769 | else |
bafecfd6 | 2770 | is_cross_compiler=yes |
b58b6ee1 | 2771 | fi |
a3acbf46 | 2772 | |
df4b5a9c | 2773 | # Find the build and target subdir names. |
9b520963 | 2774 | |
3160f998 DJ |
2775 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2776 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2777 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2778 | # However, they still use the build modules, because the corresponding | |
2779 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2780 | # finishes. So: | |
2781 | # - build_subdir is where we find build modules, and never changes. | |
2782 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2783 | ||
2784 | # Prefix 'build-' so this never conflicts with target_subdir. | |
9b520963 | 2785 | build_subdir="build-${build_noncanonical}" |
b58b6ee1 | 2786 | |
efd58f08 RW |
2787 | # Check whether --with-build-libsubdir was given. |
2788 | if test "${with_build_libsubdir+set}" = set; then : | |
2789 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
3160f998 DJ |
2790 | else |
2791 | build_libsubdir="$build_subdir" | |
efd58f08 RW |
2792 | fi |
2793 | ||
7fc2ca22 PB |
2794 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2795 | if ( test $srcdir = . && test -d gcc ) \ | |
2796 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2797 | host_subdir="host-${host_noncanonical}" | |
2798 | else | |
2799 | host_subdir=. | |
2800 | fi | |
9b520963 NN |
2801 | # No prefix. |
2802 | target_subdir=${target_noncanonical} | |
b58b6ee1 | 2803 | |
8980b9ad RW |
2804 | # Be sure to cover against remnants of an in-tree build. |
2805 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2806 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2807 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2808 | fi | |
a3acbf46 | 2809 | |
bafecfd6 NN |
2810 | # Skipdirs are removed silently. |
2811 | skipdirs= | |
2812 | # Noconfigdirs are removed loudly. | |
2813 | noconfigdirs="" | |
a3acbf46 | 2814 | |
bafecfd6 NN |
2815 | use_gnu_ld= |
2816 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2817 | if test x$with_gnu_ld = xno ; then | |
2818 | use_gnu_ld=no | |
b916272a | 2819 | noconfigdirs="$noconfigdirs ld gold" |
a3acbf46 RH |
2820 | fi |
2821 | ||
bafecfd6 NN |
2822 | use_gnu_as= |
2823 | # Make sure we don't let GNU as be added if we didn't want it. | |
2824 | if test x$with_gnu_as = xno ; then | |
2825 | use_gnu_as=no | |
2826 | noconfigdirs="$noconfigdirs gas" | |
a3acbf46 RH |
2827 | fi |
2828 | ||
bd45d6fa ILT |
2829 | use_included_zlib= |
2830 | # Make sure we don't let ZLIB be added if we didn't want it. | |
2831 | if test x$with_system_zlib = xyes ; then | |
2832 | use_included_zlib=no | |
2833 | noconfigdirs="$noconfigdirs zlib" | |
2834 | fi | |
2835 | ||
b58b6ee1 | 2836 | # some tools are so dependent upon X11 that if we're not building with X, |
bafecfd6 | 2837 | # it's not even worth trying to configure, much less build, that tool. |
a3acbf46 | 2838 | |
bafecfd6 NN |
2839 | case ${with_x} in |
2840 | yes | "") ;; # the default value for this tree is that X11 is available | |
2841 | no) | |
44397772 | 2842 | skipdirs="${skipdirs} tk itcl libgui" |
bafecfd6 | 2843 | # We won't be able to build gdbtk without X. |
b58b6ee1 | 2844 | enable_gdbtk=no |
bafecfd6 NN |
2845 | ;; |
2846 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2847 | esac | |
a3acbf46 | 2848 | |
5b45e8c9 | 2849 | # Some are only suitable for cross toolchains. |
bafecfd6 NN |
2850 | # Remove these if host=target. |
2851 | cross_only="target-libgloss target-newlib target-opcodes" | |
2852 | ||
2853 | case $is_cross_compiler in | |
2854 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
bafecfd6 | 2855 | esac |
a3acbf46 | 2856 | |
bafecfd6 NN |
2857 | # If both --with-headers and --with-libs are specified, default to |
2858 | # --without-newlib. | |
09ebdaf7 RS |
2859 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2860 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
bafecfd6 NN |
2861 | if test x"${with_newlib}" = x ; then |
2862 | with_newlib=no | |
2863 | fi | |
a3acbf46 RH |
2864 | fi |
2865 | ||
bafecfd6 NN |
2866 | # Recognize --with-newlib/--without-newlib. |
2867 | case ${with_newlib} in | |
2868 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2869 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2870 | esac | |
a3acbf46 | 2871 | |
679e4c82 NC |
2872 | # Handle --enable-gold, --enable-ld. |
2873 | # --disable-gold [--enable-ld] | |
2874 | # Build only ld. Default option. | |
6805373e L |
2875 | # --enable-gold [--enable-ld] |
2876 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2877 | # as "ld.bfd" and "ld". | |
2878 | # --enable-gold=default [--enable-ld] | |
679e4c82 NC |
2879 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2880 | # install ld as "ld.bfd". | |
2881 | # --enable-gold[=default] --disable-ld | |
2882 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2883 | # --enable-gold --enable-ld=default | |
6805373e L |
2884 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2885 | # and ld.bfd). | |
679e4c82 NC |
2886 | # In other words, ld is default |
2887 | # --enable-gold=default --enable-ld=default | |
2888 | # Error. | |
2889 | ||
2890 | default_ld= | |
efd58f08 RW |
2891 | # Check whether --enable-gold was given. |
2892 | if test "${enable_gold+set}" = set; then : | |
2893 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
b916272a ILT |
2894 | else |
2895 | ENABLE_GOLD=no | |
efd58f08 RW |
2896 | fi |
2897 | ||
679e4c82 NC |
2898 | case "${ENABLE_GOLD}" in |
2899 | yes|default) | |
32c2e09b NC |
2900 | # Check for ELF target. |
2901 | is_elf=no | |
2902 | case "${target}" in | |
2903 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2904 | | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ | |
573c698a | 2905 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
a626f4ee | 2906 | | *-*-solaris2* | *-*-nto*) |
32c2e09b NC |
2907 | case "${target}" in |
2908 | *-*-linux*aout* | *-*-linux*oldld*) | |
2909 | ;; | |
2910 | *) | |
2911 | is_elf=yes | |
2912 | ;; | |
2913 | esac | |
2914 | esac | |
2915 | ||
2916 | if test "$is_elf" = "yes"; then | |
2917 | # Check for target supported by gold. | |
b916272a | 2918 | case "${target}" in |
32c2e09b | 2919 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*) |
679e4c82 NC |
2920 | configdirs="$configdirs gold" |
2921 | if test x${ENABLE_GOLD} = xdefault; then | |
2922 | default_ld=gold | |
2923 | fi | |
32c2e09b | 2924 | ENABLE_GOLD=yes |
b916272a ILT |
2925 | ;; |
2926 | esac | |
32c2e09b NC |
2927 | fi |
2928 | ;; | |
2929 | no) | |
2930 | ;; | |
2931 | *) | |
2932 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2933 | ;; | |
679e4c82 NC |
2934 | esac |
2935 | ||
2936 | # Check whether --enable-ld was given. | |
2937 | if test "${enable_ld+set}" = set; then : | |
2938 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2939 | else | |
2940 | ENABLE_LD=yes | |
2941 | fi | |
2942 | ||
2943 | ||
2944 | case "${ENABLE_LD}" in | |
2945 | default) | |
6805373e | 2946 | if test x${default_ld} != x; then |
679e4c82 NC |
2947 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
2948 | fi | |
2949 | ;; | |
2950 | yes) | |
2951 | ;; | |
2952 | no) | |
2953 | if test x${ENABLE_GOLD} != xyes; then | |
2954 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
2955 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
2956 | fi | |
2957 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
2958 | ;; | |
2959 | *) | |
2960 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
2961 | ;; | |
2962 | esac | |
b916272a | 2963 | |
bafecfd6 | 2964 | # Configure extra directories which are host specific |
a3acbf46 | 2965 | |
bafecfd6 NN |
2966 | case "${host}" in |
2967 | *-cygwin*) | |
2968 | configdirs="$configdirs libtermcap" ;; | |
2969 | esac | |
a3acbf46 | 2970 | |
aac893c5 HPN |
2971 | # A target can indicate whether a language isn't supported for some reason. |
2972 | # Only spaces may be used in this macro; not newlines or tabs. | |
2973 | unsupported_languages= | |
2974 | ||
b58b6ee1 | 2975 | # Remove more programs from consideration, based on the host or |
bafecfd6 NN |
2976 | # target this usually means that a port of the program doesn't |
2977 | # exist yet. | |
a3acbf46 | 2978 | |
bafecfd6 | 2979 | case "${host}" in |
4e55c4e3 | 2980 | i[3456789]86-*-msdosdjgpp*) |
44dabc08 | 2981 | noconfigdirs="$noconfigdirs tcl tk itcl" |
bafecfd6 | 2982 | ;; |
bafecfd6 | 2983 | esac |
a3acbf46 | 2984 | |
cb2333e8 | 2985 | |
d4b54911 PB |
2986 | # Check whether --enable-libquadmath was given. |
2987 | if test "${enable_libquadmath+set}" = set; then : | |
2988 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
2989 | else | |
2990 | ENABLE_LIBQUADMATH=yes | |
2991 | fi | |
2992 | ||
2993 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
2994 | noconfigdirs="$noconfigdirs target-libquadmath" | |
2995 | fi | |
2996 | ||
2997 | ||
2998 | # Check whether --enable-libquadmath-support was given. | |
2999 | if test "${enable_libquadmath_support+set}" = set; then : | |
3000 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3001 | else | |
3002 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3003 | fi | |
3004 | ||
3005 | enable_libquadmath_support= | |
3006 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3007 | enable_libquadmath_support=no | |
3008 | fi | |
3009 | ||
3010 | ||
efd58f08 RW |
3011 | # Check whether --enable-libada was given. |
3012 | if test "${enable_libada+set}" = set; then : | |
3013 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
d832a288 DD |
3014 | else |
3015 | ENABLE_LIBADA=yes | |
efd58f08 RW |
3016 | fi |
3017 | ||
d832a288 | 3018 | if test "${ENABLE_LIBADA}" != "yes" ; then |
7fc2ca22 | 3019 | noconfigdirs="$noconfigdirs gnattools" |
d832a288 DD |
3020 | fi |
3021 | ||
efd58f08 RW |
3022 | # Check whether --enable-libssp was given. |
3023 | if test "${enable_libssp+set}" = set; then : | |
3024 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
fa19ba07 KH |
3025 | else |
3026 | ENABLE_LIBSSP=yes | |
efd58f08 RW |
3027 | fi |
3028 | ||
fa19ba07 | 3029 | |
bafecfd6 NN |
3030 | # Save it here so that, even in case of --enable-libgcj, if the Java |
3031 | # front-end isn't enabled, we still get libgcj disabled. | |
3032 | libgcj_saved=$libgcj | |
3033 | case $enable_libgcj in | |
3034 | yes) | |
3035 | # If we reset it here, it won't get added to noconfigdirs in the | |
3036 | # target-specific build rules, so it will be forcibly enabled | |
3037 | # (unless the Java language itself isn't enabled). | |
3038 | libgcj= | |
3039 | ;; | |
3040 | no) | |
3041 | # Make sure we get it printed in the list of not supported target libs. | |
77a5d6cc ILT |
3042 | # Don't disable libffi, though, other languages use it. |
3043 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
8acbc359 ILT |
3044 | # Clear libgcj_saved so that even if java is enabled libffi won't be |
3045 | # built. | |
3046 | libgcj_saved= | |
bafecfd6 NN |
3047 | ;; |
3048 | esac | |
a3acbf46 | 3049 | |
c9161585 ILT |
3050 | # Check whether --enable-static-libjava was given. |
3051 | if test "${enable_static_libjava+set}" = set; then : | |
3052 | enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval | |
3053 | else | |
3054 | ENABLE_STATIC_LIBJAVA=no | |
3055 | fi | |
3056 | ||
3057 | enable_static_libjava= | |
3058 | if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then | |
3059 | enable_static_libjava=yes | |
3060 | fi | |
3061 | ||
3062 | if test x$enable_static_libjava != xyes ; then | |
3063 | EXTRA_CONFIGARGS_LIBJAVA=--disable-static | |
3064 | fi | |
3065 | ||
cb2333e8 | 3066 | |
f621a0dc PB |
3067 | # Disable libmudflap on some systems. |
3068 | if test x$enable_libmudflap = x ; then | |
96979a18 | 3069 | case "${target}" in |
9f8da9ce | 3070 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu) |
824cf273 | 3071 | # Enable libmudflap by default in GNU and friends. |
96979a18 PB |
3072 | ;; |
3073 | *-*-freebsd*) | |
3074 | # Enable libmudflap by default in FreeBSD. | |
3075 | ;; | |
3076 | *) | |
3077 | # Disable it by default everywhere else. | |
3078 | noconfigdirs="$noconfigdirs target-libmudflap" | |
3079 | ;; | |
3080 | esac | |
f621a0dc | 3081 | fi |
cb2333e8 | 3082 | |
f621a0dc PB |
3083 | # Disable libgomp on non POSIX hosted systems. |
3084 | if test x$enable_libgomp = x ; then | |
00bc9d7f PB |
3085 | # Enable libgomp by default on hosted POSIX systems. |
3086 | case "${target}" in | |
9f8da9ce | 3087 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
00bc9d7f | 3088 | ;; |
573c698a | 3089 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
00bc9d7f | 3090 | ;; |
d3f6480e | 3091 | *-*-solaris2* | *-*-hpux11*) |
00bc9d7f PB |
3092 | ;; |
3093 | *-*-darwin* | *-*-aix*) | |
3094 | ;; | |
3095 | *) | |
3096 | noconfigdirs="$noconfigdirs target-libgomp" | |
3097 | ;; | |
3098 | esac | |
f621a0dc | 3099 | fi |
00bc9d7f | 3100 | |
a626f4ee L |
3101 | # Disable libatomic on unsupported systems. |
3102 | if test -d ${srcdir}/libatomic; then | |
3103 | if test x$enable_libatomic = x; then | |
3104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3105 | $as_echo_n "checking for libatomic support... " >&6; } | |
3106 | if (srcdir=${srcdir}/libatomic; \ | |
3107 | . ${srcdir}/configure.tgt; \ | |
3108 | test -n "$UNSUPPORTED") | |
3109 | then | |
3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3111 | $as_echo "no" >&6; } | |
3112 | noconfigdirs="$noconfigdirs target-libatomic" | |
3113 | else | |
3114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3115 | $as_echo "yes" >&6; } | |
3116 | fi | |
3117 | fi | |
3118 | fi | |
3119 | ||
068a111a RH |
3120 | # Disable libitm on unsupported systems. |
3121 | if test -d ${srcdir}/libitm; then | |
3122 | if test x$enable_libitm = x; then | |
3123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3124 | $as_echo_n "checking for libitm support... " >&6; } | |
3125 | if (srcdir=${srcdir}/libitm; \ | |
3126 | . ${srcdir}/configure.tgt; \ | |
3127 | test -n "$UNSUPPORTED") | |
3128 | then | |
3129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3130 | $as_echo "no" >&6; } | |
3131 | noconfigdirs="$noconfigdirs target-libitm" | |
3132 | else | |
3133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3134 | $as_echo "yes" >&6; } | |
3135 | fi | |
3136 | fi | |
3137 | fi | |
3138 | ||
d36ed46d JM |
3139 | # Disable libssp for some systems. |
3140 | case "${target}" in | |
3141 | avr-*-*) | |
e974e7a0 | 3142 | # No hosted I/O support. |
d36ed46d JM |
3143 | noconfigdirs="$noconfigdirs target-libssp" |
3144 | ;; | |
3145 | powerpc-*-aix* | rs6000-*-aix*) | |
3146 | noconfigdirs="$noconfigdirs target-libssp" | |
3147 | ;; | |
a4cff05a | 3148 | rl78-*-*) |
0c910152 NC |
3149 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3150 | # doesn't fault for those - instead, it gives a build-time error | |
3151 | # for explicit misaligned loads. | |
a4cff05a DD |
3152 | noconfigdirs="$noconfigdirs target-libssp" |
3153 | ;; | |
d36ed46d JM |
3154 | esac |
3155 | ||
d36ed46d JM |
3156 | # Disable libstdc++-v3 for some systems. |
3157 | case "${target}" in | |
3158 | *-*-vxworks*) | |
3159 | # VxWorks uses the Dinkumware C++ library. | |
3160 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3161 | ;; | |
3162 | arm*-wince-pe*) | |
3163 | # the C++ libraries don't build on top of CE's C libraries | |
3164 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3165 | ;; | |
3166 | avr-*-*) | |
3167 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3168 | ;; | |
3169 | esac | |
3170 | ||
3171 | # Disable Fortran for some systems. | |
3172 | case "${target}" in | |
3173 | mmix-*-*) | |
3174 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3175 | unsupported_languages="$unsupported_languages fortran" | |
3176 | ;; | |
3177 | esac | |
3178 | ||
fdb1f028 | 3179 | # Disable Java if libffi is not supported. |
4819e64b | 3180 | case "${target}" in |
fdb1f028 JM |
3181 | alpha*-*-*) |
3182 | ;; | |
3183 | arm*-*-*) | |
3184 | ;; | |
3185 | cris-*-*) | |
3186 | ;; | |
3187 | frv-*-*) | |
3188 | ;; | |
3189 | hppa*-*-linux*) | |
3190 | ;; | |
3191 | hppa*-*-hpux*) | |
3192 | ;; | |
3193 | i?86-*-*) | |
3194 | ;; | |
3195 | ia64*-*-*) | |
3196 | ;; | |
3197 | m32r*-*-*) | |
3198 | ;; | |
3199 | m68k-*-*) | |
3200 | ;; | |
d3f6480e | 3201 | mips*-*-rtems*) |
fdb1f028 JM |
3202 | ;; |
3203 | mips*-*-linux*) | |
3204 | ;; | |
3205 | powerpc*-*-linux*) | |
3206 | ;; | |
3207 | powerpc-*-darwin*) | |
3208 | ;; | |
3209 | powerpc-*-aix* | rs6000-*-aix*) | |
3210 | ;; | |
3211 | powerpc-*-freebsd*) | |
3212 | ;; | |
3213 | powerpc64-*-freebsd*) | |
3214 | ;; | |
3215 | powerpc*-*-rtems*) | |
4819e64b | 3216 | ;; |
fdb1f028 JM |
3217 | s390-*-* | s390x-*-*) |
3218 | ;; | |
3219 | sh-*-* | sh[34]*-*-*) | |
3220 | ;; | |
3221 | sh64-*-* | sh5*-*-*) | |
3222 | ;; | |
3223 | sparc*-*-*) | |
3224 | ;; | |
3225 | x86_64-*-*) | |
3226 | ;; | |
3227 | *-*-*) | |
3228 | unsupported_languages="$unsupported_languages java" | |
3229 | ;; | |
3230 | esac | |
3231 | ||
3232 | # Disable Java, libgcj or related libraries for some systems. | |
3233 | case "${target}" in | |
4819e64b JM |
3234 | powerpc-*-darwin*) |
3235 | ;; | |
3236 | i[3456789]86-*-darwin*) | |
3237 | ;; | |
3238 | x86_64-*-darwin[912]*) | |
3239 | ;; | |
3240 | *-*-darwin*) | |
3241 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3242 | ;; | |
4819e64b JM |
3243 | *-*-netware*) |
3244 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3245 | ;; | |
3246 | *-*-rtems*) | |
3247 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3248 | ;; | |
3249 | *-*-tpf*) | |
3250 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3251 | ;; | |
3252 | *-*-uclinux*) | |
3253 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3254 | ;; | |
3255 | *-*-vxworks*) | |
3256 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3257 | ;; | |
4819e64b JM |
3258 | alpha*-*-*vms*) |
3259 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3260 | ;; | |
fdb1f028 | 3261 | arm-wince-pe) |
4819e64b JM |
3262 | noconfigdirs="$noconfigdirs ${libgcj}" |
3263 | ;; | |
4819e64b JM |
3264 | arm*-*-symbianelf*) |
3265 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3266 | ;; | |
4819e64b | 3267 | bfin-*-*) |
4819e64b JM |
3268 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3269 | ;; | |
4819e64b JM |
3270 | cris-*-* | crisv32-*-*) |
3271 | unsupported_languages="$unsupported_languages java" | |
3272 | case "${target}" in | |
3273 | *-*-linux*) | |
3274 | ;; | |
3275 | *) # See PR46792 regarding target-libffi. | |
3276 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3277 | esac | |
3278 | ;; | |
4819e64b JM |
3279 | hppa*64*-*-linux*) |
3280 | # In this case, it's because the hppa64-linux target is for | |
3281 | # the kernel only at this point and has no libc, and thus no | |
3282 | # headers, crt*.o, etc., all of which are needed by these. | |
530994bd | 3283 | unsupported_languages="$unsupported_languages java" |
4819e64b | 3284 | ;; |
530994bd | 3285 | hppa*64*-*-hpux*) |
4819e64b JM |
3286 | noconfigdirs="$noconfigdirs ${libgcj}" |
3287 | ;; | |
3288 | hppa*-hp-hpux11*) | |
3289 | ;; | |
530994bd | 3290 | hppa*-*-hpux*) |
4819e64b JM |
3291 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't |
3292 | # build on HP-UX 10.20. | |
3293 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3294 | ;; | |
4819e64b JM |
3295 | ia64*-*-*vms*) |
3296 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3297 | ;; | |
4819e64b JM |
3298 | i[3456789]86-w64-mingw*) |
3299 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3300 | ;; | |
3301 | i[3456789]86-*-mingw*) | |
3302 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3303 | ;; | |
3304 | x86_64-*-mingw*) | |
3305 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3306 | ;; | |
4819e64b JM |
3307 | mmix-*-*) |
3308 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
4819e64b JM |
3309 | ;; |
3310 | powerpc-*-aix*) | |
3311 | # copied from rs6000-*-* entry | |
3312 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3313 | ;; | |
4819e64b JM |
3314 | rs6000-*-aix*) |
3315 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3316 | ;; | |
4819e64b JM |
3317 | *-*-lynxos*) |
3318 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3319 | ;; | |
4819e64b JM |
3320 | esac |
3321 | ||
46093329 DD |
3322 | # Default libgloss CPU subdirectory. |
3323 | libgloss_dir="$target_cpu" | |
cb2333e8 | 3324 | |
3c348668 JM |
3325 | case "${target}" in |
3326 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3327 | libgloss_dir=wince | |
3328 | ;; | |
3329 | arm*-*-*) | |
3330 | libgloss_dir=arm | |
3331 | ;; | |
3332 | cris-*-* | crisv32-*-*) | |
3333 | libgloss_dir=cris | |
3334 | ;; | |
3335 | hppa*-*-*) | |
3336 | libgloss_dir=pa | |
3337 | ;; | |
3338 | i[3456789]86-*-*) | |
3339 | libgloss_dir=i386 | |
3340 | ;; | |
3341 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3342 | libgloss_dir=m68hc11 | |
3343 | ;; | |
3344 | m68*-*-* | fido-*-*) | |
3345 | libgloss_dir=m68k | |
3346 | ;; | |
3347 | mips*-*-*) | |
3348 | libgloss_dir=mips | |
3349 | ;; | |
3350 | powerpc*-*-*) | |
3351 | libgloss_dir=rs6000 | |
3352 | ;; | |
3353 | sparc*-*-*) | |
3354 | libgloss_dir=sparc | |
3355 | ;; | |
3356 | esac | |
3357 | ||
25c50222 | 3358 | # Disable newlib and libgloss for various target OSes. |
bafecfd6 | 3359 | case "${target}" in |
25c50222 JM |
3360 | alpha*-dec-osf*) |
3361 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3362 | ;; | |
3363 | i[3456789]86-*-linux*) | |
3364 | # This section makes it possible to build newlib natively on linux. | |
3365 | # If we are using a cross compiler then don't configure newlib. | |
3366 | if test x${is_cross_compiler} != xno ; then | |
3367 | noconfigdirs="$noconfigdirs target-newlib" | |
3368 | fi | |
3369 | noconfigdirs="$noconfigdirs target-libgloss" | |
3370 | # If we are not using a cross compiler, do configure newlib. | |
3371 | # Note however, that newlib will only be configured in this situation | |
3372 | # if the --with-newlib option has been given, because otherwise | |
3373 | # 'target-newlib' will appear in skipdirs. | |
3374 | ;; | |
3375 | i[3456789]86-*-rdos*) | |
3376 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3377 | ;; | |
3378 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3379 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3380 | ;; | |
3381 | sparc-*-sunos4*) | |
3382 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3383 | ;; | |
3384 | *-*-aix*) | |
3385 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3386 | ;; | |
3387 | *-*-beos*) | |
3388 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3389 | ;; | |
bafecfd6 | 3390 | *-*-chorusos) |
61cc119d | 3391 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
bafecfd6 | 3392 | ;; |
25c50222 JM |
3393 | *-*-dragonfly*) |
3394 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3395 | ;; | |
3396 | *-*-freebsd*) | |
3397 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3398 | ;; | |
3399 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3400 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3401 | ;; | |
3402 | *-*-lynxos*) | |
3403 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3404 | ;; | |
3405 | *-*-mingw*) | |
3406 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3407 | ;; | |
3408 | *-*-netbsd*) | |
3409 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3410 | ;; | |
3411 | *-*-netware*) | |
3412 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3413 | ;; | |
3414 | *-*-tpf*) | |
3415 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3416 | ;; | |
3417 | *-*-uclinux*) | |
3418 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3419 | ;; | |
3420 | *-*-vxworks*) | |
3421 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3422 | ;; | |
3423 | esac | |
3424 | ||
3425 | case "${target}" in | |
3426 | *-*-chorusos) | |
3427 | ;; | |
2926fdf5 | 3428 | powerpc-*-darwin*) |
173af0fb | 3429 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
bbaae19b | 3430 | noconfigdirs="$noconfigdirs sim target-rda" |
5f0d49b5 | 3431 | ;; |
41592149 TG |
3432 | i[3456789]86-*-darwin*) |
3433 | noconfigdirs="$noconfigdirs ld gprof" | |
3434 | noconfigdirs="$noconfigdirs sim target-rda" | |
3435 | ;; | |
121f0eb2 | 3436 | x86_64-*-darwin[912]*) |
5f0d49b5 TG |
3437 | noconfigdirs="$noconfigdirs ld gas gprof" |
3438 | noconfigdirs="$noconfigdirs sim target-rda" | |
44dc96d1 | 3439 | ;; |
4b649dd9 | 3440 | *-*-darwin*) |
56fa0798 | 3441 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
bbaae19b | 3442 | noconfigdirs="$noconfigdirs sim target-rda" |
4b649dd9 | 3443 | ;; |
573c698a | 3444 | *-*-dragonfly*) |
573c698a | 3445 | ;; |
eb2d1dee | 3446 | *-*-freebsd*) |
cb2333e8 DD |
3447 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3448 | && test -f /usr/local/include/gmp.h; then | |
3449 | with_gmp=/usr/local | |
3450 | fi | |
cb2333e8 | 3451 | ;; |
5cd57f01 NC |
3452 | *-*-kaos*) |
3453 | # Remove unsupported stuff on all kaOS configurations. | |
5cd57f01 NC |
3454 | noconfigdirs="$noconfigdirs target-libgloss" |
3455 | ;; | |
bafecfd6 | 3456 | *-*-netbsd*) |
bafecfd6 | 3457 | ;; |
b330724f | 3458 | *-*-netware*) |
bafecfd6 NN |
3459 | ;; |
3460 | *-*-rtems*) | |
4819e64b | 3461 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 | 3462 | ;; |
3d93afbc EC |
3463 | # The tpf target doesn't support gdb yet. |
3464 | *-*-tpf*) | |
25c50222 | 3465 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
3d93afbc | 3466 | ;; |
1fb9256d | 3467 | *-*-uclinux*) |
25c50222 | 3468 | noconfigdirs="$noconfigdirs target-rda" |
1fb9256d | 3469 | ;; |
bafecfd6 | 3470 | *-*-vxworks*) |
bafecfd6 NN |
3471 | ;; |
3472 | alpha*-dec-osf*) | |
3473 | # ld works, but does not support shared libraries. | |
bafecfd6 | 3474 | # gas doesn't generate exception information. |
25c50222 | 3475 | noconfigdirs="$noconfigdirs gas ld" |
bafecfd6 NN |
3476 | ;; |
3477 | alpha*-*-*vms*) | |
4819e64b | 3478 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
bafecfd6 | 3479 | ;; |
bafecfd6 NN |
3480 | alpha*-*-*) |
3481 | # newlib is not 64 bit ready | |
4819e64b | 3482 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
bafecfd6 | 3483 | ;; |
bafecfd6 | 3484 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
44397772 | 3485 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
bafecfd6 NN |
3486 | ;; |
3487 | arc-*-*) | |
9aedc1d4 | 3488 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 | 3489 | ;; |
bafecfd6 | 3490 | arm-*-pe*) |
4819e64b | 3491 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 | 3492 | ;; |
bafecfd6 | 3493 | arm-*-riscix*) |
61cc119d | 3494 | noconfigdirs="$noconfigdirs ld target-libgloss" |
bafecfd6 | 3495 | ;; |
bafecfd6 | 3496 | c4x-*-* | tic4x-*-*) |
61cc119d | 3497 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 | 3498 | ;; |
61cc119d JM |
3499 | tic54x-*-*) |
3500 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
bafecfd6 | 3501 | ;; |
bafecfd6 | 3502 | d10v-*-*) |
61cc119d | 3503 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 NN |
3504 | ;; |
3505 | d30v-*-*) | |
61cc119d | 3506 | noconfigdirs="$noconfigdirs gdb" |
bafecfd6 NN |
3507 | ;; |
3508 | fr30-*-elf*) | |
4819e64b | 3509 | noconfigdirs="$noconfigdirs gdb" |
bafecfd6 | 3510 | ;; |
cc074893 | 3511 | moxie-*-*) |
cc074893 NC |
3512 | noconfigdirs="$noconfigdirs gprof" |
3513 | ;; | |
bafecfd6 | 3514 | h8300*-*-*) |
4819e64b | 3515 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 NN |
3516 | ;; |
3517 | h8500-*-*) | |
61cc119d | 3518 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 | 3519 | ;; |
3d439922 | 3520 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
3d439922 | 3521 | ;; |
3d4d1d30 | 3522 | hppa*64*-*-linux*) |
bafecfd6 | 3523 | ;; |
4fcb78d9 | 3524 | hppa*-*-linux*) |
53af4f25 | 3525 | ;; |
bafecfd6 | 3526 | hppa*-*-*elf* | \ |
bafecfd6 NN |
3527 | hppa*-*-lites* | \ |
3528 | hppa*-*-openbsd* | \ | |
3529 | hppa*64*-*-*) | |
e1e5148c CD |
3530 | ;; |
3531 | hppa*-hp-hpux11*) | |
5b45e8c9 | 3532 | noconfigdirs="$noconfigdirs ld" |
bafecfd6 | 3533 | ;; |
46093329 | 3534 | hppa*-*-pro*) |
46093329 | 3535 | ;; |
bafecfd6 | 3536 | hppa*-*-*) |
4819e64b | 3537 | noconfigdirs="$noconfigdirs ld" |
bafecfd6 | 3538 | ;; |
7e269125 | 3539 | i960-*-*) |
61cc119d | 3540 | noconfigdirs="$noconfigdirs gdb" |
7e269125 | 3541 | ;; |
bafecfd6 NN |
3542 | ia64*-*-elf*) |
3543 | # No gdb support yet. | |
5b45e8c9 | 3544 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
bafecfd6 NN |
3545 | ;; |
3546 | ia64*-**-hpux*) | |
e82bcd79 | 3547 | # No ld support yet. |
4819e64b | 3548 | noconfigdirs="$noconfigdirs libgui itcl ld" |
bafecfd6 | 3549 | ;; |
608adbed | 3550 | ia64*-*-*vms*) |
a626f4ee L |
3551 | # No ld support yet. |
3552 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
608adbed | 3553 | ;; |
5074489a | 3554 | i[3456789]86-w64-mingw*) |
5074489a AO |
3555 | ;; |
3556 | i[3456789]86-*-mingw*) | |
bc668665 | 3557 | target_configdirs="$target_configdirs target-winsup" |
b58b6ee1 | 3558 | ;; |
bafecfd6 NN |
3559 | *-*-cygwin*) |
3560 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
5b45e8c9 | 3561 | noconfigdirs="$noconfigdirs target-libgloss" |
99dbec4c | 3562 | # always build newlib if winsup directory is present. |
bc668665 | 3563 | if test -d "$srcdir/winsup/cygwin"; then |
99dbec4c | 3564 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
4ea74b34 | 3565 | elif test -d "$srcdir/newlib"; then |
bc668665 | 3566 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
99dbec4c | 3567 | fi |
b58b6ee1 | 3568 | ;; |
08049c01 | 3569 | i[3456789]86-*-pe) |
9aedc1d4 | 3570 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 | 3571 | ;; |
08049c01 | 3572 | i[3456789]86-*-sco3.2v5*) |
bafecfd6 NN |
3573 | # The linker does not yet know about weak symbols in COFF, |
3574 | # and is not configured to handle mixed ELF and COFF. | |
61cc119d | 3575 | noconfigdirs="$noconfigdirs ld target-libgloss" |
bafecfd6 | 3576 | ;; |
08049c01 | 3577 | i[3456789]86-*-sco*) |
61cc119d | 3578 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
bafecfd6 | 3579 | ;; |
da2cf961 | 3580 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
bafecfd6 NN |
3581 | noconfigdirs="$noconfigdirs target-libgloss" |
3582 | ;; | |
08049c01 | 3583 | i[3456789]86-*-sysv4*) |
61cc119d | 3584 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 | 3585 | ;; |
08049c01 | 3586 | i[3456789]86-*-beos*) |
25c50222 | 3587 | noconfigdirs="$noconfigdirs gdb" |
2245eb63 | 3588 | ;; |
22d7108e | 3589 | i[3456789]86-*-rdos*) |
25c50222 | 3590 | noconfigdirs="$noconfigdirs gdb" |
46093329 | 3591 | ;; |
bafecfd6 | 3592 | mmix-*-*) |
4819e64b | 3593 | noconfigdirs="$noconfigdirs gdb" |
bafecfd6 | 3594 | ;; |
74ecef0d | 3595 | mt-*-*) |
66cb6a19 AH |
3596 | noconfigdirs="$noconfigdirs sim" |
3597 | ;; | |
bafecfd6 NN |
3598 | powerpc-*-aix*) |
3599 | # copied from rs6000-*-* entry | |
25c50222 | 3600 | noconfigdirs="$noconfigdirs gprof" |
bafecfd6 | 3601 | ;; |
3d4d1d30 | 3602 | powerpc*-*-winnt* | powerpc*-*-pe*) |
bafecfd6 | 3603 | target_configdirs="$target_configdirs target-winsup" |
61cc119d | 3604 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
bafecfd6 NN |
3605 | # always build newlib. |
3606 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3607 | ;; | |
3608 | # This is temporary until we can link against shared libraries | |
3609 | powerpcle-*-solaris*) | |
61cc119d | 3610 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
bafecfd6 NN |
3611 | ;; |
3612 | powerpc-*-beos*) | |
25c50222 | 3613 | noconfigdirs="$noconfigdirs gdb" |
bafecfd6 | 3614 | ;; |
bafecfd6 | 3615 | rs6000-*-lynxos*) |
25c50222 | 3616 | noconfigdirs="$noconfigdirs gprof" |
bafecfd6 NN |
3617 | ;; |
3618 | rs6000-*-aix*) | |
25c50222 | 3619 | noconfigdirs="$noconfigdirs gprof" |
bafecfd6 NN |
3620 | ;; |
3621 | rs6000-*-*) | |
4819e64b | 3622 | noconfigdirs="$noconfigdirs gprof" |
bafecfd6 NN |
3623 | ;; |
3624 | m68k-apollo-*) | |
61cc119d | 3625 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
bafecfd6 | 3626 | ;; |
45f03e33 | 3627 | microblaze*) |
4819e64b | 3628 | noconfigdirs="$noconfigdirs gprof" |
45f03e33 | 3629 | ;; |
524e4570 | 3630 | mips*-sde-elf*) |
524e4570 RS |
3631 | if test x$with_newlib = xyes; then |
3632 | noconfigdirs="$noconfigdirs gprof" | |
3633 | fi | |
524e4570 | 3634 | ;; |
bafecfd6 | 3635 | mips*-*-irix5*) |
61cc119d | 3636 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
bafecfd6 NN |
3637 | ;; |
3638 | mips*-*-irix6*) | |
4819e64b | 3639 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
bafecfd6 | 3640 | ;; |
bafecfd6 | 3641 | mips*-*-bsd*) |
61cc119d | 3642 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
bafecfd6 | 3643 | ;; |
bafecfd6 | 3644 | mips*-*-linux*) |
bafecfd6 NN |
3645 | ;; |
3646 | mips*-*-*) | |
4819e64b | 3647 | noconfigdirs="$noconfigdirs gprof" |
bafecfd6 | 3648 | ;; |
0d549859 | 3649 | sh-*-* | sh64-*-*) |
121f0eb2 RW |
3650 | case "${target}" in |
3651 | sh*-*-elf) | |
4819e64b | 3652 | ;; |
121f0eb2 | 3653 | *) |
4819e64b | 3654 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
121f0eb2 | 3655 | esac |
bafecfd6 | 3656 | ;; |
bafecfd6 | 3657 | sparc-*-sunos4*) |
25c50222 | 3658 | if test x${is_cross_compiler} = xno ; then |
bafecfd6 NN |
3659 | use_gnu_ld=no |
3660 | fi | |
3661 | ;; | |
6315af0f | 3662 | tic6x-*-*) |
a2ffbf1e | 3663 | noconfigdirs="$noconfigdirs sim" |
6315af0f | 3664 | ;; |
f9dd2b32 NC |
3665 | tilepro-*-* | tilegx-*-*) |
3666 | noconfigdirs="$noconfigdirs sim" | |
3667 | ;; | |
bafecfd6 | 3668 | v810-*-*) |
61cc119d | 3669 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
bafecfd6 NN |
3670 | ;; |
3671 | vax-*-*) | |
4819e64b | 3672 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
bafecfd6 | 3673 | ;; |
bafecfd6 | 3674 | esac |
a3acbf46 | 3675 | |
bafecfd6 NN |
3676 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3677 | # depends upon some newlib header files. | |
3678 | case "${noconfigdirs}" in | |
3679 | *target-libgloss*) ;; | |
3680 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3681 | esac | |
3682 | ||
bafecfd6 | 3683 | # Work in distributions that contain no compiler tools, like Autoconf. |
bafecfd6 NN |
3684 | host_makefile_frag=/dev/null |
3685 | if test -d ${srcdir}/config ; then | |
3686 | case "${host}" in | |
08049c01 | 3687 | i[3456789]86-*-msdosdjgpp*) |
bafecfd6 NN |
3688 | host_makefile_frag="config/mh-djgpp" |
3689 | ;; | |
3690 | *-cygwin*) | |
981b79bf | 3691 | |
efd58f08 RW |
3692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3693 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
981b79bf | 3694 | echo a >cygwin-cat-check |
5074489a | 3695 | if test `cat cygwin-cat-check` = a ; then |
999fa990 | 3696 | rm cygwin-cat-check |
efd58f08 RW |
3697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3698 | $as_echo "yes" >&6; } | |
981b79bf | 3699 | else |
999fa990 | 3700 | rm cygwin-cat-check |
efd58f08 RW |
3701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3702 | $as_echo "no" >&6; } | |
3703 | as_fn_error "The cat command does not ignore carriage return characters. | |
981b79bf NC |
3704 | Please either mount the build directory in binary mode or run the following |
3705 | commands before running any configure script: | |
3706 | set -o igncr | |
3707 | export SHELLOPTS | |
efd58f08 | 3708 | " "$LINENO" 5 |
981b79bf | 3709 | fi |
981b79bf | 3710 | |
bafecfd6 NN |
3711 | host_makefile_frag="config/mh-cygwin" |
3712 | ;; | |
617c478d | 3713 | *-mingw*) |
fd1c1753 | 3714 | host_makefile_frag="config/mh-mingw" |
6a24f03b | 3715 | ;; |
9ad2ea2f | 3716 | hppa*-hp-hpux10*) |
9ad2ea2f | 3717 | host_makefile_frag="config/mh-pa-hpux10" |
bafecfd6 | 3718 | ;; |
4e55c4e3 | 3719 | hppa*-hp-hpux*) |
9ad2ea2f PB |
3720 | host_makefile_frag="config/mh-pa" |
3721 | ;; | |
3722 | hppa*-*) | |
3723 | host_makefile_frag="config/mh-pa" | |
3724 | ;; | |
d5b7129a ILT |
3725 | *-*-darwin*) |
3726 | host_makefile_frag="config/mh-darwin" | |
99df82b9 | 3727 | ;; |
7e958b2e PB |
3728 | powerpc-*-aix*) |
3729 | host_makefile_frag="config/mh-ppc-aix" | |
3730 | ;; | |
3731 | rs6000-*-aix*) | |
3732 | host_makefile_frag="config/mh-ppc-aix" | |
3733 | ;; | |
bafecfd6 NN |
3734 | esac |
3735 | fi | |
3736 | ||
cfc26d93 | 3737 | if test "${build}" != "${host}" ; then |
4413ec01 PB |
3738 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3739 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
cfc26d93 | 3740 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
4413ec01 PB |
3741 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3742 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
3743 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
d5b7129a | 3744 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
4413ec01 PB |
3745 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3746 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3747 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3748 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3749 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3750 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3751 | else | |
3752 | AR_FOR_BUILD="\$(AR)" | |
3753 | AS_FOR_BUILD="\$(AS)" | |
31839eae | 3754 | CC_FOR_BUILD="\$(CC)" |
4413ec01 PB |
3755 | CXX_FOR_BUILD="\$(CXX)" |
3756 | GCJ_FOR_BUILD="\$(GCJ)" | |
3757 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
d5b7129a | 3758 | GOC_FOR_BUILD="\$(GOC)" |
4413ec01 PB |
3759 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3760 | LD_FOR_BUILD="\$(LD)" | |
3761 | NM_FOR_BUILD="\$(NM)" | |
3762 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3763 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3764 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
b8c26111 PB |
3765 | fi |
3766 | ||
3767 | ac_ext=c | |
b58b6ee1 DJ |
3768 | ac_cpp='$CPP $CPPFLAGS' |
3769 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3770 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3771 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3772 | if test -n "$ac_tool_prefix"; then | |
3773 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3774 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
efd58f08 RW |
3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3776 | $as_echo_n "checking for $ac_word... " >&6; } | |
3777 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3778 | $as_echo_n "(cached) " >&6 | |
b58b6ee1 DJ |
3779 | else |
3780 | if test -n "$CC"; then | |
3781 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3782 | else | |
3783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3784 | for as_dir in $PATH | |
3785 | do | |
3786 | IFS=$as_save_IFS | |
3787 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
3788 | for ac_exec_ext in '' $ac_executable_extensions; do |
3789 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 3790 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
efd58f08 | 3791 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
3792 | break 2 |
3793 | fi | |
3794 | done | |
efd58f08 RW |
3795 | done |
3796 | IFS=$as_save_IFS | |
b58b6ee1 DJ |
3797 | |
3798 | fi | |
3799 | fi | |
3800 | CC=$ac_cv_prog_CC | |
3801 | if test -n "$CC"; then | |
efd58f08 RW |
3802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3803 | $as_echo "$CC" >&6; } | |
b58b6ee1 | 3804 | else |
efd58f08 RW |
3805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3806 | $as_echo "no" >&6; } | |
b58b6ee1 DJ |
3807 | fi |
3808 | ||
efd58f08 | 3809 | |
b58b6ee1 DJ |
3810 | fi |
3811 | if test -z "$ac_cv_prog_CC"; then | |
3812 | ac_ct_CC=$CC | |
2cb47d68 | 3813 | # Extract the first word of "gcc", so it can be a program name with args. |
cfc26d93 | 3814 | set dummy gcc; ac_word=$2 |
efd58f08 RW |
3815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3816 | $as_echo_n "checking for $ac_word... " >&6; } | |
3817 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3818 | $as_echo_n "(cached) " >&6 | |
b58b6ee1 DJ |
3819 | else |
3820 | if test -n "$ac_ct_CC"; then | |
3821 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3822 | else | |
3823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3824 | for as_dir in $PATH | |
3825 | do | |
3826 | IFS=$as_save_IFS | |
3827 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
3828 | for ac_exec_ext in '' $ac_executable_extensions; do |
3829 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 3830 | ac_cv_prog_ac_ct_CC="gcc" |
efd58f08 | 3831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
3832 | break 2 |
3833 | fi | |
3834 | done | |
efd58f08 RW |
3835 | done |
3836 | IFS=$as_save_IFS | |
b58b6ee1 DJ |
3837 | |
3838 | fi | |
3839 | fi | |
3840 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3841 | if test -n "$ac_ct_CC"; then | |
efd58f08 RW |
3842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3843 | $as_echo "$ac_ct_CC" >&6; } | |
b58b6ee1 | 3844 | else |
efd58f08 RW |
3845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3846 | $as_echo "no" >&6; } | |
b58b6ee1 DJ |
3847 | fi |
3848 | ||
efd58f08 RW |
3849 | if test "x$ac_ct_CC" = x; then |
3850 | CC="" | |
3851 | else | |
3852 | case $cross_compiling:$ac_tool_warned in | |
3853 | yes:) | |
3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3855 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3856 | ac_tool_warned=yes ;; | |
3857 | esac | |
3858 | CC=$ac_ct_CC | |
3859 | fi | |
b58b6ee1 DJ |
3860 | else |
3861 | CC="$ac_cv_prog_CC" | |
3862 | fi | |
3863 | ||
3864 | if test -z "$CC"; then | |
efd58f08 RW |
3865 | if test -n "$ac_tool_prefix"; then |
3866 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b58b6ee1 | 3867 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
efd58f08 RW |
3868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3869 | $as_echo_n "checking for $ac_word... " >&6; } | |
3870 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3871 | $as_echo_n "(cached) " >&6 | |
cfc26d93 NN |
3872 | else |
3873 | if test -n "$CC"; then | |
3874 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3875 | else | |
b58b6ee1 DJ |
3876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3877 | for as_dir in $PATH | |
3878 | do | |
3879 | IFS=$as_save_IFS | |
3880 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
3881 | for ac_exec_ext in '' $ac_executable_extensions; do |
3882 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 3883 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
efd58f08 | 3884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
3885 | break 2 |
3886 | fi | |
3887 | done | |
efd58f08 RW |
3888 | done |
3889 | IFS=$as_save_IFS | |
b58b6ee1 | 3890 | |
cfc26d93 NN |
3891 | fi |
3892 | fi | |
b58b6ee1 | 3893 | CC=$ac_cv_prog_CC |
cfc26d93 | 3894 | if test -n "$CC"; then |
efd58f08 RW |
3895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3896 | $as_echo "$CC" >&6; } | |
b58b6ee1 | 3897 | else |
efd58f08 RW |
3898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3899 | $as_echo "no" >&6; } | |
b58b6ee1 DJ |
3900 | fi |
3901 | ||
b58b6ee1 | 3902 | |
efd58f08 | 3903 | fi |
b58b6ee1 | 3904 | fi |
cfc26d93 NN |
3905 | if test -z "$CC"; then |
3906 | # Extract the first word of "cc", so it can be a program name with args. | |
3907 | set dummy cc; ac_word=$2 | |
efd58f08 RW |
3908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3909 | $as_echo_n "checking for $ac_word... " >&6; } | |
3910 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3911 | $as_echo_n "(cached) " >&6 | |
cfc26d93 NN |
3912 | else |
3913 | if test -n "$CC"; then | |
3914 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3915 | else | |
cfc26d93 | 3916 | ac_prog_rejected=no |
b58b6ee1 DJ |
3917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3918 | for as_dir in $PATH | |
3919 | do | |
3920 | IFS=$as_save_IFS | |
3921 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
3922 | for ac_exec_ext in '' $ac_executable_extensions; do |
3923 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 DJ |
3924 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3925 | ac_prog_rejected=yes | |
3926 | continue | |
3927 | fi | |
3928 | ac_cv_prog_CC="cc" | |
efd58f08 | 3929 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
3930 | break 2 |
3931 | fi | |
3932 | done | |
efd58f08 RW |
3933 | done |
3934 | IFS=$as_save_IFS | |
b58b6ee1 | 3935 | |
cfc26d93 NN |
3936 | if test $ac_prog_rejected = yes; then |
3937 | # We found a bogon in the path, so make sure we never use it. | |
3938 | set dummy $ac_cv_prog_CC | |
3939 | shift | |
b58b6ee1 | 3940 | if test $# != 0; then |
cfc26d93 NN |
3941 | # We chose a different compiler from the bogus one. |
3942 | # However, it has the same basename, so the bogon will be chosen | |
3943 | # first if we set CC to just the basename; use the full file name. | |
3944 | shift | |
b58b6ee1 | 3945 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
cfc26d93 NN |
3946 | fi |
3947 | fi | |
3948 | fi | |
3949 | fi | |
b58b6ee1 | 3950 | CC=$ac_cv_prog_CC |
cfc26d93 | 3951 | if test -n "$CC"; then |
efd58f08 RW |
3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3953 | $as_echo "$CC" >&6; } | |
cfc26d93 | 3954 | else |
efd58f08 RW |
3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3956 | $as_echo "no" >&6; } | |
cfc26d93 NN |
3957 | fi |
3958 | ||
efd58f08 | 3959 | |
b58b6ee1 DJ |
3960 | fi |
3961 | if test -z "$CC"; then | |
3962 | if test -n "$ac_tool_prefix"; then | |
efd58f08 | 3963 | for ac_prog in cl.exe |
b58b6ee1 DJ |
3964 | do |
3965 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3966 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
efd58f08 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 | |
cfc26d93 NN |
3971 | else |
3972 | if test -n "$CC"; then | |
3973 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3974 | else | |
b58b6ee1 DJ |
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=. | |
efd58f08 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 | |
b58b6ee1 | 3982 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
efd58f08 | 3983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 | 3984 | break 2 |
76402c80 | 3985 | fi |
b58b6ee1 | 3986 | done |
efd58f08 RW |
3987 | done |
3988 | IFS=$as_save_IFS | |
f69e2532 | 3989 | |
b58b6ee1 DJ |
3990 | fi |
3991 | fi | |
3992 | CC=$ac_cv_prog_CC | |
3993 | if test -n "$CC"; then | |
efd58f08 RW |
3994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3995 | $as_echo "$CC" >&6; } | |
f69e2532 | 3996 | else |
efd58f08 RW |
3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3998 | $as_echo "no" >&6; } | |
cfc26d93 | 3999 | fi |
f69e2532 | 4000 | |
efd58f08 | 4001 | |
b58b6ee1 DJ |
4002 | test -n "$CC" && break |
4003 | done | |
f69e2532 | 4004 | fi |
b58b6ee1 DJ |
4005 | if test -z "$CC"; then |
4006 | ac_ct_CC=$CC | |
efd58f08 | 4007 | for ac_prog in cl.exe |
b58b6ee1 DJ |
4008 | do |
4009 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4010 | set dummy $ac_prog; ac_word=$2 | |
efd58f08 RW |
4011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4012 | $as_echo_n "checking for $ac_word... " >&6; } | |
4013 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4014 | $as_echo_n "(cached) " >&6 | |
f69e2532 | 4015 | else |
b58b6ee1 DJ |
4016 | if test -n "$ac_ct_CC"; then |
4017 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
76402c80 | 4018 | else |
b58b6ee1 DJ |
4019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4020 | for as_dir in $PATH | |
4021 | do | |
4022 | IFS=$as_save_IFS | |
4023 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
4024 | for ac_exec_ext in '' $ac_executable_extensions; do |
4025 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 4026 | ac_cv_prog_ac_ct_CC="$ac_prog" |
efd58f08 | 4027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
4028 | break 2 |
4029 | fi | |
4030 | done | |
efd58f08 RW |
4031 | done |
4032 | IFS=$as_save_IFS | |
b58b6ee1 | 4033 | |
f69e2532 CM |
4034 | fi |
4035 | fi | |
b58b6ee1 DJ |
4036 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4037 | if test -n "$ac_ct_CC"; then | |
efd58f08 RW |
4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4039 | $as_echo "$ac_ct_CC" >&6; } | |
cfc26d93 | 4040 | else |
efd58f08 RW |
4041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4042 | $as_echo "no" >&6; } | |
f69e2532 | 4043 | fi |
76402c80 | 4044 | |
efd58f08 | 4045 | |
b58b6ee1 DJ |
4046 | test -n "$ac_ct_CC" && break |
4047 | done | |
4048 | ||
efd58f08 RW |
4049 | if test "x$ac_ct_CC" = x; then |
4050 | CC="" | |
4051 | else | |
4052 | case $cross_compiling:$ac_tool_warned in | |
4053 | yes:) | |
4054 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4055 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4056 | ac_tool_warned=yes ;; | |
4057 | esac | |
4058 | CC=$ac_ct_CC | |
4059 | fi | |
b58b6ee1 DJ |
4060 | fi |
4061 | ||
4062 | fi | |
4063 | ||
4064 | ||
efd58f08 RW |
4065 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4066 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4067 | as_fn_error "no acceptable C compiler found in \$PATH | |
4068 | See \`config.log' for more details." "$LINENO" 5; } | |
b58b6ee1 DJ |
4069 | |
4070 | # Provide some information about the compiler. | |
efd58f08 RW |
4071 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4072 | set X $ac_compile | |
4073 | ac_compiler=$2 | |
4074 | for ac_option in --version -v -V -qversion; do | |
4075 | { { ac_try="$ac_compiler $ac_option >&5" | |
4076 | case "(($ac_try" in | |
4077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4078 | *) ac_try_echo=$ac_try;; | |
4079 | esac | |
4080 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4081 | $as_echo "$ac_try_echo"; } >&5 | |
4082 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b58b6ee1 | 4083 | ac_status=$? |
efd58f08 RW |
4084 | if test -s conftest.err; then |
4085 | sed '10a\ | |
4086 | ... rest of stderr output deleted ... | |
4087 | 10q' conftest.err >conftest.er1 | |
4088 | cat conftest.er1 >&5 | |
4089 | rm -f conftest.er1 conftest.err | |
4090 | fi | |
4091 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4092 | test $ac_status = 0; } | |
4093 | done | |
b58b6ee1 | 4094 | |
efd58f08 | 4095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b58b6ee1 DJ |
4096 | /* end confdefs.h. */ |
4097 | ||
4098 | int | |
4099 | main () | |
4100 | { | |
4101 | ||
4102 | ; | |
4103 | return 0; | |
4104 | } | |
4105 | _ACEOF | |
4106 | ac_clean_files_save=$ac_clean_files | |
efd58f08 | 4107 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
b58b6ee1 DJ |
4108 | # Try to create an executable without -o first, disregard a.out. |
4109 | # It will help us diagnose broken compilers, and finding out an intuition | |
4110 | # of exeext. | |
efd58f08 RW |
4111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4112 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4113 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4114 | ||
4115 | # The possible output files: | |
4116 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4117 | ||
4118 | ac_rmfiles= | |
4119 | for ac_file in $ac_files | |
4120 | do | |
4121 | case $ac_file in | |
4122 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4123 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4124 | esac | |
4125 | done | |
4126 | rm -f $ac_rmfiles | |
4127 | ||
4128 | if { { ac_try="$ac_link_default" | |
4129 | case "(($ac_try" in | |
4130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4131 | *) ac_try_echo=$ac_try;; | |
4132 | esac | |
4133 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4134 | $as_echo "$ac_try_echo"; } >&5 | |
4135 | (eval "$ac_link_default") 2>&5 | |
b58b6ee1 | 4136 | ac_status=$? |
efd58f08 RW |
4137 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4138 | test $ac_status = 0; }; then : | |
4139 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4140 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4141 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4142 | # so that the user can short-circuit this test for compilers unknown to | |
4143 | # Autoconf. | |
4144 | for ac_file in $ac_files '' | |
b58b6ee1 DJ |
4145 | do |
4146 | test -f "$ac_file" || continue | |
4147 | case $ac_file in | |
efd58f08 | 4148 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b58b6ee1 DJ |
4149 | ;; |
4150 | [ab].out ) | |
4151 | # We found the default executable, but exeext='' is most | |
4152 | # certainly right. | |
4153 | break;; | |
4154 | *.* ) | |
efd58f08 RW |
4155 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4156 | then :; else | |
4157 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4158 | fi | |
4159 | # We set ac_cv_exeext here because the later test for it is not | |
4160 | # safe: cross compilers may not add the suffix if given an `-o' | |
4161 | # argument, so we may need to know it at that point already. | |
4162 | # Even if this section looks crufty: it has the advantage of | |
4163 | # actually working. | |
b58b6ee1 DJ |
4164 | break;; |
4165 | * ) | |
4166 | break;; | |
4167 | esac | |
4168 | done | |
efd58f08 RW |
4169 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4170 | ||
b58b6ee1 | 4171 | else |
efd58f08 RW |
4172 | ac_file='' |
4173 | fi | |
4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4175 | $as_echo "$ac_file" >&6; } | |
4176 | if test -z "$ac_file"; then : | |
4177 | $as_echo "$as_me: failed program was:" >&5 | |
b58b6ee1 DJ |
4178 | sed 's/^/| /' conftest.$ac_ext >&5 |
4179 | ||
efd58f08 RW |
4180 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4181 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4182 | { as_fn_set_status 77 | |
4183 | as_fn_error "C compiler cannot create executables | |
4184 | See \`config.log' for more details." "$LINENO" 5; }; } | |
b58b6ee1 | 4185 | fi |
b58b6ee1 | 4186 | ac_exeext=$ac_cv_exeext |
b58b6ee1 | 4187 | |
efd58f08 | 4188 | # Check that the compiler produces executables we can run. If not, either |
b58b6ee1 | 4189 | # the compiler is broken, or we cross compile. |
efd58f08 RW |
4190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4191 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
b58b6ee1 DJ |
4192 | # If not cross compiling, check that we can run a simple program. |
4193 | if test "$cross_compiling" != yes; then | |
4194 | if { ac_try='./$ac_file' | |
efd58f08 RW |
4195 | { { case "(($ac_try" in |
4196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4197 | *) ac_try_echo=$ac_try;; | |
4198 | esac | |
4199 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4200 | $as_echo "$ac_try_echo"; } >&5 | |
4201 | (eval "$ac_try") 2>&5 | |
b58b6ee1 | 4202 | ac_status=$? |
efd58f08 RW |
4203 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4204 | test $ac_status = 0; }; }; then | |
b58b6ee1 DJ |
4205 | cross_compiling=no |
4206 | else | |
4207 | if test "$cross_compiling" = maybe; then | |
4208 | cross_compiling=yes | |
4209 | else | |
efd58f08 RW |
4210 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4211 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4212 | as_fn_error "cannot run C compiled programs. | |
b58b6ee1 | 4213 | If you meant to cross compile, use \`--host'. |
efd58f08 | 4214 | See \`config.log' for more details." "$LINENO" 5; } |
b58b6ee1 DJ |
4215 | fi |
4216 | fi | |
4217 | fi | |
efd58f08 RW |
4218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4219 | $as_echo "yes" >&6; } | |
b58b6ee1 | 4220 | |
efd58f08 | 4221 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
b58b6ee1 | 4222 | ac_clean_files=$ac_clean_files_save |
efd58f08 | 4223 | # Check that the compiler produces executables we can run. If not, either |
b58b6ee1 | 4224 | # the compiler is broken, or we cross compile. |
efd58f08 RW |
4225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4226 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4228 | $as_echo "$cross_compiling" >&6; } | |
4229 | ||
4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4231 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4232 | if { { ac_try="$ac_link" | |
4233 | case "(($ac_try" in | |
4234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4235 | *) ac_try_echo=$ac_try;; | |
4236 | esac | |
4237 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4238 | $as_echo "$ac_try_echo"; } >&5 | |
4239 | (eval "$ac_link") 2>&5 | |
b58b6ee1 | 4240 | ac_status=$? |
efd58f08 RW |
4241 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4242 | test $ac_status = 0; }; then : | |
b58b6ee1 DJ |
4243 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4244 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4245 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4246 | # `rm'. | |
4247 | for ac_file in conftest.exe conftest conftest.*; do | |
4248 | test -f "$ac_file" || continue | |
4249 | case $ac_file in | |
efd58f08 | 4250 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b58b6ee1 | 4251 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b58b6ee1 DJ |
4252 | break;; |
4253 | * ) break;; | |
4254 | esac | |
4255 | done | |
4256 | else | |
efd58f08 RW |
4257 | { { $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 "cannot compute suffix of executables: cannot compile and link | |
4260 | See \`config.log' for more details." "$LINENO" 5; } | |
b58b6ee1 | 4261 | fi |
b58b6ee1 | 4262 | rm -f conftest$ac_cv_exeext |
efd58f08 RW |
4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4264 | $as_echo "$ac_cv_exeext" >&6; } | |
b58b6ee1 DJ |
4265 | |
4266 | rm -f conftest.$ac_ext | |
4267 | EXEEXT=$ac_cv_exeext | |
4268 | ac_exeext=$EXEEXT | |
efd58f08 RW |
4269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4270 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4271 | if test "${ac_cv_objext+set}" = set; then : | |
4272 | $as_echo_n "(cached) " >&6 | |
b58b6ee1 | 4273 | else |
efd58f08 | 4274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b58b6ee1 DJ |
4275 | /* end confdefs.h. */ |
4276 | ||
4277 | int | |
4278 | main () | |
4279 | { | |
4280 | ||
4281 | ; | |
4282 | return 0; | |
4283 | } | |
4284 | _ACEOF | |
4285 | rm -f conftest.o conftest.obj | |
efd58f08 RW |
4286 | if { { ac_try="$ac_compile" |
4287 | case "(($ac_try" in | |
4288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4289 | *) ac_try_echo=$ac_try;; | |
4290 | esac | |
4291 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4292 | $as_echo "$ac_try_echo"; } >&5 | |
4293 | (eval "$ac_compile") 2>&5 | |
b58b6ee1 | 4294 | ac_status=$? |
efd58f08 RW |
4295 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4296 | test $ac_status = 0; }; then : | |
4297 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4298 | test -f "$ac_file" || continue; | |
b58b6ee1 | 4299 | case $ac_file in |
efd58f08 | 4300 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b58b6ee1 DJ |
4301 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4302 | break;; | |
4303 | esac | |
4304 | done | |
f69e2532 | 4305 | else |
efd58f08 | 4306 | $as_echo "$as_me: failed program was:" >&5 |
b58b6ee1 DJ |
4307 | sed 's/^/| /' conftest.$ac_ext >&5 |
4308 | ||
efd58f08 RW |
4309 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4310 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4311 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4312 | See \`config.log' for more details." "$LINENO" 5; } | |
b58b6ee1 | 4313 | fi |
b58b6ee1 DJ |
4314 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4315 | fi | |
efd58f08 RW |
4316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4317 | $as_echo "$ac_cv_objext" >&6; } | |
b58b6ee1 DJ |
4318 | OBJEXT=$ac_cv_objext |
4319 | ac_objext=$OBJEXT | |
efd58f08 RW |
4320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4321 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4322 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4323 | $as_echo_n "(cached) " >&6 | |
b58b6ee1 | 4324 | else |
efd58f08 | 4325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b58b6ee1 DJ |
4326 | /* end confdefs.h. */ |
4327 | ||
4328 | int | |
4329 | main () | |
4330 | { | |
4331 | #ifndef __GNUC__ | |
4332 | choke me | |
4333 | #endif | |
4334 | ||
4335 | ; | |
4336 | return 0; | |
4337 | } | |
4338 | _ACEOF | |
efd58f08 | 4339 | if ac_fn_c_try_compile "$LINENO"; then : |
b58b6ee1 DJ |
4340 | ac_compiler_gnu=yes |
4341 | else | |
efd58f08 | 4342 | ac_compiler_gnu=no |
b58b6ee1 | 4343 | fi |
efd58f08 | 4344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b58b6ee1 DJ |
4345 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4346 | ||
4347 | fi | |
efd58f08 RW |
4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4349 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4350 | if test $ac_compiler_gnu = yes; then | |
4351 | GCC=yes | |
4352 | else | |
4353 | GCC= | |
4354 | fi | |
b58b6ee1 DJ |
4355 | ac_test_CFLAGS=${CFLAGS+set} |
4356 | ac_save_CFLAGS=$CFLAGS | |
efd58f08 RW |
4357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4358 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4359 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4360 | $as_echo_n "(cached) " >&6 | |
4361 | else | |
4362 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4363 | ac_c_werror_flag=yes | |
4364 | ac_cv_prog_cc_g=no | |
4365 | CFLAGS="-g" | |
4366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b58b6ee1 DJ |
4367 | /* end confdefs.h. */ |
4368 | ||
4369 | int | |
4370 | main () | |
4371 | { | |
4372 | ||
4373 | ; | |
4374 | return 0; | |
4375 | } | |
4376 | _ACEOF | |
efd58f08 | 4377 | if ac_fn_c_try_compile "$LINENO"; then : |
cfc26d93 NN |
4378 | ac_cv_prog_cc_g=yes |
4379 | else | |
efd58f08 RW |
4380 | CFLAGS="" |
4381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4382 | /* end confdefs.h. */ | |
4383 | ||
4384 | int | |
4385 | main () | |
4386 | { | |
4387 | ||
4388 | ; | |
4389 | return 0; | |
4390 | } | |
4391 | _ACEOF | |
4392 | if ac_fn_c_try_compile "$LINENO"; then : | |
4393 | ||
4394 | else | |
4395 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4396 | CFLAGS="-g" | |
4397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4398 | /* end confdefs.h. */ | |
f69e2532 | 4399 | |
efd58f08 RW |
4400 | int |
4401 | main () | |
4402 | { | |
4403 | ||
4404 | ; | |
4405 | return 0; | |
4406 | } | |
4407 | _ACEOF | |
4408 | if ac_fn_c_try_compile "$LINENO"; then : | |
4409 | ac_cv_prog_cc_g=yes | |
4410 | fi | |
4411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
76402c80 | 4412 | fi |
efd58f08 | 4413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b58b6ee1 | 4414 | fi |
efd58f08 RW |
4415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4416 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4417 | fi | |
4418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4419 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
cfc26d93 | 4420 | if test "$ac_test_CFLAGS" = set; then |
b58b6ee1 | 4421 | CFLAGS=$ac_save_CFLAGS |
cfc26d93 NN |
4422 | elif test $ac_cv_prog_cc_g = yes; then |
4423 | if test "$GCC" = yes; then | |
4424 | CFLAGS="-g -O2" | |
4425 | else | |
4426 | CFLAGS="-g" | |
4427 | fi | |
4428 | else | |
4429 | if test "$GCC" = yes; then | |
4430 | CFLAGS="-O2" | |
4431 | else | |
4432 | CFLAGS= | |
4433 | fi | |
4434 | fi | |
efd58f08 RW |
4435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4436 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4437 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4438 | $as_echo_n "(cached) " >&6 | |
b58b6ee1 | 4439 | else |
efd58f08 | 4440 | ac_cv_prog_cc_c89=no |
b58b6ee1 | 4441 | ac_save_CC=$CC |
efd58f08 | 4442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b58b6ee1 DJ |
4443 | /* end confdefs.h. */ |
4444 | #include <stdarg.h> | |
4445 | #include <stdio.h> | |
4446 | #include <sys/types.h> | |
4447 | #include <sys/stat.h> | |
4448 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4449 | struct buf { int x; }; | |
4450 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4451 | static char *e (p, i) | |
4452 | char **p; | |
4453 | int i; | |
4454 | { | |
4455 | return p[i]; | |
4456 | } | |
4457 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4458 | { | |
4459 | char *s; | |
4460 | va_list v; | |
4461 | va_start (v,p); | |
4462 | s = g (p, va_arg (v,int)); | |
4463 | va_end (v); | |
4464 | return s; | |
4465 | } | |
4466 | ||
4467 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4468 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4469 | These don't provoke an error unfortunately, instead are silently treated | |
efd58f08 | 4470 | as 'x'. The following induces an error, until -std is added to get |
b58b6ee1 DJ |
4471 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4472 | array size at least. It's necessary to write '\x00'==0 to get something | |
efd58f08 | 4473 | that's true only with -std. */ |
b58b6ee1 DJ |
4474 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4475 | ||
efd58f08 RW |
4476 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4477 | inside strings and character constants. */ | |
4478 | #define FOO(x) 'x' | |
4479 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4480 | ||
b58b6ee1 DJ |
4481 | int test (int i, double x); |
4482 | struct s1 {int (*f) (int a);}; | |
4483 | struct s2 {int (*f) (double a);}; | |
4484 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4485 | int argc; | |
4486 | char **argv; | |
4487 | int | |
4488 | main () | |
4489 | { | |
4490 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4491 | ; | |
4492 | return 0; | |
4493 | } | |
4494 | _ACEOF | |
efd58f08 RW |
4495 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4496 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b58b6ee1 DJ |
4497 | do |
4498 | CC="$ac_save_CC $ac_arg" | |
efd58f08 RW |
4499 | if ac_fn_c_try_compile "$LINENO"; then : |
4500 | ac_cv_prog_cc_c89=$ac_arg | |
b58b6ee1 | 4501 | fi |
efd58f08 RW |
4502 | rm -f core conftest.err conftest.$ac_objext |
4503 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b58b6ee1 | 4504 | done |
efd58f08 | 4505 | rm -f conftest.$ac_ext |
b58b6ee1 DJ |
4506 | CC=$ac_save_CC |
4507 | ||
4508 | fi | |
efd58f08 RW |
4509 | # AC_CACHE_VAL |
4510 | case "x$ac_cv_prog_cc_c89" in | |
4511 | x) | |
4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4513 | $as_echo "none needed" >&6; } ;; | |
4514 | xno) | |
4515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4516 | $as_echo "unsupported" >&6; } ;; | |
b58b6ee1 | 4517 | *) |
efd58f08 RW |
4518 | CC="$CC $ac_cv_prog_cc_c89" |
4519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4520 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b58b6ee1 | 4521 | esac |
efd58f08 | 4522 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b58b6ee1 | 4523 | |
b58b6ee1 DJ |
4524 | fi |
4525 | ||
b58b6ee1 DJ |
4526 | ac_ext=c |
4527 | ac_cpp='$CPP $CPPFLAGS' | |
4528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
cfc26d93 | 4531 | |
efd58f08 | 4532 | ac_ext=cpp |
b8c26111 PB |
4533 | ac_cpp='$CXXCPP $CPPFLAGS' |
4534 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4535 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4536 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
efd58f08 RW |
4537 | if test -z "$CXX"; then |
4538 | if test -n "$CCC"; then | |
4539 | CXX=$CCC | |
4540 | else | |
4541 | if test -n "$ac_tool_prefix"; then | |
4542 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
b8c26111 PB |
4543 | do |
4544 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4545 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
efd58f08 RW |
4546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4547 | $as_echo_n "checking for $ac_word... " >&6; } | |
4548 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4549 | $as_echo_n "(cached) " >&6 | |
b8c26111 PB |
4550 | else |
4551 | if test -n "$CXX"; then | |
4552 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4553 | else | |
4554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4555 | for as_dir in $PATH | |
4556 | do | |
4557 | IFS=$as_save_IFS | |
4558 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
4559 | for ac_exec_ext in '' $ac_executable_extensions; do |
4560 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b8c26111 | 4561 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
efd58f08 | 4562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b8c26111 PB |
4563 | break 2 |
4564 | fi | |
4565 | done | |
efd58f08 RW |
4566 | done |
4567 | IFS=$as_save_IFS | |
31839eae | 4568 | |
b8c26111 PB |
4569 | fi |
4570 | fi | |
4571 | CXX=$ac_cv_prog_CXX | |
4572 | if test -n "$CXX"; then | |
efd58f08 RW |
4573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4574 | $as_echo "$CXX" >&6; } | |
b8c26111 | 4575 | else |
efd58f08 RW |
4576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4577 | $as_echo "no" >&6; } | |
b8c26111 PB |
4578 | fi |
4579 | ||
efd58f08 | 4580 | |
b8c26111 PB |
4581 | test -n "$CXX" && break |
4582 | done | |
4583 | fi | |
4584 | if test -z "$CXX"; then | |
4585 | ac_ct_CXX=$CXX | |
efd58f08 | 4586 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
b8c26111 PB |
4587 | do |
4588 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4589 | set dummy $ac_prog; ac_word=$2 | |
efd58f08 RW |
4590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4591 | $as_echo_n "checking for $ac_word... " >&6; } | |
4592 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4593 | $as_echo_n "(cached) " >&6 | |
b8c26111 PB |
4594 | else |
4595 | if test -n "$ac_ct_CXX"; then | |
4596 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4597 | else | |
4598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4599 | for as_dir in $PATH | |
4600 | do | |
4601 | IFS=$as_save_IFS | |
4602 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
4603 | for ac_exec_ext in '' $ac_executable_extensions; do |
4604 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b8c26111 | 4605 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
efd58f08 | 4606 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b8c26111 | 4607 | break 2 |
31839eae | 4608 | fi |
b8c26111 | 4609 | done |
efd58f08 RW |
4610 | done |
4611 | IFS=$as_save_IFS | |
31839eae | 4612 | |
b8c26111 PB |
4613 | fi |
4614 | fi | |
4615 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4616 | if test -n "$ac_ct_CXX"; then | |
efd58f08 RW |
4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4618 | $as_echo "$ac_ct_CXX" >&6; } | |
b8c26111 | 4619 | else |
efd58f08 RW |
4620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4621 | $as_echo "no" >&6; } | |
b8c26111 PB |
4622 | fi |
4623 | ||
efd58f08 | 4624 | |
b8c26111 PB |
4625 | test -n "$ac_ct_CXX" && break |
4626 | done | |
b8c26111 | 4627 | |
efd58f08 RW |
4628 | if test "x$ac_ct_CXX" = x; then |
4629 | CXX="g++" | |
4630 | else | |
4631 | case $cross_compiling:$ac_tool_warned in | |
4632 | yes:) | |
4633 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4634 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4635 | ac_tool_warned=yes ;; | |
4636 | esac | |
4637 | CXX=$ac_ct_CXX | |
4638 | fi | |
b8c26111 PB |
4639 | fi |
4640 | ||
efd58f08 RW |
4641 | fi |
4642 | fi | |
b8c26111 | 4643 | # Provide some information about the compiler. |
efd58f08 RW |
4644 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4645 | set X $ac_compile | |
4646 | ac_compiler=$2 | |
4647 | for ac_option in --version -v -V -qversion; do | |
4648 | { { ac_try="$ac_compiler $ac_option >&5" | |
4649 | case "(($ac_try" in | |
4650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4651 | *) ac_try_echo=$ac_try;; | |
4652 | esac | |
4653 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4654 | $as_echo "$ac_try_echo"; } >&5 | |
4655 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b8c26111 | 4656 | ac_status=$? |
efd58f08 RW |
4657 | if test -s conftest.err; then |
4658 | sed '10a\ | |
4659 | ... rest of stderr output deleted ... | |
4660 | 10q' conftest.err >conftest.er1 | |
4661 | cat conftest.er1 >&5 | |
4662 | rm -f conftest.er1 conftest.err | |
4663 | fi | |
4664 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4665 | test $ac_status = 0; } | |
4666 | done | |
b8c26111 | 4667 | |
efd58f08 RW |
4668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4669 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4670 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4671 | $as_echo_n "(cached) " >&6 | |
b8c26111 | 4672 | else |
efd58f08 | 4673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b8c26111 PB |
4674 | /* end confdefs.h. */ |
4675 | ||
4676 | int | |
4677 | main () | |
4678 | { | |
4679 | #ifndef __GNUC__ | |
4680 | choke me | |
4681 | #endif | |
4682 | ||
4683 | ; | |
4684 | return 0; | |
4685 | } | |
4686 | _ACEOF | |
efd58f08 | 4687 | if ac_fn_cxx_try_compile "$LINENO"; then : |
b8c26111 PB |
4688 | ac_compiler_gnu=yes |
4689 | else | |
efd58f08 | 4690 | ac_compiler_gnu=no |
b8c26111 | 4691 | fi |
efd58f08 | 4692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b8c26111 PB |
4693 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4694 | ||
4695 | fi | |
efd58f08 RW |
4696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4697 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4698 | if test $ac_compiler_gnu = yes; then | |
4699 | GXX=yes | |
4700 | else | |
4701 | GXX= | |
4702 | fi | |
b8c26111 PB |
4703 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4704 | ac_save_CXXFLAGS=$CXXFLAGS | |
efd58f08 RW |
4705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4706 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4707 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4708 | $as_echo_n "(cached) " >&6 | |
4709 | else | |
4710 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4711 | ac_cxx_werror_flag=yes | |
4712 | ac_cv_prog_cxx_g=no | |
4713 | CXXFLAGS="-g" | |
4714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b8c26111 PB |
4715 | /* end confdefs.h. */ |
4716 | ||
4717 | int | |
4718 | main () | |
4719 | { | |
4720 | ||
4721 | ; | |
4722 | return 0; | |
4723 | } | |
4724 | _ACEOF | |
efd58f08 | 4725 | if ac_fn_cxx_try_compile "$LINENO"; then : |
b8c26111 PB |
4726 | ac_cv_prog_cxx_g=yes |
4727 | else | |
efd58f08 RW |
4728 | CXXFLAGS="" |
4729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b8c26111 | 4730 | /* end confdefs.h. */ |
efd58f08 | 4731 | |
b8c26111 PB |
4732 | int |
4733 | main () | |
4734 | { | |
efd58f08 | 4735 | |
b8c26111 PB |
4736 | ; |
4737 | return 0; | |
4738 | } | |
4739 | _ACEOF | |
efd58f08 | 4740 | if ac_fn_cxx_try_compile "$LINENO"; then : |
b8c26111 | 4741 | |
efd58f08 RW |
4742 | else |
4743 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4744 | CXXFLAGS="-g" | |
4745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b8c26111 | 4746 | /* end confdefs.h. */ |
efd58f08 | 4747 | |
b8c26111 PB |
4748 | int |
4749 | main () | |
4750 | { | |
efd58f08 | 4751 | |
b8c26111 PB |
4752 | ; |
4753 | return 0; | |
4754 | } | |
4755 | _ACEOF | |
efd58f08 RW |
4756 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4757 | ac_cv_prog_cxx_g=yes | |
b8c26111 | 4758 | fi |
efd58f08 RW |
4759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4760 | fi | |
4761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4762 | fi | |
4763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4764 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4765 | fi | |
4766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4767 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4768 | if test "$ac_test_CXXFLAGS" = set; then | |
4769 | CXXFLAGS=$ac_save_CXXFLAGS | |
4770 | elif test $ac_cv_prog_cxx_g = yes; then | |
4771 | if test "$GXX" = yes; then | |
4772 | CXXFLAGS="-g -O2" | |
4773 | else | |
4774 | CXXFLAGS="-g" | |
4775 | fi | |
4776 | else | |
4777 | if test "$GXX" = yes; then | |
4778 | CXXFLAGS="-O2" | |
4779 | else | |
4780 | CXXFLAGS= | |
4781 | fi | |
b8c26111 | 4782 | fi |
b8c26111 PB |
4783 | ac_ext=c |
4784 | ac_cpp='$CPP $CPPFLAGS' | |
4785 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4786 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4787 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4788 | ||
4789 | ||
4790 | # We must set the default linker to the linker used by gcc for the correct | |
4791 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
4792 | # set the LD default to the ld used by gcc. | |
4793 | if test -z "$LD"; then | |
4794 | if test "$GCC" = yes; then | |
4795 | case $build in | |
4796 | *-*-mingw*) | |
4797 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
4798 | *) | |
4799 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
4800 | esac | |
4801 | case $gcc_prog_ld in | |
4802 | # Accept absolute paths. | |
4803 | [\\/]* | [A-Za-z]:[\\/]*) | |
4804 | LD="$gcc_prog_ld" ;; | |
4805 | esac | |
4806 | fi | |
31839eae PB |
4807 | fi |
4808 | ||
4809 | ||
4810 | ||
4811 | ||
b58b6ee1 | 4812 | if test -n "$ac_tool_prefix"; then |
31839eae PB |
4813 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
4814 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
efd58f08 RW |
4815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4816 | $as_echo_n "checking for $ac_word... " >&6; } | |
4817 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
4818 | $as_echo_n "(cached) " >&6 | |
cfc26d93 | 4819 | else |
31839eae PB |
4820 | if test -n "$GNATBIND"; then |
4821 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
cfc26d93 | 4822 | else |
b58b6ee1 DJ |
4823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4824 | for as_dir in $PATH | |
4825 | do | |
4826 | IFS=$as_save_IFS | |
4827 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
4828 | for ac_exec_ext in '' $ac_executable_extensions; do |
4829 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
31839eae | 4830 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
efd58f08 | 4831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
4832 | break 2 |
4833 | fi | |
4834 | done | |
efd58f08 RW |
4835 | done |
4836 | IFS=$as_save_IFS | |
b58b6ee1 | 4837 | |
cfc26d93 NN |
4838 | fi |
4839 | fi | |
31839eae PB |
4840 | GNATBIND=$ac_cv_prog_GNATBIND |
4841 | if test -n "$GNATBIND"; then | |
efd58f08 RW |
4842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
4843 | $as_echo "$GNATBIND" >&6; } | |
cfc26d93 | 4844 | else |
efd58f08 RW |
4845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4846 | $as_echo "no" >&6; } | |
cfc26d93 NN |
4847 | fi |
4848 | ||
efd58f08 | 4849 | |
b58b6ee1 | 4850 | fi |
31839eae PB |
4851 | if test -z "$ac_cv_prog_GNATBIND"; then |
4852 | ac_ct_GNATBIND=$GNATBIND | |
4853 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
4854 | set dummy gnatbind; ac_word=$2 | |
efd58f08 RW |
4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4856 | $as_echo_n "checking for $ac_word... " >&6; } | |
4857 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
4858 | $as_echo_n "(cached) " >&6 | |
cfc26d93 | 4859 | else |
31839eae PB |
4860 | if test -n "$ac_ct_GNATBIND"; then |
4861 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
cfc26d93 | 4862 | else |
b58b6ee1 DJ |
4863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4864 | for as_dir in $PATH | |
4865 | do | |
4866 | IFS=$as_save_IFS | |
4867 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
4868 | for ac_exec_ext in '' $ac_executable_extensions; do |
4869 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
31839eae | 4870 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
efd58f08 | 4871 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
4872 | break 2 |
4873 | fi | |
4874 | done | |
efd58f08 RW |
4875 | done |
4876 | IFS=$as_save_IFS | |
b58b6ee1 | 4877 | |
cfc26d93 NN |
4878 | fi |
4879 | fi | |
31839eae PB |
4880 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
4881 | if test -n "$ac_ct_GNATBIND"; then | |
efd58f08 RW |
4882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
4883 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
cfc26d93 | 4884 | else |
efd58f08 RW |
4885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4886 | $as_echo "no" >&6; } | |
cfc26d93 NN |
4887 | fi |
4888 | ||
efd58f08 RW |
4889 | if test "x$ac_ct_GNATBIND" = x; then |
4890 | GNATBIND="no" | |
4891 | else | |
4892 | case $cross_compiling:$ac_tool_warned in | |
4893 | yes:) | |
4894 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4895 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4896 | ac_tool_warned=yes ;; | |
4897 | esac | |
4898 | GNATBIND=$ac_ct_GNATBIND | |
4899 | fi | |
893220e0 | 4900 | else |
31839eae | 4901 | GNATBIND="$ac_cv_prog_GNATBIND" |
cfc26d93 NN |
4902 | fi |
4903 | ||
60800fb2 | 4904 | if test -n "$ac_tool_prefix"; then |
31839eae PB |
4905 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
4906 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
efd58f08 RW |
4907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4908 | $as_echo_n "checking for $ac_word... " >&6; } | |
4909 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
4910 | $as_echo_n "(cached) " >&6 | |
60800fb2 | 4911 | else |
31839eae PB |
4912 | if test -n "$GNATMAKE"; then |
4913 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
60800fb2 PB |
4914 | else |
4915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4916 | for as_dir in $PATH | |
4917 | do | |
4918 | IFS=$as_save_IFS | |
4919 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
4920 | for ac_exec_ext in '' $ac_executable_extensions; do |
4921 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
31839eae | 4922 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
efd58f08 | 4923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
60800fb2 PB |
4924 | break 2 |
4925 | fi | |
4926 | done | |
efd58f08 RW |
4927 | done |
4928 | IFS=$as_save_IFS | |
60800fb2 PB |
4929 | |
4930 | fi | |
4931 | fi | |
31839eae PB |
4932 | GNATMAKE=$ac_cv_prog_GNATMAKE |
4933 | if test -n "$GNATMAKE"; then | |
efd58f08 RW |
4934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
4935 | $as_echo "$GNATMAKE" >&6; } | |
60800fb2 | 4936 | else |
efd58f08 RW |
4937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4938 | $as_echo "no" >&6; } | |
60800fb2 PB |
4939 | fi |
4940 | ||
efd58f08 | 4941 | |
60800fb2 | 4942 | fi |
31839eae PB |
4943 | if test -z "$ac_cv_prog_GNATMAKE"; then |
4944 | ac_ct_GNATMAKE=$GNATMAKE | |
4945 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
4946 | set dummy gnatmake; ac_word=$2 | |
efd58f08 RW |
4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4948 | $as_echo_n "checking for $ac_word... " >&6; } | |
4949 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
4950 | $as_echo_n "(cached) " >&6 | |
60800fb2 | 4951 | else |
31839eae PB |
4952 | if test -n "$ac_ct_GNATMAKE"; then |
4953 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
60800fb2 PB |
4954 | else |
4955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4956 | for as_dir in $PATH | |
4957 | do | |
4958 | IFS=$as_save_IFS | |
4959 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
4960 | for ac_exec_ext in '' $ac_executable_extensions; do |
4961 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
31839eae | 4962 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
efd58f08 | 4963 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
60800fb2 PB |
4964 | break 2 |
4965 | fi | |
4966 | done | |
efd58f08 RW |
4967 | done |
4968 | IFS=$as_save_IFS | |
60800fb2 | 4969 | |
60800fb2 PB |
4970 | fi |
4971 | fi | |
31839eae PB |
4972 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
4973 | if test -n "$ac_ct_GNATMAKE"; then | |
efd58f08 RW |
4974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
4975 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
60800fb2 | 4976 | else |
efd58f08 RW |
4977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4978 | $as_echo "no" >&6; } | |
60800fb2 PB |
4979 | fi |
4980 | ||
efd58f08 RW |
4981 | if test "x$ac_ct_GNATMAKE" = x; then |
4982 | GNATMAKE="no" | |
4983 | else | |
4984 | case $cross_compiling:$ac_tool_warned in | |
4985 | yes:) | |
4986 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4987 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4988 | ac_tool_warned=yes ;; | |
4989 | esac | |
4990 | GNATMAKE=$ac_ct_GNATMAKE | |
4991 | fi | |
60800fb2 | 4992 | else |
31839eae | 4993 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
60800fb2 PB |
4994 | fi |
4995 | ||
efd58f08 RW |
4996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
4997 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
4998 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
4999 | $as_echo_n "(cached) " >&6 | |
cfc26d93 NN |
5000 | else |
5001 | cat >conftest.adb <<EOF | |
5002 | procedure conftest is begin null; end conftest; | |
5003 | EOF | |
5004 | acx_cv_cc_gcc_supports_ada=no | |
5005 | # There is a bug in old released versions of GCC which causes the | |
5006 | # driver to exit successfully when the appropriate language module | |
5007 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5008 | # Therefore we must check for the error message as well as an | |
5009 | # unsuccessful exit. | |
866c244e DD |
5010 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5011 | # given a .adb file, but produce no object file. So we must check | |
5012 | # if an object file was really produced to guard against this. | |
cfc26d93 | 5013 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
866c244e | 5014 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
cfc26d93 | 5015 | acx_cv_cc_gcc_supports_ada=yes |
cfc26d93 NN |
5016 | fi |
5017 | rm -f conftest.* | |
5018 | fi | |
efd58f08 RW |
5019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5020 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
cfc26d93 | 5021 | |
1a08e38b | 5022 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
cfc26d93 NN |
5023 | have_gnat=yes |
5024 | else | |
5025 | have_gnat=no | |
5026 | fi | |
5027 | ||
efd58f08 RW |
5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5029 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5030 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5031 | $as_echo_n "(cached) " >&6 | |
866c244e DD |
5032 | else |
5033 | echo abfoo >t1 | |
5034 | echo cdfoo >t2 | |
5035 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
cb2333e8 DD |
5036 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5037 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5038 | : | |
5039 | else | |
5040 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5041 | fi | |
5042 | fi | |
866c244e DD |
5043 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5044 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
cb2333e8 | 5045 | : |
866c244e DD |
5046 | else |
5047 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5048 | fi | |
5049 | fi | |
5050 | rm t1 t2 | |
5051 | ||
5052 | fi | |
efd58f08 RW |
5053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5054 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
866c244e DD |
5055 | do_compare="$gcc_cv_prog_cmp_skip" |
5056 | ||
5057 | ||
cfc26d93 | 5058 | |
c9161585 ILT |
5059 | # Check whether --enable-bootstrap was given. |
5060 | if test "${enable_bootstrap+set}" = set; then : | |
5061 | enableval=$enable_bootstrap; | |
5062 | else | |
5063 | enable_bootstrap=default | |
5064 | fi | |
5065 | ||
5066 | ||
5067 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5068 | if test -r $srcdir/gcc/configure; then | |
5069 | have_compiler=yes | |
5070 | else | |
5071 | have_compiler=no | |
5072 | fi | |
5073 | ||
5074 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5075 | *:*:*:no) ;; | |
5076 | ||
5077 | # Default behavior. Enable bootstrap if we have a compiler | |
5078 | # and we are in a native configuration. | |
5079 | yes:$build:$build:default) | |
5080 | enable_bootstrap=yes ;; | |
5081 | ||
5082 | *:*:*:default) | |
5083 | enable_bootstrap=no ;; | |
5084 | ||
5085 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5086 | yes:$build:$build:yes) | |
5087 | ;; | |
5088 | ||
5089 | # Other configurations, but we have a compiler. Assume the user knows | |
5090 | # what he's doing. | |
5091 | yes:*:*:yes) | |
5092 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5093 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5094 | ;; | |
5095 | ||
5096 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5097 | no:*:*:yes) | |
5098 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5099 | ||
5100 | # Fail if wrong command line | |
5101 | *) | |
5102 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5103 | ;; | |
5104 | esac | |
5105 | ||
74fabfaf KG |
5106 | # Used for setting $lt_cv_objdir |
5107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5108 | $as_echo_n "checking for objdir... " >&6; } | |
5109 | if test "${lt_cv_objdir+set}" = set; then : | |
5110 | $as_echo_n "(cached) " >&6 | |
5111 | else | |
5112 | rm -f .libs 2>/dev/null | |
5113 | mkdir .libs 2>/dev/null | |
5114 | if test -d .libs; then | |
5115 | lt_cv_objdir=.libs | |
5116 | else | |
5117 | # MS-DOS does not allow filenames that begin with a dot. | |
5118 | lt_cv_objdir=_libs | |
5119 | fi | |
5120 | rmdir .libs 2>/dev/null | |
5121 | fi | |
5122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5123 | $as_echo "$lt_cv_objdir" >&6; } | |
5124 | objdir=$lt_cv_objdir | |
5125 | ||
5126 | ||
5127 | ||
5128 | ||
5129 | ||
5130 | cat >>confdefs.h <<_ACEOF | |
5131 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5132 | _ACEOF | |
5133 | ||
5134 | ||
5135 | ||
121f0eb2 | 5136 | # Check for GMP, MPFR and MPC |
1d30ae12 | 5137 | gmplibs="-lmpc -lmpfr -lgmp" |
cb2333e8 | 5138 | gmpinc= |
42f55f77 | 5139 | have_gmp=no |
121f0eb2 RW |
5140 | |
5141 | # Specify a location for mpc | |
5142 | # check for this first so it ends up on the link line before mpfr. | |
5143 | ||
efd58f08 RW |
5144 | # Check whether --with-mpc was given. |
5145 | if test "${with_mpc+set}" = set; then : | |
5146 | withval=$with_mpc; | |
5147 | fi | |
121f0eb2 | 5148 | |
121f0eb2 | 5149 | |
d5b7129a | 5150 | # Check whether --with-mpc-include was given. |
efd58f08 RW |
5151 | if test "${with_mpc_include+set}" = set; then : |
5152 | withval=$with_mpc_include; | |
5153 | fi | |
121f0eb2 | 5154 | |
121f0eb2 | 5155 | |
d5b7129a | 5156 | # Check whether --with-mpc-lib was given. |
efd58f08 RW |
5157 | if test "${with_mpc_lib+set}" = set; then : |
5158 | withval=$with_mpc_lib; | |
5159 | fi | |
121f0eb2 | 5160 | |
121f0eb2 RW |
5161 | |
5162 | if test "x$with_mpc" != x; then | |
1d30ae12 KG |
5163 | gmplibs="-L$with_mpc/lib $gmplibs" |
5164 | gmpinc="-I$with_mpc/include $gmpinc" | |
121f0eb2 RW |
5165 | fi |
5166 | if test "x$with_mpc_include" != x; then | |
1d30ae12 | 5167 | gmpinc="-I$with_mpc_include $gmpinc" |
121f0eb2 RW |
5168 | fi |
5169 | if test "x$with_mpc_lib" != x; then | |
1d30ae12 | 5170 | gmplibs="-L$with_mpc_lib $gmplibs" |
121f0eb2 RW |
5171 | fi |
5172 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
74fabfaf | 5173 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
1d30ae12 | 5174 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
121f0eb2 RW |
5175 | # Do not test the mpc version. Assume that it is sufficient, since |
5176 | # it is in the source tree, and the library has not been built yet | |
5177 | # but it would be included on the link line in the version check below | |
5178 | # hence making the test fail. | |
1d30ae12 | 5179 | have_gmp=yes |
121f0eb2 | 5180 | fi |
42f55f77 | 5181 | |
cbd6bc14 DD |
5182 | # Specify a location for mpfr |
5183 | # check for this first so it ends up on the link line before gmp. | |
b58b6ee1 | 5184 | |
efd58f08 RW |
5185 | # Check whether --with-mpfr-dir was given. |
5186 | if test "${with_mpfr_dir+set}" = set; then : | |
5187 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5188 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5189 | fi | |
5190 | ||
cbd6bc14 DD |
5191 | |
5192 | ||
efd58f08 RW |
5193 | # Check whether --with-mpfr was given. |
5194 | if test "${with_mpfr+set}" = set; then : | |
5195 | withval=$with_mpfr; | |
5196 | fi | |
b58b6ee1 | 5197 | |
cbd6bc14 | 5198 | |
d5b7129a | 5199 | # Check whether --with-mpfr-include was given. |
efd58f08 RW |
5200 | if test "${with_mpfr_include+set}" = set; then : |
5201 | withval=$with_mpfr_include; | |
5202 | fi | |
b58b6ee1 | 5203 | |
14a1406e | 5204 | |
d5b7129a | 5205 | # Check whether --with-mpfr-lib was given. |
efd58f08 RW |
5206 | if test "${with_mpfr_lib+set}" = set; then : |
5207 | withval=$with_mpfr_lib; | |
5208 | fi | |
14a1406e | 5209 | |
cbd6bc14 DD |
5210 | |
5211 | if test "x$with_mpfr" != x; then | |
5212 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
1d30ae12 | 5213 | gmpinc="-I$with_mpfr/include $gmpinc" |
cbd6bc14 | 5214 | fi |
14a1406e | 5215 | if test "x$with_mpfr_include" != x; then |
1d30ae12 | 5216 | gmpinc="-I$with_mpfr_include $gmpinc" |
14a1406e PB |
5217 | fi |
5218 | if test "x$with_mpfr_lib" != x; then | |
5219 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5220 | fi | |
42f55f77 | 5221 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
bb479a68 NC |
5222 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
5223 | if test -d ${srcdir}/mpfr/src; then | |
5224 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" | |
5225 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5226 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
5227 | else | |
5228 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" | |
5229 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" | |
5230 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" | |
5231 | fi | |
42f55f77 PB |
5232 | # Do not test the mpfr version. Assume that it is sufficient, since |
5233 | # it is in the source tree, and the library has not been built yet | |
5234 | # but it would be included on the link line in the version check below | |
5235 | # hence making the test fail. | |
5236 | have_gmp=yes | |
5237 | fi | |
cbd6bc14 | 5238 | |
cb2333e8 | 5239 | # Specify a location for gmp |
b58b6ee1 | 5240 | |
efd58f08 RW |
5241 | # Check whether --with-gmp-dir was given. |
5242 | if test "${with_gmp_dir+set}" = set; then : | |
5243 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5244 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5245 | fi | |
5246 | ||
cb2333e8 DD |
5247 | |
5248 | ||
efd58f08 RW |
5249 | # Check whether --with-gmp was given. |
5250 | if test "${with_gmp+set}" = set; then : | |
5251 | withval=$with_gmp; | |
5252 | fi | |
b58b6ee1 | 5253 | |
cb2333e8 | 5254 | |
d5b7129a | 5255 | # Check whether --with-gmp-include was given. |
efd58f08 RW |
5256 | if test "${with_gmp_include+set}" = set; then : |
5257 | withval=$with_gmp_include; | |
5258 | fi | |
b58b6ee1 | 5259 | |
14a1406e | 5260 | |
d5b7129a | 5261 | # Check whether --with-gmp-lib was given. |
efd58f08 RW |
5262 | if test "${with_gmp_lib+set}" = set; then : |
5263 | withval=$with_gmp_lib; | |
5264 | fi | |
14a1406e PB |
5265 | |
5266 | ||
cb2333e8 | 5267 | |
cbd6bc14 DD |
5268 | if test "x$with_gmp" != x; then |
5269 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5270 | gmpinc="-I$with_gmp/include $gmpinc" | |
cb2333e8 | 5271 | fi |
14a1406e PB |
5272 | if test "x$with_gmp_include" != x; then |
5273 | gmpinc="-I$with_gmp_include $gmpinc" | |
5274 | fi | |
5275 | if test "x$with_gmp_lib" != x; then | |
5276 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5277 | fi | |
42f55f77 | 5278 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
74fabfaf | 5279 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
42f55f77 | 5280 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
65a20d8c | 5281 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
74fabfaf | 5282 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
a626f4ee | 5283 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
42f55f77 PB |
5284 | # Do not test the gmp version. Assume that it is sufficient, since |
5285 | # it is in the source tree, and the library has not been built yet | |
5286 | # but it would be included on the link line in the version check below | |
5287 | # hence making the test fail. | |
5288 | have_gmp=yes | |
5289 | fi | |
cb2333e8 | 5290 | |
bd74ff2b | 5291 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
42f55f77 PB |
5292 | have_gmp=yes |
5293 | saved_CFLAGS="$CFLAGS" | |
5294 | CFLAGS="$CFLAGS $gmpinc" | |
dded80b3 KG |
5295 | # Check for the recommended and required versions of GMP. |
5296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5297 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
112afadf RW |
5298 | |
5299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
dded80b3 KG |
5300 | /* end confdefs.h. */ |
5301 | #include "gmp.h" | |
5302 | int | |
5303 | main () | |
5304 | { | |
5305 | ||
5306 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5307 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5308 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0) | |
5309 | choke me | |
5310 | #endif | |
5311 | ||
5312 | ; | |
5313 | return 0; | |
5314 | } | |
5315 | _ACEOF | |
5316 | if ac_fn_c_try_compile "$LINENO"; then : | |
112afadf | 5317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b58b6ee1 | 5318 | /* end confdefs.h. */ |
dded80b3 | 5319 | #include <gmp.h> |
b58b6ee1 DJ |
5320 | int |
5321 | main () | |
5322 | { | |
cb2333e8 | 5323 | |
dded80b3 KG |
5324 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5325 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5326 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
42f55f77 PB |
5327 | choke me |
5328 | #endif | |
b58b6ee1 DJ |
5329 | |
5330 | ; | |
5331 | return 0; | |
5332 | } | |
5333 | _ACEOF | |
efd58f08 RW |
5334 | if ac_fn_c_try_compile "$LINENO"; then : |
5335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5336 | $as_echo "yes" >&6; } | |
dded80b3 KG |
5337 | else |
5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5339 | $as_echo "buggy but acceptable" >&6; } | |
5340 | fi | |
5341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b58b6ee1 | 5342 | else |
efd58f08 RW |
5343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5344 | $as_echo "no" >&6; }; have_gmp=no | |
b58b6ee1 | 5345 | fi |
efd58f08 | 5346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
cb2333e8 | 5347 | |
121f0eb2 | 5348 | # If we have GMP, check the MPFR version. |
42f55f77 | 5349 | if test x"$have_gmp" = xyes; then |
dded80b3 KG |
5350 | # Check for the recommended and required versions of MPFR. |
5351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5352 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
efd58f08 | 5353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b58b6ee1 | 5354 | /* end confdefs.h. */ |
75ea5758 | 5355 | #include <gmp.h> |
42f55f77 | 5356 | #include <mpfr.h> |
b58b6ee1 DJ |
5357 | int |
5358 | main () | |
5359 | { | |
75ea5758 | 5360 | |
a626f4ee | 5361 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
42f55f77 PB |
5362 | choke me |
5363 | #endif | |
b58b6ee1 DJ |
5364 | |
5365 | ; | |
5366 | return 0; | |
5367 | } | |
5368 | _ACEOF | |
efd58f08 RW |
5369 | if ac_fn_c_try_compile "$LINENO"; then : |
5370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b58b6ee1 | 5371 | /* end confdefs.h. */ |
cb2333e8 | 5372 | #include <gmp.h> |
42f55f77 | 5373 | #include <mpfr.h> |
b58b6ee1 DJ |
5374 | int |
5375 | main () | |
5376 | { | |
a6a4e782 | 5377 | |
dded80b3 | 5378 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
42f55f77 PB |
5379 | choke me |
5380 | #endif | |
121f0eb2 RW |
5381 | |
5382 | ; | |
5383 | return 0; | |
5384 | } | |
5385 | _ACEOF | |
efd58f08 RW |
5386 | if ac_fn_c_try_compile "$LINENO"; then : |
5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5388 | $as_echo "yes" >&6; } | |
121f0eb2 | 5389 | else |
efd58f08 RW |
5390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5391 | $as_echo "buggy but acceptable" >&6; } | |
121f0eb2 | 5392 | fi |
efd58f08 | 5393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
121f0eb2 | 5394 | else |
efd58f08 RW |
5395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5396 | $as_echo "no" >&6; }; have_gmp=no | |
121f0eb2 | 5397 | fi |
efd58f08 | 5398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
121f0eb2 RW |
5399 | fi |
5400 | ||
5401 | # Check for the MPC header version. | |
1d30ae12 | 5402 | if test x"$have_gmp" = xyes ; then |
dded80b3 | 5403 | # Check for the recommended and required versions of MPC. |
efd58f08 RW |
5404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5405 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
121f0eb2 RW |
5407 | /* end confdefs.h. */ |
5408 | #include <mpc.h> | |
5409 | int | |
5410 | main () | |
5411 | { | |
5412 | ||
dded80b3 KG |
5413 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5414 | choke me | |
5415 | #endif | |
5416 | ||
5417 | ; | |
5418 | return 0; | |
5419 | } | |
5420 | _ACEOF | |
5421 | if ac_fn_c_try_compile "$LINENO"; then : | |
5422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5423 | /* end confdefs.h. */ | |
5424 | #include <mpc.h> | |
5425 | int | |
5426 | main () | |
5427 | { | |
5428 | ||
5429 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
121f0eb2 RW |
5430 | choke me |
5431 | #endif | |
5432 | ||
5433 | ; | |
5434 | return 0; | |
5435 | } | |
5436 | _ACEOF | |
efd58f08 RW |
5437 | if ac_fn_c_try_compile "$LINENO"; then : |
5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
1d30ae12 | 5439 | $as_echo "yes" >&6; } |
dded80b3 KG |
5440 | else |
5441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5442 | $as_echo "buggy but acceptable" >&6; } | |
5443 | fi | |
5444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
121f0eb2 | 5445 | else |
efd58f08 | 5446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1d30ae12 | 5447 | $as_echo "no" >&6; }; have_gmp=no |
121f0eb2 | 5448 | fi |
efd58f08 | 5449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
121f0eb2 RW |
5450 | fi |
5451 | ||
5452 | # Now check the MPFR library. | |
5453 | if test x"$have_gmp" = xyes; then | |
5454 | saved_LIBS="$LIBS" | |
5455 | LIBS="$LIBS $gmplibs" | |
1d30ae12 KG |
5456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5457 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
efd58f08 | 5458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
121f0eb2 | 5459 | /* end confdefs.h. */ |
1d30ae12 | 5460 | #include <mpc.h> |
121f0eb2 RW |
5461 | int |
5462 | main () | |
5463 | { | |
5464 | ||
5465 | mpfr_t n; | |
5466 | mpfr_t x; | |
1d30ae12 | 5467 | mpc_t c; |
121f0eb2 RW |
5468 | int t; |
5469 | mpfr_init (n); | |
5470 | mpfr_init (x); | |
5471 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5472 | mpfr_erfc (n, x, GMP_RNDN); | |
5473 | mpfr_subnormalize (x, t, GMP_RNDN); | |
1d30ae12 KG |
5474 | mpfr_clear(n); |
5475 | mpfr_clear(x); | |
5476 | mpc_init2 (c, 53); | |
5477 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5478 | mpc_cosh (c, c, MPC_RNDNN); | |
5479 | mpc_pow (c, c, c, MPC_RNDNN); | |
5480 | mpc_acosh (c, c, MPC_RNDNN); | |
5481 | mpc_clear (c); | |
b58b6ee1 DJ |
5482 | |
5483 | ; | |
5484 | return 0; | |
5485 | } | |
5486 | _ACEOF | |
efd58f08 RW |
5487 | if ac_fn_c_try_link "$LINENO"; then : |
5488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5489 | $as_echo "yes" >&6; } | |
b58b6ee1 | 5490 | else |
efd58f08 RW |
5491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5492 | $as_echo "no" >&6; }; have_gmp=no | |
b58b6ee1 | 5493 | fi |
efd58f08 RW |
5494 | rm -f core conftest.err conftest.$ac_objext \ |
5495 | conftest$ac_exeext conftest.$ac_ext | |
121f0eb2 RW |
5496 | LIBS="$saved_LIBS" |
5497 | fi | |
5498 | ||
42f55f77 | 5499 | CFLAGS="$saved_CFLAGS" |
cb2333e8 | 5500 | |
dded80b3 KG |
5501 | # The library versions listed in the error message below should match |
5502 | # the HARD-minimums enforced above. | |
42f55f77 | 5503 | if test x$have_gmp != xyes; then |
a626f4ee | 5504 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
1d30ae12 KG |
5505 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5506 | their locations. Source code for these libraries can be found at | |
5507 | their respective hosting sites as well as at | |
5508 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5509 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5510 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5511 | make sure that you have installed both the libraries and the header | |
5512 | files. They may be located in separate packages." "$LINENO" 5 | |
42f55f77 | 5513 | fi |
a6a4e782 DD |
5514 | fi |
5515 | ||
121f0eb2 RW |
5516 | # Flags needed for both GMP, MPFR and/or MPC. |
5517 | ||
5518 | ||
5519 | ||
cb2333e8 DD |
5520 | |
5521 | ||
5522 | ||
a626f4ee | 5523 | |
9f8da9ce JM |
5524 | # Allow host libstdc++ to be specified for static linking with PPL. |
5525 | ||
efd58f08 RW |
5526 | # Check whether --with-host-libstdcxx was given. |
5527 | if test "${with_host_libstdcxx+set}" = set; then : | |
5528 | withval=$with_host_libstdcxx; | |
5529 | fi | |
9f8da9ce | 5530 | |
9f8da9ce JM |
5531 | |
5532 | case $with_host_libstdcxx in | |
5533 | no|yes) | |
efd58f08 | 5534 | as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5 |
9f8da9ce JM |
5535 | ;; |
5536 | esac | |
311b6756 | 5537 | |
121f0eb2 RW |
5538 | # Linker flags to use for stage1 or when not boostrapping. |
5539 | ||
efd58f08 RW |
5540 | # Check whether --with-stage1-ldflags was given. |
5541 | if test "${with_stage1_ldflags+set}" = set; then : | |
5542 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
121f0eb2 RW |
5543 | stage1_ldflags= |
5544 | else | |
5545 | stage1_ldflags=$withval | |
5546 | fi | |
5547 | else | |
5548 | stage1_ldflags= | |
efd58f08 RW |
5549 | fi |
5550 | ||
121f0eb2 RW |
5551 | |
5552 | ||
5553 | # Libraries to use for stage1 or when not bootstrapping. | |
5554 | ||
efd58f08 RW |
5555 | # Check whether --with-stage1-libs was given. |
5556 | if test "${with_stage1_libs+set}" = set; then : | |
5557 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
121f0eb2 RW |
5558 | stage1_libs= |
5559 | else | |
5560 | stage1_libs=$withval | |
5561 | fi | |
5562 | else | |
5563 | stage1_libs=$with_host_libstdcxx | |
efd58f08 RW |
5564 | fi |
5565 | ||
121f0eb2 RW |
5566 | |
5567 | ||
121f0eb2 RW |
5568 | # Libraries to use for stage2 and later builds. This defaults to the |
5569 | # argument passed to --with-host-libstdcxx. | |
5570 | ||
efd58f08 RW |
5571 | # Check whether --with-boot-libs was given. |
5572 | if test "${with_boot_libs+set}" = set; then : | |
5573 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
121f0eb2 RW |
5574 | poststage1_libs= |
5575 | else | |
5576 | poststage1_libs=$withval | |
5577 | fi | |
5578 | else | |
5579 | poststage1_libs=$with_host_libstdcxx | |
efd58f08 RW |
5580 | fi |
5581 | ||
121f0eb2 RW |
5582 | |
5583 | ||
f107c370 NC |
5584 | # Linker flags to use for stage2 and later builds. |
5585 | ||
5586 | # Check whether --with-boot-ldflags was given. | |
5587 | if test "${with_boot_ldflags+set}" = set; then : | |
5588 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5589 | poststage1_ldflags= | |
5590 | else | |
5591 | poststage1_ldflags=$withval | |
5592 | fi | |
5593 | else | |
5594 | poststage1_ldflags= | |
f2588cb9 ILT |
5595 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5596 | # statically. But if the user explicitly specified the libraries to | |
5597 | # use, trust that they are doing what they want. | |
5598 | if test "$poststage1_libs" = ""; then | |
f107c370 NC |
5599 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5600 | fi | |
5601 | fi | |
5602 | ||
5603 | ||
5604 | ||
a626f4ee | 5605 | # Check for ISL |
311b6756 JM |
5606 | |
5607 | ||
a626f4ee L |
5608 | # Check whether --with-isl was given. |
5609 | if test "${with_isl+set}" = set; then : | |
5610 | withval=$with_isl; | |
efd58f08 | 5611 | fi |
311b6756 | 5612 | |
311b6756 | 5613 | |
a626f4ee L |
5614 | # Check whether --with-isl-include was given. |
5615 | if test "${with_isl_include+set}" = set; then : | |
5616 | withval=$with_isl_include; | |
efd58f08 RW |
5617 | fi |
5618 | ||
311b6756 | 5619 | |
a626f4ee L |
5620 | # Check whether --with-isl-lib was given. |
5621 | if test "${with_isl_lib+set}" = set; then : | |
5622 | withval=$with_isl_lib; | |
efd58f08 | 5623 | fi |
311b6756 | 5624 | |
311b6756 | 5625 | |
a626f4ee L |
5626 | # Check whether --enable-isl-version-check was given. |
5627 | if test "${enable_isl_version_check+set}" = set; then : | |
5628 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5629 | else | |
5630 | ENABLE_ISL_CHECK=yes | |
2e4cdd55 SP |
5631 | fi |
5632 | ||
5633 | ||
a626f4ee L |
5634 | # Initialize isllibs and islinc. |
5635 | case $with_isl in | |
5636 | no) | |
5637 | isllibs= | |
5638 | islinc= | |
5639 | ;; | |
5640 | "" | yes) | |
5641 | ;; | |
5642 | *) | |
5643 | isllibs="-L$with_isl/lib" | |
5644 | islinc="-I$with_isl/include" | |
5645 | ;; | |
5646 | esac | |
5647 | if test "x${with_isl_include}" != x ; then | |
5648 | islinc="-I$with_isl_include" | |
5649 | fi | |
5650 | if test "x${with_isl_lib}" != x; then | |
5651 | isllibs="-L$with_isl_lib" | |
5652 | fi | |
5653 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5654 | && test -d ${srcdir}/isl; then | |
5655 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5656 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5657 | ENABLE_ISL_CHECK=no | |
5658 | fi | |
2e4cdd55 | 5659 | |
a626f4ee | 5660 | isllibs="${isllibs} -lisl" |
2e4cdd55 | 5661 | |
2e4cdd55 | 5662 | |
311b6756 | 5663 | |
a626f4ee L |
5664 | |
5665 | ||
5666 | if test "x$with_isl" != "xno"; then | |
5667 | ||
5668 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
5669 | _isl_saved_CFLAGS=$CFLAGS | |
5670 | _isl_saved_LDFLAGS=$LDFLAGS | |
5671 | _isl_saved_LIBS=$LIBS | |
5672 | ||
5673 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
5674 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}" | |
5675 | LIBS="${_isl_saved_LIBS} -lisl" | |
5676 | echo $CFLAGS | |
5677 | ||
5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5 | |
5679 | $as_echo_n "checking for version 0.10 of ISL... " >&6; } | |
5680 | if test "${gcc_cv_isl+set}" = set; then : | |
2e4cdd55 SP |
5681 | $as_echo_n "(cached) " >&6 |
5682 | else | |
a626f4ee L |
5683 | if test "$cross_compiling" = yes; then : |
5684 | gcc_cv_isl=yes | |
5685 | else | |
5686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2e4cdd55 | 5687 | /* end confdefs.h. */ |
a626f4ee L |
5688 | #include <isl/version.h> |
5689 | #include <string.h> | |
2e4cdd55 SP |
5690 | int |
5691 | main () | |
5692 | { | |
a626f4ee L |
5693 | if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0) |
5694 | return 1; | |
5695 | ||
2e4cdd55 SP |
5696 | ; |
5697 | return 0; | |
5698 | } | |
5699 | _ACEOF | |
a626f4ee L |
5700 | if ac_fn_c_try_run "$LINENO"; then : |
5701 | gcc_cv_isl=yes | |
311b6756 | 5702 | else |
a626f4ee | 5703 | gcc_cv_isl=no |
2e4cdd55 | 5704 | fi |
a626f4ee L |
5705 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5706 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2e4cdd55 | 5707 | fi |
a626f4ee | 5708 | |
efd58f08 | 5709 | fi |
a626f4ee L |
5710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
5711 | $as_echo "$gcc_cv_isl" >&6; } | |
efd58f08 | 5712 | |
a626f4ee L |
5713 | CFLAGS=$_isl_saved_CFLAGS |
5714 | LDFLAGS=$_isl_saved_LDFLAGS | |
5715 | LIBS=$_isl_saved_LIBS | |
2e4cdd55 | 5716 | fi |
311b6756 | 5717 | |
2e4cdd55 | 5718 | |
311b6756 | 5719 | |
311b6756 | 5720 | |
a626f4ee L |
5721 | |
5722 | ||
5723 | ||
5724 | if test "x${with_isl}" = xno; then | |
5725 | graphite_requested=no | |
5726 | elif test "x${with_isl}" != x \ | |
5727 | || test "x${with_isl_include}" != x \ | |
5728 | || test "x${with_isl_lib}" != x ; then | |
5729 | graphite_requested=yes | |
5730 | else | |
5731 | graphite_requested=no | |
2e4cdd55 | 5732 | fi |
311b6756 | 5733 | |
311b6756 JM |
5734 | |
5735 | ||
a626f4ee L |
5736 | if test "${gcc_cv_isl}" = no ; then |
5737 | isllibs= | |
5738 | islinc= | |
5739 | fi | |
311b6756 | 5740 | |
a626f4ee L |
5741 | if test "${graphite_requested}" = yes \ |
5742 | && test "x${isllibs}" = x \ | |
5743 | && test "x${islinc}" = x ; then | |
311b6756 | 5744 | |
a626f4ee L |
5745 | as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5 |
5746 | fi | |
d5b7129a | 5747 | |
311b6756 | 5748 | |
a626f4ee L |
5749 | fi |
5750 | ||
5751 | # Check for CLOOG | |
5752 | ||
311b6756 | 5753 | |
efd58f08 RW |
5754 | # Check whether --with-cloog was given. |
5755 | if test "${with_cloog+set}" = set; then : | |
5756 | withval=$with_cloog; | |
efd58f08 RW |
5757 | fi |
5758 | ||
311b6756 | 5759 | |
d5b7129a | 5760 | # Check whether --with-cloog-include was given. |
efd58f08 RW |
5761 | if test "${with_cloog_include+set}" = set; then : |
5762 | withval=$with_cloog_include; | |
5763 | fi | |
311b6756 | 5764 | |
311b6756 | 5765 | |
d5b7129a | 5766 | # Check whether --with-cloog-lib was given. |
efd58f08 RW |
5767 | if test "${with_cloog_lib+set}" = set; then : |
5768 | withval=$with_cloog_lib; | |
5769 | fi | |
311b6756 | 5770 | |
311b6756 | 5771 | |
d5b7129a ILT |
5772 | # Check whether --enable-cloog-version-check was given. |
5773 | if test "${enable_cloog_version_check+set}" = set; then : | |
5774 | enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval | |
5775 | else | |
5776 | ENABLE_CLOOG_CHECK=yes | |
5777 | fi | |
5778 | ||
5779 | ||
5780 | # Initialize clooglibs and clooginc. | |
5781 | case $with_cloog in | |
5782 | no) | |
5783 | clooglibs= | |
5784 | clooginc= | |
5785 | ;; | |
5786 | "" | yes) | |
5787 | ;; | |
5788 | *) | |
5789 | clooglibs="-L$with_cloog/lib" | |
5790 | clooginc="-I$with_cloog/include" | |
5791 | ;; | |
5792 | esac | |
5793 | if test "x${with_cloog_include}" != x ; then | |
5794 | clooginc="-I$with_cloog_include" | |
5795 | fi | |
5796 | if test "x${with_cloog_lib}" != x; then | |
5797 | clooglibs="-L$with_cloog_lib" | |
5798 | fi | |
a626f4ee L |
5799 | if test "x${clooginc}" = x && test "x${clooglibs}" = x \ |
5800 | && test -d ${srcdir}/cloog; then | |
5801 | clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' ' | |
5802 | clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include ' | |
a8ed3114 RW |
5803 | fi |
5804 | ||
a626f4ee L |
5805 | clooginc="-DCLOOG_INT_GMP ${clooginc}" |
5806 | clooglibs="${clooglibs} -lcloog-isl ${isllibs}" | |
a8ed3114 | 5807 | |
d5b7129a | 5808 | |
efd58f08 | 5809 | |
311b6756 | 5810 | |
d5b7129a | 5811 | |
a626f4ee L |
5812 | if test "x$isllibs" = x && test "x$islinc" = x; then |
5813 | clooglibs= | |
5814 | clooginc= | |
5815 | elif test "x$with_cloog" != "xno"; then | |
d5b7129a ILT |
5816 | |
5817 | ||
5818 | ||
5819 | if test "${ENABLE_CLOOG_CHECK}" = yes ; then | |
5820 | _cloog_saved_CFLAGS=$CFLAGS | |
5821 | _cloog_saved_LDFLAGS=$LDFLAGS | |
5822 | ||
a626f4ee L |
5823 | CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}" |
5824 | LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}" | |
d5b7129a | 5825 | |
a626f4ee L |
5826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5 |
5827 | $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; } | |
5828 | if test "${gcc_cv_cloog+set}" = set; then : | |
d5b7129a ILT |
5829 | $as_echo_n "(cached) " >&6 |
5830 | else | |
5831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5832 | /* end confdefs.h. */ | |
a626f4ee | 5833 | #include "cloog/version.h" |
d5b7129a ILT |
5834 | int |
5835 | main () | |
5836 | { | |
5837 | #if CLOOG_VERSION_MAJOR != 0 \ | |
a626f4ee L |
5838 | || CLOOG_VERSION_MINOR != 17 \ |
5839 | || CLOOG_VERSION_REVISION < 0 | |
d5b7129a ILT |
5840 | choke me |
5841 | #endif | |
5842 | ; | |
5843 | return 0; | |
5844 | } | |
5845 | _ACEOF | |
5846 | if ac_fn_c_try_compile "$LINENO"; then : | |
a626f4ee | 5847 | gcc_cv_cloog=yes |
d5b7129a | 5848 | else |
a626f4ee | 5849 | gcc_cv_cloog=no |
d5b7129a ILT |
5850 | fi |
5851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5852 | fi | |
a626f4ee L |
5853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5 |
5854 | $as_echo "$gcc_cv_cloog" >&6; } | |
d5b7129a ILT |
5855 | |
5856 | CFLAGS=$_cloog_saved_CFLAGS | |
5857 | LDFLAGS=$_cloog_saved_LDFLAGS | |
5858 | fi | |
5859 | ||
5860 | ||
5861 | ||
311b6756 | 5862 | |
311b6756 JM |
5863 | |
5864 | ||
5865 | ||
a8ed3114 RW |
5866 | if test "x${with_cloog}" = xno; then |
5867 | graphite_requested=no | |
5868 | elif test "x${with_cloog}" != x \ | |
d5b7129a ILT |
5869 | || test "x${with_cloog_include}" != x \ |
5870 | || test "x${with_cloog_lib}" != x ; then | |
5871 | graphite_requested=yes | |
5872 | else | |
5873 | graphite_requested=no | |
5874 | fi | |
5875 | ||
5876 | ||
5877 | ||
a626f4ee | 5878 | if test "${gcc_cv_cloog}" = no ; then |
d5b7129a ILT |
5879 | clooglibs= |
5880 | clooginc= | |
5881 | fi | |
5882 | ||
5883 | if test "${graphite_requested}" = yes \ | |
5884 | && test "x${clooglibs}" = x \ | |
5885 | && test "x${clooginc}" = x ; then | |
5886 | ||
a8ed3114 | 5887 | as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5 |
d5b7129a ILT |
5888 | fi |
5889 | ||
5890 | ||
5891 | fi | |
5892 | ||
a626f4ee L |
5893 | # If either the ISL or the CLooG check failed, disable builds of in-tree |
5894 | # variants of both | |
5895 | if test "x$clooglibs" = x && test "x$clooginc" = x; then | |
5896 | noconfigdirs="$noconfigdirs cloog isl" | |
5897 | fi | |
5898 | ||
bd45d6fa ILT |
5899 | # Check for LTO support. |
5900 | # Check whether --enable-lto was given. | |
5901 | if test "${enable_lto+set}" = set; then : | |
5902 | enableval=$enable_lto; enable_lto=$enableval | |
5903 | else | |
5904 | enable_lto=yes; default_enable_lto=yes | |
5905 | fi | |
5906 | ||
5907 | ||
f107c370 | 5908 | |
0b3906a8 DK |
5909 | |
5910 | ||
5911 | target_elf=no | |
5912 | case $target in | |
5913 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
7b6010cc | 5914 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
112afadf | 5915 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*) |
0b3906a8 DK |
5916 | target_elf=no |
5917 | ;; | |
5918 | *) | |
5919 | target_elf=yes | |
5920 | ;; | |
5921 | esac | |
5922 | ||
5923 | if test $target_elf = yes; then : | |
5e504c84 DK |
5924 | # ELF platforms build the lto-plugin always. |
5925 | build_lto_plugin=yes | |
0b3906a8 | 5926 | |
0b3906a8 DK |
5927 | else |
5928 | if test x"$default_enable_lto" = x"yes" ; then | |
65a20d8c | 5929 | case $target in |
72a19a69 | 5930 | *-apple-darwin9* | *-cygwin* | *-mingw*) ;; |
5e504c84 | 5931 | # On other non-ELF platforms, LTO has yet to be validated. |
65a20d8c RW |
5932 | *) enable_lto=no ;; |
5933 | esac | |
0b3906a8 | 5934 | else |
65a20d8c RW |
5935 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
5936 | # It would also be nice to check the binutils support, but we don't | |
0b3906a8 DK |
5937 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
5938 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
5939 | # -flto it won't be needed until after installation anyway. | |
5940 | case $target in | |
1a91b8c0 | 5941 | *-cygwin* | *-mingw* | *-apple-darwin*) ;; |
0b3906a8 DK |
5942 | *) if test x"$enable_lto" = x"yes"; then |
5943 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
5944 | fi | |
5945 | ;; | |
5946 | esac | |
5947 | fi | |
1a91b8c0 | 5948 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
5e504c84 | 5949 | # Build it unless LTO was explicitly disabled. |
1a91b8c0 | 5950 | case $target in |
5e504c84 | 5951 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1a91b8c0 DK |
5952 | *) ;; |
5953 | esac | |
5e504c84 | 5954 | |
0b3906a8 DK |
5955 | fi |
5956 | ||
bd45d6fa | 5957 | |
311b6756 | 5958 | |
a626f4ee | 5959 | # By default, C and C++ are the only stage 1 languages. |
75ea5758 | 5960 | stage1_languages=,c, |
457eaf16 | 5961 | |
121f0eb2 | 5962 | # Target libraries that we bootstrap. |
bf01561d | 5963 | bootstrap_target_libs=,target-libgcc, |
121f0eb2 | 5964 | |
cfc26d93 NN |
5965 | # Figure out what language subdirectories are present. |
5966 | # Look if the user specified --enable-languages="..."; if not, use | |
5967 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
5968 | # go away some day. | |
5969 | # NB: embedded tabs in this IF block -- do not untabify | |
5970 | if test -d ${srcdir}/gcc; then | |
5971 | if test x"${enable_languages+set}" != xset; then | |
5972 | if test x"${LANGUAGES+set}" = xset; then | |
5973 | enable_languages="${LANGUAGES}" | |
5974 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
5975 | else | |
5976 | enable_languages=all | |
5977 | fi | |
5978 | else | |
5979 | if test x"${enable_languages}" = x || | |
5980 | test x"${enable_languages}" = xyes; | |
5981 | then | |
5982 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
5983 | exit 1 | |
5984 | fi | |
5985 | fi | |
5986 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
5987 | ||
c2105cb9 DE |
5988 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
5989 | # and make the substitution. | |
5990 | case ,${enable_languages}, in | |
5991 | *,f95,*) | |
5992 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
5993 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
5994 | ;; | |
5995 | esac | |
5996 | ||
a626f4ee L |
5997 | # If bootstrapping, C++ must be enabled. |
5998 | case ",$enable_languages,:$enable_bootstrap" in | |
5999 | *,c++,*:*) ;; | |
6000 | *:yes) | |
c9161585 ILT |
6001 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6002 | enable_languages="${enable_languages},c++" | |
6003 | else | |
a626f4ee | 6004 | as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5 |
c9161585 ILT |
6005 | fi |
6006 | ;; | |
6007 | esac | |
6008 | ||
cfc26d93 NN |
6009 | # First scan to see if an enabled language requires some other language. |
6010 | # We assume that a given config-lang.in will list all the language | |
6011 | # front ends it requires, even if some are required indirectly. | |
6012 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6013 | case ${lang_frag} in | |
6014 | ..) ;; | |
6015 | # The odd quoting in the next line works around | |
6016 | # an apparent bug in bash 1.12 on linux. | |
6017 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6018 | *) | |
d5b7129a ILT |
6019 | # From the config-lang.in, get $language, $lang_requires, and |
6020 | # $lang_requires_boot_languages. | |
cfc26d93 NN |
6021 | language= |
6022 | lang_requires= | |
d5b7129a | 6023 | lang_requires_boot_languages= |
cfc26d93 | 6024 | . ${lang_frag} |
d5b7129a | 6025 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
cfc26d93 NN |
6026 | case ,${enable_languages}, in |
6027 | *,$other,*) ;; | |
6028 | *,all,*) ;; | |
6029 | *,$language,*) | |
6030 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6031 | enable_languages="${enable_languages},${other}" | |
6032 | ;; | |
6033 | esac | |
6034 | done | |
d5b7129a ILT |
6035 | for other in ${lang_requires_boot_languages} ; do |
6036 | if test "$other" != "c"; then | |
6037 | case ,${enable_stage1_languages}, in | |
6038 | *,$other,*) ;; | |
6039 | *,all,*) ;; | |
6040 | *) | |
6041 | case ,${enable_languages}, in | |
6042 | *,$language,*) | |
6043 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6044 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6045 | ;; | |
6046 | esac | |
6047 | ;; | |
6048 | esac | |
6049 | fi | |
6050 | done | |
cfc26d93 NN |
6051 | ;; |
6052 | esac | |
6053 | done | |
6054 | ||
75ea5758 | 6055 | new_enable_languages=,c, |
bd45d6fa ILT |
6056 | |
6057 | # If LTO is enabled, add the LTO front end. | |
6058 | extra_host_libiberty_configure_flags= | |
6059 | if test "$enable_lto" = "yes" ; then | |
6c41e710 RW |
6060 | case ,${enable_languages}, in |
6061 | *,lto,*) ;; | |
6062 | *) enable_languages="${enable_languages},lto" ;; | |
6063 | esac | |
1a91b8c0 | 6064 | if test "${build_lto_plugin}" = "yes" ; then |
bd45d6fa ILT |
6065 | configdirs="$configdirs lto-plugin" |
6066 | extra_host_libiberty_configure_flags=--enable-shared | |
6067 | fi | |
6068 | fi | |
6069 | ||
6070 | ||
cfc26d93 | 6071 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
75ea5758 | 6072 | potential_languages=,c, |
cfc26d93 | 6073 | |
77a5d6cc ILT |
6074 | enabled_target_libs= |
6075 | disabled_target_libs= | |
6076 | ||
cfc26d93 NN |
6077 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6078 | case ${lang_frag} in | |
6079 | ..) ;; | |
6080 | # The odd quoting in the next line works around | |
6081 | # an apparent bug in bash 1.12 on linux. | |
6082 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6083 | *) | |
b58b6ee1 | 6084 | # From the config-lang.in, get $language, $target_libs, |
457eaf16 | 6085 | # $lang_dirs, $boot_language, and $build_by_default |
cfc26d93 NN |
6086 | language= |
6087 | target_libs= | |
6088 | lang_dirs= | |
f90716dd | 6089 | subdir_requires= |
75ea5758 PB |
6090 | boot_language=no |
6091 | build_by_default=yes | |
cfc26d93 | 6092 | . ${lang_frag} |
75ea5758 PB |
6093 | if test x${language} = x; then |
6094 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6095 | exit 1 | |
6096 | fi | |
6097 | ||
c9161585 | 6098 | if test "$language" = "c++"; then |
a626f4ee | 6099 | boot_language=yes |
121f0eb2 RW |
6100 | fi |
6101 | ||
75ea5758 PB |
6102 | case ,${enable_languages}, in |
6103 | *,${language},*) | |
a626f4ee L |
6104 | # Language was explicitly selected; include it |
6105 | # unless it is C, which is enabled by default. | |
6106 | if test "$language" != "c"; then | |
6107 | add_this_lang=yes | |
6108 | fi | |
cfc26d93 | 6109 | ;; |
75ea5758 PB |
6110 | *,all,*) |
6111 | # 'all' was selected, select it if it is a default language | |
6112 | add_this_lang=${build_by_default} | |
cfc26d93 NN |
6113 | ;; |
6114 | *) | |
6115 | add_this_lang=no | |
6116 | ;; | |
6117 | esac | |
cb2333e8 | 6118 | |
f90716dd | 6119 | # Disable languages that need other directories if these aren't available. |
37b43cde | 6120 | for i in $subdir_requires; do |
69d5f332 | 6121 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
f90716dd PB |
6122 | case ,${enable_languages}, in |
6123 | *,${language},*) | |
6124 | # Specifically requested language; tell them. | |
efd58f08 | 6125 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
f90716dd PB |
6126 | ;; |
6127 | *) | |
6128 | # Silently disable. | |
75ea5758 | 6129 | add_this_lang=unsupported |
f90716dd PB |
6130 | ;; |
6131 | esac | |
6132 | done | |
6133 | ||
75ea5758 PB |
6134 | # Disable Ada if no preexisting GNAT is available. |
6135 | case ,${enable_languages},:${language}:${have_gnat} in | |
6136 | *,${language},*:ada:no) | |
6137 | # Specifically requested language; tell them. | |
efd58f08 | 6138 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
75ea5758 PB |
6139 | ;; |
6140 | *:ada:no) | |
6141 | # Silently disable. | |
6142 | add_this_lang=unsupported | |
6143 | ;; | |
6144 | esac | |
6145 | ||
aac893c5 HPN |
6146 | # Disable a language that is unsupported by the target. |
6147 | case " $unsupported_languages " in | |
6148 | *" $language "*) | |
75ea5758 | 6149 | add_this_lang=unsupported |
aac893c5 HPN |
6150 | ;; |
6151 | esac | |
6152 | ||
cb2333e8 | 6153 | case $add_this_lang in |
75ea5758 | 6154 | unsupported) |
cfc26d93 | 6155 | # Remove language-dependent dirs. |
77a5d6cc ILT |
6156 | disabled_target_libs="$disabled_target_libs $target_libs" |
6157 | noconfigdirs="$noconfigdirs $lang_dirs" | |
457eaf16 | 6158 | ;; |
75ea5758 PB |
6159 | no) |
6160 | # Remove language-dependent dirs; still show language as supported. | |
77a5d6cc ILT |
6161 | disabled_target_libs="$disabled_target_libs $target_libs" |
6162 | noconfigdirs="$noconfigdirs $lang_dirs" | |
75ea5758 PB |
6163 | potential_languages="${potential_languages}${language}," |
6164 | ;; | |
6165 | yes) | |
6166 | new_enable_languages="${new_enable_languages}${language}," | |
6167 | potential_languages="${potential_languages}${language}," | |
457eaf16 | 6168 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
77a5d6cc | 6169 | enabled_target_libs="$enabled_target_libs $target_libs" |
e1762cf3 RW |
6170 | case "${boot_language}:,$enable_stage1_languages," in |
6171 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
8ec98d6c | 6172 | # Add to (comma-separated) list of stage 1 languages. |
e1762cf3 RW |
6173 | case ",$stage1_languages," in |
6174 | *,$language,* | ,yes, | ,all,) ;; | |
6175 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6176 | esac | |
121f0eb2 RW |
6177 | # We need to bootstrap any supporting libraries. |
6178 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
457eaf16 NN |
6179 | ;; |
6180 | esac | |
6181 | ;; | |
cfc26d93 NN |
6182 | esac |
6183 | ;; | |
6184 | esac | |
6185 | done | |
6186 | ||
77a5d6cc ILT |
6187 | # Add target libraries which are only needed for disabled languages |
6188 | # to noconfigdirs. | |
6189 | if test -n "$disabled_target_libs"; then | |
6190 | for dir in $disabled_target_libs; do | |
6191 | case " $enabled_target_libs " in | |
6192 | *" ${dir} "*) ;; | |
6193 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6194 | esac | |
6195 | done | |
6196 | fi | |
6197 | ||
efd58f08 RW |
6198 | # Check whether --enable-stage1-languages was given. |
6199 | if test "${enable_stage1_languages+set}" = set; then : | |
6200 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
75ea5758 PB |
6201 | ,no,|,,) |
6202 | # Set it to something that will have no effect in the loop below | |
6203 | enable_stage1_languages=c ;; | |
6204 | ,yes,) | |
6205 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6206 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6207 | *,all,*) | |
6208 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6209 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6210 | esac | |
6211 | ||
6212 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6213 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6214 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6215 | case $potential_languages in | |
6216 | *,$i,*) | |
6217 | case $stage1_languages in | |
6218 | *,$i,*) ;; | |
6219 | *) stage1_languages="$stage1_languages$i," ;; | |
6220 | esac ;; | |
6221 | *) | |
6222 | case $missing_languages in | |
6223 | *,$i,*) ;; | |
6224 | *) missing_languages="$missing_languages$i," ;; | |
6225 | esac ;; | |
6226 | esac | |
6227 | done | |
efd58f08 RW |
6228 | fi |
6229 | ||
75ea5758 PB |
6230 | |
6231 | # Remove leading/trailing commas that were added for simplicity | |
6232 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
2e93c971 | 6233 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
75ea5758 PB |
6234 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6235 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6236 | ||
cfc26d93 | 6237 | if test "x$missing_languages" != x; then |
efd58f08 | 6238 | as_fn_error " |
57bcaf2d | 6239 | The following requested languages could not be built: ${missing_languages} |
efd58f08 | 6240 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
cfc26d93 | 6241 | fi |
cfc26d93 NN |
6242 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6243 | echo The following languages will be built: ${new_enable_languages} | |
75ea5758 | 6244 | enable_languages="$new_enable_languages" |
cfc26d93 | 6245 | fi |
75ea5758 | 6246 | |
b58b6ee1 | 6247 | |
0661a4a3 | 6248 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
cfc26d93 NN |
6249 | fi |
6250 | ||
f621a0dc PB |
6251 | # Handle --disable-<component> generically. |
6252 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6253 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
3fbb5e3d PB |
6254 | varname=`echo $dirname | sed -e s/+/_/g` |
6255 | if eval test x\${enable_${varname}} "=" xno ; then | |
f621a0dc PB |
6256 | noconfigdirs="$noconfigdirs $dir" |
6257 | fi | |
6258 | done | |
6259 | ||
e1e5148c | 6260 | # Check for Boehm's garbage collector |
efd58f08 RW |
6261 | # Check whether --enable-objc-gc was given. |
6262 | if test "${enable_objc_gc+set}" = set; then : | |
6263 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
e1e5148c | 6264 | *,objc,*:*:yes:*target-boehm-gc*) |
efd58f08 | 6265 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
e1e5148c CD |
6266 | ;; |
6267 | esac | |
efd58f08 RW |
6268 | fi |
6269 | ||
e1e5148c CD |
6270 | |
6271 | # Make sure we only build Boehm's garbage collector if required. | |
09fd280c DA |
6272 | case ,${enable_languages},:${enable_objc_gc} in |
6273 | *,objc,*:yes) | |
e1e5148c CD |
6274 | # Keep target-boehm-gc if requested for Objective-C. |
6275 | ;; | |
e1e5148c | 6276 | *) |
09fd280c DA |
6277 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6278 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6279 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6280 | fi | |
e1e5148c CD |
6281 | ;; |
6282 | esac | |
6283 | ||
a626f4ee L |
6284 | # Disable libitm if we're not building C++ |
6285 | case ,${enable_languages}, in | |
6286 | *,c++,*) ;; | |
6287 | *) | |
6288 | noconfigdirs="$noconfigdirs target-libitm" | |
6289 | ;; | |
6290 | esac | |
6291 | ||
3d439922 AL |
6292 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6293 | # $build_configdirs and $target_configdirs. | |
cfc26d93 NN |
6294 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6295 | ||
6296 | notsupp="" | |
6297 | for dir in . $skipdirs $noconfigdirs ; do | |
3d439922 | 6298 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
cfc26d93 NN |
6299 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6300 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6301 | if test -r $srcdir/$dirname/configure ; then | |
6302 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6303 | true | |
6304 | else | |
6305 | notsupp="$notsupp $dir" | |
6306 | fi | |
6307 | fi | |
6308 | fi | |
3d439922 AL |
6309 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6310 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6311 | if test -r $srcdir/$dirname/configure ; then | |
6312 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6313 | true | |
6314 | else | |
6315 | notsupp="$notsupp $dir" | |
6316 | fi | |
6317 | fi | |
6318 | fi | |
cfc26d93 NN |
6319 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6320 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6321 | if test -r $srcdir/$dirname/configure ; then | |
6322 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6323 | true | |
6324 | else | |
6325 | notsupp="$notsupp $dir" | |
6326 | fi | |
6327 | fi | |
6328 | fi | |
6329 | done | |
6330 | ||
cfc26d93 NN |
6331 | # Quietly strip out all directories which aren't configurable in this tree. |
6332 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6333 | # is now the case. | |
2cb47d68 PB |
6334 | build_configdirs_all="$build_configdirs" |
6335 | build_configdirs= | |
6336 | for i in ${build_configdirs_all} ; do | |
b58b6ee1 | 6337 | j=`echo $i | sed -e s/build-//g` |
2cb47d68 PB |
6338 | if test -f ${srcdir}/$j/configure ; then |
6339 | build_configdirs="${build_configdirs} $i" | |
6340 | fi | |
6341 | done | |
6342 | ||
cfc26d93 NN |
6343 | configdirs_all="$configdirs" |
6344 | configdirs= | |
6345 | for i in ${configdirs_all} ; do | |
6346 | if test -f ${srcdir}/$i/configure ; then | |
6347 | configdirs="${configdirs} $i" | |
6348 | fi | |
6349 | done | |
2cb47d68 | 6350 | |
cfc26d93 NN |
6351 | target_configdirs_all="$target_configdirs" |
6352 | target_configdirs= | |
6353 | for i in ${target_configdirs_all} ; do | |
b58b6ee1 | 6354 | j=`echo $i | sed -e s/target-//g` |
cfc26d93 NN |
6355 | if test -f ${srcdir}/$j/configure ; then |
6356 | target_configdirs="${target_configdirs} $i" | |
6357 | fi | |
6358 | done | |
6359 | ||
6360 | # Produce a warning message for the subdirs we can't configure. | |
6361 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6362 | # FSF releases, it's important to let people know when their machine isn't | |
6363 | # supported by the one or two programs in a package. | |
6364 | ||
6365 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6366 | # If $appdirs is non-empty, at least one of those directories must still | |
6367 | # be configured, or we error out. (E.g., if the gas release supports a | |
6368 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6369 | # pretend that all is well.) | |
6370 | if test -n "$appdirs" ; then | |
6371 | for dir in $appdirs ; do | |
6372 | if test -r $dir/Makefile.in ; then | |
6373 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6374 | appdirs="" | |
6375 | break | |
6376 | fi | |
2cb47d68 | 6377 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
cfc26d93 NN |
6378 | appdirs="" |
6379 | break | |
6380 | fi | |
6381 | fi | |
6382 | done | |
6383 | if test -n "$appdirs" ; then | |
6384 | echo "*** This configuration is not supported by this package." 1>&2 | |
6385 | exit 1 | |
6386 | fi | |
6387 | fi | |
6388 | # Okay, some application will build, or we don't care to check. Still | |
6389 | # notify of subdirs not getting built. | |
6390 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6391 | echo " ${notsupp}" 1>&2 | |
6392 | echo " (Any other directories should still work fine.)" 1>&2 | |
6393 | fi | |
6394 | ||
6395 | case "$host" in | |
6396 | *msdosdjgpp*) | |
6397 | enable_gdbtk=no ;; | |
6398 | esac | |
6399 | ||
b8c26111 PB |
6400 | # To find our prefix, in gcc_cv_tool_prefix. |
6401 | ||
6402 | # The user is always right. | |
6403 | if test "${PATH_SEPARATOR+set}" != set; then | |
6404 | echo "#! /bin/sh" >conf$$.sh | |
6405 | echo "exit 0" >>conf$$.sh | |
6406 | chmod +x conf$$.sh | |
6407 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6408 | PATH_SEPARATOR=';' | |
6409 | else | |
6410 | PATH_SEPARATOR=: | |
6411 | fi | |
6412 | rm -f conf$$.sh | |
6413 | fi | |
6414 | ||
6415 | ||
6416 | ||
6417 | if test "x$exec_prefix" = xNONE; then | |
6418 | if test "x$prefix" = xNONE; then | |
6419 | gcc_cv_tool_prefix=$ac_default_prefix | |
6420 | else | |
6421 | gcc_cv_tool_prefix=$prefix | |
6422 | fi | |
6423 | else | |
6424 | gcc_cv_tool_prefix=$exec_prefix | |
6425 | fi | |
6426 | ||
6427 | # If there is no compiler in the tree, use the PATH only. In any | |
6428 | # case, if there is no compiler in the tree nobody should use | |
6429 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6430 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6431 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6432 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6433 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6434 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6435 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6436 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6437 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6438 | else | |
6439 | gcc_cv_tool_dirs= | |
6440 | fi | |
6441 | ||
6442 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6443 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6444 | fi | |
6445 | ||
6446 | ||
6447 | ||
cfc26d93 NN |
6448 | copy_dirs= |
6449 | ||
b58b6ee1 | 6450 | |
efd58f08 RW |
6451 | # Check whether --with-build-sysroot was given. |
6452 | if test "${with_build_sysroot+set}" = set; then : | |
6453 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
9b992990 MM |
6454 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6455 | fi | |
6456 | else | |
6457 | SYSROOT_CFLAGS_FOR_TARGET= | |
efd58f08 | 6458 | fi |
9b992990 MM |
6459 | |
6460 | ||
fcc5fef0 | 6461 | |
efd58f08 RW |
6462 | |
6463 | # Check whether --with-debug-prefix-map was given. | |
6464 | if test "${with_debug_prefix_map+set}" = set; then : | |
6465 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
fcc5fef0 JM |
6466 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6467 | for debug_map in $withval; do | |
6468 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6469 | done | |
6470 | fi | |
6471 | else | |
6472 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
efd58f08 RW |
6473 | fi |
6474 | ||
fcc5fef0 JM |
6475 | |
6476 | ||
6532abb6 PB |
6477 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6478 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6479 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6480 | # We want to ensure that TARGET libraries (which we know are built with | |
6481 | # gcc) are built with "-O2 -g", so include those options when setting | |
6482 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6483 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
6484 | CFLAGS_FOR_TARGET=$CFLAGS | |
6485 | case " $CFLAGS " in | |
6486 | *" -O2 "*) ;; | |
27c4e2e1 | 6487 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; |
6532abb6 PB |
6488 | esac |
6489 | case " $CFLAGS " in | |
6490 | *" -g "* | *" -g3 "*) ;; | |
27c4e2e1 | 6491 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; |
6532abb6 PB |
6492 | esac |
6493 | fi | |
6494 | ||
6495 | ||
6496 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
6497 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6498 | case " $CXXFLAGS " in | |
6499 | *" -O2 "*) ;; | |
27c4e2e1 | 6500 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; |
6532abb6 PB |
6501 | esac |
6502 | case " $CXXFLAGS " in | |
6503 | *" -g "* | *" -g3 "*) ;; | |
27c4e2e1 | 6504 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; |
6532abb6 PB |
6505 | esac |
6506 | fi | |
6507 | ||
6508 | ||
2e7bf520 DK |
6509 | |
6510 | ||
cfc26d93 NN |
6511 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6512 | # the named directory are copied to $(tooldir)/sys-include. | |
6513 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6514 | if test x${is_cross_compiler} = xno ; then | |
6515 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6516 | exit 1 | |
6517 | fi | |
6518 | if test x"${with_headers}" != xyes ; then | |
b8c26111 | 6519 | x=${gcc_cv_tool_prefix} |
b58b6ee1 | 6520 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
cfc26d93 NN |
6521 | fi |
6522 | fi | |
6523 | ||
6524 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6525 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6526 | # are permitted. | |
6527 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6528 | if test x${is_cross_compiler} = xno ; then | |
6529 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6530 | exit 1 | |
6531 | fi | |
6532 | if test x"${with_libs}" != xyes ; then | |
6533 | # Copy the libraries in reverse order, so that files in the first named | |
6534 | # library override files in subsequent libraries. | |
b8c26111 | 6535 | x=${gcc_cv_tool_prefix} |
cfc26d93 | 6536 | for l in ${with_libs}; do |
b58b6ee1 | 6537 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
cfc26d93 NN |
6538 | done |
6539 | fi | |
6540 | fi | |
6541 | ||
bd45d6fa | 6542 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
fef3f213 PB |
6543 | # |
6544 | # This is done by determining whether or not the appropriate directory | |
6545 | # is available, and by checking whether or not specific configurations | |
6546 | # have requested that this magic not happen. | |
b58b6ee1 DJ |
6547 | # |
6548 | # The command line options always override the explicit settings in | |
fef3f213 PB |
6549 | # configure.in, and the settings in configure.in override this magic. |
6550 | # | |
b58b6ee1 | 6551 | # If the default for a toolchain is to use GNU as and ld, and you don't |
fef3f213 | 6552 | # want to do that, then you should use the --without-gnu-as and |
bd45d6fa ILT |
6553 | # --without-gnu-ld options for the configure script. Similarly, if |
6554 | # the default is to use the included zlib and you don't want to do that, | |
6555 | # you should use the --with-system-zlib option for the configure script. | |
fef3f213 PB |
6556 | |
6557 | if test x${use_gnu_as} = x && | |
6558 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6559 | with_gnu_as=yes | |
6560 | extra_host_args="$extra_host_args --with-gnu-as" | |
6561 | fi | |
6562 | ||
6563 | if test x${use_gnu_ld} = x && | |
b916272a | 6564 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
fef3f213 PB |
6565 | with_gnu_ld=yes |
6566 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6567 | fi | |
6568 | ||
bd45d6fa ILT |
6569 | if test x${use_included_zlib} = x && |
6570 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6571 | : | |
6572 | else | |
6573 | with_system_zlib=yes | |
6574 | extra_host_args="$extra_host_args --with-system-zlib" | |
6575 | fi | |
6576 | ||
fef3f213 PB |
6577 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6578 | # can detect this case. | |
6579 | ||
6580 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6581 | with_newlib=yes | |
6582 | extra_host_args="$extra_host_args --with-newlib" | |
6583 | fi | |
6584 | ||
cfc26d93 NN |
6585 | # Handle ${copy_dirs} |
6586 | set fnord ${copy_dirs} | |
6587 | shift | |
6588 | while test $# != 0 ; do | |
6589 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6590 | : | |
6591 | else | |
6592 | echo Copying $1 to $2 | |
6593 | ||
6594 | # Use the install script to create the directory and all required | |
6595 | # parent directories. | |
6596 | if test -d $2 ; then | |
6597 | : | |
6598 | else | |
6599 | echo >config.temp | |
6600 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6601 | fi | |
6602 | ||
6603 | # Copy the directory, assuming we have tar. | |
6604 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6605 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6606 | ||
6607 | # It is the responsibility of the user to correctly adjust all | |
6608 | # symlinks. If somebody can figure out how to handle them correctly | |
6609 | # here, feel free to add the code. | |
6610 | ||
6611 | echo $1 > $2/COPIED | |
6612 | fi | |
6613 | shift; shift | |
6614 | done | |
6615 | ||
fef3f213 PB |
6616 | # Determine a target-dependent exec_prefix that the installed |
6617 | # gcc will search in. Keep this list sorted by triplet, with | |
6618 | # the *-*-osname triplets last. | |
6619 | md_exec_prefix= | |
6620 | case "${target}" in | |
b301596e | 6621 | i[34567]86-pc-msdosdjgpp*) |
fef3f213 PB |
6622 | md_exec_prefix=/dev/env/DJDIR/bin |
6623 | ;; | |
fef3f213 | 6624 | *-*-hpux* | \ |
fef3f213 | 6625 | *-*-nto-qnx* | \ |
ebc0cd55 | 6626 | *-*-solaris2*) |
fef3f213 PB |
6627 | md_exec_prefix=/usr/ccs/bin |
6628 | ;; | |
6629 | esac | |
6630 | ||
bafecfd6 NN |
6631 | extra_arflags_for_target= |
6632 | extra_nmflags_for_target= | |
6633 | extra_ranlibflags_for_target= | |
6634 | target_makefile_frag=/dev/null | |
6635 | case "${target}" in | |
e53c5df0 AM |
6636 | spu-*-*) |
6637 | target_makefile_frag="config/mt-spu" | |
6638 | ;; | |
2ad518b5 RS |
6639 | mips*-sde-elf*) |
6640 | target_makefile_frag="config/mt-sde" | |
6641 | ;; | |
2d2e75dd RS |
6642 | mipsisa*-*-elfoabi*) |
6643 | target_makefile_frag="config/mt-mips-elfoabi" | |
6644 | ;; | |
59c59569 RS |
6645 | mips*-*-*linux* | mips*-*-gnu*) |
6646 | target_makefile_frag="config/mt-mips-gnu" | |
6647 | ;; | |
9f8da9ce | 6648 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
824cf273 | 6649 | target_makefile_frag="config/mt-gnu" |
bafecfd6 NN |
6650 | ;; |
6651 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
b58b6ee1 | 6652 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
bafecfd6 NN |
6653 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6654 | # harmless if we're using GNU nm or ar. | |
6655 | extra_arflags_for_target=" -X32_64" | |
6656 | extra_nmflags_for_target=" -B -X32_64" | |
6657 | ;; | |
bafecfd6 NN |
6658 | esac |
6659 | ||
6660 | alphaieee_frag=/dev/null | |
6661 | case $target in | |
6662 | alpha*-*-*) | |
6663 | # This just makes sure to use the -mieee option to build target libs. | |
6664 | # This should probably be set individually by each library. | |
6665 | alphaieee_frag="config/mt-alphaieee" | |
6666 | ;; | |
6667 | esac | |
6668 | ||
6669 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6670 | # the target libraries, similarly if it is not specified, use -Os | |
6671 | # on selected platforms. | |
6672 | ospace_frag=/dev/null | |
6673 | case "${enable_target_optspace}:${target}" in | |
6674 | yes:*) | |
6675 | ospace_frag="config/mt-ospace" | |
6676 | ;; | |
6677 | :d30v-*) | |
6678 | ospace_frag="config/mt-d30v" | |
6679 | ;; | |
6680 | :m32r-* | :d10v-* | :fr30-*) | |
6681 | ospace_frag="config/mt-ospace" | |
6682 | ;; | |
6683 | no:* | :*) | |
6684 | ;; | |
6685 | *) | |
6686 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6687 | ;; | |
6688 | esac | |
6689 | ||
bafecfd6 NN |
6690 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6691 | # using) don't handle "\$" correctly, so don't use it here. | |
b58b6ee1 | 6692 | tooldir='${exec_prefix}'/${target_noncanonical} |
bafecfd6 NN |
6693 | build_tooldir=${tooldir} |
6694 | ||
bafecfd6 NN |
6695 | # Create a .gdbinit file which runs the one in srcdir |
6696 | # and tells GDB to look there for source files. | |
6697 | ||
6698 | if test -r ${srcdir}/.gdbinit ; then | |
6699 | case ${srcdir} in | |
6700 | .) ;; | |
6701 | *) cat > ./.gdbinit <<EOF | |
6702 | # ${NO_EDIT} | |
6703 | dir ${srcdir} | |
6704 | dir . | |
6705 | source ${srcdir}/.gdbinit | |
6706 | EOF | |
6707 | ;; | |
6708 | esac | |
6709 | fi | |
6710 | ||
bafecfd6 NN |
6711 | # Make sure that the compiler is able to generate an executable. If it |
6712 | # can't, we are probably in trouble. We don't care whether we can run the | |
6713 | # executable--we might be using a cross compiler--we only care whether it | |
6714 | # can be created. At this point the main configure script has set CC. | |
6715 | we_are_ok=no | |
6716 | echo "int main () { return 0; }" > conftest.c | |
6717 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
6718 | if test $? = 0 ; then | |
6719 | if test -s conftest || test -s conftest.exe ; then | |
6720 | we_are_ok=yes | |
6721 | fi | |
b58b6ee1 | 6722 | fi |
bafecfd6 NN |
6723 | case $we_are_ok in |
6724 | no) | |
6725 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
6726 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
6727 | rm -f conftest* | |
6728 | exit 1 | |
6729 | ;; | |
6730 | esac | |
6731 | rm -f conftest* | |
6732 | ||
8453fdba | 6733 | # Decide which environment variable is used to find dynamic libraries. |
bafecfd6 NN |
6734 | case "${host}" in |
6735 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
4e55c4e3 | 6736 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
8453fdba | 6737 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
bafecfd6 NN |
6738 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
6739 | esac | |
6740 | ||
8453fdba | 6741 | # On systems where the dynamic library environment variable is PATH, |
311b6756 JM |
6742 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
6743 | # built executables to PATH. | |
8453fdba AL |
6744 | if test "$RPATH_ENVVAR" = PATH; then |
6745 | GCC_SHLIB_SUBDIR=/shlib | |
6746 | else | |
6747 | GCC_SHLIB_SUBDIR= | |
6748 | fi | |
6749 | ||
bafecfd6 NN |
6750 | # Record target_configdirs and the configure arguments for target and |
6751 | # build configuration in Makefile. | |
6752 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
2cb47d68 | 6753 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
bafecfd6 | 6754 | |
bf01561d JR |
6755 | # If we are building libgomp, bootstrap it. |
6756 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
6757 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
6758 | fi | |
6759 | ||
bafecfd6 NN |
6760 | # Determine whether gdb needs tk/tcl or not. |
6761 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
6762 | # and in that case we want gdb to be built without tk. Ugh! | |
6763 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
6764 | # so we should be able to put the 'maybe's in unconditionally and | |
6765 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
6766 | # 100% sure that that's safe though. | |
5035a087 | 6767 | |
44397772 | 6768 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
bafecfd6 NN |
6769 | case "$enable_gdbtk" in |
6770 | no) | |
6771 | GDB_TK="" ;; | |
5035a087 AC |
6772 | yes) |
6773 | GDB_TK="${gdb_tk}" ;; | |
bafecfd6 | 6774 | *) |
5035a087 AC |
6775 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
6776 | # distro. Eventually someone will fix this and move Insight, nee | |
6777 | # gdbtk to a separate directory. | |
6778 | if test -d ${srcdir}/gdb/gdbtk ; then | |
6779 | GDB_TK="${gdb_tk}" | |
6780 | else | |
6781 | GDB_TK="" | |
6782 | fi | |
6783 | ;; | |
bafecfd6 | 6784 | esac |
81cdf522 DJ |
6785 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
6786 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
bafecfd6 | 6787 | |
a7e609d6 | 6788 | # Strip out unwanted targets. |
9b520963 NN |
6789 | |
6790 | # While at that, we remove Makefiles if we were started for recursive | |
6791 | # configuration, so that the top-level Makefile reconfigures them, | |
6792 | # like we used to do when configure itself was recursive. | |
9b520963 | 6793 | |
94f4a7b9 RW |
6794 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
6795 | # but now we're fixing up the Makefile ourselves with the additional | |
6796 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
6797 | # extrasub-{build,host,target} not because there is any reason to split | |
6798 | # the substitutions up that way, but only to remain below the limit of | |
6799 | # 99 commands in a script, for HP-UX sed. | |
6800 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
9b520963 | 6801 | |
9d1fd371 RW |
6802 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
6803 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
6804 | yes:yes:*\ gold\ *:*) | |
6805 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
6806 | ;; | |
6807 | esac | |
6808 | ||
ebc58bf8 | 6809 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
55662058 | 6810 | case $enable_bootstrap in |
e1666221 | 6811 | yes) |
55662058 AO |
6812 | bootstrap_suffix=bootstrap |
6813 | BUILD_CONFIG=bootstrap-debug | |
6814 | ;; | |
e1666221 | 6815 | no) |
55662058 AO |
6816 | bootstrap_suffix=no-bootstrap |
6817 | BUILD_CONFIG= | |
6818 | ;; | |
e1666221 PB |
6819 | esac |
6820 | ||
55662058 AO |
6821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 |
6822 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
6823 | ||
6824 | ||
6825 | # Check whether --with-build-config was given. | |
6826 | if test "${with_build_config+set}" = set; then : | |
6827 | withval=$with_build_config; case $with_build_config in | |
6828 | yes) with_build_config= ;; | |
6829 | no) with_build_config= BUILD_CONFIG= ;; | |
6830 | esac | |
6831 | fi | |
6832 | ||
6833 | ||
6834 | if test "x${with_build_config}" != x; then | |
6835 | BUILD_CONFIG=$with_build_config | |
6836 | else | |
6837 | case $BUILD_CONFIG in | |
6838 | bootstrap-debug) | |
6839 | if echo "int f (void) { return 0; }" > conftest.c && | |
6840 | ${CC} -c conftest.c && | |
6841 | mv conftest.o conftest.o.g0 && | |
6842 | ${CC} -c -g conftest.c && | |
6843 | mv conftest.o conftest.o.g && | |
112afadf | 6844 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then |
55662058 AO |
6845 | : |
6846 | else | |
6847 | BUILD_CONFIG= | |
6848 | fi | |
6849 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
6850 | ;; | |
6851 | esac | |
6852 | fi | |
6853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
6854 | $as_echo "$BUILD_CONFIG" >&6; } | |
6855 | ||
6856 | ||
94f4a7b9 | 6857 | extrasub_build= |
2cb47d68 | 6858 | for module in ${build_configdirs} ; do |
aac4e7d4 CF |
6859 | if test -z "${no_recursion}" \ |
6860 | && test -f ${build_subdir}/${module}/Makefile; then | |
6861 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
6862 | rm -f ${build_subdir}/${module}/Makefile | |
6863 | fi | |
94f4a7b9 | 6864 | extrasub_build="$extrasub_build |
aac4e7d4 CF |
6865 | /^@if build-$module\$/d |
6866 | /^@endif build-$module\$/d | |
6867 | /^@if build-$module-$bootstrap_suffix\$/d | |
6868 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
6869 | done | |
94f4a7b9 | 6870 | extrasub_host= |
aac4e7d4 | 6871 | for module in ${configdirs} ; do |
e3c08f94 | 6872 | if test -z "${no_recursion}"; then |
bde7f665 | 6873 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
e3c08f94 PB |
6874 | if test -f ${file}; then |
6875 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
6876 | rm -f ${file} | |
6877 | fi | |
6878 | done | |
aac4e7d4 | 6879 | fi |
94f4a7b9 | 6880 | extrasub_host="$extrasub_host |
aac4e7d4 CF |
6881 | /^@if $module\$/d |
6882 | /^@endif $module\$/d | |
6883 | /^@if $module-$bootstrap_suffix\$/d | |
6884 | /^@endif $module-$bootstrap_suffix\$/d" | |
6885 | done | |
94f4a7b9 | 6886 | extrasub_target= |
aac4e7d4 CF |
6887 | for module in ${target_configdirs} ; do |
6888 | if test -z "${no_recursion}" \ | |
6889 | && test -f ${target_subdir}/${module}/Makefile; then | |
6890 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
6891 | rm -f ${target_subdir}/${module}/Makefile | |
6892 | fi | |
121f0eb2 RW |
6893 | |
6894 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
6895 | case $bootstrap_target_libs in | |
6896 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
6897 | *) target_bootstrap_suffix=no-bootstrap ;; | |
6898 | esac | |
6899 | ||
94f4a7b9 | 6900 | extrasub_target="$extrasub_target |
aac4e7d4 CF |
6901 | /^@if target-$module\$/d |
6902 | /^@endif target-$module\$/d | |
121f0eb2 RW |
6903 | /^@if target-$module-$target_bootstrap_suffix\$/d |
6904 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
aac4e7d4 CF |
6905 | done |
6906 | ||
94f4a7b9 RW |
6907 | # Do the final fixup along with target modules. |
6908 | extrasub_target="$extrasub_target | |
a7e609d6 | 6909 | /^@if /,/^@endif /d" |
bafecfd6 NN |
6910 | |
6911 | # Create the serialization dependencies. This uses a temporary file. | |
6912 | ||
efd58f08 RW |
6913 | # Check whether --enable-serial-configure was given. |
6914 | if test "${enable_serial_configure+set}" = set; then : | |
6915 | enableval=$enable_serial_configure; | |
6916 | fi | |
af9955fa AO |
6917 | |
6918 | ||
7f74e6a3 DD |
6919 | case ${enable_serial_configure} in |
6920 | yes) | |
6921 | enable_serial_build_configure=yes | |
6922 | enable_serial_host_configure=yes | |
6923 | enable_serial_target_configure=yes | |
6924 | ;; | |
6925 | esac | |
6926 | ||
bafecfd6 NN |
6927 | # These force 'configure's to be done one at a time, to avoid problems |
6928 | # with contention over a shared config.cache. | |
6929 | rm -f serdep.tmp | |
af9955fa | 6930 | echo '# serdep.tmp' > serdep.tmp |
bafecfd6 | 6931 | olditem= |
7f74e6a3 | 6932 | test "x${enable_serial_build_configure}" = xyes && |
bafecfd6 NN |
6933 | for item in ${build_configdirs} ; do |
6934 | case ${olditem} in | |
6935 | "") ;; | |
af9955fa | 6936 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
bafecfd6 NN |
6937 | esac |
6938 | olditem=${item} | |
6939 | done | |
6940 | olditem= | |
7f74e6a3 | 6941 | test "x${enable_serial_host_configure}" = xyes && |
bafecfd6 NN |
6942 | for item in ${configdirs} ; do |
6943 | case ${olditem} in | |
6944 | "") ;; | |
af9955fa | 6945 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
bafecfd6 NN |
6946 | esac |
6947 | olditem=${item} | |
6948 | done | |
6949 | olditem= | |
7f74e6a3 | 6950 | test "x${enable_serial_target_configure}" = xyes && |
bafecfd6 NN |
6951 | for item in ${target_configdirs} ; do |
6952 | case ${olditem} in | |
6953 | "") ;; | |
af9955fa | 6954 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
bafecfd6 NN |
6955 | esac |
6956 | olditem=${item} | |
6957 | done | |
6958 | serialization_dependencies=serdep.tmp | |
6959 | ||
6960 | ||
af9955fa | 6961 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
b58b6ee1 | 6962 | # target, nonopt, and variable assignments. These are the ones we |
358d4e3c NC |
6963 | # might not want to pass down to subconfigures. The exception being |
6964 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
6965 | # files altogether, and which should be passed on to subconfigures. | |
6966 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
6967 | # so that we can pass down a consistent program-transform-name. | |
b58b6ee1 | 6968 | baseargs= |
3bd3027c | 6969 | tbaseargs= |
b58b6ee1 DJ |
6970 | keep_next=no |
6971 | skip_next=no | |
6972 | eval "set -- $ac_configure_args" | |
b8c26111 PB |
6973 | for ac_arg |
6974 | do | |
b58b6ee1 DJ |
6975 | if test X"$skip_next" = X"yes"; then |
6976 | skip_next=no | |
6977 | continue | |
6978 | fi | |
6979 | if test X"$keep_next" = X"yes"; then | |
6980 | case $ac_arg in | |
6981 | *\'*) | |
6982 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6983 | esac | |
6984 | baseargs="$baseargs '$ac_arg'" | |
3bd3027c | 6985 | tbaseargs="$tbaseargs '$ac_arg'" |
b58b6ee1 DJ |
6986 | keep_next=no |
6987 | continue | |
6988 | fi | |
6989 | ||
6990 | # Handle separated arguments. Based on the logic generated by | |
6991 | # autoconf 2.59. | |
6992 | case $ac_arg in | |
6993 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
6994 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
6995 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
6996 | | -with-* | --with-* | -without-* | --without-* | --x) | |
6997 | separate_arg=no | |
6998 | ;; | |
6999 | -*) | |
7000 | separate_arg=yes | |
7001 | ;; | |
7002 | *) | |
7003 | separate_arg=no | |
7004 | ;; | |
7005 | esac | |
7006 | ||
3bd3027c AO |
7007 | skip_targ=no |
7008 | case $ac_arg in | |
7009 | ||
7010 | --with-* | --without-*) | |
7011 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7012 | ||
7013 | case $libopt in | |
7014 | *[-_]include) | |
7015 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7016 | ;; | |
7017 | *[-_]lib) | |
7018 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7019 | ;; | |
7020 | *) | |
7021 | lib=$libopt | |
7022 | ;; | |
7023 | esac | |
7024 | ||
7025 | ||
7026 | case $lib in | |
a626f4ee | 7027 | mpc | mpfr | gmp | cloog) |
3bd3027c AO |
7028 | # If we're processing --with-$lib, --with-$lib-include or |
7029 | # --with-$lib-lib, for one of the libs above, and target is | |
7030 | # different from host, don't pass the current argument to any | |
7031 | # target library's configure. | |
7032 | if test x$is_cross_compiler = xyes; then | |
7033 | skip_targ=yes | |
7034 | fi | |
7035 | ;; | |
7036 | esac | |
7037 | ;; | |
7038 | esac | |
7039 | ||
b58b6ee1 | 7040 | case "$ac_arg" in |
358d4e3c NC |
7041 | --cache-file=/dev/null | \ |
7042 | -cache-file=/dev/null ) | |
7043 | # Handled here to avoid the test to skip args below. | |
7044 | baseargs="$baseargs '$ac_arg'" | |
3bd3027c | 7045 | tbaseargs="$tbaseargs '$ac_arg'" |
358d4e3c NC |
7046 | # Assert: $separate_arg should always be no. |
7047 | keep_next=$separate_arg | |
7048 | ;; | |
b58b6ee1 DJ |
7049 | --no*) |
7050 | continue | |
7051 | ;; | |
7052 | --c* | \ | |
7053 | --sr* | \ | |
7054 | --ho* | \ | |
7055 | --bu* | \ | |
7056 | --t* | \ | |
7057 | --program-* | \ | |
7058 | -cache_file* | \ | |
7059 | -srcdir* | \ | |
7060 | -host* | \ | |
7061 | -build* | \ | |
7062 | -target* | \ | |
7063 | -program-prefix* | \ | |
7064 | -program-suffix* | \ | |
7065 | -program-transform-name* ) | |
7066 | skip_next=$separate_arg | |
7067 | continue | |
7068 | ;; | |
7069 | -*) | |
7070 | # An option. Add it. | |
7071 | case $ac_arg in | |
7072 | *\'*) | |
7073 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7074 | esac | |
7075 | baseargs="$baseargs '$ac_arg'" | |
3bd3027c AO |
7076 | if test X"$skip_targ" = Xno; then |
7077 | tbaseargs="$tbaseargs '$ac_arg'" | |
7078 | fi | |
b58b6ee1 DJ |
7079 | keep_next=$separate_arg |
7080 | ;; | |
7081 | *) | |
7082 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7083 | # pass it down; let the Makefile handle this. | |
7084 | continue | |
7085 | ;; | |
7086 | esac | |
7087 | done | |
7088 | # Remove the initial space we just introduced and, as these will be | |
7089 | # expanded by make, quote '$'. | |
7090 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
bafecfd6 | 7091 | |
eedd1e14 DJ |
7092 | # Add in --program-transform-name, after --program-prefix and |
7093 | # --program-suffix have been applied to it. Autoconf has already | |
7094 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7095 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
b58b6ee1 | 7096 | # quotes, because this will be expanded first by make and then by the shell. |
eedd1e14 DJ |
7097 | # Also, because we want to override the logic in subdir configure scripts to |
7098 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7099 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7100 | ${program_transform_name} | |
7101 | EOF_SED | |
7102 | gcc_transform_name=`cat conftestsed.out` | |
7103 | rm -f conftestsed.out | |
7104 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
3bd3027c | 7105 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
fc7c811f BE |
7106 | if test "$silent" = yes; then |
7107 | baseargs="$baseargs --silent" | |
3bd3027c | 7108 | tbaseargs="$tbaseargs --silent" |
fc7c811f | 7109 | fi |
5546e07b | 7110 | baseargs="$baseargs --disable-option-checking" |
3bd3027c | 7111 | tbaseargs="$tbaseargs --disable-option-checking" |
eedd1e14 | 7112 | |
1d694d8e RW |
7113 | # Record and document user additions to sub configure arguments. |
7114 | ||
7115 | ||
7116 | ||
7117 | ||
bafecfd6 NN |
7118 | # For the build-side libraries, we just need to pretend we're native, |
7119 | # and not use the same cache file. Multilibs are neither needed nor | |
7120 | # desired. | |
1d694d8e | 7121 | build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}" |
bafecfd6 NN |
7122 | |
7123 | # For host modules, accept cache file option, or specification as blank. | |
7124 | case "${cache_file}" in | |
7125 | "") # empty | |
7126 | cache_file_option="" ;; | |
7127 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7128 | cache_file_option="--cache-file=${cache_file}" ;; | |
7129 | *) # relative path | |
7130 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7131 | esac | |
7132 | ||
68c6d8ac NN |
7133 | # Host dirs don't like to share a cache file either, horribly enough. |
7134 | # This seems to be due to autoconf 2.5x stupidity. | |
1d694d8e | 7135 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
bafecfd6 | 7136 | |
3bd3027c | 7137 | target_configargs="$target_configargs ${tbaseargs}" |
bafecfd6 NN |
7138 | |
7139 | # Passing a --with-cross-host argument lets the target libraries know | |
7140 | # whether they are being built with a cross-compiler or being built | |
7141 | # native. However, it would be better to use other mechanisms to make the | |
7142 | # sorts of decisions they want to make on this basis. Please consider | |
7143 | # this option to be deprecated. FIXME. | |
7144 | if test x${is_cross_compiler} = xyes ; then | |
b58b6ee1 | 7145 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
bafecfd6 NN |
7146 | fi |
7147 | ||
5d239c61 RW |
7148 | # Default to --enable-multilib. |
7149 | if test x${enable_multilib} = x ; then | |
bafecfd6 | 7150 | target_configargs="--enable-multilib ${target_configargs}" |
5d239c61 | 7151 | fi |
bafecfd6 NN |
7152 | |
7153 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7154 | # changed from the earlier setting of with_newlib. | |
7155 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7156 | target_configargs="--with-newlib ${target_configargs}" | |
7157 | fi | |
7158 | ||
5b28b6ef NN |
7159 | # Different target subdirs use different values of certain variables |
7160 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7161 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7162 | # it doesn't automatically accept command-line overrides of them. | |
7163 | # This means it's not safe for target subdirs to share a cache file, | |
7164 | # which is disgusting, but there you have it. Hopefully this can be | |
7165 | # fixed in future. It's still worthwhile to use a cache file for each | |
7166 | # directory. I think. | |
7167 | ||
29730600 MS |
7168 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7169 | # We need to pass --target, as newer autoconf's requires consistency | |
7170 | # for target_alias and gcc doesn't manage it consistently. | |
42f55f77 | 7171 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
bafecfd6 | 7172 | |
bafecfd6 NN |
7173 | FLAGS_FOR_TARGET= |
7174 | case " $target_configdirs " in | |
7175 | *" newlib "*) | |
7176 | case " $target_configargs " in | |
7177 | *" --with-newlib "*) | |
7178 | case "$target" in | |
5074489a AO |
7179 | *-cygwin*) |
7180 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' | |
7181 | ;; | |
bafecfd6 NN |
7182 | esac |
7183 | ||
7184 | # If we're not building GCC, don't discard standard headers. | |
7185 | if test -d ${srcdir}/gcc; then | |
7186 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7187 | ||
7188 | if test "${build}" != "${host}"; then | |
7189 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7190 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7191 | # to it. This is right: we don't want to search that directory | |
7192 | # for binaries, but we want the header files in there, so add | |
7193 | # them explicitly. | |
d5b7129a | 7194 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
bafecfd6 NN |
7195 | |
7196 | # Someone might think of using the pre-installed headers on | |
7197 | # Canadian crosses, in case the installed compiler is not fully | |
7198 | # compatible with the compiler being built. In this case, it | |
7199 | # would be better to flag an error than risking having | |
7200 | # incompatible object files being constructed. We can't | |
7201 | # guarantee that an error will be flagged, but let's hope the | |
7202 | # compiler will do it, when presented with incompatible header | |
7203 | # files. | |
7204 | fi | |
7205 | fi | |
7206 | ||
7207 | case "${target}-${is_cross_compiler}" in | |
08049c01 | 7208 | i[3456789]86-*-linux*-no) |
bafecfd6 NN |
7209 | # Here host == target, so we don't need to build gcc, |
7210 | # so we don't want to discard standard headers. | |
7211 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7212 | ;; | |
7213 | *) | |
7214 | # If we're building newlib, use its generic headers last, but search | |
7215 | # for any libc-related directories first (so make it the last -B | |
7216 | # switch). | |
7217 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
46093329 DD |
7218 | |
7219 | # If we're building libgloss, find the startup file, simulator library | |
7220 | # and linker script. | |
7221 | case " $target_configdirs " in | |
7222 | *" libgloss "*) | |
7223 | # Look for startup file, simulator library and maybe linker script. | |
7224 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7225 | # Look for libnosys.a in case the target needs it. | |
7226 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7227 | # Most targets have the linker script in the source directory. | |
7228 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7229 | ;; | |
7230 | esac | |
bafecfd6 NN |
7231 | ;; |
7232 | esac | |
7233 | ;; | |
7234 | esac | |
7235 | ;; | |
7236 | esac | |
5074489a | 7237 | |
bc668665 | 7238 | case "$target" in |
5074489a AO |
7239 | x86_64-*mingw* | *-w64-mingw*) |
7240 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7241 | # however, use a symlink named 'mingw' in ${prefix} . | |
7242 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7243 | ;; | |
7244 | *-mingw*) | |
7245 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7246 | 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' | |
7247 | ;; | |
bc668665 | 7248 | esac |
bafecfd6 | 7249 | |
e9ea9dec DD |
7250 | # Allow the user to override the flags for |
7251 | # our build compiler if desired. | |
77961173 NC |
7252 | if test x"${build}" = x"${host}" ; then |
7253 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7254 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7255 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7256 | fi | |
e9ea9dec | 7257 | |
bafecfd6 NN |
7258 | # On Canadian crosses, we'll be searching the right directories for |
7259 | # the previously-installed cross compiler, so don't bother to add | |
7260 | # flags for directories within the install tree of the compiler | |
7261 | # being built; programs in there won't even run. | |
7262 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7263 | # Search for pre-installed headers if nothing else fits. | |
2245eb63 | 7264 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
bafecfd6 NN |
7265 | fi |
7266 | ||
7267 | if test "x${use_gnu_ld}" = x && | |
7268 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7269 | # Arrange for us to find uninstalled linker scripts. | |
7fc2ca22 | 7270 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
bafecfd6 NN |
7271 | fi |
7272 | ||
ad352d9b DD |
7273 | # Search for other target-specific linker scripts and such. |
7274 | case "${target}" in | |
4e16301e DB |
7275 | mep*) |
7276 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7277 | ;; | |
7278 | esac | |
7279 | ||
bafecfd6 | 7280 | # Makefile fragments. |
96979a18 PB |
7281 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7282 | do | |
7283 | eval fragval=\$$frag | |
7284 | if test $fragval != /dev/null; then | |
7285 | eval $frag=${srcdir}/$fragval | |
7286 | fi | |
7287 | done | |
bafecfd6 NN |
7288 | |
7289 | ||
7290 | ||
7291 | ||
7292 | ||
7293 | # Miscellanea: directories, flags, etc. | |
7294 | ||
7295 | ||
7296 | ||
7297 | ||
7298 | ||
7299 | ||
7300 | ||
8453fdba | 7301 | |
2cb47d68 | 7302 | # Build module lists & subconfigure args. |
bafecfd6 NN |
7303 | |
7304 | ||
7305 | ||
a7dc05b5 PB |
7306 | # Host module lists & subconfigure args. |
7307 | ||
7308 | ||
7309 | ||
e894eef9 | 7310 | |
a7dc05b5 PB |
7311 | # Target module lists & subconfigure args. |
7312 | ||
7313 | ||
7314 | ||
7315 | # Build tools. | |
7316 | ||
7317 | ||
7318 | ||
4413ec01 PB |
7319 | |
7320 | ||
7321 | ||
7322 | ||
7323 | ||
7324 | ||
7325 | ||
7326 | ||
7327 | ||
7328 | ||
7329 | ||
7330 | ||
7331 | ||
7332 | ||
a7dc05b5 PB |
7333 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7334 | # on the build machine. These are used if the Makefile can't locate these | |
7335 | # programs in objdir. | |
7336 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7337 | ||
7338 | for ac_prog in 'bison -y' byacc yacc | |
7339 | do | |
b58b6ee1 | 7340 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 7341 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
7342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7343 | $as_echo_n "checking for $ac_word... " >&6; } | |
7344 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7345 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
7346 | else |
7347 | if test -n "$YACC"; then | |
7348 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7349 | else | |
b58b6ee1 DJ |
7350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7351 | for as_dir in $PATH | |
7352 | do | |
7353 | IFS=$as_save_IFS | |
7354 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
7355 | for ac_exec_ext in '' $ac_executable_extensions; do |
7356 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 7357 | ac_cv_prog_YACC="$ac_prog" |
efd58f08 | 7358 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
7359 | break 2 |
7360 | fi | |
7361 | done | |
efd58f08 RW |
7362 | done |
7363 | IFS=$as_save_IFS | |
b58b6ee1 | 7364 | |
a7dc05b5 PB |
7365 | fi |
7366 | fi | |
b58b6ee1 | 7367 | YACC=$ac_cv_prog_YACC |
a7dc05b5 | 7368 | if test -n "$YACC"; then |
efd58f08 RW |
7369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7370 | $as_echo "$YACC" >&6; } | |
a7dc05b5 | 7371 | else |
efd58f08 RW |
7372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7373 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
7374 | fi |
7375 | ||
efd58f08 | 7376 | |
b58b6ee1 | 7377 | test -n "$YACC" && break |
a7dc05b5 PB |
7378 | done |
7379 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7380 | ||
7381 | case " $build_configdirs " in | |
7382 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
a7dc05b5 PB |
7383 | esac |
7384 | ||
7385 | for ac_prog in bison | |
7386 | do | |
b58b6ee1 | 7387 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 7388 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
7389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7390 | $as_echo_n "checking for $ac_word... " >&6; } | |
7391 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7392 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
7393 | else |
7394 | if test -n "$BISON"; then | |
7395 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7396 | else | |
b58b6ee1 DJ |
7397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7398 | for as_dir in $PATH | |
7399 | do | |
7400 | IFS=$as_save_IFS | |
7401 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
7402 | for ac_exec_ext in '' $ac_executable_extensions; do |
7403 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 7404 | ac_cv_prog_BISON="$ac_prog" |
efd58f08 | 7405 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
7406 | break 2 |
7407 | fi | |
7408 | done | |
efd58f08 RW |
7409 | done |
7410 | IFS=$as_save_IFS | |
b58b6ee1 | 7411 | |
a7dc05b5 PB |
7412 | fi |
7413 | fi | |
b58b6ee1 | 7414 | BISON=$ac_cv_prog_BISON |
a7dc05b5 | 7415 | if test -n "$BISON"; then |
efd58f08 RW |
7416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7417 | $as_echo "$BISON" >&6; } | |
a7dc05b5 | 7418 | else |
efd58f08 RW |
7419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7420 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
7421 | fi |
7422 | ||
efd58f08 | 7423 | |
b58b6ee1 | 7424 | test -n "$BISON" && break |
a7dc05b5 PB |
7425 | done |
7426 | test -n "$BISON" || BISON="$MISSING bison" | |
7427 | ||
7428 | case " $build_configdirs " in | |
7429 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7430 | esac | |
7431 | ||
7432 | for ac_prog in gm4 gnum4 m4 | |
7433 | do | |
b58b6ee1 | 7434 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 7435 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
7436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7437 | $as_echo_n "checking for $ac_word... " >&6; } | |
7438 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7439 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
7440 | else |
7441 | if test -n "$M4"; then | |
7442 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7443 | else | |
b58b6ee1 DJ |
7444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7445 | for as_dir in $PATH | |
7446 | do | |
7447 | IFS=$as_save_IFS | |
7448 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
7449 | for ac_exec_ext in '' $ac_executable_extensions; do |
7450 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 7451 | ac_cv_prog_M4="$ac_prog" |
efd58f08 | 7452 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
7453 | break 2 |
7454 | fi | |
7455 | done | |
efd58f08 RW |
7456 | done |
7457 | IFS=$as_save_IFS | |
b58b6ee1 | 7458 | |
a7dc05b5 PB |
7459 | fi |
7460 | fi | |
b58b6ee1 | 7461 | M4=$ac_cv_prog_M4 |
a7dc05b5 | 7462 | if test -n "$M4"; then |
efd58f08 RW |
7463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7464 | $as_echo "$M4" >&6; } | |
a7dc05b5 | 7465 | else |
efd58f08 RW |
7466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7467 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
7468 | fi |
7469 | ||
efd58f08 | 7470 | |
b58b6ee1 | 7471 | test -n "$M4" && break |
a7dc05b5 PB |
7472 | done |
7473 | test -n "$M4" || M4="$MISSING m4" | |
7474 | ||
7475 | case " $build_configdirs " in | |
7476 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7477 | esac | |
7478 | ||
7479 | for ac_prog in flex lex | |
7480 | do | |
b58b6ee1 | 7481 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 7482 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
7483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7484 | $as_echo_n "checking for $ac_word... " >&6; } | |
7485 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7486 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
7487 | else |
7488 | if test -n "$LEX"; then | |
7489 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7490 | else | |
b58b6ee1 DJ |
7491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7492 | for as_dir in $PATH | |
7493 | do | |
7494 | IFS=$as_save_IFS | |
7495 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
7496 | for ac_exec_ext in '' $ac_executable_extensions; do |
7497 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 7498 | ac_cv_prog_LEX="$ac_prog" |
efd58f08 | 7499 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
7500 | break 2 |
7501 | fi | |
7502 | done | |
efd58f08 RW |
7503 | done |
7504 | IFS=$as_save_IFS | |
b58b6ee1 | 7505 | |
a7dc05b5 PB |
7506 | fi |
7507 | fi | |
b58b6ee1 | 7508 | LEX=$ac_cv_prog_LEX |
a7dc05b5 | 7509 | if test -n "$LEX"; then |
efd58f08 RW |
7510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7511 | $as_echo "$LEX" >&6; } | |
a7dc05b5 | 7512 | else |
efd58f08 RW |
7513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7514 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
7515 | fi |
7516 | ||
efd58f08 | 7517 | |
b58b6ee1 | 7518 | test -n "$LEX" && break |
a7dc05b5 PB |
7519 | done |
7520 | test -n "$LEX" || LEX="$MISSING flex" | |
7521 | ||
7522 | case " $build_configdirs " in | |
7523 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7524 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7525 | esac | |
7526 | ||
7527 | for ac_prog in flex | |
7528 | do | |
b58b6ee1 | 7529 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 7530 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
7531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7532 | $as_echo_n "checking for $ac_word... " >&6; } | |
7533 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7534 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
7535 | else |
7536 | if test -n "$FLEX"; then | |
7537 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7538 | else | |
b58b6ee1 DJ |
7539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7540 | for as_dir in $PATH | |
7541 | do | |
7542 | IFS=$as_save_IFS | |
7543 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
7544 | for ac_exec_ext in '' $ac_executable_extensions; do |
7545 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 7546 | ac_cv_prog_FLEX="$ac_prog" |
efd58f08 | 7547 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
7548 | break 2 |
7549 | fi | |
7550 | done | |
efd58f08 RW |
7551 | done |
7552 | IFS=$as_save_IFS | |
b58b6ee1 | 7553 | |
a7dc05b5 PB |
7554 | fi |
7555 | fi | |
b58b6ee1 | 7556 | FLEX=$ac_cv_prog_FLEX |
a7dc05b5 | 7557 | if test -n "$FLEX"; then |
efd58f08 RW |
7558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7559 | $as_echo "$FLEX" >&6; } | |
a7dc05b5 | 7560 | else |
efd58f08 RW |
7561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7562 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
7563 | fi |
7564 | ||
efd58f08 | 7565 | |
b58b6ee1 | 7566 | test -n "$FLEX" && break |
a7dc05b5 PB |
7567 | done |
7568 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7569 | ||
7570 | case " $build_configdirs " in | |
7571 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7572 | esac | |
7573 | ||
7574 | for ac_prog in makeinfo | |
7575 | do | |
b58b6ee1 | 7576 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 7577 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
7578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7579 | $as_echo_n "checking for $ac_word... " >&6; } | |
7580 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7581 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
7582 | else |
7583 | if test -n "$MAKEINFO"; then | |
7584 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7585 | else | |
b58b6ee1 DJ |
7586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7587 | for as_dir in $PATH | |
7588 | do | |
7589 | IFS=$as_save_IFS | |
7590 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
7591 | for ac_exec_ext in '' $ac_executable_extensions; do |
7592 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 7593 | ac_cv_prog_MAKEINFO="$ac_prog" |
efd58f08 | 7594 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
7595 | break 2 |
7596 | fi | |
7597 | done | |
efd58f08 RW |
7598 | done |
7599 | IFS=$as_save_IFS | |
b58b6ee1 | 7600 | |
a7dc05b5 PB |
7601 | fi |
7602 | fi | |
b58b6ee1 | 7603 | MAKEINFO=$ac_cv_prog_MAKEINFO |
a7dc05b5 | 7604 | if test -n "$MAKEINFO"; then |
efd58f08 RW |
7605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7606 | $as_echo "$MAKEINFO" >&6; } | |
a7dc05b5 | 7607 | else |
efd58f08 RW |
7608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7609 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
7610 | fi |
7611 | ||
efd58f08 | 7612 | |
b58b6ee1 | 7613 | test -n "$MAKEINFO" && break |
a7dc05b5 PB |
7614 | done |
7615 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7616 | ||
7617 | case " $build_configdirs " in | |
7618 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7619 | *) | |
7620 | ||
3ac4fba1 | 7621 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
a7dc05b5 PB |
7622 | # higher, else we use the "missing" dummy. |
7623 | if ${MAKEINFO} --version \ | |
3ac4fba1 | 7624 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
a7dc05b5 PB |
7625 | : |
7626 | else | |
7627 | MAKEINFO="$MISSING makeinfo" | |
7628 | fi | |
7629 | ;; | |
7630 | ||
7631 | esac | |
bafecfd6 | 7632 | |
a7dc05b5 | 7633 | # FIXME: expect and dejagnu may become build tools? |
bafecfd6 | 7634 | |
a7dc05b5 PB |
7635 | for ac_prog in expect |
7636 | do | |
b58b6ee1 | 7637 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 7638 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
7639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7640 | $as_echo_n "checking for $ac_word... " >&6; } | |
7641 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7642 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
7643 | else |
7644 | if test -n "$EXPECT"; then | |
7645 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7646 | else | |
b58b6ee1 DJ |
7647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7648 | for as_dir in $PATH | |
7649 | do | |
7650 | IFS=$as_save_IFS | |
7651 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
7652 | for ac_exec_ext in '' $ac_executable_extensions; do |
7653 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 7654 | ac_cv_prog_EXPECT="$ac_prog" |
efd58f08 | 7655 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
7656 | break 2 |
7657 | fi | |
7658 | done | |
efd58f08 RW |
7659 | done |
7660 | IFS=$as_save_IFS | |
b58b6ee1 | 7661 | |
a7dc05b5 PB |
7662 | fi |
7663 | fi | |
b58b6ee1 | 7664 | EXPECT=$ac_cv_prog_EXPECT |
a7dc05b5 | 7665 | if test -n "$EXPECT"; then |
efd58f08 RW |
7666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
7667 | $as_echo "$EXPECT" >&6; } | |
a7dc05b5 | 7668 | else |
efd58f08 RW |
7669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7670 | $as_echo "no" >&6; } | |
a7dc05b5 | 7671 | fi |
bafecfd6 | 7672 | |
efd58f08 | 7673 | |
b58b6ee1 | 7674 | test -n "$EXPECT" && break |
a7dc05b5 PB |
7675 | done |
7676 | test -n "$EXPECT" || EXPECT="expect" | |
bafecfd6 | 7677 | |
a7dc05b5 PB |
7678 | case " $configdirs " in |
7679 | *" expect "*) | |
7680 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
7681 | ;; | |
7682 | esac | |
bafecfd6 | 7683 | |
a7dc05b5 PB |
7684 | for ac_prog in runtest |
7685 | do | |
b58b6ee1 | 7686 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 7687 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
7688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7689 | $as_echo_n "checking for $ac_word... " >&6; } | |
7690 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
7691 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
7692 | else |
7693 | if test -n "$RUNTEST"; then | |
7694 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
7695 | else | |
b58b6ee1 DJ |
7696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7697 | for as_dir in $PATH | |
7698 | do | |
7699 | IFS=$as_save_IFS | |
7700 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
7701 | for ac_exec_ext in '' $ac_executable_extensions; do |
7702 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 7703 | ac_cv_prog_RUNTEST="$ac_prog" |
efd58f08 | 7704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
7705 | break 2 |
7706 | fi | |
7707 | done | |
efd58f08 RW |
7708 | done |
7709 | IFS=$as_save_IFS | |
b58b6ee1 | 7710 | |
a7dc05b5 PB |
7711 | fi |
7712 | fi | |
b58b6ee1 | 7713 | RUNTEST=$ac_cv_prog_RUNTEST |
a7dc05b5 | 7714 | if test -n "$RUNTEST"; then |
efd58f08 RW |
7715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
7716 | $as_echo "$RUNTEST" >&6; } | |
a7dc05b5 | 7717 | else |
efd58f08 RW |
7718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7719 | $as_echo "no" >&6; } | |
a7dc05b5 | 7720 | fi |
bafecfd6 | 7721 | |
efd58f08 | 7722 | |
b58b6ee1 | 7723 | test -n "$RUNTEST" && break |
a7dc05b5 PB |
7724 | done |
7725 | test -n "$RUNTEST" || RUNTEST="runtest" | |
bafecfd6 | 7726 | |
a7dc05b5 PB |
7727 | case " $configdirs " in |
7728 | *" dejagnu "*) | |
adb51f0a | 7729 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
a7dc05b5 PB |
7730 | ;; |
7731 | esac | |
bafecfd6 NN |
7732 | |
7733 | ||
bafecfd6 | 7734 | # Host tools. |
a0c92996 AC |
7735 | ncn_tool_prefix= |
7736 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
7737 | ncn_target_tool_prefix= | |
7738 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
7739 | ||
82026593 AO |
7740 | |
7741 | ||
7742 | if test -n "$AR"; then | |
7743 | ac_cv_prog_AR=$AR | |
7744 | elif test -n "$ac_cv_prog_AR"; then | |
7745 | AR=$ac_cv_prog_AR | |
7746 | fi | |
7747 | ||
7748 | if test -n "$ac_cv_prog_AR"; then | |
7749 | for ncn_progname in ar; do | |
7750 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7751 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
7752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7753 | $as_echo_n "checking for $ac_word... " >&6; } | |
7754 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7755 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
7756 | else |
7757 | if test -n "$AR"; then | |
7758 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7759 | else | |
7760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7761 | for as_dir in $PATH | |
7762 | do | |
7763 | IFS=$as_save_IFS | |
7764 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
7765 | for ac_exec_ext in '' $ac_executable_extensions; do |
7766 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 7767 | ac_cv_prog_AR="${ncn_progname}" |
efd58f08 | 7768 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
7769 | break 2 |
7770 | fi | |
7771 | done | |
efd58f08 RW |
7772 | done |
7773 | IFS=$as_save_IFS | |
82026593 AO |
7774 | |
7775 | fi | |
7776 | fi | |
7777 | AR=$ac_cv_prog_AR | |
7778 | if test -n "$AR"; then | |
efd58f08 RW |
7779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7780 | $as_echo "$AR" >&6; } | |
82026593 | 7781 | else |
efd58f08 RW |
7782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7783 | $as_echo "no" >&6; } | |
82026593 AO |
7784 | fi |
7785 | ||
efd58f08 | 7786 | |
82026593 AO |
7787 | done |
7788 | fi | |
7789 | ||
7790 | for ncn_progname in ar; do | |
60cfca65 PB |
7791 | if test -n "$ncn_tool_prefix"; then |
7792 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7793 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
7794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7795 | $as_echo_n "checking for $ac_word... " >&6; } | |
7796 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7797 | $as_echo_n "(cached) " >&6 | |
a0c92996 AC |
7798 | else |
7799 | if test -n "$AR"; then | |
7800 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7801 | else | |
b58b6ee1 DJ |
7802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7803 | for as_dir in $PATH | |
7804 | do | |
7805 | IFS=$as_save_IFS | |
7806 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
7807 | for ac_exec_ext in '' $ac_executable_extensions; do |
7808 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 7809 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 7810 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
7811 | break 2 |
7812 | fi | |
7813 | done | |
efd58f08 RW |
7814 | done |
7815 | IFS=$as_save_IFS | |
b58b6ee1 | 7816 | |
a0c92996 AC |
7817 | fi |
7818 | fi | |
b58b6ee1 | 7819 | AR=$ac_cv_prog_AR |
a0c92996 | 7820 | if test -n "$AR"; then |
efd58f08 RW |
7821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7822 | $as_echo "$AR" >&6; } | |
a0c92996 | 7823 | else |
efd58f08 RW |
7824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7825 | $as_echo "no" >&6; } | |
a0c92996 AC |
7826 | fi |
7827 | ||
efd58f08 | 7828 | |
60cfca65 PB |
7829 | fi |
7830 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
7831 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7832 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
7833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7834 | $as_echo_n "checking for $ac_word... " >&6; } | |
7835 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7836 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 7837 | else |
60cfca65 PB |
7838 | if test -n "$AR"; then |
7839 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
a0c92996 | 7840 | else |
b58b6ee1 DJ |
7841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7842 | for as_dir in $PATH | |
7843 | do | |
7844 | IFS=$as_save_IFS | |
7845 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
7846 | for ac_exec_ext in '' $ac_executable_extensions; do |
7847 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 7848 | ac_cv_prog_AR="${ncn_progname}" |
efd58f08 | 7849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
7850 | break 2 |
7851 | fi | |
7852 | done | |
efd58f08 RW |
7853 | done |
7854 | IFS=$as_save_IFS | |
b58b6ee1 | 7855 | |
a0c92996 AC |
7856 | fi |
7857 | fi | |
b58b6ee1 | 7858 | AR=$ac_cv_prog_AR |
60cfca65 | 7859 | if test -n "$AR"; then |
efd58f08 RW |
7860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7861 | $as_echo "$AR" >&6; } | |
a0c92996 | 7862 | else |
efd58f08 RW |
7863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7864 | $as_echo "no" >&6; } | |
a0c92996 | 7865 | fi |
b58b6ee1 | 7866 | |
efd58f08 | 7867 | |
60cfca65 PB |
7868 | fi |
7869 | test -n "$ac_cv_prog_AR" && break | |
7870 | done | |
7871 | ||
7872 | if test -z "$ac_cv_prog_AR" ; then | |
7873 | set dummy ar | |
7874 | if test $build = $host ; then | |
7875 | AR="$2" | |
a0c92996 | 7876 | else |
60cfca65 | 7877 | AR="${ncn_tool_prefix}$2" |
a0c92996 | 7878 | fi |
a0c92996 AC |
7879 | fi |
7880 | ||
82026593 AO |
7881 | |
7882 | ||
7883 | if test -n "$AS"; then | |
7884 | ac_cv_prog_AS=$AS | |
7885 | elif test -n "$ac_cv_prog_AS"; then | |
7886 | AS=$ac_cv_prog_AS | |
7887 | fi | |
7888 | ||
7889 | if test -n "$ac_cv_prog_AS"; then | |
7890 | for ncn_progname in as; do | |
7891 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7892 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
7893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7894 | $as_echo_n "checking for $ac_word... " >&6; } | |
7895 | if test "${ac_cv_prog_AS+set}" = set; then : | |
7896 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
7897 | else |
7898 | if test -n "$AS"; then | |
7899 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
7900 | else | |
7901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7902 | for as_dir in $PATH | |
7903 | do | |
7904 | IFS=$as_save_IFS | |
7905 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
7906 | for ac_exec_ext in '' $ac_executable_extensions; do |
7907 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 7908 | ac_cv_prog_AS="${ncn_progname}" |
efd58f08 | 7909 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
7910 | break 2 |
7911 | fi | |
7912 | done | |
efd58f08 RW |
7913 | done |
7914 | IFS=$as_save_IFS | |
82026593 AO |
7915 | |
7916 | fi | |
7917 | fi | |
7918 | AS=$ac_cv_prog_AS | |
7919 | if test -n "$AS"; then | |
efd58f08 RW |
7920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
7921 | $as_echo "$AS" >&6; } | |
82026593 | 7922 | else |
efd58f08 RW |
7923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7924 | $as_echo "no" >&6; } | |
82026593 AO |
7925 | fi |
7926 | ||
efd58f08 | 7927 | |
82026593 AO |
7928 | done |
7929 | fi | |
7930 | ||
7931 | for ncn_progname in as; do | |
60cfca65 PB |
7932 | if test -n "$ncn_tool_prefix"; then |
7933 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7934 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
7935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7936 | $as_echo_n "checking for $ac_word... " >&6; } | |
7937 | if test "${ac_cv_prog_AS+set}" = set; then : | |
7938 | $as_echo_n "(cached) " >&6 | |
a0c92996 AC |
7939 | else |
7940 | if test -n "$AS"; then | |
7941 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
b58b6ee1 DJ |
7942 | else |
7943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7944 | for as_dir in $PATH | |
7945 | do | |
7946 | IFS=$as_save_IFS | |
7947 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
7948 | for ac_exec_ext in '' $ac_executable_extensions; do |
7949 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 7950 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 7951 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
7952 | break 2 |
7953 | fi | |
7954 | done | |
efd58f08 RW |
7955 | done |
7956 | IFS=$as_save_IFS | |
b58b6ee1 | 7957 | |
a0c92996 AC |
7958 | fi |
7959 | fi | |
b58b6ee1 | 7960 | AS=$ac_cv_prog_AS |
a0c92996 | 7961 | if test -n "$AS"; then |
efd58f08 RW |
7962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
7963 | $as_echo "$AS" >&6; } | |
a0c92996 | 7964 | else |
efd58f08 RW |
7965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7966 | $as_echo "no" >&6; } | |
a0c92996 AC |
7967 | fi |
7968 | ||
efd58f08 | 7969 | |
60cfca65 PB |
7970 | fi |
7971 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
7972 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7973 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
7974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7975 | $as_echo_n "checking for $ac_word... " >&6; } | |
7976 | if test "${ac_cv_prog_AS+set}" = set; then : | |
7977 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 7978 | else |
60cfca65 PB |
7979 | if test -n "$AS"; then |
7980 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
a0c92996 | 7981 | else |
b58b6ee1 DJ |
7982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7983 | for as_dir in $PATH | |
7984 | do | |
7985 | IFS=$as_save_IFS | |
7986 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
7987 | for ac_exec_ext in '' $ac_executable_extensions; do |
7988 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 7989 | ac_cv_prog_AS="${ncn_progname}" |
efd58f08 | 7990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
7991 | break 2 |
7992 | fi | |
7993 | done | |
efd58f08 RW |
7994 | done |
7995 | IFS=$as_save_IFS | |
b58b6ee1 | 7996 | |
a0c92996 AC |
7997 | fi |
7998 | fi | |
b58b6ee1 | 7999 | AS=$ac_cv_prog_AS |
60cfca65 | 8000 | if test -n "$AS"; then |
efd58f08 RW |
8001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8002 | $as_echo "$AS" >&6; } | |
a0c92996 | 8003 | else |
efd58f08 RW |
8004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8005 | $as_echo "no" >&6; } | |
a0c92996 | 8006 | fi |
b58b6ee1 | 8007 | |
efd58f08 | 8008 | |
60cfca65 PB |
8009 | fi |
8010 | test -n "$ac_cv_prog_AS" && break | |
8011 | done | |
8012 | ||
8013 | if test -z "$ac_cv_prog_AS" ; then | |
8014 | set dummy as | |
8015 | if test $build = $host ; then | |
8016 | AS="$2" | |
a0c92996 | 8017 | else |
60cfca65 | 8018 | AS="${ncn_tool_prefix}$2" |
a0c92996 | 8019 | fi |
a0c92996 AC |
8020 | fi |
8021 | ||
82026593 AO |
8022 | |
8023 | ||
8024 | if test -n "$DLLTOOL"; then | |
8025 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8026 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8027 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8028 | fi | |
8029 | ||
8030 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8031 | for ncn_progname in dlltool; do | |
8032 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8033 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8035 | $as_echo_n "checking for $ac_word... " >&6; } | |
8036 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8037 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
8038 | else |
8039 | if test -n "$DLLTOOL"; then | |
8040 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8041 | else | |
8042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8043 | for as_dir in $PATH | |
8044 | do | |
8045 | IFS=$as_save_IFS | |
8046 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8047 | for ac_exec_ext in '' $ac_executable_extensions; do |
8048 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 8049 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
efd58f08 | 8050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
8051 | break 2 |
8052 | fi | |
8053 | done | |
efd58f08 RW |
8054 | done |
8055 | IFS=$as_save_IFS | |
82026593 AO |
8056 | |
8057 | fi | |
8058 | fi | |
8059 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8060 | if test -n "$DLLTOOL"; then | |
efd58f08 RW |
8061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8062 | $as_echo "$DLLTOOL" >&6; } | |
82026593 | 8063 | else |
efd58f08 RW |
8064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8065 | $as_echo "no" >&6; } | |
82026593 AO |
8066 | fi |
8067 | ||
efd58f08 | 8068 | |
82026593 AO |
8069 | done |
8070 | fi | |
8071 | ||
8072 | for ncn_progname in dlltool; do | |
60cfca65 PB |
8073 | if test -n "$ncn_tool_prefix"; then |
8074 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8075 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8077 | $as_echo_n "checking for $ac_word... " >&6; } | |
8078 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8079 | $as_echo_n "(cached) " >&6 | |
a0c92996 AC |
8080 | else |
8081 | if test -n "$DLLTOOL"; then | |
8082 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8083 | else | |
b58b6ee1 DJ |
8084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8085 | for as_dir in $PATH | |
8086 | do | |
8087 | IFS=$as_save_IFS | |
8088 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8089 | for ac_exec_ext in '' $ac_executable_extensions; do |
8090 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8091 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 8092 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8093 | break 2 |
8094 | fi | |
8095 | done | |
efd58f08 RW |
8096 | done |
8097 | IFS=$as_save_IFS | |
b58b6ee1 | 8098 | |
a0c92996 AC |
8099 | fi |
8100 | fi | |
b58b6ee1 | 8101 | DLLTOOL=$ac_cv_prog_DLLTOOL |
a0c92996 | 8102 | if test -n "$DLLTOOL"; then |
efd58f08 RW |
8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8104 | $as_echo "$DLLTOOL" >&6; } | |
a0c92996 | 8105 | else |
efd58f08 RW |
8106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8107 | $as_echo "no" >&6; } | |
a0c92996 AC |
8108 | fi |
8109 | ||
efd58f08 | 8110 | |
60cfca65 PB |
8111 | fi |
8112 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8113 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8114 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8116 | $as_echo_n "checking for $ac_word... " >&6; } | |
8117 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8118 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 8119 | else |
60cfca65 PB |
8120 | if test -n "$DLLTOOL"; then |
8121 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
a0c92996 | 8122 | else |
b58b6ee1 DJ |
8123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8124 | for as_dir in $PATH | |
8125 | do | |
8126 | IFS=$as_save_IFS | |
8127 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8128 | for ac_exec_ext in '' $ac_executable_extensions; do |
8129 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8130 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
efd58f08 | 8131 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8132 | break 2 |
8133 | fi | |
8134 | done | |
efd58f08 RW |
8135 | done |
8136 | IFS=$as_save_IFS | |
b58b6ee1 | 8137 | |
a0c92996 AC |
8138 | fi |
8139 | fi | |
b58b6ee1 | 8140 | DLLTOOL=$ac_cv_prog_DLLTOOL |
60cfca65 | 8141 | if test -n "$DLLTOOL"; then |
efd58f08 RW |
8142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8143 | $as_echo "$DLLTOOL" >&6; } | |
a0c92996 | 8144 | else |
efd58f08 RW |
8145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8146 | $as_echo "no" >&6; } | |
a0c92996 | 8147 | fi |
b58b6ee1 | 8148 | |
efd58f08 | 8149 | |
60cfca65 PB |
8150 | fi |
8151 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8152 | done | |
8153 | ||
8154 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8155 | set dummy dlltool | |
8156 | if test $build = $host ; then | |
8157 | DLLTOOL="$2" | |
a0c92996 | 8158 | else |
60cfca65 | 8159 | DLLTOOL="${ncn_tool_prefix}$2" |
a0c92996 | 8160 | fi |
a0c92996 AC |
8161 | fi |
8162 | ||
82026593 AO |
8163 | |
8164 | ||
8165 | if test -n "$LD"; then | |
8166 | ac_cv_prog_LD=$LD | |
8167 | elif test -n "$ac_cv_prog_LD"; then | |
8168 | LD=$ac_cv_prog_LD | |
8169 | fi | |
8170 | ||
8171 | if test -n "$ac_cv_prog_LD"; then | |
8172 | for ncn_progname in ld; do | |
8173 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8174 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8176 | $as_echo_n "checking for $ac_word... " >&6; } | |
8177 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8178 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
8179 | else |
8180 | if test -n "$LD"; then | |
8181 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8182 | else | |
8183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8184 | for as_dir in $PATH | |
8185 | do | |
8186 | IFS=$as_save_IFS | |
8187 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8188 | for ac_exec_ext in '' $ac_executable_extensions; do |
8189 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 8190 | ac_cv_prog_LD="${ncn_progname}" |
efd58f08 | 8191 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
8192 | break 2 |
8193 | fi | |
8194 | done | |
efd58f08 RW |
8195 | done |
8196 | IFS=$as_save_IFS | |
82026593 AO |
8197 | |
8198 | fi | |
8199 | fi | |
8200 | LD=$ac_cv_prog_LD | |
8201 | if test -n "$LD"; then | |
efd58f08 RW |
8202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8203 | $as_echo "$LD" >&6; } | |
82026593 | 8204 | else |
efd58f08 RW |
8205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8206 | $as_echo "no" >&6; } | |
82026593 AO |
8207 | fi |
8208 | ||
efd58f08 | 8209 | |
82026593 AO |
8210 | done |
8211 | fi | |
8212 | ||
8213 | for ncn_progname in ld; do | |
60cfca65 PB |
8214 | if test -n "$ncn_tool_prefix"; then |
8215 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8216 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8218 | $as_echo_n "checking for $ac_word... " >&6; } | |
8219 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8220 | $as_echo_n "(cached) " >&6 | |
a0c92996 AC |
8221 | else |
8222 | if test -n "$LD"; then | |
8223 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8224 | else | |
b58b6ee1 DJ |
8225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8226 | for as_dir in $PATH | |
8227 | do | |
8228 | IFS=$as_save_IFS | |
8229 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8230 | for ac_exec_ext in '' $ac_executable_extensions; do |
8231 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8232 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 8233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8234 | break 2 |
8235 | fi | |
8236 | done | |
efd58f08 RW |
8237 | done |
8238 | IFS=$as_save_IFS | |
b58b6ee1 | 8239 | |
a0c92996 AC |
8240 | fi |
8241 | fi | |
b58b6ee1 | 8242 | LD=$ac_cv_prog_LD |
a0c92996 | 8243 | if test -n "$LD"; then |
efd58f08 RW |
8244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8245 | $as_echo "$LD" >&6; } | |
a0c92996 | 8246 | else |
efd58f08 RW |
8247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8248 | $as_echo "no" >&6; } | |
a0c92996 AC |
8249 | fi |
8250 | ||
efd58f08 | 8251 | |
60cfca65 PB |
8252 | fi |
8253 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8254 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8255 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8257 | $as_echo_n "checking for $ac_word... " >&6; } | |
8258 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8259 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 8260 | else |
60cfca65 PB |
8261 | if test -n "$LD"; then |
8262 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
76402c80 | 8263 | else |
b58b6ee1 DJ |
8264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8265 | for as_dir in $PATH | |
8266 | do | |
8267 | IFS=$as_save_IFS | |
8268 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8269 | for ac_exec_ext in '' $ac_executable_extensions; do |
8270 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8271 | ac_cv_prog_LD="${ncn_progname}" |
efd58f08 | 8272 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8273 | break 2 |
8274 | fi | |
8275 | done | |
efd58f08 RW |
8276 | done |
8277 | IFS=$as_save_IFS | |
b58b6ee1 | 8278 | |
a0c92996 AC |
8279 | fi |
8280 | fi | |
b58b6ee1 | 8281 | LD=$ac_cv_prog_LD |
60cfca65 | 8282 | if test -n "$LD"; then |
efd58f08 RW |
8283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8284 | $as_echo "$LD" >&6; } | |
a0c92996 | 8285 | else |
efd58f08 RW |
8286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8287 | $as_echo "no" >&6; } | |
a0c92996 | 8288 | fi |
b58b6ee1 | 8289 | |
efd58f08 | 8290 | |
60cfca65 PB |
8291 | fi |
8292 | test -n "$ac_cv_prog_LD" && break | |
8293 | done | |
8294 | ||
8295 | if test -z "$ac_cv_prog_LD" ; then | |
8296 | set dummy ld | |
8297 | if test $build = $host ; then | |
8298 | LD="$2" | |
a0c92996 | 8299 | else |
60cfca65 | 8300 | LD="${ncn_tool_prefix}$2" |
a0c92996 | 8301 | fi |
a0c92996 AC |
8302 | fi |
8303 | ||
82026593 AO |
8304 | |
8305 | ||
8306 | if test -n "$LIPO"; then | |
8307 | ac_cv_prog_LIPO=$LIPO | |
8308 | elif test -n "$ac_cv_prog_LIPO"; then | |
8309 | LIPO=$ac_cv_prog_LIPO | |
8310 | fi | |
8311 | ||
8312 | if test -n "$ac_cv_prog_LIPO"; then | |
8313 | for ncn_progname in lipo; do | |
8314 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8315 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8317 | $as_echo_n "checking for $ac_word... " >&6; } | |
8318 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8319 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
8320 | else |
8321 | if test -n "$LIPO"; then | |
8322 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8323 | else | |
8324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8325 | for as_dir in $PATH | |
8326 | do | |
8327 | IFS=$as_save_IFS | |
8328 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8329 | for ac_exec_ext in '' $ac_executable_extensions; do |
8330 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 8331 | ac_cv_prog_LIPO="${ncn_progname}" |
efd58f08 | 8332 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
8333 | break 2 |
8334 | fi | |
8335 | done | |
efd58f08 RW |
8336 | done |
8337 | IFS=$as_save_IFS | |
82026593 AO |
8338 | |
8339 | fi | |
8340 | fi | |
8341 | LIPO=$ac_cv_prog_LIPO | |
8342 | if test -n "$LIPO"; then | |
efd58f08 RW |
8343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8344 | $as_echo "$LIPO" >&6; } | |
82026593 | 8345 | else |
efd58f08 RW |
8346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8347 | $as_echo "no" >&6; } | |
82026593 AO |
8348 | fi |
8349 | ||
efd58f08 | 8350 | |
82026593 AO |
8351 | done |
8352 | fi | |
8353 | ||
8354 | for ncn_progname in lipo; do | |
a7dc05b5 PB |
8355 | if test -n "$ncn_tool_prefix"; then |
8356 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8357 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8359 | $as_echo_n "checking for $ac_word... " >&6; } | |
8360 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8361 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
8362 | else |
8363 | if test -n "$LIPO"; then | |
8364 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8365 | else | |
b58b6ee1 DJ |
8366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8367 | for as_dir in $PATH | |
8368 | do | |
8369 | IFS=$as_save_IFS | |
8370 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8371 | for ac_exec_ext in '' $ac_executable_extensions; do |
8372 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8373 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 8374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8375 | break 2 |
8376 | fi | |
8377 | done | |
efd58f08 RW |
8378 | done |
8379 | IFS=$as_save_IFS | |
b58b6ee1 | 8380 | |
a7dc05b5 PB |
8381 | fi |
8382 | fi | |
b58b6ee1 | 8383 | LIPO=$ac_cv_prog_LIPO |
a7dc05b5 | 8384 | if test -n "$LIPO"; then |
efd58f08 RW |
8385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8386 | $as_echo "$LIPO" >&6; } | |
a7dc05b5 | 8387 | else |
efd58f08 RW |
8388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8389 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
8390 | fi |
8391 | ||
efd58f08 | 8392 | |
a7dc05b5 PB |
8393 | fi |
8394 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8395 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8396 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8398 | $as_echo_n "checking for $ac_word... " >&6; } | |
8399 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8400 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
8401 | else |
8402 | if test -n "$LIPO"; then | |
8403 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8404 | else | |
b58b6ee1 DJ |
8405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8406 | for as_dir in $PATH | |
8407 | do | |
8408 | IFS=$as_save_IFS | |
8409 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8410 | for ac_exec_ext in '' $ac_executable_extensions; do |
8411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8412 | ac_cv_prog_LIPO="${ncn_progname}" |
efd58f08 | 8413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8414 | break 2 |
8415 | fi | |
8416 | done | |
efd58f08 RW |
8417 | done |
8418 | IFS=$as_save_IFS | |
b58b6ee1 | 8419 | |
a7dc05b5 PB |
8420 | fi |
8421 | fi | |
b58b6ee1 | 8422 | LIPO=$ac_cv_prog_LIPO |
a7dc05b5 | 8423 | if test -n "$LIPO"; then |
efd58f08 RW |
8424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8425 | $as_echo "$LIPO" >&6; } | |
a7dc05b5 | 8426 | else |
efd58f08 RW |
8427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8428 | $as_echo "no" >&6; } | |
a7dc05b5 | 8429 | fi |
b58b6ee1 | 8430 | |
efd58f08 | 8431 | |
a7dc05b5 PB |
8432 | fi |
8433 | test -n "$ac_cv_prog_LIPO" && break | |
8434 | done | |
8435 | ||
8436 | if test -z "$ac_cv_prog_LIPO" ; then | |
8437 | set dummy lipo | |
8438 | if test $build = $host ; then | |
8439 | LIPO="$2" | |
8440 | else | |
8441 | LIPO="${ncn_tool_prefix}$2" | |
8442 | fi | |
8443 | fi | |
8444 | ||
82026593 AO |
8445 | |
8446 | ||
8447 | if test -n "$NM"; then | |
8448 | ac_cv_prog_NM=$NM | |
8449 | elif test -n "$ac_cv_prog_NM"; then | |
8450 | NM=$ac_cv_prog_NM | |
8451 | fi | |
8452 | ||
8453 | if test -n "$ac_cv_prog_NM"; then | |
8454 | for ncn_progname in nm; do | |
8455 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8456 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8458 | $as_echo_n "checking for $ac_word... " >&6; } | |
8459 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8460 | $as_echo_n "(cached) " >&6 | |
a0c92996 AC |
8461 | else |
8462 | if test -n "$NM"; then | |
8463 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8464 | else | |
b58b6ee1 DJ |
8465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8466 | for as_dir in $PATH | |
8467 | do | |
8468 | IFS=$as_save_IFS | |
8469 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8470 | for ac_exec_ext in '' $ac_executable_extensions; do |
8471 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 8472 | ac_cv_prog_NM="${ncn_progname}" |
efd58f08 | 8473 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8474 | break 2 |
8475 | fi | |
8476 | done | |
efd58f08 RW |
8477 | done |
8478 | IFS=$as_save_IFS | |
b58b6ee1 | 8479 | |
a0c92996 AC |
8480 | fi |
8481 | fi | |
b58b6ee1 | 8482 | NM=$ac_cv_prog_NM |
a0c92996 | 8483 | if test -n "$NM"; then |
efd58f08 RW |
8484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8485 | $as_echo "$NM" >&6; } | |
a0c92996 | 8486 | else |
efd58f08 RW |
8487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8488 | $as_echo "no" >&6; } | |
a0c92996 AC |
8489 | fi |
8490 | ||
efd58f08 | 8491 | |
82026593 AO |
8492 | done |
8493 | fi | |
8494 | ||
8495 | for ncn_progname in nm; do | |
8496 | if test -n "$ncn_tool_prefix"; then | |
8497 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8498 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8500 | $as_echo_n "checking for $ac_word... " >&6; } | |
8501 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8502 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 8503 | else |
60cfca65 PB |
8504 | if test -n "$NM"; then |
8505 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
a0c92996 | 8506 | else |
b58b6ee1 DJ |
8507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8508 | for as_dir in $PATH | |
8509 | do | |
8510 | IFS=$as_save_IFS | |
8511 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8512 | for ac_exec_ext in '' $ac_executable_extensions; do |
8513 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 8514 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 8515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8516 | break 2 |
8517 | fi | |
8518 | done | |
efd58f08 RW |
8519 | done |
8520 | IFS=$as_save_IFS | |
b58b6ee1 | 8521 | |
a0c92996 AC |
8522 | fi |
8523 | fi | |
b58b6ee1 | 8524 | NM=$ac_cv_prog_NM |
60cfca65 | 8525 | if test -n "$NM"; then |
efd58f08 RW |
8526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8527 | $as_echo "$NM" >&6; } | |
a0c92996 | 8528 | else |
efd58f08 RW |
8529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8530 | $as_echo "no" >&6; } | |
a0c92996 | 8531 | fi |
b58b6ee1 | 8532 | |
efd58f08 | 8533 | |
60cfca65 | 8534 | fi |
82026593 AO |
8535 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8536 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8537 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8539 | $as_echo_n "checking for $ac_word... " >&6; } | |
8540 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8541 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
8542 | else |
8543 | if test -n "$NM"; then | |
8544 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8545 | else | |
8546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8547 | for as_dir in $PATH | |
8548 | do | |
8549 | IFS=$as_save_IFS | |
8550 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8551 | for ac_exec_ext in '' $ac_executable_extensions; do |
8552 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 8553 | ac_cv_prog_NM="${ncn_progname}" |
efd58f08 | 8554 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
8555 | break 2 |
8556 | fi | |
8557 | done | |
efd58f08 RW |
8558 | done |
8559 | IFS=$as_save_IFS | |
82026593 AO |
8560 | |
8561 | fi | |
8562 | fi | |
8563 | NM=$ac_cv_prog_NM | |
8564 | if test -n "$NM"; then | |
efd58f08 RW |
8565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8566 | $as_echo "$NM" >&6; } | |
82026593 | 8567 | else |
efd58f08 RW |
8568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8569 | $as_echo "no" >&6; } | |
82026593 AO |
8570 | fi |
8571 | ||
efd58f08 | 8572 | |
82026593 AO |
8573 | fi |
8574 | test -n "$ac_cv_prog_NM" && break | |
8575 | done | |
8576 | ||
8577 | if test -z "$ac_cv_prog_NM" ; then | |
8578 | set dummy nm | |
8579 | if test $build = $host ; then | |
8580 | NM="$2" | |
8581 | else | |
8582 | NM="${ncn_tool_prefix}$2" | |
8583 | fi | |
8584 | fi | |
8585 | ||
8586 | ||
8587 | ||
8588 | if test -n "$RANLIB"; then | |
8589 | ac_cv_prog_RANLIB=$RANLIB | |
8590 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8591 | RANLIB=$ac_cv_prog_RANLIB | |
8592 | fi | |
8593 | ||
8594 | if test -n "$ac_cv_prog_RANLIB"; then | |
8595 | for ncn_progname in ranlib; do | |
8596 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8597 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8599 | $as_echo_n "checking for $ac_word... " >&6; } | |
8600 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8601 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
8602 | else |
8603 | if test -n "$RANLIB"; then | |
8604 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8605 | else | |
8606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8607 | for as_dir in $PATH | |
8608 | do | |
8609 | IFS=$as_save_IFS | |
8610 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8611 | for ac_exec_ext in '' $ac_executable_extensions; do |
8612 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 8613 | ac_cv_prog_RANLIB="${ncn_progname}" |
efd58f08 | 8614 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
8615 | break 2 |
8616 | fi | |
8617 | done | |
efd58f08 RW |
8618 | done |
8619 | IFS=$as_save_IFS | |
82026593 AO |
8620 | |
8621 | fi | |
8622 | fi | |
8623 | RANLIB=$ac_cv_prog_RANLIB | |
8624 | if test -n "$RANLIB"; then | |
efd58f08 RW |
8625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8626 | $as_echo "$RANLIB" >&6; } | |
82026593 | 8627 | else |
efd58f08 RW |
8628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8629 | $as_echo "no" >&6; } | |
82026593 AO |
8630 | fi |
8631 | ||
efd58f08 | 8632 | |
82026593 AO |
8633 | done |
8634 | fi | |
a0c92996 | 8635 | |
82026593 | 8636 | for ncn_progname in ranlib; do |
60cfca65 PB |
8637 | if test -n "$ncn_tool_prefix"; then |
8638 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8639 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8641 | $as_echo_n "checking for $ac_word... " >&6; } | |
8642 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8643 | $as_echo_n "(cached) " >&6 | |
a0c92996 AC |
8644 | else |
8645 | if test -n "$RANLIB"; then | |
8646 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8647 | else | |
b58b6ee1 DJ |
8648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8649 | for as_dir in $PATH | |
8650 | do | |
8651 | IFS=$as_save_IFS | |
8652 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8653 | for ac_exec_ext in '' $ac_executable_extensions; do |
8654 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8655 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 8656 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8657 | break 2 |
8658 | fi | |
8659 | done | |
efd58f08 RW |
8660 | done |
8661 | IFS=$as_save_IFS | |
b58b6ee1 | 8662 | |
a0c92996 AC |
8663 | fi |
8664 | fi | |
b58b6ee1 | 8665 | RANLIB=$ac_cv_prog_RANLIB |
a0c92996 | 8666 | if test -n "$RANLIB"; then |
efd58f08 RW |
8667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8668 | $as_echo "$RANLIB" >&6; } | |
a0c92996 | 8669 | else |
efd58f08 RW |
8670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8671 | $as_echo "no" >&6; } | |
a0c92996 AC |
8672 | fi |
8673 | ||
efd58f08 | 8674 | |
60cfca65 PB |
8675 | fi |
8676 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
8677 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8678 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8680 | $as_echo_n "checking for $ac_word... " >&6; } | |
8681 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8682 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 8683 | else |
60cfca65 PB |
8684 | if test -n "$RANLIB"; then |
8685 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
a0c92996 | 8686 | else |
b58b6ee1 DJ |
8687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8688 | for as_dir in $PATH | |
8689 | do | |
8690 | IFS=$as_save_IFS | |
8691 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8692 | for ac_exec_ext in '' $ac_executable_extensions; do |
8693 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8694 | ac_cv_prog_RANLIB="${ncn_progname}" |
efd58f08 | 8695 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8696 | break 2 |
8697 | fi | |
8698 | done | |
efd58f08 RW |
8699 | done |
8700 | IFS=$as_save_IFS | |
b58b6ee1 | 8701 | |
a0c92996 AC |
8702 | fi |
8703 | fi | |
b58b6ee1 | 8704 | RANLIB=$ac_cv_prog_RANLIB |
60cfca65 | 8705 | if test -n "$RANLIB"; then |
efd58f08 RW |
8706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8707 | $as_echo "$RANLIB" >&6; } | |
a0c92996 | 8708 | else |
efd58f08 RW |
8709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8710 | $as_echo "no" >&6; } | |
a0c92996 | 8711 | fi |
b58b6ee1 | 8712 | |
efd58f08 | 8713 | |
a0c92996 | 8714 | fi |
60cfca65 PB |
8715 | test -n "$ac_cv_prog_RANLIB" && break |
8716 | done | |
8717 | ||
8718 | if test -z "$ac_cv_prog_RANLIB" ; then | |
56fbdfab | 8719 | RANLIB="true" |
a0c92996 AC |
8720 | fi |
8721 | ||
82026593 AO |
8722 | |
8723 | ||
8724 | if test -n "$STRIP"; then | |
8725 | ac_cv_prog_STRIP=$STRIP | |
8726 | elif test -n "$ac_cv_prog_STRIP"; then | |
8727 | STRIP=$ac_cv_prog_STRIP | |
8728 | fi | |
8729 | ||
8730 | if test -n "$ac_cv_prog_STRIP"; then | |
8731 | for ncn_progname in strip; do | |
8732 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8733 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8735 | $as_echo_n "checking for $ac_word... " >&6; } | |
8736 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8737 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
8738 | else |
8739 | if test -n "$STRIP"; then | |
8740 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8741 | else | |
8742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8743 | for as_dir in $PATH | |
8744 | do | |
8745 | IFS=$as_save_IFS | |
8746 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8747 | for ac_exec_ext in '' $ac_executable_extensions; do |
8748 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 8749 | ac_cv_prog_STRIP="${ncn_progname}" |
efd58f08 | 8750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
8751 | break 2 |
8752 | fi | |
8753 | done | |
efd58f08 RW |
8754 | done |
8755 | IFS=$as_save_IFS | |
82026593 AO |
8756 | |
8757 | fi | |
8758 | fi | |
8759 | STRIP=$ac_cv_prog_STRIP | |
8760 | if test -n "$STRIP"; then | |
efd58f08 RW |
8761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8762 | $as_echo "$STRIP" >&6; } | |
82026593 | 8763 | else |
efd58f08 RW |
8764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8765 | $as_echo "no" >&6; } | |
82026593 AO |
8766 | fi |
8767 | ||
efd58f08 | 8768 | |
82026593 AO |
8769 | done |
8770 | fi | |
8771 | ||
8772 | for ncn_progname in strip; do | |
a7dc05b5 PB |
8773 | if test -n "$ncn_tool_prefix"; then |
8774 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8775 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8777 | $as_echo_n "checking for $ac_word... " >&6; } | |
8778 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8779 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
8780 | else |
8781 | if test -n "$STRIP"; then | |
8782 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8783 | else | |
b58b6ee1 DJ |
8784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8785 | for as_dir in $PATH | |
8786 | do | |
8787 | IFS=$as_save_IFS | |
8788 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8789 | for ac_exec_ext in '' $ac_executable_extensions; do |
8790 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8791 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 8792 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8793 | break 2 |
8794 | fi | |
8795 | done | |
efd58f08 RW |
8796 | done |
8797 | IFS=$as_save_IFS | |
b58b6ee1 | 8798 | |
a7dc05b5 PB |
8799 | fi |
8800 | fi | |
b58b6ee1 | 8801 | STRIP=$ac_cv_prog_STRIP |
a7dc05b5 | 8802 | if test -n "$STRIP"; then |
efd58f08 RW |
8803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8804 | $as_echo "$STRIP" >&6; } | |
a7dc05b5 | 8805 | else |
efd58f08 RW |
8806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8807 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
8808 | fi |
8809 | ||
efd58f08 | 8810 | |
a7dc05b5 PB |
8811 | fi |
8812 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
8813 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8814 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8816 | $as_echo_n "checking for $ac_word... " >&6; } | |
8817 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8818 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
8819 | else |
8820 | if test -n "$STRIP"; then | |
8821 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8822 | else | |
b58b6ee1 DJ |
8823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8824 | for as_dir in $PATH | |
8825 | do | |
8826 | IFS=$as_save_IFS | |
8827 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8828 | for ac_exec_ext in '' $ac_executable_extensions; do |
8829 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8830 | ac_cv_prog_STRIP="${ncn_progname}" |
efd58f08 | 8831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8832 | break 2 |
8833 | fi | |
8834 | done | |
efd58f08 RW |
8835 | done |
8836 | IFS=$as_save_IFS | |
b58b6ee1 | 8837 | |
a7dc05b5 PB |
8838 | fi |
8839 | fi | |
b58b6ee1 | 8840 | STRIP=$ac_cv_prog_STRIP |
a7dc05b5 | 8841 | if test -n "$STRIP"; then |
efd58f08 RW |
8842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8843 | $as_echo "$STRIP" >&6; } | |
a7dc05b5 | 8844 | else |
efd58f08 RW |
8845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8846 | $as_echo "no" >&6; } | |
a7dc05b5 | 8847 | fi |
b58b6ee1 | 8848 | |
efd58f08 | 8849 | |
a7dc05b5 PB |
8850 | fi |
8851 | test -n "$ac_cv_prog_STRIP" && break | |
8852 | done | |
8853 | ||
8854 | if test -z "$ac_cv_prog_STRIP" ; then | |
56fbdfab | 8855 | STRIP="true" |
a7dc05b5 PB |
8856 | fi |
8857 | ||
82026593 AO |
8858 | |
8859 | ||
8860 | if test -n "$WINDRES"; then | |
8861 | ac_cv_prog_WINDRES=$WINDRES | |
8862 | elif test -n "$ac_cv_prog_WINDRES"; then | |
8863 | WINDRES=$ac_cv_prog_WINDRES | |
8864 | fi | |
8865 | ||
8866 | if test -n "$ac_cv_prog_WINDRES"; then | |
8867 | for ncn_progname in windres; do | |
8868 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8869 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8871 | $as_echo_n "checking for $ac_word... " >&6; } | |
8872 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
8873 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
8874 | else |
8875 | if test -n "$WINDRES"; then | |
8876 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8877 | else | |
8878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8879 | for as_dir in $PATH | |
8880 | do | |
8881 | IFS=$as_save_IFS | |
8882 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8883 | for ac_exec_ext in '' $ac_executable_extensions; do |
8884 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 8885 | ac_cv_prog_WINDRES="${ncn_progname}" |
efd58f08 | 8886 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
8887 | break 2 |
8888 | fi | |
8889 | done | |
efd58f08 RW |
8890 | done |
8891 | IFS=$as_save_IFS | |
82026593 AO |
8892 | |
8893 | fi | |
8894 | fi | |
8895 | WINDRES=$ac_cv_prog_WINDRES | |
8896 | if test -n "$WINDRES"; then | |
efd58f08 RW |
8897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
8898 | $as_echo "$WINDRES" >&6; } | |
82026593 | 8899 | else |
efd58f08 RW |
8900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8901 | $as_echo "no" >&6; } | |
82026593 AO |
8902 | fi |
8903 | ||
efd58f08 | 8904 | |
82026593 AO |
8905 | done |
8906 | fi | |
8907 | ||
8908 | for ncn_progname in windres; do | |
60cfca65 PB |
8909 | if test -n "$ncn_tool_prefix"; then |
8910 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8911 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8913 | $as_echo_n "checking for $ac_word... " >&6; } | |
8914 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
8915 | $as_echo_n "(cached) " >&6 | |
a0c92996 AC |
8916 | else |
8917 | if test -n "$WINDRES"; then | |
8918 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8919 | else | |
b58b6ee1 DJ |
8920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8921 | for as_dir in $PATH | |
8922 | do | |
8923 | IFS=$as_save_IFS | |
8924 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8925 | for ac_exec_ext in '' $ac_executable_extensions; do |
8926 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8927 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 8928 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8929 | break 2 |
8930 | fi | |
8931 | done | |
efd58f08 RW |
8932 | done |
8933 | IFS=$as_save_IFS | |
b58b6ee1 | 8934 | |
a0c92996 AC |
8935 | fi |
8936 | fi | |
b58b6ee1 | 8937 | WINDRES=$ac_cv_prog_WINDRES |
a0c92996 | 8938 | if test -n "$WINDRES"; then |
efd58f08 RW |
8939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
8940 | $as_echo "$WINDRES" >&6; } | |
a0c92996 | 8941 | else |
efd58f08 RW |
8942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8943 | $as_echo "no" >&6; } | |
a0c92996 AC |
8944 | fi |
8945 | ||
efd58f08 | 8946 | |
60cfca65 PB |
8947 | fi |
8948 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
8949 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8950 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8952 | $as_echo_n "checking for $ac_word... " >&6; } | |
8953 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
8954 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 8955 | else |
60cfca65 PB |
8956 | if test -n "$WINDRES"; then |
8957 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
a0c92996 | 8958 | else |
b58b6ee1 DJ |
8959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8960 | for as_dir in $PATH | |
8961 | do | |
8962 | IFS=$as_save_IFS | |
8963 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8964 | for ac_exec_ext in '' $ac_executable_extensions; do |
8965 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8966 | ac_cv_prog_WINDRES="${ncn_progname}" |
efd58f08 | 8967 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8968 | break 2 |
8969 | fi | |
8970 | done | |
efd58f08 RW |
8971 | done |
8972 | IFS=$as_save_IFS | |
b58b6ee1 | 8973 | |
a0c92996 AC |
8974 | fi |
8975 | fi | |
b58b6ee1 | 8976 | WINDRES=$ac_cv_prog_WINDRES |
60cfca65 | 8977 | if test -n "$WINDRES"; then |
efd58f08 RW |
8978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
8979 | $as_echo "$WINDRES" >&6; } | |
a0c92996 | 8980 | else |
efd58f08 RW |
8981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8982 | $as_echo "no" >&6; } | |
a0c92996 | 8983 | fi |
b58b6ee1 | 8984 | |
efd58f08 | 8985 | |
60cfca65 PB |
8986 | fi |
8987 | test -n "$ac_cv_prog_WINDRES" && break | |
8988 | done | |
8989 | ||
8990 | if test -z "$ac_cv_prog_WINDRES" ; then | |
8991 | set dummy windres | |
8992 | if test $build = $host ; then | |
8993 | WINDRES="$2" | |
a0c92996 | 8994 | else |
60cfca65 | 8995 | WINDRES="${ncn_tool_prefix}$2" |
a0c92996 | 8996 | fi |
a0c92996 AC |
8997 | fi |
8998 | ||
82026593 AO |
8999 | |
9000 | ||
bffcbe34 NC |
9001 | if test -n "$WINDMC"; then |
9002 | ac_cv_prog_WINDMC=$WINDMC | |
9003 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9004 | WINDMC=$ac_cv_prog_WINDMC | |
9005 | fi | |
9006 | ||
9007 | if test -n "$ac_cv_prog_WINDMC"; then | |
9008 | for ncn_progname in windmc; do | |
9009 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9010 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9012 | $as_echo_n "checking for $ac_word... " >&6; } | |
9013 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9014 | $as_echo_n "(cached) " >&6 | |
bffcbe34 NC |
9015 | else |
9016 | if test -n "$WINDMC"; then | |
9017 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9018 | else | |
9019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9020 | for as_dir in $PATH | |
9021 | do | |
9022 | IFS=$as_save_IFS | |
9023 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9024 | for ac_exec_ext in '' $ac_executable_extensions; do |
9025 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bffcbe34 | 9026 | ac_cv_prog_WINDMC="${ncn_progname}" |
efd58f08 | 9027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bffcbe34 NC |
9028 | break 2 |
9029 | fi | |
9030 | done | |
efd58f08 RW |
9031 | done |
9032 | IFS=$as_save_IFS | |
bffcbe34 NC |
9033 | |
9034 | fi | |
9035 | fi | |
9036 | WINDMC=$ac_cv_prog_WINDMC | |
9037 | if test -n "$WINDMC"; then | |
efd58f08 RW |
9038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9039 | $as_echo "$WINDMC" >&6; } | |
bffcbe34 | 9040 | else |
efd58f08 RW |
9041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9042 | $as_echo "no" >&6; } | |
bffcbe34 NC |
9043 | fi |
9044 | ||
efd58f08 | 9045 | |
bffcbe34 NC |
9046 | done |
9047 | fi | |
9048 | ||
9049 | for ncn_progname in windmc; do | |
9050 | if test -n "$ncn_tool_prefix"; then | |
9051 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9052 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9054 | $as_echo_n "checking for $ac_word... " >&6; } | |
9055 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9056 | $as_echo_n "(cached) " >&6 | |
bffcbe34 NC |
9057 | else |
9058 | if test -n "$WINDMC"; then | |
9059 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9060 | else | |
9061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9062 | for as_dir in $PATH | |
9063 | do | |
9064 | IFS=$as_save_IFS | |
9065 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9066 | for ac_exec_ext in '' $ac_executable_extensions; do |
9067 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bffcbe34 | 9068 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 9069 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bffcbe34 NC |
9070 | break 2 |
9071 | fi | |
9072 | done | |
efd58f08 RW |
9073 | done |
9074 | IFS=$as_save_IFS | |
bffcbe34 NC |
9075 | |
9076 | fi | |
9077 | fi | |
9078 | WINDMC=$ac_cv_prog_WINDMC | |
9079 | if test -n "$WINDMC"; then | |
efd58f08 RW |
9080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9081 | $as_echo "$WINDMC" >&6; } | |
bffcbe34 | 9082 | else |
efd58f08 RW |
9083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9084 | $as_echo "no" >&6; } | |
bffcbe34 NC |
9085 | fi |
9086 | ||
efd58f08 | 9087 | |
bffcbe34 NC |
9088 | fi |
9089 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9090 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9091 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9093 | $as_echo_n "checking for $ac_word... " >&6; } | |
9094 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9095 | $as_echo_n "(cached) " >&6 | |
bffcbe34 NC |
9096 | else |
9097 | if test -n "$WINDMC"; then | |
9098 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9099 | else | |
9100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9101 | for as_dir in $PATH | |
9102 | do | |
9103 | IFS=$as_save_IFS | |
9104 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9105 | for ac_exec_ext in '' $ac_executable_extensions; do |
9106 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bffcbe34 | 9107 | ac_cv_prog_WINDMC="${ncn_progname}" |
efd58f08 | 9108 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bffcbe34 NC |
9109 | break 2 |
9110 | fi | |
9111 | done | |
efd58f08 RW |
9112 | done |
9113 | IFS=$as_save_IFS | |
bffcbe34 NC |
9114 | |
9115 | fi | |
9116 | fi | |
9117 | WINDMC=$ac_cv_prog_WINDMC | |
9118 | if test -n "$WINDMC"; then | |
efd58f08 RW |
9119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9120 | $as_echo "$WINDMC" >&6; } | |
bffcbe34 | 9121 | else |
efd58f08 RW |
9122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9123 | $as_echo "no" >&6; } | |
bffcbe34 NC |
9124 | fi |
9125 | ||
efd58f08 | 9126 | |
bffcbe34 NC |
9127 | fi |
9128 | test -n "$ac_cv_prog_WINDMC" && break | |
9129 | done | |
9130 | ||
9131 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9132 | set dummy windmc | |
9133 | if test $build = $host ; then | |
9134 | WINDMC="$2" | |
9135 | else | |
9136 | WINDMC="${ncn_tool_prefix}$2" | |
9137 | fi | |
9138 | fi | |
9139 | ||
9140 | ||
9141 | ||
82026593 AO |
9142 | if test -n "$OBJCOPY"; then |
9143 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9144 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9145 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9146 | fi | |
9147 | ||
9148 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9149 | for ncn_progname in objcopy; do | |
9150 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9151 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9153 | $as_echo_n "checking for $ac_word... " >&6; } | |
9154 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9155 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
9156 | else |
9157 | if test -n "$OBJCOPY"; then | |
9158 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9159 | else | |
9160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9161 | for as_dir in $PATH | |
9162 | do | |
9163 | IFS=$as_save_IFS | |
9164 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9165 | for ac_exec_ext in '' $ac_executable_extensions; do |
9166 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 9167 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
efd58f08 | 9168 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
9169 | break 2 |
9170 | fi | |
9171 | done | |
efd58f08 RW |
9172 | done |
9173 | IFS=$as_save_IFS | |
82026593 AO |
9174 | |
9175 | fi | |
9176 | fi | |
9177 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9178 | if test -n "$OBJCOPY"; then | |
efd58f08 RW |
9179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9180 | $as_echo "$OBJCOPY" >&6; } | |
82026593 | 9181 | else |
efd58f08 RW |
9182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9183 | $as_echo "no" >&6; } | |
82026593 AO |
9184 | fi |
9185 | ||
efd58f08 | 9186 | |
82026593 AO |
9187 | done |
9188 | fi | |
9189 | ||
9190 | for ncn_progname in objcopy; do | |
60cfca65 PB |
9191 | if test -n "$ncn_tool_prefix"; then |
9192 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9193 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9195 | $as_echo_n "checking for $ac_word... " >&6; } | |
9196 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9197 | $as_echo_n "(cached) " >&6 | |
a0c92996 AC |
9198 | else |
9199 | if test -n "$OBJCOPY"; then | |
9200 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9201 | else | |
b58b6ee1 DJ |
9202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9203 | for as_dir in $PATH | |
9204 | do | |
9205 | IFS=$as_save_IFS | |
9206 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9207 | for ac_exec_ext in '' $ac_executable_extensions; do |
9208 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 9209 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 9210 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9211 | break 2 |
9212 | fi | |
9213 | done | |
efd58f08 RW |
9214 | done |
9215 | IFS=$as_save_IFS | |
b58b6ee1 | 9216 | |
a0c92996 AC |
9217 | fi |
9218 | fi | |
b58b6ee1 | 9219 | OBJCOPY=$ac_cv_prog_OBJCOPY |
a0c92996 | 9220 | if test -n "$OBJCOPY"; then |
efd58f08 RW |
9221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9222 | $as_echo "$OBJCOPY" >&6; } | |
a0c92996 | 9223 | else |
efd58f08 RW |
9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9225 | $as_echo "no" >&6; } | |
a0c92996 AC |
9226 | fi |
9227 | ||
efd58f08 | 9228 | |
60cfca65 PB |
9229 | fi |
9230 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9231 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9232 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9234 | $as_echo_n "checking for $ac_word... " >&6; } | |
9235 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9236 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 9237 | else |
60cfca65 PB |
9238 | if test -n "$OBJCOPY"; then |
9239 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
a0c92996 | 9240 | else |
b58b6ee1 DJ |
9241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9242 | for as_dir in $PATH | |
9243 | do | |
9244 | IFS=$as_save_IFS | |
9245 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9246 | for ac_exec_ext in '' $ac_executable_extensions; do |
9247 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 9248 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
efd58f08 | 9249 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9250 | break 2 |
9251 | fi | |
9252 | done | |
efd58f08 RW |
9253 | done |
9254 | IFS=$as_save_IFS | |
b58b6ee1 | 9255 | |
a0c92996 AC |
9256 | fi |
9257 | fi | |
b58b6ee1 | 9258 | OBJCOPY=$ac_cv_prog_OBJCOPY |
60cfca65 | 9259 | if test -n "$OBJCOPY"; then |
efd58f08 RW |
9260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9261 | $as_echo "$OBJCOPY" >&6; } | |
a0c92996 | 9262 | else |
efd58f08 RW |
9263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9264 | $as_echo "no" >&6; } | |
a0c92996 | 9265 | fi |
b58b6ee1 | 9266 | |
efd58f08 | 9267 | |
60cfca65 PB |
9268 | fi |
9269 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9270 | done | |
9271 | ||
9272 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9273 | set dummy objcopy | |
9274 | if test $build = $host ; then | |
9275 | OBJCOPY="$2" | |
a0c92996 | 9276 | else |
60cfca65 | 9277 | OBJCOPY="${ncn_tool_prefix}$2" |
a0c92996 | 9278 | fi |
a0c92996 AC |
9279 | fi |
9280 | ||
82026593 AO |
9281 | |
9282 | ||
9283 | if test -n "$OBJDUMP"; then | |
9284 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9285 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9286 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9287 | fi | |
9288 | ||
9289 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9290 | for ncn_progname in objdump; do | |
9291 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9292 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9294 | $as_echo_n "checking for $ac_word... " >&6; } | |
9295 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9296 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
9297 | else |
9298 | if test -n "$OBJDUMP"; then | |
9299 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9300 | else | |
9301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9302 | for as_dir in $PATH | |
9303 | do | |
9304 | IFS=$as_save_IFS | |
9305 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9306 | for ac_exec_ext in '' $ac_executable_extensions; do |
9307 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 9308 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
efd58f08 | 9309 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
9310 | break 2 |
9311 | fi | |
9312 | done | |
efd58f08 RW |
9313 | done |
9314 | IFS=$as_save_IFS | |
82026593 AO |
9315 | |
9316 | fi | |
9317 | fi | |
9318 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9319 | if test -n "$OBJDUMP"; then | |
efd58f08 RW |
9320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9321 | $as_echo "$OBJDUMP" >&6; } | |
82026593 | 9322 | else |
efd58f08 RW |
9323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9324 | $as_echo "no" >&6; } | |
82026593 AO |
9325 | fi |
9326 | ||
efd58f08 | 9327 | |
82026593 AO |
9328 | done |
9329 | fi | |
9330 | ||
9331 | for ncn_progname in objdump; do | |
60cfca65 PB |
9332 | if test -n "$ncn_tool_prefix"; then |
9333 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9334 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9336 | $as_echo_n "checking for $ac_word... " >&6; } | |
9337 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9338 | $as_echo_n "(cached) " >&6 | |
a0c92996 AC |
9339 | else |
9340 | if test -n "$OBJDUMP"; then | |
9341 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9342 | else | |
b58b6ee1 DJ |
9343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9344 | for as_dir in $PATH | |
9345 | do | |
9346 | IFS=$as_save_IFS | |
9347 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9348 | for ac_exec_ext in '' $ac_executable_extensions; do |
9349 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 9350 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 9351 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9352 | break 2 |
9353 | fi | |
9354 | done | |
efd58f08 RW |
9355 | done |
9356 | IFS=$as_save_IFS | |
b58b6ee1 | 9357 | |
a0c92996 AC |
9358 | fi |
9359 | fi | |
b58b6ee1 | 9360 | OBJDUMP=$ac_cv_prog_OBJDUMP |
a0c92996 | 9361 | if test -n "$OBJDUMP"; then |
efd58f08 RW |
9362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9363 | $as_echo "$OBJDUMP" >&6; } | |
a0c92996 | 9364 | else |
efd58f08 RW |
9365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9366 | $as_echo "no" >&6; } | |
a0c92996 AC |
9367 | fi |
9368 | ||
efd58f08 | 9369 | |
60cfca65 PB |
9370 | fi |
9371 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9372 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9373 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9375 | $as_echo_n "checking for $ac_word... " >&6; } | |
9376 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9377 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 9378 | else |
60cfca65 PB |
9379 | if test -n "$OBJDUMP"; then |
9380 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
a0c92996 | 9381 | else |
b58b6ee1 DJ |
9382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9383 | for as_dir in $PATH | |
9384 | do | |
9385 | IFS=$as_save_IFS | |
9386 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9387 | for ac_exec_ext in '' $ac_executable_extensions; do |
9388 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 9389 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
efd58f08 | 9390 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9391 | break 2 |
9392 | fi | |
9393 | done | |
efd58f08 RW |
9394 | done |
9395 | IFS=$as_save_IFS | |
b58b6ee1 | 9396 | |
a0c92996 AC |
9397 | fi |
9398 | fi | |
b58b6ee1 | 9399 | OBJDUMP=$ac_cv_prog_OBJDUMP |
60cfca65 | 9400 | if test -n "$OBJDUMP"; then |
efd58f08 RW |
9401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9402 | $as_echo "$OBJDUMP" >&6; } | |
a0c92996 | 9403 | else |
efd58f08 RW |
9404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9405 | $as_echo "no" >&6; } | |
a0c92996 | 9406 | fi |
b58b6ee1 | 9407 | |
efd58f08 | 9408 | |
60cfca65 PB |
9409 | fi |
9410 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9411 | done | |
9412 | ||
9413 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9414 | set dummy objdump | |
9415 | if test $build = $host ; then | |
9416 | OBJDUMP="$2" | |
a0c92996 | 9417 | else |
60cfca65 | 9418 | OBJDUMP="${ncn_tool_prefix}$2" |
a0c92996 | 9419 | fi |
a0c92996 AC |
9420 | fi |
9421 | ||
bafecfd6 NN |
9422 | |
9423 | ||
46e7439b DD |
9424 | if test -n "$READELF"; then |
9425 | ac_cv_prog_READELF=$READELF | |
9426 | elif test -n "$ac_cv_prog_READELF"; then | |
9427 | READELF=$ac_cv_prog_READELF | |
9428 | fi | |
9429 | ||
9430 | if test -n "$ac_cv_prog_READELF"; then | |
9431 | for ncn_progname in readelf; do | |
9432 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9433 | set dummy ${ncn_progname}; ac_word=$2 | |
9434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9435 | $as_echo_n "checking for $ac_word... " >&6; } | |
9436 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9437 | $as_echo_n "(cached) " >&6 | |
9438 | else | |
9439 | if test -n "$READELF"; then | |
9440 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9441 | else | |
9442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9443 | for as_dir in $PATH | |
9444 | do | |
9445 | IFS=$as_save_IFS | |
9446 | test -z "$as_dir" && as_dir=. | |
9447 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9448 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9449 | ac_cv_prog_READELF="${ncn_progname}" | |
9450 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9451 | break 2 | |
9452 | fi | |
9453 | done | |
9454 | done | |
9455 | IFS=$as_save_IFS | |
9456 | ||
9457 | fi | |
9458 | fi | |
9459 | READELF=$ac_cv_prog_READELF | |
9460 | if test -n "$READELF"; then | |
9461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9462 | $as_echo "$READELF" >&6; } | |
9463 | else | |
9464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9465 | $as_echo "no" >&6; } | |
9466 | fi | |
9467 | ||
9468 | ||
9469 | done | |
9470 | fi | |
9471 | ||
9472 | for ncn_progname in readelf; do | |
9473 | if test -n "$ncn_tool_prefix"; then | |
9474 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9475 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9477 | $as_echo_n "checking for $ac_word... " >&6; } | |
9478 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9479 | $as_echo_n "(cached) " >&6 | |
9480 | else | |
9481 | if test -n "$READELF"; then | |
9482 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9483 | else | |
9484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9485 | for as_dir in $PATH | |
9486 | do | |
9487 | IFS=$as_save_IFS | |
9488 | test -z "$as_dir" && as_dir=. | |
9489 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9490 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9491 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" | |
9492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9493 | break 2 | |
9494 | fi | |
9495 | done | |
9496 | done | |
9497 | IFS=$as_save_IFS | |
9498 | ||
9499 | fi | |
9500 | fi | |
9501 | READELF=$ac_cv_prog_READELF | |
9502 | if test -n "$READELF"; then | |
9503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9504 | $as_echo "$READELF" >&6; } | |
9505 | else | |
9506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9507 | $as_echo "no" >&6; } | |
9508 | fi | |
9509 | ||
9510 | ||
9511 | fi | |
9512 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9513 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9514 | set dummy ${ncn_progname}; ac_word=$2 | |
9515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9516 | $as_echo_n "checking for $ac_word... " >&6; } | |
9517 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9518 | $as_echo_n "(cached) " >&6 | |
9519 | else | |
9520 | if test -n "$READELF"; then | |
9521 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9522 | else | |
9523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9524 | for as_dir in $PATH | |
9525 | do | |
9526 | IFS=$as_save_IFS | |
9527 | test -z "$as_dir" && as_dir=. | |
9528 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9529 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9530 | ac_cv_prog_READELF="${ncn_progname}" | |
9531 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9532 | break 2 | |
9533 | fi | |
9534 | done | |
9535 | done | |
9536 | IFS=$as_save_IFS | |
9537 | ||
9538 | fi | |
9539 | fi | |
9540 | READELF=$ac_cv_prog_READELF | |
9541 | if test -n "$READELF"; then | |
9542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9543 | $as_echo "$READELF" >&6; } | |
9544 | else | |
9545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9546 | $as_echo "no" >&6; } | |
9547 | fi | |
9548 | ||
9549 | ||
9550 | fi | |
9551 | test -n "$ac_cv_prog_READELF" && break | |
9552 | done | |
9553 | ||
9554 | if test -z "$ac_cv_prog_READELF" ; then | |
9555 | set dummy readelf | |
9556 | if test $build = $host ; then | |
9557 | READELF="$2" | |
9558 | else | |
9559 | READELF="${ncn_tool_prefix}$2" | |
9560 | fi | |
9561 | fi | |
9562 | ||
9563 | ||
9564 | ||
bafecfd6 NN |
9565 | |
9566 | ||
9567 | ||
a7dc05b5 | 9568 | # Target tools. |
b58b6ee1 | 9569 | |
efd58f08 RW |
9570 | # Check whether --with-build-time-tools was given. |
9571 | if test "${with_build_time_tools+set}" = set; then : | |
9572 | withval=$with_build_time_tools; case x"$withval" in | |
fef3f213 PB |
9573 | x/*) ;; |
9574 | *) | |
9575 | with_build_time_tools= | |
efd58f08 RW |
9576 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9577 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
fef3f213 PB |
9578 | ;; |
9579 | esac | |
a0c92996 | 9580 | else |
fef3f213 | 9581 | with_build_time_tools= |
efd58f08 RW |
9582 | fi |
9583 | ||
a0c92996 | 9584 | |
82026593 AO |
9585 | |
9586 | ||
9587 | if test -n "$CC_FOR_TARGET"; then | |
9588 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9589 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9590 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9591 | fi | |
9592 | ||
9593 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9594 | for ncn_progname in cc gcc; do | |
9595 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9596 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9598 | $as_echo_n "checking for $ac_word... " >&6; } | |
9599 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9600 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
9601 | else |
9602 | if test -n "$CC_FOR_TARGET"; then | |
9603 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9604 | else | |
9605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9606 | for as_dir in $PATH | |
9607 | do | |
9608 | IFS=$as_save_IFS | |
9609 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9610 | for ac_exec_ext in '' $ac_executable_extensions; do |
9611 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 9612 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
efd58f08 | 9613 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
9614 | break 2 |
9615 | fi | |
9616 | done | |
efd58f08 RW |
9617 | done |
9618 | IFS=$as_save_IFS | |
82026593 AO |
9619 | |
9620 | fi | |
9621 | fi | |
9622 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9623 | if test -n "$CC_FOR_TARGET"; then | |
efd58f08 RW |
9624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9625 | $as_echo "$CC_FOR_TARGET" >&6; } | |
82026593 | 9626 | else |
efd58f08 RW |
9627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9628 | $as_echo "no" >&6; } | |
82026593 AO |
9629 | fi |
9630 | ||
efd58f08 | 9631 | |
82026593 AO |
9632 | done |
9633 | fi | |
9634 | ||
9635 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 9636 | for ncn_progname in cc gcc; do |
efd58f08 RW |
9637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9638 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
9639 | if test -x $with_build_time_tools/${ncn_progname}; then |
9640 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
9641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9642 | $as_echo "yes" >&6; } | |
f69e2532 | 9643 | break |
fef3f213 | 9644 | else |
efd58f08 RW |
9645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9646 | $as_echo "no" >&6; } | |
f69e2532 CM |
9647 | fi |
9648 | done | |
5fb28bcc PB |
9649 | fi |
9650 | ||
fef3f213 PB |
9651 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
9652 | for ncn_progname in cc gcc; do | |
9653 | if test -n "$ncn_target_tool_prefix"; then | |
9654 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 9655 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
9656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9657 | $as_echo_n "checking for $ac_word... " >&6; } | |
9658 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9659 | $as_echo_n "(cached) " >&6 | |
5fb28bcc PB |
9660 | else |
9661 | if test -n "$CC_FOR_TARGET"; then | |
9662 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9663 | else | |
b58b6ee1 DJ |
9664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9665 | for as_dir in $PATH | |
9666 | do | |
9667 | IFS=$as_save_IFS | |
9668 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9669 | for ac_exec_ext in '' $ac_executable_extensions; do |
9670 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 9671 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 9672 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9673 | break 2 |
9674 | fi | |
9675 | done | |
efd58f08 RW |
9676 | done |
9677 | IFS=$as_save_IFS | |
b58b6ee1 | 9678 | |
5fb28bcc PB |
9679 | fi |
9680 | fi | |
b58b6ee1 | 9681 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
5fb28bcc | 9682 | if test -n "$CC_FOR_TARGET"; then |
efd58f08 RW |
9683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9684 | $as_echo "$CC_FOR_TARGET" >&6; } | |
5fb28bcc | 9685 | else |
efd58f08 RW |
9686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9687 | $as_echo "no" >&6; } | |
5fb28bcc PB |
9688 | fi |
9689 | ||
efd58f08 | 9690 | |
fef3f213 PB |
9691 | fi |
9692 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
9693 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 9694 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
9695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9696 | $as_echo_n "checking for $ac_word... " >&6; } | |
9697 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9698 | $as_echo_n "(cached) " >&6 | |
5fb28bcc | 9699 | else |
60cfca65 PB |
9700 | if test -n "$CC_FOR_TARGET"; then |
9701 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
5fb28bcc | 9702 | else |
b58b6ee1 DJ |
9703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9704 | for as_dir in $PATH | |
9705 | do | |
9706 | IFS=$as_save_IFS | |
9707 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9708 | for ac_exec_ext in '' $ac_executable_extensions; do |
9709 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 9710 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
efd58f08 | 9711 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9712 | break 2 |
9713 | fi | |
9714 | done | |
efd58f08 RW |
9715 | done |
9716 | IFS=$as_save_IFS | |
b58b6ee1 | 9717 | |
5fb28bcc PB |
9718 | fi |
9719 | fi | |
b58b6ee1 | 9720 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
60cfca65 | 9721 | if test -n "$CC_FOR_TARGET"; then |
efd58f08 RW |
9722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9723 | $as_echo "$CC_FOR_TARGET" >&6; } | |
5fb28bcc | 9724 | else |
efd58f08 RW |
9725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9726 | $as_echo "no" >&6; } | |
5fb28bcc | 9727 | fi |
b58b6ee1 | 9728 | |
efd58f08 | 9729 | |
fef3f213 PB |
9730 | fi |
9731 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
9732 | done | |
9733 | fi | |
b58b6ee1 | 9734 | |
60cfca65 PB |
9735 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
9736 | set dummy cc gcc | |
9737 | if test $build = $target ; then | |
9738 | CC_FOR_TARGET="$2" | |
5fb28bcc | 9739 | else |
60cfca65 | 9740 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
5fb28bcc | 9741 | fi |
d058b81b MS |
9742 | else |
9743 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
5fb28bcc PB |
9744 | fi |
9745 | ||
82026593 AO |
9746 | |
9747 | ||
9748 | if test -n "$CXX_FOR_TARGET"; then | |
9749 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
9750 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9751 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9752 | fi | |
9753 | ||
9754 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9755 | for ncn_progname in c++ g++ cxx gxx; do | |
9756 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9757 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9759 | $as_echo_n "checking for $ac_word... " >&6; } | |
9760 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9761 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
9762 | else |
9763 | if test -n "$CXX_FOR_TARGET"; then | |
9764 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9765 | else | |
9766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9767 | for as_dir in $PATH | |
9768 | do | |
9769 | IFS=$as_save_IFS | |
9770 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9771 | for ac_exec_ext in '' $ac_executable_extensions; do |
9772 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 9773 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
efd58f08 | 9774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
9775 | break 2 |
9776 | fi | |
9777 | done | |
efd58f08 RW |
9778 | done |
9779 | IFS=$as_save_IFS | |
82026593 AO |
9780 | |
9781 | fi | |
9782 | fi | |
9783 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9784 | if test -n "$CXX_FOR_TARGET"; then | |
efd58f08 RW |
9785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9786 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
82026593 | 9787 | else |
efd58f08 RW |
9788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9789 | $as_echo "no" >&6; } | |
82026593 AO |
9790 | fi |
9791 | ||
efd58f08 | 9792 | |
82026593 AO |
9793 | done |
9794 | fi | |
9795 | ||
9796 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 9797 | for ncn_progname in c++ g++ cxx gxx; do |
efd58f08 RW |
9798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9799 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
9800 | if test -x $with_build_time_tools/${ncn_progname}; then |
9801 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
9802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9803 | $as_echo "yes" >&6; } | |
fef3f213 PB |
9804 | break |
9805 | else | |
efd58f08 RW |
9806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9807 | $as_echo "no" >&6; } | |
fef3f213 PB |
9808 | fi |
9809 | done | |
9810 | fi | |
9811 | ||
9812 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9813 | for ncn_progname in c++ g++ cxx gxx; do | |
9814 | if test -n "$ncn_target_tool_prefix"; then | |
9815 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 9816 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
9817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9818 | $as_echo_n "checking for $ac_word... " >&6; } | |
9819 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9820 | $as_echo_n "(cached) " >&6 | |
5fb28bcc PB |
9821 | else |
9822 | if test -n "$CXX_FOR_TARGET"; then | |
9823 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9824 | else | |
b58b6ee1 DJ |
9825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9826 | for as_dir in $PATH | |
9827 | do | |
9828 | IFS=$as_save_IFS | |
9829 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9830 | for ac_exec_ext in '' $ac_executable_extensions; do |
9831 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 9832 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 9833 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9834 | break 2 |
9835 | fi | |
9836 | done | |
efd58f08 RW |
9837 | done |
9838 | IFS=$as_save_IFS | |
b58b6ee1 | 9839 | |
5fb28bcc PB |
9840 | fi |
9841 | fi | |
b58b6ee1 | 9842 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
5fb28bcc | 9843 | if test -n "$CXX_FOR_TARGET"; then |
efd58f08 RW |
9844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9845 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
5fb28bcc | 9846 | else |
efd58f08 RW |
9847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9848 | $as_echo "no" >&6; } | |
5fb28bcc PB |
9849 | fi |
9850 | ||
efd58f08 | 9851 | |
fef3f213 PB |
9852 | fi |
9853 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
9854 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 9855 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
9856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9857 | $as_echo_n "checking for $ac_word... " >&6; } | |
9858 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9859 | $as_echo_n "(cached) " >&6 | |
5fb28bcc | 9860 | else |
60cfca65 PB |
9861 | if test -n "$CXX_FOR_TARGET"; then |
9862 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
5fb28bcc | 9863 | else |
b58b6ee1 DJ |
9864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9865 | for as_dir in $PATH | |
9866 | do | |
9867 | IFS=$as_save_IFS | |
9868 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9869 | for ac_exec_ext in '' $ac_executable_extensions; do |
9870 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 9871 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
efd58f08 | 9872 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9873 | break 2 |
9874 | fi | |
9875 | done | |
efd58f08 RW |
9876 | done |
9877 | IFS=$as_save_IFS | |
b58b6ee1 | 9878 | |
5fb28bcc PB |
9879 | fi |
9880 | fi | |
b58b6ee1 | 9881 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
60cfca65 | 9882 | if test -n "$CXX_FOR_TARGET"; then |
efd58f08 RW |
9883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9884 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
5fb28bcc | 9885 | else |
efd58f08 RW |
9886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9887 | $as_echo "no" >&6; } | |
5fb28bcc | 9888 | fi |
b58b6ee1 | 9889 | |
efd58f08 | 9890 | |
fef3f213 PB |
9891 | fi |
9892 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
9893 | done | |
9894 | fi | |
b58b6ee1 | 9895 | |
60cfca65 PB |
9896 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
9897 | set dummy c++ g++ cxx gxx | |
9898 | if test $build = $target ; then | |
9899 | CXX_FOR_TARGET="$2" | |
5fb28bcc | 9900 | else |
60cfca65 | 9901 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
5fb28bcc | 9902 | fi |
d058b81b MS |
9903 | else |
9904 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
a0c92996 AC |
9905 | fi |
9906 | ||
82026593 AO |
9907 | |
9908 | ||
9909 | if test -n "$GCC_FOR_TARGET"; then | |
9910 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
9911 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9912 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
9913 | fi | |
9914 | ||
9915 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9916 | for ncn_progname in gcc; do | |
9917 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9918 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9920 | $as_echo_n "checking for $ac_word... " >&6; } | |
9921 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
9922 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
9923 | else |
9924 | if test -n "$GCC_FOR_TARGET"; then | |
9925 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
9926 | else | |
9927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9928 | for as_dir in $PATH | |
9929 | do | |
9930 | IFS=$as_save_IFS | |
9931 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9932 | for ac_exec_ext in '' $ac_executable_extensions; do |
9933 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 9934 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
efd58f08 | 9935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
9936 | break 2 |
9937 | fi | |
9938 | done | |
efd58f08 RW |
9939 | done |
9940 | IFS=$as_save_IFS | |
82026593 AO |
9941 | |
9942 | fi | |
9943 | fi | |
9944 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
9945 | if test -n "$GCC_FOR_TARGET"; then | |
efd58f08 RW |
9946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
9947 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
82026593 | 9948 | else |
efd58f08 RW |
9949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9950 | $as_echo "no" >&6; } | |
82026593 AO |
9951 | fi |
9952 | ||
efd58f08 | 9953 | |
82026593 AO |
9954 | done |
9955 | fi | |
9956 | ||
9957 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 9958 | for ncn_progname in gcc; do |
efd58f08 RW |
9959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9960 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
9961 | if test -x $with_build_time_tools/${ncn_progname}; then |
9962 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
9963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9964 | $as_echo "yes" >&6; } | |
fef3f213 PB |
9965 | break |
9966 | else | |
efd58f08 RW |
9967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9968 | $as_echo "no" >&6; } | |
fef3f213 PB |
9969 | fi |
9970 | done | |
9971 | fi | |
9972 | ||
9973 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9974 | for ncn_progname in gcc; do | |
9975 | if test -n "$ncn_target_tool_prefix"; then | |
9976 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 9977 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
9978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9979 | $as_echo_n "checking for $ac_word... " >&6; } | |
9980 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
9981 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 9982 | else |
fef3f213 PB |
9983 | if test -n "$GCC_FOR_TARGET"; then |
9984 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
5fb28bcc | 9985 | else |
b58b6ee1 DJ |
9986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9987 | for as_dir in $PATH | |
9988 | do | |
9989 | IFS=$as_save_IFS | |
9990 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9991 | for ac_exec_ext in '' $ac_executable_extensions; do |
9992 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 9993 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 9994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9995 | break 2 |
9996 | fi | |
9997 | done | |
efd58f08 RW |
9998 | done |
9999 | IFS=$as_save_IFS | |
b58b6ee1 | 10000 | |
5fb28bcc PB |
10001 | fi |
10002 | fi | |
b58b6ee1 | 10003 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
5fb28bcc | 10004 | if test -n "$GCC_FOR_TARGET"; then |
efd58f08 RW |
10005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10006 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
5fb28bcc | 10007 | else |
efd58f08 RW |
10008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10009 | $as_echo "no" >&6; } | |
5fb28bcc PB |
10010 | fi |
10011 | ||
efd58f08 | 10012 | |
fef3f213 PB |
10013 | fi |
10014 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10015 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10016 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10018 | $as_echo_n "checking for $ac_word... " >&6; } | |
10019 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10020 | $as_echo_n "(cached) " >&6 | |
5fb28bcc | 10021 | else |
60cfca65 PB |
10022 | if test -n "$GCC_FOR_TARGET"; then |
10023 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
5fb28bcc | 10024 | else |
b58b6ee1 DJ |
10025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10026 | for as_dir in $PATH | |
10027 | do | |
10028 | IFS=$as_save_IFS | |
10029 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10030 | for ac_exec_ext in '' $ac_executable_extensions; do |
10031 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 10032 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10033 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10034 | break 2 |
10035 | fi | |
10036 | done | |
efd58f08 RW |
10037 | done |
10038 | IFS=$as_save_IFS | |
b58b6ee1 | 10039 | |
5fb28bcc PB |
10040 | fi |
10041 | fi | |
b58b6ee1 | 10042 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
60cfca65 | 10043 | if test -n "$GCC_FOR_TARGET"; then |
efd58f08 RW |
10044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10045 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
5fb28bcc | 10046 | else |
efd58f08 RW |
10047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10048 | $as_echo "no" >&6; } | |
5fb28bcc | 10049 | fi |
b58b6ee1 | 10050 | |
efd58f08 | 10051 | |
fef3f213 PB |
10052 | fi |
10053 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10054 | done | |
10055 | fi | |
b58b6ee1 | 10056 | |
60cfca65 PB |
10057 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10058 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d058b81b MS |
10059 | else |
10060 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
5fb28bcc PB |
10061 | fi |
10062 | ||
82026593 AO |
10063 | |
10064 | ||
10065 | if test -n "$GCJ_FOR_TARGET"; then | |
10066 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10067 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10068 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10069 | fi | |
10070 | ||
10071 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10072 | for ncn_progname in gcj; do | |
10073 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10074 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
10075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10076 | $as_echo_n "checking for $ac_word... " >&6; } | |
10077 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10078 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
10079 | else |
10080 | if test -n "$GCJ_FOR_TARGET"; then | |
10081 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10082 | else | |
10083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10084 | for as_dir in $PATH | |
10085 | do | |
10086 | IFS=$as_save_IFS | |
10087 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10088 | for ac_exec_ext in '' $ac_executable_extensions; do |
10089 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 10090 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
10092 | break 2 |
10093 | fi | |
10094 | done | |
efd58f08 RW |
10095 | done |
10096 | IFS=$as_save_IFS | |
82026593 AO |
10097 | |
10098 | fi | |
10099 | fi | |
10100 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10101 | if test -n "$GCJ_FOR_TARGET"; then | |
efd58f08 RW |
10102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10103 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
82026593 | 10104 | else |
efd58f08 RW |
10105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10106 | $as_echo "no" >&6; } | |
82026593 AO |
10107 | fi |
10108 | ||
efd58f08 | 10109 | |
82026593 AO |
10110 | done |
10111 | fi | |
10112 | ||
10113 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 10114 | for ncn_progname in gcj; do |
efd58f08 RW |
10115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10116 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
10117 | if test -x $with_build_time_tools/${ncn_progname}; then |
10118 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
10119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10120 | $as_echo "yes" >&6; } | |
fef3f213 PB |
10121 | break |
10122 | else | |
efd58f08 RW |
10123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10124 | $as_echo "no" >&6; } | |
fef3f213 PB |
10125 | fi |
10126 | done | |
10127 | fi | |
10128 | ||
10129 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10130 | for ncn_progname in gcj; do | |
10131 | if test -n "$ncn_target_tool_prefix"; then | |
10132 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10133 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10135 | $as_echo_n "checking for $ac_word... " >&6; } | |
10136 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10137 | $as_echo_n "(cached) " >&6 | |
5fb28bcc PB |
10138 | else |
10139 | if test -n "$GCJ_FOR_TARGET"; then | |
10140 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10141 | else | |
b58b6ee1 DJ |
10142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10143 | for as_dir in $PATH | |
10144 | do | |
10145 | IFS=$as_save_IFS | |
10146 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10147 | for ac_exec_ext in '' $ac_executable_extensions; do |
10148 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 10149 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 10150 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10151 | break 2 |
10152 | fi | |
10153 | done | |
efd58f08 RW |
10154 | done |
10155 | IFS=$as_save_IFS | |
b58b6ee1 | 10156 | |
5fb28bcc PB |
10157 | fi |
10158 | fi | |
82026593 AO |
10159 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10160 | if test -n "$GCJ_FOR_TARGET"; then | |
efd58f08 RW |
10161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10162 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
82026593 | 10163 | else |
efd58f08 RW |
10164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10165 | $as_echo "no" >&6; } | |
82026593 AO |
10166 | fi |
10167 | ||
efd58f08 | 10168 | |
82026593 AO |
10169 | fi |
10170 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10171 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10172 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
10173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10174 | $as_echo_n "checking for $ac_word... " >&6; } | |
10175 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10176 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
10177 | else |
10178 | if test -n "$GCJ_FOR_TARGET"; then | |
10179 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10180 | else | |
10181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10182 | for as_dir in $PATH | |
10183 | do | |
10184 | IFS=$as_save_IFS | |
10185 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10186 | for ac_exec_ext in '' $ac_executable_extensions; do |
10187 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 10188 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10189 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
10190 | break 2 |
10191 | fi | |
10192 | done | |
efd58f08 RW |
10193 | done |
10194 | IFS=$as_save_IFS | |
82026593 AO |
10195 | |
10196 | fi | |
10197 | fi | |
10198 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10199 | if test -n "$GCJ_FOR_TARGET"; then | |
efd58f08 RW |
10200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10201 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
82026593 | 10202 | else |
efd58f08 RW |
10203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10204 | $as_echo "no" >&6; } | |
82026593 AO |
10205 | fi |
10206 | ||
efd58f08 | 10207 | |
82026593 AO |
10208 | fi |
10209 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10210 | done | |
10211 | fi | |
10212 | ||
10213 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10214 | set dummy gcj | |
10215 | if test $build = $target ; then | |
10216 | GCJ_FOR_TARGET="$2" | |
10217 | else | |
10218 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10219 | fi | |
d058b81b MS |
10220 | else |
10221 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
82026593 AO |
10222 | fi |
10223 | ||
10224 | ||
10225 | ||
10226 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10227 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10228 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10229 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
5fb28bcc PB |
10230 | fi |
10231 | ||
82026593 AO |
10232 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10233 | for ncn_progname in gfortran; do | |
10234 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10235 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10237 | $as_echo_n "checking for $ac_word... " >&6; } | |
10238 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10239 | $as_echo_n "(cached) " >&6 | |
5fb28bcc | 10240 | else |
82026593 AO |
10241 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10242 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
5fb28bcc | 10243 | else |
b58b6ee1 DJ |
10244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10245 | for as_dir in $PATH | |
10246 | do | |
10247 | IFS=$as_save_IFS | |
10248 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10249 | for ac_exec_ext in '' $ac_executable_extensions; do |
10250 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 10251 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10252 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10253 | break 2 |
10254 | fi | |
10255 | done | |
efd58f08 RW |
10256 | done |
10257 | IFS=$as_save_IFS | |
b58b6ee1 | 10258 | |
5fb28bcc PB |
10259 | fi |
10260 | fi | |
82026593 AO |
10261 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10262 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
efd58f08 RW |
10263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10264 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
5fb28bcc | 10265 | else |
efd58f08 RW |
10266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10267 | $as_echo "no" >&6; } | |
5fb28bcc | 10268 | fi |
b58b6ee1 | 10269 | |
efd58f08 | 10270 | |
fef3f213 PB |
10271 | done |
10272 | fi | |
b58b6ee1 | 10273 | |
82026593 | 10274 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
fef3f213 | 10275 | for ncn_progname in gfortran; do |
efd58f08 RW |
10276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10277 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
10278 | if test -x $with_build_time_tools/${ncn_progname}; then |
10279 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
10280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10281 | $as_echo "yes" >&6; } | |
fef3f213 PB |
10282 | break |
10283 | else | |
efd58f08 RW |
10284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10285 | $as_echo "no" >&6; } | |
fef3f213 PB |
10286 | fi |
10287 | done | |
10288 | fi | |
10289 | ||
10290 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10291 | for ncn_progname in gfortran; do | |
10292 | if test -n "$ncn_target_tool_prefix"; then | |
10293 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10294 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10296 | $as_echo_n "checking for $ac_word... " >&6; } | |
10297 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10298 | $as_echo_n "(cached) " >&6 | |
5fb28bcc PB |
10299 | else |
10300 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10301 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10302 | else | |
b58b6ee1 DJ |
10303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10304 | for as_dir in $PATH | |
10305 | do | |
10306 | IFS=$as_save_IFS | |
10307 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10308 | for ac_exec_ext in '' $ac_executable_extensions; do |
10309 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 10310 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 10311 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10312 | break 2 |
10313 | fi | |
10314 | done | |
efd58f08 RW |
10315 | done |
10316 | IFS=$as_save_IFS | |
b58b6ee1 | 10317 | |
5fb28bcc PB |
10318 | fi |
10319 | fi | |
b58b6ee1 | 10320 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
5fb28bcc | 10321 | if test -n "$GFORTRAN_FOR_TARGET"; then |
efd58f08 RW |
10322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10323 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
5fb28bcc | 10324 | else |
efd58f08 RW |
10325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10326 | $as_echo "no" >&6; } | |
5fb28bcc PB |
10327 | fi |
10328 | ||
efd58f08 | 10329 | |
fef3f213 PB |
10330 | fi |
10331 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10332 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10333 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10335 | $as_echo_n "checking for $ac_word... " >&6; } | |
10336 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10337 | $as_echo_n "(cached) " >&6 | |
5fb28bcc | 10338 | else |
60cfca65 | 10339 | if test -n "$GFORTRAN_FOR_TARGET"; then |
b58b6ee1 DJ |
10340 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10341 | else | |
10342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10343 | for as_dir in $PATH | |
10344 | do | |
10345 | IFS=$as_save_IFS | |
10346 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10347 | for ac_exec_ext in '' $ac_executable_extensions; do |
10348 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 10349 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10350 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10351 | break 2 |
10352 | fi | |
10353 | done | |
efd58f08 RW |
10354 | done |
10355 | IFS=$as_save_IFS | |
b58b6ee1 | 10356 | |
5fb28bcc PB |
10357 | fi |
10358 | fi | |
b58b6ee1 | 10359 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
60cfca65 | 10360 | if test -n "$GFORTRAN_FOR_TARGET"; then |
efd58f08 RW |
10361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10362 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
5fb28bcc | 10363 | else |
efd58f08 RW |
10364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10365 | $as_echo "no" >&6; } | |
5fb28bcc | 10366 | fi |
b58b6ee1 | 10367 | |
efd58f08 | 10368 | |
fef3f213 PB |
10369 | fi |
10370 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10371 | done | |
10372 | fi | |
b58b6ee1 | 10373 | |
60cfca65 PB |
10374 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10375 | set dummy gfortran | |
10376 | if test $build = $target ; then | |
10377 | GFORTRAN_FOR_TARGET="$2" | |
5fb28bcc | 10378 | else |
60cfca65 | 10379 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
5fb28bcc | 10380 | fi |
d058b81b MS |
10381 | else |
10382 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
a0c92996 AC |
10383 | fi |
10384 | ||
fef3f213 PB |
10385 | |
10386 | ||
d5b7129a ILT |
10387 | if test -n "$GOC_FOR_TARGET"; then |
10388 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10389 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10390 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10391 | fi | |
10392 | ||
10393 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10394 | for ncn_progname in gccgo; do | |
10395 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10396 | set dummy ${ncn_progname}; ac_word=$2 | |
10397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10398 | $as_echo_n "checking for $ac_word... " >&6; } | |
10399 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10400 | $as_echo_n "(cached) " >&6 | |
10401 | else | |
10402 | if test -n "$GOC_FOR_TARGET"; then | |
10403 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10404 | else | |
10405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10406 | for as_dir in $PATH | |
10407 | do | |
10408 | IFS=$as_save_IFS | |
10409 | test -z "$as_dir" && as_dir=. | |
10410 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10412 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10414 | break 2 | |
10415 | fi | |
10416 | done | |
10417 | done | |
10418 | IFS=$as_save_IFS | |
10419 | ||
10420 | fi | |
10421 | fi | |
10422 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10423 | if test -n "$GOC_FOR_TARGET"; then | |
10424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10425 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10426 | else | |
10427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10428 | $as_echo "no" >&6; } | |
10429 | fi | |
10430 | ||
10431 | ||
10432 | done | |
10433 | fi | |
10434 | ||
10435 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10436 | for ncn_progname in gccgo; do | |
10437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10438 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10439 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10440 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10442 | $as_echo "yes" >&6; } | |
10443 | break | |
10444 | else | |
10445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10446 | $as_echo "no" >&6; } | |
10447 | fi | |
10448 | done | |
10449 | fi | |
10450 | ||
10451 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10452 | for ncn_progname in gccgo; do | |
10453 | if test -n "$ncn_target_tool_prefix"; then | |
10454 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10455 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10457 | $as_echo_n "checking for $ac_word... " >&6; } | |
10458 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10459 | $as_echo_n "(cached) " >&6 | |
10460 | else | |
10461 | if test -n "$GOC_FOR_TARGET"; then | |
10462 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10463 | else | |
10464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10465 | for as_dir in $PATH | |
10466 | do | |
10467 | IFS=$as_save_IFS | |
10468 | test -z "$as_dir" && as_dir=. | |
10469 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10470 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10471 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10472 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10473 | break 2 | |
10474 | fi | |
10475 | done | |
10476 | done | |
10477 | IFS=$as_save_IFS | |
10478 | ||
10479 | fi | |
10480 | fi | |
10481 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10482 | if test -n "$GOC_FOR_TARGET"; then | |
10483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10484 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10485 | else | |
10486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10487 | $as_echo "no" >&6; } | |
10488 | fi | |
10489 | ||
10490 | ||
10491 | fi | |
10492 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10493 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10494 | set dummy ${ncn_progname}; ac_word=$2 | |
10495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10496 | $as_echo_n "checking for $ac_word... " >&6; } | |
10497 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10498 | $as_echo_n "(cached) " >&6 | |
10499 | else | |
10500 | if test -n "$GOC_FOR_TARGET"; then | |
10501 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10502 | else | |
10503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10504 | for as_dir in $PATH | |
10505 | do | |
10506 | IFS=$as_save_IFS | |
10507 | test -z "$as_dir" && as_dir=. | |
10508 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10509 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10510 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10511 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10512 | break 2 | |
10513 | fi | |
10514 | done | |
10515 | done | |
10516 | IFS=$as_save_IFS | |
10517 | ||
10518 | fi | |
10519 | fi | |
10520 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10521 | if test -n "$GOC_FOR_TARGET"; then | |
10522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10523 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10524 | else | |
10525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10526 | $as_echo "no" >&6; } | |
10527 | fi | |
10528 | ||
10529 | ||
10530 | fi | |
10531 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10532 | done | |
10533 | fi | |
10534 | ||
10535 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10536 | set dummy gccgo | |
10537 | if test $build = $target ; then | |
10538 | GOC_FOR_TARGET="$2" | |
10539 | else | |
10540 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10541 | fi | |
10542 | else | |
10543 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10544 | fi | |
10545 | ||
10546 | ||
10547 | ||
fef3f213 PB |
10548 | cat > conftest.c << \EOF |
10549 | #ifdef __GNUC__ | |
10550 | gcc_yay; | |
10551 | #endif | |
10552 | EOF | |
10553 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10554 | have_gcc_for_target=yes | |
a0c92996 | 10555 | else |
fef3f213 PB |
10556 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
10557 | have_gcc_for_target=no | |
a0c92996 | 10558 | fi |
fef3f213 PB |
10559 | rm conftest.c |
10560 | ||
10561 | ||
10562 | ||
a0c92996 | 10563 | |
fef3f213 PB |
10564 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
10565 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
10566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10567 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
207258c8 PB |
10568 | if test -x $with_build_time_tools/ar; then |
10569 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10570 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
efd58f08 RW |
10571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10572 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
207258c8 | 10573 | else |
efd58f08 RW |
10574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10575 | $as_echo "no" >&6; } | |
207258c8 | 10576 | fi |
fef3f213 PB |
10577 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10578 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d058b81b MS |
10579 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10580 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
60cfca65 | 10581 | fi |
fef3f213 | 10582 | fi |
b58b6ee1 | 10583 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
10584 | # Extract the first word of "ar", so it can be a program name with args. |
10585 | set dummy ar; ac_word=$2 | |
efd58f08 RW |
10586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10587 | $as_echo_n "checking for $ac_word... " >&6; } | |
10588 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10589 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 10590 | else |
b58b6ee1 DJ |
10591 | case $AR_FOR_TARGET in |
10592 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
10593 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10594 | ;; | |
fef3f213 | 10595 | *) |
b58b6ee1 DJ |
10596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10597 | for as_dir in $gcc_cv_tool_dirs | |
10598 | do | |
10599 | IFS=$as_save_IFS | |
10600 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10601 | for ac_exec_ext in '' $ac_executable_extensions; do |
10602 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 10603 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 10604 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10605 | break 2 |
10606 | fi | |
10607 | done | |
efd58f08 RW |
10608 | done |
10609 | IFS=$as_save_IFS | |
b58b6ee1 | 10610 | |
fef3f213 PB |
10611 | ;; |
10612 | esac | |
a0c92996 | 10613 | fi |
b58b6ee1 | 10614 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
fef3f213 | 10615 | if test -n "$AR_FOR_TARGET"; then |
efd58f08 RW |
10616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10617 | $as_echo "$AR_FOR_TARGET" >&6; } | |
a0c92996 | 10618 | else |
efd58f08 RW |
10619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10620 | $as_echo "no" >&6; } | |
a0c92996 | 10621 | fi |
60cfca65 | 10622 | |
efd58f08 | 10623 | |
fef3f213 PB |
10624 | fi |
10625 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
82026593 AO |
10626 | |
10627 | ||
10628 | if test -n "$AR_FOR_TARGET"; then | |
10629 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10630 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10631 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10632 | fi | |
10633 | ||
10634 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10635 | for ncn_progname in ar; do | |
10636 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10637 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
10638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10639 | $as_echo_n "checking for $ac_word... " >&6; } | |
10640 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10641 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
10642 | else |
10643 | if test -n "$AR_FOR_TARGET"; then | |
10644 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10645 | else | |
10646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10647 | for as_dir in $PATH | |
10648 | do | |
10649 | IFS=$as_save_IFS | |
10650 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10651 | for ac_exec_ext in '' $ac_executable_extensions; do |
10652 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 10653 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10654 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
10655 | break 2 |
10656 | fi | |
10657 | done | |
efd58f08 RW |
10658 | done |
10659 | IFS=$as_save_IFS | |
82026593 AO |
10660 | |
10661 | fi | |
10662 | fi | |
10663 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10664 | if test -n "$AR_FOR_TARGET"; then | |
efd58f08 RW |
10665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10666 | $as_echo "$AR_FOR_TARGET" >&6; } | |
82026593 | 10667 | else |
efd58f08 RW |
10668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10669 | $as_echo "no" >&6; } | |
82026593 AO |
10670 | fi |
10671 | ||
efd58f08 | 10672 | |
82026593 AO |
10673 | done |
10674 | fi | |
10675 | ||
10676 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 10677 | for ncn_progname in ar; do |
efd58f08 RW |
10678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10679 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
10680 | if test -x $with_build_time_tools/${ncn_progname}; then |
10681 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
10682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10683 | $as_echo "yes" >&6; } | |
fef3f213 PB |
10684 | break |
10685 | else | |
efd58f08 RW |
10686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10687 | $as_echo "no" >&6; } | |
fef3f213 PB |
10688 | fi |
10689 | done | |
a0c92996 AC |
10690 | fi |
10691 | ||
fef3f213 PB |
10692 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
10693 | for ncn_progname in ar; do | |
10694 | if test -n "$ncn_target_tool_prefix"; then | |
10695 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10696 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10698 | $as_echo_n "checking for $ac_word... " >&6; } | |
10699 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10700 | $as_echo_n "(cached) " >&6 | |
6a33f745 | 10701 | else |
fef3f213 PB |
10702 | if test -n "$AR_FOR_TARGET"; then |
10703 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
6a33f745 | 10704 | else |
b58b6ee1 DJ |
10705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10706 | for as_dir in $PATH | |
10707 | do | |
10708 | IFS=$as_save_IFS | |
10709 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10710 | for ac_exec_ext in '' $ac_executable_extensions; do |
10711 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 10712 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 10713 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10714 | break 2 |
10715 | fi | |
10716 | done | |
efd58f08 RW |
10717 | done |
10718 | IFS=$as_save_IFS | |
b58b6ee1 | 10719 | |
6a33f745 GK |
10720 | fi |
10721 | fi | |
b58b6ee1 | 10722 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
fef3f213 | 10723 | if test -n "$AR_FOR_TARGET"; then |
efd58f08 RW |
10724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10725 | $as_echo "$AR_FOR_TARGET" >&6; } | |
6a33f745 | 10726 | else |
efd58f08 RW |
10727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10728 | $as_echo "no" >&6; } | |
6a33f745 GK |
10729 | fi |
10730 | ||
efd58f08 | 10731 | |
fef3f213 PB |
10732 | fi |
10733 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
10734 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6a33f745 | 10735 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10737 | $as_echo_n "checking for $ac_word... " >&6; } | |
10738 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10739 | $as_echo_n "(cached) " >&6 | |
6a33f745 | 10740 | else |
fef3f213 PB |
10741 | if test -n "$AR_FOR_TARGET"; then |
10742 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
f69e2532 | 10743 | else |
b58b6ee1 DJ |
10744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10745 | for as_dir in $PATH | |
10746 | do | |
10747 | IFS=$as_save_IFS | |
10748 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10749 | for ac_exec_ext in '' $ac_executable_extensions; do |
10750 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 10751 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10752 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10753 | break 2 |
10754 | fi | |
10755 | done | |
efd58f08 RW |
10756 | done |
10757 | IFS=$as_save_IFS | |
b58b6ee1 | 10758 | |
6a33f745 GK |
10759 | fi |
10760 | fi | |
b58b6ee1 | 10761 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
fef3f213 | 10762 | if test -n "$AR_FOR_TARGET"; then |
efd58f08 RW |
10763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10764 | $as_echo "$AR_FOR_TARGET" >&6; } | |
6a33f745 | 10765 | else |
efd58f08 RW |
10766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10767 | $as_echo "no" >&6; } | |
6a33f745 | 10768 | fi |
b58b6ee1 | 10769 | |
efd58f08 | 10770 | |
fef3f213 PB |
10771 | fi |
10772 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
10773 | done | |
10774 | fi | |
b58b6ee1 | 10775 | |
fef3f213 PB |
10776 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
10777 | set dummy ar | |
6a33f745 | 10778 | if test $build = $target ; then |
fef3f213 | 10779 | AR_FOR_TARGET="$2" |
6a33f745 | 10780 | else |
fef3f213 | 10781 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
6a33f745 | 10782 | fi |
d058b81b MS |
10783 | else |
10784 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
6a33f745 GK |
10785 | fi |
10786 | ||
207258c8 PB |
10787 | else |
10788 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
fef3f213 PB |
10789 | fi |
10790 | ||
10791 | ||
10792 | ||
10793 | ||
10794 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
10795 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
10796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
10797 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
207258c8 PB |
10798 | if test -x $with_build_time_tools/as; then |
10799 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
10800 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
efd58f08 RW |
10801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
10802 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
207258c8 | 10803 | else |
efd58f08 RW |
10804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10805 | $as_echo "no" >&6; } | |
207258c8 | 10806 | fi |
fef3f213 PB |
10807 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10808 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d058b81b MS |
10809 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
10810 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
fef3f213 PB |
10811 | fi |
10812 | fi | |
b58b6ee1 | 10813 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
10814 | # Extract the first word of "as", so it can be a program name with args. |
10815 | set dummy as; ac_word=$2 | |
efd58f08 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_path_AS_FOR_TARGET+set}" = set; then : | |
10819 | $as_echo_n "(cached) " >&6 | |
fef3f213 | 10820 | else |
b58b6ee1 DJ |
10821 | case $AS_FOR_TARGET in |
10822 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
10823 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
10824 | ;; | |
fef3f213 | 10825 | *) |
b58b6ee1 DJ |
10826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10827 | for as_dir in $gcc_cv_tool_dirs | |
10828 | do | |
10829 | IFS=$as_save_IFS | |
10830 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10831 | for ac_exec_ext in '' $ac_executable_extensions; do |
10832 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 10833 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 10834 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10835 | break 2 |
10836 | fi | |
10837 | done | |
efd58f08 RW |
10838 | done |
10839 | IFS=$as_save_IFS | |
b58b6ee1 | 10840 | |
fef3f213 PB |
10841 | ;; |
10842 | esac | |
10843 | fi | |
b58b6ee1 | 10844 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
fef3f213 | 10845 | if test -n "$AS_FOR_TARGET"; then |
efd58f08 RW |
10846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10847 | $as_echo "$AS_FOR_TARGET" >&6; } | |
fef3f213 | 10848 | else |
efd58f08 RW |
10849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10850 | $as_echo "no" >&6; } | |
fef3f213 PB |
10851 | fi |
10852 | ||
efd58f08 | 10853 | |
fef3f213 PB |
10854 | fi |
10855 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
82026593 AO |
10856 | |
10857 | ||
10858 | if test -n "$AS_FOR_TARGET"; then | |
10859 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
10860 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10861 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10862 | fi | |
10863 | ||
10864 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10865 | for ncn_progname in as; do | |
10866 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10867 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
10868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10869 | $as_echo_n "checking for $ac_word... " >&6; } | |
10870 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10871 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
10872 | else |
10873 | if test -n "$AS_FOR_TARGET"; then | |
10874 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10875 | else | |
10876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10877 | for as_dir in $PATH | |
10878 | do | |
10879 | IFS=$as_save_IFS | |
10880 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10881 | for ac_exec_ext in '' $ac_executable_extensions; do |
10882 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 10883 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
10885 | break 2 |
10886 | fi | |
10887 | done | |
efd58f08 RW |
10888 | done |
10889 | IFS=$as_save_IFS | |
82026593 AO |
10890 | |
10891 | fi | |
10892 | fi | |
10893 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10894 | if test -n "$AS_FOR_TARGET"; then | |
efd58f08 RW |
10895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10896 | $as_echo "$AS_FOR_TARGET" >&6; } | |
82026593 | 10897 | else |
efd58f08 RW |
10898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10899 | $as_echo "no" >&6; } | |
82026593 AO |
10900 | fi |
10901 | ||
efd58f08 | 10902 | |
82026593 AO |
10903 | done |
10904 | fi | |
10905 | ||
10906 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 10907 | for ncn_progname in as; do |
efd58f08 RW |
10908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10909 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
10910 | if test -x $with_build_time_tools/${ncn_progname}; then |
10911 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
10912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10913 | $as_echo "yes" >&6; } | |
fef3f213 PB |
10914 | break |
10915 | else | |
efd58f08 RW |
10916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10917 | $as_echo "no" >&6; } | |
fef3f213 PB |
10918 | fi |
10919 | done | |
10920 | fi | |
10921 | ||
10922 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
10923 | for ncn_progname in as; do | |
10924 | if test -n "$ncn_target_tool_prefix"; then | |
10925 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10926 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
10927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10928 | $as_echo_n "checking for $ac_word... " >&6; } | |
10929 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10930 | $as_echo_n "(cached) " >&6 | |
fef3f213 PB |
10931 | else |
10932 | if test -n "$AS_FOR_TARGET"; then | |
10933 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10934 | else | |
b58b6ee1 DJ |
10935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10936 | for as_dir in $PATH | |
10937 | do | |
10938 | IFS=$as_save_IFS | |
10939 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10940 | for ac_exec_ext in '' $ac_executable_extensions; do |
10941 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 10942 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 10943 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10944 | break 2 |
10945 | fi | |
10946 | done | |
efd58f08 RW |
10947 | done |
10948 | IFS=$as_save_IFS | |
b58b6ee1 | 10949 | |
fef3f213 PB |
10950 | fi |
10951 | fi | |
b58b6ee1 | 10952 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
fef3f213 | 10953 | if test -n "$AS_FOR_TARGET"; then |
efd58f08 RW |
10954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10955 | $as_echo "$AS_FOR_TARGET" >&6; } | |
fef3f213 | 10956 | else |
efd58f08 RW |
10957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10958 | $as_echo "no" >&6; } | |
fef3f213 PB |
10959 | fi |
10960 | ||
efd58f08 | 10961 | |
fef3f213 PB |
10962 | fi |
10963 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
10964 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10965 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
10966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10967 | $as_echo_n "checking for $ac_word... " >&6; } | |
10968 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10969 | $as_echo_n "(cached) " >&6 | |
fef3f213 PB |
10970 | else |
10971 | if test -n "$AS_FOR_TARGET"; then | |
10972 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10973 | else | |
b58b6ee1 DJ |
10974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10975 | for as_dir in $PATH | |
10976 | do | |
10977 | IFS=$as_save_IFS | |
10978 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10979 | for ac_exec_ext in '' $ac_executable_extensions; do |
10980 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 10981 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10983 | break 2 |
10984 | fi | |
10985 | done | |
efd58f08 RW |
10986 | done |
10987 | IFS=$as_save_IFS | |
b58b6ee1 | 10988 | |
fef3f213 PB |
10989 | fi |
10990 | fi | |
b58b6ee1 | 10991 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
fef3f213 | 10992 | if test -n "$AS_FOR_TARGET"; then |
efd58f08 RW |
10993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10994 | $as_echo "$AS_FOR_TARGET" >&6; } | |
fef3f213 | 10995 | else |
efd58f08 RW |
10996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10997 | $as_echo "no" >&6; } | |
fef3f213 | 10998 | fi |
b58b6ee1 | 10999 | |
efd58f08 | 11000 | |
fef3f213 PB |
11001 | fi |
11002 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11003 | done | |
11004 | fi | |
b58b6ee1 | 11005 | |
fef3f213 PB |
11006 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11007 | set dummy as | |
11008 | if test $build = $target ; then | |
11009 | AS_FOR_TARGET="$2" | |
11010 | else | |
11011 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11012 | fi | |
d058b81b MS |
11013 | else |
11014 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
fef3f213 PB |
11015 | fi |
11016 | ||
207258c8 PB |
11017 | else |
11018 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
fef3f213 PB |
11019 | fi |
11020 | ||
11021 | ||
11022 | ||
11023 | ||
11024 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11025 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
11026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11027 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11028 | if test -x $with_build_time_tools/dlltool; then |
11029 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11030 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
efd58f08 RW |
11031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11032 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
207258c8 | 11033 | else |
efd58f08 RW |
11034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11035 | $as_echo "no" >&6; } | |
207258c8 | 11036 | fi |
fef3f213 PB |
11037 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11038 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d058b81b MS |
11039 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11040 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
fef3f213 PB |
11041 | fi |
11042 | fi | |
b58b6ee1 | 11043 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
11044 | # Extract the first word of "dlltool", so it can be a program name with args. |
11045 | set dummy dlltool; ac_word=$2 | |
efd58f08 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_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11049 | $as_echo_n "(cached) " >&6 | |
fef3f213 | 11050 | else |
b58b6ee1 DJ |
11051 | case $DLLTOOL_FOR_TARGET in |
11052 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
11053 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11054 | ;; | |
fef3f213 | 11055 | *) |
b58b6ee1 DJ |
11056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11057 | for as_dir in $gcc_cv_tool_dirs | |
11058 | do | |
11059 | IFS=$as_save_IFS | |
11060 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11061 | for ac_exec_ext in '' $ac_executable_extensions; do |
11062 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11063 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 11064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11065 | break 2 |
11066 | fi | |
11067 | done | |
efd58f08 RW |
11068 | done |
11069 | IFS=$as_save_IFS | |
b58b6ee1 | 11070 | |
fef3f213 PB |
11071 | ;; |
11072 | esac | |
11073 | fi | |
b58b6ee1 | 11074 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
fef3f213 | 11075 | if test -n "$DLLTOOL_FOR_TARGET"; then |
efd58f08 RW |
11076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11077 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
fef3f213 | 11078 | else |
efd58f08 RW |
11079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11080 | $as_echo "no" >&6; } | |
fef3f213 PB |
11081 | fi |
11082 | ||
efd58f08 | 11083 | |
fef3f213 PB |
11084 | fi |
11085 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
82026593 AO |
11086 | |
11087 | ||
11088 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11089 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11090 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11091 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11092 | fi | |
11093 | ||
11094 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11095 | for ncn_progname in dlltool; do | |
11096 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11097 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11099 | $as_echo_n "checking for $ac_word... " >&6; } | |
11100 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11101 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
11102 | else |
11103 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11104 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11105 | else | |
11106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11107 | for as_dir in $PATH | |
11108 | do | |
11109 | IFS=$as_save_IFS | |
11110 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11111 | for ac_exec_ext in '' $ac_executable_extensions; do |
11112 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 11113 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11114 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
11115 | break 2 |
11116 | fi | |
11117 | done | |
efd58f08 RW |
11118 | done |
11119 | IFS=$as_save_IFS | |
82026593 AO |
11120 | |
11121 | fi | |
11122 | fi | |
11123 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11124 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
efd58f08 RW |
11125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11126 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
82026593 | 11127 | else |
efd58f08 RW |
11128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11129 | $as_echo "no" >&6; } | |
82026593 AO |
11130 | fi |
11131 | ||
efd58f08 | 11132 | |
82026593 AO |
11133 | done |
11134 | fi | |
11135 | ||
11136 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 11137 | for ncn_progname in dlltool; do |
efd58f08 RW |
11138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11139 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11140 | if test -x $with_build_time_tools/${ncn_progname}; then |
11141 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
11142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11143 | $as_echo "yes" >&6; } | |
fef3f213 PB |
11144 | break |
11145 | else | |
efd58f08 RW |
11146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11147 | $as_echo "no" >&6; } | |
fef3f213 PB |
11148 | fi |
11149 | done | |
11150 | fi | |
11151 | ||
11152 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11153 | for ncn_progname in dlltool; do | |
11154 | if test -n "$ncn_target_tool_prefix"; then | |
11155 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11156 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11158 | $as_echo_n "checking for $ac_word... " >&6; } | |
11159 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11160 | $as_echo_n "(cached) " >&6 | |
fef3f213 PB |
11161 | else |
11162 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11163 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11164 | else | |
b58b6ee1 DJ |
11165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11166 | for as_dir in $PATH | |
11167 | do | |
11168 | IFS=$as_save_IFS | |
11169 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11170 | for ac_exec_ext in '' $ac_executable_extensions; do |
11171 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11172 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 11173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11174 | break 2 |
11175 | fi | |
11176 | done | |
efd58f08 RW |
11177 | done |
11178 | IFS=$as_save_IFS | |
b58b6ee1 | 11179 | |
fef3f213 PB |
11180 | fi |
11181 | fi | |
b58b6ee1 | 11182 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
fef3f213 | 11183 | if test -n "$DLLTOOL_FOR_TARGET"; then |
efd58f08 RW |
11184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11185 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
fef3f213 | 11186 | else |
efd58f08 RW |
11187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11188 | $as_echo "no" >&6; } | |
fef3f213 PB |
11189 | fi |
11190 | ||
efd58f08 | 11191 | |
fef3f213 PB |
11192 | fi |
11193 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11194 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11195 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11197 | $as_echo_n "checking for $ac_word... " >&6; } | |
11198 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11199 | $as_echo_n "(cached) " >&6 | |
fef3f213 PB |
11200 | else |
11201 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11202 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11203 | else | |
b58b6ee1 DJ |
11204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11205 | for as_dir in $PATH | |
11206 | do | |
11207 | IFS=$as_save_IFS | |
11208 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11209 | for ac_exec_ext in '' $ac_executable_extensions; do |
11210 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11211 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11212 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11213 | break 2 |
11214 | fi | |
11215 | done | |
efd58f08 RW |
11216 | done |
11217 | IFS=$as_save_IFS | |
b58b6ee1 | 11218 | |
fef3f213 PB |
11219 | fi |
11220 | fi | |
b58b6ee1 | 11221 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
fef3f213 | 11222 | if test -n "$DLLTOOL_FOR_TARGET"; then |
efd58f08 RW |
11223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11224 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
fef3f213 | 11225 | else |
efd58f08 RW |
11226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11227 | $as_echo "no" >&6; } | |
fef3f213 | 11228 | fi |
b58b6ee1 | 11229 | |
efd58f08 | 11230 | |
fef3f213 PB |
11231 | fi |
11232 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11233 | done | |
11234 | fi | |
b58b6ee1 | 11235 | |
fef3f213 PB |
11236 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11237 | set dummy dlltool | |
11238 | if test $build = $target ; then | |
11239 | DLLTOOL_FOR_TARGET="$2" | |
11240 | else | |
11241 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11242 | fi | |
d058b81b MS |
11243 | else |
11244 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
fef3f213 PB |
11245 | fi |
11246 | ||
207258c8 PB |
11247 | else |
11248 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
fef3f213 PB |
11249 | fi |
11250 | ||
11251 | ||
11252 | ||
11253 | ||
11254 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11255 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
11256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11257 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11258 | if test -x $with_build_time_tools/ld; then |
11259 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11260 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
efd58f08 RW |
11261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11262 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
207258c8 | 11263 | else |
efd58f08 RW |
11264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11265 | $as_echo "no" >&6; } | |
207258c8 | 11266 | fi |
fef3f213 PB |
11267 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11268 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d058b81b MS |
11269 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11270 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
fef3f213 PB |
11271 | fi |
11272 | fi | |
b58b6ee1 | 11273 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
11274 | # Extract the first word of "ld", so it can be a program name with args. |
11275 | set dummy ld; ac_word=$2 | |
efd58f08 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_path_LD_FOR_TARGET+set}" = set; then : | |
11279 | $as_echo_n "(cached) " >&6 | |
fef3f213 | 11280 | else |
b58b6ee1 DJ |
11281 | case $LD_FOR_TARGET in |
11282 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
11283 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11284 | ;; | |
fef3f213 | 11285 | *) |
b58b6ee1 DJ |
11286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11287 | for as_dir in $gcc_cv_tool_dirs | |
11288 | do | |
11289 | IFS=$as_save_IFS | |
11290 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11291 | for ac_exec_ext in '' $ac_executable_extensions; do |
11292 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11293 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 11294 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11295 | break 2 |
11296 | fi | |
11297 | done | |
efd58f08 RW |
11298 | done |
11299 | IFS=$as_save_IFS | |
b58b6ee1 | 11300 | |
fef3f213 PB |
11301 | ;; |
11302 | esac | |
11303 | fi | |
b58b6ee1 | 11304 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
fef3f213 | 11305 | if test -n "$LD_FOR_TARGET"; then |
efd58f08 RW |
11306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11307 | $as_echo "$LD_FOR_TARGET" >&6; } | |
fef3f213 | 11308 | else |
efd58f08 RW |
11309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11310 | $as_echo "no" >&6; } | |
fef3f213 PB |
11311 | fi |
11312 | ||
efd58f08 | 11313 | |
fef3f213 PB |
11314 | fi |
11315 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
82026593 AO |
11316 | |
11317 | ||
11318 | if test -n "$LD_FOR_TARGET"; then | |
11319 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11320 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11321 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11322 | fi | |
11323 | ||
11324 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11325 | for ncn_progname in ld; do | |
11326 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11327 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11329 | $as_echo_n "checking for $ac_word... " >&6; } | |
11330 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11331 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
11332 | else |
11333 | if test -n "$LD_FOR_TARGET"; then | |
11334 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11335 | else | |
11336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11337 | for as_dir in $PATH | |
11338 | do | |
11339 | IFS=$as_save_IFS | |
11340 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11341 | for ac_exec_ext in '' $ac_executable_extensions; do |
11342 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 11343 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11344 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
11345 | break 2 |
11346 | fi | |
11347 | done | |
efd58f08 RW |
11348 | done |
11349 | IFS=$as_save_IFS | |
82026593 AO |
11350 | |
11351 | fi | |
11352 | fi | |
11353 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11354 | if test -n "$LD_FOR_TARGET"; then | |
efd58f08 RW |
11355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11356 | $as_echo "$LD_FOR_TARGET" >&6; } | |
82026593 | 11357 | else |
efd58f08 RW |
11358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11359 | $as_echo "no" >&6; } | |
82026593 AO |
11360 | fi |
11361 | ||
efd58f08 | 11362 | |
82026593 AO |
11363 | done |
11364 | fi | |
11365 | ||
11366 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 11367 | for ncn_progname in ld; do |
efd58f08 RW |
11368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11369 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11370 | if test -x $with_build_time_tools/${ncn_progname}; then |
11371 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
11372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11373 | $as_echo "yes" >&6; } | |
fef3f213 PB |
11374 | break |
11375 | else | |
efd58f08 RW |
11376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11377 | $as_echo "no" >&6; } | |
fef3f213 PB |
11378 | fi |
11379 | done | |
11380 | fi | |
11381 | ||
11382 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11383 | for ncn_progname in ld; do | |
11384 | if test -n "$ncn_target_tool_prefix"; then | |
11385 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11386 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11388 | $as_echo_n "checking for $ac_word... " >&6; } | |
11389 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11390 | $as_echo_n "(cached) " >&6 | |
fef3f213 PB |
11391 | else |
11392 | if test -n "$LD_FOR_TARGET"; then | |
11393 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11394 | else | |
b58b6ee1 DJ |
11395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11396 | for as_dir in $PATH | |
11397 | do | |
11398 | IFS=$as_save_IFS | |
11399 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11400 | for ac_exec_ext in '' $ac_executable_extensions; do |
11401 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11402 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 11403 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11404 | break 2 |
11405 | fi | |
11406 | done | |
efd58f08 RW |
11407 | done |
11408 | IFS=$as_save_IFS | |
b58b6ee1 | 11409 | |
fef3f213 PB |
11410 | fi |
11411 | fi | |
b58b6ee1 | 11412 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
fef3f213 | 11413 | if test -n "$LD_FOR_TARGET"; then |
efd58f08 RW |
11414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11415 | $as_echo "$LD_FOR_TARGET" >&6; } | |
fef3f213 | 11416 | else |
efd58f08 RW |
11417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11418 | $as_echo "no" >&6; } | |
fef3f213 PB |
11419 | fi |
11420 | ||
efd58f08 | 11421 | |
fef3f213 PB |
11422 | fi |
11423 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11424 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11425 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11427 | $as_echo_n "checking for $ac_word... " >&6; } | |
11428 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11429 | $as_echo_n "(cached) " >&6 | |
fef3f213 PB |
11430 | else |
11431 | if test -n "$LD_FOR_TARGET"; then | |
11432 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11433 | else | |
b58b6ee1 DJ |
11434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11435 | for as_dir in $PATH | |
11436 | do | |
11437 | IFS=$as_save_IFS | |
11438 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11439 | for ac_exec_ext in '' $ac_executable_extensions; do |
11440 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11441 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11442 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11443 | break 2 |
11444 | fi | |
11445 | done | |
efd58f08 RW |
11446 | done |
11447 | IFS=$as_save_IFS | |
b58b6ee1 | 11448 | |
fef3f213 PB |
11449 | fi |
11450 | fi | |
b58b6ee1 | 11451 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
fef3f213 | 11452 | if test -n "$LD_FOR_TARGET"; then |
efd58f08 RW |
11453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11454 | $as_echo "$LD_FOR_TARGET" >&6; } | |
fef3f213 | 11455 | else |
efd58f08 RW |
11456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11457 | $as_echo "no" >&6; } | |
fef3f213 | 11458 | fi |
b58b6ee1 | 11459 | |
efd58f08 | 11460 | |
fef3f213 PB |
11461 | fi |
11462 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11463 | done | |
11464 | fi | |
b58b6ee1 | 11465 | |
fef3f213 PB |
11466 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11467 | set dummy ld | |
11468 | if test $build = $target ; then | |
11469 | LD_FOR_TARGET="$2" | |
11470 | else | |
11471 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11472 | fi | |
d058b81b MS |
11473 | else |
11474 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
fef3f213 PB |
11475 | fi |
11476 | ||
207258c8 PB |
11477 | else |
11478 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
fef3f213 PB |
11479 | fi |
11480 | ||
11481 | ||
11482 | ||
11483 | ||
11484 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11485 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
11486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11487 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11488 | if test -x $with_build_time_tools/lipo; then |
11489 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11490 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
efd58f08 RW |
11491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11492 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
207258c8 | 11493 | else |
efd58f08 RW |
11494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11495 | $as_echo "no" >&6; } | |
207258c8 | 11496 | fi |
fef3f213 PB |
11497 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11498 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d058b81b MS |
11499 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11500 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
fef3f213 PB |
11501 | fi |
11502 | fi | |
82026593 AO |
11503 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11504 | # Extract the first word of "lipo", so it can be a program name with args. | |
11505 | set dummy lipo; ac_word=$2 | |
efd58f08 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_path_LIPO_FOR_TARGET+set}" = set; then : | |
11509 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
11510 | else |
11511 | case $LIPO_FOR_TARGET in | |
11512 | [\\/]* | ?:[\\/]*) | |
11513 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11514 | ;; | |
11515 | *) | |
11516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11517 | for as_dir in $gcc_cv_tool_dirs | |
11518 | do | |
11519 | IFS=$as_save_IFS | |
11520 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11521 | for ac_exec_ext in '' $ac_executable_extensions; do |
11522 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 11523 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 11524 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
11525 | break 2 |
11526 | fi | |
11527 | done | |
efd58f08 RW |
11528 | done |
11529 | IFS=$as_save_IFS | |
82026593 AO |
11530 | |
11531 | ;; | |
11532 | esac | |
11533 | fi | |
11534 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
82026593 | 11535 | if test -n "$LIPO_FOR_TARGET"; then |
efd58f08 RW |
11536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11537 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
82026593 | 11538 | else |
efd58f08 RW |
11539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11540 | $as_echo "no" >&6; } | |
82026593 AO |
11541 | fi |
11542 | ||
efd58f08 | 11543 | |
82026593 AO |
11544 | fi |
11545 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11546 | ||
11547 | ||
11548 | if test -n "$LIPO_FOR_TARGET"; then | |
11549 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11550 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11551 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11552 | fi | |
11553 | ||
11554 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11555 | for ncn_progname in lipo; do | |
11556 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11557 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11559 | $as_echo_n "checking for $ac_word... " >&6; } | |
11560 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11561 | $as_echo_n "(cached) " >&6 | |
fef3f213 | 11562 | else |
82026593 AO |
11563 | if test -n "$LIPO_FOR_TARGET"; then |
11564 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11565 | else | |
11566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11567 | for as_dir in $PATH | |
b58b6ee1 DJ |
11568 | do |
11569 | IFS=$as_save_IFS | |
11570 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11571 | for ac_exec_ext in '' $ac_executable_extensions; do |
11572 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 11573 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11574 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11575 | break 2 |
11576 | fi | |
11577 | done | |
efd58f08 RW |
11578 | done |
11579 | IFS=$as_save_IFS | |
b58b6ee1 | 11580 | |
fef3f213 | 11581 | fi |
82026593 AO |
11582 | fi |
11583 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
fef3f213 | 11584 | if test -n "$LIPO_FOR_TARGET"; then |
efd58f08 RW |
11585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11586 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
fef3f213 | 11587 | else |
efd58f08 RW |
11588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11589 | $as_echo "no" >&6; } | |
fef3f213 PB |
11590 | fi |
11591 | ||
efd58f08 | 11592 | |
82026593 | 11593 | done |
fef3f213 | 11594 | fi |
82026593 AO |
11595 | |
11596 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 11597 | for ncn_progname in lipo; do |
efd58f08 RW |
11598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11599 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11600 | if test -x $with_build_time_tools/${ncn_progname}; then |
11601 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
11602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11603 | $as_echo "yes" >&6; } | |
fef3f213 PB |
11604 | break |
11605 | else | |
efd58f08 RW |
11606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11607 | $as_echo "no" >&6; } | |
fef3f213 PB |
11608 | fi |
11609 | done | |
11610 | fi | |
11611 | ||
11612 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11613 | for ncn_progname in lipo; do | |
11614 | if test -n "$ncn_target_tool_prefix"; then | |
11615 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11616 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11618 | $as_echo_n "checking for $ac_word... " >&6; } | |
11619 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11620 | $as_echo_n "(cached) " >&6 | |
fef3f213 PB |
11621 | else |
11622 | if test -n "$LIPO_FOR_TARGET"; then | |
11623 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11624 | else | |
b58b6ee1 DJ |
11625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11626 | for as_dir in $PATH | |
11627 | do | |
11628 | IFS=$as_save_IFS | |
11629 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11630 | for ac_exec_ext in '' $ac_executable_extensions; do |
11631 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11632 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 11633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11634 | break 2 |
11635 | fi | |
11636 | done | |
efd58f08 RW |
11637 | done |
11638 | IFS=$as_save_IFS | |
b58b6ee1 | 11639 | |
fef3f213 PB |
11640 | fi |
11641 | fi | |
b58b6ee1 | 11642 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
fef3f213 | 11643 | if test -n "$LIPO_FOR_TARGET"; then |
efd58f08 RW |
11644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11645 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
fef3f213 | 11646 | else |
efd58f08 RW |
11647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11648 | $as_echo "no" >&6; } | |
fef3f213 PB |
11649 | fi |
11650 | ||
efd58f08 | 11651 | |
fef3f213 PB |
11652 | fi |
11653 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11654 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11655 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11657 | $as_echo_n "checking for $ac_word... " >&6; } | |
11658 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11659 | $as_echo_n "(cached) " >&6 | |
fef3f213 PB |
11660 | else |
11661 | if test -n "$LIPO_FOR_TARGET"; then | |
11662 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11663 | else | |
b58b6ee1 DJ |
11664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11665 | for as_dir in $PATH | |
11666 | do | |
11667 | IFS=$as_save_IFS | |
11668 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11669 | for ac_exec_ext in '' $ac_executable_extensions; do |
11670 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11671 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11672 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11673 | break 2 |
11674 | fi | |
11675 | done | |
efd58f08 RW |
11676 | done |
11677 | IFS=$as_save_IFS | |
b58b6ee1 | 11678 | |
fef3f213 PB |
11679 | fi |
11680 | fi | |
b58b6ee1 | 11681 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
fef3f213 | 11682 | if test -n "$LIPO_FOR_TARGET"; then |
efd58f08 RW |
11683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11684 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
fef3f213 | 11685 | else |
efd58f08 RW |
11686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11687 | $as_echo "no" >&6; } | |
fef3f213 | 11688 | fi |
b58b6ee1 | 11689 | |
efd58f08 | 11690 | |
fef3f213 PB |
11691 | fi |
11692 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
11693 | done | |
11694 | fi | |
b58b6ee1 | 11695 | |
fef3f213 PB |
11696 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
11697 | set dummy lipo | |
11698 | if test $build = $target ; then | |
11699 | LIPO_FOR_TARGET="$2" | |
11700 | else | |
11701 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11702 | fi | |
d058b81b MS |
11703 | else |
11704 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
fef3f213 PB |
11705 | fi |
11706 | ||
207258c8 PB |
11707 | else |
11708 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
fef3f213 PB |
11709 | fi |
11710 | ||
11711 | ||
11712 | ||
11713 | ||
11714 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11715 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
11716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
11717 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11718 | if test -x $with_build_time_tools/nm; then |
11719 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
11720 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
efd58f08 RW |
11721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
11722 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
207258c8 | 11723 | else |
efd58f08 RW |
11724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11725 | $as_echo "no" >&6; } | |
207258c8 | 11726 | fi |
fef3f213 PB |
11727 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11728 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d058b81b MS |
11729 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
11730 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
fef3f213 PB |
11731 | fi |
11732 | fi | |
b58b6ee1 | 11733 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
11734 | # Extract the first word of "nm", so it can be a program name with args. |
11735 | set dummy nm; ac_word=$2 | |
efd58f08 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_path_NM_FOR_TARGET+set}" = set; then : | |
11739 | $as_echo_n "(cached) " >&6 | |
fef3f213 | 11740 | else |
b58b6ee1 DJ |
11741 | case $NM_FOR_TARGET in |
11742 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
11743 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
11744 | ;; | |
fef3f213 | 11745 | *) |
b58b6ee1 DJ |
11746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11747 | for as_dir in $gcc_cv_tool_dirs | |
11748 | do | |
11749 | IFS=$as_save_IFS | |
11750 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11751 | for ac_exec_ext in '' $ac_executable_extensions; do |
11752 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11753 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 11754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11755 | break 2 |
11756 | fi | |
11757 | done | |
efd58f08 RW |
11758 | done |
11759 | IFS=$as_save_IFS | |
b58b6ee1 | 11760 | |
fef3f213 PB |
11761 | ;; |
11762 | esac | |
11763 | fi | |
b58b6ee1 | 11764 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
fef3f213 | 11765 | if test -n "$NM_FOR_TARGET"; then |
efd58f08 RW |
11766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11767 | $as_echo "$NM_FOR_TARGET" >&6; } | |
fef3f213 | 11768 | else |
efd58f08 RW |
11769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11770 | $as_echo "no" >&6; } | |
fef3f213 PB |
11771 | fi |
11772 | ||
efd58f08 | 11773 | |
fef3f213 PB |
11774 | fi |
11775 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
82026593 AO |
11776 | |
11777 | ||
11778 | if test -n "$NM_FOR_TARGET"; then | |
11779 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
11780 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11781 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11782 | fi | |
11783 | ||
11784 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11785 | for ncn_progname in nm; do | |
11786 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11787 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11789 | $as_echo_n "checking for $ac_word... " >&6; } | |
11790 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11791 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
11792 | else |
11793 | if test -n "$NM_FOR_TARGET"; then | |
11794 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
11795 | else | |
11796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11797 | for as_dir in $PATH | |
11798 | do | |
11799 | IFS=$as_save_IFS | |
11800 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11801 | for ac_exec_ext in '' $ac_executable_extensions; do |
11802 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 11803 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11804 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
11805 | break 2 |
11806 | fi | |
11807 | done | |
efd58f08 RW |
11808 | done |
11809 | IFS=$as_save_IFS | |
82026593 AO |
11810 | |
11811 | fi | |
11812 | fi | |
11813 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11814 | if test -n "$NM_FOR_TARGET"; then | |
efd58f08 RW |
11815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11816 | $as_echo "$NM_FOR_TARGET" >&6; } | |
82026593 | 11817 | else |
efd58f08 RW |
11818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11819 | $as_echo "no" >&6; } | |
82026593 AO |
11820 | fi |
11821 | ||
efd58f08 | 11822 | |
82026593 AO |
11823 | done |
11824 | fi | |
11825 | ||
11826 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 11827 | for ncn_progname in nm; do |
efd58f08 RW |
11828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11829 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11830 | if test -x $with_build_time_tools/${ncn_progname}; then |
11831 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
11832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11833 | $as_echo "yes" >&6; } | |
fef3f213 PB |
11834 | break |
11835 | else | |
efd58f08 RW |
11836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11837 | $as_echo "no" >&6; } | |
fef3f213 PB |
11838 | fi |
11839 | done | |
11840 | fi | |
11841 | ||
11842 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
11843 | for ncn_progname in nm; do | |
11844 | if test -n "$ncn_target_tool_prefix"; then | |
11845 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6a33f745 | 11846 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
11847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11848 | $as_echo_n "checking for $ac_word... " >&6; } | |
11849 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11850 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 11851 | else |
5fb28bcc PB |
11852 | if test -n "$NM_FOR_TARGET"; then |
11853 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
a0c92996 | 11854 | else |
b58b6ee1 DJ |
11855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11856 | for as_dir in $PATH | |
11857 | do | |
11858 | IFS=$as_save_IFS | |
11859 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11860 | for ac_exec_ext in '' $ac_executable_extensions; do |
11861 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11862 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 11863 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11864 | break 2 |
11865 | fi | |
11866 | done | |
efd58f08 RW |
11867 | done |
11868 | IFS=$as_save_IFS | |
b58b6ee1 | 11869 | |
a0c92996 AC |
11870 | fi |
11871 | fi | |
b58b6ee1 | 11872 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
5fb28bcc | 11873 | if test -n "$NM_FOR_TARGET"; then |
efd58f08 RW |
11874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11875 | $as_echo "$NM_FOR_TARGET" >&6; } | |
a0c92996 | 11876 | else |
efd58f08 RW |
11877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11878 | $as_echo "no" >&6; } | |
a0c92996 AC |
11879 | fi |
11880 | ||
efd58f08 | 11881 | |
fef3f213 PB |
11882 | fi |
11883 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
11884 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 11885 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
11886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11887 | $as_echo_n "checking for $ac_word... " >&6; } | |
11888 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11889 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 11890 | else |
60cfca65 PB |
11891 | if test -n "$NM_FOR_TARGET"; then |
11892 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
a0c92996 | 11893 | else |
b58b6ee1 DJ |
11894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11895 | for as_dir in $PATH | |
11896 | do | |
11897 | IFS=$as_save_IFS | |
11898 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11899 | for ac_exec_ext in '' $ac_executable_extensions; do |
11900 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11901 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11902 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11903 | break 2 |
11904 | fi | |
11905 | done | |
efd58f08 RW |
11906 | done |
11907 | IFS=$as_save_IFS | |
b58b6ee1 | 11908 | |
a0c92996 AC |
11909 | fi |
11910 | fi | |
b58b6ee1 | 11911 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
60cfca65 | 11912 | if test -n "$NM_FOR_TARGET"; then |
efd58f08 RW |
11913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11914 | $as_echo "$NM_FOR_TARGET" >&6; } | |
a0c92996 | 11915 | else |
efd58f08 RW |
11916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11917 | $as_echo "no" >&6; } | |
a0c92996 | 11918 | fi |
b58b6ee1 | 11919 | |
efd58f08 | 11920 | |
fef3f213 PB |
11921 | fi |
11922 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
11923 | done | |
11924 | fi | |
b58b6ee1 | 11925 | |
60cfca65 PB |
11926 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
11927 | set dummy nm | |
11928 | if test $build = $target ; then | |
11929 | NM_FOR_TARGET="$2" | |
a0c92996 | 11930 | else |
60cfca65 | 11931 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
a0c92996 | 11932 | fi |
d058b81b MS |
11933 | else |
11934 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
a0c92996 AC |
11935 | fi |
11936 | ||
207258c8 PB |
11937 | else |
11938 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
fef3f213 PB |
11939 | fi |
11940 | ||
11941 | ||
11942 | ||
11943 | ||
11944 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
11945 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
11946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
11947 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11948 | if test -x $with_build_time_tools/objdump; then |
11949 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
11950 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
efd58f08 RW |
11951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
11952 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
207258c8 | 11953 | else |
efd58f08 RW |
11954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11955 | $as_echo "no" >&6; } | |
207258c8 | 11956 | fi |
fef3f213 PB |
11957 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11958 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d058b81b MS |
11959 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
11960 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
fef3f213 PB |
11961 | fi |
11962 | fi | |
b58b6ee1 | 11963 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
11964 | # Extract the first word of "objdump", so it can be a program name with args. |
11965 | set dummy objdump; ac_word=$2 | |
efd58f08 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_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
11969 | $as_echo_n "(cached) " >&6 | |
fef3f213 | 11970 | else |
b58b6ee1 DJ |
11971 | case $OBJDUMP_FOR_TARGET in |
11972 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
11973 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
11974 | ;; | |
fef3f213 | 11975 | *) |
b58b6ee1 DJ |
11976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11977 | for as_dir in $gcc_cv_tool_dirs | |
11978 | do | |
11979 | IFS=$as_save_IFS | |
11980 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11981 | for ac_exec_ext in '' $ac_executable_extensions; do |
11982 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11983 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 11984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11985 | break 2 |
11986 | fi | |
11987 | done | |
efd58f08 RW |
11988 | done |
11989 | IFS=$as_save_IFS | |
b58b6ee1 | 11990 | |
fef3f213 PB |
11991 | ;; |
11992 | esac | |
11993 | fi | |
b58b6ee1 | 11994 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
fef3f213 | 11995 | if test -n "$OBJDUMP_FOR_TARGET"; then |
efd58f08 RW |
11996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
11997 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
fef3f213 | 11998 | else |
efd58f08 RW |
11999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12000 | $as_echo "no" >&6; } | |
fef3f213 PB |
12001 | fi |
12002 | ||
efd58f08 | 12003 | |
fef3f213 PB |
12004 | fi |
12005 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
82026593 AO |
12006 | |
12007 | ||
12008 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12009 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12010 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12011 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12012 | fi | |
12013 | ||
12014 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12015 | for ncn_progname in objdump; do | |
12016 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12017 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
12018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12019 | $as_echo_n "checking for $ac_word... " >&6; } | |
12020 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12021 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
12022 | else |
12023 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12024 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12025 | else | |
12026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12027 | for as_dir in $PATH | |
12028 | do | |
12029 | IFS=$as_save_IFS | |
12030 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12031 | for ac_exec_ext in '' $ac_executable_extensions; do |
12032 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 12033 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
efd58f08 | 12034 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
12035 | break 2 |
12036 | fi | |
12037 | done | |
efd58f08 RW |
12038 | done |
12039 | IFS=$as_save_IFS | |
82026593 AO |
12040 | |
12041 | fi | |
12042 | fi | |
12043 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12044 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
efd58f08 RW |
12045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12046 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
82026593 | 12047 | else |
efd58f08 RW |
12048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12049 | $as_echo "no" >&6; } | |
82026593 AO |
12050 | fi |
12051 | ||
efd58f08 | 12052 | |
82026593 AO |
12053 | done |
12054 | fi | |
12055 | ||
12056 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 12057 | for ncn_progname in objdump; do |
efd58f08 RW |
12058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12059 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
12060 | if test -x $with_build_time_tools/${ncn_progname}; then |
12061 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
12062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12063 | $as_echo "yes" >&6; } | |
fef3f213 PB |
12064 | break |
12065 | else | |
efd58f08 RW |
12066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12067 | $as_echo "no" >&6; } | |
fef3f213 PB |
12068 | fi |
12069 | done | |
12070 | fi | |
12071 | ||
12072 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12073 | for ncn_progname in objdump; do | |
12074 | if test -n "$ncn_target_tool_prefix"; then | |
12075 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 12076 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
12077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12078 | $as_echo_n "checking for $ac_word... " >&6; } | |
12079 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12080 | $as_echo_n "(cached) " >&6 | |
51c8a213 DJ |
12081 | else |
12082 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12083 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12084 | else | |
b58b6ee1 DJ |
12085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12086 | for as_dir in $PATH | |
12087 | do | |
12088 | IFS=$as_save_IFS | |
12089 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12090 | for ac_exec_ext in '' $ac_executable_extensions; do |
12091 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 12092 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 12093 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12094 | break 2 |
12095 | fi | |
12096 | done | |
efd58f08 RW |
12097 | done |
12098 | IFS=$as_save_IFS | |
b58b6ee1 | 12099 | |
51c8a213 DJ |
12100 | fi |
12101 | fi | |
b58b6ee1 | 12102 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
51c8a213 | 12103 | if test -n "$OBJDUMP_FOR_TARGET"; then |
efd58f08 RW |
12104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12105 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
51c8a213 | 12106 | else |
efd58f08 RW |
12107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12108 | $as_echo "no" >&6; } | |
51c8a213 DJ |
12109 | fi |
12110 | ||
efd58f08 | 12111 | |
fef3f213 PB |
12112 | fi |
12113 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12114 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
51c8a213 | 12115 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
12116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12117 | $as_echo_n "checking for $ac_word... " >&6; } | |
12118 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12119 | $as_echo_n "(cached) " >&6 | |
51c8a213 DJ |
12120 | else |
12121 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12122 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12123 | else | |
b58b6ee1 DJ |
12124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12125 | for as_dir in $PATH | |
12126 | do | |
12127 | IFS=$as_save_IFS | |
12128 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12129 | for ac_exec_ext in '' $ac_executable_extensions; do |
12130 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 12131 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
efd58f08 | 12132 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12133 | break 2 |
12134 | fi | |
12135 | done | |
efd58f08 RW |
12136 | done |
12137 | IFS=$as_save_IFS | |
b58b6ee1 | 12138 | |
51c8a213 DJ |
12139 | fi |
12140 | fi | |
b58b6ee1 | 12141 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
51c8a213 | 12142 | if test -n "$OBJDUMP_FOR_TARGET"; then |
efd58f08 RW |
12143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12144 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
51c8a213 | 12145 | else |
efd58f08 RW |
12146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12147 | $as_echo "no" >&6; } | |
51c8a213 | 12148 | fi |
b58b6ee1 | 12149 | |
efd58f08 | 12150 | |
fef3f213 PB |
12151 | fi |
12152 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12153 | done | |
12154 | fi | |
b58b6ee1 | 12155 | |
51c8a213 DJ |
12156 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12157 | set dummy objdump | |
12158 | if test $build = $target ; then | |
12159 | OBJDUMP_FOR_TARGET="$2" | |
12160 | else | |
12161 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12162 | fi | |
d058b81b MS |
12163 | else |
12164 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
51c8a213 DJ |
12165 | fi |
12166 | ||
207258c8 PB |
12167 | else |
12168 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
fef3f213 PB |
12169 | fi |
12170 | ||
12171 | ||
12172 | ||
12173 | ||
12174 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12175 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
12176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12177 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
207258c8 PB |
12178 | if test -x $with_build_time_tools/ranlib; then |
12179 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12180 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
efd58f08 RW |
12181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12182 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
207258c8 | 12183 | else |
efd58f08 RW |
12184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12185 | $as_echo "no" >&6; } | |
207258c8 | 12186 | fi |
fef3f213 PB |
12187 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12188 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d058b81b MS |
12189 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12190 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
fef3f213 PB |
12191 | fi |
12192 | fi | |
b58b6ee1 | 12193 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
12194 | # Extract the first word of "ranlib", so it can be a program name with args. |
12195 | set dummy ranlib; ac_word=$2 | |
efd58f08 RW |
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_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12199 | $as_echo_n "(cached) " >&6 | |
fef3f213 | 12200 | else |
b58b6ee1 DJ |
12201 | case $RANLIB_FOR_TARGET in |
12202 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
12203 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12204 | ;; | |
fef3f213 | 12205 | *) |
b58b6ee1 DJ |
12206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12207 | for as_dir in $gcc_cv_tool_dirs | |
12208 | do | |
12209 | IFS=$as_save_IFS | |
12210 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12211 | for ac_exec_ext in '' $ac_executable_extensions; do |
12212 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 12213 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 12214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12215 | break 2 |
12216 | fi | |
12217 | done | |
efd58f08 RW |
12218 | done |
12219 | IFS=$as_save_IFS | |
b58b6ee1 | 12220 | |
fef3f213 PB |
12221 | ;; |
12222 | esac | |
12223 | fi | |
b58b6ee1 | 12224 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
fef3f213 | 12225 | if test -n "$RANLIB_FOR_TARGET"; then |
efd58f08 RW |
12226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12227 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
fef3f213 | 12228 | else |
efd58f08 RW |
12229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12230 | $as_echo "no" >&6; } | |
fef3f213 PB |
12231 | fi |
12232 | ||
efd58f08 | 12233 | |
fef3f213 PB |
12234 | fi |
12235 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
82026593 AO |
12236 | |
12237 | ||
12238 | if test -n "$RANLIB_FOR_TARGET"; then | |
12239 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12240 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12241 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12242 | fi | |
12243 | ||
12244 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12245 | for ncn_progname in ranlib; do | |
12246 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12247 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
12248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12249 | $as_echo_n "checking for $ac_word... " >&6; } | |
12250 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12251 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
12252 | else |
12253 | if test -n "$RANLIB_FOR_TARGET"; then | |
12254 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12255 | else | |
12256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12257 | for as_dir in $PATH | |
12258 | do | |
12259 | IFS=$as_save_IFS | |
12260 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12261 | for ac_exec_ext in '' $ac_executable_extensions; do |
12262 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 12263 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
efd58f08 | 12264 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
12265 | break 2 |
12266 | fi | |
12267 | done | |
efd58f08 RW |
12268 | done |
12269 | IFS=$as_save_IFS | |
82026593 AO |
12270 | |
12271 | fi | |
12272 | fi | |
12273 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12274 | if test -n "$RANLIB_FOR_TARGET"; then | |
efd58f08 RW |
12275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12276 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
82026593 | 12277 | else |
efd58f08 RW |
12278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12279 | $as_echo "no" >&6; } | |
82026593 AO |
12280 | fi |
12281 | ||
efd58f08 | 12282 | |
82026593 AO |
12283 | done |
12284 | fi | |
12285 | ||
12286 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 12287 | for ncn_progname in ranlib; do |
efd58f08 RW |
12288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12289 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
12290 | if test -x $with_build_time_tools/${ncn_progname}; then |
12291 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
12292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12293 | $as_echo "yes" >&6; } | |
fef3f213 PB |
12294 | break |
12295 | else | |
efd58f08 RW |
12296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12297 | $as_echo "no" >&6; } | |
fef3f213 PB |
12298 | fi |
12299 | done | |
12300 | fi | |
12301 | ||
12302 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12303 | for ncn_progname in ranlib; do | |
12304 | if test -n "$ncn_target_tool_prefix"; then | |
12305 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
51c8a213 | 12306 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
12307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12308 | $as_echo_n "checking for $ac_word... " >&6; } | |
12309 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12310 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 12311 | else |
5fb28bcc PB |
12312 | if test -n "$RANLIB_FOR_TARGET"; then |
12313 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
a0c92996 | 12314 | else |
b58b6ee1 DJ |
12315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12316 | for as_dir in $PATH | |
12317 | do | |
12318 | IFS=$as_save_IFS | |
12319 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12320 | for ac_exec_ext in '' $ac_executable_extensions; do |
12321 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 12322 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 12323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12324 | break 2 |
12325 | fi | |
12326 | done | |
efd58f08 RW |
12327 | done |
12328 | IFS=$as_save_IFS | |
b58b6ee1 | 12329 | |
a0c92996 AC |
12330 | fi |
12331 | fi | |
b58b6ee1 | 12332 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
5fb28bcc | 12333 | if test -n "$RANLIB_FOR_TARGET"; then |
efd58f08 RW |
12334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12335 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
a0c92996 | 12336 | else |
efd58f08 RW |
12337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12338 | $as_echo "no" >&6; } | |
a0c92996 AC |
12339 | fi |
12340 | ||
efd58f08 | 12341 | |
fef3f213 PB |
12342 | fi |
12343 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12344 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 12345 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
12346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12347 | $as_echo_n "checking for $ac_word... " >&6; } | |
12348 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12349 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 12350 | else |
60cfca65 PB |
12351 | if test -n "$RANLIB_FOR_TARGET"; then |
12352 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
a0c92996 | 12353 | else |
b58b6ee1 DJ |
12354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12355 | for as_dir in $PATH | |
12356 | do | |
12357 | IFS=$as_save_IFS | |
12358 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12359 | for ac_exec_ext in '' $ac_executable_extensions; do |
12360 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 12361 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
efd58f08 | 12362 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12363 | break 2 |
12364 | fi | |
12365 | done | |
efd58f08 RW |
12366 | done |
12367 | IFS=$as_save_IFS | |
b58b6ee1 | 12368 | |
a0c92996 AC |
12369 | fi |
12370 | fi | |
b58b6ee1 | 12371 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
60cfca65 | 12372 | if test -n "$RANLIB_FOR_TARGET"; then |
efd58f08 RW |
12373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12374 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
a0c92996 | 12375 | else |
efd58f08 RW |
12376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12377 | $as_echo "no" >&6; } | |
a0c92996 | 12378 | fi |
b58b6ee1 | 12379 | |
efd58f08 | 12380 | |
fef3f213 PB |
12381 | fi |
12382 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12383 | done | |
12384 | fi | |
b58b6ee1 | 12385 | |
fef3f213 PB |
12386 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12387 | set dummy ranlib | |
12388 | if test $build = $target ; then | |
12389 | RANLIB_FOR_TARGET="$2" | |
12390 | else | |
12391 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
a0c92996 | 12392 | fi |
d058b81b MS |
12393 | else |
12394 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
fef3f213 | 12395 | fi |
60cfca65 | 12396 | |
207258c8 PB |
12397 | else |
12398 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
a0c92996 AC |
12399 | fi |
12400 | ||
fef3f213 PB |
12401 | |
12402 | ||
12403 | ||
46e7439b DD |
12404 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
12405 | if test -n "$with_build_time_tools"; then | |
12406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
12407 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
12408 | if test -x $with_build_time_tools/readelf; then | |
12409 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
12410 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
12412 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
12413 | else | |
12414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12415 | $as_echo "no" >&6; } | |
12416 | fi | |
12417 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12418 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
12419 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
12420 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12421 | fi | |
12422 | fi | |
12423 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12424 | # Extract the first word of "readelf", so it can be a program name with args. | |
12425 | set dummy readelf; ac_word=$2 | |
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_path_READELF_FOR_TARGET+set}" = set; then : | |
12429 | $as_echo_n "(cached) " >&6 | |
12430 | else | |
12431 | case $READELF_FOR_TARGET in | |
12432 | [\\/]* | ?:[\\/]*) | |
12433 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
12434 | ;; | |
12435 | *) | |
12436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12437 | for as_dir in $gcc_cv_tool_dirs | |
12438 | do | |
12439 | IFS=$as_save_IFS | |
12440 | test -z "$as_dir" && as_dir=. | |
12441 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12442 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12443 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12445 | break 2 | |
12446 | fi | |
12447 | done | |
12448 | done | |
12449 | IFS=$as_save_IFS | |
12450 | ||
12451 | ;; | |
12452 | esac | |
12453 | fi | |
12454 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12455 | if test -n "$READELF_FOR_TARGET"; then | |
12456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12457 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12458 | else | |
12459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12460 | $as_echo "no" >&6; } | |
12461 | fi | |
12462 | ||
12463 | ||
12464 | fi | |
12465 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
12466 | ||
12467 | ||
12468 | if test -n "$READELF_FOR_TARGET"; then | |
12469 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12470 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12471 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12472 | fi | |
12473 | ||
12474 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12475 | for ncn_progname in readelf; do | |
12476 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12477 | set dummy ${ncn_progname}; ac_word=$2 | |
12478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12479 | $as_echo_n "checking for $ac_word... " >&6; } | |
12480 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12481 | $as_echo_n "(cached) " >&6 | |
12482 | else | |
12483 | if test -n "$READELF_FOR_TARGET"; then | |
12484 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12485 | else | |
12486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12487 | for as_dir in $PATH | |
12488 | do | |
12489 | IFS=$as_save_IFS | |
12490 | test -z "$as_dir" && as_dir=. | |
12491 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12492 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12493 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12494 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12495 | break 2 | |
12496 | fi | |
12497 | done | |
12498 | done | |
12499 | IFS=$as_save_IFS | |
12500 | ||
12501 | fi | |
12502 | fi | |
12503 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12504 | if test -n "$READELF_FOR_TARGET"; then | |
12505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12506 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12507 | else | |
12508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12509 | $as_echo "no" >&6; } | |
12510 | fi | |
12511 | ||
12512 | ||
12513 | done | |
12514 | fi | |
12515 | ||
12516 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12517 | for ncn_progname in readelf; do | |
12518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12519 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12520 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12521 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12523 | $as_echo "yes" >&6; } | |
12524 | break | |
12525 | else | |
12526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12527 | $as_echo "no" >&6; } | |
12528 | fi | |
12529 | done | |
12530 | fi | |
12531 | ||
12532 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12533 | for ncn_progname in readelf; do | |
12534 | if test -n "$ncn_target_tool_prefix"; then | |
12535 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12536 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12538 | $as_echo_n "checking for $ac_word... " >&6; } | |
12539 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12540 | $as_echo_n "(cached) " >&6 | |
12541 | else | |
12542 | if test -n "$READELF_FOR_TARGET"; then | |
12543 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12544 | else | |
12545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12546 | for as_dir in $PATH | |
12547 | do | |
12548 | IFS=$as_save_IFS | |
12549 | test -z "$as_dir" && as_dir=. | |
12550 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12551 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12552 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12553 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12554 | break 2 | |
12555 | fi | |
12556 | done | |
12557 | done | |
12558 | IFS=$as_save_IFS | |
12559 | ||
12560 | fi | |
12561 | fi | |
12562 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12563 | if test -n "$READELF_FOR_TARGET"; then | |
12564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12565 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12566 | else | |
12567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12568 | $as_echo "no" >&6; } | |
12569 | fi | |
12570 | ||
12571 | ||
12572 | fi | |
12573 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
12574 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12575 | set dummy ${ncn_progname}; ac_word=$2 | |
12576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12577 | $as_echo_n "checking for $ac_word... " >&6; } | |
12578 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12579 | $as_echo_n "(cached) " >&6 | |
12580 | else | |
12581 | if test -n "$READELF_FOR_TARGET"; then | |
12582 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12583 | else | |
12584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12585 | for as_dir in $PATH | |
12586 | do | |
12587 | IFS=$as_save_IFS | |
12588 | test -z "$as_dir" && as_dir=. | |
12589 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12590 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12591 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12592 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12593 | break 2 | |
12594 | fi | |
12595 | done | |
12596 | done | |
12597 | IFS=$as_save_IFS | |
12598 | ||
12599 | fi | |
12600 | fi | |
12601 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12602 | if test -n "$READELF_FOR_TARGET"; then | |
12603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12604 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12605 | else | |
12606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12607 | $as_echo "no" >&6; } | |
12608 | fi | |
12609 | ||
12610 | ||
12611 | fi | |
12612 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
12613 | done | |
12614 | fi | |
12615 | ||
12616 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
12617 | set dummy readelf | |
12618 | if test $build = $target ; then | |
12619 | READELF_FOR_TARGET="$2" | |
12620 | else | |
12621 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12622 | fi | |
12623 | else | |
12624 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
12625 | fi | |
12626 | ||
12627 | else | |
12628 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12629 | fi | |
12630 | ||
12631 | ||
12632 | ||
12633 | ||
fef3f213 PB |
12634 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
12635 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
12636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
12637 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
207258c8 PB |
12638 | if test -x $with_build_time_tools/strip; then |
12639 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
12640 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
efd58f08 RW |
12641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
12642 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
207258c8 | 12643 | else |
efd58f08 RW |
12644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12645 | $as_echo "no" >&6; } | |
207258c8 | 12646 | fi |
fef3f213 PB |
12647 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12648 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d058b81b MS |
12649 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
12650 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
fef3f213 PB |
12651 | fi |
12652 | fi | |
b58b6ee1 | 12653 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
12654 | # Extract the first word of "strip", so it can be a program name with args. |
12655 | set dummy strip; ac_word=$2 | |
efd58f08 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_path_STRIP_FOR_TARGET+set}" = set; then : | |
12659 | $as_echo_n "(cached) " >&6 | |
fef3f213 | 12660 | else |
b58b6ee1 DJ |
12661 | case $STRIP_FOR_TARGET in |
12662 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
12663 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
12664 | ;; | |
fef3f213 | 12665 | *) |
b58b6ee1 DJ |
12666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12667 | for as_dir in $gcc_cv_tool_dirs | |
12668 | do | |
12669 | IFS=$as_save_IFS | |
12670 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12671 | for ac_exec_ext in '' $ac_executable_extensions; do |
12672 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 12673 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 12674 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12675 | break 2 |
12676 | fi | |
12677 | done | |
efd58f08 RW |
12678 | done |
12679 | IFS=$as_save_IFS | |
b58b6ee1 | 12680 | |
fef3f213 PB |
12681 | ;; |
12682 | esac | |
12683 | fi | |
b58b6ee1 | 12684 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
fef3f213 | 12685 | if test -n "$STRIP_FOR_TARGET"; then |
efd58f08 RW |
12686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12687 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
fef3f213 | 12688 | else |
efd58f08 RW |
12689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12690 | $as_echo "no" >&6; } | |
fef3f213 PB |
12691 | fi |
12692 | ||
efd58f08 | 12693 | |
fef3f213 PB |
12694 | fi |
12695 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
82026593 AO |
12696 | |
12697 | ||
12698 | if test -n "$STRIP_FOR_TARGET"; then | |
12699 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
12700 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12701 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12702 | fi | |
12703 | ||
12704 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12705 | for ncn_progname in strip; do | |
12706 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12707 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
12708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12709 | $as_echo_n "checking for $ac_word... " >&6; } | |
12710 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12711 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
12712 | else |
12713 | if test -n "$STRIP_FOR_TARGET"; then | |
12714 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12715 | else | |
12716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12717 | for as_dir in $PATH | |
12718 | do | |
12719 | IFS=$as_save_IFS | |
12720 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12721 | for ac_exec_ext in '' $ac_executable_extensions; do |
12722 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 12723 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
efd58f08 | 12724 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
12725 | break 2 |
12726 | fi | |
12727 | done | |
efd58f08 RW |
12728 | done |
12729 | IFS=$as_save_IFS | |
82026593 AO |
12730 | |
12731 | fi | |
12732 | fi | |
12733 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12734 | if test -n "$STRIP_FOR_TARGET"; then | |
efd58f08 RW |
12735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12736 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
82026593 | 12737 | else |
efd58f08 RW |
12738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12739 | $as_echo "no" >&6; } | |
82026593 AO |
12740 | fi |
12741 | ||
efd58f08 | 12742 | |
82026593 AO |
12743 | done |
12744 | fi | |
12745 | ||
12746 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 12747 | for ncn_progname in strip; do |
efd58f08 RW |
12748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12749 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
12750 | if test -x $with_build_time_tools/${ncn_progname}; then |
12751 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
12752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12753 | $as_echo "yes" >&6; } | |
fef3f213 PB |
12754 | break |
12755 | else | |
efd58f08 RW |
12756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12757 | $as_echo "no" >&6; } | |
fef3f213 PB |
12758 | fi |
12759 | done | |
12760 | fi | |
12761 | ||
12762 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12763 | for ncn_progname in strip; do | |
12764 | if test -n "$ncn_target_tool_prefix"; then | |
12765 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6a33f745 | 12766 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
12767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12768 | $as_echo_n "checking for $ac_word... " >&6; } | |
12769 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12770 | $as_echo_n "(cached) " >&6 | |
6a33f745 GK |
12771 | else |
12772 | if test -n "$STRIP_FOR_TARGET"; then | |
12773 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
b58b6ee1 DJ |
12774 | else |
12775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12776 | for as_dir in $PATH | |
12777 | do | |
12778 | IFS=$as_save_IFS | |
12779 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12780 | for ac_exec_ext in '' $ac_executable_extensions; do |
12781 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 12782 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 12783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12784 | break 2 |
12785 | fi | |
12786 | done | |
efd58f08 RW |
12787 | done |
12788 | IFS=$as_save_IFS | |
b58b6ee1 | 12789 | |
6a33f745 GK |
12790 | fi |
12791 | fi | |
b58b6ee1 | 12792 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
6a33f745 | 12793 | if test -n "$STRIP_FOR_TARGET"; then |
efd58f08 RW |
12794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12795 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
6a33f745 | 12796 | else |
efd58f08 RW |
12797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12798 | $as_echo "no" >&6; } | |
6a33f745 GK |
12799 | fi |
12800 | ||
efd58f08 | 12801 | |
fef3f213 PB |
12802 | fi |
12803 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
12804 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6a33f745 | 12805 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
12806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12807 | $as_echo_n "checking for $ac_word... " >&6; } | |
12808 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12809 | $as_echo_n "(cached) " >&6 | |
6a33f745 GK |
12810 | else |
12811 | if test -n "$STRIP_FOR_TARGET"; then | |
12812 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12813 | else | |
b58b6ee1 DJ |
12814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12815 | for as_dir in $PATH | |
12816 | do | |
12817 | IFS=$as_save_IFS | |
12818 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12819 | for ac_exec_ext in '' $ac_executable_extensions; do |
12820 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 12821 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
efd58f08 | 12822 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12823 | break 2 |
12824 | fi | |
12825 | done | |
efd58f08 RW |
12826 | done |
12827 | IFS=$as_save_IFS | |
b58b6ee1 | 12828 | |
6a33f745 GK |
12829 | fi |
12830 | fi | |
b58b6ee1 | 12831 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
6a33f745 | 12832 | if test -n "$STRIP_FOR_TARGET"; then |
efd58f08 RW |
12833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12834 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
6a33f745 | 12835 | else |
efd58f08 RW |
12836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12837 | $as_echo "no" >&6; } | |
6a33f745 | 12838 | fi |
b58b6ee1 | 12839 | |
efd58f08 | 12840 | |
fef3f213 PB |
12841 | fi |
12842 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
12843 | done | |
12844 | fi | |
b58b6ee1 | 12845 | |
6a33f745 GK |
12846 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
12847 | set dummy strip | |
12848 | if test $build = $target ; then | |
12849 | STRIP_FOR_TARGET="$2" | |
12850 | else | |
12851 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12852 | fi | |
d058b81b MS |
12853 | else |
12854 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
6a33f745 GK |
12855 | fi |
12856 | ||
207258c8 PB |
12857 | else |
12858 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
fef3f213 PB |
12859 | fi |
12860 | ||
12861 | ||
12862 | ||
12863 | ||
12864 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
12865 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
12866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
12867 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
207258c8 PB |
12868 | if test -x $with_build_time_tools/windres; then |
12869 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
12870 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
efd58f08 RW |
12871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
12872 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
207258c8 | 12873 | else |
efd58f08 RW |
12874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12875 | $as_echo "no" >&6; } | |
207258c8 | 12876 | fi |
fef3f213 PB |
12877 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12878 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d058b81b MS |
12879 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
12880 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
fef3f213 PB |
12881 | fi |
12882 | fi | |
b58b6ee1 | 12883 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
12884 | # Extract the first word of "windres", so it can be a program name with args. |
12885 | set dummy windres; ac_word=$2 | |
efd58f08 RW |
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_path_WINDRES_FOR_TARGET+set}" = set; then : | |
12889 | $as_echo_n "(cached) " >&6 | |
fef3f213 | 12890 | else |
b58b6ee1 DJ |
12891 | case $WINDRES_FOR_TARGET in |
12892 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
12893 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
12894 | ;; | |
fef3f213 | 12895 | *) |
b58b6ee1 DJ |
12896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12897 | for as_dir in $gcc_cv_tool_dirs | |
12898 | do | |
12899 | IFS=$as_save_IFS | |
12900 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12901 | for ac_exec_ext in '' $ac_executable_extensions; do |
12902 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 12903 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 12904 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12905 | break 2 |
12906 | fi | |
12907 | done | |
efd58f08 RW |
12908 | done |
12909 | IFS=$as_save_IFS | |
b58b6ee1 | 12910 | |
fef3f213 PB |
12911 | ;; |
12912 | esac | |
12913 | fi | |
b58b6ee1 | 12914 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
fef3f213 | 12915 | if test -n "$WINDRES_FOR_TARGET"; then |
efd58f08 RW |
12916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12917 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
fef3f213 | 12918 | else |
efd58f08 RW |
12919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12920 | $as_echo "no" >&6; } | |
fef3f213 PB |
12921 | fi |
12922 | ||
efd58f08 | 12923 | |
fef3f213 PB |
12924 | fi |
12925 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
82026593 AO |
12926 | |
12927 | ||
12928 | if test -n "$WINDRES_FOR_TARGET"; then | |
12929 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
12930 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12931 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
12932 | fi | |
12933 | ||
12934 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12935 | for ncn_progname in windres; do | |
12936 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12937 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
12938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12939 | $as_echo_n "checking for $ac_word... " >&6; } | |
12940 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12941 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
12942 | else |
12943 | if test -n "$WINDRES_FOR_TARGET"; then | |
12944 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
12945 | else | |
12946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12947 | for as_dir in $PATH | |
12948 | do | |
12949 | IFS=$as_save_IFS | |
12950 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12951 | for ac_exec_ext in '' $ac_executable_extensions; do |
12952 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 12953 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
efd58f08 | 12954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
12955 | break 2 |
12956 | fi | |
12957 | done | |
efd58f08 RW |
12958 | done |
12959 | IFS=$as_save_IFS | |
82026593 AO |
12960 | |
12961 | fi | |
12962 | fi | |
12963 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
12964 | if test -n "$WINDRES_FOR_TARGET"; then | |
efd58f08 RW |
12965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12966 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
82026593 | 12967 | else |
efd58f08 RW |
12968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12969 | $as_echo "no" >&6; } | |
82026593 AO |
12970 | fi |
12971 | ||
efd58f08 | 12972 | |
82026593 AO |
12973 | done |
12974 | fi | |
12975 | ||
12976 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 12977 | for ncn_progname in windres; do |
efd58f08 RW |
12978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12979 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
12980 | if test -x $with_build_time_tools/${ncn_progname}; then |
12981 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
12982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12983 | $as_echo "yes" >&6; } | |
fef3f213 PB |
12984 | break |
12985 | else | |
efd58f08 RW |
12986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12987 | $as_echo "no" >&6; } | |
fef3f213 PB |
12988 | fi |
12989 | done | |
12990 | fi | |
12991 | ||
12992 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12993 | for ncn_progname in windres; do | |
12994 | if test -n "$ncn_target_tool_prefix"; then | |
12995 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 12996 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
12997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12998 | $as_echo_n "checking for $ac_word... " >&6; } | |
12999 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13000 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 13001 | else |
5fb28bcc PB |
13002 | if test -n "$WINDRES_FOR_TARGET"; then |
13003 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
a0c92996 | 13004 | else |
b58b6ee1 DJ |
13005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13006 | for as_dir in $PATH | |
13007 | do | |
13008 | IFS=$as_save_IFS | |
13009 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
13010 | for ac_exec_ext in '' $ac_executable_extensions; do |
13011 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 13012 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 13013 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
13014 | break 2 |
13015 | fi | |
13016 | done | |
efd58f08 RW |
13017 | done |
13018 | IFS=$as_save_IFS | |
b58b6ee1 | 13019 | |
a0c92996 AC |
13020 | fi |
13021 | fi | |
b58b6ee1 | 13022 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
5fb28bcc | 13023 | if test -n "$WINDRES_FOR_TARGET"; then |
efd58f08 RW |
13024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13025 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
a0c92996 | 13026 | else |
efd58f08 RW |
13027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13028 | $as_echo "no" >&6; } | |
a0c92996 AC |
13029 | fi |
13030 | ||
efd58f08 | 13031 | |
fef3f213 PB |
13032 | fi |
13033 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13034 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 13035 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
13036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13037 | $as_echo_n "checking for $ac_word... " >&6; } | |
13038 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13039 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 13040 | else |
60cfca65 PB |
13041 | if test -n "$WINDRES_FOR_TARGET"; then |
13042 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
a0c92996 | 13043 | else |
b58b6ee1 DJ |
13044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13045 | for as_dir in $PATH | |
13046 | do | |
13047 | IFS=$as_save_IFS | |
13048 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
13049 | for ac_exec_ext in '' $ac_executable_extensions; do |
13050 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 13051 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
efd58f08 | 13052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
13053 | break 2 |
13054 | fi | |
13055 | done | |
efd58f08 RW |
13056 | done |
13057 | IFS=$as_save_IFS | |
b58b6ee1 | 13058 | |
a0c92996 AC |
13059 | fi |
13060 | fi | |
b58b6ee1 | 13061 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
60cfca65 | 13062 | if test -n "$WINDRES_FOR_TARGET"; then |
efd58f08 RW |
13063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13064 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
a0c92996 | 13065 | else |
efd58f08 RW |
13066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13067 | $as_echo "no" >&6; } | |
a0c92996 | 13068 | fi |
b58b6ee1 | 13069 | |
efd58f08 | 13070 | |
fef3f213 PB |
13071 | fi |
13072 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13073 | done | |
13074 | fi | |
b58b6ee1 | 13075 | |
60cfca65 PB |
13076 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13077 | set dummy windres | |
13078 | if test $build = $target ; then | |
13079 | WINDRES_FOR_TARGET="$2" | |
a0c92996 | 13080 | else |
60cfca65 | 13081 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
a0c92996 | 13082 | fi |
d058b81b MS |
13083 | else |
13084 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
a0c92996 AC |
13085 | fi |
13086 | ||
207258c8 PB |
13087 | else |
13088 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
fef3f213 PB |
13089 | fi |
13090 | ||
712e2a32 | 13091 | |
bffcbe34 NC |
13092 | |
13093 | ||
13094 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13095 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
13096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13097 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
bffcbe34 NC |
13098 | if test -x $with_build_time_tools/windmc; then |
13099 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13100 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
efd58f08 RW |
13101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13102 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
bffcbe34 | 13103 | else |
efd58f08 RW |
13104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13105 | $as_echo "no" >&6; } | |
bffcbe34 NC |
13106 | fi |
13107 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13108 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
13109 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
13110 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13111 | fi | |
13112 | fi | |
13113 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13114 | # Extract the first word of "windmc", so it can be a program name with args. | |
13115 | set dummy windmc; ac_word=$2 | |
efd58f08 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_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13119 | $as_echo_n "(cached) " >&6 | |
bffcbe34 NC |
13120 | else |
13121 | case $WINDMC_FOR_TARGET in | |
13122 | [\\/]* | ?:[\\/]*) | |
13123 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13124 | ;; | |
13125 | *) | |
13126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13127 | for as_dir in $gcc_cv_tool_dirs | |
13128 | do | |
13129 | IFS=$as_save_IFS | |
13130 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
13131 | for ac_exec_ext in '' $ac_executable_extensions; do |
13132 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bffcbe34 | 13133 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 13134 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bffcbe34 NC |
13135 | break 2 |
13136 | fi | |
13137 | done | |
efd58f08 RW |
13138 | done |
13139 | IFS=$as_save_IFS | |
bffcbe34 NC |
13140 | |
13141 | ;; | |
13142 | esac | |
13143 | fi | |
13144 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
bffcbe34 | 13145 | if test -n "$WINDMC_FOR_TARGET"; then |
efd58f08 RW |
13146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13147 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
bffcbe34 | 13148 | else |
efd58f08 RW |
13149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13150 | $as_echo "no" >&6; } | |
bffcbe34 NC |
13151 | fi |
13152 | ||
efd58f08 | 13153 | |
bffcbe34 NC |
13154 | fi |
13155 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13156 | ||
13157 | ||
13158 | if test -n "$WINDMC_FOR_TARGET"; then | |
13159 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13160 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13161 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13162 | fi | |
13163 | ||
13164 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13165 | for ncn_progname in windmc; do | |
13166 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13167 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
13168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13169 | $as_echo_n "checking for $ac_word... " >&6; } | |
13170 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13171 | $as_echo_n "(cached) " >&6 | |
bffcbe34 NC |
13172 | else |
13173 | if test -n "$WINDMC_FOR_TARGET"; then | |
13174 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13175 | else | |
13176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13177 | for as_dir in $PATH | |
13178 | do | |
13179 | IFS=$as_save_IFS | |
13180 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
13181 | for ac_exec_ext in '' $ac_executable_extensions; do |
13182 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bffcbe34 | 13183 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
efd58f08 | 13184 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bffcbe34 NC |
13185 | break 2 |
13186 | fi | |
13187 | done | |
efd58f08 RW |
13188 | done |
13189 | IFS=$as_save_IFS | |
bffcbe34 NC |
13190 | |
13191 | fi | |
13192 | fi | |
13193 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13194 | if test -n "$WINDMC_FOR_TARGET"; then | |
efd58f08 RW |
13195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13196 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
bffcbe34 | 13197 | else |
efd58f08 RW |
13198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13199 | $as_echo "no" >&6; } | |
bffcbe34 NC |
13200 | fi |
13201 | ||
efd58f08 | 13202 | |
bffcbe34 NC |
13203 | done |
13204 | fi | |
13205 | ||
13206 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13207 | for ncn_progname in windmc; do | |
efd58f08 RW |
13208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13209 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
bffcbe34 NC |
13210 | if test -x $with_build_time_tools/${ncn_progname}; then |
13211 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
13212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13213 | $as_echo "yes" >&6; } | |
bffcbe34 NC |
13214 | break |
13215 | else | |
efd58f08 RW |
13216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13217 | $as_echo "no" >&6; } | |
bffcbe34 NC |
13218 | fi |
13219 | done | |
13220 | fi | |
13221 | ||
13222 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13223 | for ncn_progname in windmc; do | |
13224 | if test -n "$ncn_target_tool_prefix"; then | |
13225 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13226 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
13227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13228 | $as_echo_n "checking for $ac_word... " >&6; } | |
13229 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13230 | $as_echo_n "(cached) " >&6 | |
bffcbe34 NC |
13231 | else |
13232 | if test -n "$WINDMC_FOR_TARGET"; then | |
13233 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13234 | else | |
13235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13236 | for as_dir in $PATH | |
13237 | do | |
13238 | IFS=$as_save_IFS | |
13239 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
13240 | for ac_exec_ext in '' $ac_executable_extensions; do |
13241 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bffcbe34 | 13242 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 13243 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bffcbe34 NC |
13244 | break 2 |
13245 | fi | |
13246 | done | |
efd58f08 RW |
13247 | done |
13248 | IFS=$as_save_IFS | |
bffcbe34 NC |
13249 | |
13250 | fi | |
13251 | fi | |
13252 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13253 | if test -n "$WINDMC_FOR_TARGET"; then | |
efd58f08 RW |
13254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13255 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
bffcbe34 | 13256 | else |
efd58f08 RW |
13257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13258 | $as_echo "no" >&6; } | |
bffcbe34 NC |
13259 | fi |
13260 | ||
efd58f08 | 13261 | |
bffcbe34 NC |
13262 | fi |
13263 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13264 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13265 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
13266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13267 | $as_echo_n "checking for $ac_word... " >&6; } | |
13268 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13269 | $as_echo_n "(cached) " >&6 | |
bffcbe34 NC |
13270 | else |
13271 | if test -n "$WINDMC_FOR_TARGET"; then | |
13272 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13273 | else | |
13274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13275 | for as_dir in $PATH | |
13276 | do | |
13277 | IFS=$as_save_IFS | |
13278 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
13279 | for ac_exec_ext in '' $ac_executable_extensions; do |
13280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bffcbe34 | 13281 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
efd58f08 | 13282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bffcbe34 NC |
13283 | break 2 |
13284 | fi | |
13285 | done | |
efd58f08 RW |
13286 | done |
13287 | IFS=$as_save_IFS | |
bffcbe34 NC |
13288 | |
13289 | fi | |
13290 | fi | |
13291 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13292 | if test -n "$WINDMC_FOR_TARGET"; then | |
efd58f08 RW |
13293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13294 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
bffcbe34 | 13295 | else |
efd58f08 RW |
13296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13297 | $as_echo "no" >&6; } | |
bffcbe34 NC |
13298 | fi |
13299 | ||
efd58f08 | 13300 | |
bffcbe34 NC |
13301 | fi |
13302 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13303 | done | |
13304 | fi | |
13305 | ||
13306 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13307 | set dummy windmc | |
13308 | if test $build = $target ; then | |
13309 | WINDMC_FOR_TARGET="$2" | |
13310 | else | |
13311 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13312 | fi | |
13313 | else | |
13314 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
13315 | fi | |
13316 | ||
13317 | else | |
13318 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13319 | fi | |
13320 | ||
13321 | ||
a7dc05b5 PB |
13322 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13323 | ||
efd58f08 RW |
13324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13325 | $as_echo_n "checking where to find the target ar... " >&6; } | |
a7dc05b5 | 13326 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
13327 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13328 | # We already found the complete path | |
7a81a717 | 13329 | ac_dir=`dirname $AR_FOR_TARGET` |
efd58f08 RW |
13330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13331 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
13332 | else |
13333 | # Canadian cross, just use what we found | |
efd58f08 RW |
13334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13335 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 13336 | fi |
a7dc05b5 PB |
13337 | else |
13338 | ok=yes | |
13339 | case " ${configdirs} " in | |
13340 | *" binutils "*) ;; | |
13341 | *) ok=no ;; | |
13342 | esac | |
b58b6ee1 | 13343 | |
a7dc05b5 PB |
13344 | if test $ok = yes; then |
13345 | # An in-tree tool is available and we can use it | |
13346 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
efd58f08 RW |
13347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13348 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
13349 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13350 | # We already found the complete path | |
7a81a717 | 13351 | ac_dir=`dirname $AR_FOR_TARGET` |
efd58f08 RW |
13352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13353 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
13354 | elif test "x$target" = "x$host"; then |
13355 | # We can use an host tool | |
13356 | AR_FOR_TARGET='$(AR)' | |
efd58f08 RW |
13357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13358 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
13359 | else |
13360 | # We need a cross tool | |
efd58f08 RW |
13361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13362 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
13363 | fi |
13364 | fi | |
42f55f77 | 13365 | |
efd58f08 RW |
13366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13367 | $as_echo_n "checking where to find the target as... " >&6; } | |
a7dc05b5 | 13368 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
13369 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13370 | # We already found the complete path | |
7a81a717 | 13371 | ac_dir=`dirname $AS_FOR_TARGET` |
efd58f08 RW |
13372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13373 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
13374 | else |
13375 | # Canadian cross, just use what we found | |
efd58f08 RW |
13376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13377 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 13378 | fi |
a7dc05b5 PB |
13379 | else |
13380 | ok=yes | |
13381 | case " ${configdirs} " in | |
13382 | *" gas "*) ;; | |
13383 | *) ok=no ;; | |
13384 | esac | |
b58b6ee1 | 13385 | |
a7dc05b5 PB |
13386 | if test $ok = yes; then |
13387 | # An in-tree tool is available and we can use it | |
13388 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
efd58f08 RW |
13389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13390 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
13391 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13392 | # We already found the complete path | |
7a81a717 | 13393 | ac_dir=`dirname $AS_FOR_TARGET` |
efd58f08 RW |
13394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13395 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
13396 | elif test "x$target" = "x$host"; then |
13397 | # We can use an host tool | |
13398 | AS_FOR_TARGET='$(AS)' | |
efd58f08 RW |
13399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13400 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
13401 | else |
13402 | # We need a cross tool | |
efd58f08 RW |
13403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13404 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
13405 | fi |
13406 | fi | |
42f55f77 | 13407 | |
efd58f08 RW |
13408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13409 | $as_echo_n "checking where to find the target cc... " >&6; } | |
a7dc05b5 | 13410 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
13411 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13412 | # We already found the complete path | |
7a81a717 | 13413 | ac_dir=`dirname $CC_FOR_TARGET` |
efd58f08 RW |
13414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13415 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
13416 | else |
13417 | # Canadian cross, just use what we found | |
efd58f08 RW |
13418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13419 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 13420 | fi |
a7dc05b5 PB |
13421 | else |
13422 | ok=yes | |
13423 | case " ${configdirs} " in | |
13424 | *" gcc "*) ;; | |
13425 | *) ok=no ;; | |
13426 | esac | |
b58b6ee1 | 13427 | |
a7dc05b5 PB |
13428 | if test $ok = yes; then |
13429 | # An in-tree tool is available and we can use it | |
13430 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
efd58f08 RW |
13431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13432 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
13433 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13434 | # We already found the complete path | |
7a81a717 | 13435 | ac_dir=`dirname $CC_FOR_TARGET` |
efd58f08 RW |
13436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13437 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
13438 | elif test "x$target" = "x$host"; then |
13439 | # We can use an host tool | |
13440 | CC_FOR_TARGET='$(CC)' | |
efd58f08 RW |
13441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13442 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
13443 | else |
13444 | # We need a cross tool | |
efd58f08 RW |
13445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13446 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
13447 | fi |
13448 | fi | |
42f55f77 | 13449 | |
efd58f08 RW |
13450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13451 | $as_echo_n "checking where to find the target c++... " >&6; } | |
a7dc05b5 | 13452 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
13453 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13454 | # We already found the complete path | |
7a81a717 | 13455 | ac_dir=`dirname $CXX_FOR_TARGET` |
efd58f08 RW |
13456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13457 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
13458 | else |
13459 | # Canadian cross, just use what we found | |
efd58f08 RW |
13460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13461 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 13462 | fi |
a7dc05b5 PB |
13463 | else |
13464 | ok=yes | |
13465 | case " ${configdirs} " in | |
13466 | *" gcc "*) ;; | |
13467 | *) ok=no ;; | |
13468 | esac | |
13469 | case ,${enable_languages}, in | |
13470 | *,c++,*) ;; | |
13471 | *) ok=no ;; | |
13472 | esac | |
13473 | if test $ok = yes; then | |
13474 | # An in-tree tool is available and we can use it | |
a5237039 | 13475 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' |
efd58f08 RW |
13476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13477 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
13478 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13479 | # We already found the complete path | |
7a81a717 | 13480 | ac_dir=`dirname $CXX_FOR_TARGET` |
efd58f08 RW |
13481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13482 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
13483 | elif test "x$target" = "x$host"; then |
13484 | # We can use an host tool | |
13485 | CXX_FOR_TARGET='$(CXX)' | |
efd58f08 RW |
13486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13487 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
13488 | else |
13489 | # We need a cross tool | |
efd58f08 RW |
13490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13491 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
13492 | fi |
13493 | fi | |
42f55f77 | 13494 | |
efd58f08 RW |
13495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13496 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
a7dc05b5 | 13497 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
13498 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13499 | # We already found the complete path | |
7a81a717 | 13500 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
efd58f08 RW |
13501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13502 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
13503 | else |
13504 | # Canadian cross, just use what we found | |
efd58f08 RW |
13505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13506 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 13507 | fi |
a7dc05b5 PB |
13508 | else |
13509 | ok=yes | |
13510 | case " ${configdirs} " in | |
13511 | *" gcc "*) ;; | |
13512 | *) ok=no ;; | |
13513 | esac | |
13514 | case ,${enable_languages}, in | |
13515 | *,c++,*) ;; | |
13516 | *) ok=no ;; | |
13517 | esac | |
13518 | if test $ok = yes; then | |
13519 | # An in-tree tool is available and we can use it | |
13520 | 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' | |
efd58f08 RW |
13521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13522 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
13523 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13524 | # We already found the complete path | |
7a81a717 | 13525 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
efd58f08 RW |
13526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13527 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
13528 | elif test "x$target" = "x$host"; then |
13529 | # We can use an host tool | |
13530 | RAW_CXX_FOR_TARGET='$(CXX)' | |
efd58f08 RW |
13531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13532 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
13533 | else |
13534 | # We need a cross tool | |
efd58f08 RW |
13535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13536 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
13537 | fi |
13538 | fi | |
42f55f77 | 13539 | |
efd58f08 RW |
13540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
13541 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
a7dc05b5 | 13542 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
13543 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13544 | # We already found the complete path | |
7a81a717 | 13545 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
efd58f08 RW |
13546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13547 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
13548 | else |
13549 | # Canadian cross, just use what we found | |
efd58f08 RW |
13550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13551 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 13552 | fi |
a7dc05b5 PB |
13553 | else |
13554 | ok=yes | |
13555 | case " ${configdirs} " in | |
13556 | *" binutils "*) ;; | |
13557 | *) ok=no ;; | |
13558 | esac | |
b58b6ee1 | 13559 | |
a7dc05b5 PB |
13560 | if test $ok = yes; then |
13561 | # An in-tree tool is available and we can use it | |
13562 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
efd58f08 RW |
13563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13564 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
13565 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13566 | # We already found the complete path | |
7a81a717 | 13567 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
efd58f08 RW |
13568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13569 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
13570 | elif test "x$target" = "x$host"; then |
13571 | # We can use an host tool | |
13572 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
efd58f08 RW |
13573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13574 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
13575 | else |
13576 | # We need a cross tool | |
efd58f08 RW |
13577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13578 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
13579 | fi |
13580 | fi | |
42f55f77 | 13581 | |
efd58f08 RW |
13582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
13583 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
a7dc05b5 | 13584 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
13585 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13586 | # We already found the complete path | |
7a81a717 | 13587 | ac_dir=`dirname $GCC_FOR_TARGET` |
efd58f08 RW |
13588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13589 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
13590 | else |
13591 | # Canadian cross, just use what we found | |
efd58f08 RW |
13592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13593 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 13594 | fi |
a7dc05b5 PB |
13595 | else |
13596 | ok=yes | |
13597 | case " ${configdirs} " in | |
13598 | *" gcc "*) ;; | |
13599 | *) ok=no ;; | |
13600 | esac | |
b58b6ee1 | 13601 | |
a7dc05b5 PB |
13602 | if test $ok = yes; then |
13603 | # An in-tree tool is available and we can use it | |
13604 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
efd58f08 RW |
13605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13606 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
13607 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13608 | # We already found the complete path | |
7a81a717 | 13609 | ac_dir=`dirname $GCC_FOR_TARGET` |
efd58f08 RW |
13610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13611 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
13612 | elif test "x$target" = "x$host"; then |
13613 | # We can use an host tool | |
13614 | GCC_FOR_TARGET='$()' | |
efd58f08 RW |
13615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13616 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
13617 | else |
13618 | # We need a cross tool | |
efd58f08 RW |
13619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13620 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
13621 | fi |
13622 | fi | |
42f55f77 | 13623 | |
efd58f08 RW |
13624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
13625 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
a7dc05b5 | 13626 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
13627 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13628 | # We already found the complete path | |
7a81a717 | 13629 | ac_dir=`dirname $GCJ_FOR_TARGET` |
efd58f08 RW |
13630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13631 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
13632 | else |
13633 | # Canadian cross, just use what we found | |
efd58f08 RW |
13634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13635 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 13636 | fi |
a7dc05b5 PB |
13637 | else |
13638 | ok=yes | |
13639 | case " ${configdirs} " in | |
13640 | *" gcc "*) ;; | |
13641 | *) ok=no ;; | |
13642 | esac | |
13643 | case ,${enable_languages}, in | |
13644 | *,java,*) ;; | |
13645 | *) ok=no ;; | |
13646 | esac | |
13647 | if test $ok = yes; then | |
13648 | # An in-tree tool is available and we can use it | |
13649 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
efd58f08 RW |
13650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13651 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
13652 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13653 | # We already found the complete path | |
7a81a717 | 13654 | ac_dir=`dirname $GCJ_FOR_TARGET` |
efd58f08 RW |
13655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13656 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
13657 | elif test "x$target" = "x$host"; then |
13658 | # We can use an host tool | |
13659 | GCJ_FOR_TARGET='$(GCJ)' | |
efd58f08 RW |
13660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13661 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
13662 | else |
13663 | # We need a cross tool | |
efd58f08 RW |
13664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13665 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
13666 | fi |
13667 | fi | |
42f55f77 | 13668 | |
efd58f08 RW |
13669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
13670 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
a7dc05b5 | 13671 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
13672 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13673 | # We already found the complete path | |
7a81a717 | 13674 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
efd58f08 RW |
13675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13676 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
13677 | else |
13678 | # Canadian cross, just use what we found | |
efd58f08 RW |
13679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13680 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 13681 | fi |
a7dc05b5 PB |
13682 | else |
13683 | ok=yes | |
13684 | case " ${configdirs} " in | |
13685 | *" gcc "*) ;; | |
13686 | *) ok=no ;; | |
13687 | esac | |
13688 | case ,${enable_languages}, in | |
13689 | *,fortran,*) ;; | |
13690 | *) ok=no ;; | |
13691 | esac | |
13692 | if test $ok = yes; then | |
13693 | # An in-tree tool is available and we can use it | |
13694 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
efd58f08 RW |
13695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13696 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
13697 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13698 | # We already found the complete path | |
7a81a717 | 13699 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
efd58f08 RW |
13700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13701 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
13702 | elif test "x$target" = "x$host"; then |
13703 | # We can use an host tool | |
13704 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
efd58f08 RW |
13705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13706 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
13707 | else |
13708 | # We need a cross tool | |
efd58f08 RW |
13709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13710 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
13711 | fi |
13712 | fi | |
42f55f77 | 13713 | |
d5b7129a ILT |
13714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
13715 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
13716 | if test "x${build}" != "x${host}" ; then | |
13717 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13718 | # We already found the complete path | |
13719 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13721 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13722 | else | |
13723 | # Canadian cross, just use what we found | |
13724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13725 | $as_echo "pre-installed" >&6; } | |
13726 | fi | |
13727 | else | |
13728 | ok=yes | |
13729 | case " ${configdirs} " in | |
13730 | *" gcc "*) ;; | |
13731 | *) ok=no ;; | |
13732 | esac | |
13733 | case ,${enable_languages}, in | |
13734 | *,go,*) ;; | |
13735 | *) ok=no ;; | |
13736 | esac | |
13737 | if test $ok = yes; then | |
13738 | # An in-tree tool is available and we can use it | |
13739 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
13740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13741 | $as_echo "just compiled" >&6; } | |
13742 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13743 | # We already found the complete path | |
13744 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13746 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13747 | elif test "x$target" = "x$host"; then | |
13748 | # We can use an host tool | |
13749 | GOC_FOR_TARGET='$(GOC)' | |
13750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13751 | $as_echo "host tool" >&6; } | |
13752 | else | |
13753 | # We need a cross tool | |
13754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13755 | $as_echo "pre-installed" >&6; } | |
13756 | fi | |
13757 | fi | |
13758 | ||
efd58f08 RW |
13759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
13760 | $as_echo_n "checking where to find the target ld... " >&6; } | |
a7dc05b5 | 13761 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
13762 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13763 | # We already found the complete path | |
7a81a717 | 13764 | ac_dir=`dirname $LD_FOR_TARGET` |
efd58f08 RW |
13765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13766 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
13767 | else |
13768 | # Canadian cross, just use what we found | |
efd58f08 RW |
13769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13770 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 13771 | fi |
a7dc05b5 PB |
13772 | else |
13773 | ok=yes | |
13774 | case " ${configdirs} " in | |
13775 | *" ld "*) ;; | |
13776 | *) ok=no ;; | |
13777 | esac | |
b58b6ee1 | 13778 | |
a7dc05b5 PB |
13779 | if test $ok = yes; then |
13780 | # An in-tree tool is available and we can use it | |
13781 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
efd58f08 RW |
13782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13783 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
13784 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13785 | # We already found the complete path | |
7a81a717 | 13786 | ac_dir=`dirname $LD_FOR_TARGET` |
efd58f08 RW |
13787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13788 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
13789 | elif test "x$target" = "x$host"; then |
13790 | # We can use an host tool | |
13791 | LD_FOR_TARGET='$(LD)' | |
efd58f08 RW |
13792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13793 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
13794 | else |
13795 | # We need a cross tool | |
efd58f08 RW |
13796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13797 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
13798 | fi |
13799 | fi | |
42f55f77 | 13800 | |
efd58f08 RW |
13801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
13802 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
a7dc05b5 | 13803 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
13804 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
13805 | # We already found the complete path | |
7a81a717 | 13806 | ac_dir=`dirname $LIPO_FOR_TARGET` |
efd58f08 RW |
13807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13808 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
13809 | else |
13810 | # Canadian cross, just use what we found | |
efd58f08 RW |
13811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13812 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 13813 | fi |
a7dc05b5 | 13814 | else |
fef3f213 PB |
13815 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
13816 | # We already found the complete path | |
7a81a717 | 13817 | ac_dir=`dirname $LIPO_FOR_TARGET` |
efd58f08 RW |
13818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13819 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 | 13820 | elif test "x$target" = "x$host"; then |
a7dc05b5 PB |
13821 | # We can use an host tool |
13822 | LIPO_FOR_TARGET='$(LIPO)' | |
efd58f08 RW |
13823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13824 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
13825 | else |
13826 | # We need a cross tool | |
efd58f08 RW |
13827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13828 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
13829 | fi |
13830 | fi | |
42f55f77 | 13831 | |
efd58f08 RW |
13832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
13833 | $as_echo_n "checking where to find the target nm... " >&6; } | |
a7dc05b5 | 13834 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
13835 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
13836 | # We already found the complete path | |
7a81a717 | 13837 | ac_dir=`dirname $NM_FOR_TARGET` |
efd58f08 RW |
13838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13839 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
13840 | else |
13841 | # Canadian cross, just use what we found | |
efd58f08 RW |
13842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13843 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 13844 | fi |
a7dc05b5 PB |
13845 | else |
13846 | ok=yes | |
13847 | case " ${configdirs} " in | |
13848 | *" binutils "*) ;; | |
13849 | *) ok=no ;; | |
13850 | esac | |
b58b6ee1 | 13851 | |
a7dc05b5 PB |
13852 | if test $ok = yes; then |
13853 | # An in-tree tool is available and we can use it | |
13854 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
efd58f08 RW |
13855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13856 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
13857 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
13858 | # We already found the complete path | |
7a81a717 | 13859 | ac_dir=`dirname $NM_FOR_TARGET` |
efd58f08 RW |
13860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13861 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
13862 | elif test "x$target" = "x$host"; then |
13863 | # We can use an host tool | |
13864 | NM_FOR_TARGET='$(NM)' | |
efd58f08 RW |
13865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13866 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
13867 | else |
13868 | # We need a cross tool | |
efd58f08 RW |
13869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13870 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
13871 | fi |
13872 | fi | |
42f55f77 | 13873 | |
efd58f08 RW |
13874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
13875 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
a7dc05b5 | 13876 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
13877 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
13878 | # We already found the complete path | |
7a81a717 | 13879 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
efd58f08 RW |
13880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13881 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
13882 | else |
13883 | # Canadian cross, just use what we found | |
efd58f08 RW |
13884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13885 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 13886 | fi |
a7dc05b5 PB |
13887 | else |
13888 | ok=yes | |
13889 | case " ${configdirs} " in | |
13890 | *" binutils "*) ;; | |
13891 | *) ok=no ;; | |
13892 | esac | |
b58b6ee1 | 13893 | |
a7dc05b5 PB |
13894 | if test $ok = yes; then |
13895 | # An in-tree tool is available and we can use it | |
13896 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
efd58f08 RW |
13897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13898 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
13899 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
13900 | # We already found the complete path | |
7a81a717 | 13901 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
efd58f08 RW |
13902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13903 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
13904 | elif test "x$target" = "x$host"; then |
13905 | # We can use an host tool | |
13906 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
efd58f08 RW |
13907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13908 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
13909 | else |
13910 | # We need a cross tool | |
efd58f08 RW |
13911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13912 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
13913 | fi |
13914 | fi | |
42f55f77 | 13915 | |
efd58f08 RW |
13916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
13917 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
a7dc05b5 | 13918 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
13919 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
13920 | # We already found the complete path | |
7a81a717 | 13921 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
efd58f08 RW |
13922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13923 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
13924 | else |
13925 | # Canadian cross, just use what we found | |
efd58f08 RW |
13926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13927 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 13928 | fi |
a7dc05b5 PB |
13929 | else |
13930 | ok=yes | |
13931 | case " ${configdirs} " in | |
13932 | *" binutils "*) ;; | |
13933 | *) ok=no ;; | |
13934 | esac | |
b58b6ee1 | 13935 | |
a7dc05b5 PB |
13936 | if test $ok = yes; then |
13937 | # An in-tree tool is available and we can use it | |
13938 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
efd58f08 RW |
13939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13940 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
13941 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
13942 | # We already found the complete path | |
7a81a717 | 13943 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
efd58f08 RW |
13944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13945 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
13946 | elif test "x$target" = "x$host"; then |
13947 | # We can use an host tool | |
13948 | RANLIB_FOR_TARGET='$(RANLIB)' | |
efd58f08 RW |
13949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13950 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
13951 | else |
13952 | # We need a cross tool | |
efd58f08 RW |
13953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13954 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
13955 | fi |
13956 | fi | |
42f55f77 | 13957 | |
46e7439b DD |
13958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
13959 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
13960 | if test "x${build}" != "x${host}" ; then | |
13961 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
13962 | # We already found the complete path | |
13963 | ac_dir=`dirname $READELF_FOR_TARGET` | |
13964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13965 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13966 | else | |
13967 | # Canadian cross, just use what we found | |
13968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13969 | $as_echo "pre-installed" >&6; } | |
13970 | fi | |
13971 | else | |
13972 | ok=yes | |
13973 | case " ${configdirs} " in | |
13974 | *" binutils "*) ;; | |
13975 | *) ok=no ;; | |
13976 | esac | |
13977 | ||
13978 | if test $ok = yes; then | |
13979 | # An in-tree tool is available and we can use it | |
13980 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
13981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13982 | $as_echo "just compiled" >&6; } | |
13983 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
13984 | # We already found the complete path | |
13985 | ac_dir=`dirname $READELF_FOR_TARGET` | |
13986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13987 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13988 | elif test "x$target" = "x$host"; then | |
13989 | # We can use an host tool | |
13990 | READELF_FOR_TARGET='$(READELF)' | |
13991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13992 | $as_echo "host tool" >&6; } | |
13993 | else | |
13994 | # We need a cross tool | |
13995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13996 | $as_echo "pre-installed" >&6; } | |
13997 | fi | |
13998 | fi | |
13999 | ||
efd58f08 RW |
14000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14001 | $as_echo_n "checking where to find the target strip... " >&6; } | |
a7dc05b5 | 14002 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14003 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14004 | # We already found the complete path | |
7a81a717 | 14005 | ac_dir=`dirname $STRIP_FOR_TARGET` |
efd58f08 RW |
14006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14007 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14008 | else |
14009 | # Canadian cross, just use what we found | |
efd58f08 RW |
14010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14011 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14012 | fi |
a7dc05b5 PB |
14013 | else |
14014 | ok=yes | |
14015 | case " ${configdirs} " in | |
14016 | *" binutils "*) ;; | |
14017 | *) ok=no ;; | |
14018 | esac | |
b58b6ee1 | 14019 | |
a7dc05b5 PB |
14020 | if test $ok = yes; then |
14021 | # An in-tree tool is available and we can use it | |
6f396dc7 | 14022 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
efd58f08 RW |
14023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14024 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14025 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14026 | # We already found the complete path | |
7a81a717 | 14027 | ac_dir=`dirname $STRIP_FOR_TARGET` |
efd58f08 RW |
14028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14029 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14030 | elif test "x$target" = "x$host"; then |
14031 | # We can use an host tool | |
14032 | STRIP_FOR_TARGET='$(STRIP)' | |
efd58f08 RW |
14033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14034 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14035 | else |
14036 | # We need a cross tool | |
efd58f08 RW |
14037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14038 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14039 | fi |
14040 | fi | |
42f55f77 | 14041 | |
efd58f08 RW |
14042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14043 | $as_echo_n "checking where to find the target windres... " >&6; } | |
a7dc05b5 | 14044 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14045 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14046 | # We already found the complete path | |
7a81a717 | 14047 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
efd58f08 RW |
14048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14049 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14050 | else |
14051 | # Canadian cross, just use what we found | |
efd58f08 RW |
14052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14053 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14054 | fi |
a7dc05b5 PB |
14055 | else |
14056 | ok=yes | |
14057 | case " ${configdirs} " in | |
14058 | *" binutils "*) ;; | |
14059 | *) ok=no ;; | |
14060 | esac | |
b58b6ee1 | 14061 | |
a7dc05b5 PB |
14062 | if test $ok = yes; then |
14063 | # An in-tree tool is available and we can use it | |
14064 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
efd58f08 RW |
14065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14066 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14067 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14068 | # We already found the complete path | |
7a81a717 | 14069 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
efd58f08 RW |
14070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14071 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14072 | elif test "x$target" = "x$host"; then |
14073 | # We can use an host tool | |
14074 | WINDRES_FOR_TARGET='$(WINDRES)' | |
efd58f08 RW |
14075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14076 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14077 | else |
14078 | # We need a cross tool | |
efd58f08 RW |
14079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14080 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 | 14081 | fi |
bafecfd6 | 14082 | fi |
ef76efc6 | 14083 | |
efd58f08 RW |
14084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14085 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
bffcbe34 NC |
14086 | if test "x${build}" != "x${host}" ; then |
14087 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14088 | # We already found the complete path | |
14089 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
efd58f08 RW |
14090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14091 | $as_echo "pre-installed in $ac_dir" >&6; } | |
bffcbe34 NC |
14092 | else |
14093 | # Canadian cross, just use what we found | |
efd58f08 RW |
14094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14095 | $as_echo "pre-installed" >&6; } | |
bffcbe34 NC |
14096 | fi |
14097 | else | |
14098 | ok=yes | |
14099 | case " ${configdirs} " in | |
14100 | *" binutils "*) ;; | |
14101 | *) ok=no ;; | |
14102 | esac | |
14103 | ||
14104 | if test $ok = yes; then | |
14105 | # An in-tree tool is available and we can use it | |
14106 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
efd58f08 RW |
14107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14108 | $as_echo "just compiled" >&6; } | |
bffcbe34 NC |
14109 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14110 | # We already found the complete path | |
14111 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
efd58f08 RW |
14112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14113 | $as_echo "pre-installed in $ac_dir" >&6; } | |
bffcbe34 NC |
14114 | elif test "x$target" = "x$host"; then |
14115 | # We can use an host tool | |
14116 | WINDMC_FOR_TARGET='$(WINDMC)' | |
efd58f08 RW |
14117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14118 | $as_echo "host tool" >&6; } | |
bffcbe34 NC |
14119 | else |
14120 | # We need a cross tool | |
efd58f08 RW |
14121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14122 | $as_echo "pre-installed" >&6; } | |
bffcbe34 NC |
14123 | fi |
14124 | fi | |
14125 | ||
ef76efc6 NN |
14126 | |
14127 | ||
a7dc05b5 | 14128 | |
42f55f77 | 14129 | |
bafecfd6 NN |
14130 | # Certain tools may need extra flags. |
14131 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14132 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14133 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14134 | ||
a7dc05b5 PB |
14135 | # When building target libraries, except in a Canadian cross, we use |
14136 | # the same toolchain as the compiler we just built. | |
14137 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14138 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14139 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14140 | if test $host = $build; then | |
14141 | case " $configdirs " in | |
14142 | *" gcc "*) | |
14143 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14144 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14145 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14146 | ;; | |
14147 | esac | |
14148 | fi | |
14149 | ||
14150 | ||
14151 | ||
14152 | ||
14153 | ||
efd58f08 RW |
14154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14155 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14156 | # Check whether --enable-maintainer-mode was given. | |
14157 | if test "${enable_maintainer_mode+set}" = set; then : | |
14158 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
51dcf285 AO |
14159 | else |
14160 | USE_MAINTAINER_MODE=no | |
efd58f08 RW |
14161 | fi |
14162 | ||
14163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14164 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
51dcf285 AO |
14165 | |
14166 | ||
14167 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14168 | MAINTAINER_MODE_TRUE= | |
14169 | MAINTAINER_MODE_FALSE='#' | |
14170 | else | |
14171 | MAINTAINER_MODE_TRUE='#' | |
14172 | MAINTAINER_MODE_FALSE= | |
b58b6ee1 | 14173 | fi |
51dcf285 AO |
14174 | MAINT=$MAINTAINER_MODE_TRUE |
14175 | ||
457eaf16 NN |
14176 | # --------------------- |
14177 | # GCC bootstrap support | |
14178 | # --------------------- | |
14179 | ||
14180 | # Stage specific cflags for build. | |
14181 | stage1_cflags="-g" | |
14182 | case $build in | |
14183 | vax-*-*) | |
14184 | case ${GCC} in | |
14185 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14186 | *) stage1_cflags="-g -J" ;; | |
14187 | esac ;; | |
457eaf16 NN |
14188 | esac |
14189 | ||
c684482d | 14190 | |
457eaf16 | 14191 | |
14a1406e | 14192 | # Enable --enable-checking in stage1 of the compiler. |
efd58f08 RW |
14193 | # Check whether --enable-stage1-checking was given. |
14194 | if test "${enable_stage1_checking+set}" = set; then : | |
14195 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
14a1406e | 14196 | else |
1b410bcf | 14197 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
3c527a31 | 14198 | stage1_checking=--enable-checking=yes,types |
14a1406e | 14199 | else |
1b410bcf | 14200 | stage1_checking=--enable-checking=$enable_checking,types |
14a1406e | 14201 | fi |
efd58f08 | 14202 | fi |
14a1406e PB |
14203 | |
14204 | ||
b58b6ee1 | 14205 | |
efd58f08 RW |
14206 | # Enable -Werror in bootstrap stage2 and later. |
14207 | # Check whether --enable-werror was given. | |
14208 | if test "${enable_werror+set}" = set; then : | |
14209 | enableval=$enable_werror; | |
457eaf16 | 14210 | else |
e6659c00 | 14211 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
457eaf16 | 14212 | enable_werror=yes |
48edcc3f PB |
14213 | else |
14214 | enable_werror=no | |
14215 | fi | |
efd58f08 RW |
14216 | fi |
14217 | ||
f06f3d7c NN |
14218 | case ${enable_werror} in |
14219 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14220 | *) stage2_werror_flag="" ;; | |
457eaf16 NN |
14221 | esac |
14222 | ||
14223 | ||
121f0eb2 RW |
14224 | # Specify what files to not compare during bootstrap. |
14225 | ||
14226 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14227 | case "$target" in | |
14228 | hppa*64*-*-hpux*) ;; | |
14229 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
14230 | esac | |
14231 | ||
14232 | ||
efd58f08 RW |
14233 | ac_config_files="$ac_config_files Makefile" |
14234 | ||
b58b6ee1 | 14235 | cat >confcache <<\_ACEOF |
bafecfd6 NN |
14236 | # This file is a shell script that caches the results of configure |
14237 | # tests run on this system so they can be shared between configure | |
b58b6ee1 DJ |
14238 | # scripts and configure runs, see configure's option --config-cache. |
14239 | # It is not useful on other systems. If it contains results you don't | |
14240 | # want to keep, you may remove or edit it. | |
bafecfd6 | 14241 | # |
b58b6ee1 DJ |
14242 | # config.status only pays attention to the cache file if you give it |
14243 | # the --recheck option to rerun configure. | |
bafecfd6 | 14244 | # |
b58b6ee1 DJ |
14245 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14246 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14247 | # following values. | |
14248 | ||
14249 | _ACEOF | |
14250 | ||
bafecfd6 NN |
14251 | # The following way of writing the cache mishandles newlines in values, |
14252 | # but we know of no workaround that is simple, portable, and efficient. | |
efd58f08 | 14253 | # So, we kill variables containing newlines. |
bafecfd6 NN |
14254 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14255 | # and sets the high bit in the cache file unless we assign to the vars. | |
efd58f08 RW |
14256 | ( |
14257 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14258 | eval ac_val=\$$ac_var | |
14259 | case $ac_val in #( | |
14260 | *${as_nl}*) | |
14261 | case $ac_var in #( | |
14262 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14263 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14264 | esac | |
14265 | case $ac_var in #( | |
14266 | _ | IFS | as_nl) ;; #( | |
14267 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14268 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14269 | esac ;; | |
14270 | esac | |
14271 | done | |
14272 | ||
b58b6ee1 | 14273 | (set) 2>&1 | |
efd58f08 RW |
14274 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14275 | *${as_nl}ac_space=\ *) | |
14276 | # `set' does not quote correctly, so add quotes: double-quote | |
14277 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b58b6ee1 DJ |
14278 | sed -n \ |
14279 | "s/'/'\\\\''/g; | |
14280 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
efd58f08 | 14281 | ;; #( |
b58b6ee1 DJ |
14282 | *) |
14283 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
efd58f08 | 14284 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b58b6ee1 | 14285 | ;; |
efd58f08 RW |
14286 | esac | |
14287 | sort | |
14288 | ) | | |
b58b6ee1 | 14289 | sed ' |
efd58f08 | 14290 | /^ac_cv_env_/b end |
b58b6ee1 | 14291 | t clear |
efd58f08 | 14292 | :clear |
b58b6ee1 DJ |
14293 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14294 | t end | |
efd58f08 RW |
14295 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14296 | :end' >>confcache | |
14297 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14298 | if test -w "$cache_file"; then | |
14299 | test "x$cache_file" != "x/dev/null" && | |
14300 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14301 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
b58b6ee1 | 14302 | cat confcache >$cache_file |
bafecfd6 | 14303 | else |
efd58f08 RW |
14304 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14305 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
bafecfd6 | 14306 | fi |
712e2a32 | 14307 | fi |
bafecfd6 | 14308 | rm -f confcache |
712e2a32 | 14309 | |
bafecfd6 NN |
14310 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14311 | # Let make expand exec_prefix. | |
14312 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
712e2a32 | 14313 | |
bafecfd6 NN |
14314 | # Transform confdefs.h into DEFS. |
14315 | # Protect against shell expansion while executing Makefile rules. | |
14316 | # Protect against Makefile macro expansion. | |
b58b6ee1 DJ |
14317 | # |
14318 | # If the first sed substitution is executed (which looks for macros that | |
efd58f08 | 14319 | # take arguments), then branch to the quote section. Otherwise, |
b58b6ee1 | 14320 | # look for a macro that doesn't take arguments. |
efd58f08 RW |
14321 | ac_script=' |
14322 | :mline | |
14323 | /\\$/{ | |
14324 | N | |
14325 | s,\\\n,, | |
14326 | b mline | |
14327 | } | |
b58b6ee1 | 14328 | t clear |
efd58f08 RW |
14329 | :clear |
14330 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
b58b6ee1 | 14331 | t quote |
efd58f08 | 14332 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
b58b6ee1 | 14333 | t quote |
efd58f08 RW |
14334 | b any |
14335 | :quote | |
14336 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14337 | s/\[/\\&/g | |
14338 | s/\]/\\&/g | |
14339 | s/\$/$$/g | |
14340 | H | |
14341 | :any | |
14342 | ${ | |
14343 | g | |
14344 | s/^\n// | |
14345 | s/\n/ /g | |
14346 | p | |
14347 | } | |
14348 | ' | |
14349 | DEFS=`sed -n "$ac_script" confdefs.h` | |
b58b6ee1 DJ |
14350 | |
14351 | ||
14352 | ac_libobjs= | |
14353 | ac_ltlibobjs= | |
14354 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14355 | # 1. Remove the extension, and $U if already installed. | |
efd58f08 RW |
14356 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14357 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14358 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14359 | # will be set to the directory where LIBOBJS objects are built. | |
14360 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14361 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b58b6ee1 DJ |
14362 | done |
14363 | LIBOBJS=$ac_libobjs | |
712e2a32 | 14364 | |
b58b6ee1 | 14365 | LTLIBOBJS=$ac_ltlibobjs |
76402c80 | 14366 | |
f69e2532 | 14367 | |
b58b6ee1 DJ |
14368 | |
14369 | : ${CONFIG_STATUS=./config.status} | |
efd58f08 | 14370 | ac_write_fail=0 |
b58b6ee1 DJ |
14371 | ac_clean_files_save=$ac_clean_files |
14372 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
efd58f08 RW |
14373 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14374 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14375 | as_write_fail=0 | |
14376 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b58b6ee1 DJ |
14377 | #! $SHELL |
14378 | # Generated by $as_me. | |
bafecfd6 | 14379 | # Run this file to recreate the current configuration. |
bafecfd6 | 14380 | # Compiler output produced by configure, useful for debugging |
b58b6ee1 | 14381 | # configure, is in config.log if it exists. |
76402c80 | 14382 | |
b58b6ee1 DJ |
14383 | debug=false |
14384 | ac_cs_recheck=false | |
14385 | ac_cs_silent=false | |
b58b6ee1 | 14386 | |
efd58f08 RW |
14387 | SHELL=\${CONFIG_SHELL-$SHELL} |
14388 | export SHELL | |
14389 | _ASEOF | |
14390 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14391 | ## -------------------- ## | |
14392 | ## M4sh Initialization. ## | |
14393 | ## -------------------- ## | |
14394 | ||
14395 | # Be more Bourne compatible | |
14396 | DUALCASE=1; export DUALCASE # for MKS sh | |
14397 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b58b6ee1 DJ |
14398 | emulate sh |
14399 | NULLCMD=: | |
efd58f08 | 14400 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b58b6ee1 DJ |
14401 | # is contrary to our usage. Disable this feature. |
14402 | alias -g '${1+"$@"}'='"$@"' | |
efd58f08 RW |
14403 | setopt NO_GLOB_SUBST |
14404 | else | |
14405 | case `(set -o) 2>/dev/null` in #( | |
14406 | *posix*) : | |
14407 | set -o posix ;; #( | |
14408 | *) : | |
14409 | ;; | |
14410 | esac | |
b58b6ee1 | 14411 | fi |
b58b6ee1 | 14412 | |
efd58f08 RW |
14413 | |
14414 | as_nl=' | |
14415 | ' | |
14416 | export as_nl | |
14417 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14418 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14419 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14420 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14421 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14422 | # but without wasting forks for bash or zsh. | |
14423 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14424 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14425 | as_echo='print -r --' | |
14426 | as_echo_n='print -rn --' | |
14427 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14428 | as_echo='printf %s\n' | |
14429 | as_echo_n='printf %s' | |
14430 | else | |
14431 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14432 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14433 | as_echo_n='/usr/ucb/echo -n' | |
14434 | else | |
14435 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14436 | as_echo_n_body='eval | |
14437 | arg=$1; | |
14438 | case $arg in #( | |
14439 | *"$as_nl"*) | |
14440 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14441 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14442 | esac; | |
14443 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14444 | ' | |
14445 | export as_echo_n_body | |
14446 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14447 | fi | |
14448 | export as_echo_body | |
14449 | as_echo='sh -c $as_echo_body as_echo' | |
b58b6ee1 DJ |
14450 | fi |
14451 | ||
efd58f08 RW |
14452 | # The user is always right. |
14453 | if test "${PATH_SEPARATOR+set}" != set; then | |
14454 | PATH_SEPARATOR=: | |
14455 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14456 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14457 | PATH_SEPARATOR=';' | |
14458 | } | |
14459 | fi | |
14460 | ||
14461 | ||
14462 | # IFS | |
14463 | # We need space, tab and new line, in precisely that order. Quoting is | |
14464 | # there to prevent editors from complaining about space-tab. | |
14465 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14466 | # splitting by setting IFS to empty value.) | |
14467 | IFS=" "" $as_nl" | |
14468 | ||
14469 | # Find who we are. Look in the path if we contain no directory separator. | |
14470 | case $0 in #(( | |
14471 | *[\\/]* ) as_myself=$0 ;; | |
14472 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14473 | for as_dir in $PATH | |
14474 | do | |
14475 | IFS=$as_save_IFS | |
14476 | test -z "$as_dir" && as_dir=. | |
14477 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14478 | done | |
14479 | IFS=$as_save_IFS | |
14480 | ||
14481 | ;; | |
14482 | esac | |
14483 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14484 | # in which case we are not to be found in the path. | |
14485 | if test "x$as_myself" = x; then | |
14486 | as_myself=$0 | |
14487 | fi | |
14488 | if test ! -f "$as_myself"; then | |
14489 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14490 | exit 1 | |
14491 | fi | |
b58b6ee1 | 14492 | |
efd58f08 RW |
14493 | # Unset variables that we do not need and which cause bugs (e.g. in |
14494 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14495 | # suppresses any "Segmentation fault" message there. '((' could | |
14496 | # trigger a bug in pdksh 5.2.14. | |
14497 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14498 | do eval test x\${$as_var+set} = xset \ | |
14499 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14500 | done | |
b58b6ee1 DJ |
14501 | PS1='$ ' |
14502 | PS2='> ' | |
14503 | PS4='+ ' | |
14504 | ||
14505 | # NLS nuisances. | |
efd58f08 RW |
14506 | LC_ALL=C |
14507 | export LC_ALL | |
14508 | LANGUAGE=C | |
14509 | export LANGUAGE | |
14510 | ||
14511 | # CDPATH. | |
14512 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14513 | ||
14514 | ||
14515 | # as_fn_error ERROR [LINENO LOG_FD] | |
14516 | # --------------------------------- | |
14517 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14518 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14519 | # script with status $?, using 1 if that was 0. | |
14520 | as_fn_error () | |
14521 | { | |
14522 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14523 | if test "$3"; then | |
14524 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14525 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
b58b6ee1 | 14526 | fi |
efd58f08 RW |
14527 | $as_echo "$as_me: error: $1" >&2 |
14528 | as_fn_exit $as_status | |
14529 | } # as_fn_error | |
14530 | ||
14531 | ||
14532 | # as_fn_set_status STATUS | |
14533 | # ----------------------- | |
14534 | # Set $? to STATUS, without forking. | |
14535 | as_fn_set_status () | |
14536 | { | |
14537 | return $1 | |
14538 | } # as_fn_set_status | |
14539 | ||
14540 | # as_fn_exit STATUS | |
14541 | # ----------------- | |
14542 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14543 | as_fn_exit () | |
14544 | { | |
14545 | set +e | |
14546 | as_fn_set_status $1 | |
14547 | exit $1 | |
14548 | } # as_fn_exit | |
14549 | ||
14550 | # as_fn_unset VAR | |
14551 | # --------------- | |
14552 | # Portably unset VAR. | |
14553 | as_fn_unset () | |
14554 | { | |
14555 | { eval $1=; unset $1;} | |
14556 | } | |
14557 | as_unset=as_fn_unset | |
14558 | # as_fn_append VAR VALUE | |
14559 | # ---------------------- | |
14560 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14561 | # advantage of any shell optimizations that allow amortized linear growth over | |
14562 | # repeated appends, instead of the typical quadratic growth present in naive | |
14563 | # implementations. | |
14564 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14565 | eval 'as_fn_append () | |
14566 | { | |
14567 | eval $1+=\$2 | |
14568 | }' | |
14569 | else | |
14570 | as_fn_append () | |
14571 | { | |
14572 | eval $1=\$$1\$2 | |
14573 | } | |
14574 | fi # as_fn_append | |
14575 | ||
14576 | # as_fn_arith ARG... | |
14577 | # ------------------ | |
14578 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14579 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14580 | # must be portable across $(()) and expr. | |
14581 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14582 | eval 'as_fn_arith () | |
14583 | { | |
14584 | as_val=$(( $* )) | |
14585 | }' | |
14586 | else | |
14587 | as_fn_arith () | |
14588 | { | |
14589 | as_val=`expr "$@" || test $? -eq 1` | |
14590 | } | |
14591 | fi # as_fn_arith | |
14592 | ||
b58b6ee1 | 14593 | |
efd58f08 RW |
14594 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14595 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b58b6ee1 DJ |
14596 | as_expr=expr |
14597 | else | |
14598 | as_expr=false | |
14599 | fi | |
14600 | ||
efd58f08 | 14601 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b58b6ee1 DJ |
14602 | as_basename=basename |
14603 | else | |
14604 | as_basename=false | |
14605 | fi | |
14606 | ||
efd58f08 RW |
14607 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14608 | as_dirname=dirname | |
14609 | else | |
14610 | as_dirname=false | |
14611 | fi | |
b58b6ee1 | 14612 | |
efd58f08 | 14613 | as_me=`$as_basename -- "$0" || |
b58b6ee1 DJ |
14614 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14615 | X"$0" : 'X\(//\)$' \| \ | |
efd58f08 RW |
14616 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14617 | $as_echo X/"$0" | | |
14618 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14619 | s//\1/ | |
14620 | q | |
14621 | } | |
14622 | /^X\/\(\/\/\)$/{ | |
14623 | s//\1/ | |
14624 | q | |
14625 | } | |
14626 | /^X\/\(\/\).*/{ | |
14627 | s//\1/ | |
14628 | q | |
14629 | } | |
14630 | s/.*/./; q'` | |
b58b6ee1 | 14631 | |
b58b6ee1 DJ |
14632 | # Avoid depending upon Character Ranges. |
14633 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14634 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14635 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14636 | as_cr_digits='0123456789' | |
14637 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14638 | ||
efd58f08 RW |
14639 | ECHO_C= ECHO_N= ECHO_T= |
14640 | case `echo -n x` in #((((( | |
14641 | -n*) | |
14642 | case `echo 'xy\c'` in | |
14643 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14644 | xy) ECHO_C='\c';; | |
14645 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14646 | ECHO_T=' ';; | |
14647 | esac;; | |
14648 | *) | |
14649 | ECHO_N='-n';; | |
b58b6ee1 DJ |
14650 | esac |
14651 | ||
efd58f08 RW |
14652 | rm -f conf$$ conf$$.exe conf$$.file |
14653 | if test -d conf$$.dir; then | |
14654 | rm -f conf$$.dir/conf$$.file | |
b58b6ee1 | 14655 | else |
efd58f08 RW |
14656 | rm -f conf$$.dir |
14657 | mkdir conf$$.dir 2>/dev/null | |
b58b6ee1 | 14658 | fi |
efd58f08 RW |
14659 | if (echo >conf$$.file) 2>/dev/null; then |
14660 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b58b6ee1 | 14661 | as_ln_s='ln -s' |
efd58f08 RW |
14662 | # ... but there are two gotchas: |
14663 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14664 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14665 | # In both cases, we have to default to `cp -p'. | |
14666 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
14667 | as_ln_s='cp -p' | |
14668 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14669 | as_ln_s=ln | |
14670 | else | |
14671 | as_ln_s='cp -p' | |
b58b6ee1 | 14672 | fi |
b58b6ee1 DJ |
14673 | else |
14674 | as_ln_s='cp -p' | |
14675 | fi | |
efd58f08 RW |
14676 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14677 | rmdir conf$$.dir 2>/dev/null | |
14678 | ||
14679 | ||
14680 | # as_fn_mkdir_p | |
14681 | # ------------- | |
14682 | # Create "$as_dir" as a directory, including parents if necessary. | |
14683 | as_fn_mkdir_p () | |
14684 | { | |
14685 | ||
14686 | case $as_dir in #( | |
14687 | -*) as_dir=./$as_dir;; | |
14688 | esac | |
14689 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14690 | as_dirs= | |
14691 | while :; do | |
14692 | case $as_dir in #( | |
14693 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14694 | *) as_qdir=$as_dir;; | |
14695 | esac | |
14696 | as_dirs="'$as_qdir' $as_dirs" | |
14697 | as_dir=`$as_dirname -- "$as_dir" || | |
14698 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14699 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14700 | X"$as_dir" : 'X\(//\)$' \| \ | |
14701 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14702 | $as_echo X"$as_dir" | | |
14703 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14704 | s//\1/ | |
14705 | q | |
14706 | } | |
14707 | /^X\(\/\/\)[^/].*/{ | |
14708 | s//\1/ | |
14709 | q | |
14710 | } | |
14711 | /^X\(\/\/\)$/{ | |
14712 | s//\1/ | |
14713 | q | |
14714 | } | |
14715 | /^X\(\/\).*/{ | |
14716 | s//\1/ | |
14717 | q | |
14718 | } | |
14719 | s/.*/./; q'` | |
14720 | test -d "$as_dir" && break | |
14721 | done | |
14722 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14723 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
14724 | ||
b58b6ee1 | 14725 | |
efd58f08 | 14726 | } # as_fn_mkdir_p |
b58b6ee1 | 14727 | if mkdir -p . 2>/dev/null; then |
efd58f08 | 14728 | as_mkdir_p='mkdir -p "$as_dir"' |
b58b6ee1 DJ |
14729 | else |
14730 | test -d ./-p && rmdir ./-p | |
14731 | as_mkdir_p=false | |
14732 | fi | |
14733 | ||
efd58f08 RW |
14734 | if test -x / >/dev/null 2>&1; then |
14735 | as_test_x='test -x' | |
14736 | else | |
14737 | if ls -dL / >/dev/null 2>&1; then | |
14738 | as_ls_L_option=L | |
14739 | else | |
14740 | as_ls_L_option= | |
14741 | fi | |
14742 | as_test_x=' | |
14743 | eval sh -c '\'' | |
14744 | if test -d "$1"; then | |
14745 | test -d "$1/."; | |
14746 | else | |
14747 | case $1 in #( | |
14748 | -*)set "./$1";; | |
14749 | esac; | |
14750 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
14751 | ???[sx]*):;;*)false;;esac;fi | |
14752 | '\'' sh | |
14753 | ' | |
14754 | fi | |
14755 | as_executable_p=$as_test_x | |
b58b6ee1 DJ |
14756 | |
14757 | # Sed expression to map a string onto a valid CPP name. | |
14758 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14759 | ||
14760 | # Sed expression to map a string onto a valid variable name. | |
14761 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14762 | ||
14763 | ||
b58b6ee1 | 14764 | exec 6>&1 |
efd58f08 RW |
14765 | ## ----------------------------------- ## |
14766 | ## Main body of $CONFIG_STATUS script. ## | |
14767 | ## ----------------------------------- ## | |
14768 | _ASEOF | |
14769 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
14770 | ||
14771 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14772 | # Save the log message, to keep $0 and so on meaningful, and to | |
b58b6ee1 | 14773 | # report actual input values of CONFIG_FILES etc. instead of their |
efd58f08 RW |
14774 | # values after options handling. |
14775 | ac_log=" | |
b58b6ee1 | 14776 | This file was extended by $as_me, which was |
efd58f08 | 14777 | generated by GNU Autoconf 2.64. Invocation command line was |
b58b6ee1 DJ |
14778 | |
14779 | CONFIG_FILES = $CONFIG_FILES | |
14780 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14781 | CONFIG_LINKS = $CONFIG_LINKS | |
14782 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14783 | $ $0 $@ | |
14784 | ||
efd58f08 RW |
14785 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14786 | " | |
14787 | ||
b58b6ee1 DJ |
14788 | _ACEOF |
14789 | ||
efd58f08 RW |
14790 | case $ac_config_files in *" |
14791 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14792 | esac | |
b58b6ee1 | 14793 | |
b58b6ee1 | 14794 | |
b58b6ee1 | 14795 | |
efd58f08 RW |
14796 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14797 | # Files that config.status was made for. | |
14798 | config_files="$ac_config_files" | |
b58b6ee1 | 14799 | |
efd58f08 | 14800 | _ACEOF |
b58b6ee1 | 14801 | |
efd58f08 | 14802 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b58b6ee1 | 14803 | ac_cs_usage="\ |
efd58f08 RW |
14804 | \`$as_me' instantiates files and other configuration actions |
14805 | from templates according to the current configuration. Unless the files | |
14806 | and actions are specified as TAGs, all are instantiated by default. | |
b58b6ee1 | 14807 | |
efd58f08 | 14808 | Usage: $0 [OPTION]... [TAG]... |
b58b6ee1 DJ |
14809 | |
14810 | -h, --help print this help, then exit | |
efd58f08 RW |
14811 | -V, --version print version number and configuration settings, then exit |
14812 | -q, --quiet, --silent | |
14813 | do not print progress messages | |
b58b6ee1 DJ |
14814 | -d, --debug don't remove temporary files |
14815 | --recheck update $as_me by reconfiguring in the same conditions | |
efd58f08 RW |
14816 | --file=FILE[:TEMPLATE] |
14817 | instantiate the configuration file FILE | |
b58b6ee1 DJ |
14818 | |
14819 | Configuration files: | |
14820 | $config_files | |
14821 | ||
efd58f08 | 14822 | Report bugs to the package provider." |
b58b6ee1 | 14823 | |
efd58f08 RW |
14824 | _ACEOF |
14825 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b58b6ee1 DJ |
14826 | ac_cs_version="\\ |
14827 | config.status | |
efd58f08 RW |
14828 | configured by $0, generated by GNU Autoconf 2.64, |
14829 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
b58b6ee1 | 14830 | |
efd58f08 | 14831 | Copyright (C) 2009 Free Software Foundation, Inc. |
b58b6ee1 DJ |
14832 | This config.status script is free software; the Free Software Foundation |
14833 | gives unlimited permission to copy, distribute and modify it." | |
efd58f08 RW |
14834 | |
14835 | ac_pwd='$ac_pwd' | |
14836 | srcdir='$srcdir' | |
14837 | INSTALL='$INSTALL' | |
a8a01987 | 14838 | AWK='$AWK' |
efd58f08 | 14839 | test -n "\$AWK" || AWK=awk |
b58b6ee1 DJ |
14840 | _ACEOF |
14841 | ||
efd58f08 RW |
14842 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14843 | # The default lists apply if the user does not specify any file. | |
b58b6ee1 DJ |
14844 | ac_need_defaults=: |
14845 | while test $# != 0 | |
bafecfd6 | 14846 | do |
b58b6ee1 DJ |
14847 | case $1 in |
14848 | --*=*) | |
efd58f08 RW |
14849 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14850 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b58b6ee1 DJ |
14851 | ac_shift=: |
14852 | ;; | |
efd58f08 | 14853 | *) |
b58b6ee1 DJ |
14854 | ac_option=$1 |
14855 | ac_optarg=$2 | |
14856 | ac_shift=shift | |
14857 | ;; | |
b58b6ee1 DJ |
14858 | esac |
14859 | ||
14860 | case $ac_option in | |
14861 | # Handling of the options. | |
bafecfd6 | 14862 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
b58b6ee1 | 14863 | ac_cs_recheck=: ;; |
efd58f08 RW |
14864 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
14865 | $as_echo "$ac_cs_version"; exit ;; | |
14866 | --debug | --debu | --deb | --de | --d | -d ) | |
b58b6ee1 DJ |
14867 | debug=: ;; |
14868 | --file | --fil | --fi | --f ) | |
14869 | $ac_shift | |
efd58f08 RW |
14870 | case $ac_optarg in |
14871 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14872 | esac | |
14873 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
b58b6ee1 | 14874 | ac_need_defaults=false;; |
efd58f08 RW |
14875 | --he | --h | --help | --hel | -h ) |
14876 | $as_echo "$ac_cs_usage"; exit ;; | |
b58b6ee1 DJ |
14877 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14878 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14879 | ac_cs_silent=: ;; | |
14880 | ||
14881 | # This is an error. | |
efd58f08 RW |
14882 | -*) as_fn_error "unrecognized option: \`$1' |
14883 | Try \`$0 --help' for more information." ;; | |
b58b6ee1 | 14884 | |
efd58f08 RW |
14885 | *) as_fn_append ac_config_targets " $1" |
14886 | ac_need_defaults=false ;; | |
b58b6ee1 | 14887 | |
76402c80 | 14888 | esac |
b58b6ee1 | 14889 | shift |
76402c80 CM |
14890 | done |
14891 | ||
b58b6ee1 | 14892 | ac_configure_extra_args= |
76402c80 | 14893 | |
b58b6ee1 DJ |
14894 | if $ac_cs_silent; then |
14895 | exec 6>/dev/null | |
14896 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14897 | fi | |
76402c80 | 14898 | |
b58b6ee1 | 14899 | _ACEOF |
efd58f08 | 14900 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b58b6ee1 | 14901 | if \$ac_cs_recheck; then |
efd58f08 RW |
14902 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
14903 | shift | |
14904 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14905 | CONFIG_SHELL='$SHELL' | |
14906 | export CONFIG_SHELL | |
14907 | exec "\$@" | |
b58b6ee1 DJ |
14908 | fi |
14909 | ||
14910 | _ACEOF | |
efd58f08 RW |
14911 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14912 | exec 5>>config.log | |
14913 | { | |
14914 | echo | |
14915 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14916 | ## Running $as_me. ## | |
14917 | _ASBOX | |
14918 | $as_echo "$ac_log" | |
14919 | } >&5 | |
b58b6ee1 | 14920 | |
efd58f08 RW |
14921 | _ACEOF |
14922 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
94f4a7b9 RW |
14923 | # |
14924 | # INIT-COMMANDS | |
14925 | # | |
14926 | extrasub_build="$extrasub_build" | |
14927 | extrasub_host="$extrasub_host" | |
14928 | extrasub_target="$extrasub_target" | |
14929 | ||
efd58f08 | 14930 | _ACEOF |
b58b6ee1 | 14931 | |
efd58f08 | 14932 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b58b6ee1 | 14933 | |
efd58f08 | 14934 | # Handling of arguments. |
b58b6ee1 DJ |
14935 | for ac_config_target in $ac_config_targets |
14936 | do | |
efd58f08 RW |
14937 | case $ac_config_target in |
14938 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
14939 | ||
14940 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
b58b6ee1 DJ |
14941 | esac |
14942 | done | |
14943 | ||
efd58f08 | 14944 | |
b58b6ee1 DJ |
14945 | # If the user did not use the arguments to specify the items to instantiate, |
14946 | # then the envvar interface is used. Set only those that are not. | |
14947 | # We use the long form for the default assignment because of an extremely | |
14948 | # bizarre bug on SunOS 4.1.3. | |
14949 | if $ac_need_defaults; then | |
14950 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14951 | fi | |
14952 | ||
14953 | # Have a temporary directory for convenience. Make it in the build tree | |
efd58f08 | 14954 | # simply because there is no reason against having it here, and in addition, |
b58b6ee1 | 14955 | # creating and moving files from /tmp can sometimes cause problems. |
efd58f08 RW |
14956 | # Hook for its removal unless debugging. |
14957 | # Note that there is a small window in which the directory will not be cleaned: | |
14958 | # after its creation but before its name has been assigned to `$tmp'. | |
b58b6ee1 DJ |
14959 | $debug || |
14960 | { | |
efd58f08 RW |
14961 | tmp= |
14962 | trap 'exit_status=$? | |
14963 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
14964 | ' 0 | |
14965 | trap 'as_fn_exit 1' 1 2 13 15 | |
b58b6ee1 | 14966 | } |
b58b6ee1 DJ |
14967 | # Create a (secure) tmp directory for tmp files. |
14968 | ||
14969 | { | |
efd58f08 | 14970 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b58b6ee1 DJ |
14971 | test -n "$tmp" && test -d "$tmp" |
14972 | } || | |
14973 | { | |
efd58f08 RW |
14974 | tmp=./conf$$-$RANDOM |
14975 | (umask 077 && mkdir "$tmp") | |
14976 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
14977 | ||
14978 | # Set up the scripts for CONFIG_FILES section. | |
14979 | # No need to generate them if there are no CONFIG_FILES. | |
14980 | # This happens for instance with `./config.status config.h'. | |
14981 | if test -n "$CONFIG_FILES"; then | |
14982 | ||
14983 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
14984 | ac_cs_awk_getline=: | |
14985 | ac_cs_awk_pipe_init= | |
14986 | ac_cs_awk_read_file=' | |
14987 | while ((getline aline < (F[key])) > 0) | |
14988 | print(aline) | |
14989 | close(F[key])' | |
14990 | ac_cs_awk_pipe_fini= | |
14991 | else | |
14992 | ac_cs_awk_getline=false | |
14993 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
14994 | ac_cs_awk_read_file=' | |
14995 | print "|#_!!_#|" | |
14996 | print "cat " F[key] " &&" | |
14997 | '$ac_cs_awk_pipe_init | |
14998 | # The final `:' finishes the AND list. | |
14999 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15000 | fi | |
15001 | ac_cr=`echo X | tr X '\015'` | |
15002 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15003 | # But we know of no other shell where ac_cr would be empty at this | |
15004 | # point, so we can use a bashism as a fallback. | |
15005 | if test "x$ac_cr" = x; then | |
15006 | eval ac_cr=\$\'\\r\' | |
15007 | fi | |
15008 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15009 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15010 | ac_cs_awk_cr='\r' | |
15011 | else | |
15012 | ac_cs_awk_cr=$ac_cr | |
15013 | fi | |
15014 | ||
15015 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15016 | _ACEOF | |
15017 | ||
15018 | # Create commands to substitute file output variables. | |
b58b6ee1 | 15019 | { |
efd58f08 RW |
15020 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
15021 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
15022 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
15023 | echo "_ACAWK" && | |
15024 | echo "_ACEOF" | |
15025 | } >conf$$files.sh && | |
15026 | . ./conf$$files.sh || | |
15027 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15028 | rm -f conf$$files.sh | |
b58b6ee1 | 15029 | |
efd58f08 RW |
15030 | { |
15031 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15032 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15033 | echo "_ACEOF" | |
15034 | } >conf$$subs.sh || | |
15035 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15036 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15037 | ac_delim='%!_!# ' | |
15038 | for ac_last_try in false false false false false :; do | |
15039 | . ./conf$$subs.sh || | |
15040 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15041 | ||
15042 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15043 | if test $ac_delim_n = $ac_delim_num; then | |
15044 | break | |
15045 | elif $ac_last_try; then | |
15046 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15047 | else | |
15048 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15049 | fi | |
15050 | done | |
15051 | rm -f conf$$subs.sh | |
15052 | ||
15053 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15054 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
b58b6ee1 | 15055 | _ACEOF |
efd58f08 RW |
15056 | sed -n ' |
15057 | h | |
15058 | s/^/S["/; s/!.*/"]=/ | |
15059 | p | |
15060 | g | |
15061 | s/^[^!]*!// | |
15062 | :repl | |
15063 | t repl | |
15064 | s/'"$ac_delim"'$// | |
15065 | t delim | |
15066 | :nl | |
15067 | h | |
15068 | s/\(.\{148\}\).*/\1/ | |
15069 | t more1 | |
15070 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15071 | p | |
15072 | n | |
15073 | b repl | |
15074 | :more1 | |
15075 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15076 | p | |
15077 | g | |
15078 | s/.\{148\}// | |
15079 | t nl | |
15080 | :delim | |
15081 | h | |
15082 | s/\(.\{148\}\).*/\1/ | |
15083 | t more2 | |
15084 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15085 | p | |
15086 | b | |
15087 | :more2 | |
15088 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15089 | p | |
15090 | g | |
15091 | s/.\{148\}// | |
15092 | t delim | |
15093 | ' <conf$$subs.awk | sed ' | |
15094 | /^[^""]/{ | |
15095 | N | |
15096 | s/\n// | |
15097 | } | |
15098 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15099 | rm -f conf$$subs.awk | |
15100 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15101 | _ACAWK | |
15102 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15103 | for (key in S) S_is_set[key] = 1 | |
15104 | FS = "\a" | |
15105 | \$ac_cs_awk_pipe_init | |
15106 | } | |
15107 | { | |
15108 | line = $ 0 | |
15109 | nfields = split(line, field, "@") | |
15110 | substed = 0 | |
15111 | len = length(field[1]) | |
15112 | for (i = 2; i < nfields; i++) { | |
15113 | key = field[i] | |
15114 | keylen = length(key) | |
15115 | if (S_is_set[key]) { | |
15116 | value = S[key] | |
15117 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15118 | len += length(value) + length(field[++i]) | |
15119 | substed = 1 | |
15120 | } else | |
15121 | len += 1 + keylen | |
15122 | } | |
15123 | if (nfields == 3 && !substed) { | |
15124 | key = field[2] | |
15125 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15126 | \$ac_cs_awk_read_file | |
15127 | next | |
15128 | } | |
15129 | } | |
15130 | print line | |
15131 | } | |
15132 | \$ac_cs_awk_pipe_fini | |
15133 | _ACAWK | |
15134 | _ACEOF | |
15135 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15136 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15137 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15138 | else | |
15139 | cat | |
15140 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15141 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15142 | _ACEOF | |
15143 | ||
15144 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15145 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15146 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15147 | # (actually we leave an empty line to preserve line numbers). | |
15148 | if test "x$srcdir" = x.; then | |
15149 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15150 | s/:*\$(srcdir):*/:/ | |
15151 | s/:*\${srcdir}:*/:/ | |
15152 | s/:*@srcdir@:*/:/ | |
15153 | s/^\([^=]*=[ ]*\):*/\1/ | |
15154 | s/:*$// | |
15155 | s/^[^=]*=[ ]*$// | |
15156 | }' | |
15157 | fi | |
b58b6ee1 | 15158 | |
efd58f08 RW |
15159 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15160 | fi # test -n "$CONFIG_FILES" | |
b58b6ee1 | 15161 | |
b58b6ee1 | 15162 | |
efd58f08 RW |
15163 | eval set X " :F $CONFIG_FILES " |
15164 | shift | |
15165 | for ac_tag | |
15166 | do | |
15167 | case $ac_tag in | |
15168 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15169 | esac | |
15170 | case $ac_mode$ac_tag in | |
15171 | :[FHL]*:*);; | |
15172 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15173 | :[FH]-) ac_tag=-:-;; | |
15174 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15175 | esac | |
15176 | ac_save_IFS=$IFS | |
15177 | IFS=: | |
15178 | set x $ac_tag | |
15179 | IFS=$ac_save_IFS | |
15180 | shift | |
15181 | ac_file=$1 | |
15182 | shift | |
a3acbf46 | 15183 | |
efd58f08 RW |
15184 | case $ac_mode in |
15185 | :L) ac_source=$1;; | |
15186 | :[FH]) | |
15187 | ac_file_inputs= | |
15188 | for ac_f | |
15189 | do | |
15190 | case $ac_f in | |
15191 | -) ac_f="$tmp/stdin";; | |
15192 | *) # Look for the file first in the build tree, then in the source tree | |
15193 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15194 | # because $ac_f cannot contain `:'. | |
15195 | test -f "$ac_f" || | |
15196 | case $ac_f in | |
15197 | [\\/$]*) false;; | |
15198 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15199 | esac || | |
15200 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15201 | esac | |
15202 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15203 | as_fn_append ac_file_inputs " '$ac_f'" | |
15204 | done | |
b58b6ee1 | 15205 | |
efd58f08 RW |
15206 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15207 | # use $as_me), people would be surprised to read: | |
15208 | # /* config.h. Generated by config.status. */ | |
15209 | configure_input='Generated from '` | |
15210 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15211 | `' by configure.' | |
15212 | if test x"$ac_file" != x-; then | |
15213 | configure_input="$ac_file. $configure_input" | |
15214 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15215 | $as_echo "$as_me: creating $ac_file" >&6;} | |
bafecfd6 | 15216 | fi |
efd58f08 RW |
15217 | # Neutralize special characters interpreted by sed in replacement strings. |
15218 | case $configure_input in #( | |
15219 | *\&* | *\|* | *\\* ) | |
15220 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15221 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15222 | *) ac_sed_conf_input=$configure_input;; | |
15223 | esac | |
f69e2532 | 15224 | |
efd58f08 RW |
15225 | case $ac_tag in |
15226 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15227 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15228 | esac | |
15229 | ;; | |
bafecfd6 | 15230 | esac |
a3acbf46 | 15231 | |
efd58f08 | 15232 | ac_dir=`$as_dirname -- "$ac_file" || |
b58b6ee1 DJ |
15233 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15234 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15235 | X"$ac_file" : 'X\(//\)$' \| \ | |
efd58f08 RW |
15236 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15237 | $as_echo X"$ac_file" | | |
15238 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15239 | s//\1/ | |
15240 | q | |
15241 | } | |
15242 | /^X\(\/\/\)[^/].*/{ | |
15243 | s//\1/ | |
15244 | q | |
15245 | } | |
15246 | /^X\(\/\/\)$/{ | |
15247 | s//\1/ | |
15248 | q | |
15249 | } | |
15250 | /^X\(\/\).*/{ | |
15251 | s//\1/ | |
15252 | q | |
15253 | } | |
15254 | s/.*/./; q'` | |
15255 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b58b6ee1 | 15256 | ac_builddir=. |
a3acbf46 | 15257 | |
efd58f08 RW |
15258 | case "$ac_dir" in |
15259 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15260 | *) | |
15261 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15262 | # A ".." for each directory in $ac_dir_suffix. | |
15263 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15264 | case $ac_top_builddir_sub in | |
15265 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15266 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15267 | esac ;; | |
15268 | esac | |
15269 | ac_abs_top_builddir=$ac_pwd | |
15270 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15271 | # for backward compatibility: | |
15272 | ac_top_builddir=$ac_top_build_prefix | |
b58b6ee1 DJ |
15273 | |
15274 | case $srcdir in | |
efd58f08 | 15275 | .) # We are building in place. |
b58b6ee1 | 15276 | ac_srcdir=. |
efd58f08 RW |
15277 | ac_top_srcdir=$ac_top_builddir_sub |
15278 | ac_abs_top_srcdir=$ac_pwd ;; | |
15279 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b58b6ee1 | 15280 | ac_srcdir=$srcdir$ac_dir_suffix; |
efd58f08 RW |
15281 | ac_top_srcdir=$srcdir |
15282 | ac_abs_top_srcdir=$srcdir ;; | |
15283 | *) # Relative name. | |
15284 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15285 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15286 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b58b6ee1 | 15287 | esac |
efd58f08 | 15288 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a3acbf46 | 15289 | |
a3acbf46 | 15290 | |
efd58f08 RW |
15291 | case $ac_mode in |
15292 | :F) | |
15293 | # | |
15294 | # CONFIG_FILE | |
15295 | # | |
b58b6ee1 DJ |
15296 | |
15297 | case $INSTALL in | |
15298 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
efd58f08 | 15299 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bafecfd6 | 15300 | esac |
efd58f08 | 15301 | _ACEOF |
a3acbf46 | 15302 | |
efd58f08 RW |
15303 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15304 | # If the template does not know about datarootdir, expand it. | |
15305 | # FIXME: This hack should be removed a few years after 2.60. | |
15306 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15307 | ac_sed_dataroot=' | |
15308 | /datarootdir/ { | |
15309 | p | |
15310 | q | |
15311 | } | |
15312 | /@datadir@/p | |
15313 | /@docdir@/p | |
15314 | /@infodir@/p | |
15315 | /@localedir@/p | |
15316 | /@mandir@/p' | |
15317 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15318 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15319 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15320 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15321 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
b58b6ee1 | 15322 | _ACEOF |
efd58f08 RW |
15323 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15324 | ac_datarootdir_hack=' | |
15325 | s&@datadir@&$datadir&g | |
15326 | s&@docdir@&$docdir&g | |
15327 | s&@infodir@&$infodir&g | |
15328 | s&@localedir@&$localedir&g | |
15329 | s&@mandir@&$mandir&g | |
15330 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15331 | esac | |
15332 | _ACEOF | |
15333 | ||
15334 | # Neutralize VPATH when `$srcdir' = `.'. | |
15335 | # Shell code in configure.ac might set extrasub. | |
15336 | # FIXME: do we really want to maintain this feature? | |
15337 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15338 | ac_sed_extra="$ac_vpsub | |
b58b6ee1 DJ |
15339 | $extrasub |
15340 | _ACEOF | |
efd58f08 | 15341 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b58b6ee1 DJ |
15342 | :t |
15343 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
efd58f08 RW |
15344 | s|@configure_input@|$ac_sed_conf_input|;t t |
15345 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15346 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15347 | s&@srcdir@&$ac_srcdir&;t t | |
15348 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15349 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15350 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15351 | s&@builddir@&$ac_builddir&;t t | |
15352 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15353 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15354 | s&@INSTALL@&$ac_INSTALL&;t t | |
15355 | $ac_datarootdir_hack | |
15356 | " | |
15357 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15358 | if $ac_cs_awk_getline; then | |
15359 | $AWK -f "$tmp/subs.awk" | |
15360 | else | |
15361 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15362 | fi >$tmp/out \ | |
15363 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15364 | ||
15365 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15366 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15367 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15368 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15369 | which seems to be undefined. Please make sure it is defined." >&5 | |
15370 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15371 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15372 | ||
15373 | rm -f "$tmp/stdin" | |
15374 | case $ac_file in | |
15375 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
15376 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15377 | esac \ | |
15378 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15379 | ;; | |
9f35b464 | 15380 | |
9f35b464 | 15381 | |
9f35b464 | 15382 | |
efd58f08 RW |
15383 | esac |
15384 | ||
94f4a7b9 RW |
15385 | |
15386 | case $ac_file$ac_mode in | |
15387 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15388 | sed "$extrasub_host" | | |
15389 | sed "$extrasub_target" > mf$$ | |
15390 | mv -f mf$$ Makefile ;; | |
15391 | ||
15392 | esac | |
efd58f08 RW |
15393 | done # for ac_tag |
15394 | ||
15395 | ||
15396 | as_fn_exit 0 | |
b58b6ee1 | 15397 | _ACEOF |
b58b6ee1 DJ |
15398 | ac_clean_files=$ac_clean_files_save |
15399 | ||
efd58f08 RW |
15400 | test $ac_write_fail = 0 || |
15401 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15402 | ||
b58b6ee1 DJ |
15403 | |
15404 | # configure is writing to config.log, and then calls config.status. | |
15405 | # config.status does its own redirection, appending to config.log. | |
15406 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15407 | # by configure, so config.status won't be able to write to it; its | |
15408 | # output is simply discarded. So we exec the FD to /dev/null, | |
15409 | # effectively closing config.log, so it can be properly (re)opened and | |
15410 | # appended to by config.status. When coming back to configure, we | |
15411 | # need to make the FD available again. | |
15412 | if test "$no_create" != yes; then | |
15413 | ac_cs_success=: | |
15414 | ac_config_status_args= | |
15415 | test "$silent" = yes && | |
15416 | ac_config_status_args="$ac_config_status_args --quiet" | |
15417 | exec 5>/dev/null | |
15418 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15419 | exec 5>>config.log | |
15420 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15421 | # would make configure fail if this is the last instruction. | |
efd58f08 RW |
15422 | $ac_cs_success || as_fn_exit $? |
15423 | fi | |
15424 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15425 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15426 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
b58b6ee1 | 15427 | fi |
9f35b464 | 15428 |