]>
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 | |
afa221db | 559 | host_shared |
efd58f08 RW |
560 | stage2_werror_flag |
561 | stage1_checking | |
562 | stage1_cflags | |
563 | MAINT | |
564 | MAINTAINER_MODE_FALSE | |
565 | MAINTAINER_MODE_TRUE | |
566 | COMPILER_NM_FOR_TARGET | |
567 | COMPILER_LD_FOR_TARGET | |
568 | COMPILER_AS_FOR_TARGET | |
569 | FLAGS_FOR_TARGET | |
570 | RAW_CXX_FOR_TARGET | |
571 | WINDMC_FOR_TARGET | |
572 | WINDRES_FOR_TARGET | |
573 | STRIP_FOR_TARGET | |
46e7439b | 574 | READELF_FOR_TARGET |
efd58f08 RW |
575 | RANLIB_FOR_TARGET |
576 | OBJDUMP_FOR_TARGET | |
fe508576 | 577 | OBJCOPY_FOR_TARGET |
efd58f08 RW |
578 | NM_FOR_TARGET |
579 | LIPO_FOR_TARGET | |
580 | LD_FOR_TARGET | |
581 | DLLTOOL_FOR_TARGET | |
582 | AS_FOR_TARGET | |
583 | AR_FOR_TARGET | |
d5b7129a | 584 | GOC_FOR_TARGET |
efd58f08 RW |
585 | GFORTRAN_FOR_TARGET |
586 | GCJ_FOR_TARGET | |
587 | GCC_FOR_TARGET | |
588 | CXX_FOR_TARGET | |
589 | CC_FOR_TARGET | |
46e7439b | 590 | READELF |
efd58f08 RW |
591 | OBJDUMP |
592 | OBJCOPY | |
593 | WINDMC | |
594 | WINDRES | |
595 | STRIP | |
596 | RANLIB | |
597 | NM | |
598 | LIPO | |
599 | LD | |
600 | DLLTOOL | |
601 | AS | |
602 | AR | |
603 | RUNTEST | |
604 | EXPECT | |
605 | MAKEINFO | |
606 | FLEX | |
607 | LEX | |
608 | M4 | |
609 | BISON | |
610 | YACC | |
efd58f08 RW |
611 | WINDRES_FOR_BUILD |
612 | WINDMC_FOR_BUILD | |
613 | RANLIB_FOR_BUILD | |
614 | NM_FOR_BUILD | |
615 | LD_FOR_BUILD | |
616 | LDFLAGS_FOR_BUILD | |
d5b7129a | 617 | GOC_FOR_BUILD |
efd58f08 RW |
618 | GFORTRAN_FOR_BUILD |
619 | GCJ_FOR_BUILD | |
620 | DLLTOOL_FOR_BUILD | |
621 | CXX_FOR_BUILD | |
622 | CXXFLAGS_FOR_BUILD | |
623 | CFLAGS_FOR_BUILD | |
624 | CC_FOR_BUILD | |
625 | AS_FOR_BUILD | |
626 | AR_FOR_BUILD | |
e894eef9 | 627 | target_configdirs |
efd58f08 | 628 | configdirs |
efd58f08 | 629 | build_configdirs |
efd58f08 RW |
630 | INSTALL_GDB_TK |
631 | GDB_TK | |
632 | CONFIGURE_GDB_TK | |
633 | build_tooldir | |
634 | tooldir | |
635 | GCC_SHLIB_SUBDIR | |
636 | RPATH_ENVVAR | |
1d694d8e RW |
637 | target_configargs |
638 | host_configargs | |
639 | build_configargs | |
55662058 | 640 | BUILD_CONFIG |
2e7bf520 | 641 | LDFLAGS_FOR_TARGET |
efd58f08 RW |
642 | CXXFLAGS_FOR_TARGET |
643 | CFLAGS_FOR_TARGET | |
644 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
645 | SYSROOT_CFLAGS_FOR_TARGET | |
fe508576 | 646 | extra_host_zlib_configure_flags |
bd45d6fa | 647 | extra_host_libiberty_configure_flags |
fe508576 CV |
648 | stage1_languages |
649 | extra_linker_plugin_flags | |
650 | extra_linker_plugin_configure_flags | |
a626f4ee | 651 | islinc |
fe508576 CV |
652 | isllibs |
653 | islver | |
efd58f08 | 654 | poststage1_ldflags |
f107c370 | 655 | poststage1_libs |
efd58f08 | 656 | stage1_ldflags |
e8853092 | 657 | stage1_libs |
a626f4ee | 658 | extra_isl_gmp_configure_flags |
efd58f08 RW |
659 | extra_mpc_mpfr_configure_flags |
660 | extra_mpc_gmp_configure_flags | |
661 | extra_mpfr_configure_flags | |
662 | gmpinc | |
663 | gmplibs | |
664 | do_compare | |
665 | GNATMAKE | |
666 | GNATBIND | |
667 | ac_ct_CXX | |
668 | CXXFLAGS | |
669 | CXX | |
670 | OBJEXT | |
671 | EXEEXT | |
672 | ac_ct_CC | |
673 | CPPFLAGS | |
674 | LDFLAGS | |
675 | CFLAGS | |
676 | CC | |
c9161585 | 677 | EXTRA_CONFIGARGS_LIBJAVA |
fe508576 | 678 | extra_liboffloadmic_configure_flags |
efd58f08 RW |
679 | target_subdir |
680 | host_subdir | |
681 | build_subdir | |
682 | build_libsubdir | |
a8a01987 PB |
683 | AWK |
684 | SED | |
efd58f08 RW |
685 | LN_S |
686 | LN | |
687 | INSTALL_DATA | |
688 | INSTALL_SCRIPT | |
689 | INSTALL_PROGRAM | |
690 | target_os | |
691 | target_vendor | |
692 | target_cpu | |
693 | target | |
694 | host_os | |
695 | host_vendor | |
696 | host_cpu | |
697 | host | |
698 | target_noncanonical | |
699 | host_noncanonical | |
700 | build_noncanonical | |
701 | build_os | |
702 | build_vendor | |
703 | build_cpu | |
704 | build | |
705 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
706 | target_alias | |
707 | host_alias | |
708 | build_alias | |
709 | LIBS | |
710 | ECHO_T | |
711 | ECHO_N | |
712 | ECHO_C | |
713 | DEFS | |
714 | mandir | |
715 | localedir | |
716 | libdir | |
717 | psdir | |
718 | pdfdir | |
719 | dvidir | |
720 | htmldir | |
721 | infodir | |
722 | docdir | |
723 | oldincludedir | |
724 | includedir | |
725 | localstatedir | |
726 | sharedstatedir | |
727 | sysconfdir | |
728 | datadir | |
729 | datarootdir | |
730 | libexecdir | |
731 | sbindir | |
732 | bindir | |
733 | program_transform_name | |
734 | prefix | |
735 | exec_prefix | |
736 | PACKAGE_URL | |
737 | PACKAGE_BUGREPORT | |
738 | PACKAGE_STRING | |
739 | PACKAGE_VERSION | |
740 | PACKAGE_TARNAME | |
741 | PACKAGE_NAME | |
742 | PATH_SEPARATOR | |
743 | SHELL' | |
744 | ac_subst_files='serialization_dependencies | |
745 | host_makefile_frag | |
746 | target_makefile_frag | |
747 | alphaieee_frag | |
748 | ospace_frag' | |
749 | ac_user_opts=' | |
750 | enable_option_checking | |
751 | with_build_libsubdir | |
fe508576 CV |
752 | with_system_zlib |
753 | enable_as_accelerator_for | |
754 | enable_offload_targets | |
efd58f08 | 755 | enable_gold |
679e4c82 | 756 | enable_ld |
fe508576 | 757 | enable_compressed_debug_sections |
d4b54911 PB |
758 | enable_libquadmath |
759 | enable_libquadmath_support | |
efd58f08 RW |
760 | enable_libada |
761 | enable_libssp | |
5ec30f78 | 762 | enable_libstdcxx |
fe508576 | 763 | enable_liboffloadmic |
c9161585 ILT |
764 | enable_static_libjava |
765 | enable_bootstrap | |
efd58f08 RW |
766 | with_mpc |
767 | with_mpc_include | |
768 | with_mpc_lib | |
769 | with_mpfr_dir | |
770 | with_mpfr | |
771 | with_mpfr_include | |
772 | with_mpfr_lib | |
773 | with_gmp_dir | |
774 | with_gmp | |
775 | with_gmp_include | |
776 | with_gmp_lib | |
efd58f08 | 777 | with_stage1_libs |
e8853092 | 778 | with_stage1_ldflags |
efd58f08 | 779 | with_boot_libs |
f107c370 | 780 | with_boot_ldflags |
a626f4ee L |
781 | with_isl |
782 | with_isl_include | |
783 | with_isl_lib | |
784 | enable_isl_version_check | |
bd45d6fa | 785 | enable_lto |
fe508576 CV |
786 | enable_linker_plugin_configure_flags |
787 | enable_linker_plugin_flags | |
efd58f08 RW |
788 | enable_stage1_languages |
789 | enable_objc_gc | |
790 | with_build_sysroot | |
791 | with_debug_prefix_map | |
55662058 | 792 | with_build_config |
fe508576 | 793 | enable_vtable_verify |
efd58f08 RW |
794 | enable_serial_configure |
795 | with_build_time_tools | |
796 | enable_maintainer_mode | |
797 | enable_stage1_checking | |
798 | enable_werror | |
afa221db | 799 | enable_host_shared |
efd58f08 RW |
800 | ' |
801 | ac_precious_vars='build_alias | |
802 | host_alias | |
803 | target_alias | |
804 | CC | |
805 | CFLAGS | |
806 | LDFLAGS | |
807 | LIBS | |
808 | CPPFLAGS | |
809 | CXX | |
810 | CXXFLAGS | |
811 | CCC | |
1d694d8e RW |
812 | build_configargs |
813 | host_configargs | |
814 | target_configargs | |
efd58f08 RW |
815 | AR |
816 | AS | |
817 | DLLTOOL | |
818 | LD | |
819 | LIPO | |
820 | NM | |
821 | RANLIB | |
822 | STRIP | |
823 | WINDRES | |
824 | WINDMC | |
825 | OBJCOPY | |
826 | OBJDUMP | |
46e7439b | 827 | READELF |
efd58f08 RW |
828 | CC_FOR_TARGET |
829 | CXX_FOR_TARGET | |
830 | GCC_FOR_TARGET | |
831 | GCJ_FOR_TARGET | |
832 | GFORTRAN_FOR_TARGET | |
d5b7129a | 833 | GOC_FOR_TARGET |
efd58f08 RW |
834 | AR_FOR_TARGET |
835 | AS_FOR_TARGET | |
836 | DLLTOOL_FOR_TARGET | |
837 | LD_FOR_TARGET | |
838 | LIPO_FOR_TARGET | |
839 | NM_FOR_TARGET | |
fe508576 | 840 | OBJCOPY_FOR_TARGET |
efd58f08 RW |
841 | OBJDUMP_FOR_TARGET |
842 | RANLIB_FOR_TARGET | |
46e7439b | 843 | READELF_FOR_TARGET |
efd58f08 RW |
844 | STRIP_FOR_TARGET |
845 | WINDRES_FOR_TARGET | |
846 | WINDMC_FOR_TARGET' | |
847 | ||
bafecfd6 NN |
848 | |
849 | # Initialize some variables set by options. | |
b58b6ee1 DJ |
850 | ac_init_help= |
851 | ac_init_version=false | |
efd58f08 RW |
852 | ac_unrecognized_opts= |
853 | ac_unrecognized_sep= | |
bafecfd6 NN |
854 | # The variables have the same names as the options, with |
855 | # dashes changed to underlines. | |
b58b6ee1 | 856 | cache_file=/dev/null |
bafecfd6 | 857 | exec_prefix=NONE |
bafecfd6 | 858 | no_create= |
bafecfd6 NN |
859 | no_recursion= |
860 | prefix=NONE | |
861 | program_prefix=NONE | |
862 | program_suffix=NONE | |
863 | program_transform_name=s,x,x, | |
864 | silent= | |
865 | site= | |
866 | srcdir= | |
bafecfd6 NN |
867 | verbose= |
868 | x_includes=NONE | |
869 | x_libraries=NONE | |
b58b6ee1 DJ |
870 | |
871 | # Installation directory options. | |
872 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
873 | # and all the variables that are supposed to be based on exec_prefix | |
874 | # by default will actually change. | |
875 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
efd58f08 | 876 | # (The list follows the same order as the GNU Coding Standards.) |
bafecfd6 NN |
877 | bindir='${exec_prefix}/bin' |
878 | sbindir='${exec_prefix}/sbin' | |
879 | libexecdir='${exec_prefix}/libexec' | |
efd58f08 RW |
880 | datarootdir='${prefix}/share' |
881 | datadir='${datarootdir}' | |
bafecfd6 NN |
882 | sysconfdir='${prefix}/etc' |
883 | sharedstatedir='${prefix}/com' | |
884 | localstatedir='${prefix}/var' | |
bafecfd6 NN |
885 | includedir='${prefix}/include' |
886 | oldincludedir='/usr/include' | |
efd58f08 RW |
887 | docdir='${datarootdir}/doc/${PACKAGE}' |
888 | infodir='${datarootdir}/info' | |
889 | htmldir='${docdir}' | |
890 | dvidir='${docdir}' | |
891 | pdfdir='${docdir}' | |
892 | psdir='${docdir}' | |
893 | libdir='${exec_prefix}/lib' | |
894 | localedir='${datarootdir}/locale' | |
895 | mandir='${datarootdir}/man' | |
a3acbf46 | 896 | |
bafecfd6 | 897 | ac_prev= |
efd58f08 | 898 | ac_dashdash= |
bafecfd6 NN |
899 | for ac_option |
900 | do | |
bafecfd6 NN |
901 | # If the previous option needs an argument, assign it. |
902 | if test -n "$ac_prev"; then | |
efd58f08 | 903 | eval $ac_prev=\$ac_option |
bafecfd6 NN |
904 | ac_prev= |
905 | continue | |
906 | fi | |
a3acbf46 | 907 | |
efd58f08 RW |
908 | case $ac_option in |
909 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
910 | *) ac_optarg=yes ;; | |
911 | esac | |
bafecfd6 NN |
912 | |
913 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
914 | ||
efd58f08 RW |
915 | case $ac_dashdash$ac_option in |
916 | --) | |
917 | ac_dashdash=yes ;; | |
bafecfd6 NN |
918 | |
919 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
920 | ac_prev=bindir ;; | |
921 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b58b6ee1 | 922 | bindir=$ac_optarg ;; |
bafecfd6 NN |
923 | |
924 | -build | --build | --buil | --bui | --bu) | |
b58b6ee1 | 925 | ac_prev=build_alias ;; |
bafecfd6 | 926 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b58b6ee1 | 927 | build_alias=$ac_optarg ;; |
bafecfd6 NN |
928 | |
929 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
930 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
931 | ac_prev=cache_file ;; | |
932 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
933 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b58b6ee1 DJ |
934 | cache_file=$ac_optarg ;; |
935 | ||
936 | --config-cache | -C) | |
937 | cache_file=config.cache ;; | |
bafecfd6 | 938 | |
efd58f08 | 939 | -datadir | --datadir | --datadi | --datad) |
bafecfd6 | 940 | ac_prev=datadir ;; |
efd58f08 | 941 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b58b6ee1 | 942 | datadir=$ac_optarg ;; |
bafecfd6 | 943 | |
efd58f08 RW |
944 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
945 | | --dataroo | --dataro | --datar) | |
946 | ac_prev=datarootdir ;; | |
947 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
948 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
949 | datarootdir=$ac_optarg ;; | |
950 | ||
bafecfd6 | 951 | -disable-* | --disable-*) |
efd58f08 | 952 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bafecfd6 | 953 | # Reject names that are not valid shell variable names. |
efd58f08 RW |
954 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
955 | as_fn_error "invalid feature name: $ac_useropt" | |
956 | ac_useropt_orig=$ac_useropt | |
957 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
958 | case $ac_user_opts in | |
959 | *" | |
960 | "enable_$ac_useropt" | |
961 | "*) ;; | |
962 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
963 | ac_unrecognized_sep=', ';; | |
964 | esac | |
965 | eval enable_$ac_useropt=no ;; | |
966 | ||
967 | -docdir | --docdir | --docdi | --doc | --do) | |
968 | ac_prev=docdir ;; | |
969 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
970 | docdir=$ac_optarg ;; | |
971 | ||
972 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
973 | ac_prev=dvidir ;; | |
974 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
975 | dvidir=$ac_optarg ;; | |
bafecfd6 NN |
976 | |
977 | -enable-* | --enable-*) | |
efd58f08 | 978 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bafecfd6 | 979 | # Reject names that are not valid shell variable names. |
efd58f08 RW |
980 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
981 | as_fn_error "invalid feature name: $ac_useropt" | |
982 | ac_useropt_orig=$ac_useropt | |
983 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
984 | case $ac_user_opts in | |
985 | *" | |
986 | "enable_$ac_useropt" | |
987 | "*) ;; | |
988 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
989 | ac_unrecognized_sep=', ';; | |
bafecfd6 | 990 | esac |
efd58f08 | 991 | eval enable_$ac_useropt=\$ac_optarg ;; |
bafecfd6 NN |
992 | |
993 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
994 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
995 | | --exec | --exe | --ex) | |
996 | ac_prev=exec_prefix ;; | |
997 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
998 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
999 | | --exec=* | --exe=* | --ex=*) | |
b58b6ee1 | 1000 | exec_prefix=$ac_optarg ;; |
bafecfd6 NN |
1001 | |
1002 | -gas | --gas | --ga | --g) | |
1003 | # Obsolete; use --with-gas. | |
1004 | with_gas=yes ;; | |
1005 | ||
b58b6ee1 DJ |
1006 | -help | --help | --hel | --he | -h) |
1007 | ac_init_help=long ;; | |
1008 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1009 | ac_init_help=recursive ;; | |
1010 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1011 | ac_init_help=short ;; | |
bafecfd6 NN |
1012 | |
1013 | -host | --host | --hos | --ho) | |
b58b6ee1 | 1014 | ac_prev=host_alias ;; |
bafecfd6 | 1015 | -host=* | --host=* | --hos=* | --ho=*) |
b58b6ee1 | 1016 | host_alias=$ac_optarg ;; |
bafecfd6 | 1017 | |
efd58f08 RW |
1018 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1019 | ac_prev=htmldir ;; | |
1020 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1021 | | --ht=*) | |
1022 | htmldir=$ac_optarg ;; | |
1023 | ||
bafecfd6 NN |
1024 | -includedir | --includedir | --includedi | --included | --include \ |
1025 | | --includ | --inclu | --incl | --inc) | |
1026 | ac_prev=includedir ;; | |
1027 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1028 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b58b6ee1 | 1029 | includedir=$ac_optarg ;; |
bafecfd6 NN |
1030 | |
1031 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1032 | ac_prev=infodir ;; | |
1033 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b58b6ee1 | 1034 | infodir=$ac_optarg ;; |
bafecfd6 NN |
1035 | |
1036 | -libdir | --libdir | --libdi | --libd) | |
1037 | ac_prev=libdir ;; | |
1038 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b58b6ee1 | 1039 | libdir=$ac_optarg ;; |
bafecfd6 NN |
1040 | |
1041 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1042 | | --libexe | --libex | --libe) | |
1043 | ac_prev=libexecdir ;; | |
1044 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1045 | | --libexe=* | --libex=* | --libe=*) | |
b58b6ee1 | 1046 | libexecdir=$ac_optarg ;; |
bafecfd6 | 1047 | |
efd58f08 RW |
1048 | -localedir | --localedir | --localedi | --localed | --locale) |
1049 | ac_prev=localedir ;; | |
1050 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1051 | localedir=$ac_optarg ;; | |
1052 | ||
bafecfd6 | 1053 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
efd58f08 | 1054 | | --localstate | --localstat | --localsta | --localst | --locals) |
bafecfd6 NN |
1055 | ac_prev=localstatedir ;; |
1056 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
efd58f08 | 1057 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b58b6ee1 | 1058 | localstatedir=$ac_optarg ;; |
bafecfd6 NN |
1059 | |
1060 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1061 | ac_prev=mandir ;; | |
1062 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b58b6ee1 | 1063 | mandir=$ac_optarg ;; |
bafecfd6 NN |
1064 | |
1065 | -nfp | --nfp | --nf) | |
1066 | # Obsolete; use --without-fp. | |
1067 | with_fp=no ;; | |
1068 | ||
1069 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b58b6ee1 | 1070 | | --no-cr | --no-c | -n) |
bafecfd6 NN |
1071 | no_create=yes ;; |
1072 | ||
1073 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1074 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1075 | no_recursion=yes ;; | |
1076 | ||
1077 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1078 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1079 | | --oldin | --oldi | --old | --ol | --o) | |
1080 | ac_prev=oldincludedir ;; | |
1081 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1082 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1083 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b58b6ee1 | 1084 | oldincludedir=$ac_optarg ;; |
bafecfd6 NN |
1085 | |
1086 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1087 | ac_prev=prefix ;; | |
1088 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b58b6ee1 | 1089 | prefix=$ac_optarg ;; |
bafecfd6 NN |
1090 | |
1091 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1092 | | --program-pre | --program-pr | --program-p) | |
1093 | ac_prev=program_prefix ;; | |
1094 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1095 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b58b6ee1 | 1096 | program_prefix=$ac_optarg ;; |
bafecfd6 NN |
1097 | |
1098 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1099 | | --program-suf | --program-su | --program-s) | |
1100 | ac_prev=program_suffix ;; | |
1101 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1102 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b58b6ee1 | 1103 | program_suffix=$ac_optarg ;; |
bafecfd6 NN |
1104 | |
1105 | -program-transform-name | --program-transform-name \ | |
1106 | | --program-transform-nam | --program-transform-na \ | |
1107 | | --program-transform-n | --program-transform- \ | |
1108 | | --program-transform | --program-transfor \ | |
1109 | | --program-transfo | --program-transf \ | |
1110 | | --program-trans | --program-tran \ | |
1111 | | --progr-tra | --program-tr | --program-t) | |
1112 | ac_prev=program_transform_name ;; | |
1113 | -program-transform-name=* | --program-transform-name=* \ | |
1114 | | --program-transform-nam=* | --program-transform-na=* \ | |
1115 | | --program-transform-n=* | --program-transform-=* \ | |
1116 | | --program-transform=* | --program-transfor=* \ | |
1117 | | --program-transfo=* | --program-transf=* \ | |
1118 | | --program-trans=* | --program-tran=* \ | |
1119 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b58b6ee1 | 1120 | program_transform_name=$ac_optarg ;; |
bafecfd6 | 1121 | |
efd58f08 RW |
1122 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1123 | ac_prev=pdfdir ;; | |
1124 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1125 | pdfdir=$ac_optarg ;; | |
1126 | ||
1127 | -psdir | --psdir | --psdi | --psd | --ps) | |
1128 | ac_prev=psdir ;; | |
1129 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1130 | psdir=$ac_optarg ;; | |
1131 | ||
bafecfd6 NN |
1132 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1133 | | -silent | --silent | --silen | --sile | --sil) | |
1134 | silent=yes ;; | |
1135 | ||
1136 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1137 | ac_prev=sbindir ;; | |
1138 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1139 | | --sbi=* | --sb=*) | |
b58b6ee1 | 1140 | sbindir=$ac_optarg ;; |
bafecfd6 NN |
1141 | |
1142 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1143 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1144 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1145 | | --sha | --sh) | |
1146 | ac_prev=sharedstatedir ;; | |
1147 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1148 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1149 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1150 | | --sha=* | --sh=*) | |
b58b6ee1 | 1151 | sharedstatedir=$ac_optarg ;; |
bafecfd6 NN |
1152 | |
1153 | -site | --site | --sit) | |
1154 | ac_prev=site ;; | |
1155 | -site=* | --site=* | --sit=*) | |
b58b6ee1 | 1156 | site=$ac_optarg ;; |
bafecfd6 NN |
1157 | |
1158 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1159 | ac_prev=srcdir ;; | |
1160 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b58b6ee1 | 1161 | srcdir=$ac_optarg ;; |
bafecfd6 NN |
1162 | |
1163 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1164 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1165 | ac_prev=sysconfdir ;; | |
1166 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1167 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b58b6ee1 | 1168 | sysconfdir=$ac_optarg ;; |
bafecfd6 NN |
1169 | |
1170 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b58b6ee1 | 1171 | ac_prev=target_alias ;; |
bafecfd6 | 1172 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b58b6ee1 | 1173 | target_alias=$ac_optarg ;; |
bafecfd6 NN |
1174 | |
1175 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1176 | verbose=yes ;; | |
1177 | ||
b58b6ee1 DJ |
1178 | -version | --version | --versio | --versi | --vers | -V) |
1179 | ac_init_version=: ;; | |
bafecfd6 NN |
1180 | |
1181 | -with-* | --with-*) | |
efd58f08 | 1182 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bafecfd6 | 1183 | # Reject names that are not valid shell variable names. |
efd58f08 RW |
1184 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1185 | as_fn_error "invalid package name: $ac_useropt" | |
1186 | ac_useropt_orig=$ac_useropt | |
1187 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1188 | case $ac_user_opts in | |
1189 | *" | |
1190 | "with_$ac_useropt" | |
1191 | "*) ;; | |
1192 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1193 | ac_unrecognized_sep=', ';; | |
bafecfd6 | 1194 | esac |
efd58f08 | 1195 | eval with_$ac_useropt=\$ac_optarg ;; |
bafecfd6 NN |
1196 | |
1197 | -without-* | --without-*) | |
efd58f08 | 1198 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bafecfd6 | 1199 | # Reject names that are not valid shell variable names. |
efd58f08 RW |
1200 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1201 | as_fn_error "invalid package name: $ac_useropt" | |
1202 | ac_useropt_orig=$ac_useropt | |
1203 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1204 | case $ac_user_opts in | |
1205 | *" | |
1206 | "with_$ac_useropt" | |
1207 | "*) ;; | |
1208 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1209 | ac_unrecognized_sep=', ';; | |
1210 | esac | |
1211 | eval with_$ac_useropt=no ;; | |
bafecfd6 NN |
1212 | |
1213 | --x) | |
1214 | # Obsolete; use --with-x. | |
1215 | with_x=yes ;; | |
1216 | ||
1217 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1218 | | --x-incl | --x-inc | --x-in | --x-i) | |
1219 | ac_prev=x_includes ;; | |
1220 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1221 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b58b6ee1 | 1222 | x_includes=$ac_optarg ;; |
bafecfd6 NN |
1223 | |
1224 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1225 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1226 | ac_prev=x_libraries ;; | |
1227 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1228 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b58b6ee1 | 1229 | x_libraries=$ac_optarg ;; |
bafecfd6 | 1230 | |
efd58f08 RW |
1231 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1232 | Try \`$0 --help' for more information." | |
bafecfd6 NN |
1233 | ;; |
1234 | ||
b58b6ee1 DJ |
1235 | *=*) |
1236 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1237 | # Reject names that are not valid shell variable names. | |
efd58f08 RW |
1238 | case $ac_envvar in #( |
1239 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1240 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1241 | esac | |
1242 | eval $ac_envvar=\$ac_optarg | |
b58b6ee1 DJ |
1243 | export $ac_envvar ;; |
1244 | ||
bafecfd6 | 1245 | *) |
b58b6ee1 | 1246 | # FIXME: should be removed in autoconf 3.0. |
efd58f08 | 1247 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b58b6ee1 | 1248 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
efd58f08 | 1249 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b58b6ee1 | 1250 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
bafecfd6 NN |
1251 | ;; |
1252 | ||
1253 | esac | |
1254 | done | |
1255 | ||
1256 | if test -n "$ac_prev"; then | |
b58b6ee1 | 1257 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
efd58f08 | 1258 | as_fn_error "missing argument to $ac_option" |
bafecfd6 | 1259 | fi |
bafecfd6 | 1260 | |
efd58f08 RW |
1261 | if test -n "$ac_unrecognized_opts"; then |
1262 | case $enable_option_checking in | |
1263 | no) ;; | |
1264 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1265 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
b58b6ee1 | 1266 | esac |
efd58f08 | 1267 | fi |
bafecfd6 | 1268 | |
efd58f08 RW |
1269 | # Check all directory arguments for consistency. |
1270 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1271 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1272 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1273 | libdir localedir mandir | |
bafecfd6 | 1274 | do |
efd58f08 RW |
1275 | eval ac_val=\$$ac_var |
1276 | # Remove trailing slashes. | |
1277 | case $ac_val in | |
1278 | */ ) | |
1279 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1280 | eval $ac_var=\$ac_val;; | |
1281 | esac | |
1282 | # Be sure to have absolute directory names. | |
b58b6ee1 | 1283 | case $ac_val in |
efd58f08 RW |
1284 | [\\/$]* | ?:[\\/]* ) continue;; |
1285 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
bafecfd6 | 1286 | esac |
efd58f08 | 1287 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
bafecfd6 NN |
1288 | done |
1289 | ||
b58b6ee1 DJ |
1290 | # There might be people who depend on the old broken behavior: `$host' |
1291 | # used to hold the argument of --host etc. | |
1292 | # FIXME: To remove some day. | |
1293 | build=$build_alias | |
1294 | host=$host_alias | |
1295 | target=$target_alias | |
76402c80 | 1296 | |
b58b6ee1 DJ |
1297 | # FIXME: To remove some day. |
1298 | if test "x$host_alias" != x; then | |
1299 | if test "x$build_alias" = x; then | |
1300 | cross_compiling=maybe | |
efd58f08 | 1301 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
b58b6ee1 DJ |
1302 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1303 | elif test "x$build_alias" != "x$host_alias"; then | |
1304 | cross_compiling=yes | |
1305 | fi | |
1306 | fi | |
1307 | ||
1308 | ac_tool_prefix= | |
1309 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1310 | ||
1311 | test "$silent" = yes && exec 6>/dev/null | |
bafecfd6 | 1312 | |
bafecfd6 | 1313 | |
efd58f08 RW |
1314 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1315 | ac_ls_di=`ls -di .` && | |
1316 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1317 | as_fn_error "working directory cannot be determined" | |
1318 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1319 | as_fn_error "pwd does not report name of working directory" | |
1320 | ||
1321 | ||
bafecfd6 NN |
1322 | # Find the source files, if location was not specified. |
1323 | if test -z "$srcdir"; then | |
1324 | ac_srcdir_defaulted=yes | |
efd58f08 RW |
1325 | # Try the directory containing this script, then the parent directory. |
1326 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1327 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1328 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1329 | X"$as_myself" : 'X\(//\)$' \| \ | |
1330 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1331 | $as_echo X"$as_myself" | | |
1332 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1333 | s//\1/ | |
1334 | q | |
1335 | } | |
1336 | /^X\(\/\/\)[^/].*/{ | |
1337 | s//\1/ | |
1338 | q | |
1339 | } | |
1340 | /^X\(\/\/\)$/{ | |
1341 | s//\1/ | |
1342 | q | |
1343 | } | |
1344 | /^X\(\/\).*/{ | |
1345 | s//\1/ | |
1346 | q | |
1347 | } | |
1348 | s/.*/./; q'` | |
bafecfd6 | 1349 | srcdir=$ac_confdir |
efd58f08 | 1350 | if test ! -r "$srcdir/$ac_unique_file"; then |
bafecfd6 NN |
1351 | srcdir=.. |
1352 | fi | |
1353 | else | |
1354 | ac_srcdir_defaulted=no | |
1355 | fi | |
efd58f08 RW |
1356 | if test ! -r "$srcdir/$ac_unique_file"; then |
1357 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1358 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1359 | fi | |
1360 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1361 | ac_abs_confdir=`( | |
1362 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1363 | pwd)` | |
1364 | # When building in place, set srcdir=. | |
1365 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1366 | srcdir=. | |
1367 | fi | |
1368 | # Remove unnecessary trailing slashes from srcdir. | |
1369 | # Double slashes in file names in object file debugging info | |
1370 | # mess up M-x gdb in Emacs. | |
1371 | case $srcdir in | |
1372 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1373 | esac | |
c7fc8442 AM |
1374 | case $srcdir in |
1375 | *" "*) | |
1376 | as_fn_error "path to source, $srcdir, contains spaces" | |
1377 | ;; | |
1378 | esac | |
3fbb5e3d PB |
1379 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1380 | ||
efd58f08 RW |
1381 | for ac_var in $ac_precious_vars; do |
1382 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1383 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1384 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1385 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1386 | done | |
b58b6ee1 DJ |
1387 | |
1388 | # | |
1389 | # Report the --help message. | |
1390 | # | |
1391 | if test "$ac_init_help" = "long"; then | |
1392 | # Omit some internal or obsolete options to make the list less imposing. | |
1393 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1394 | cat <<_ACEOF | |
1395 | \`configure' configures this package to adapt to many kinds of systems. | |
1396 | ||
1397 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1398 | ||
1399 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1400 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1401 | ||
1402 | Defaults for the options are specified in brackets. | |
1403 | ||
1404 | Configuration: | |
1405 | -h, --help display this help and exit | |
1406 | --help=short display options specific to this package | |
1407 | --help=recursive display the short help of all the included packages | |
1408 | -V, --version display version information and exit | |
1409 | -q, --quiet, --silent do not print \`checking...' messages | |
1410 | --cache-file=FILE cache test results in FILE [disabled] | |
1411 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1412 | -n, --no-create do not create output files | |
1413 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1414 | ||
b58b6ee1 DJ |
1415 | Installation directories: |
1416 | --prefix=PREFIX install architecture-independent files in PREFIX | |
efd58f08 | 1417 | [$ac_default_prefix] |
b58b6ee1 | 1418 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
efd58f08 | 1419 | [PREFIX] |
b58b6ee1 DJ |
1420 | |
1421 | By default, \`make install' will install all the files in | |
1422 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1423 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1424 | for instance \`--prefix=\$HOME'. | |
1425 | ||
1426 | For better control, use the options below. | |
1427 | ||
1428 | Fine tuning of the installation directories: | |
efd58f08 RW |
1429 | --bindir=DIR user executables [EPREFIX/bin] |
1430 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1431 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1432 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1433 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1434 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1435 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1436 | --includedir=DIR C header files [PREFIX/include] | |
1437 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1438 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1439 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1440 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1441 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1442 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1443 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1444 | --htmldir=DIR html documentation [DOCDIR] | |
1445 | --dvidir=DIR dvi documentation [DOCDIR] | |
1446 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1447 | --psdir=DIR ps documentation [DOCDIR] | |
b58b6ee1 DJ |
1448 | _ACEOF |
1449 | ||
1450 | cat <<\_ACEOF | |
1451 | ||
1452 | Program names: | |
1453 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1454 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1455 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1456 | ||
1457 | System types: | |
1458 | --build=BUILD configure for building on BUILD [guessed] | |
1459 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1460 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1461 | _ACEOF | |
bafecfd6 | 1462 | fi |
bafecfd6 | 1463 | |
b58b6ee1 DJ |
1464 | if test -n "$ac_init_help"; then |
1465 | ||
1466 | cat <<\_ACEOF | |
1467 | ||
1468 | Optional Features: | |
efd58f08 | 1469 | --disable-option-checking ignore unrecognized --enable/--with options |
b58b6ee1 DJ |
1470 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1471 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
fe508576 CV |
1472 | --enable-as-accelerator-for=ARG |
1473 | build as offload target compiler. Specify offload | |
1474 | host triple by ARG | |
1475 | --enable-offload-targets=LIST | |
1476 | enable offloading to devices from comma-separated | |
1477 | LIST of TARGET[=DIR]. Use optional path to find | |
1478 | offload target compiler during the build | |
679e4c82 | 1479 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
5623c499 | 1480 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
fe508576 CV |
1481 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
1482 | Enable compressed debug sections for gas, gold or ld | |
1483 | by default | |
d4b54911 PB |
1484 | --disable-libquadmath do not build libquadmath directory |
1485 | --disable-libquadmath-support | |
1486 | disable libquadmath support for Fortran | |
b301596e DD |
1487 | --enable-libada build libada directory |
1488 | --enable-libssp build libssp directory | |
5ec30f78 | 1489 | --disable-libstdcxx do not build libstdc++-v3 directory |
fe508576 CV |
1490 | --enable-liboffloadmic=ARG |
1491 | build liboffloadmic [ARG={no,host,target}] | |
c9161585 ILT |
1492 | --enable-static-libjava[=ARG] |
1493 | build static libjava [default=no] | |
1494 | --enable-bootstrap enable bootstrapping [yes if native build] | |
a626f4ee | 1495 | --disable-isl-version-check |
fe508576 | 1496 | disable check for isl version |
bd45d6fa | 1497 | --enable-lto enable link time optimization support |
fe508576 CV |
1498 | --enable-linker-plugin-configure-flags=FLAGS |
1499 | additional flags for configuring linker plugins | |
1500 | [none] | |
1501 | --enable-linker-plugin-flags=FLAGS | |
1502 | additional flags for configuring and building linker | |
1503 | plugins [none] | |
5623c499 AS |
1504 | --enable-stage1-languages[=all] |
1505 | choose additional languages to build during stage1. | |
1506 | Mostly useful for compiler development | |
1507 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1508 | Objective-C runtime | |
fe508576 | 1509 | --enable-vtable-verify Enable vtable verification feature |
b301596e | 1510 | --enable-serial-[{host,target,build}-]configure |
5623c499 AS |
1511 | force sequential configuration of sub-packages for |
1512 | the host, target or build machine, or all | |
1513 | sub-packages | |
1514 | --enable-maintainer-mode | |
1515 | enable make rules and dependencies not useful (and | |
1516 | sometimes confusing) to the casual installer | |
1517 | --enable-stage1-checking[=all] | |
1518 | choose additional checking for stage1 of the | |
1519 | compiler | |
b58b6ee1 | 1520 | --enable-werror enable -Werror in bootstrap stage2 and later |
afa221db | 1521 | --enable-host-shared build host code as shared libraries |
b58b6ee1 DJ |
1522 | |
1523 | Optional Packages: | |
1524 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1525 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1526 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
fe508576 | 1527 | --with-system-zlib use installed libz |
5623c499 AS |
1528 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1529 | Equivalent to --with-mpc-include=PATH/include plus | |
1530 | --with-mpc-lib=PATH/lib | |
1531 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1532 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
b301596e DD |
1533 | --with-mpfr-dir=PATH this option has been REMOVED |
1534 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
5623c499 AS |
1535 | Equivalent to --with-mpfr-include=PATH/include plus |
1536 | --with-mpfr-lib=PATH/lib | |
b58b6ee1 | 1537 | --with-mpfr-include=PATH |
b301596e DD |
1538 | specify directory for installed MPFR include files |
1539 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1540 | --with-gmp-dir=PATH this option has been REMOVED | |
5623c499 AS |
1541 | --with-gmp=PATH specify prefix directory for the installed GMP |
1542 | package. Equivalent to | |
1543 | --with-gmp-include=PATH/include plus | |
1544 | --with-gmp-lib=PATH/lib | |
b301596e DD |
1545 | --with-gmp-include=PATH specify directory for installed GMP include files |
1546 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
e8853092 | 1547 | --with-stage1-libs=LIBS libraries for stage1 |
5623c499 AS |
1548 | --with-stage1-ldflags=FLAGS |
1549 | linker flags for stage1 | |
5623c499 AS |
1550 | --with-boot-libs=LIBS libraries for stage2 and later |
1551 | --with-boot-ldflags=FLAGS | |
1552 | linker flags for stage2 and later | |
fe508576 | 1553 | --with-isl=PATH Specify prefix directory for the installed isl |
5623c499 | 1554 | package. Equivalent to |
a626f4ee L |
1555 | --with-isl-include=PATH/include plus |
1556 | --with-isl-lib=PATH/lib | |
fe508576 CV |
1557 | --with-isl-include=PATH Specify directory for installed isl include files |
1558 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
b301596e | 1559 | --with-build-sysroot=SYSROOT |
b58b6ee1 | 1560 | use sysroot as the system root during the build |
fcc5fef0 | 1561 | --with-debug-prefix-map='A=B C=D ...' |
5623c499 AS |
1562 | map A to B, C to D ... in debug information |
1563 | --with-build-config='NAME NAME2...' | |
1564 | use config/NAME.mk build configuration | |
b301596e | 1565 | --with-build-time-tools=PATH |
b58b6ee1 | 1566 | use given path to find target tools during the build |
b58b6ee1 DJ |
1567 | |
1568 | Some influential environment variables: | |
1569 | CC C compiler command | |
1570 | CFLAGS C compiler flags | |
1571 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1572 | nonstandard directory <lib dir> | |
efd58f08 RW |
1573 | LIBS libraries to pass to the linker, e.g. -l<library> |
1574 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1575 | you have headers in a nonstandard directory <include dir> | |
b8c26111 PB |
1576 | CXX C++ compiler command |
1577 | CXXFLAGS C++ compiler flags | |
1d694d8e RW |
1578 | build_configargs |
1579 | additional configure arguments for build directories | |
1580 | host_configargs | |
1581 | additional configure arguments for host directories | |
1582 | target_configargs | |
1583 | additional configure arguments for target directories | |
82026593 AO |
1584 | AR AR for the host |
1585 | AS AS for the host | |
1586 | DLLTOOL DLLTOOL for the host | |
1587 | LD LD for the host | |
1588 | LIPO LIPO for the host | |
1589 | NM NM for the host | |
1590 | RANLIB RANLIB for the host | |
1591 | STRIP STRIP for the host | |
1592 | WINDRES WINDRES for the host | |
bffcbe34 | 1593 | WINDMC WINDMC for the host |
82026593 AO |
1594 | OBJCOPY OBJCOPY for the host |
1595 | OBJDUMP OBJDUMP for the host | |
46e7439b | 1596 | READELF READELF for the host |
82026593 AO |
1597 | CC_FOR_TARGET |
1598 | CC for the target | |
1599 | CXX_FOR_TARGET | |
1600 | CXX for the target | |
1601 | GCC_FOR_TARGET | |
1602 | GCC for the target | |
1603 | GCJ_FOR_TARGET | |
1604 | GCJ for the target | |
1605 | GFORTRAN_FOR_TARGET | |
1606 | GFORTRAN for the target | |
d5b7129a ILT |
1607 | GOC_FOR_TARGET |
1608 | GOC for the target | |
82026593 AO |
1609 | AR_FOR_TARGET |
1610 | AR for the target | |
1611 | AS_FOR_TARGET | |
1612 | AS for the target | |
1613 | DLLTOOL_FOR_TARGET | |
1614 | DLLTOOL for the target | |
1615 | LD_FOR_TARGET | |
1616 | LD for the target | |
1617 | LIPO_FOR_TARGET | |
1618 | LIPO for the target | |
1619 | NM_FOR_TARGET | |
1620 | NM for the target | |
fe508576 CV |
1621 | OBJCOPY_FOR_TARGET |
1622 | OBJCOPY for the target | |
82026593 AO |
1623 | OBJDUMP_FOR_TARGET |
1624 | OBJDUMP for the target | |
1625 | RANLIB_FOR_TARGET | |
1626 | RANLIB for the target | |
46e7439b DD |
1627 | READELF_FOR_TARGET |
1628 | READELF for the target | |
82026593 AO |
1629 | STRIP_FOR_TARGET |
1630 | STRIP for the target | |
1631 | WINDRES_FOR_TARGET | |
1632 | WINDRES for the target | |
bffcbe34 NC |
1633 | WINDMC_FOR_TARGET |
1634 | WINDMC for the target | |
b58b6ee1 DJ |
1635 | |
1636 | Use these variables to override the choices made by `configure' or to help | |
1637 | it to find libraries and programs with nonstandard names/locations. | |
1638 | ||
efd58f08 | 1639 | Report bugs to the package provider. |
b58b6ee1 | 1640 | _ACEOF |
efd58f08 | 1641 | ac_status=$? |
b58b6ee1 DJ |
1642 | fi |
1643 | ||
1644 | if test "$ac_init_help" = "recursive"; then | |
1645 | # If there are subdirs, report their specific --help. | |
b58b6ee1 | 1646 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
efd58f08 RW |
1647 | test -d "$ac_dir" || |
1648 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1649 | continue | |
b58b6ee1 DJ |
1650 | ac_builddir=. |
1651 | ||
efd58f08 RW |
1652 | case "$ac_dir" in |
1653 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1654 | *) | |
1655 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1656 | # A ".." for each directory in $ac_dir_suffix. | |
1657 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1658 | case $ac_top_builddir_sub in | |
1659 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1660 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1661 | esac ;; | |
1662 | esac | |
1663 | ac_abs_top_builddir=$ac_pwd | |
1664 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1665 | # for backward compatibility: | |
1666 | ac_top_builddir=$ac_top_build_prefix | |
b58b6ee1 DJ |
1667 | |
1668 | case $srcdir in | |
efd58f08 | 1669 | .) # We are building in place. |
b58b6ee1 | 1670 | ac_srcdir=. |
efd58f08 RW |
1671 | ac_top_srcdir=$ac_top_builddir_sub |
1672 | ac_abs_top_srcdir=$ac_pwd ;; | |
1673 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b58b6ee1 | 1674 | ac_srcdir=$srcdir$ac_dir_suffix; |
efd58f08 RW |
1675 | ac_top_srcdir=$srcdir |
1676 | ac_abs_top_srcdir=$srcdir ;; | |
1677 | *) # Relative name. | |
1678 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1679 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1680 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b58b6ee1 | 1681 | esac |
efd58f08 RW |
1682 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1683 | ||
1684 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1685 | # Check for guested configure. | |
1686 | if test -f "$ac_srcdir/configure.gnu"; then | |
1687 | echo && | |
1688 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1689 | elif test -f "$ac_srcdir/configure"; then | |
1690 | echo && | |
1691 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b58b6ee1 | 1692 | else |
efd58f08 RW |
1693 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1694 | fi || ac_status=$? | |
1695 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b58b6ee1 DJ |
1696 | done |
1697 | fi | |
1698 | ||
efd58f08 | 1699 | test -n "$ac_init_help" && exit $ac_status |
b58b6ee1 DJ |
1700 | if $ac_init_version; then |
1701 | cat <<\_ACEOF | |
efd58f08 RW |
1702 | configure |
1703 | generated by GNU Autoconf 2.64 | |
b58b6ee1 | 1704 | |
efd58f08 | 1705 | Copyright (C) 2009 Free Software Foundation, Inc. |
b58b6ee1 DJ |
1706 | This configure script is free software; the Free Software Foundation |
1707 | gives unlimited permission to copy, distribute and modify it. | |
1708 | _ACEOF | |
efd58f08 | 1709 | exit |
b58b6ee1 | 1710 | fi |
efd58f08 RW |
1711 | |
1712 | ## ------------------------ ## | |
1713 | ## Autoconf initialization. ## | |
1714 | ## ------------------------ ## | |
1715 | ||
1716 | # ac_fn_c_try_compile LINENO | |
1717 | # -------------------------- | |
1718 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1719 | ac_fn_c_try_compile () | |
1720 | { | |
1721 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1722 | rm -f conftest.$ac_objext | |
1723 | if { { ac_try="$ac_compile" | |
1724 | case "(($ac_try" in | |
1725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1726 | *) ac_try_echo=$ac_try;; | |
1727 | esac | |
1728 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1729 | $as_echo "$ac_try_echo"; } >&5 | |
1730 | (eval "$ac_compile") 2>conftest.err | |
1731 | ac_status=$? | |
1732 | if test -s conftest.err; then | |
1733 | grep -v '^ *+' conftest.err >conftest.er1 | |
1734 | cat conftest.er1 >&5 | |
1735 | mv -f conftest.er1 conftest.err | |
1736 | fi | |
1737 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1738 | test $ac_status = 0; } && { | |
1739 | test -z "$ac_c_werror_flag" || | |
1740 | test ! -s conftest.err | |
1741 | } && test -s conftest.$ac_objext; then : | |
1742 | ac_retval=0 | |
1743 | else | |
1744 | $as_echo "$as_me: failed program was:" >&5 | |
1745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1746 | ||
1747 | ac_retval=1 | |
1748 | fi | |
1749 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1750 | return $ac_retval | |
1751 | ||
1752 | } # ac_fn_c_try_compile | |
1753 | ||
1754 | # ac_fn_cxx_try_compile LINENO | |
1755 | # ---------------------------- | |
1756 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1757 | ac_fn_cxx_try_compile () | |
1758 | { | |
1759 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1760 | rm -f conftest.$ac_objext | |
1761 | if { { ac_try="$ac_compile" | |
1762 | case "(($ac_try" in | |
1763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1764 | *) ac_try_echo=$ac_try;; | |
1765 | esac | |
1766 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1767 | $as_echo "$ac_try_echo"; } >&5 | |
1768 | (eval "$ac_compile") 2>conftest.err | |
1769 | ac_status=$? | |
1770 | if test -s conftest.err; then | |
1771 | grep -v '^ *+' conftest.err >conftest.er1 | |
1772 | cat conftest.er1 >&5 | |
1773 | mv -f conftest.er1 conftest.err | |
1774 | fi | |
1775 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1776 | test $ac_status = 0; } && { | |
1777 | test -z "$ac_cxx_werror_flag" || | |
1778 | test ! -s conftest.err | |
1779 | } && test -s conftest.$ac_objext; then : | |
1780 | ac_retval=0 | |
1781 | else | |
1782 | $as_echo "$as_me: failed program was:" >&5 | |
1783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1784 | ||
1785 | ac_retval=1 | |
1786 | fi | |
1787 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1788 | return $ac_retval | |
1789 | ||
1790 | } # ac_fn_cxx_try_compile | |
1791 | ||
e8853092 EB |
1792 | # ac_fn_cxx_try_link LINENO |
1793 | # ------------------------- | |
1794 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1795 | ac_fn_cxx_try_link () | |
1796 | { | |
1797 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1798 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1799 | if { { ac_try="$ac_link" | |
1800 | case "(($ac_try" in | |
1801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1802 | *) ac_try_echo=$ac_try;; | |
1803 | esac | |
1804 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1805 | $as_echo "$ac_try_echo"; } >&5 | |
1806 | (eval "$ac_link") 2>conftest.err | |
1807 | ac_status=$? | |
1808 | if test -s conftest.err; then | |
1809 | grep -v '^ *+' conftest.err >conftest.er1 | |
1810 | cat conftest.er1 >&5 | |
1811 | mv -f conftest.er1 conftest.err | |
1812 | fi | |
1813 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1814 | test $ac_status = 0; } && { | |
1815 | test -z "$ac_cxx_werror_flag" || | |
1816 | test ! -s conftest.err | |
1817 | } && test -s conftest$ac_exeext && { | |
1818 | test "$cross_compiling" = yes || | |
1819 | $as_test_x conftest$ac_exeext | |
1820 | }; then : | |
1821 | ac_retval=0 | |
1822 | else | |
1823 | $as_echo "$as_me: failed program was:" >&5 | |
1824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1825 | ||
1826 | ac_retval=1 | |
1827 | fi | |
1828 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1829 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1830 | # interfere with the next link command; also delete a directory that is | |
1831 | # left behind by Apple's compiler. We do this before executing the actions. | |
1832 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1833 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1834 | return $ac_retval | |
1835 | ||
1836 | } # ac_fn_cxx_try_link | |
1837 | ||
efd58f08 RW |
1838 | # ac_fn_c_try_link LINENO |
1839 | # ----------------------- | |
1840 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1841 | ac_fn_c_try_link () | |
1842 | { | |
1843 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1845 | if { { ac_try="$ac_link" | |
1846 | case "(($ac_try" in | |
1847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1848 | *) ac_try_echo=$ac_try;; | |
1849 | esac | |
1850 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1851 | $as_echo "$ac_try_echo"; } >&5 | |
1852 | (eval "$ac_link") 2>conftest.err | |
1853 | ac_status=$? | |
1854 | if test -s conftest.err; then | |
1855 | grep -v '^ *+' conftest.err >conftest.er1 | |
1856 | cat conftest.er1 >&5 | |
1857 | mv -f conftest.er1 conftest.err | |
1858 | fi | |
1859 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1860 | test $ac_status = 0; } && { | |
1861 | test -z "$ac_c_werror_flag" || | |
1862 | test ! -s conftest.err | |
1863 | } && test -s conftest$ac_exeext && { | |
1864 | test "$cross_compiling" = yes || | |
1865 | $as_test_x conftest$ac_exeext | |
1866 | }; then : | |
1867 | ac_retval=0 | |
1868 | else | |
1869 | $as_echo "$as_me: failed program was:" >&5 | |
1870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1871 | ||
1872 | ac_retval=1 | |
1873 | fi | |
1874 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1875 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1876 | # interfere with the next link command; also delete a directory that is | |
1877 | # left behind by Apple's compiler. We do this before executing the actions. | |
1878 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1879 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1880 | return $ac_retval | |
1881 | ||
1882 | } # ac_fn_c_try_link | |
1883 | cat >config.log <<_ACEOF | |
b58b6ee1 DJ |
1884 | This file contains any messages produced by compilers while |
1885 | running configure, to aid debugging if configure makes a mistake. | |
1886 | ||
1887 | It was created by $as_me, which was | |
efd58f08 | 1888 | generated by GNU Autoconf 2.64. Invocation command line was |
b58b6ee1 DJ |
1889 | |
1890 | $ $0 $@ | |
1891 | ||
1892 | _ACEOF | |
efd58f08 | 1893 | exec 5>>config.log |
b58b6ee1 DJ |
1894 | { |
1895 | cat <<_ASUNAME | |
1896 | ## --------- ## | |
1897 | ## Platform. ## | |
1898 | ## --------- ## | |
1899 | ||
1900 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1901 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1902 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1903 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1904 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1905 | ||
1906 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1907 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1908 | ||
1909 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1910 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1911 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
efd58f08 | 1912 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
b58b6ee1 DJ |
1913 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1914 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1915 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1916 | ||
1917 | _ASUNAME | |
1918 | ||
1919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1920 | for as_dir in $PATH | |
1921 | do | |
1922 | IFS=$as_save_IFS | |
1923 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
1924 | $as_echo "PATH: $as_dir" |
1925 | done | |
1926 | IFS=$as_save_IFS | |
b58b6ee1 DJ |
1927 | |
1928 | } >&5 | |
1929 | ||
1930 | cat >&5 <<_ACEOF | |
1931 | ||
1932 | ||
1933 | ## ----------- ## | |
1934 | ## Core tests. ## | |
1935 | ## ----------- ## | |
1936 | ||
1937 | _ACEOF | |
1938 | ||
1939 | ||
1940 | # Keep a trace of the command line. | |
1941 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1942 | # Strip out --silent because we don't want to record it for future runs. | |
1943 | # Also quote any args containing shell meta-characters. | |
1944 | # Make two passes to allow for proper duplicate-argument suppression. | |
1945 | ac_configure_args= | |
1946 | ac_configure_args0= | |
1947 | ac_configure_args1= | |
b58b6ee1 DJ |
1948 | ac_must_keep_next=false |
1949 | for ac_pass in 1 2 | |
1950 | do | |
1951 | for ac_arg | |
1952 | do | |
1953 | case $ac_arg in | |
1954 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1955 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1956 | | -silent | --silent | --silen | --sile | --sil) | |
1957 | continue ;; | |
efd58f08 RW |
1958 | *\'*) |
1959 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b58b6ee1 DJ |
1960 | esac |
1961 | case $ac_pass in | |
efd58f08 | 1962 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b58b6ee1 | 1963 | 2) |
efd58f08 | 1964 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b58b6ee1 DJ |
1965 | if test $ac_must_keep_next = true; then |
1966 | ac_must_keep_next=false # Got value, back to normal. | |
1967 | else | |
1968 | case $ac_arg in | |
1969 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1970 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1971 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1972 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1973 | case "$ac_configure_args0 " in | |
1974 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1975 | esac | |
1976 | ;; | |
1977 | -* ) ac_must_keep_next=true ;; | |
1978 | esac | |
1979 | fi | |
efd58f08 | 1980 | as_fn_append ac_configure_args " '$ac_arg'" |
b58b6ee1 DJ |
1981 | ;; |
1982 | esac | |
1983 | done | |
1984 | done | |
efd58f08 RW |
1985 | { ac_configure_args0=; unset ac_configure_args0;} |
1986 | { ac_configure_args1=; unset ac_configure_args1;} | |
b58b6ee1 DJ |
1987 | |
1988 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1989 | # config.log. We remove comments because anyway the quotes in there | |
1990 | # would cause problems or look ugly. | |
efd58f08 RW |
1991 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1992 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b58b6ee1 DJ |
1993 | trap 'exit_status=$? |
1994 | # Save into config.log some information that might help in debugging. | |
1995 | { | |
1996 | echo | |
1997 | ||
1998 | cat <<\_ASBOX | |
1999 | ## ---------------- ## | |
2000 | ## Cache variables. ## | |
2001 | ## ---------------- ## | |
2002 | _ASBOX | |
2003 | echo | |
2004 | # The following way of writing the cache mishandles newlines in values, | |
efd58f08 RW |
2005 | ( |
2006 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2007 | eval ac_val=\$$ac_var | |
2008 | case $ac_val in #( | |
2009 | *${as_nl}*) | |
2010 | case $ac_var in #( | |
2011 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2012 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2013 | esac | |
2014 | case $ac_var in #( | |
2015 | _ | IFS | as_nl) ;; #( | |
2016 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2017 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2018 | esac ;; | |
2019 | esac | |
2020 | done | |
b58b6ee1 | 2021 | (set) 2>&1 | |
efd58f08 RW |
2022 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2023 | *${as_nl}ac_space=\ *) | |
b58b6ee1 | 2024 | sed -n \ |
efd58f08 RW |
2025 | "s/'\''/'\''\\\\'\'''\''/g; |
2026 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2027 | ;; #( | |
b58b6ee1 | 2028 | *) |
efd58f08 | 2029 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b58b6ee1 | 2030 | ;; |
efd58f08 RW |
2031 | esac | |
2032 | sort | |
2033 | ) | |
b58b6ee1 DJ |
2034 | echo |
2035 | ||
2036 | cat <<\_ASBOX | |
2037 | ## ----------------- ## | |
2038 | ## Output variables. ## | |
2039 | ## ----------------- ## | |
2040 | _ASBOX | |
2041 | echo | |
2042 | for ac_var in $ac_subst_vars | |
2043 | do | |
efd58f08 RW |
2044 | eval ac_val=\$$ac_var |
2045 | case $ac_val in | |
2046 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2047 | esac | |
2048 | $as_echo "$ac_var='\''$ac_val'\''" | |
b58b6ee1 DJ |
2049 | done | sort |
2050 | echo | |
2051 | ||
2052 | if test -n "$ac_subst_files"; then | |
2053 | cat <<\_ASBOX | |
efd58f08 RW |
2054 | ## ------------------- ## |
2055 | ## File substitutions. ## | |
2056 | ## ------------------- ## | |
b58b6ee1 DJ |
2057 | _ASBOX |
2058 | echo | |
2059 | for ac_var in $ac_subst_files | |
2060 | do | |
efd58f08 RW |
2061 | eval ac_val=\$$ac_var |
2062 | case $ac_val in | |
2063 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2064 | esac | |
2065 | $as_echo "$ac_var='\''$ac_val'\''" | |
b58b6ee1 DJ |
2066 | done | sort |
2067 | echo | |
2068 | fi | |
2069 | ||
2070 | if test -s confdefs.h; then | |
2071 | cat <<\_ASBOX | |
2072 | ## ----------- ## | |
2073 | ## confdefs.h. ## | |
2074 | ## ----------- ## | |
2075 | _ASBOX | |
2076 | echo | |
efd58f08 | 2077 | cat confdefs.h |
b58b6ee1 DJ |
2078 | echo |
2079 | fi | |
2080 | test "$ac_signal" != 0 && | |
efd58f08 RW |
2081 | $as_echo "$as_me: caught signal $ac_signal" |
2082 | $as_echo "$as_me: exit $exit_status" | |
b58b6ee1 | 2083 | } >&5 |
efd58f08 RW |
2084 | rm -f core *.core core.conftest.* && |
2085 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b58b6ee1 | 2086 | exit $exit_status |
efd58f08 | 2087 | ' 0 |
b58b6ee1 | 2088 | for ac_signal in 1 2 13 15; do |
efd58f08 | 2089 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b58b6ee1 DJ |
2090 | done |
2091 | ac_signal=0 | |
2092 | ||
2093 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
efd58f08 RW |
2094 | rm -f -r conftest* confdefs.h |
2095 | ||
2096 | $as_echo "/* confdefs.h */" > confdefs.h | |
b58b6ee1 DJ |
2097 | |
2098 | # Predefined preprocessor variables. | |
2099 | ||
2100 | cat >>confdefs.h <<_ACEOF | |
2101 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2102 | _ACEOF | |
2103 | ||
b58b6ee1 DJ |
2104 | cat >>confdefs.h <<_ACEOF |
2105 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2106 | _ACEOF | |
2107 | ||
b58b6ee1 DJ |
2108 | cat >>confdefs.h <<_ACEOF |
2109 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2110 | _ACEOF | |
2111 | ||
b58b6ee1 DJ |
2112 | cat >>confdefs.h <<_ACEOF |
2113 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2114 | _ACEOF | |
2115 | ||
b58b6ee1 DJ |
2116 | cat >>confdefs.h <<_ACEOF |
2117 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2118 | _ACEOF | |
2119 | ||
efd58f08 RW |
2120 | cat >>confdefs.h <<_ACEOF |
2121 | #define PACKAGE_URL "$PACKAGE_URL" | |
2122 | _ACEOF | |
2123 | ||
b58b6ee1 DJ |
2124 | |
2125 | # Let the site file select an alternate cache file if it wants to. | |
efd58f08 RW |
2126 | # Prefer an explicitly selected file to automatically selected ones. |
2127 | ac_site_file1=NONE | |
2128 | ac_site_file2=NONE | |
2129 | if test -n "$CONFIG_SITE"; then | |
2130 | ac_site_file1=$CONFIG_SITE | |
2131 | elif test "x$prefix" != xNONE; then | |
2132 | ac_site_file1=$prefix/share/config.site | |
2133 | ac_site_file2=$prefix/etc/config.site | |
2134 | else | |
2135 | ac_site_file1=$ac_default_prefix/share/config.site | |
2136 | ac_site_file2=$ac_default_prefix/etc/config.site | |
bafecfd6 | 2137 | fi |
efd58f08 RW |
2138 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2139 | do | |
2140 | test "x$ac_site_file" = xNONE && continue | |
bafecfd6 | 2141 | if test -r "$ac_site_file"; then |
efd58f08 RW |
2142 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2143 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b58b6ee1 | 2144 | sed 's/^/| /' "$ac_site_file" >&5 |
bafecfd6 NN |
2145 | . "$ac_site_file" |
2146 | fi | |
2147 | done | |
2148 | ||
2149 | if test -r "$cache_file"; then | |
b58b6ee1 DJ |
2150 | # Some versions of bash will fail to source /dev/null (special |
2151 | # files actually), so we avoid doing that. | |
2152 | if test -f "$cache_file"; then | |
efd58f08 RW |
2153 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2154 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b58b6ee1 | 2155 | case $cache_file in |
efd58f08 RW |
2156 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2157 | *) . "./$cache_file";; | |
b58b6ee1 DJ |
2158 | esac |
2159 | fi | |
bafecfd6 | 2160 | else |
efd58f08 RW |
2161 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2162 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b58b6ee1 DJ |
2163 | >$cache_file |
2164 | fi | |
2165 | ||
2166 | # Check that the precious variables saved in the cache have kept the same | |
2167 | # value. | |
2168 | ac_cache_corrupted=false | |
efd58f08 | 2169 | for ac_var in $ac_precious_vars; do |
b58b6ee1 DJ |
2170 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2171 | eval ac_new_set=\$ac_env_${ac_var}_set | |
efd58f08 RW |
2172 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2173 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b58b6ee1 DJ |
2174 | case $ac_old_set,$ac_new_set in |
2175 | set,) | |
efd58f08 RW |
2176 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2177 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b58b6ee1 DJ |
2178 | ac_cache_corrupted=: ;; |
2179 | ,set) | |
efd58f08 RW |
2180 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2181 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b58b6ee1 DJ |
2182 | ac_cache_corrupted=: ;; |
2183 | ,);; | |
2184 | *) | |
2185 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
efd58f08 RW |
2186 | # differences in whitespace do not lead to failure. |
2187 | ac_old_val_w=`echo x $ac_old_val` | |
2188 | ac_new_val_w=`echo x $ac_new_val` | |
2189 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2190 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2191 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2192 | ac_cache_corrupted=: | |
2193 | else | |
2194 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2195 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2196 | eval $ac_var=\$ac_old_val | |
2197 | fi | |
2198 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2199 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2200 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2201 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b58b6ee1 DJ |
2202 | fi;; |
2203 | esac | |
2204 | # Pass precious variables to config.status. | |
2205 | if test "$ac_new_set" = set; then | |
2206 | case $ac_new_val in | |
efd58f08 | 2207 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b58b6ee1 DJ |
2208 | *) ac_arg=$ac_var=$ac_new_val ;; |
2209 | esac | |
2210 | case " $ac_configure_args " in | |
2211 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
efd58f08 | 2212 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b58b6ee1 DJ |
2213 | esac |
2214 | fi | |
2215 | done | |
2216 | if $ac_cache_corrupted; then | |
efd58f08 RW |
2217 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2218 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2219 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2220 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2221 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
bafecfd6 | 2222 | fi |
efd58f08 RW |
2223 | ## -------------------- ## |
2224 | ## Main body of script. ## | |
2225 | ## -------------------- ## | |
bafecfd6 NN |
2226 | |
2227 | ac_ext=c | |
bafecfd6 | 2228 | ac_cpp='$CPP $CPPFLAGS' |
b58b6ee1 DJ |
2229 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2230 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2231 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2232 | ||
2233 | ||
2234 | ||
2235 | ||
b58b6ee1 DJ |
2236 | |
2237 | ||
5546e07b | 2238 | |
b58b6ee1 | 2239 | |
00f8aa9c RW |
2240 | |
2241 | progname=$0 | |
2242 | # if PWD already has a value, it is probably wrong. | |
2243 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2244 | ||
2245 | # Export original configure arguments for use by sub-configures. | |
2246 | # Quote arguments with shell meta charatcers. | |
2247 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2248 | set -- "$progname" "$@" | |
2249 | for ac_arg | |
2250 | do | |
2251 | case "$ac_arg" in | |
2252 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2253 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2254 | # if the argument is of the form -foo=baz, quote the baz part only | |
2255 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2256 | *) ;; | |
2257 | esac | |
2258 | # Add the quoted argument to the list. | |
2259 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2260 | done | |
2261 | if test "$silent" = yes; then | |
2262 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2263 | fi | |
2264 | # Remove the initial space we just introduced and, as these will be | |
2265 | # expanded by make, quote '$'. | |
2266 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2267 | ||
b58b6ee1 DJ |
2268 | |
2269 | # Find the build, host, and target systems. | |
bafecfd6 | 2270 | ac_aux_dir= |
efd58f08 RW |
2271 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2272 | for ac_t in install-sh install.sh shtool; do | |
2273 | if test -f "$ac_dir/$ac_t"; then | |
2274 | ac_aux_dir=$ac_dir | |
2275 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2276 | break 2 | |
2277 | fi | |
2278 | done | |
bafecfd6 NN |
2279 | done |
2280 | if test -z "$ac_aux_dir"; then | |
efd58f08 | 2281 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
bafecfd6 | 2282 | fi |
efd58f08 RW |
2283 | |
2284 | # These three variables are undocumented and unsupported, | |
2285 | # and are intended to be withdrawn in a future Autoconf release. | |
2286 | # They can cause serious problems if a builder's source tree is in a directory | |
2287 | # whose full name contains unusual characters. | |
2288 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2289 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2290 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2291 | ||
bafecfd6 | 2292 | |
b58b6ee1 | 2293 | # Make sure we can run config.sub. |
efd58f08 RW |
2294 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2295 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2296 | ||
2297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2298 | $as_echo_n "checking build system type... " >&6; } | |
2299 | if test "${ac_cv_build+set}" = set; then : | |
2300 | $as_echo_n "(cached) " >&6 | |
2301 | else | |
2302 | ac_build_alias=$build_alias | |
2303 | test "x$ac_build_alias" = x && | |
2304 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2305 | test "x$ac_build_alias" = x && | |
2306 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2307 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2308 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2309 | ||
2310 | fi | |
2311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2312 | $as_echo "$ac_cv_build" >&6; } | |
2313 | case $ac_cv_build in | |
2314 | *-*-*) ;; | |
2315 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2316 | esac | |
b58b6ee1 | 2317 | build=$ac_cv_build |
efd58f08 RW |
2318 | ac_save_IFS=$IFS; IFS='-' |
2319 | set x $ac_cv_build | |
2320 | shift | |
2321 | build_cpu=$1 | |
2322 | build_vendor=$2 | |
2323 | shift; shift | |
2324 | # Remember, the first character of IFS is used to create $*, | |
2325 | # except with old shells: | |
2326 | build_os=$* | |
2327 | IFS=$ac_save_IFS | |
2328 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
bafecfd6 | 2329 | |
bafecfd6 | 2330 | |
b58b6ee1 DJ |
2331 | case ${build_alias} in |
2332 | "") build_noncanonical=${build} ;; | |
2333 | *) build_noncanonical=${build_alias} ;; | |
f69e2532 CM |
2334 | esac |
2335 | ||
2336 | ||
f69e2532 | 2337 | |
b58b6ee1 DJ |
2338 | case ${host_alias} in |
2339 | "") host_noncanonical=${build_noncanonical} ;; | |
2340 | *) host_noncanonical=${host_alias} ;; | |
f69e2532 CM |
2341 | esac |
2342 | ||
f69e2532 | 2343 | |
b58b6ee1 DJ |
2344 | |
2345 | case ${target_alias} in | |
2346 | "") target_noncanonical=${host_noncanonical} ;; | |
2347 | *) target_noncanonical=${target_alias} ;; | |
f69e2532 CM |
2348 | esac |
2349 | ||
f69e2532 | 2350 | |
b58b6ee1 DJ |
2351 | |
2352 | ||
2353 | test "$host_noncanonical" = "$target_noncanonical" && | |
bafecfd6 NN |
2354 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2355 | NONENONEs,x,x, && | |
b58b6ee1 | 2356 | program_transform_name=s,y,y, |
f69e2532 | 2357 | |
efd58f08 RW |
2358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2359 | $as_echo_n "checking host system type... " >&6; } | |
2360 | if test "${ac_cv_host+set}" = set; then : | |
2361 | $as_echo_n "(cached) " >&6 | |
f69e2532 | 2362 | else |
efd58f08 RW |
2363 | if test "x$host_alias" = x; then |
2364 | ac_cv_host=$ac_cv_build | |
2365 | else | |
2366 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2367 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2368 | fi | |
b58b6ee1 DJ |
2369 | |
2370 | fi | |
efd58f08 RW |
2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2372 | $as_echo "$ac_cv_host" >&6; } | |
2373 | case $ac_cv_host in | |
2374 | *-*-*) ;; | |
2375 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2376 | esac | |
b58b6ee1 | 2377 | host=$ac_cv_host |
efd58f08 RW |
2378 | ac_save_IFS=$IFS; IFS='-' |
2379 | set x $ac_cv_host | |
2380 | shift | |
2381 | host_cpu=$1 | |
2382 | host_vendor=$2 | |
2383 | shift; shift | |
2384 | # Remember, the first character of IFS is used to create $*, | |
2385 | # except with old shells: | |
2386 | host_os=$* | |
2387 | IFS=$ac_save_IFS | |
2388 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
b58b6ee1 DJ |
2389 | |
2390 | ||
efd58f08 RW |
2391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2392 | $as_echo_n "checking target system type... " >&6; } | |
2393 | if test "${ac_cv_target+set}" = set; then : | |
2394 | $as_echo_n "(cached) " >&6 | |
b58b6ee1 | 2395 | else |
efd58f08 RW |
2396 | if test "x$target_alias" = x; then |
2397 | ac_cv_target=$ac_cv_host | |
2398 | else | |
2399 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2400 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2401 | fi | |
b58b6ee1 | 2402 | |
f69e2532 | 2403 | fi |
efd58f08 RW |
2404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2405 | $as_echo "$ac_cv_target" >&6; } | |
2406 | case $ac_cv_target in | |
2407 | *-*-*) ;; | |
2408 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2409 | esac | |
b58b6ee1 | 2410 | target=$ac_cv_target |
efd58f08 RW |
2411 | ac_save_IFS=$IFS; IFS='-' |
2412 | set x $ac_cv_target | |
2413 | shift | |
2414 | target_cpu=$1 | |
2415 | target_vendor=$2 | |
2416 | shift; shift | |
2417 | # Remember, the first character of IFS is used to create $*, | |
2418 | # except with old shells: | |
2419 | target_os=$* | |
2420 | IFS=$ac_save_IFS | |
2421 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
b58b6ee1 DJ |
2422 | |
2423 | ||
2424 | # The aliases save the names the user supplied, while $host etc. | |
2425 | # will get canonicalized. | |
2426 | test -n "$target_alias" && | |
2427 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2428 | NONENONEs,x,x, && | |
2429 | program_prefix=${target_alias}- | |
efd58f08 | 2430 | |
bafecfd6 | 2431 | test "$program_prefix" != NONE && |
efd58f08 | 2432 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bafecfd6 NN |
2433 | # Use a double $ so make ignores it. |
2434 | test "$program_suffix" != NONE && | |
efd58f08 RW |
2435 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2436 | # Double any \ or $. | |
b58b6ee1 | 2437 | # By default was `s,x,x', remove it if useless. |
efd58f08 RW |
2438 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2439 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
f69e2532 | 2440 | |
bafecfd6 NN |
2441 | |
2442 | ||
282c0e47 NN |
2443 | # Get 'install' or 'install-sh' and its variants. |
2444 | # Find a good install program. We prefer a C program (faster), | |
2445 | # so one script is as good as another. But avoid the broken or | |
2446 | # incompatible versions: | |
2447 | # SysV /etc/install, /usr/sbin/install | |
2448 | # SunOS /usr/etc/install | |
2449 | # IRIX /sbin/install | |
2450 | # AIX /bin/install | |
b58b6ee1 | 2451 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
282c0e47 NN |
2452 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2453 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2454 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
b58b6ee1 | 2455 | # OS/2's system install, which has a completely different semantic |
282c0e47 | 2456 | # ./install, which can be erroneously created by make from ./install.sh. |
e30fd60f | 2457 | # Reject install programs that cannot install multiple files. |
efd58f08 RW |
2458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2459 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
282c0e47 | 2460 | if test -z "$INSTALL"; then |
efd58f08 RW |
2461 | if test "${ac_cv_path_install+set}" = set; then : |
2462 | $as_echo_n "(cached) " >&6 | |
b58b6ee1 DJ |
2463 | else |
2464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2465 | for as_dir in $PATH | |
2466 | do | |
2467 | IFS=$as_save_IFS | |
2468 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
2469 | # Account for people who put trailing slashes in PATH elements. |
2470 | case $as_dir/ in #(( | |
2471 | ./ | .// | /[cC]/* | \ | |
b58b6ee1 | 2472 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
efd58f08 | 2473 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
b58b6ee1 DJ |
2474 | /usr/ucb/* ) ;; |
2475 | *) | |
2476 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2477 | # Don't use installbsd from OSF since it installs stuff as root | |
2478 | # by default. | |
2479 | for ac_prog in ginstall scoinst install; do | |
2480 | for ac_exec_ext in '' $ac_executable_extensions; do | |
efd58f08 | 2481 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
282c0e47 | 2482 | if test $ac_prog = install && |
b58b6ee1 | 2483 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
282c0e47 NN |
2484 | # AIX install. It has an incompatible calling convention. |
2485 | : | |
b58b6ee1 DJ |
2486 | elif test $ac_prog = install && |
2487 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2488 | # program-specific install script used by HP pwplus--don't use. | |
2489 | : | |
282c0e47 | 2490 | else |
e30fd60f RW |
2491 | rm -rf conftest.one conftest.two conftest.dir |
2492 | echo one > conftest.one | |
2493 | echo two > conftest.two | |
2494 | mkdir conftest.dir | |
2495 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2496 | test -s conftest.one && test -s conftest.two && | |
2497 | test -s conftest.dir/conftest.one && | |
2498 | test -s conftest.dir/conftest.two | |
2499 | then | |
2500 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2501 | break 3 | |
2502 | fi | |
282c0e47 NN |
2503 | fi |
2504 | fi | |
2505 | done | |
b58b6ee1 DJ |
2506 | done |
2507 | ;; | |
2508 | esac | |
efd58f08 RW |
2509 | |
2510 | done | |
2511 | IFS=$as_save_IFS | |
b58b6ee1 | 2512 | |
e30fd60f | 2513 | rm -rf conftest.one conftest.two conftest.dir |
282c0e47 NN |
2514 | |
2515 | fi | |
2516 | if test "${ac_cv_path_install+set}" = set; then | |
b58b6ee1 | 2517 | INSTALL=$ac_cv_path_install |
282c0e47 | 2518 | else |
e30fd60f RW |
2519 | # As a last resort, use the slow shell script. Don't cache a |
2520 | # value for INSTALL within a source directory, because that will | |
282c0e47 | 2521 | # break other packages using the cache if that directory is |
e30fd60f | 2522 | # removed, or if the value is a relative name. |
b58b6ee1 | 2523 | INSTALL=$ac_install_sh |
282c0e47 NN |
2524 | fi |
2525 | fi | |
efd58f08 RW |
2526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2527 | $as_echo "$INSTALL" >&6; } | |
282c0e47 NN |
2528 | |
2529 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2530 | # It thinks the first close brace ends the variable substitution. | |
2531 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2532 | ||
b58b6ee1 | 2533 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
282c0e47 NN |
2534 | |
2535 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2536 | ||
efd58f08 RW |
2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2538 | $as_echo_n "checking whether ln works... " >&6; } | |
2539 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2540 | $as_echo_n "(cached) " >&6 | |
21ff191e PB |
2541 | else |
2542 | rm -f conftestdata_t | |
2543 | echo >conftestdata_f | |
2544 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2545 | then | |
2546 | acx_cv_prog_LN=ln | |
2547 | else | |
2548 | acx_cv_prog_LN=no | |
2549 | fi | |
2550 | rm -f conftestdata_f conftestdata_t | |
2551 | ||
2552 | fi | |
2553 | if test $acx_cv_prog_LN = no; then | |
2554 | LN="cp" | |
efd58f08 RW |
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2556 | $as_echo "no, using $LN" >&6; } | |
21ff191e PB |
2557 | else |
2558 | LN="$acx_cv_prog_LN" | |
efd58f08 RW |
2559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2560 | $as_echo "yes" >&6; } | |
21ff191e PB |
2561 | fi |
2562 | ||
efd58f08 RW |
2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2564 | $as_echo_n "checking whether ln -s works... " >&6; } | |
b58b6ee1 DJ |
2565 | LN_S=$as_ln_s |
2566 | if test "$LN_S" = "ln -s"; then | |
efd58f08 RW |
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2568 | $as_echo "yes" >&6; } | |
f69e2532 | 2569 | else |
efd58f08 RW |
2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2571 | $as_echo "no, using $LN_S" >&6; } | |
35269421 PB |
2572 | fi |
2573 | ||
a8a01987 PB |
2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2575 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2576 | if test "${ac_cv_path_SED+set}" = set; then : | |
2577 | $as_echo_n "(cached) " >&6 | |
2578 | else | |
2579 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2580 | for ac_i in 1 2 3 4 5 6 7; do | |
2581 | ac_script="$ac_script$as_nl$ac_script" | |
2582 | done | |
2583 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2584 | { ac_script=; unset ac_script;} | |
2585 | if test -z "$SED"; then | |
2586 | ac_path_SED_found=false | |
2587 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2589 | for as_dir in $PATH | |
2590 | do | |
2591 | IFS=$as_save_IFS | |
2592 | test -z "$as_dir" && as_dir=. | |
2593 | for ac_prog in sed gsed; do | |
2594 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2595 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2596 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2597 | # Check for GNU ac_path_SED and select it if it is found. | |
2598 | # Check for GNU $ac_path_SED | |
2599 | case `"$ac_path_SED" --version 2>&1` in | |
2600 | *GNU*) | |
2601 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2602 | *) | |
2603 | ac_count=0 | |
2604 | $as_echo_n 0123456789 >"conftest.in" | |
2605 | while : | |
2606 | do | |
2607 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2608 | mv "conftest.tmp" "conftest.in" | |
2609 | cp "conftest.in" "conftest.nl" | |
2610 | $as_echo '' >> "conftest.nl" | |
2611 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2612 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2613 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2614 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2615 | # Best one so far, save it but keep looking for a better one | |
2616 | ac_cv_path_SED="$ac_path_SED" | |
2617 | ac_path_SED_max=$ac_count | |
2618 | fi | |
2619 | # 10*(2^10) chars as input seems more than enough | |
2620 | test $ac_count -gt 10 && break | |
2621 | done | |
2622 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2623 | esac | |
2624 | ||
2625 | $ac_path_SED_found && break 3 | |
2626 | done | |
2627 | done | |
2628 | done | |
2629 | IFS=$as_save_IFS | |
2630 | if test -z "$ac_cv_path_SED"; then | |
2631 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2632 | fi | |
2633 | else | |
2634 | ac_cv_path_SED=$SED | |
2635 | fi | |
2636 | ||
2637 | fi | |
2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2639 | $as_echo "$ac_cv_path_SED" >&6; } | |
2640 | SED="$ac_cv_path_SED" | |
2641 | rm -f conftest.sed | |
2642 | ||
2643 | for ac_prog in gawk mawk nawk awk | |
2644 | do | |
2645 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2646 | set dummy $ac_prog; ac_word=$2 | |
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2648 | $as_echo_n "checking for $ac_word... " >&6; } | |
2649 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2650 | $as_echo_n "(cached) " >&6 | |
2651 | else | |
2652 | if test -n "$AWK"; then | |
2653 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2654 | else | |
2655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2656 | for as_dir in $PATH | |
2657 | do | |
2658 | IFS=$as_save_IFS | |
2659 | test -z "$as_dir" && as_dir=. | |
2660 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2661 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2662 | ac_cv_prog_AWK="$ac_prog" | |
2663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2664 | break 2 | |
2665 | fi | |
2666 | done | |
2667 | done | |
2668 | IFS=$as_save_IFS | |
2669 | ||
2670 | fi | |
2671 | fi | |
2672 | AWK=$ac_cv_prog_AWK | |
2673 | if test -n "$AWK"; then | |
2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2675 | $as_echo "$AWK" >&6; } | |
2676 | else | |
2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2678 | $as_echo "no" >&6; } | |
2679 | fi | |
2680 | ||
2681 | ||
2682 | test -n "$AWK" && break | |
2683 | done | |
2684 | ||
282c0e47 | 2685 | |
714fa3b8 DJ |
2686 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2687 | ||
2688 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2689 | # a relative path. | |
2690 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2691 | INSTALL="${srcpwd}/install-sh -c" | |
2692 | fi | |
2693 | ||
bafecfd6 NN |
2694 | # Set srcdir to "." if that's what it is. |
2695 | # This is important for multilib support. | |
2696 | pwd=`${PWDCMD-pwd}` | |
bafecfd6 NN |
2697 | if test "${pwd}" = "${srcpwd}" ; then |
2698 | srcdir=. | |
a3acbf46 RH |
2699 | fi |
2700 | ||
bafecfd6 | 2701 | topsrcdir=$srcpwd |
a3acbf46 | 2702 | |
bafecfd6 | 2703 | extra_host_args= |
afdaeaab | 2704 | |
bafecfd6 NN |
2705 | ### To add a new directory to the tree, first choose whether it is a target |
2706 | ### or a host dependent tool. Then put it into the appropriate list | |
2707 | ### (library or tools, host or target), doing a dependency sort. | |
a3acbf46 | 2708 | |
b58b6ee1 | 2709 | # Subdirs will be configured in the order listed in build_configdirs, |
bafecfd6 | 2710 | # configdirs, or target_configdirs; see the serialization section below. |
a3acbf46 | 2711 | |
b58b6ee1 DJ |
2712 | # Dependency sorting is only needed when *configuration* must be done in |
2713 | # a particular order. In all cases a dependency should be specified in | |
bafecfd6 | 2714 | # the Makefile, whether or not it's implicitly specified here. |
a3acbf46 | 2715 | |
bafecfd6 NN |
2716 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2717 | # cause circular dependencies and break everything horribly. | |
a3acbf46 | 2718 | |
2cb47d68 PB |
2719 | # these library is used by various programs built for the build |
2720 | # environment | |
2721 | # | |
fe508576 | 2722 | build_libs="build-libiberty build-libcpp" |
2cb47d68 PB |
2723 | |
2724 | # these tools are built for the build environment | |
64196564 | 2725 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
2cb47d68 | 2726 | |
bafecfd6 | 2727 | # these libraries are used by various programs built for the host environment |
fe508576 CV |
2728 | #f |
2729 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv" | |
bafecfd6 | 2730 | |
bafecfd6 NN |
2731 | # these tools are built for the host environment |
2732 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2733 | # know that we are building the simulator. | |
2734 | # binutils, gas and ld appear in that order because it makes sense to run | |
2735 | # "make check" in that particular order. | |
32c2e09b | 2736 | # If --enable-gold is used, "gold" may replace "ld". |
fe508576 | 2737 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools" |
bafecfd6 NN |
2738 | |
2739 | # libgcj represents the runtime libraries only used by gcj. | |
2740 | libgcj="target-libffi \ | |
bafecfd6 | 2741 | target-zlib \ |
bafecfd6 NN |
2742 | target-libjava" |
2743 | ||
2744 | # these libraries are built for the target environment, and are built after | |
2745 | # the host libraries and the host tools (which may be a cross compiler) | |
c9161585 | 2746 | # Note that libiberty is not a target library. |
1277a9a0 | 2747 | target_libraries="target-libgcc \ |
0c770d16 | 2748 | target-libbacktrace \ |
bafecfd6 NN |
2749 | target-libgloss \ |
2750 | target-newlib \ | |
a8c17d42 | 2751 | target-libgomp \ |
fe508576 CV |
2752 | target-libcilkrts \ |
2753 | target-liboffloadmic \ | |
a626f4ee | 2754 | target-libatomic \ |
068a111a | 2755 | target-libitm \ |
76ab491a | 2756 | target-libstdc++-v3 \ |
5094cf21 | 2757 | target-libsanitizer \ |
111ced6d | 2758 | target-libvtv \ |
fe508576 | 2759 | target-libmpx \ |
2c193664 | 2760 | target-libssp \ |
d5b7129a | 2761 | target-libquadmath \ |
cb2333e8 | 2762 | target-libgfortran \ |
e1e5148c | 2763 | target-boehm-gc \ |
6f2480fb | 2764 | ${libgcj} \ |
d832a288 | 2765 | target-libobjc \ |
d5b7129a ILT |
2766 | target-libada \ |
2767 | target-libgo" | |
bafecfd6 | 2768 | |
5283b643 NN |
2769 | # these tools are built using the target libraries, and are intended to |
2770 | # run only in the target environment | |
bafecfd6 | 2771 | # |
5283b643 | 2772 | # note: any program that *uses* libraries that are in the "target_libraries" |
5b45e8c9 | 2773 | # list belongs in this list. |
bafecfd6 | 2774 | # |
64196564 | 2775 | target_tools="target-rda" |
a3acbf46 | 2776 | |
bafecfd6 | 2777 | ################################################################################ |
a3acbf46 | 2778 | |
bafecfd6 NN |
2779 | ## All tools belong in one of the four categories, and are assigned above |
2780 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2781 | ## is important because configure will choke if they ever get through. | |
2782 | ## ${configdirs} is directories we build using the host tools. | |
2783 | ## ${target_configdirs} is directories we build using the target tools. | |
bafecfd6 | 2784 | configdirs=`echo ${host_libs} ${host_tools}` |
5283b643 | 2785 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
607d4caf | 2786 | build_configdirs=`echo ${build_libs} ${build_tools}` |
9b520963 | 2787 | |
3fbb5e3d PB |
2788 | |
2789 | ||
bafecfd6 | 2790 | ################################################################################ |
a3acbf46 | 2791 | |
bafecfd6 | 2792 | srcname="gnu development package" |
a3acbf46 | 2793 | |
bafecfd6 NN |
2794 | # This gets set non-empty for some net releases of packages. |
2795 | appdirs="" | |
a3acbf46 | 2796 | |
bafecfd6 NN |
2797 | # Define is_cross_compiler to save on calls to 'test'. |
2798 | is_cross_compiler= | |
2799 | if test x"${host}" = x"${target}" ; then | |
2800 | is_cross_compiler=no | |
a3acbf46 | 2801 | else |
bafecfd6 | 2802 | is_cross_compiler=yes |
b58b6ee1 | 2803 | fi |
a3acbf46 | 2804 | |
df4b5a9c | 2805 | # Find the build and target subdir names. |
9b520963 | 2806 | |
3160f998 DJ |
2807 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2808 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2809 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2810 | # However, they still use the build modules, because the corresponding | |
2811 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2812 | # finishes. So: | |
2813 | # - build_subdir is where we find build modules, and never changes. | |
2814 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2815 | ||
2816 | # Prefix 'build-' so this never conflicts with target_subdir. | |
9b520963 | 2817 | build_subdir="build-${build_noncanonical}" |
b58b6ee1 | 2818 | |
efd58f08 RW |
2819 | # Check whether --with-build-libsubdir was given. |
2820 | if test "${with_build_libsubdir+set}" = set; then : | |
2821 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
3160f998 DJ |
2822 | else |
2823 | build_libsubdir="$build_subdir" | |
efd58f08 RW |
2824 | fi |
2825 | ||
7fc2ca22 PB |
2826 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2827 | if ( test $srcdir = . && test -d gcc ) \ | |
2828 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2829 | host_subdir="host-${host_noncanonical}" | |
2830 | else | |
2831 | host_subdir=. | |
2832 | fi | |
9b520963 NN |
2833 | # No prefix. |
2834 | target_subdir=${target_noncanonical} | |
b58b6ee1 | 2835 | |
8980b9ad RW |
2836 | # Be sure to cover against remnants of an in-tree build. |
2837 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2838 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2839 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2840 | fi | |
a3acbf46 | 2841 | |
bafecfd6 NN |
2842 | # Skipdirs are removed silently. |
2843 | skipdirs= | |
2844 | # Noconfigdirs are removed loudly. | |
2845 | noconfigdirs="" | |
a3acbf46 | 2846 | |
bafecfd6 NN |
2847 | use_gnu_ld= |
2848 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2849 | if test x$with_gnu_ld = xno ; then | |
2850 | use_gnu_ld=no | |
b916272a | 2851 | noconfigdirs="$noconfigdirs ld gold" |
a3acbf46 RH |
2852 | fi |
2853 | ||
bafecfd6 NN |
2854 | use_gnu_as= |
2855 | # Make sure we don't let GNU as be added if we didn't want it. | |
2856 | if test x$with_gnu_as = xno ; then | |
2857 | use_gnu_as=no | |
2858 | noconfigdirs="$noconfigdirs gas" | |
a3acbf46 RH |
2859 | fi |
2860 | ||
bd45d6fa | 2861 | use_included_zlib= |
fe508576 CV |
2862 | |
2863 | # Check whether --with-system-zlib was given. | |
2864 | if test "${with_system_zlib+set}" = set; then : | |
2865 | withval=$with_system_zlib; | |
2866 | fi | |
2867 | ||
bd45d6fa ILT |
2868 | # Make sure we don't let ZLIB be added if we didn't want it. |
2869 | if test x$with_system_zlib = xyes ; then | |
2870 | use_included_zlib=no | |
2871 | noconfigdirs="$noconfigdirs zlib" | |
2872 | fi | |
2873 | ||
b58b6ee1 | 2874 | # some tools are so dependent upon X11 that if we're not building with X, |
bafecfd6 | 2875 | # it's not even worth trying to configure, much less build, that tool. |
a3acbf46 | 2876 | |
bafecfd6 NN |
2877 | case ${with_x} in |
2878 | yes | "") ;; # the default value for this tree is that X11 is available | |
2879 | no) | |
44397772 | 2880 | skipdirs="${skipdirs} tk itcl libgui" |
bafecfd6 | 2881 | # We won't be able to build gdbtk without X. |
b58b6ee1 | 2882 | enable_gdbtk=no |
bafecfd6 NN |
2883 | ;; |
2884 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2885 | esac | |
a3acbf46 | 2886 | |
5b45e8c9 | 2887 | # Some are only suitable for cross toolchains. |
bafecfd6 NN |
2888 | # Remove these if host=target. |
2889 | cross_only="target-libgloss target-newlib target-opcodes" | |
2890 | ||
2891 | case $is_cross_compiler in | |
2892 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
bafecfd6 | 2893 | esac |
a3acbf46 | 2894 | |
bafecfd6 NN |
2895 | # If both --with-headers and --with-libs are specified, default to |
2896 | # --without-newlib. | |
09ebdaf7 RS |
2897 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2898 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
bafecfd6 NN |
2899 | if test x"${with_newlib}" = x ; then |
2900 | with_newlib=no | |
2901 | fi | |
a3acbf46 RH |
2902 | fi |
2903 | ||
bafecfd6 NN |
2904 | # Recognize --with-newlib/--without-newlib. |
2905 | case ${with_newlib} in | |
2906 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2907 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2908 | esac | |
a3acbf46 | 2909 | |
fe508576 CV |
2910 | # Check whether --enable-as-accelerator-for was given. |
2911 | if test "${enable_as_accelerator_for+set}" = set; then : | |
2912 | enableval=$enable_as_accelerator_for; | |
2913 | fi | |
2914 | ||
2915 | ||
2916 | # Check whether --enable-offload-targets was given. | |
2917 | if test "${enable_offload_targets+set}" = set; then : | |
2918 | enableval=$enable_offload_targets; | |
2919 | if test x"$enable_offload_targets" = x; then | |
2920 | as_fn_error "no offload targets specified" "$LINENO" 5 | |
2921 | fi | |
2922 | ||
2923 | else | |
2924 | enable_offload_targets= | |
2925 | fi | |
2926 | ||
2927 | ||
679e4c82 NC |
2928 | # Handle --enable-gold, --enable-ld. |
2929 | # --disable-gold [--enable-ld] | |
2930 | # Build only ld. Default option. | |
6805373e L |
2931 | # --enable-gold [--enable-ld] |
2932 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2933 | # as "ld.bfd" and "ld". | |
2934 | # --enable-gold=default [--enable-ld] | |
679e4c82 NC |
2935 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2936 | # install ld as "ld.bfd". | |
2937 | # --enable-gold[=default] --disable-ld | |
2938 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2939 | # --enable-gold --enable-ld=default | |
6805373e L |
2940 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2941 | # and ld.bfd). | |
679e4c82 NC |
2942 | # In other words, ld is default |
2943 | # --enable-gold=default --enable-ld=default | |
2944 | # Error. | |
2945 | ||
2946 | default_ld= | |
efd58f08 RW |
2947 | # Check whether --enable-gold was given. |
2948 | if test "${enable_gold+set}" = set; then : | |
2949 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
b916272a ILT |
2950 | else |
2951 | ENABLE_GOLD=no | |
efd58f08 RW |
2952 | fi |
2953 | ||
679e4c82 NC |
2954 | case "${ENABLE_GOLD}" in |
2955 | yes|default) | |
32c2e09b NC |
2956 | # Check for ELF target. |
2957 | is_elf=no | |
2958 | case "${target}" in | |
2959 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
0d6e26f8 | 2960 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
573c698a | 2961 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
7400cd5b | 2962 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
32c2e09b NC |
2963 | case "${target}" in |
2964 | *-*-linux*aout* | *-*-linux*oldld*) | |
2965 | ;; | |
2966 | *) | |
2967 | is_elf=yes | |
2968 | ;; | |
2969 | esac | |
2970 | esac | |
2971 | ||
2972 | if test "$is_elf" = "yes"; then | |
2973 | # Check for target supported by gold. | |
b916272a | 2974 | case "${target}" in |
fe508576 CV |
2975 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
2976 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) | |
679e4c82 NC |
2977 | configdirs="$configdirs gold" |
2978 | if test x${ENABLE_GOLD} = xdefault; then | |
2979 | default_ld=gold | |
2980 | fi | |
32c2e09b | 2981 | ENABLE_GOLD=yes |
b916272a ILT |
2982 | ;; |
2983 | esac | |
32c2e09b NC |
2984 | fi |
2985 | ;; | |
2986 | no) | |
2987 | ;; | |
2988 | *) | |
2989 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2990 | ;; | |
679e4c82 NC |
2991 | esac |
2992 | ||
2993 | # Check whether --enable-ld was given. | |
2994 | if test "${enable_ld+set}" = set; then : | |
2995 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2996 | else | |
2997 | ENABLE_LD=yes | |
2998 | fi | |
2999 | ||
3000 | ||
3001 | case "${ENABLE_LD}" in | |
3002 | default) | |
6805373e | 3003 | if test x${default_ld} != x; then |
679e4c82 NC |
3004 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
3005 | fi | |
3006 | ;; | |
3007 | yes) | |
3008 | ;; | |
3009 | no) | |
3010 | if test x${ENABLE_GOLD} != xyes; then | |
3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3012 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3013 | fi | |
3014 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3015 | ;; | |
3016 | *) | |
3017 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
3018 | ;; | |
3019 | esac | |
b916272a | 3020 | |
fe508576 CV |
3021 | # PR gas/19109 |
3022 | # Decide the default method for compressing debug sections. | |
3023 | # Provide a configure time option to override our default. | |
3024 | # Check whether --enable-compressed_debug_sections was given. | |
3025 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3026 | enableval=$enable_compressed_debug_sections; | |
3027 | if test x"$enable_compressed_debug_sections" = xyes; then | |
3028 | as_fn_error "no program with compressed debug sections specified" "$LINENO" 5 | |
3029 | fi | |
3030 | ||
3031 | else | |
3032 | enable_compressed_debug_sections= | |
3033 | fi | |
3034 | ||
3035 | ||
bafecfd6 | 3036 | # Configure extra directories which are host specific |
a3acbf46 | 3037 | |
bafecfd6 NN |
3038 | case "${host}" in |
3039 | *-cygwin*) | |
3040 | configdirs="$configdirs libtermcap" ;; | |
3041 | esac | |
a3acbf46 | 3042 | |
aac893c5 HPN |
3043 | # A target can indicate whether a language isn't supported for some reason. |
3044 | # Only spaces may be used in this macro; not newlines or tabs. | |
3045 | unsupported_languages= | |
3046 | ||
b58b6ee1 | 3047 | # Remove more programs from consideration, based on the host or |
bafecfd6 NN |
3048 | # target this usually means that a port of the program doesn't |
3049 | # exist yet. | |
a3acbf46 | 3050 | |
bafecfd6 | 3051 | case "${host}" in |
4e55c4e3 | 3052 | i[3456789]86-*-msdosdjgpp*) |
44dabc08 | 3053 | noconfigdirs="$noconfigdirs tcl tk itcl" |
bafecfd6 | 3054 | ;; |
bafecfd6 | 3055 | esac |
a3acbf46 | 3056 | |
cb2333e8 | 3057 | |
d4b54911 PB |
3058 | # Check whether --enable-libquadmath was given. |
3059 | if test "${enable_libquadmath+set}" = set; then : | |
3060 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3061 | else | |
3062 | ENABLE_LIBQUADMATH=yes | |
3063 | fi | |
3064 | ||
3065 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3066 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3067 | fi | |
3068 | ||
3069 | ||
3070 | # Check whether --enable-libquadmath-support was given. | |
3071 | if test "${enable_libquadmath_support+set}" = set; then : | |
3072 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3073 | else | |
3074 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3075 | fi | |
3076 | ||
3077 | enable_libquadmath_support= | |
3078 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3079 | enable_libquadmath_support=no | |
3080 | fi | |
3081 | ||
3082 | ||
efd58f08 RW |
3083 | # Check whether --enable-libada was given. |
3084 | if test "${enable_libada+set}" = set; then : | |
3085 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
d832a288 DD |
3086 | else |
3087 | ENABLE_LIBADA=yes | |
efd58f08 RW |
3088 | fi |
3089 | ||
d832a288 | 3090 | if test "${ENABLE_LIBADA}" != "yes" ; then |
7fc2ca22 | 3091 | noconfigdirs="$noconfigdirs gnattools" |
d832a288 DD |
3092 | fi |
3093 | ||
efd58f08 RW |
3094 | # Check whether --enable-libssp was given. |
3095 | if test "${enable_libssp+set}" = set; then : | |
3096 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
fa19ba07 KH |
3097 | else |
3098 | ENABLE_LIBSSP=yes | |
efd58f08 RW |
3099 | fi |
3100 | ||
fa19ba07 | 3101 | |
5ec30f78 L |
3102 | # Check whether --enable-libstdcxx was given. |
3103 | if test "${enable_libstdcxx+set}" = set; then : | |
3104 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3105 | else | |
3106 | ENABLE_LIBSTDCXX=default | |
3107 | fi | |
3108 | ||
3109 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
fe508576 CV |
3110 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
3111 | fi | |
3112 | ||
3113 | # If this is accelerator compiler and its target is intelmic we enable | |
3114 | # target liboffloadmic by default. If this is compiler with offloading | |
3115 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3116 | # liboffloadmic is disabled by default. | |
3117 | # Check whether --enable-liboffloadmic was given. | |
3118 | if test "${enable_liboffloadmic+set}" = set; then : | |
3119 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3120 | no | host | target) | |
3121 | enable_liboffloadmic=$enableval ;; | |
3122 | *) | |
3123 | as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; | |
3124 | esac | |
3125 | else | |
3126 | if test x"$enable_as_accelerator_for" != x; then | |
3127 | case "${target}" in | |
3128 | *-intelmic-* | *-intelmicemul-*) | |
3129 | enable_liboffloadmic=target | |
3130 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3131 | ;; | |
3132 | *) | |
3133 | enable_liboffloadmic=no | |
3134 | ;; | |
3135 | esac | |
3136 | else | |
3137 | case "${enable_offload_targets}" in | |
3138 | *-intelmic-* | *-intelmicemul-*) | |
3139 | enable_liboffloadmic=host | |
3140 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3141 | ;; | |
3142 | *) | |
3143 | enable_liboffloadmic=no | |
3144 | ;; | |
3145 | esac | |
3146 | fi | |
5ec30f78 L |
3147 | fi |
3148 | ||
fe508576 CV |
3149 | |
3150 | ||
bafecfd6 NN |
3151 | # Save it here so that, even in case of --enable-libgcj, if the Java |
3152 | # front-end isn't enabled, we still get libgcj disabled. | |
3153 | libgcj_saved=$libgcj | |
3154 | case $enable_libgcj in | |
3155 | yes) | |
3156 | # If we reset it here, it won't get added to noconfigdirs in the | |
3157 | # target-specific build rules, so it will be forcibly enabled | |
3158 | # (unless the Java language itself isn't enabled). | |
3159 | libgcj= | |
3160 | ;; | |
3161 | no) | |
3162 | # Make sure we get it printed in the list of not supported target libs. | |
77a5d6cc ILT |
3163 | # Don't disable libffi, though, other languages use it. |
3164 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
8acbc359 ILT |
3165 | # Clear libgcj_saved so that even if java is enabled libffi won't be |
3166 | # built. | |
3167 | libgcj_saved= | |
bafecfd6 NN |
3168 | ;; |
3169 | esac | |
a3acbf46 | 3170 | |
c9161585 ILT |
3171 | # Check whether --enable-static-libjava was given. |
3172 | if test "${enable_static_libjava+set}" = set; then : | |
3173 | enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval | |
3174 | else | |
3175 | ENABLE_STATIC_LIBJAVA=no | |
3176 | fi | |
3177 | ||
3178 | enable_static_libjava= | |
3179 | if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then | |
3180 | enable_static_libjava=yes | |
3181 | fi | |
3182 | ||
3183 | if test x$enable_static_libjava != xyes ; then | |
3184 | EXTRA_CONFIGARGS_LIBJAVA=--disable-static | |
3185 | fi | |
3186 | ||
cb2333e8 | 3187 | |
fe508576 | 3188 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
f621a0dc | 3189 | if test x$enable_libgomp = x ; then |
00bc9d7f | 3190 | case "${target}" in |
9f8da9ce | 3191 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
00bc9d7f | 3192 | ;; |
573c698a | 3193 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
00bc9d7f | 3194 | ;; |
d3f6480e | 3195 | *-*-solaris2* | *-*-hpux11*) |
00bc9d7f PB |
3196 | ;; |
3197 | *-*-darwin* | *-*-aix*) | |
3198 | ;; | |
fe508576 CV |
3199 | nvptx*-*-*) |
3200 | ;; | |
00bc9d7f PB |
3201 | *) |
3202 | noconfigdirs="$noconfigdirs target-libgomp" | |
3203 | ;; | |
3204 | esac | |
f621a0dc | 3205 | fi |
00bc9d7f | 3206 | |
a626f4ee L |
3207 | # Disable libatomic on unsupported systems. |
3208 | if test -d ${srcdir}/libatomic; then | |
3209 | if test x$enable_libatomic = x; then | |
3210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3211 | $as_echo_n "checking for libatomic support... " >&6; } | |
3212 | if (srcdir=${srcdir}/libatomic; \ | |
3213 | . ${srcdir}/configure.tgt; \ | |
3214 | test -n "$UNSUPPORTED") | |
3215 | then | |
3216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3217 | $as_echo "no" >&6; } | |
3218 | noconfigdirs="$noconfigdirs target-libatomic" | |
3219 | else | |
3220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3221 | $as_echo "yes" >&6; } | |
3222 | fi | |
3223 | fi | |
3224 | fi | |
3225 | ||
fe508576 CV |
3226 | # Disable libcilkrts on unsupported systems. |
3227 | if test -d ${srcdir}/libcilkrts; then | |
3228 | if test x$enable_libcilkrts = x; then | |
3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5 | |
3230 | $as_echo_n "checking for libcilkrts support... " >&6; } | |
3231 | if (srcdir=${srcdir}/libcilkrts; \ | |
3232 | . ${srcdir}/configure.tgt; \ | |
3233 | test -n "$UNSUPPORTED") | |
3234 | then | |
3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3236 | $as_echo "no" >&6; } | |
3237 | noconfigdirs="$noconfigdirs target-libcilkrts" | |
3238 | else | |
3239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3240 | $as_echo "yes" >&6; } | |
3241 | fi | |
3242 | fi | |
3243 | fi | |
3244 | ||
3245 | # Disable liboffloadmic on unsupported systems. | |
3246 | if test -d ${srcdir}/liboffloadmic; then | |
3247 | if test x$enable_liboffloadmic != xno; then | |
3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3249 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3250 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3251 | . ${srcdir}/configure.tgt; \ | |
3252 | test -n "$UNSUPPORTED") | |
3253 | then | |
3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3255 | $as_echo "no" >&6; } | |
3256 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3257 | else | |
3258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3259 | $as_echo "yes" >&6; } | |
3260 | fi | |
3261 | fi | |
3262 | fi | |
3263 | ||
068a111a RH |
3264 | # Disable libitm on unsupported systems. |
3265 | if test -d ${srcdir}/libitm; then | |
3266 | if test x$enable_libitm = x; then | |
3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3268 | $as_echo_n "checking for libitm support... " >&6; } | |
3269 | if (srcdir=${srcdir}/libitm; \ | |
3270 | . ${srcdir}/configure.tgt; \ | |
3271 | test -n "$UNSUPPORTED") | |
3272 | then | |
3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3274 | $as_echo "no" >&6; } | |
3275 | noconfigdirs="$noconfigdirs target-libitm" | |
3276 | else | |
3277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3278 | $as_echo "yes" >&6; } | |
3279 | fi | |
3280 | fi | |
3281 | fi | |
3282 | ||
5094cf21 L |
3283 | # Disable libsanitizer on unsupported systems. |
3284 | if test -d ${srcdir}/libsanitizer; then | |
3285 | if test x$enable_libsanitizer = x; then | |
3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3287 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3288 | if (srcdir=${srcdir}/libsanitizer; \ | |
3289 | . ${srcdir}/configure.tgt; \ | |
3290 | test -n "$UNSUPPORTED") | |
3291 | then | |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3293 | $as_echo "no" >&6; } | |
3294 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3295 | else | |
3296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3297 | $as_echo "yes" >&6; } | |
3298 | fi | |
3299 | fi | |
3300 | fi | |
3301 | ||
111ced6d JBG |
3302 | # Disable libvtv on unsupported systems. |
3303 | if test -d ${srcdir}/libvtv; then | |
3304 | if test x$enable_libvtv = x; then | |
3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3306 | $as_echo_n "checking for libvtv support... " >&6; } | |
3307 | if (srcdir=${srcdir}/libvtv; \ | |
3308 | . ${srcdir}/configure.tgt; \ | |
3309 | test "$VTV_SUPPORTED" != "yes") | |
3310 | then | |
3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3312 | $as_echo "no" >&6; } | |
3313 | noconfigdirs="$noconfigdirs target-libvtv" | |
3314 | else | |
3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3316 | $as_echo "yes" >&6; } | |
3317 | fi | |
3318 | fi | |
3319 | fi | |
3320 | ||
fe508576 CV |
3321 | |
3322 | # Enable libmpx on supported systems by request. | |
3323 | if test -d ${srcdir}/libmpx; then | |
3324 | if test x$enable_libmpx = x; then | |
3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5 | |
3326 | $as_echo_n "checking for libmpx support... " >&6; } | |
3327 | if (srcdir=${srcdir}/libmpx; \ | |
3328 | . ${srcdir}/configure.tgt; \ | |
3329 | test "$LIBMPX_SUPPORTED" != "yes") | |
3330 | then | |
3331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3332 | $as_echo "no" >&6; } | |
3333 | noconfigdirs="$noconfigdirs target-libmpx" | |
3334 | else | |
3335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3336 | $as_echo "yes" >&6; } | |
3337 | fi | |
3338 | fi | |
3339 | fi | |
3340 | ||
3341 | ||
3342 | ||
ddb7b65a DE |
3343 | # Disable libquadmath for some systems. |
3344 | case "${target}" in | |
5094cf21 L |
3345 | avr-*-*) |
3346 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3347 | ;; | |
ddb7b65a DE |
3348 | # libquadmath is unused on AIX and libquadmath build process use of |
3349 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3350 | powerpc-*-aix* | rs6000-*-aix*) | |
3351 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3352 | ;; | |
3353 | esac | |
3354 | ||
d36ed46d JM |
3355 | # Disable libssp for some systems. |
3356 | case "${target}" in | |
3357 | avr-*-*) | |
e974e7a0 | 3358 | # No hosted I/O support. |
d36ed46d JM |
3359 | noconfigdirs="$noconfigdirs target-libssp" |
3360 | ;; | |
3361 | powerpc-*-aix* | rs6000-*-aix*) | |
3362 | noconfigdirs="$noconfigdirs target-libssp" | |
3363 | ;; | |
a4cff05a | 3364 | rl78-*-*) |
0c910152 NC |
3365 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3366 | # doesn't fault for those - instead, it gives a build-time error | |
3367 | # for explicit misaligned loads. | |
a4cff05a DD |
3368 | noconfigdirs="$noconfigdirs target-libssp" |
3369 | ;; | |
fe508576 CV |
3370 | visium-*-*) |
3371 | # No hosted I/O support. | |
3372 | noconfigdirs="$noconfigdirs target-libssp" | |
3373 | ;; | |
d36ed46d JM |
3374 | esac |
3375 | ||
d36ed46d | 3376 | # Disable libstdc++-v3 for some systems. |
5ec30f78 L |
3377 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3378 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3379 | case "${target}" in | |
3380 | *-*-vxworks*) | |
3381 | # VxWorks uses the Dinkumware C++ library. | |
3382 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3383 | ;; | |
3384 | arm*-wince-pe*) | |
3385 | # the C++ libraries don't build on top of CE's C libraries | |
3386 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3387 | ;; | |
3388 | avr-*-*) | |
3389 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3390 | ;; | |
fe508576 CV |
3391 | ft32-*-*) |
3392 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3393 | ;; | |
5ec30f78 L |
3394 | esac |
3395 | fi | |
d36ed46d JM |
3396 | |
3397 | # Disable Fortran for some systems. | |
3398 | case "${target}" in | |
3399 | mmix-*-*) | |
3400 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3401 | unsupported_languages="$unsupported_languages fortran" | |
3402 | ;; | |
3403 | esac | |
3404 | ||
fdb1f028 | 3405 | # Disable Java if libffi is not supported. |
4819e64b | 3406 | case "${target}" in |
35b79fa5 JBG |
3407 | aarch64-*-*) |
3408 | ;; | |
fdb1f028 JM |
3409 | alpha*-*-*) |
3410 | ;; | |
3411 | arm*-*-*) | |
3412 | ;; | |
3413 | cris-*-*) | |
3414 | ;; | |
3415 | frv-*-*) | |
3416 | ;; | |
3417 | hppa*-*-linux*) | |
3418 | ;; | |
3419 | hppa*-*-hpux*) | |
3420 | ;; | |
3421 | i?86-*-*) | |
3422 | ;; | |
3423 | ia64*-*-*) | |
3424 | ;; | |
3425 | m32r*-*-*) | |
3426 | ;; | |
3427 | m68k-*-*) | |
3428 | ;; | |
d3f6480e | 3429 | mips*-*-rtems*) |
fdb1f028 JM |
3430 | ;; |
3431 | mips*-*-linux*) | |
3432 | ;; | |
3433 | powerpc*-*-linux*) | |
3434 | ;; | |
3435 | powerpc-*-darwin*) | |
3436 | ;; | |
3437 | powerpc-*-aix* | rs6000-*-aix*) | |
3438 | ;; | |
3439 | powerpc-*-freebsd*) | |
3440 | ;; | |
3441 | powerpc64-*-freebsd*) | |
3442 | ;; | |
3443 | powerpc*-*-rtems*) | |
4819e64b | 3444 | ;; |
fdb1f028 JM |
3445 | s390-*-* | s390x-*-*) |
3446 | ;; | |
3447 | sh-*-* | sh[34]*-*-*) | |
3448 | ;; | |
fdb1f028 JM |
3449 | sparc*-*-*) |
3450 | ;; | |
3451 | x86_64-*-*) | |
3452 | ;; | |
3453 | *-*-*) | |
3454 | unsupported_languages="$unsupported_languages java" | |
3455 | ;; | |
3456 | esac | |
3457 | ||
3458 | # Disable Java, libgcj or related libraries for some systems. | |
3459 | case "${target}" in | |
4819e64b JM |
3460 | powerpc-*-darwin*) |
3461 | ;; | |
3462 | i[3456789]86-*-darwin*) | |
3463 | ;; | |
3464 | x86_64-*-darwin[912]*) | |
3465 | ;; | |
3466 | *-*-darwin*) | |
3467 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3468 | ;; | |
4819e64b JM |
3469 | *-*-netware*) |
3470 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3471 | ;; | |
79bb0de3 JJ |
3472 | *-*-phoenix*) |
3473 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3474 | ;; | |
4819e64b JM |
3475 | *-*-rtems*) |
3476 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3477 | ;; | |
3478 | *-*-tpf*) | |
3479 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3480 | ;; | |
3481 | *-*-uclinux*) | |
3482 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3483 | ;; | |
3484 | *-*-vxworks*) | |
3485 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3486 | ;; | |
4819e64b JM |
3487 | alpha*-*-*vms*) |
3488 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3489 | ;; | |
fe508576 CV |
3490 | arm*-*-freebsd*) |
3491 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3492 | ;; | |
fdb1f028 | 3493 | arm-wince-pe) |
4819e64b JM |
3494 | noconfigdirs="$noconfigdirs ${libgcj}" |
3495 | ;; | |
4819e64b JM |
3496 | arm*-*-symbianelf*) |
3497 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3498 | ;; | |
4819e64b | 3499 | bfin-*-*) |
4819e64b JM |
3500 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3501 | ;; | |
4819e64b JM |
3502 | cris-*-* | crisv32-*-*) |
3503 | unsupported_languages="$unsupported_languages java" | |
3504 | case "${target}" in | |
3505 | *-*-linux*) | |
3506 | ;; | |
3507 | *) # See PR46792 regarding target-libffi. | |
3508 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3509 | esac | |
3510 | ;; | |
4819e64b JM |
3511 | hppa*64*-*-linux*) |
3512 | # In this case, it's because the hppa64-linux target is for | |
3513 | # the kernel only at this point and has no libc, and thus no | |
3514 | # headers, crt*.o, etc., all of which are needed by these. | |
530994bd | 3515 | unsupported_languages="$unsupported_languages java" |
4819e64b | 3516 | ;; |
530994bd | 3517 | hppa*64*-*-hpux*) |
4819e64b JM |
3518 | noconfigdirs="$noconfigdirs ${libgcj}" |
3519 | ;; | |
3520 | hppa*-hp-hpux11*) | |
3521 | ;; | |
530994bd | 3522 | hppa*-*-hpux*) |
4819e64b JM |
3523 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't |
3524 | # build on HP-UX 10.20. | |
3525 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3526 | ;; | |
4819e64b JM |
3527 | ia64*-*-*vms*) |
3528 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3529 | ;; | |
4819e64b JM |
3530 | i[3456789]86-w64-mingw*) |
3531 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3532 | ;; | |
3533 | i[3456789]86-*-mingw*) | |
3534 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3535 | ;; | |
3536 | x86_64-*-mingw*) | |
3537 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3538 | ;; | |
4819e64b JM |
3539 | mmix-*-*) |
3540 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
4819e64b JM |
3541 | ;; |
3542 | powerpc-*-aix*) | |
3543 | # copied from rs6000-*-* entry | |
3544 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3545 | ;; | |
4819e64b JM |
3546 | rs6000-*-aix*) |
3547 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3548 | ;; | |
fe508576 CV |
3549 | ft32-*-*) |
3550 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3551 | ;; | |
4819e64b JM |
3552 | *-*-lynxos*) |
3553 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3554 | ;; | |
4819e64b JM |
3555 | esac |
3556 | ||
fe508576 CV |
3557 | # Disable the go frontend on systems where it is known to not work. Please keep |
3558 | # this in sync with contrib/config-list.mk. | |
3559 | case "${target}" in | |
3560 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) | |
3561 | unsupported_languages="$unsupported_languages go" | |
3562 | ;; | |
3563 | esac | |
3564 | ||
51ab11f7 ILT |
3565 | # Disable libgo for some systems where it is known to not work. |
3566 | # For testing, you can easily override this with --enable-libgo. | |
3567 | if test x$enable_libgo = x; then | |
3568 | case "${target}" in | |
3569 | *-*-darwin*) | |
3570 | # PR 46986 | |
3571 | noconfigdirs="$noconfigdirs target-libgo" | |
3572 | ;; | |
3573 | *-*-cygwin* | *-*-mingw*) | |
3574 | noconfigdirs="$noconfigdirs target-libgo" | |
3575 | ;; | |
3576 | *-*-aix*) | |
3577 | noconfigdirs="$noconfigdirs target-libgo" | |
3578 | ;; | |
3579 | esac | |
3580 | fi | |
3581 | ||
46093329 DD |
3582 | # Default libgloss CPU subdirectory. |
3583 | libgloss_dir="$target_cpu" | |
cb2333e8 | 3584 | |
3c348668 JM |
3585 | case "${target}" in |
3586 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3587 | libgloss_dir=wince | |
3588 | ;; | |
34969368 YZ |
3589 | aarch64*-*-* ) |
3590 | libgloss_dir=aarch64 | |
3591 | ;; | |
3c348668 JM |
3592 | arm*-*-*) |
3593 | libgloss_dir=arm | |
3594 | ;; | |
3595 | cris-*-* | crisv32-*-*) | |
3596 | libgloss_dir=cris | |
3597 | ;; | |
3598 | hppa*-*-*) | |
3599 | libgloss_dir=pa | |
3600 | ;; | |
3601 | i[3456789]86-*-*) | |
3602 | libgloss_dir=i386 | |
3603 | ;; | |
3604 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3605 | libgloss_dir=m68hc11 | |
3606 | ;; | |
3607 | m68*-*-* | fido-*-*) | |
3608 | libgloss_dir=m68k | |
3609 | ;; | |
3610 | mips*-*-*) | |
3611 | libgloss_dir=mips | |
3612 | ;; | |
3613 | powerpc*-*-*) | |
3614 | libgloss_dir=rs6000 | |
3615 | ;; | |
3616 | sparc*-*-*) | |
3617 | libgloss_dir=sparc | |
3618 | ;; | |
3619 | esac | |
3620 | ||
25c50222 | 3621 | # Disable newlib and libgloss for various target OSes. |
bafecfd6 | 3622 | case "${target}" in |
25c50222 JM |
3623 | alpha*-dec-osf*) |
3624 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3625 | ;; | |
3626 | i[3456789]86-*-linux*) | |
3627 | # This section makes it possible to build newlib natively on linux. | |
3628 | # If we are using a cross compiler then don't configure newlib. | |
3629 | if test x${is_cross_compiler} != xno ; then | |
3630 | noconfigdirs="$noconfigdirs target-newlib" | |
3631 | fi | |
3632 | noconfigdirs="$noconfigdirs target-libgloss" | |
3633 | # If we are not using a cross compiler, do configure newlib. | |
3634 | # Note however, that newlib will only be configured in this situation | |
3635 | # if the --with-newlib option has been given, because otherwise | |
3636 | # 'target-newlib' will appear in skipdirs. | |
3637 | ;; | |
3638 | i[3456789]86-*-rdos*) | |
3639 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3640 | ;; | |
3641 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3642 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3643 | ;; | |
3644 | sparc-*-sunos4*) | |
3645 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3646 | ;; | |
3647 | *-*-aix*) | |
3648 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3649 | ;; | |
3650 | *-*-beos*) | |
3651 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3652 | ;; | |
bafecfd6 | 3653 | *-*-chorusos) |
61cc119d | 3654 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
bafecfd6 | 3655 | ;; |
25c50222 JM |
3656 | *-*-dragonfly*) |
3657 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3658 | ;; | |
3659 | *-*-freebsd*) | |
3660 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3661 | ;; | |
3662 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3663 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3664 | ;; | |
3665 | *-*-lynxos*) | |
3666 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3667 | ;; | |
3668 | *-*-mingw*) | |
3669 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3670 | ;; | |
3671 | *-*-netbsd*) | |
3672 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3673 | ;; | |
3674 | *-*-netware*) | |
3675 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3676 | ;; | |
3677 | *-*-tpf*) | |
3678 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3679 | ;; | |
3680 | *-*-uclinux*) | |
3681 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3682 | ;; | |
3683 | *-*-vxworks*) | |
3684 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3685 | ;; | |
3686 | esac | |
3687 | ||
3688 | case "${target}" in | |
3689 | *-*-chorusos) | |
3690 | ;; | |
fe508576 CV |
3691 | aarch64-*-darwin*) |
3692 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3693 | noconfigdirs="$noconfigdirs sim target-rda" | |
3694 | ;; | |
3695 | arm-*-darwin*) | |
3696 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3697 | noconfigdirs="$noconfigdirs sim target-rda" | |
3698 | ;; | |
2926fdf5 | 3699 | powerpc-*-darwin*) |
173af0fb | 3700 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
bbaae19b | 3701 | noconfigdirs="$noconfigdirs sim target-rda" |
5f0d49b5 | 3702 | ;; |
41592149 TG |
3703 | i[3456789]86-*-darwin*) |
3704 | noconfigdirs="$noconfigdirs ld gprof" | |
3705 | noconfigdirs="$noconfigdirs sim target-rda" | |
3706 | ;; | |
121f0eb2 | 3707 | x86_64-*-darwin[912]*) |
5f0d49b5 TG |
3708 | noconfigdirs="$noconfigdirs ld gas gprof" |
3709 | noconfigdirs="$noconfigdirs sim target-rda" | |
44dc96d1 | 3710 | ;; |
4b649dd9 | 3711 | *-*-darwin*) |
56fa0798 | 3712 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
bbaae19b | 3713 | noconfigdirs="$noconfigdirs sim target-rda" |
4b649dd9 | 3714 | ;; |
573c698a | 3715 | *-*-dragonfly*) |
573c698a | 3716 | ;; |
eb2d1dee | 3717 | *-*-freebsd*) |
cb2333e8 DD |
3718 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3719 | && test -f /usr/local/include/gmp.h; then | |
3720 | with_gmp=/usr/local | |
3721 | fi | |
cb2333e8 | 3722 | ;; |
5cd57f01 NC |
3723 | *-*-kaos*) |
3724 | # Remove unsupported stuff on all kaOS configurations. | |
5cd57f01 NC |
3725 | noconfigdirs="$noconfigdirs target-libgloss" |
3726 | ;; | |
bafecfd6 | 3727 | *-*-netbsd*) |
bafecfd6 | 3728 | ;; |
b330724f | 3729 | *-*-netware*) |
bafecfd6 | 3730 | ;; |
79bb0de3 JJ |
3731 | *-*-phoenix*) |
3732 | noconfigdirs="$noconfigdirs target-libgloss" | |
3733 | ;; | |
bafecfd6 | 3734 | *-*-rtems*) |
4819e64b | 3735 | noconfigdirs="$noconfigdirs target-libgloss" |
fe508576 CV |
3736 | # this is not caught below because this stanza matches earlier |
3737 | case $target in | |
3738 | or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;; | |
3739 | esac | |
bafecfd6 | 3740 | ;; |
3d93afbc EC |
3741 | # The tpf target doesn't support gdb yet. |
3742 | *-*-tpf*) | |
25c50222 | 3743 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
3d93afbc | 3744 | ;; |
1fb9256d | 3745 | *-*-uclinux*) |
25c50222 | 3746 | noconfigdirs="$noconfigdirs target-rda" |
1fb9256d | 3747 | ;; |
bafecfd6 | 3748 | *-*-vxworks*) |
bafecfd6 NN |
3749 | ;; |
3750 | alpha*-dec-osf*) | |
3751 | # ld works, but does not support shared libraries. | |
bafecfd6 | 3752 | # gas doesn't generate exception information. |
25c50222 | 3753 | noconfigdirs="$noconfigdirs gas ld" |
bafecfd6 NN |
3754 | ;; |
3755 | alpha*-*-*vms*) | |
4819e64b | 3756 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
bafecfd6 | 3757 | ;; |
bafecfd6 NN |
3758 | alpha*-*-*) |
3759 | # newlib is not 64 bit ready | |
4819e64b | 3760 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
bafecfd6 | 3761 | ;; |
bafecfd6 | 3762 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
44397772 | 3763 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
bafecfd6 | 3764 | ;; |
bafecfd6 | 3765 | arm-*-pe*) |
4819e64b | 3766 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 | 3767 | ;; |
bafecfd6 | 3768 | arm-*-riscix*) |
61cc119d | 3769 | noconfigdirs="$noconfigdirs ld target-libgloss" |
bafecfd6 | 3770 | ;; |
125bb3c9 L |
3771 | avr-*-*) |
3772 | if test x${with_avrlibc} != xno; then | |
3773 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3774 | fi | |
3775 | ;; | |
bafecfd6 | 3776 | c4x-*-* | tic4x-*-*) |
61cc119d | 3777 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 | 3778 | ;; |
61cc119d JM |
3779 | tic54x-*-*) |
3780 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
bafecfd6 | 3781 | ;; |
bafecfd6 | 3782 | d10v-*-*) |
61cc119d | 3783 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 NN |
3784 | ;; |
3785 | d30v-*-*) | |
61cc119d | 3786 | noconfigdirs="$noconfigdirs gdb" |
bafecfd6 NN |
3787 | ;; |
3788 | fr30-*-elf*) | |
4819e64b | 3789 | noconfigdirs="$noconfigdirs gdb" |
bafecfd6 | 3790 | ;; |
fe508576 CV |
3791 | ft32-*-*) |
3792 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3793 | ;; | |
cc074893 | 3794 | moxie-*-*) |
fe508576 | 3795 | noconfigdirs="$noconfigdirs" |
cc074893 | 3796 | ;; |
bafecfd6 | 3797 | h8300*-*-*) |
4819e64b | 3798 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 NN |
3799 | ;; |
3800 | h8500-*-*) | |
61cc119d | 3801 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 | 3802 | ;; |
3d439922 | 3803 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
3d439922 | 3804 | ;; |
fe508576 CV |
3805 | hppa*64*-*-hpux*) |
3806 | noconfigdirs="$noconfigdirs gdb" | |
3807 | ;; | |
3808 | hppa*-*-hpux11*) | |
3809 | noconfigdirs="$noconfigdirs gdb ld" | |
3810 | ;; | |
3d4d1d30 | 3811 | hppa*64*-*-linux*) |
bafecfd6 | 3812 | ;; |
4fcb78d9 | 3813 | hppa*-*-linux*) |
53af4f25 | 3814 | ;; |
bafecfd6 | 3815 | hppa*-*-*elf* | \ |
bafecfd6 NN |
3816 | hppa*-*-lites* | \ |
3817 | hppa*-*-openbsd* | \ | |
3818 | hppa*64*-*-*) | |
e1e5148c | 3819 | ;; |
46093329 | 3820 | hppa*-*-pro*) |
46093329 | 3821 | ;; |
bafecfd6 | 3822 | hppa*-*-*) |
4819e64b | 3823 | noconfigdirs="$noconfigdirs ld" |
bafecfd6 | 3824 | ;; |
7e269125 | 3825 | i960-*-*) |
61cc119d | 3826 | noconfigdirs="$noconfigdirs gdb" |
7e269125 | 3827 | ;; |
bafecfd6 NN |
3828 | ia64*-*-elf*) |
3829 | # No gdb support yet. | |
5b45e8c9 | 3830 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
bafecfd6 NN |
3831 | ;; |
3832 | ia64*-**-hpux*) | |
e82bcd79 | 3833 | # No ld support yet. |
fe508576 | 3834 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
bafecfd6 | 3835 | ;; |
608adbed | 3836 | ia64*-*-*vms*) |
a626f4ee L |
3837 | # No ld support yet. |
3838 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
608adbed | 3839 | ;; |
5074489a | 3840 | i[3456789]86-w64-mingw*) |
5074489a AO |
3841 | ;; |
3842 | i[3456789]86-*-mingw*) | |
bc668665 | 3843 | target_configdirs="$target_configdirs target-winsup" |
b58b6ee1 | 3844 | ;; |
bafecfd6 NN |
3845 | *-*-cygwin*) |
3846 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
5b45e8c9 | 3847 | noconfigdirs="$noconfigdirs target-libgloss" |
99dbec4c | 3848 | # always build newlib if winsup directory is present. |
bc668665 | 3849 | if test -d "$srcdir/winsup/cygwin"; then |
99dbec4c | 3850 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
4ea74b34 | 3851 | elif test -d "$srcdir/newlib"; then |
bc668665 | 3852 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
99dbec4c | 3853 | fi |
b58b6ee1 | 3854 | ;; |
08049c01 | 3855 | i[3456789]86-*-pe) |
9aedc1d4 | 3856 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 | 3857 | ;; |
08049c01 | 3858 | i[3456789]86-*-sco3.2v5*) |
bafecfd6 NN |
3859 | # The linker does not yet know about weak symbols in COFF, |
3860 | # and is not configured to handle mixed ELF and COFF. | |
61cc119d | 3861 | noconfigdirs="$noconfigdirs ld target-libgloss" |
bafecfd6 | 3862 | ;; |
08049c01 | 3863 | i[3456789]86-*-sco*) |
61cc119d | 3864 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
bafecfd6 | 3865 | ;; |
da2cf961 | 3866 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
bafecfd6 NN |
3867 | noconfigdirs="$noconfigdirs target-libgloss" |
3868 | ;; | |
08049c01 | 3869 | i[3456789]86-*-sysv4*) |
61cc119d | 3870 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 | 3871 | ;; |
08049c01 | 3872 | i[3456789]86-*-beos*) |
25c50222 | 3873 | noconfigdirs="$noconfigdirs gdb" |
2245eb63 | 3874 | ;; |
22d7108e | 3875 | i[3456789]86-*-rdos*) |
25c50222 | 3876 | noconfigdirs="$noconfigdirs gdb" |
46093329 | 3877 | ;; |
bafecfd6 | 3878 | mmix-*-*) |
4819e64b | 3879 | noconfigdirs="$noconfigdirs gdb" |
bafecfd6 | 3880 | ;; |
74ecef0d | 3881 | mt-*-*) |
66cb6a19 AH |
3882 | noconfigdirs="$noconfigdirs sim" |
3883 | ;; | |
bafecfd6 NN |
3884 | powerpc-*-aix*) |
3885 | # copied from rs6000-*-* entry | |
25c50222 | 3886 | noconfigdirs="$noconfigdirs gprof" |
bafecfd6 | 3887 | ;; |
3d4d1d30 | 3888 | powerpc*-*-winnt* | powerpc*-*-pe*) |
bafecfd6 | 3889 | target_configdirs="$target_configdirs target-winsup" |
61cc119d | 3890 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
bafecfd6 NN |
3891 | # always build newlib. |
3892 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3893 | ;; | |
3894 | # This is temporary until we can link against shared libraries | |
3895 | powerpcle-*-solaris*) | |
61cc119d | 3896 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
bafecfd6 NN |
3897 | ;; |
3898 | powerpc-*-beos*) | |
25c50222 | 3899 | noconfigdirs="$noconfigdirs gdb" |
bafecfd6 | 3900 | ;; |
bafecfd6 | 3901 | rs6000-*-lynxos*) |
25c50222 | 3902 | noconfigdirs="$noconfigdirs gprof" |
bafecfd6 NN |
3903 | ;; |
3904 | rs6000-*-aix*) | |
25c50222 | 3905 | noconfigdirs="$noconfigdirs gprof" |
bafecfd6 NN |
3906 | ;; |
3907 | rs6000-*-*) | |
4819e64b | 3908 | noconfigdirs="$noconfigdirs gprof" |
bafecfd6 NN |
3909 | ;; |
3910 | m68k-apollo-*) | |
61cc119d | 3911 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
bafecfd6 | 3912 | ;; |
45f03e33 | 3913 | microblaze*) |
4819e64b | 3914 | noconfigdirs="$noconfigdirs gprof" |
45f03e33 | 3915 | ;; |
fe508576 | 3916 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
524e4570 RS |
3917 | if test x$with_newlib = xyes; then |
3918 | noconfigdirs="$noconfigdirs gprof" | |
3919 | fi | |
524e4570 | 3920 | ;; |
bafecfd6 | 3921 | mips*-*-irix5*) |
61cc119d | 3922 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
bafecfd6 NN |
3923 | ;; |
3924 | mips*-*-irix6*) | |
4819e64b | 3925 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
bafecfd6 | 3926 | ;; |
bafecfd6 | 3927 | mips*-*-bsd*) |
b5627d2e | 3928 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
bafecfd6 | 3929 | ;; |
bafecfd6 | 3930 | mips*-*-linux*) |
bafecfd6 | 3931 | ;; |
b5627d2e RS |
3932 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3933 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3934 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3935 | ;; | |
bafecfd6 | 3936 | mips*-*-*) |
4819e64b | 3937 | noconfigdirs="$noconfigdirs gprof" |
bafecfd6 | 3938 | ;; |
fe508576 CV |
3939 | nds32*-*-*) |
3940 | noconfigdirs="$noconfigdirs gdb" | |
3941 | ;; | |
3942 | nvptx*-*-*) | |
3943 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" | |
3944 | ;; | |
3945 | or1k*-*-*) | |
3946 | noconfigdirs="$noconfigdirs gdb" | |
3947 | ;; | |
d5632bcf | 3948 | sh-*-*) |
121f0eb2 RW |
3949 | case "${target}" in |
3950 | sh*-*-elf) | |
4819e64b | 3951 | ;; |
121f0eb2 | 3952 | *) |
4819e64b | 3953 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
121f0eb2 | 3954 | esac |
bafecfd6 | 3955 | ;; |
bafecfd6 | 3956 | sparc-*-sunos4*) |
25c50222 | 3957 | if test x${is_cross_compiler} = xno ; then |
bafecfd6 NN |
3958 | use_gnu_ld=no |
3959 | fi | |
3960 | ;; | |
6315af0f | 3961 | tic6x-*-*) |
a2ffbf1e | 3962 | noconfigdirs="$noconfigdirs sim" |
6315af0f | 3963 | ;; |
fe508576 | 3964 | tilepro*-*-* | tilegx*-*-*) |
f9dd2b32 NC |
3965 | noconfigdirs="$noconfigdirs sim" |
3966 | ;; | |
bafecfd6 | 3967 | v810-*-*) |
61cc119d | 3968 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
bafecfd6 NN |
3969 | ;; |
3970 | vax-*-*) | |
4819e64b | 3971 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
bafecfd6 | 3972 | ;; |
bafecfd6 | 3973 | esac |
a3acbf46 | 3974 | |
bafecfd6 NN |
3975 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3976 | # depends upon some newlib header files. | |
3977 | case "${noconfigdirs}" in | |
3978 | *target-libgloss*) ;; | |
3979 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3980 | esac | |
3981 | ||
bafecfd6 | 3982 | # Work in distributions that contain no compiler tools, like Autoconf. |
bafecfd6 NN |
3983 | host_makefile_frag=/dev/null |
3984 | if test -d ${srcdir}/config ; then | |
3985 | case "${host}" in | |
08049c01 | 3986 | i[3456789]86-*-msdosdjgpp*) |
bafecfd6 NN |
3987 | host_makefile_frag="config/mh-djgpp" |
3988 | ;; | |
3989 | *-cygwin*) | |
981b79bf | 3990 | |
efd58f08 RW |
3991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3992 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
981b79bf | 3993 | echo a >cygwin-cat-check |
5074489a | 3994 | if test `cat cygwin-cat-check` = a ; then |
999fa990 | 3995 | rm cygwin-cat-check |
efd58f08 RW |
3996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3997 | $as_echo "yes" >&6; } | |
981b79bf | 3998 | else |
999fa990 | 3999 | rm cygwin-cat-check |
efd58f08 RW |
4000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4001 | $as_echo "no" >&6; } | |
4002 | as_fn_error "The cat command does not ignore carriage return characters. | |
981b79bf NC |
4003 | Please either mount the build directory in binary mode or run the following |
4004 | commands before running any configure script: | |
4005 | set -o igncr | |
4006 | export SHELLOPTS | |
efd58f08 | 4007 | " "$LINENO" 5 |
981b79bf | 4008 | fi |
981b79bf | 4009 | |
bafecfd6 NN |
4010 | host_makefile_frag="config/mh-cygwin" |
4011 | ;; | |
617c478d | 4012 | *-mingw*) |
fd1c1753 | 4013 | host_makefile_frag="config/mh-mingw" |
6a24f03b | 4014 | ;; |
fe508576 CV |
4015 | alpha*-linux*) |
4016 | host_makefile_frag="config/mh-alpha-linux" | |
4017 | ;; | |
9ad2ea2f | 4018 | hppa*-hp-hpux10*) |
9ad2ea2f | 4019 | host_makefile_frag="config/mh-pa-hpux10" |
bafecfd6 | 4020 | ;; |
4e55c4e3 | 4021 | hppa*-hp-hpux*) |
9ad2ea2f PB |
4022 | host_makefile_frag="config/mh-pa" |
4023 | ;; | |
4024 | hppa*-*) | |
4025 | host_makefile_frag="config/mh-pa" | |
4026 | ;; | |
d5b7129a ILT |
4027 | *-*-darwin*) |
4028 | host_makefile_frag="config/mh-darwin" | |
99df82b9 | 4029 | ;; |
7e958b2e PB |
4030 | powerpc-*-aix*) |
4031 | host_makefile_frag="config/mh-ppc-aix" | |
4032 | ;; | |
4033 | rs6000-*-aix*) | |
4034 | host_makefile_frag="config/mh-ppc-aix" | |
4035 | ;; | |
bafecfd6 NN |
4036 | esac |
4037 | fi | |
4038 | ||
cfc26d93 | 4039 | if test "${build}" != "${host}" ; then |
4413ec01 PB |
4040 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4041 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
cfc26d93 | 4042 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
4413ec01 PB |
4043 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
4044 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
4045 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
d5b7129a | 4046 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
4413ec01 PB |
4047 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4048 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4049 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4050 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4051 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4052 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4053 | else | |
4054 | AR_FOR_BUILD="\$(AR)" | |
4055 | AS_FOR_BUILD="\$(AS)" | |
31839eae | 4056 | CC_FOR_BUILD="\$(CC)" |
4413ec01 PB |
4057 | CXX_FOR_BUILD="\$(CXX)" |
4058 | GCJ_FOR_BUILD="\$(GCJ)" | |
4059 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
d5b7129a | 4060 | GOC_FOR_BUILD="\$(GOC)" |
4413ec01 PB |
4061 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4062 | LD_FOR_BUILD="\$(LD)" | |
4063 | NM_FOR_BUILD="\$(NM)" | |
4064 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4065 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4066 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
b8c26111 PB |
4067 | fi |
4068 | ||
4069 | ac_ext=c | |
b58b6ee1 DJ |
4070 | ac_cpp='$CPP $CPPFLAGS' |
4071 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4072 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4073 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4074 | if test -n "$ac_tool_prefix"; then | |
4075 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4076 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
efd58f08 RW |
4077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4078 | $as_echo_n "checking for $ac_word... " >&6; } | |
4079 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4080 | $as_echo_n "(cached) " >&6 | |
b58b6ee1 DJ |
4081 | else |
4082 | if test -n "$CC"; then | |
4083 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4084 | else | |
4085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4086 | for as_dir in $PATH | |
4087 | do | |
4088 | IFS=$as_save_IFS | |
4089 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
4090 | for ac_exec_ext in '' $ac_executable_extensions; do |
4091 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 4092 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
efd58f08 | 4093 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
4094 | break 2 |
4095 | fi | |
4096 | done | |
efd58f08 RW |
4097 | done |
4098 | IFS=$as_save_IFS | |
b58b6ee1 DJ |
4099 | |
4100 | fi | |
4101 | fi | |
4102 | CC=$ac_cv_prog_CC | |
4103 | if test -n "$CC"; then | |
efd58f08 RW |
4104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4105 | $as_echo "$CC" >&6; } | |
b58b6ee1 | 4106 | else |
efd58f08 RW |
4107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4108 | $as_echo "no" >&6; } | |
b58b6ee1 DJ |
4109 | fi |
4110 | ||
efd58f08 | 4111 | |
b58b6ee1 DJ |
4112 | fi |
4113 | if test -z "$ac_cv_prog_CC"; then | |
4114 | ac_ct_CC=$CC | |
2cb47d68 | 4115 | # Extract the first word of "gcc", so it can be a program name with args. |
cfc26d93 | 4116 | set dummy gcc; ac_word=$2 |
efd58f08 RW |
4117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4118 | $as_echo_n "checking for $ac_word... " >&6; } | |
4119 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4120 | $as_echo_n "(cached) " >&6 | |
b58b6ee1 DJ |
4121 | else |
4122 | if test -n "$ac_ct_CC"; then | |
4123 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4124 | else | |
4125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4126 | for as_dir in $PATH | |
4127 | do | |
4128 | IFS=$as_save_IFS | |
4129 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
4130 | for ac_exec_ext in '' $ac_executable_extensions; do |
4131 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 4132 | ac_cv_prog_ac_ct_CC="gcc" |
efd58f08 | 4133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
4134 | break 2 |
4135 | fi | |
4136 | done | |
efd58f08 RW |
4137 | done |
4138 | IFS=$as_save_IFS | |
b58b6ee1 DJ |
4139 | |
4140 | fi | |
4141 | fi | |
4142 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4143 | if test -n "$ac_ct_CC"; then | |
efd58f08 RW |
4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4145 | $as_echo "$ac_ct_CC" >&6; } | |
b58b6ee1 | 4146 | else |
efd58f08 RW |
4147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4148 | $as_echo "no" >&6; } | |
b58b6ee1 DJ |
4149 | fi |
4150 | ||
efd58f08 RW |
4151 | if test "x$ac_ct_CC" = x; then |
4152 | CC="" | |
4153 | else | |
4154 | case $cross_compiling:$ac_tool_warned in | |
4155 | yes:) | |
4156 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4157 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4158 | ac_tool_warned=yes ;; | |
4159 | esac | |
4160 | CC=$ac_ct_CC | |
4161 | fi | |
b58b6ee1 DJ |
4162 | else |
4163 | CC="$ac_cv_prog_CC" | |
4164 | fi | |
4165 | ||
4166 | if test -z "$CC"; then | |
efd58f08 RW |
4167 | if test -n "$ac_tool_prefix"; then |
4168 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b58b6ee1 | 4169 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
efd58f08 RW |
4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4171 | $as_echo_n "checking for $ac_word... " >&6; } | |
4172 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4173 | $as_echo_n "(cached) " >&6 | |
cfc26d93 NN |
4174 | else |
4175 | if test -n "$CC"; then | |
4176 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4177 | else | |
b58b6ee1 DJ |
4178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4179 | for as_dir in $PATH | |
4180 | do | |
4181 | IFS=$as_save_IFS | |
4182 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
4183 | for ac_exec_ext in '' $ac_executable_extensions; do |
4184 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 4185 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
efd58f08 | 4186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
4187 | break 2 |
4188 | fi | |
4189 | done | |
efd58f08 RW |
4190 | done |
4191 | IFS=$as_save_IFS | |
b58b6ee1 | 4192 | |
cfc26d93 NN |
4193 | fi |
4194 | fi | |
b58b6ee1 | 4195 | CC=$ac_cv_prog_CC |
cfc26d93 | 4196 | if test -n "$CC"; then |
efd58f08 RW |
4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4198 | $as_echo "$CC" >&6; } | |
b58b6ee1 | 4199 | else |
efd58f08 RW |
4200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4201 | $as_echo "no" >&6; } | |
b58b6ee1 DJ |
4202 | fi |
4203 | ||
b58b6ee1 | 4204 | |
efd58f08 | 4205 | fi |
b58b6ee1 | 4206 | fi |
cfc26d93 NN |
4207 | if test -z "$CC"; then |
4208 | # Extract the first word of "cc", so it can be a program name with args. | |
4209 | set dummy cc; ac_word=$2 | |
efd58f08 RW |
4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4211 | $as_echo_n "checking for $ac_word... " >&6; } | |
4212 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4213 | $as_echo_n "(cached) " >&6 | |
cfc26d93 NN |
4214 | else |
4215 | if test -n "$CC"; then | |
4216 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4217 | else | |
cfc26d93 | 4218 | ac_prog_rejected=no |
b58b6ee1 DJ |
4219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4220 | for as_dir in $PATH | |
4221 | do | |
4222 | IFS=$as_save_IFS | |
4223 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
4224 | for ac_exec_ext in '' $ac_executable_extensions; do |
4225 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 DJ |
4226 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4227 | ac_prog_rejected=yes | |
4228 | continue | |
4229 | fi | |
4230 | ac_cv_prog_CC="cc" | |
efd58f08 | 4231 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
4232 | break 2 |
4233 | fi | |
4234 | done | |
efd58f08 RW |
4235 | done |
4236 | IFS=$as_save_IFS | |
b58b6ee1 | 4237 | |
cfc26d93 NN |
4238 | if test $ac_prog_rejected = yes; then |
4239 | # We found a bogon in the path, so make sure we never use it. | |
4240 | set dummy $ac_cv_prog_CC | |
4241 | shift | |
b58b6ee1 | 4242 | if test $# != 0; then |
cfc26d93 NN |
4243 | # We chose a different compiler from the bogus one. |
4244 | # However, it has the same basename, so the bogon will be chosen | |
4245 | # first if we set CC to just the basename; use the full file name. | |
4246 | shift | |
b58b6ee1 | 4247 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
cfc26d93 NN |
4248 | fi |
4249 | fi | |
4250 | fi | |
4251 | fi | |
b58b6ee1 | 4252 | CC=$ac_cv_prog_CC |
cfc26d93 | 4253 | if test -n "$CC"; then |
efd58f08 RW |
4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4255 | $as_echo "$CC" >&6; } | |
cfc26d93 | 4256 | else |
efd58f08 RW |
4257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4258 | $as_echo "no" >&6; } | |
cfc26d93 NN |
4259 | fi |
4260 | ||
efd58f08 | 4261 | |
b58b6ee1 DJ |
4262 | fi |
4263 | if test -z "$CC"; then | |
4264 | if test -n "$ac_tool_prefix"; then | |
efd58f08 | 4265 | for ac_prog in cl.exe |
b58b6ee1 DJ |
4266 | do |
4267 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4268 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
efd58f08 RW |
4269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4270 | $as_echo_n "checking for $ac_word... " >&6; } | |
4271 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4272 | $as_echo_n "(cached) " >&6 | |
cfc26d93 NN |
4273 | else |
4274 | if test -n "$CC"; then | |
4275 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4276 | else | |
b58b6ee1 DJ |
4277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4278 | for as_dir in $PATH | |
4279 | do | |
4280 | IFS=$as_save_IFS | |
4281 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
4282 | for ac_exec_ext in '' $ac_executable_extensions; do |
4283 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 4284 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
efd58f08 | 4285 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 | 4286 | break 2 |
76402c80 | 4287 | fi |
b58b6ee1 | 4288 | done |
efd58f08 RW |
4289 | done |
4290 | IFS=$as_save_IFS | |
f69e2532 | 4291 | |
b58b6ee1 DJ |
4292 | fi |
4293 | fi | |
4294 | CC=$ac_cv_prog_CC | |
4295 | if test -n "$CC"; then | |
efd58f08 RW |
4296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4297 | $as_echo "$CC" >&6; } | |
f69e2532 | 4298 | else |
efd58f08 RW |
4299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4300 | $as_echo "no" >&6; } | |
cfc26d93 | 4301 | fi |
f69e2532 | 4302 | |
efd58f08 | 4303 | |
b58b6ee1 DJ |
4304 | test -n "$CC" && break |
4305 | done | |
f69e2532 | 4306 | fi |
b58b6ee1 DJ |
4307 | if test -z "$CC"; then |
4308 | ac_ct_CC=$CC | |
efd58f08 | 4309 | for ac_prog in cl.exe |
b58b6ee1 DJ |
4310 | do |
4311 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4312 | set dummy $ac_prog; ac_word=$2 | |
efd58f08 RW |
4313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4314 | $as_echo_n "checking for $ac_word... " >&6; } | |
4315 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4316 | $as_echo_n "(cached) " >&6 | |
f69e2532 | 4317 | else |
b58b6ee1 DJ |
4318 | if test -n "$ac_ct_CC"; then |
4319 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
76402c80 | 4320 | else |
b58b6ee1 DJ |
4321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4322 | for as_dir in $PATH | |
4323 | do | |
4324 | IFS=$as_save_IFS | |
4325 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
4326 | for ac_exec_ext in '' $ac_executable_extensions; do |
4327 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 4328 | ac_cv_prog_ac_ct_CC="$ac_prog" |
efd58f08 | 4329 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
4330 | break 2 |
4331 | fi | |
4332 | done | |
efd58f08 RW |
4333 | done |
4334 | IFS=$as_save_IFS | |
b58b6ee1 | 4335 | |
f69e2532 CM |
4336 | fi |
4337 | fi | |
b58b6ee1 DJ |
4338 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4339 | if test -n "$ac_ct_CC"; then | |
efd58f08 RW |
4340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4341 | $as_echo "$ac_ct_CC" >&6; } | |
cfc26d93 | 4342 | else |
efd58f08 RW |
4343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4344 | $as_echo "no" >&6; } | |
f69e2532 | 4345 | fi |
76402c80 | 4346 | |
efd58f08 | 4347 | |
b58b6ee1 DJ |
4348 | test -n "$ac_ct_CC" && break |
4349 | done | |
4350 | ||
efd58f08 RW |
4351 | if test "x$ac_ct_CC" = x; then |
4352 | CC="" | |
4353 | else | |
4354 | case $cross_compiling:$ac_tool_warned in | |
4355 | yes:) | |
4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4357 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4358 | ac_tool_warned=yes ;; | |
4359 | esac | |
4360 | CC=$ac_ct_CC | |
4361 | fi | |
b58b6ee1 DJ |
4362 | fi |
4363 | ||
4364 | fi | |
4365 | ||
4366 | ||
efd58f08 RW |
4367 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4368 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4369 | as_fn_error "no acceptable C compiler found in \$PATH | |
4370 | See \`config.log' for more details." "$LINENO" 5; } | |
b58b6ee1 DJ |
4371 | |
4372 | # Provide some information about the compiler. | |
efd58f08 RW |
4373 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4374 | set X $ac_compile | |
4375 | ac_compiler=$2 | |
4376 | for ac_option in --version -v -V -qversion; do | |
4377 | { { ac_try="$ac_compiler $ac_option >&5" | |
4378 | case "(($ac_try" in | |
4379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4380 | *) ac_try_echo=$ac_try;; | |
4381 | esac | |
4382 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4383 | $as_echo "$ac_try_echo"; } >&5 | |
4384 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b58b6ee1 | 4385 | ac_status=$? |
efd58f08 RW |
4386 | if test -s conftest.err; then |
4387 | sed '10a\ | |
4388 | ... rest of stderr output deleted ... | |
4389 | 10q' conftest.err >conftest.er1 | |
4390 | cat conftest.er1 >&5 | |
4391 | rm -f conftest.er1 conftest.err | |
4392 | fi | |
4393 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4394 | test $ac_status = 0; } | |
4395 | done | |
b58b6ee1 | 4396 | |
efd58f08 | 4397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b58b6ee1 DJ |
4398 | /* end confdefs.h. */ |
4399 | ||
4400 | int | |
4401 | main () | |
4402 | { | |
4403 | ||
4404 | ; | |
4405 | return 0; | |
4406 | } | |
4407 | _ACEOF | |
4408 | ac_clean_files_save=$ac_clean_files | |
efd58f08 | 4409 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
b58b6ee1 DJ |
4410 | # Try to create an executable without -o first, disregard a.out. |
4411 | # It will help us diagnose broken compilers, and finding out an intuition | |
4412 | # of exeext. | |
efd58f08 RW |
4413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4414 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4415 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4416 | ||
4417 | # The possible output files: | |
4418 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4419 | ||
4420 | ac_rmfiles= | |
4421 | for ac_file in $ac_files | |
4422 | do | |
4423 | case $ac_file in | |
4424 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4425 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4426 | esac | |
4427 | done | |
4428 | rm -f $ac_rmfiles | |
4429 | ||
4430 | if { { ac_try="$ac_link_default" | |
4431 | case "(($ac_try" in | |
4432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4433 | *) ac_try_echo=$ac_try;; | |
4434 | esac | |
4435 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4436 | $as_echo "$ac_try_echo"; } >&5 | |
4437 | (eval "$ac_link_default") 2>&5 | |
b58b6ee1 | 4438 | ac_status=$? |
efd58f08 RW |
4439 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4440 | test $ac_status = 0; }; then : | |
4441 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4442 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4443 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4444 | # so that the user can short-circuit this test for compilers unknown to | |
4445 | # Autoconf. | |
4446 | for ac_file in $ac_files '' | |
b58b6ee1 DJ |
4447 | do |
4448 | test -f "$ac_file" || continue | |
4449 | case $ac_file in | |
efd58f08 | 4450 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b58b6ee1 DJ |
4451 | ;; |
4452 | [ab].out ) | |
4453 | # We found the default executable, but exeext='' is most | |
4454 | # certainly right. | |
4455 | break;; | |
4456 | *.* ) | |
efd58f08 RW |
4457 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4458 | then :; else | |
4459 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4460 | fi | |
4461 | # We set ac_cv_exeext here because the later test for it is not | |
4462 | # safe: cross compilers may not add the suffix if given an `-o' | |
4463 | # argument, so we may need to know it at that point already. | |
4464 | # Even if this section looks crufty: it has the advantage of | |
4465 | # actually working. | |
b58b6ee1 DJ |
4466 | break;; |
4467 | * ) | |
4468 | break;; | |
4469 | esac | |
4470 | done | |
efd58f08 RW |
4471 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4472 | ||
b58b6ee1 | 4473 | else |
efd58f08 RW |
4474 | ac_file='' |
4475 | fi | |
4476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4477 | $as_echo "$ac_file" >&6; } | |
4478 | if test -z "$ac_file"; then : | |
4479 | $as_echo "$as_me: failed program was:" >&5 | |
b58b6ee1 DJ |
4480 | sed 's/^/| /' conftest.$ac_ext >&5 |
4481 | ||
efd58f08 RW |
4482 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4483 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4484 | { as_fn_set_status 77 | |
4485 | as_fn_error "C compiler cannot create executables | |
4486 | See \`config.log' for more details." "$LINENO" 5; }; } | |
b58b6ee1 | 4487 | fi |
b58b6ee1 | 4488 | ac_exeext=$ac_cv_exeext |
b58b6ee1 | 4489 | |
efd58f08 | 4490 | # Check that the compiler produces executables we can run. If not, either |
b58b6ee1 | 4491 | # the compiler is broken, or we cross compile. |
efd58f08 RW |
4492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4493 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
b58b6ee1 DJ |
4494 | # If not cross compiling, check that we can run a simple program. |
4495 | if test "$cross_compiling" != yes; then | |
4496 | if { ac_try='./$ac_file' | |
efd58f08 RW |
4497 | { { case "(($ac_try" in |
4498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4499 | *) ac_try_echo=$ac_try;; | |
4500 | esac | |
4501 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4502 | $as_echo "$ac_try_echo"; } >&5 | |
4503 | (eval "$ac_try") 2>&5 | |
b58b6ee1 | 4504 | ac_status=$? |
efd58f08 RW |
4505 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4506 | test $ac_status = 0; }; }; then | |
b58b6ee1 DJ |
4507 | cross_compiling=no |
4508 | else | |
4509 | if test "$cross_compiling" = maybe; then | |
4510 | cross_compiling=yes | |
4511 | else | |
efd58f08 RW |
4512 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4513 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4514 | as_fn_error "cannot run C compiled programs. | |
b58b6ee1 | 4515 | If you meant to cross compile, use \`--host'. |
efd58f08 | 4516 | See \`config.log' for more details." "$LINENO" 5; } |
b58b6ee1 DJ |
4517 | fi |
4518 | fi | |
4519 | fi | |
efd58f08 RW |
4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4521 | $as_echo "yes" >&6; } | |
b58b6ee1 | 4522 | |
efd58f08 | 4523 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
b58b6ee1 | 4524 | ac_clean_files=$ac_clean_files_save |
efd58f08 | 4525 | # Check that the compiler produces executables we can run. If not, either |
b58b6ee1 | 4526 | # the compiler is broken, or we cross compile. |
efd58f08 RW |
4527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4528 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4530 | $as_echo "$cross_compiling" >&6; } | |
4531 | ||
4532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4533 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4534 | if { { ac_try="$ac_link" | |
4535 | case "(($ac_try" in | |
4536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4537 | *) ac_try_echo=$ac_try;; | |
4538 | esac | |
4539 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4540 | $as_echo "$ac_try_echo"; } >&5 | |
4541 | (eval "$ac_link") 2>&5 | |
b58b6ee1 | 4542 | ac_status=$? |
efd58f08 RW |
4543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4544 | test $ac_status = 0; }; then : | |
b58b6ee1 DJ |
4545 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4546 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4547 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4548 | # `rm'. | |
4549 | for ac_file in conftest.exe conftest conftest.*; do | |
4550 | test -f "$ac_file" || continue | |
4551 | case $ac_file in | |
efd58f08 | 4552 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b58b6ee1 | 4553 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b58b6ee1 DJ |
4554 | break;; |
4555 | * ) break;; | |
4556 | esac | |
4557 | done | |
4558 | else | |
efd58f08 RW |
4559 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4560 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4561 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4562 | See \`config.log' for more details." "$LINENO" 5; } | |
b58b6ee1 | 4563 | fi |
b58b6ee1 | 4564 | rm -f conftest$ac_cv_exeext |
efd58f08 RW |
4565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4566 | $as_echo "$ac_cv_exeext" >&6; } | |
b58b6ee1 DJ |
4567 | |
4568 | rm -f conftest.$ac_ext | |
4569 | EXEEXT=$ac_cv_exeext | |
4570 | ac_exeext=$EXEEXT | |
efd58f08 RW |
4571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4572 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4573 | if test "${ac_cv_objext+set}" = set; then : | |
4574 | $as_echo_n "(cached) " >&6 | |
b58b6ee1 | 4575 | else |
efd58f08 | 4576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b58b6ee1 DJ |
4577 | /* end confdefs.h. */ |
4578 | ||
4579 | int | |
4580 | main () | |
4581 | { | |
4582 | ||
4583 | ; | |
4584 | return 0; | |
4585 | } | |
4586 | _ACEOF | |
4587 | rm -f conftest.o conftest.obj | |
efd58f08 RW |
4588 | if { { ac_try="$ac_compile" |
4589 | case "(($ac_try" in | |
4590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4591 | *) ac_try_echo=$ac_try;; | |
4592 | esac | |
4593 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4594 | $as_echo "$ac_try_echo"; } >&5 | |
4595 | (eval "$ac_compile") 2>&5 | |
b58b6ee1 | 4596 | ac_status=$? |
efd58f08 RW |
4597 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4598 | test $ac_status = 0; }; then : | |
4599 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4600 | test -f "$ac_file" || continue; | |
b58b6ee1 | 4601 | case $ac_file in |
efd58f08 | 4602 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b58b6ee1 DJ |
4603 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4604 | break;; | |
4605 | esac | |
4606 | done | |
f69e2532 | 4607 | else |
efd58f08 | 4608 | $as_echo "$as_me: failed program was:" >&5 |
b58b6ee1 DJ |
4609 | sed 's/^/| /' conftest.$ac_ext >&5 |
4610 | ||
efd58f08 RW |
4611 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4612 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4613 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4614 | See \`config.log' for more details." "$LINENO" 5; } | |
b58b6ee1 | 4615 | fi |
b58b6ee1 DJ |
4616 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4617 | fi | |
efd58f08 RW |
4618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4619 | $as_echo "$ac_cv_objext" >&6; } | |
b58b6ee1 DJ |
4620 | OBJEXT=$ac_cv_objext |
4621 | ac_objext=$OBJEXT | |
efd58f08 RW |
4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4623 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4624 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4625 | $as_echo_n "(cached) " >&6 | |
b58b6ee1 | 4626 | else |
efd58f08 | 4627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b58b6ee1 DJ |
4628 | /* end confdefs.h. */ |
4629 | ||
4630 | int | |
4631 | main () | |
4632 | { | |
4633 | #ifndef __GNUC__ | |
4634 | choke me | |
4635 | #endif | |
4636 | ||
4637 | ; | |
4638 | return 0; | |
4639 | } | |
4640 | _ACEOF | |
efd58f08 | 4641 | if ac_fn_c_try_compile "$LINENO"; then : |
b58b6ee1 DJ |
4642 | ac_compiler_gnu=yes |
4643 | else | |
efd58f08 | 4644 | ac_compiler_gnu=no |
b58b6ee1 | 4645 | fi |
efd58f08 | 4646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b58b6ee1 DJ |
4647 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4648 | ||
4649 | fi | |
efd58f08 RW |
4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4651 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4652 | if test $ac_compiler_gnu = yes; then | |
4653 | GCC=yes | |
4654 | else | |
4655 | GCC= | |
4656 | fi | |
b58b6ee1 DJ |
4657 | ac_test_CFLAGS=${CFLAGS+set} |
4658 | ac_save_CFLAGS=$CFLAGS | |
efd58f08 RW |
4659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4660 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4661 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4662 | $as_echo_n "(cached) " >&6 | |
4663 | else | |
4664 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4665 | ac_c_werror_flag=yes | |
4666 | ac_cv_prog_cc_g=no | |
4667 | CFLAGS="-g" | |
4668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b58b6ee1 DJ |
4669 | /* end confdefs.h. */ |
4670 | ||
4671 | int | |
4672 | main () | |
4673 | { | |
4674 | ||
4675 | ; | |
4676 | return 0; | |
4677 | } | |
4678 | _ACEOF | |
efd58f08 | 4679 | if ac_fn_c_try_compile "$LINENO"; then : |
cfc26d93 NN |
4680 | ac_cv_prog_cc_g=yes |
4681 | else | |
efd58f08 RW |
4682 | CFLAGS="" |
4683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4684 | /* end confdefs.h. */ | |
4685 | ||
4686 | int | |
4687 | main () | |
4688 | { | |
4689 | ||
4690 | ; | |
4691 | return 0; | |
4692 | } | |
4693 | _ACEOF | |
4694 | if ac_fn_c_try_compile "$LINENO"; then : | |
4695 | ||
4696 | else | |
4697 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4698 | CFLAGS="-g" | |
4699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4700 | /* end confdefs.h. */ | |
f69e2532 | 4701 | |
efd58f08 RW |
4702 | int |
4703 | main () | |
4704 | { | |
4705 | ||
4706 | ; | |
4707 | return 0; | |
4708 | } | |
4709 | _ACEOF | |
4710 | if ac_fn_c_try_compile "$LINENO"; then : | |
4711 | ac_cv_prog_cc_g=yes | |
4712 | fi | |
4713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
76402c80 | 4714 | fi |
efd58f08 | 4715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b58b6ee1 | 4716 | fi |
efd58f08 RW |
4717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4718 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4719 | fi | |
4720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4721 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
cfc26d93 | 4722 | if test "$ac_test_CFLAGS" = set; then |
b58b6ee1 | 4723 | CFLAGS=$ac_save_CFLAGS |
cfc26d93 NN |
4724 | elif test $ac_cv_prog_cc_g = yes; then |
4725 | if test "$GCC" = yes; then | |
4726 | CFLAGS="-g -O2" | |
4727 | else | |
4728 | CFLAGS="-g" | |
4729 | fi | |
4730 | else | |
4731 | if test "$GCC" = yes; then | |
4732 | CFLAGS="-O2" | |
4733 | else | |
4734 | CFLAGS= | |
4735 | fi | |
4736 | fi | |
efd58f08 RW |
4737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4738 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4739 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4740 | $as_echo_n "(cached) " >&6 | |
b58b6ee1 | 4741 | else |
efd58f08 | 4742 | ac_cv_prog_cc_c89=no |
b58b6ee1 | 4743 | ac_save_CC=$CC |
efd58f08 | 4744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b58b6ee1 DJ |
4745 | /* end confdefs.h. */ |
4746 | #include <stdarg.h> | |
4747 | #include <stdio.h> | |
4748 | #include <sys/types.h> | |
4749 | #include <sys/stat.h> | |
4750 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4751 | struct buf { int x; }; | |
4752 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4753 | static char *e (p, i) | |
4754 | char **p; | |
4755 | int i; | |
4756 | { | |
4757 | return p[i]; | |
4758 | } | |
4759 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4760 | { | |
4761 | char *s; | |
4762 | va_list v; | |
4763 | va_start (v,p); | |
4764 | s = g (p, va_arg (v,int)); | |
4765 | va_end (v); | |
4766 | return s; | |
4767 | } | |
4768 | ||
4769 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4770 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4771 | These don't provoke an error unfortunately, instead are silently treated | |
efd58f08 | 4772 | as 'x'. The following induces an error, until -std is added to get |
b58b6ee1 DJ |
4773 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4774 | array size at least. It's necessary to write '\x00'==0 to get something | |
efd58f08 | 4775 | that's true only with -std. */ |
b58b6ee1 DJ |
4776 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4777 | ||
efd58f08 RW |
4778 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4779 | inside strings and character constants. */ | |
4780 | #define FOO(x) 'x' | |
4781 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4782 | ||
b58b6ee1 DJ |
4783 | int test (int i, double x); |
4784 | struct s1 {int (*f) (int a);}; | |
4785 | struct s2 {int (*f) (double a);}; | |
4786 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4787 | int argc; | |
4788 | char **argv; | |
4789 | int | |
4790 | main () | |
4791 | { | |
4792 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4793 | ; | |
4794 | return 0; | |
4795 | } | |
4796 | _ACEOF | |
efd58f08 RW |
4797 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4798 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b58b6ee1 DJ |
4799 | do |
4800 | CC="$ac_save_CC $ac_arg" | |
efd58f08 RW |
4801 | if ac_fn_c_try_compile "$LINENO"; then : |
4802 | ac_cv_prog_cc_c89=$ac_arg | |
b58b6ee1 | 4803 | fi |
efd58f08 RW |
4804 | rm -f core conftest.err conftest.$ac_objext |
4805 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b58b6ee1 | 4806 | done |
efd58f08 | 4807 | rm -f conftest.$ac_ext |
b58b6ee1 DJ |
4808 | CC=$ac_save_CC |
4809 | ||
4810 | fi | |
efd58f08 RW |
4811 | # AC_CACHE_VAL |
4812 | case "x$ac_cv_prog_cc_c89" in | |
4813 | x) | |
4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4815 | $as_echo "none needed" >&6; } ;; | |
4816 | xno) | |
4817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4818 | $as_echo "unsupported" >&6; } ;; | |
b58b6ee1 | 4819 | *) |
efd58f08 RW |
4820 | CC="$CC $ac_cv_prog_cc_c89" |
4821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4822 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b58b6ee1 | 4823 | esac |
efd58f08 | 4824 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b58b6ee1 | 4825 | |
b58b6ee1 DJ |
4826 | fi |
4827 | ||
b58b6ee1 DJ |
4828 | ac_ext=c |
4829 | ac_cpp='$CPP $CPPFLAGS' | |
4830 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4831 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4832 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
cfc26d93 | 4833 | |
efd58f08 | 4834 | ac_ext=cpp |
b8c26111 PB |
4835 | ac_cpp='$CXXCPP $CPPFLAGS' |
4836 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4837 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4838 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
efd58f08 RW |
4839 | if test -z "$CXX"; then |
4840 | if test -n "$CCC"; then | |
4841 | CXX=$CCC | |
4842 | else | |
4843 | if test -n "$ac_tool_prefix"; then | |
4844 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
b8c26111 PB |
4845 | do |
4846 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4847 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
efd58f08 RW |
4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4849 | $as_echo_n "checking for $ac_word... " >&6; } | |
4850 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4851 | $as_echo_n "(cached) " >&6 | |
b8c26111 PB |
4852 | else |
4853 | if test -n "$CXX"; then | |
4854 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4855 | else | |
4856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4857 | for as_dir in $PATH | |
4858 | do | |
4859 | IFS=$as_save_IFS | |
4860 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
4861 | for ac_exec_ext in '' $ac_executable_extensions; do |
4862 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b8c26111 | 4863 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
efd58f08 | 4864 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b8c26111 PB |
4865 | break 2 |
4866 | fi | |
4867 | done | |
efd58f08 RW |
4868 | done |
4869 | IFS=$as_save_IFS | |
31839eae | 4870 | |
b8c26111 PB |
4871 | fi |
4872 | fi | |
4873 | CXX=$ac_cv_prog_CXX | |
4874 | if test -n "$CXX"; then | |
efd58f08 RW |
4875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4876 | $as_echo "$CXX" >&6; } | |
b8c26111 | 4877 | else |
efd58f08 RW |
4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4879 | $as_echo "no" >&6; } | |
b8c26111 PB |
4880 | fi |
4881 | ||
efd58f08 | 4882 | |
b8c26111 PB |
4883 | test -n "$CXX" && break |
4884 | done | |
4885 | fi | |
4886 | if test -z "$CXX"; then | |
4887 | ac_ct_CXX=$CXX | |
efd58f08 | 4888 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
b8c26111 PB |
4889 | do |
4890 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4891 | set dummy $ac_prog; ac_word=$2 | |
efd58f08 RW |
4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4893 | $as_echo_n "checking for $ac_word... " >&6; } | |
4894 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4895 | $as_echo_n "(cached) " >&6 | |
b8c26111 PB |
4896 | else |
4897 | if test -n "$ac_ct_CXX"; then | |
4898 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4899 | else | |
4900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4901 | for as_dir in $PATH | |
4902 | do | |
4903 | IFS=$as_save_IFS | |
4904 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
4905 | for ac_exec_ext in '' $ac_executable_extensions; do |
4906 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b8c26111 | 4907 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
efd58f08 | 4908 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b8c26111 | 4909 | break 2 |
31839eae | 4910 | fi |
b8c26111 | 4911 | done |
efd58f08 RW |
4912 | done |
4913 | IFS=$as_save_IFS | |
31839eae | 4914 | |
b8c26111 PB |
4915 | fi |
4916 | fi | |
4917 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4918 | if test -n "$ac_ct_CXX"; then | |
efd58f08 RW |
4919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4920 | $as_echo "$ac_ct_CXX" >&6; } | |
b8c26111 | 4921 | else |
efd58f08 RW |
4922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4923 | $as_echo "no" >&6; } | |
b8c26111 PB |
4924 | fi |
4925 | ||
efd58f08 | 4926 | |
b8c26111 PB |
4927 | test -n "$ac_ct_CXX" && break |
4928 | done | |
b8c26111 | 4929 | |
efd58f08 RW |
4930 | if test "x$ac_ct_CXX" = x; then |
4931 | CXX="g++" | |
4932 | else | |
4933 | case $cross_compiling:$ac_tool_warned in | |
4934 | yes:) | |
4935 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4936 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4937 | ac_tool_warned=yes ;; | |
4938 | esac | |
4939 | CXX=$ac_ct_CXX | |
4940 | fi | |
b8c26111 PB |
4941 | fi |
4942 | ||
efd58f08 RW |
4943 | fi |
4944 | fi | |
b8c26111 | 4945 | # Provide some information about the compiler. |
efd58f08 RW |
4946 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4947 | set X $ac_compile | |
4948 | ac_compiler=$2 | |
4949 | for ac_option in --version -v -V -qversion; do | |
4950 | { { ac_try="$ac_compiler $ac_option >&5" | |
4951 | case "(($ac_try" in | |
4952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4953 | *) ac_try_echo=$ac_try;; | |
4954 | esac | |
4955 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4956 | $as_echo "$ac_try_echo"; } >&5 | |
4957 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b8c26111 | 4958 | ac_status=$? |
efd58f08 RW |
4959 | if test -s conftest.err; then |
4960 | sed '10a\ | |
4961 | ... rest of stderr output deleted ... | |
4962 | 10q' conftest.err >conftest.er1 | |
4963 | cat conftest.er1 >&5 | |
4964 | rm -f conftest.er1 conftest.err | |
4965 | fi | |
4966 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4967 | test $ac_status = 0; } | |
4968 | done | |
b8c26111 | 4969 | |
efd58f08 RW |
4970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4971 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4972 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4973 | $as_echo_n "(cached) " >&6 | |
b8c26111 | 4974 | else |
efd58f08 | 4975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b8c26111 PB |
4976 | /* end confdefs.h. */ |
4977 | ||
4978 | int | |
4979 | main () | |
4980 | { | |
4981 | #ifndef __GNUC__ | |
4982 | choke me | |
4983 | #endif | |
4984 | ||
4985 | ; | |
4986 | return 0; | |
4987 | } | |
4988 | _ACEOF | |
efd58f08 | 4989 | if ac_fn_cxx_try_compile "$LINENO"; then : |
b8c26111 PB |
4990 | ac_compiler_gnu=yes |
4991 | else | |
efd58f08 | 4992 | ac_compiler_gnu=no |
b8c26111 | 4993 | fi |
efd58f08 | 4994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b8c26111 PB |
4995 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4996 | ||
4997 | fi | |
efd58f08 RW |
4998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4999 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5000 | if test $ac_compiler_gnu = yes; then | |
5001 | GXX=yes | |
5002 | else | |
5003 | GXX= | |
5004 | fi | |
b8c26111 PB |
5005 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5006 | ac_save_CXXFLAGS=$CXXFLAGS | |
efd58f08 RW |
5007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5008 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
5009 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
5010 | $as_echo_n "(cached) " >&6 | |
5011 | else | |
5012 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5013 | ac_cxx_werror_flag=yes | |
5014 | ac_cv_prog_cxx_g=no | |
5015 | CXXFLAGS="-g" | |
5016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b8c26111 PB |
5017 | /* end confdefs.h. */ |
5018 | ||
5019 | int | |
5020 | main () | |
5021 | { | |
5022 | ||
5023 | ; | |
5024 | return 0; | |
5025 | } | |
5026 | _ACEOF | |
efd58f08 | 5027 | if ac_fn_cxx_try_compile "$LINENO"; then : |
b8c26111 PB |
5028 | ac_cv_prog_cxx_g=yes |
5029 | else | |
efd58f08 RW |
5030 | CXXFLAGS="" |
5031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b8c26111 | 5032 | /* end confdefs.h. */ |
efd58f08 | 5033 | |
b8c26111 PB |
5034 | int |
5035 | main () | |
5036 | { | |
efd58f08 | 5037 | |
b8c26111 PB |
5038 | ; |
5039 | return 0; | |
5040 | } | |
5041 | _ACEOF | |
efd58f08 | 5042 | if ac_fn_cxx_try_compile "$LINENO"; then : |
b8c26111 | 5043 | |
efd58f08 RW |
5044 | else |
5045 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5046 | CXXFLAGS="-g" | |
5047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b8c26111 | 5048 | /* end confdefs.h. */ |
efd58f08 | 5049 | |
b8c26111 PB |
5050 | int |
5051 | main () | |
5052 | { | |
efd58f08 | 5053 | |
b8c26111 PB |
5054 | ; |
5055 | return 0; | |
5056 | } | |
5057 | _ACEOF | |
efd58f08 RW |
5058 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5059 | ac_cv_prog_cxx_g=yes | |
b8c26111 | 5060 | fi |
efd58f08 RW |
5061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5062 | fi | |
5063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5064 | fi | |
5065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5066 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5067 | fi | |
5068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5069 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5070 | if test "$ac_test_CXXFLAGS" = set; then | |
5071 | CXXFLAGS=$ac_save_CXXFLAGS | |
5072 | elif test $ac_cv_prog_cxx_g = yes; then | |
5073 | if test "$GXX" = yes; then | |
5074 | CXXFLAGS="-g -O2" | |
5075 | else | |
5076 | CXXFLAGS="-g" | |
5077 | fi | |
5078 | else | |
5079 | if test "$GXX" = yes; then | |
5080 | CXXFLAGS="-O2" | |
5081 | else | |
5082 | CXXFLAGS= | |
5083 | fi | |
b8c26111 | 5084 | fi |
b8c26111 PB |
5085 | ac_ext=c |
5086 | ac_cpp='$CPP $CPPFLAGS' | |
5087 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5088 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5089 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5090 | ||
5091 | ||
5092 | # We must set the default linker to the linker used by gcc for the correct | |
5093 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5094 | # set the LD default to the ld used by gcc. | |
5095 | if test -z "$LD"; then | |
5096 | if test "$GCC" = yes; then | |
5097 | case $build in | |
5098 | *-*-mingw*) | |
5099 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5100 | *) | |
5101 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5102 | esac | |
5103 | case $gcc_prog_ld in | |
5104 | # Accept absolute paths. | |
5105 | [\\/]* | [A-Za-z]:[\\/]*) | |
5106 | LD="$gcc_prog_ld" ;; | |
5107 | esac | |
5108 | fi | |
31839eae PB |
5109 | fi |
5110 | ||
e8853092 EB |
5111 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5112 | have_static_libs=no | |
5113 | if test "$GCC" = yes; then | |
5114 | saved_LDFLAGS="$LDFLAGS" | |
5115 | ||
5116 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5118 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5119 | ac_ext=cpp | |
5120 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5121 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5122 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5123 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5124 | ||
5125 | ||
5126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5127 | /* end confdefs.h. */ | |
d25fac71 EB |
5128 | |
5129 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5130 | #error -static-libstdc++ not implemented | |
5131 | #endif | |
e8853092 EB |
5132 | int main() {} |
5133 | _ACEOF | |
5134 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5136 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5137 | else | |
5138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5139 | $as_echo "no" >&6; } | |
5140 | fi | |
5141 | rm -f core conftest.err conftest.$ac_objext \ | |
5142 | conftest$ac_exeext conftest.$ac_ext | |
5143 | ac_ext=c | |
5144 | ac_cpp='$CPP $CPPFLAGS' | |
5145 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5146 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5147 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5148 | ||
5149 | ||
5150 | LDFLAGS="$saved_LDFLAGS" | |
5151 | fi | |
5152 | ||
31839eae PB |
5153 | |
5154 | ||
5155 | ||
b58b6ee1 | 5156 | if test -n "$ac_tool_prefix"; then |
31839eae PB |
5157 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
5158 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
efd58f08 RW |
5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5160 | $as_echo_n "checking for $ac_word... " >&6; } | |
5161 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
5162 | $as_echo_n "(cached) " >&6 | |
cfc26d93 | 5163 | else |
31839eae PB |
5164 | if test -n "$GNATBIND"; then |
5165 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
cfc26d93 | 5166 | else |
b58b6ee1 DJ |
5167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5168 | for as_dir in $PATH | |
5169 | do | |
5170 | IFS=$as_save_IFS | |
5171 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
5172 | for ac_exec_ext in '' $ac_executable_extensions; do |
5173 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
31839eae | 5174 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
efd58f08 | 5175 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
5176 | break 2 |
5177 | fi | |
5178 | done | |
efd58f08 RW |
5179 | done |
5180 | IFS=$as_save_IFS | |
b58b6ee1 | 5181 | |
cfc26d93 NN |
5182 | fi |
5183 | fi | |
31839eae PB |
5184 | GNATBIND=$ac_cv_prog_GNATBIND |
5185 | if test -n "$GNATBIND"; then | |
efd58f08 RW |
5186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5187 | $as_echo "$GNATBIND" >&6; } | |
cfc26d93 | 5188 | else |
efd58f08 RW |
5189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5190 | $as_echo "no" >&6; } | |
cfc26d93 NN |
5191 | fi |
5192 | ||
efd58f08 | 5193 | |
b58b6ee1 | 5194 | fi |
31839eae PB |
5195 | if test -z "$ac_cv_prog_GNATBIND"; then |
5196 | ac_ct_GNATBIND=$GNATBIND | |
5197 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
5198 | set dummy gnatbind; ac_word=$2 | |
efd58f08 RW |
5199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5200 | $as_echo_n "checking for $ac_word... " >&6; } | |
5201 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
5202 | $as_echo_n "(cached) " >&6 | |
cfc26d93 | 5203 | else |
31839eae PB |
5204 | if test -n "$ac_ct_GNATBIND"; then |
5205 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
cfc26d93 | 5206 | else |
b58b6ee1 DJ |
5207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5208 | for as_dir in $PATH | |
5209 | do | |
5210 | IFS=$as_save_IFS | |
5211 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
5212 | for ac_exec_ext in '' $ac_executable_extensions; do |
5213 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
31839eae | 5214 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
efd58f08 | 5215 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
5216 | break 2 |
5217 | fi | |
5218 | done | |
efd58f08 RW |
5219 | done |
5220 | IFS=$as_save_IFS | |
b58b6ee1 | 5221 | |
cfc26d93 NN |
5222 | fi |
5223 | fi | |
31839eae PB |
5224 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5225 | if test -n "$ac_ct_GNATBIND"; then | |
efd58f08 RW |
5226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5227 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
cfc26d93 | 5228 | else |
efd58f08 RW |
5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5230 | $as_echo "no" >&6; } | |
cfc26d93 NN |
5231 | fi |
5232 | ||
efd58f08 RW |
5233 | if test "x$ac_ct_GNATBIND" = x; then |
5234 | GNATBIND="no" | |
5235 | else | |
5236 | case $cross_compiling:$ac_tool_warned in | |
5237 | yes:) | |
5238 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5239 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5240 | ac_tool_warned=yes ;; | |
5241 | esac | |
5242 | GNATBIND=$ac_ct_GNATBIND | |
5243 | fi | |
893220e0 | 5244 | else |
31839eae | 5245 | GNATBIND="$ac_cv_prog_GNATBIND" |
cfc26d93 NN |
5246 | fi |
5247 | ||
60800fb2 | 5248 | if test -n "$ac_tool_prefix"; then |
31839eae PB |
5249 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
5250 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
efd58f08 RW |
5251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5252 | $as_echo_n "checking for $ac_word... " >&6; } | |
5253 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
5254 | $as_echo_n "(cached) " >&6 | |
60800fb2 | 5255 | else |
31839eae PB |
5256 | if test -n "$GNATMAKE"; then |
5257 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
60800fb2 PB |
5258 | else |
5259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5260 | for as_dir in $PATH | |
5261 | do | |
5262 | IFS=$as_save_IFS | |
5263 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
5264 | for ac_exec_ext in '' $ac_executable_extensions; do |
5265 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
31839eae | 5266 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
efd58f08 | 5267 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
60800fb2 PB |
5268 | break 2 |
5269 | fi | |
5270 | done | |
efd58f08 RW |
5271 | done |
5272 | IFS=$as_save_IFS | |
60800fb2 PB |
5273 | |
5274 | fi | |
5275 | fi | |
31839eae PB |
5276 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5277 | if test -n "$GNATMAKE"; then | |
efd58f08 RW |
5278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5279 | $as_echo "$GNATMAKE" >&6; } | |
60800fb2 | 5280 | else |
efd58f08 RW |
5281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5282 | $as_echo "no" >&6; } | |
60800fb2 PB |
5283 | fi |
5284 | ||
efd58f08 | 5285 | |
60800fb2 | 5286 | fi |
31839eae PB |
5287 | if test -z "$ac_cv_prog_GNATMAKE"; then |
5288 | ac_ct_GNATMAKE=$GNATMAKE | |
5289 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
5290 | set dummy gnatmake; ac_word=$2 | |
efd58f08 RW |
5291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5292 | $as_echo_n "checking for $ac_word... " >&6; } | |
5293 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
5294 | $as_echo_n "(cached) " >&6 | |
60800fb2 | 5295 | else |
31839eae PB |
5296 | if test -n "$ac_ct_GNATMAKE"; then |
5297 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
60800fb2 PB |
5298 | else |
5299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5300 | for as_dir in $PATH | |
5301 | do | |
5302 | IFS=$as_save_IFS | |
5303 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
5304 | for ac_exec_ext in '' $ac_executable_extensions; do |
5305 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
31839eae | 5306 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
efd58f08 | 5307 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
60800fb2 PB |
5308 | break 2 |
5309 | fi | |
5310 | done | |
efd58f08 RW |
5311 | done |
5312 | IFS=$as_save_IFS | |
60800fb2 | 5313 | |
60800fb2 PB |
5314 | fi |
5315 | fi | |
31839eae PB |
5316 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5317 | if test -n "$ac_ct_GNATMAKE"; then | |
efd58f08 RW |
5318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5319 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
60800fb2 | 5320 | else |
efd58f08 RW |
5321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5322 | $as_echo "no" >&6; } | |
60800fb2 PB |
5323 | fi |
5324 | ||
efd58f08 RW |
5325 | if test "x$ac_ct_GNATMAKE" = x; then |
5326 | GNATMAKE="no" | |
5327 | else | |
5328 | case $cross_compiling:$ac_tool_warned in | |
5329 | yes:) | |
5330 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5331 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5332 | ac_tool_warned=yes ;; | |
5333 | esac | |
5334 | GNATMAKE=$ac_ct_GNATMAKE | |
5335 | fi | |
60800fb2 | 5336 | else |
31839eae | 5337 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
60800fb2 PB |
5338 | fi |
5339 | ||
efd58f08 RW |
5340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5341 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
5342 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
5343 | $as_echo_n "(cached) " >&6 | |
cfc26d93 NN |
5344 | else |
5345 | cat >conftest.adb <<EOF | |
5346 | procedure conftest is begin null; end conftest; | |
5347 | EOF | |
5348 | acx_cv_cc_gcc_supports_ada=no | |
5349 | # There is a bug in old released versions of GCC which causes the | |
5350 | # driver to exit successfully when the appropriate language module | |
5351 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5352 | # Therefore we must check for the error message as well as an | |
5353 | # unsuccessful exit. | |
866c244e DD |
5354 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5355 | # given a .adb file, but produce no object file. So we must check | |
5356 | # if an object file was really produced to guard against this. | |
cfc26d93 | 5357 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
866c244e | 5358 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
cfc26d93 | 5359 | acx_cv_cc_gcc_supports_ada=yes |
cfc26d93 NN |
5360 | fi |
5361 | rm -f conftest.* | |
5362 | fi | |
efd58f08 RW |
5363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5364 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
cfc26d93 | 5365 | |
1a08e38b | 5366 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
cfc26d93 NN |
5367 | have_gnat=yes |
5368 | else | |
5369 | have_gnat=no | |
5370 | fi | |
5371 | ||
efd58f08 RW |
5372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5373 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5374 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5375 | $as_echo_n "(cached) " >&6 | |
866c244e DD |
5376 | else |
5377 | echo abfoo >t1 | |
5378 | echo cdfoo >t2 | |
5379 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
cb2333e8 DD |
5380 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5381 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5382 | : | |
5383 | else | |
5384 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5385 | fi | |
5386 | fi | |
866c244e DD |
5387 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5388 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
cb2333e8 | 5389 | : |
866c244e DD |
5390 | else |
5391 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5392 | fi | |
5393 | fi | |
5394 | rm t1 t2 | |
5395 | ||
5396 | fi | |
efd58f08 RW |
5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5398 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
866c244e DD |
5399 | do_compare="$gcc_cv_prog_cmp_skip" |
5400 | ||
5401 | ||
cfc26d93 | 5402 | |
c9161585 ILT |
5403 | # Check whether --enable-bootstrap was given. |
5404 | if test "${enable_bootstrap+set}" = set; then : | |
5405 | enableval=$enable_bootstrap; | |
5406 | else | |
5407 | enable_bootstrap=default | |
5408 | fi | |
5409 | ||
5410 | ||
5411 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5412 | if test -r $srcdir/gcc/configure; then | |
5413 | have_compiler=yes | |
5414 | else | |
5415 | have_compiler=no | |
5416 | fi | |
5417 | ||
5418 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5419 | *:*:*:no) ;; | |
5420 | ||
5421 | # Default behavior. Enable bootstrap if we have a compiler | |
5422 | # and we are in a native configuration. | |
5423 | yes:$build:$build:default) | |
5424 | enable_bootstrap=yes ;; | |
5425 | ||
5426 | *:*:*:default) | |
5427 | enable_bootstrap=no ;; | |
5428 | ||
5429 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5430 | yes:$build:$build:yes) | |
5431 | ;; | |
5432 | ||
5433 | # Other configurations, but we have a compiler. Assume the user knows | |
5434 | # what he's doing. | |
5435 | yes:*:*:yes) | |
5436 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5437 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5438 | ;; | |
5439 | ||
5440 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5441 | no:*:*:yes) | |
5442 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5443 | ||
5444 | # Fail if wrong command line | |
5445 | *) | |
5446 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5447 | ;; | |
5448 | esac | |
5449 | ||
fe508576 CV |
5450 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5451 | # C++98 compiler can still start the bootstrap. | |
5452 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
5453 | CXX="$CXX -std=gnu++98" | |
5454 | fi | |
5455 | ||
74fabfaf KG |
5456 | # Used for setting $lt_cv_objdir |
5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5458 | $as_echo_n "checking for objdir... " >&6; } | |
5459 | if test "${lt_cv_objdir+set}" = set; then : | |
5460 | $as_echo_n "(cached) " >&6 | |
5461 | else | |
5462 | rm -f .libs 2>/dev/null | |
5463 | mkdir .libs 2>/dev/null | |
5464 | if test -d .libs; then | |
5465 | lt_cv_objdir=.libs | |
5466 | else | |
5467 | # MS-DOS does not allow filenames that begin with a dot. | |
5468 | lt_cv_objdir=_libs | |
5469 | fi | |
5470 | rmdir .libs 2>/dev/null | |
5471 | fi | |
5472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5473 | $as_echo "$lt_cv_objdir" >&6; } | |
5474 | objdir=$lt_cv_objdir | |
5475 | ||
5476 | ||
5477 | ||
5478 | ||
5479 | ||
5480 | cat >>confdefs.h <<_ACEOF | |
5481 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5482 | _ACEOF | |
5483 | ||
5484 | ||
5485 | ||
121f0eb2 | 5486 | # Check for GMP, MPFR and MPC |
1d30ae12 | 5487 | gmplibs="-lmpc -lmpfr -lgmp" |
cb2333e8 | 5488 | gmpinc= |
42f55f77 | 5489 | have_gmp=no |
121f0eb2 RW |
5490 | |
5491 | # Specify a location for mpc | |
5492 | # check for this first so it ends up on the link line before mpfr. | |
5493 | ||
efd58f08 RW |
5494 | # Check whether --with-mpc was given. |
5495 | if test "${with_mpc+set}" = set; then : | |
5496 | withval=$with_mpc; | |
5497 | fi | |
121f0eb2 | 5498 | |
121f0eb2 | 5499 | |
d5b7129a | 5500 | # Check whether --with-mpc-include was given. |
efd58f08 RW |
5501 | if test "${with_mpc_include+set}" = set; then : |
5502 | withval=$with_mpc_include; | |
5503 | fi | |
121f0eb2 | 5504 | |
121f0eb2 | 5505 | |
d5b7129a | 5506 | # Check whether --with-mpc-lib was given. |
efd58f08 RW |
5507 | if test "${with_mpc_lib+set}" = set; then : |
5508 | withval=$with_mpc_lib; | |
5509 | fi | |
121f0eb2 | 5510 | |
121f0eb2 RW |
5511 | |
5512 | if test "x$with_mpc" != x; then | |
1d30ae12 KG |
5513 | gmplibs="-L$with_mpc/lib $gmplibs" |
5514 | gmpinc="-I$with_mpc/include $gmpinc" | |
121f0eb2 RW |
5515 | fi |
5516 | if test "x$with_mpc_include" != x; then | |
1d30ae12 | 5517 | gmpinc="-I$with_mpc_include $gmpinc" |
121f0eb2 RW |
5518 | fi |
5519 | if test "x$with_mpc_lib" != x; then | |
1d30ae12 | 5520 | gmplibs="-L$with_mpc_lib $gmplibs" |
121f0eb2 RW |
5521 | fi |
5522 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
74fabfaf | 5523 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
1d30ae12 | 5524 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
121f0eb2 RW |
5525 | # Do not test the mpc version. Assume that it is sufficient, since |
5526 | # it is in the source tree, and the library has not been built yet | |
5527 | # but it would be included on the link line in the version check below | |
5528 | # hence making the test fail. | |
1d30ae12 | 5529 | have_gmp=yes |
121f0eb2 | 5530 | fi |
42f55f77 | 5531 | |
cbd6bc14 DD |
5532 | # Specify a location for mpfr |
5533 | # check for this first so it ends up on the link line before gmp. | |
b58b6ee1 | 5534 | |
efd58f08 RW |
5535 | # Check whether --with-mpfr-dir was given. |
5536 | if test "${with_mpfr_dir+set}" = set; then : | |
5537 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5538 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5539 | fi | |
5540 | ||
cbd6bc14 DD |
5541 | |
5542 | ||
efd58f08 RW |
5543 | # Check whether --with-mpfr was given. |
5544 | if test "${with_mpfr+set}" = set; then : | |
5545 | withval=$with_mpfr; | |
5546 | fi | |
b58b6ee1 | 5547 | |
cbd6bc14 | 5548 | |
d5b7129a | 5549 | # Check whether --with-mpfr-include was given. |
efd58f08 RW |
5550 | if test "${with_mpfr_include+set}" = set; then : |
5551 | withval=$with_mpfr_include; | |
5552 | fi | |
b58b6ee1 | 5553 | |
14a1406e | 5554 | |
d5b7129a | 5555 | # Check whether --with-mpfr-lib was given. |
efd58f08 RW |
5556 | if test "${with_mpfr_lib+set}" = set; then : |
5557 | withval=$with_mpfr_lib; | |
5558 | fi | |
14a1406e | 5559 | |
cbd6bc14 DD |
5560 | |
5561 | if test "x$with_mpfr" != x; then | |
5562 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
1d30ae12 | 5563 | gmpinc="-I$with_mpfr/include $gmpinc" |
cbd6bc14 | 5564 | fi |
14a1406e | 5565 | if test "x$with_mpfr_include" != x; then |
1d30ae12 | 5566 | gmpinc="-I$with_mpfr_include $gmpinc" |
14a1406e PB |
5567 | fi |
5568 | if test "x$with_mpfr_lib" != x; then | |
5569 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5570 | fi | |
42f55f77 | 5571 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
d5632bcf AK |
5572 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
5573 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5574 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
42f55f77 PB |
5575 | # Do not test the mpfr version. Assume that it is sufficient, since |
5576 | # it is in the source tree, and the library has not been built yet | |
5577 | # but it would be included on the link line in the version check below | |
5578 | # hence making the test fail. | |
5579 | have_gmp=yes | |
5580 | fi | |
cbd6bc14 | 5581 | |
cb2333e8 | 5582 | # Specify a location for gmp |
b58b6ee1 | 5583 | |
efd58f08 RW |
5584 | # Check whether --with-gmp-dir was given. |
5585 | if test "${with_gmp_dir+set}" = set; then : | |
5586 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5587 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5588 | fi | |
5589 | ||
cb2333e8 DD |
5590 | |
5591 | ||
efd58f08 RW |
5592 | # Check whether --with-gmp was given. |
5593 | if test "${with_gmp+set}" = set; then : | |
5594 | withval=$with_gmp; | |
5595 | fi | |
b58b6ee1 | 5596 | |
cb2333e8 | 5597 | |
d5b7129a | 5598 | # Check whether --with-gmp-include was given. |
efd58f08 RW |
5599 | if test "${with_gmp_include+set}" = set; then : |
5600 | withval=$with_gmp_include; | |
5601 | fi | |
b58b6ee1 | 5602 | |
14a1406e | 5603 | |
d5b7129a | 5604 | # Check whether --with-gmp-lib was given. |
efd58f08 RW |
5605 | if test "${with_gmp_lib+set}" = set; then : |
5606 | withval=$with_gmp_lib; | |
5607 | fi | |
14a1406e PB |
5608 | |
5609 | ||
cb2333e8 | 5610 | |
cbd6bc14 DD |
5611 | if test "x$with_gmp" != x; then |
5612 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5613 | gmpinc="-I$with_gmp/include $gmpinc" | |
cb2333e8 | 5614 | fi |
14a1406e PB |
5615 | if test "x$with_gmp_include" != x; then |
5616 | gmpinc="-I$with_gmp_include $gmpinc" | |
5617 | fi | |
5618 | if test "x$with_gmp_lib" != x; then | |
5619 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5620 | fi | |
42f55f77 | 5621 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
74fabfaf | 5622 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
42f55f77 | 5623 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
65a20d8c | 5624 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
74fabfaf | 5625 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
a626f4ee | 5626 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
42f55f77 PB |
5627 | # Do not test the gmp version. Assume that it is sufficient, since |
5628 | # it is in the source tree, and the library has not been built yet | |
5629 | # but it would be included on the link line in the version check below | |
5630 | # hence making the test fail. | |
5631 | have_gmp=yes | |
5632 | fi | |
cb2333e8 | 5633 | |
bd74ff2b | 5634 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
42f55f77 PB |
5635 | have_gmp=yes |
5636 | saved_CFLAGS="$CFLAGS" | |
5637 | CFLAGS="$CFLAGS $gmpinc" | |
dded80b3 KG |
5638 | # Check for the recommended and required versions of GMP. |
5639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5640 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
112afadf RW |
5641 | |
5642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
dded80b3 KG |
5643 | /* end confdefs.h. */ |
5644 | #include "gmp.h" | |
5645 | int | |
5646 | main () | |
5647 | { | |
5648 | ||
5649 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5650 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
125bb3c9 | 5651 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
dded80b3 KG |
5652 | choke me |
5653 | #endif | |
5654 | ||
5655 | ; | |
5656 | return 0; | |
5657 | } | |
5658 | _ACEOF | |
5659 | if ac_fn_c_try_compile "$LINENO"; then : | |
112afadf | 5660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b58b6ee1 | 5661 | /* end confdefs.h. */ |
dded80b3 | 5662 | #include <gmp.h> |
b58b6ee1 DJ |
5663 | int |
5664 | main () | |
5665 | { | |
cb2333e8 | 5666 | |
dded80b3 KG |
5667 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5668 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5669 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
42f55f77 PB |
5670 | choke me |
5671 | #endif | |
b58b6ee1 DJ |
5672 | |
5673 | ; | |
5674 | return 0; | |
5675 | } | |
5676 | _ACEOF | |
efd58f08 RW |
5677 | if ac_fn_c_try_compile "$LINENO"; then : |
5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5679 | $as_echo "yes" >&6; } | |
dded80b3 KG |
5680 | else |
5681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5682 | $as_echo "buggy but acceptable" >&6; } | |
5683 | fi | |
5684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b58b6ee1 | 5685 | else |
efd58f08 RW |
5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5687 | $as_echo "no" >&6; }; have_gmp=no | |
b58b6ee1 | 5688 | fi |
efd58f08 | 5689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
cb2333e8 | 5690 | |
121f0eb2 | 5691 | # If we have GMP, check the MPFR version. |
42f55f77 | 5692 | if test x"$have_gmp" = xyes; then |
dded80b3 KG |
5693 | # Check for the recommended and required versions of MPFR. |
5694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5695 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
efd58f08 | 5696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b58b6ee1 | 5697 | /* end confdefs.h. */ |
75ea5758 | 5698 | #include <gmp.h> |
42f55f77 | 5699 | #include <mpfr.h> |
b58b6ee1 DJ |
5700 | int |
5701 | main () | |
5702 | { | |
75ea5758 | 5703 | |
a626f4ee | 5704 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
42f55f77 PB |
5705 | choke me |
5706 | #endif | |
b58b6ee1 DJ |
5707 | |
5708 | ; | |
5709 | return 0; | |
5710 | } | |
5711 | _ACEOF | |
efd58f08 RW |
5712 | if ac_fn_c_try_compile "$LINENO"; then : |
5713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b58b6ee1 | 5714 | /* end confdefs.h. */ |
cb2333e8 | 5715 | #include <gmp.h> |
42f55f77 | 5716 | #include <mpfr.h> |
b58b6ee1 DJ |
5717 | int |
5718 | main () | |
5719 | { | |
a6a4e782 | 5720 | |
dded80b3 | 5721 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
42f55f77 PB |
5722 | choke me |
5723 | #endif | |
121f0eb2 RW |
5724 | |
5725 | ; | |
5726 | return 0; | |
5727 | } | |
5728 | _ACEOF | |
efd58f08 RW |
5729 | if ac_fn_c_try_compile "$LINENO"; then : |
5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5731 | $as_echo "yes" >&6; } | |
121f0eb2 | 5732 | else |
efd58f08 RW |
5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5734 | $as_echo "buggy but acceptable" >&6; } | |
121f0eb2 | 5735 | fi |
efd58f08 | 5736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
121f0eb2 | 5737 | else |
efd58f08 RW |
5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5739 | $as_echo "no" >&6; }; have_gmp=no | |
121f0eb2 | 5740 | fi |
efd58f08 | 5741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
121f0eb2 RW |
5742 | fi |
5743 | ||
5744 | # Check for the MPC header version. | |
1d30ae12 | 5745 | if test x"$have_gmp" = xyes ; then |
dded80b3 | 5746 | # Check for the recommended and required versions of MPC. |
efd58f08 RW |
5747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5748 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
121f0eb2 RW |
5750 | /* end confdefs.h. */ |
5751 | #include <mpc.h> | |
5752 | int | |
5753 | main () | |
5754 | { | |
5755 | ||
dded80b3 KG |
5756 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5757 | choke me | |
5758 | #endif | |
5759 | ||
5760 | ; | |
5761 | return 0; | |
5762 | } | |
5763 | _ACEOF | |
5764 | if ac_fn_c_try_compile "$LINENO"; then : | |
5765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5766 | /* end confdefs.h. */ | |
5767 | #include <mpc.h> | |
5768 | int | |
5769 | main () | |
5770 | { | |
5771 | ||
5772 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
121f0eb2 RW |
5773 | choke me |
5774 | #endif | |
5775 | ||
5776 | ; | |
5777 | return 0; | |
5778 | } | |
5779 | _ACEOF | |
efd58f08 RW |
5780 | if ac_fn_c_try_compile "$LINENO"; then : |
5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
1d30ae12 | 5782 | $as_echo "yes" >&6; } |
dded80b3 KG |
5783 | else |
5784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5785 | $as_echo "buggy but acceptable" >&6; } | |
5786 | fi | |
5787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
121f0eb2 | 5788 | else |
efd58f08 | 5789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1d30ae12 | 5790 | $as_echo "no" >&6; }; have_gmp=no |
121f0eb2 | 5791 | fi |
efd58f08 | 5792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
121f0eb2 RW |
5793 | fi |
5794 | ||
5795 | # Now check the MPFR library. | |
5796 | if test x"$have_gmp" = xyes; then | |
5797 | saved_LIBS="$LIBS" | |
5798 | LIBS="$LIBS $gmplibs" | |
1d30ae12 KG |
5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5800 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
efd58f08 | 5801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
121f0eb2 | 5802 | /* end confdefs.h. */ |
1d30ae12 | 5803 | #include <mpc.h> |
121f0eb2 RW |
5804 | int |
5805 | main () | |
5806 | { | |
5807 | ||
5808 | mpfr_t n; | |
5809 | mpfr_t x; | |
1d30ae12 | 5810 | mpc_t c; |
121f0eb2 RW |
5811 | int t; |
5812 | mpfr_init (n); | |
5813 | mpfr_init (x); | |
5814 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5815 | mpfr_erfc (n, x, GMP_RNDN); | |
5816 | mpfr_subnormalize (x, t, GMP_RNDN); | |
1d30ae12 KG |
5817 | mpfr_clear(n); |
5818 | mpfr_clear(x); | |
5819 | mpc_init2 (c, 53); | |
5820 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5821 | mpc_cosh (c, c, MPC_RNDNN); | |
5822 | mpc_pow (c, c, c, MPC_RNDNN); | |
5823 | mpc_acosh (c, c, MPC_RNDNN); | |
5824 | mpc_clear (c); | |
b58b6ee1 DJ |
5825 | |
5826 | ; | |
5827 | return 0; | |
5828 | } | |
5829 | _ACEOF | |
efd58f08 RW |
5830 | if ac_fn_c_try_link "$LINENO"; then : |
5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5832 | $as_echo "yes" >&6; } | |
b58b6ee1 | 5833 | else |
efd58f08 RW |
5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5835 | $as_echo "no" >&6; }; have_gmp=no | |
b58b6ee1 | 5836 | fi |
efd58f08 RW |
5837 | rm -f core conftest.err conftest.$ac_objext \ |
5838 | conftest$ac_exeext conftest.$ac_ext | |
121f0eb2 RW |
5839 | LIBS="$saved_LIBS" |
5840 | fi | |
5841 | ||
42f55f77 | 5842 | CFLAGS="$saved_CFLAGS" |
cb2333e8 | 5843 | |
dded80b3 KG |
5844 | # The library versions listed in the error message below should match |
5845 | # the HARD-minimums enforced above. | |
42f55f77 | 5846 | if test x$have_gmp != xyes; then |
a626f4ee | 5847 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
1d30ae12 KG |
5848 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5849 | their locations. Source code for these libraries can be found at | |
5850 | their respective hosting sites as well as at | |
5851 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5852 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5853 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5854 | make sure that you have installed both the libraries and the header | |
5855 | files. They may be located in separate packages." "$LINENO" 5 | |
42f55f77 | 5856 | fi |
a6a4e782 DD |
5857 | fi |
5858 | ||
121f0eb2 RW |
5859 | # Flags needed for both GMP, MPFR and/or MPC. |
5860 | ||
5861 | ||
5862 | ||
cb2333e8 DD |
5863 | |
5864 | ||
5865 | ||
a626f4ee | 5866 | |
e8853092 | 5867 | # Libraries to use for stage1 or when not bootstrapping. |
121f0eb2 | 5868 | |
e8853092 EB |
5869 | # Check whether --with-stage1-libs was given. |
5870 | if test "${with_stage1_libs+set}" = set; then : | |
5871 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5872 | stage1_libs= | |
121f0eb2 | 5873 | else |
e8853092 | 5874 | stage1_libs=$withval |
121f0eb2 RW |
5875 | fi |
5876 | else | |
fe508576 | 5877 | stage1_libs= |
efd58f08 RW |
5878 | fi |
5879 | ||
121f0eb2 RW |
5880 | |
5881 | ||
e8853092 | 5882 | # Linker flags to use for stage1 or when not bootstrapping. |
121f0eb2 | 5883 | |
e8853092 EB |
5884 | # Check whether --with-stage1-ldflags was given. |
5885 | if test "${with_stage1_ldflags+set}" = set; then : | |
5886 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5887 | stage1_ldflags= | |
121f0eb2 | 5888 | else |
e8853092 | 5889 | stage1_ldflags=$withval |
121f0eb2 RW |
5890 | fi |
5891 | else | |
e8853092 EB |
5892 | stage1_ldflags= |
5893 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5894 | # if supported. But if the user explicitly specified the libraries to use, | |
5895 | # trust that they are doing what they want. | |
5896 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5897 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5898 | fi | |
efd58f08 RW |
5899 | fi |
5900 | ||
121f0eb2 RW |
5901 | |
5902 | ||
fe508576 | 5903 | # Libraries to use for stage2 and later builds. |
121f0eb2 | 5904 | |
efd58f08 RW |
5905 | # Check whether --with-boot-libs was given. |
5906 | if test "${with_boot_libs+set}" = set; then : | |
5907 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
121f0eb2 RW |
5908 | poststage1_libs= |
5909 | else | |
5910 | poststage1_libs=$withval | |
5911 | fi | |
5912 | else | |
fe508576 | 5913 | poststage1_libs= |
efd58f08 RW |
5914 | fi |
5915 | ||
121f0eb2 RW |
5916 | |
5917 | ||
f107c370 NC |
5918 | # Linker flags to use for stage2 and later builds. |
5919 | ||
5920 | # Check whether --with-boot-ldflags was given. | |
5921 | if test "${with_boot_ldflags+set}" = set; then : | |
5922 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5923 | poststage1_ldflags= | |
5924 | else | |
5925 | poststage1_ldflags=$withval | |
5926 | fi | |
5927 | else | |
5928 | poststage1_ldflags= | |
f2588cb9 ILT |
5929 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5930 | # statically. But if the user explicitly specified the libraries to | |
5931 | # use, trust that they are doing what they want. | |
5932 | if test "$poststage1_libs" = ""; then | |
f107c370 NC |
5933 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5934 | fi | |
5935 | fi | |
5936 | ||
5937 | ||
5938 | ||
fe508576 CV |
5939 | # GCC GRAPHITE dependency isl. |
5940 | # Basic setup is inlined here, actual checks are in config/isl.m4 | |
311b6756 JM |
5941 | |
5942 | ||
a626f4ee L |
5943 | # Check whether --with-isl was given. |
5944 | if test "${with_isl+set}" = set; then : | |
5945 | withval=$with_isl; | |
efd58f08 | 5946 | fi |
311b6756 | 5947 | |
311b6756 | 5948 | |
fe508576 | 5949 | # Treat --without-isl as a request to disable |
125bb3c9 | 5950 | # GRAPHITE support and skip all following checks. |
fe508576 CV |
5951 | if test "x$with_isl" != "xno"; then |
5952 | # Check for isl | |
125bb3c9 L |
5953 | |
5954 | ||
a626f4ee L |
5955 | # Check whether --with-isl-include was given. |
5956 | if test "${with_isl_include+set}" = set; then : | |
5957 | withval=$with_isl_include; | |
efd58f08 RW |
5958 | fi |
5959 | ||
311b6756 | 5960 | |
a626f4ee L |
5961 | # Check whether --with-isl-lib was given. |
5962 | if test "${with_isl_lib+set}" = set; then : | |
5963 | withval=$with_isl_lib; | |
efd58f08 | 5964 | fi |
311b6756 | 5965 | |
311b6756 | 5966 | |
a626f4ee L |
5967 | # Check whether --enable-isl-version-check was given. |
5968 | if test "${enable_isl_version_check+set}" = set; then : | |
5969 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5970 | else | |
5971 | ENABLE_ISL_CHECK=yes | |
2e4cdd55 SP |
5972 | fi |
5973 | ||
5974 | ||
a626f4ee L |
5975 | # Initialize isllibs and islinc. |
5976 | case $with_isl in | |
5977 | no) | |
5978 | isllibs= | |
5979 | islinc= | |
5980 | ;; | |
5981 | "" | yes) | |
5982 | ;; | |
5983 | *) | |
5984 | isllibs="-L$with_isl/lib" | |
5985 | islinc="-I$with_isl/include" | |
5986 | ;; | |
5987 | esac | |
5988 | if test "x${with_isl_include}" != x ; then | |
5989 | islinc="-I$with_isl_include" | |
5990 | fi | |
5991 | if test "x${with_isl_lib}" != x; then | |
5992 | isllibs="-L$with_isl_lib" | |
5993 | fi | |
5994 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5995 | && test -d ${srcdir}/isl; then | |
5996 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5997 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5998 | ENABLE_ISL_CHECK=no | |
fe508576 CV |
5999 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
6000 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
a626f4ee | 6001 | fi |
2e4cdd55 | 6002 | |
fe508576 CV |
6003 | isllibs="${isllibs} -lisl" |
6004 | ||
2e4cdd55 | 6005 | |
311b6756 | 6006 | |
0a7746bd JBG |
6007 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
6008 | _isl_saved_CFLAGS=$CFLAGS | |
6009 | _isl_saved_LDFLAGS=$LDFLAGS | |
6010 | _isl_saved_LIBS=$LIBS | |
6011 | ||
6012 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
fe508576 CV |
6013 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
6014 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
0a7746bd | 6015 | |
fe508576 CV |
6016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5 |
6017 | $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; } | |
6018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
0a7746bd | 6019 | /* end confdefs.h. */ |
fe508576 | 6020 | #include <isl/ctx.h> |
0a7746bd JBG |
6021 | int |
6022 | main () | |
6023 | { | |
fe508576 | 6024 | isl_ctx_get_max_operations (isl_ctx_alloc ()); |
0a7746bd JBG |
6025 | ; |
6026 | return 0; | |
6027 | } | |
6028 | _ACEOF | |
fe508576 | 6029 | if ac_fn_c_try_link "$LINENO"; then : |
0a7746bd JBG |
6030 | gcc_cv_isl=yes |
6031 | else | |
6032 | gcc_cv_isl=no | |
6033 | fi | |
fe508576 CV |
6034 | rm -f core conftest.err conftest.$ac_objext \ |
6035 | conftest$ac_exeext conftest.$ac_ext | |
0a7746bd | 6036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
a626f4ee | 6037 | $as_echo "$gcc_cv_isl" >&6; } |
efd58f08 | 6038 | |
fe508576 CV |
6039 | if test "${gcc_cv_isl}" = no ; then |
6040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5 | |
6041 | $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; } | |
6042 | fi | |
31fb5c64 | 6043 | |
fe508576 CV |
6044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5 |
6045 | $as_echo_n "checking for isl 0.16 or 0.15... " >&6; } | |
6046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
31fb5c64 | 6047 | /* end confdefs.h. */ |
fe508576 | 6048 | #include <isl/schedule.h> |
31fb5c64 JBG |
6049 | int |
6050 | main () | |
6051 | { | |
fe508576 | 6052 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
31fb5c64 JBG |
6053 | ; |
6054 | return 0; | |
6055 | } | |
6056 | _ACEOF | |
fe508576 CV |
6057 | if ac_fn_c_try_link "$LINENO"; then : |
6058 | ac_has_isl_options_set_schedule_serialize_sccs=yes | |
31fb5c64 | 6059 | else |
fe508576 | 6060 | ac_has_isl_options_set_schedule_serialize_sccs=no |
31fb5c64 | 6061 | fi |
fe508576 CV |
6062 | rm -f core conftest.err conftest.$ac_objext \ |
6063 | conftest$ac_exeext conftest.$ac_ext | |
6064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5 | |
6065 | $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; } | |
31fb5c64 | 6066 | |
fe508576 CV |
6067 | if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then |
6068 | islver="0.15" | |
6069 | ||
6070 | fi | |
31fb5c64 JBG |
6071 | |
6072 | CFLAGS=$_isl_saved_CFLAGS | |
6073 | LDFLAGS=$_isl_saved_LDFLAGS | |
6074 | LIBS=$_isl_saved_LIBS | |
6075 | fi | |
6076 | ||
6077 | ||
311b6756 | 6078 | |
311b6756 | 6079 | |
a626f4ee L |
6080 | |
6081 | ||
a626f4ee L |
6082 | if test "x${with_isl}" = xno; then |
6083 | graphite_requested=no | |
6084 | elif test "x${with_isl}" != x \ | |
6085 | || test "x${with_isl_include}" != x \ | |
6086 | || test "x${with_isl_lib}" != x ; then | |
6087 | graphite_requested=yes | |
6088 | else | |
6089 | graphite_requested=no | |
2e4cdd55 | 6090 | fi |
311b6756 | 6091 | |
311b6756 JM |
6092 | |
6093 | ||
a626f4ee L |
6094 | if test "${gcc_cv_isl}" = no ; then |
6095 | isllibs= | |
6096 | islinc= | |
6097 | fi | |
311b6756 | 6098 | |
a626f4ee L |
6099 | if test "${graphite_requested}" = yes \ |
6100 | && test "x${isllibs}" = x \ | |
6101 | && test "x${islinc}" = x ; then | |
311b6756 | 6102 | |
fe508576 | 6103 | as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
a626f4ee | 6104 | fi |
d5b7129a | 6105 | |
311b6756 | 6106 | |
efd58f08 | 6107 | fi |
311b6756 | 6108 | |
fe508576 | 6109 | # If the isl check failed, disable builds of in-tree variant of isl |
125bb3c9 | 6110 | if test "x$with_isl" = xno || |
125bb3c9 | 6111 | test "x$gcc_cv_isl" = xno; then |
fe508576 | 6112 | noconfigdirs="$noconfigdirs isl" |
125bb3c9 | 6113 | islinc= |
a626f4ee L |
6114 | fi |
6115 | ||
125bb3c9 L |
6116 | |
6117 | ||
6118 | ||
bd45d6fa ILT |
6119 | # Check for LTO support. |
6120 | # Check whether --enable-lto was given. | |
6121 | if test "${enable_lto+set}" = set; then : | |
6122 | enableval=$enable_lto; enable_lto=$enableval | |
6123 | else | |
6124 | enable_lto=yes; default_enable_lto=yes | |
6125 | fi | |
6126 | ||
6127 | ||
f107c370 | 6128 | |
0b3906a8 DK |
6129 | |
6130 | ||
6131 | target_elf=no | |
6132 | case $target in | |
6133 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
7b6010cc | 6134 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
79bb0de3 | 6135 | alpha*-dec-osf* | hppa[12]*-*-hpux* | \ |
fe508576 | 6136 | nvptx-*-none) |
0b3906a8 DK |
6137 | target_elf=no |
6138 | ;; | |
6139 | *) | |
6140 | target_elf=yes | |
6141 | ;; | |
6142 | esac | |
6143 | ||
6144 | if test $target_elf = yes; then : | |
5e504c84 DK |
6145 | # ELF platforms build the lto-plugin always. |
6146 | build_lto_plugin=yes | |
0b3906a8 | 6147 | |
0b3906a8 DK |
6148 | else |
6149 | if test x"$default_enable_lto" = x"yes" ; then | |
65a20d8c | 6150 | case $target in |
fe508576 | 6151 | *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;; |
5e504c84 | 6152 | # On other non-ELF platforms, LTO has yet to be validated. |
65a20d8c RW |
6153 | *) enable_lto=no ;; |
6154 | esac | |
0b3906a8 | 6155 | else |
65a20d8c RW |
6156 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6157 | # It would also be nice to check the binutils support, but we don't | |
0b3906a8 DK |
6158 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6159 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6160 | # -flto it won't be needed until after installation anyway. | |
6161 | case $target in | |
fe508576 | 6162 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
0b3906a8 DK |
6163 | *) if test x"$enable_lto" = x"yes"; then |
6164 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6165 | fi | |
6166 | ;; | |
6167 | esac | |
6168 | fi | |
1a91b8c0 | 6169 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
5e504c84 | 6170 | # Build it unless LTO was explicitly disabled. |
1a91b8c0 | 6171 | case $target in |
5e504c84 | 6172 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1a91b8c0 DK |
6173 | *) ;; |
6174 | esac | |
5e504c84 | 6175 | |
0b3906a8 DK |
6176 | fi |
6177 | ||
bd45d6fa | 6178 | |
fe508576 CV |
6179 | # Check whether --enable-linker-plugin-configure-flags was given. |
6180 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6181 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6182 | else | |
6183 | extra_linker_plugin_configure_flags= | |
6184 | fi | |
6185 | ||
6186 | ||
6187 | # Check whether --enable-linker-plugin-flags was given. | |
6188 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6189 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6190 | else | |
6191 | extra_linker_plugin_flags= | |
6192 | fi | |
6193 | ||
6194 | ||
6195 | ||
311b6756 | 6196 | |
a626f4ee | 6197 | # By default, C and C++ are the only stage 1 languages. |
75ea5758 | 6198 | stage1_languages=,c, |
457eaf16 | 6199 | |
121f0eb2 | 6200 | # Target libraries that we bootstrap. |
bf01561d | 6201 | bootstrap_target_libs=,target-libgcc, |
121f0eb2 | 6202 | |
cfc26d93 NN |
6203 | # Figure out what language subdirectories are present. |
6204 | # Look if the user specified --enable-languages="..."; if not, use | |
6205 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6206 | # go away some day. | |
6207 | # NB: embedded tabs in this IF block -- do not untabify | |
6208 | if test -d ${srcdir}/gcc; then | |
6209 | if test x"${enable_languages+set}" != xset; then | |
6210 | if test x"${LANGUAGES+set}" = xset; then | |
6211 | enable_languages="${LANGUAGES}" | |
fe508576 | 6212 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
cfc26d93 NN |
6213 | else |
6214 | enable_languages=all | |
6215 | fi | |
6216 | else | |
6217 | if test x"${enable_languages}" = x || | |
6218 | test x"${enable_languages}" = xyes; | |
6219 | then | |
fe508576 | 6220 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
cfc26d93 NN |
6221 | exit 1 |
6222 | fi | |
6223 | fi | |
6224 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6225 | ||
c2105cb9 DE |
6226 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6227 | # and make the substitution. | |
6228 | case ,${enable_languages}, in | |
6229 | *,f95,*) | |
fe508576 | 6230 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
c2105cb9 DE |
6231 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6232 | ;; | |
6233 | esac | |
6234 | ||
a626f4ee L |
6235 | # If bootstrapping, C++ must be enabled. |
6236 | case ",$enable_languages,:$enable_bootstrap" in | |
6237 | *,c++,*:*) ;; | |
6238 | *:yes) | |
c9161585 ILT |
6239 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6240 | enable_languages="${enable_languages},c++" | |
6241 | else | |
a626f4ee | 6242 | as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5 |
c9161585 ILT |
6243 | fi |
6244 | ;; | |
6245 | esac | |
6246 | ||
cfc26d93 NN |
6247 | # First scan to see if an enabled language requires some other language. |
6248 | # We assume that a given config-lang.in will list all the language | |
6249 | # front ends it requires, even if some are required indirectly. | |
6250 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6251 | case ${lang_frag} in | |
6252 | ..) ;; | |
6253 | # The odd quoting in the next line works around | |
6254 | # an apparent bug in bash 1.12 on linux. | |
6255 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6256 | *) | |
d5b7129a ILT |
6257 | # From the config-lang.in, get $language, $lang_requires, and |
6258 | # $lang_requires_boot_languages. | |
cfc26d93 NN |
6259 | language= |
6260 | lang_requires= | |
d5b7129a | 6261 | lang_requires_boot_languages= |
cfc26d93 | 6262 | . ${lang_frag} |
d5b7129a | 6263 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
cfc26d93 NN |
6264 | case ,${enable_languages}, in |
6265 | *,$other,*) ;; | |
6266 | *,all,*) ;; | |
6267 | *,$language,*) | |
6268 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6269 | enable_languages="${enable_languages},${other}" | |
6270 | ;; | |
6271 | esac | |
6272 | done | |
d5b7129a ILT |
6273 | for other in ${lang_requires_boot_languages} ; do |
6274 | if test "$other" != "c"; then | |
6275 | case ,${enable_stage1_languages}, in | |
6276 | *,$other,*) ;; | |
6277 | *,all,*) ;; | |
6278 | *) | |
6279 | case ,${enable_languages}, in | |
6280 | *,$language,*) | |
6281 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6282 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6283 | ;; | |
6284 | esac | |
6285 | ;; | |
6286 | esac | |
6287 | fi | |
6288 | done | |
cfc26d93 NN |
6289 | ;; |
6290 | esac | |
6291 | done | |
6292 | ||
75ea5758 | 6293 | new_enable_languages=,c, |
bd45d6fa ILT |
6294 | |
6295 | # If LTO is enabled, add the LTO front end. | |
bd45d6fa | 6296 | if test "$enable_lto" = "yes" ; then |
6c41e710 RW |
6297 | case ,${enable_languages}, in |
6298 | *,lto,*) ;; | |
6299 | *) enable_languages="${enable_languages},lto" ;; | |
6300 | esac | |
1a91b8c0 | 6301 | if test "${build_lto_plugin}" = "yes" ; then |
bd45d6fa | 6302 | configdirs="$configdirs lto-plugin" |
bd45d6fa ILT |
6303 | fi |
6304 | fi | |
6305 | ||
fe508576 CV |
6306 | # If we're building an offloading compiler, add the LTO front end. |
6307 | if test x"$enable_as_accelerator_for" != x ; then | |
6308 | case ,${enable_languages}, in | |
6309 | *,lto,*) ;; | |
6310 | *) enable_languages="${enable_languages},lto" ;; | |
6311 | esac | |
6312 | fi | |
bd45d6fa | 6313 | |
cfc26d93 | 6314 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
75ea5758 | 6315 | potential_languages=,c, |
cfc26d93 | 6316 | |
77a5d6cc ILT |
6317 | enabled_target_libs= |
6318 | disabled_target_libs= | |
6319 | ||
cfc26d93 NN |
6320 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6321 | case ${lang_frag} in | |
6322 | ..) ;; | |
6323 | # The odd quoting in the next line works around | |
6324 | # an apparent bug in bash 1.12 on linux. | |
6325 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6326 | *) | |
b58b6ee1 | 6327 | # From the config-lang.in, get $language, $target_libs, |
457eaf16 | 6328 | # $lang_dirs, $boot_language, and $build_by_default |
cfc26d93 NN |
6329 | language= |
6330 | target_libs= | |
6331 | lang_dirs= | |
f90716dd | 6332 | subdir_requires= |
75ea5758 PB |
6333 | boot_language=no |
6334 | build_by_default=yes | |
cfc26d93 | 6335 | . ${lang_frag} |
75ea5758 PB |
6336 | if test x${language} = x; then |
6337 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6338 | exit 1 | |
6339 | fi | |
6340 | ||
c9161585 | 6341 | if test "$language" = "c++"; then |
a626f4ee | 6342 | boot_language=yes |
121f0eb2 RW |
6343 | fi |
6344 | ||
125bb3c9 | 6345 | add_this_lang=no |
75ea5758 PB |
6346 | case ,${enable_languages}, in |
6347 | *,${language},*) | |
a626f4ee L |
6348 | # Language was explicitly selected; include it |
6349 | # unless it is C, which is enabled by default. | |
6350 | if test "$language" != "c"; then | |
6351 | add_this_lang=yes | |
6352 | fi | |
cfc26d93 | 6353 | ;; |
75ea5758 PB |
6354 | *,all,*) |
6355 | # 'all' was selected, select it if it is a default language | |
125bb3c9 L |
6356 | if test "$language" != "c"; then |
6357 | add_this_lang=${build_by_default} | |
6358 | fi | |
cfc26d93 NN |
6359 | ;; |
6360 | esac | |
cb2333e8 | 6361 | |
f90716dd | 6362 | # Disable languages that need other directories if these aren't available. |
37b43cde | 6363 | for i in $subdir_requires; do |
69d5f332 | 6364 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
f90716dd PB |
6365 | case ,${enable_languages}, in |
6366 | *,${language},*) | |
6367 | # Specifically requested language; tell them. | |
efd58f08 | 6368 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
f90716dd PB |
6369 | ;; |
6370 | *) | |
6371 | # Silently disable. | |
75ea5758 | 6372 | add_this_lang=unsupported |
f90716dd PB |
6373 | ;; |
6374 | esac | |
6375 | done | |
6376 | ||
75ea5758 PB |
6377 | # Disable Ada if no preexisting GNAT is available. |
6378 | case ,${enable_languages},:${language}:${have_gnat} in | |
6379 | *,${language},*:ada:no) | |
6380 | # Specifically requested language; tell them. | |
efd58f08 | 6381 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
75ea5758 PB |
6382 | ;; |
6383 | *:ada:no) | |
6384 | # Silently disable. | |
6385 | add_this_lang=unsupported | |
6386 | ;; | |
6387 | esac | |
6388 | ||
aac893c5 HPN |
6389 | # Disable a language that is unsupported by the target. |
6390 | case " $unsupported_languages " in | |
6391 | *" $language "*) | |
75ea5758 | 6392 | add_this_lang=unsupported |
aac893c5 HPN |
6393 | ;; |
6394 | esac | |
6395 | ||
cb2333e8 | 6396 | case $add_this_lang in |
75ea5758 | 6397 | unsupported) |
cfc26d93 | 6398 | # Remove language-dependent dirs. |
77a5d6cc ILT |
6399 | disabled_target_libs="$disabled_target_libs $target_libs" |
6400 | noconfigdirs="$noconfigdirs $lang_dirs" | |
457eaf16 | 6401 | ;; |
75ea5758 PB |
6402 | no) |
6403 | # Remove language-dependent dirs; still show language as supported. | |
77a5d6cc ILT |
6404 | disabled_target_libs="$disabled_target_libs $target_libs" |
6405 | noconfigdirs="$noconfigdirs $lang_dirs" | |
75ea5758 PB |
6406 | potential_languages="${potential_languages}${language}," |
6407 | ;; | |
6408 | yes) | |
6409 | new_enable_languages="${new_enable_languages}${language}," | |
6410 | potential_languages="${potential_languages}${language}," | |
457eaf16 | 6411 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
77a5d6cc | 6412 | enabled_target_libs="$enabled_target_libs $target_libs" |
e1762cf3 RW |
6413 | case "${boot_language}:,$enable_stage1_languages," in |
6414 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
8ec98d6c | 6415 | # Add to (comma-separated) list of stage 1 languages. |
e1762cf3 RW |
6416 | case ",$stage1_languages," in |
6417 | *,$language,* | ,yes, | ,all,) ;; | |
6418 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6419 | esac | |
121f0eb2 RW |
6420 | # We need to bootstrap any supporting libraries. |
6421 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
457eaf16 NN |
6422 | ;; |
6423 | esac | |
6424 | ;; | |
cfc26d93 NN |
6425 | esac |
6426 | ;; | |
6427 | esac | |
6428 | done | |
6429 | ||
77a5d6cc ILT |
6430 | # Add target libraries which are only needed for disabled languages |
6431 | # to noconfigdirs. | |
6432 | if test -n "$disabled_target_libs"; then | |
6433 | for dir in $disabled_target_libs; do | |
6434 | case " $enabled_target_libs " in | |
6435 | *" ${dir} "*) ;; | |
6436 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6437 | esac | |
6438 | done | |
6439 | fi | |
6440 | ||
efd58f08 RW |
6441 | # Check whether --enable-stage1-languages was given. |
6442 | if test "${enable_stage1_languages+set}" = set; then : | |
6443 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
75ea5758 PB |
6444 | ,no,|,,) |
6445 | # Set it to something that will have no effect in the loop below | |
6446 | enable_stage1_languages=c ;; | |
6447 | ,yes,) | |
6448 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6449 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6450 | *,all,*) | |
6451 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6452 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6453 | esac | |
6454 | ||
6455 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6456 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6457 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6458 | case $potential_languages in | |
6459 | *,$i,*) | |
6460 | case $stage1_languages in | |
6461 | *,$i,*) ;; | |
6462 | *) stage1_languages="$stage1_languages$i," ;; | |
6463 | esac ;; | |
6464 | *) | |
6465 | case $missing_languages in | |
6466 | *,$i,*) ;; | |
6467 | *) missing_languages="$missing_languages$i," ;; | |
6468 | esac ;; | |
6469 | esac | |
6470 | done | |
efd58f08 RW |
6471 | fi |
6472 | ||
75ea5758 PB |
6473 | |
6474 | # Remove leading/trailing commas that were added for simplicity | |
6475 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
2e93c971 | 6476 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
75ea5758 PB |
6477 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6478 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6479 | ||
cfc26d93 | 6480 | if test "x$missing_languages" != x; then |
efd58f08 | 6481 | as_fn_error " |
57bcaf2d | 6482 | The following requested languages could not be built: ${missing_languages} |
efd58f08 | 6483 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
cfc26d93 | 6484 | fi |
cfc26d93 NN |
6485 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6486 | echo The following languages will be built: ${new_enable_languages} | |
75ea5758 | 6487 | enable_languages="$new_enable_languages" |
cfc26d93 | 6488 | fi |
75ea5758 | 6489 | |
b58b6ee1 | 6490 | |
0661a4a3 | 6491 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
cfc26d93 NN |
6492 | fi |
6493 | ||
f621a0dc PB |
6494 | # Handle --disable-<component> generically. |
6495 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6496 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
3fbb5e3d PB |
6497 | varname=`echo $dirname | sed -e s/+/_/g` |
6498 | if eval test x\${enable_${varname}} "=" xno ; then | |
f621a0dc PB |
6499 | noconfigdirs="$noconfigdirs $dir" |
6500 | fi | |
6501 | done | |
6502 | ||
e1e5148c | 6503 | # Check for Boehm's garbage collector |
efd58f08 RW |
6504 | # Check whether --enable-objc-gc was given. |
6505 | if test "${enable_objc_gc+set}" = set; then : | |
6506 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
e1e5148c | 6507 | *,objc,*:*:yes:*target-boehm-gc*) |
efd58f08 | 6508 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
e1e5148c CD |
6509 | ;; |
6510 | esac | |
efd58f08 RW |
6511 | fi |
6512 | ||
e1e5148c CD |
6513 | |
6514 | # Make sure we only build Boehm's garbage collector if required. | |
09fd280c DA |
6515 | case ,${enable_languages},:${enable_objc_gc} in |
6516 | *,objc,*:yes) | |
e1e5148c CD |
6517 | # Keep target-boehm-gc if requested for Objective-C. |
6518 | ;; | |
e1e5148c | 6519 | *) |
09fd280c DA |
6520 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6521 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6522 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6523 | fi | |
e1e5148c CD |
6524 | ;; |
6525 | esac | |
6526 | ||
fe508576 | 6527 | # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
a626f4ee | 6528 | case ,${enable_languages}, in |
fe508576 CV |
6529 | *,c++,*) |
6530 | # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++ | |
6531 | case "${noconfigdirs}" in | |
6532 | *target-libstdc++-v3*) | |
6533 | noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer" | |
6534 | ;; | |
6535 | *) ;; | |
6536 | esac | |
6537 | ;; | |
a626f4ee | 6538 | *) |
fe508576 | 6539 | noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
a626f4ee L |
6540 | ;; |
6541 | esac | |
6542 | ||
3d439922 AL |
6543 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6544 | # $build_configdirs and $target_configdirs. | |
cfc26d93 NN |
6545 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6546 | ||
6547 | notsupp="" | |
6548 | for dir in . $skipdirs $noconfigdirs ; do | |
3d439922 | 6549 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
cfc26d93 NN |
6550 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6551 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6552 | if test -r $srcdir/$dirname/configure ; then | |
6553 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6554 | true | |
6555 | else | |
6556 | notsupp="$notsupp $dir" | |
6557 | fi | |
6558 | fi | |
6559 | fi | |
3d439922 AL |
6560 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6561 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6562 | if test -r $srcdir/$dirname/configure ; then | |
6563 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6564 | true | |
6565 | else | |
6566 | notsupp="$notsupp $dir" | |
6567 | fi | |
6568 | fi | |
6569 | fi | |
cfc26d93 NN |
6570 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6571 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6572 | if test -r $srcdir/$dirname/configure ; then | |
6573 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6574 | true | |
6575 | else | |
6576 | notsupp="$notsupp $dir" | |
6577 | fi | |
6578 | fi | |
6579 | fi | |
6580 | done | |
6581 | ||
cfc26d93 NN |
6582 | # Quietly strip out all directories which aren't configurable in this tree. |
6583 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6584 | # is now the case. | |
2cb47d68 PB |
6585 | build_configdirs_all="$build_configdirs" |
6586 | build_configdirs= | |
6587 | for i in ${build_configdirs_all} ; do | |
b58b6ee1 | 6588 | j=`echo $i | sed -e s/build-//g` |
2cb47d68 PB |
6589 | if test -f ${srcdir}/$j/configure ; then |
6590 | build_configdirs="${build_configdirs} $i" | |
6591 | fi | |
6592 | done | |
6593 | ||
cfc26d93 NN |
6594 | configdirs_all="$configdirs" |
6595 | configdirs= | |
6596 | for i in ${configdirs_all} ; do | |
6597 | if test -f ${srcdir}/$i/configure ; then | |
6598 | configdirs="${configdirs} $i" | |
6599 | fi | |
6600 | done | |
2cb47d68 | 6601 | |
cfc26d93 NN |
6602 | target_configdirs_all="$target_configdirs" |
6603 | target_configdirs= | |
6604 | for i in ${target_configdirs_all} ; do | |
b58b6ee1 | 6605 | j=`echo $i | sed -e s/target-//g` |
cfc26d93 NN |
6606 | if test -f ${srcdir}/$j/configure ; then |
6607 | target_configdirs="${target_configdirs} $i" | |
6608 | fi | |
6609 | done | |
6610 | ||
fe508576 CV |
6611 | # Exclude target-zlib if target-libjava isn't built. |
6612 | case ${target_configdirs} in | |
6613 | *target-libjava*) | |
6614 | ;; | |
6615 | *) | |
6616 | target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`" | |
6617 | ;; | |
6618 | esac | |
6619 | ||
6620 | # libiberty-linker-plugin is special: it doesn't have its own source directory, | |
6621 | # so we have to add it after the preceding checks. | |
6622 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6623 | then | |
6624 | case " $configdirs " in | |
6625 | *" libiberty "*) | |
6626 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6627 | configdirs="$configdirs libiberty-linker-plugin" | |
6628 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6629 | --with-libiberty=../libiberty-linker-plugin";; | |
6630 | *) | |
6631 | as_fn_error "libiberty missing" "$LINENO" 5;; | |
6632 | esac | |
6633 | fi | |
6634 | ||
6635 | # Sometimes we have special requirements for the host libiberty. | |
6636 | extra_host_libiberty_configure_flags= | |
6637 | extra_host_zlib_configure_flags= | |
6638 | case " $configdirs " in | |
6639 | *" lto-plugin "* | *" libcc1 "*) | |
6640 | # When these are to be built as shared libraries, the same applies to | |
6641 | # libiberty. | |
6642 | extra_host_libiberty_configure_flags=--enable-shared | |
6643 | ;; | |
6644 | *" bfd "*) | |
6645 | # When bfd is to be built as a shared library, the same applies to | |
6646 | # zlib. | |
6647 | if test "$enable_shared" = "yes"; then | |
6648 | extra_host_zlib_configure_flags=--enable-host-shared | |
6649 | fi | |
6650 | ;; | |
6651 | esac | |
6652 | ||
6653 | ||
6654 | ||
cfc26d93 NN |
6655 | # Produce a warning message for the subdirs we can't configure. |
6656 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6657 | # FSF releases, it's important to let people know when their machine isn't | |
6658 | # supported by the one or two programs in a package. | |
6659 | ||
6660 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6661 | # If $appdirs is non-empty, at least one of those directories must still | |
6662 | # be configured, or we error out. (E.g., if the gas release supports a | |
6663 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6664 | # pretend that all is well.) | |
6665 | if test -n "$appdirs" ; then | |
6666 | for dir in $appdirs ; do | |
6667 | if test -r $dir/Makefile.in ; then | |
6668 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6669 | appdirs="" | |
6670 | break | |
6671 | fi | |
2cb47d68 | 6672 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
cfc26d93 NN |
6673 | appdirs="" |
6674 | break | |
6675 | fi | |
6676 | fi | |
6677 | done | |
6678 | if test -n "$appdirs" ; then | |
6679 | echo "*** This configuration is not supported by this package." 1>&2 | |
6680 | exit 1 | |
6681 | fi | |
6682 | fi | |
6683 | # Okay, some application will build, or we don't care to check. Still | |
6684 | # notify of subdirs not getting built. | |
6685 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6686 | echo " ${notsupp}" 1>&2 | |
6687 | echo " (Any other directories should still work fine.)" 1>&2 | |
6688 | fi | |
6689 | ||
6690 | case "$host" in | |
6691 | *msdosdjgpp*) | |
6692 | enable_gdbtk=no ;; | |
6693 | esac | |
6694 | ||
b8c26111 PB |
6695 | # To find our prefix, in gcc_cv_tool_prefix. |
6696 | ||
6697 | # The user is always right. | |
6698 | if test "${PATH_SEPARATOR+set}" != set; then | |
6699 | echo "#! /bin/sh" >conf$$.sh | |
6700 | echo "exit 0" >>conf$$.sh | |
6701 | chmod +x conf$$.sh | |
6702 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6703 | PATH_SEPARATOR=';' | |
6704 | else | |
6705 | PATH_SEPARATOR=: | |
6706 | fi | |
6707 | rm -f conf$$.sh | |
6708 | fi | |
6709 | ||
6710 | ||
6711 | ||
6712 | if test "x$exec_prefix" = xNONE; then | |
6713 | if test "x$prefix" = xNONE; then | |
6714 | gcc_cv_tool_prefix=$ac_default_prefix | |
6715 | else | |
6716 | gcc_cv_tool_prefix=$prefix | |
6717 | fi | |
6718 | else | |
6719 | gcc_cv_tool_prefix=$exec_prefix | |
6720 | fi | |
6721 | ||
6722 | # If there is no compiler in the tree, use the PATH only. In any | |
6723 | # case, if there is no compiler in the tree nobody should use | |
6724 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6725 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6726 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6727 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6728 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6729 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6730 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6731 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6732 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6733 | else | |
6734 | gcc_cv_tool_dirs= | |
6735 | fi | |
6736 | ||
6737 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6738 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6739 | fi | |
6740 | ||
6741 | ||
6742 | ||
cfc26d93 NN |
6743 | copy_dirs= |
6744 | ||
b58b6ee1 | 6745 | |
efd58f08 RW |
6746 | # Check whether --with-build-sysroot was given. |
6747 | if test "${with_build_sysroot+set}" = set; then : | |
6748 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
9b992990 MM |
6749 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6750 | fi | |
6751 | else | |
6752 | SYSROOT_CFLAGS_FOR_TARGET= | |
efd58f08 | 6753 | fi |
9b992990 MM |
6754 | |
6755 | ||
fcc5fef0 | 6756 | |
efd58f08 RW |
6757 | |
6758 | # Check whether --with-debug-prefix-map was given. | |
6759 | if test "${with_debug_prefix_map+set}" = set; then : | |
6760 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
fcc5fef0 JM |
6761 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6762 | for debug_map in $withval; do | |
6763 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6764 | done | |
6765 | fi | |
6766 | else | |
6767 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
efd58f08 RW |
6768 | fi |
6769 | ||
fcc5fef0 JM |
6770 | |
6771 | ||
6532abb6 PB |
6772 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6773 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6774 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6775 | # We want to ensure that TARGET libraries (which we know are built with | |
6776 | # gcc) are built with "-O2 -g", so include those options when setting | |
6777 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6778 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
fe508576 CV |
6779 | if test "x${is_cross_compiler}" = xyes; then |
6780 | CFLAGS_FOR_TARGET="-g -O2" | |
6781 | else | |
6782 | CFLAGS_FOR_TARGET=$CFLAGS | |
6783 | case " $CFLAGS " in | |
6784 | *" -O2 "*) ;; | |
6785 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6786 | esac | |
6787 | case " $CFLAGS " in | |
6788 | *" -g "* | *" -g3 "*) ;; | |
6789 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6790 | esac | |
6791 | fi | |
6532abb6 PB |
6792 | fi |
6793 | ||
6794 | ||
6795 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
fe508576 CV |
6796 | if test "x${is_cross_compiler}" = xyes; then |
6797 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6798 | else | |
6799 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6800 | case " $CXXFLAGS " in | |
6801 | *" -O2 "*) ;; | |
6802 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6803 | esac | |
6804 | case " $CXXFLAGS " in | |
6805 | *" -g "* | *" -g3 "*) ;; | |
6806 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6807 | esac | |
6808 | fi | |
6532abb6 PB |
6809 | fi |
6810 | ||
6811 | ||
2e7bf520 DK |
6812 | |
6813 | ||
cfc26d93 NN |
6814 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6815 | # the named directory are copied to $(tooldir)/sys-include. | |
6816 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6817 | if test x${is_cross_compiler} = xno ; then | |
6818 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6819 | exit 1 | |
6820 | fi | |
6821 | if test x"${with_headers}" != xyes ; then | |
b8c26111 | 6822 | x=${gcc_cv_tool_prefix} |
b58b6ee1 | 6823 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
cfc26d93 NN |
6824 | fi |
6825 | fi | |
6826 | ||
6827 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6828 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6829 | # are permitted. | |
6830 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6831 | if test x${is_cross_compiler} = xno ; then | |
6832 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6833 | exit 1 | |
6834 | fi | |
6835 | if test x"${with_libs}" != xyes ; then | |
6836 | # Copy the libraries in reverse order, so that files in the first named | |
6837 | # library override files in subsequent libraries. | |
b8c26111 | 6838 | x=${gcc_cv_tool_prefix} |
cfc26d93 | 6839 | for l in ${with_libs}; do |
b58b6ee1 | 6840 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
cfc26d93 NN |
6841 | done |
6842 | fi | |
6843 | fi | |
6844 | ||
bd45d6fa | 6845 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
fef3f213 PB |
6846 | # |
6847 | # This is done by determining whether or not the appropriate directory | |
6848 | # is available, and by checking whether or not specific configurations | |
6849 | # have requested that this magic not happen. | |
b58b6ee1 DJ |
6850 | # |
6851 | # The command line options always override the explicit settings in | |
fe508576 | 6852 | # configure.ac, and the settings in configure.ac override this magic. |
fef3f213 | 6853 | # |
b58b6ee1 | 6854 | # If the default for a toolchain is to use GNU as and ld, and you don't |
fef3f213 | 6855 | # want to do that, then you should use the --without-gnu-as and |
bd45d6fa ILT |
6856 | # --without-gnu-ld options for the configure script. Similarly, if |
6857 | # the default is to use the included zlib and you don't want to do that, | |
6858 | # you should use the --with-system-zlib option for the configure script. | |
fef3f213 PB |
6859 | |
6860 | if test x${use_gnu_as} = x && | |
6861 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6862 | with_gnu_as=yes | |
6863 | extra_host_args="$extra_host_args --with-gnu-as" | |
6864 | fi | |
6865 | ||
6866 | if test x${use_gnu_ld} = x && | |
b916272a | 6867 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
fef3f213 PB |
6868 | with_gnu_ld=yes |
6869 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6870 | fi | |
6871 | ||
bd45d6fa ILT |
6872 | if test x${use_included_zlib} = x && |
6873 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6874 | : | |
6875 | else | |
6876 | with_system_zlib=yes | |
6877 | extra_host_args="$extra_host_args --with-system-zlib" | |
6878 | fi | |
6879 | ||
fef3f213 PB |
6880 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6881 | # can detect this case. | |
6882 | ||
6883 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6884 | with_newlib=yes | |
6885 | extra_host_args="$extra_host_args --with-newlib" | |
6886 | fi | |
6887 | ||
cfc26d93 NN |
6888 | # Handle ${copy_dirs} |
6889 | set fnord ${copy_dirs} | |
6890 | shift | |
6891 | while test $# != 0 ; do | |
6892 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6893 | : | |
6894 | else | |
6895 | echo Copying $1 to $2 | |
6896 | ||
6897 | # Use the install script to create the directory and all required | |
6898 | # parent directories. | |
6899 | if test -d $2 ; then | |
6900 | : | |
6901 | else | |
6902 | echo >config.temp | |
6903 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6904 | fi | |
6905 | ||
6906 | # Copy the directory, assuming we have tar. | |
6907 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6908 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6909 | ||
6910 | # It is the responsibility of the user to correctly adjust all | |
6911 | # symlinks. If somebody can figure out how to handle them correctly | |
6912 | # here, feel free to add the code. | |
6913 | ||
6914 | echo $1 > $2/COPIED | |
6915 | fi | |
6916 | shift; shift | |
6917 | done | |
6918 | ||
fef3f213 PB |
6919 | # Determine a target-dependent exec_prefix that the installed |
6920 | # gcc will search in. Keep this list sorted by triplet, with | |
6921 | # the *-*-osname triplets last. | |
6922 | md_exec_prefix= | |
6923 | case "${target}" in | |
b301596e | 6924 | i[34567]86-pc-msdosdjgpp*) |
fef3f213 PB |
6925 | md_exec_prefix=/dev/env/DJDIR/bin |
6926 | ;; | |
fef3f213 | 6927 | *-*-hpux* | \ |
fef3f213 | 6928 | *-*-nto-qnx* | \ |
ebc0cd55 | 6929 | *-*-solaris2*) |
fef3f213 PB |
6930 | md_exec_prefix=/usr/ccs/bin |
6931 | ;; | |
6932 | esac | |
6933 | ||
bafecfd6 NN |
6934 | extra_arflags_for_target= |
6935 | extra_nmflags_for_target= | |
6936 | extra_ranlibflags_for_target= | |
6937 | target_makefile_frag=/dev/null | |
6938 | case "${target}" in | |
e53c5df0 AM |
6939 | spu-*-*) |
6940 | target_makefile_frag="config/mt-spu" | |
6941 | ;; | |
fe508576 | 6942 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
2ad518b5 RS |
6943 | target_makefile_frag="config/mt-sde" |
6944 | ;; | |
2d2e75dd RS |
6945 | mipsisa*-*-elfoabi*) |
6946 | target_makefile_frag="config/mt-mips-elfoabi" | |
6947 | ;; | |
59c59569 RS |
6948 | mips*-*-*linux* | mips*-*-gnu*) |
6949 | target_makefile_frag="config/mt-mips-gnu" | |
6950 | ;; | |
b9ee0bb0 SL |
6951 | nios2-*-elf*) |
6952 | target_makefile_frag="config/mt-nios2-elf" | |
6953 | ;; | |
9f8da9ce | 6954 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
824cf273 | 6955 | target_makefile_frag="config/mt-gnu" |
bafecfd6 NN |
6956 | ;; |
6957 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
b58b6ee1 | 6958 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
bafecfd6 NN |
6959 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6960 | # harmless if we're using GNU nm or ar. | |
6961 | extra_arflags_for_target=" -X32_64" | |
6962 | extra_nmflags_for_target=" -B -X32_64" | |
6963 | ;; | |
bafecfd6 NN |
6964 | esac |
6965 | ||
6966 | alphaieee_frag=/dev/null | |
6967 | case $target in | |
6968 | alpha*-*-*) | |
6969 | # This just makes sure to use the -mieee option to build target libs. | |
6970 | # This should probably be set individually by each library. | |
6971 | alphaieee_frag="config/mt-alphaieee" | |
6972 | ;; | |
6973 | esac | |
6974 | ||
6975 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6976 | # the target libraries, similarly if it is not specified, use -Os | |
6977 | # on selected platforms. | |
6978 | ospace_frag=/dev/null | |
6979 | case "${enable_target_optspace}:${target}" in | |
6980 | yes:*) | |
6981 | ospace_frag="config/mt-ospace" | |
6982 | ;; | |
6983 | :d30v-*) | |
6984 | ospace_frag="config/mt-d30v" | |
6985 | ;; | |
fe508576 | 6986 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
bafecfd6 NN |
6987 | ospace_frag="config/mt-ospace" |
6988 | ;; | |
6989 | no:* | :*) | |
6990 | ;; | |
6991 | *) | |
6992 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6993 | ;; | |
6994 | esac | |
6995 | ||
bafecfd6 NN |
6996 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6997 | # using) don't handle "\$" correctly, so don't use it here. | |
b58b6ee1 | 6998 | tooldir='${exec_prefix}'/${target_noncanonical} |
bafecfd6 NN |
6999 | build_tooldir=${tooldir} |
7000 | ||
bafecfd6 NN |
7001 | # Create a .gdbinit file which runs the one in srcdir |
7002 | # and tells GDB to look there for source files. | |
7003 | ||
7004 | if test -r ${srcdir}/.gdbinit ; then | |
7005 | case ${srcdir} in | |
7006 | .) ;; | |
7007 | *) cat > ./.gdbinit <<EOF | |
7008 | # ${NO_EDIT} | |
7009 | dir ${srcdir} | |
7010 | dir . | |
7011 | source ${srcdir}/.gdbinit | |
7012 | EOF | |
7013 | ;; | |
7014 | esac | |
7015 | fi | |
7016 | ||
bafecfd6 NN |
7017 | # Make sure that the compiler is able to generate an executable. If it |
7018 | # can't, we are probably in trouble. We don't care whether we can run the | |
7019 | # executable--we might be using a cross compiler--we only care whether it | |
7020 | # can be created. At this point the main configure script has set CC. | |
7021 | we_are_ok=no | |
7022 | echo "int main () { return 0; }" > conftest.c | |
7023 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7024 | if test $? = 0 ; then | |
7025 | if test -s conftest || test -s conftest.exe ; then | |
7026 | we_are_ok=yes | |
7027 | fi | |
b58b6ee1 | 7028 | fi |
bafecfd6 NN |
7029 | case $we_are_ok in |
7030 | no) | |
7031 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
7032 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
7033 | rm -f conftest* | |
7034 | exit 1 | |
7035 | ;; | |
7036 | esac | |
7037 | rm -f conftest* | |
7038 | ||
8453fdba | 7039 | # Decide which environment variable is used to find dynamic libraries. |
bafecfd6 NN |
7040 | case "${host}" in |
7041 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
4e55c4e3 | 7042 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
8453fdba | 7043 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
bafecfd6 NN |
7044 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
7045 | esac | |
7046 | ||
8453fdba | 7047 | # On systems where the dynamic library environment variable is PATH, |
311b6756 JM |
7048 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
7049 | # built executables to PATH. | |
8453fdba AL |
7050 | if test "$RPATH_ENVVAR" = PATH; then |
7051 | GCC_SHLIB_SUBDIR=/shlib | |
7052 | else | |
7053 | GCC_SHLIB_SUBDIR= | |
7054 | fi | |
7055 | ||
ebc58bf8 | 7056 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
55662058 | 7057 | case $enable_bootstrap in |
e1666221 | 7058 | yes) |
55662058 AO |
7059 | bootstrap_suffix=bootstrap |
7060 | BUILD_CONFIG=bootstrap-debug | |
7061 | ;; | |
e1666221 | 7062 | no) |
55662058 AO |
7063 | bootstrap_suffix=no-bootstrap |
7064 | BUILD_CONFIG= | |
7065 | ;; | |
e1666221 PB |
7066 | esac |
7067 | ||
55662058 AO |
7068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 |
7069 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7070 | ||
7071 | ||
7072 | # Check whether --with-build-config was given. | |
7073 | if test "${with_build_config+set}" = set; then : | |
7074 | withval=$with_build_config; case $with_build_config in | |
7075 | yes) with_build_config= ;; | |
7076 | no) with_build_config= BUILD_CONFIG= ;; | |
7077 | esac | |
7078 | fi | |
7079 | ||
7080 | ||
7081 | if test "x${with_build_config}" != x; then | |
7082 | BUILD_CONFIG=$with_build_config | |
7083 | else | |
7084 | case $BUILD_CONFIG in | |
7085 | bootstrap-debug) | |
7086 | if echo "int f (void) { return 0; }" > conftest.c && | |
7087 | ${CC} -c conftest.c && | |
7088 | mv conftest.o conftest.o.g0 && | |
7089 | ${CC} -c -g conftest.c && | |
7090 | mv conftest.o conftest.o.g && | |
112afadf | 7091 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then |
55662058 AO |
7092 | : |
7093 | else | |
fe508576 CV |
7094 | BUILD_CONFIG= |
7095 | fi | |
7096 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7097 | ;; | |
7098 | esac | |
7099 | fi | |
7100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7101 | $as_echo "$BUILD_CONFIG" >&6; } | |
7102 | ||
7103 | ||
7104 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7106 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7107 | # Check whether --enable-vtable-verify was given. | |
7108 | if test "${enable_vtable_verify+set}" = set; then : | |
7109 | enableval=$enable_vtable_verify; case "$enableval" in | |
7110 | yes) enable_vtable_verify=yes ;; | |
7111 | no) enable_vtable_verify=no ;; | |
7112 | *) enable_vtable_verify=no;; | |
7113 | esac | |
7114 | else | |
7115 | enable_vtable_verify=no | |
7116 | fi | |
7117 | ||
7118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7119 | $as_echo "$enable_vtable_verify" >&6; } | |
7120 | ||
7121 | # Record target_configdirs and the configure arguments for target and | |
7122 | # build configuration in Makefile. | |
7123 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
7124 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` | |
7125 | bootstrap_fixincludes=no | |
7126 | ||
7127 | # If we are building libgomp, bootstrap it. | |
7128 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7129 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7130 | fi | |
7131 | ||
7132 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan | |
7133 | # or bootstrap-ubsan, bootstrap it. | |
7134 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7135 | case "$BUILD_CONFIG" in | |
7136 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7137 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
7138 | bootstrap_fixincludes=yes | |
7139 | ;; | |
7140 | esac | |
7141 | fi | |
7142 | ||
7143 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. | |
7144 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7145 | test "$enable_vtable_verify" != no; then | |
7146 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, | |
7147 | fi | |
7148 | ||
7149 | # If we are building libmpx, bootstrap it. | |
7150 | if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then | |
7151 | bootstrap_target_libs=${bootstrap_target_libs}target-libmpx, | |
7152 | fi | |
7153 | ||
7154 | # Determine whether gdb needs tk/tcl or not. | |
7155 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7156 | # and in that case we want gdb to be built without tk. Ugh! | |
7157 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7158 | # so we should be able to put the 'maybe's in unconditionally and | |
7159 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7160 | # 100% sure that that's safe though. | |
7161 | ||
7162 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" | |
7163 | case "$enable_gdbtk" in | |
7164 | no) | |
7165 | GDB_TK="" ;; | |
7166 | yes) | |
7167 | GDB_TK="${gdb_tk}" ;; | |
7168 | *) | |
7169 | # Only add the dependency on gdbtk when GDBtk is part of the gdb | |
7170 | # distro. Eventually someone will fix this and move Insight, nee | |
7171 | # gdbtk to a separate directory. | |
7172 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7173 | GDB_TK="${gdb_tk}" | |
7174 | else | |
7175 | GDB_TK="" | |
55662058 | 7176 | fi |
55662058 | 7177 | ;; |
fe508576 CV |
7178 | esac |
7179 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` | |
7180 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
7181 | ||
7182 | # Strip out unwanted targets. | |
7183 | ||
7184 | # While at that, we remove Makefiles if we were started for recursive | |
7185 | # configuration, so that the top-level Makefile reconfigures them, | |
7186 | # like we used to do when configure itself was recursive. | |
7187 | ||
7188 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf | |
7189 | # but now we're fixing up the Makefile ourselves with the additional | |
7190 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7191 | # extrasub-{build,host,target} not because there is any reason to split | |
7192 | # the substitutions up that way, but only to remain below the limit of | |
7193 | # 99 commands in a script, for HP-UX sed. | |
3127effc AO |
7194 | |
7195 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
7196 | # configure will not warn you at all. | |
55662058 | 7197 | |
fe508576 CV |
7198 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7199 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7200 | yes:yes:*\ gold\ *:*) | |
7201 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
7202 | ;; | |
7203 | esac | |
55662058 | 7204 | |
94f4a7b9 | 7205 | extrasub_build= |
2cb47d68 | 7206 | for module in ${build_configdirs} ; do |
aac4e7d4 CF |
7207 | if test -z "${no_recursion}" \ |
7208 | && test -f ${build_subdir}/${module}/Makefile; then | |
7209 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7210 | rm -f ${build_subdir}/${module}/Makefile | |
7211 | fi | |
94f4a7b9 | 7212 | extrasub_build="$extrasub_build |
aac4e7d4 CF |
7213 | /^@if build-$module\$/d |
7214 | /^@endif build-$module\$/d | |
3127effc | 7215 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
aac4e7d4 | 7216 | /^@if build-$module-$bootstrap_suffix\$/d |
3127effc AO |
7217 | /^@endif build-$module-$bootstrap_suffix\$/d |
7218 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
aac4e7d4 | 7219 | done |
94f4a7b9 | 7220 | extrasub_host= |
aac4e7d4 | 7221 | for module in ${configdirs} ; do |
e3c08f94 | 7222 | if test -z "${no_recursion}"; then |
bde7f665 | 7223 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
e3c08f94 PB |
7224 | if test -f ${file}; then |
7225 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7226 | rm -f ${file} | |
7227 | fi | |
7228 | done | |
aac4e7d4 | 7229 | fi |
fe508576 CV |
7230 | case ${module},${bootstrap_fixincludes} in |
7231 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7232 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7233 | esac | |
94f4a7b9 | 7234 | extrasub_host="$extrasub_host |
aac4e7d4 CF |
7235 | /^@if $module\$/d |
7236 | /^@endif $module\$/d | |
3127effc | 7237 | /^@unless $module\$/,/^@endunless $module\$/d |
fe508576 | 7238 | /^@if $module-$host_bootstrap_suffix\$/d |
3127effc AO |
7239 | /^@endif $module-$host_bootstrap_suffix\$/d |
7240 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
aac4e7d4 | 7241 | done |
94f4a7b9 | 7242 | extrasub_target= |
aac4e7d4 CF |
7243 | for module in ${target_configdirs} ; do |
7244 | if test -z "${no_recursion}" \ | |
7245 | && test -f ${target_subdir}/${module}/Makefile; then | |
7246 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7247 | rm -f ${target_subdir}/${module}/Makefile | |
7248 | fi | |
121f0eb2 RW |
7249 | |
7250 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7251 | case $bootstrap_target_libs in | |
7252 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7253 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7254 | esac | |
7255 | ||
94f4a7b9 | 7256 | extrasub_target="$extrasub_target |
aac4e7d4 CF |
7257 | /^@if target-$module\$/d |
7258 | /^@endif target-$module\$/d | |
3127effc | 7259 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
121f0eb2 | 7260 | /^@if target-$module-$target_bootstrap_suffix\$/d |
3127effc AO |
7261 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
7262 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
aac4e7d4 CF |
7263 | done |
7264 | ||
94f4a7b9 RW |
7265 | # Do the final fixup along with target modules. |
7266 | extrasub_target="$extrasub_target | |
3127effc AO |
7267 | /^@if /,/^@endif /d |
7268 | /^@unless /d | |
7269 | /^@endunless /d" | |
bafecfd6 NN |
7270 | |
7271 | # Create the serialization dependencies. This uses a temporary file. | |
7272 | ||
efd58f08 RW |
7273 | # Check whether --enable-serial-configure was given. |
7274 | if test "${enable_serial_configure+set}" = set; then : | |
7275 | enableval=$enable_serial_configure; | |
7276 | fi | |
af9955fa AO |
7277 | |
7278 | ||
7f74e6a3 DD |
7279 | case ${enable_serial_configure} in |
7280 | yes) | |
7281 | enable_serial_build_configure=yes | |
7282 | enable_serial_host_configure=yes | |
7283 | enable_serial_target_configure=yes | |
7284 | ;; | |
7285 | esac | |
7286 | ||
bafecfd6 NN |
7287 | # These force 'configure's to be done one at a time, to avoid problems |
7288 | # with contention over a shared config.cache. | |
7289 | rm -f serdep.tmp | |
af9955fa | 7290 | echo '# serdep.tmp' > serdep.tmp |
bafecfd6 | 7291 | olditem= |
7f74e6a3 | 7292 | test "x${enable_serial_build_configure}" = xyes && |
bafecfd6 NN |
7293 | for item in ${build_configdirs} ; do |
7294 | case ${olditem} in | |
7295 | "") ;; | |
af9955fa | 7296 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
bafecfd6 NN |
7297 | esac |
7298 | olditem=${item} | |
7299 | done | |
7300 | olditem= | |
7f74e6a3 | 7301 | test "x${enable_serial_host_configure}" = xyes && |
bafecfd6 NN |
7302 | for item in ${configdirs} ; do |
7303 | case ${olditem} in | |
7304 | "") ;; | |
af9955fa | 7305 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
bafecfd6 NN |
7306 | esac |
7307 | olditem=${item} | |
7308 | done | |
7309 | olditem= | |
7f74e6a3 | 7310 | test "x${enable_serial_target_configure}" = xyes && |
bafecfd6 NN |
7311 | for item in ${target_configdirs} ; do |
7312 | case ${olditem} in | |
7313 | "") ;; | |
af9955fa | 7314 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
bafecfd6 NN |
7315 | esac |
7316 | olditem=${item} | |
7317 | done | |
7318 | serialization_dependencies=serdep.tmp | |
7319 | ||
7320 | ||
af9955fa | 7321 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
b58b6ee1 | 7322 | # target, nonopt, and variable assignments. These are the ones we |
358d4e3c NC |
7323 | # might not want to pass down to subconfigures. The exception being |
7324 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7325 | # files altogether, and which should be passed on to subconfigures. | |
7326 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7327 | # so that we can pass down a consistent program-transform-name. | |
b58b6ee1 | 7328 | baseargs= |
3bd3027c | 7329 | tbaseargs= |
b58b6ee1 DJ |
7330 | keep_next=no |
7331 | skip_next=no | |
7332 | eval "set -- $ac_configure_args" | |
b8c26111 PB |
7333 | for ac_arg |
7334 | do | |
b58b6ee1 DJ |
7335 | if test X"$skip_next" = X"yes"; then |
7336 | skip_next=no | |
7337 | continue | |
7338 | fi | |
7339 | if test X"$keep_next" = X"yes"; then | |
7340 | case $ac_arg in | |
7341 | *\'*) | |
7342 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7343 | esac | |
7344 | baseargs="$baseargs '$ac_arg'" | |
3bd3027c | 7345 | tbaseargs="$tbaseargs '$ac_arg'" |
b58b6ee1 DJ |
7346 | keep_next=no |
7347 | continue | |
7348 | fi | |
7349 | ||
7350 | # Handle separated arguments. Based on the logic generated by | |
7351 | # autoconf 2.59. | |
7352 | case $ac_arg in | |
7353 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7354 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7355 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7356 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7357 | separate_arg=no | |
7358 | ;; | |
7359 | -*) | |
7360 | separate_arg=yes | |
7361 | ;; | |
7362 | *) | |
7363 | separate_arg=no | |
7364 | ;; | |
7365 | esac | |
7366 | ||
3bd3027c AO |
7367 | skip_targ=no |
7368 | case $ac_arg in | |
7369 | ||
7370 | --with-* | --without-*) | |
7371 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7372 | ||
7373 | case $libopt in | |
7374 | *[-_]include) | |
7375 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7376 | ;; | |
7377 | *[-_]lib) | |
7378 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7379 | ;; | |
7380 | *) | |
7381 | lib=$libopt | |
7382 | ;; | |
7383 | esac | |
7384 | ||
7385 | ||
7386 | case $lib in | |
fe508576 | 7387 | mpc | mpfr | gmp | isl) |
3bd3027c AO |
7388 | # If we're processing --with-$lib, --with-$lib-include or |
7389 | # --with-$lib-lib, for one of the libs above, and target is | |
7390 | # different from host, don't pass the current argument to any | |
7391 | # target library's configure. | |
7392 | if test x$is_cross_compiler = xyes; then | |
7393 | skip_targ=yes | |
7394 | fi | |
7395 | ;; | |
7396 | esac | |
7397 | ;; | |
7398 | esac | |
7399 | ||
b58b6ee1 | 7400 | case "$ac_arg" in |
358d4e3c NC |
7401 | --cache-file=/dev/null | \ |
7402 | -cache-file=/dev/null ) | |
7403 | # Handled here to avoid the test to skip args below. | |
7404 | baseargs="$baseargs '$ac_arg'" | |
3bd3027c | 7405 | tbaseargs="$tbaseargs '$ac_arg'" |
358d4e3c NC |
7406 | # Assert: $separate_arg should always be no. |
7407 | keep_next=$separate_arg | |
7408 | ;; | |
b58b6ee1 DJ |
7409 | --no*) |
7410 | continue | |
7411 | ;; | |
7412 | --c* | \ | |
7413 | --sr* | \ | |
7414 | --ho* | \ | |
7415 | --bu* | \ | |
7416 | --t* | \ | |
7417 | --program-* | \ | |
7418 | -cache_file* | \ | |
7419 | -srcdir* | \ | |
7420 | -host* | \ | |
7421 | -build* | \ | |
7422 | -target* | \ | |
7423 | -program-prefix* | \ | |
7424 | -program-suffix* | \ | |
7425 | -program-transform-name* ) | |
7426 | skip_next=$separate_arg | |
7427 | continue | |
7428 | ;; | |
7429 | -*) | |
7430 | # An option. Add it. | |
7431 | case $ac_arg in | |
7432 | *\'*) | |
7433 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7434 | esac | |
7435 | baseargs="$baseargs '$ac_arg'" | |
3bd3027c AO |
7436 | if test X"$skip_targ" = Xno; then |
7437 | tbaseargs="$tbaseargs '$ac_arg'" | |
7438 | fi | |
b58b6ee1 DJ |
7439 | keep_next=$separate_arg |
7440 | ;; | |
7441 | *) | |
7442 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7443 | # pass it down; let the Makefile handle this. | |
7444 | continue | |
7445 | ;; | |
7446 | esac | |
7447 | done | |
7448 | # Remove the initial space we just introduced and, as these will be | |
7449 | # expanded by make, quote '$'. | |
7450 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
bafecfd6 | 7451 | |
eedd1e14 DJ |
7452 | # Add in --program-transform-name, after --program-prefix and |
7453 | # --program-suffix have been applied to it. Autoconf has already | |
7454 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7455 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
b58b6ee1 | 7456 | # quotes, because this will be expanded first by make and then by the shell. |
eedd1e14 DJ |
7457 | # Also, because we want to override the logic in subdir configure scripts to |
7458 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7459 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7460 | ${program_transform_name} | |
7461 | EOF_SED | |
7462 | gcc_transform_name=`cat conftestsed.out` | |
7463 | rm -f conftestsed.out | |
7464 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
3bd3027c | 7465 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
fc7c811f BE |
7466 | if test "$silent" = yes; then |
7467 | baseargs="$baseargs --silent" | |
3bd3027c | 7468 | tbaseargs="$tbaseargs --silent" |
fc7c811f | 7469 | fi |
5546e07b | 7470 | baseargs="$baseargs --disable-option-checking" |
3bd3027c | 7471 | tbaseargs="$tbaseargs --disable-option-checking" |
eedd1e14 | 7472 | |
1d694d8e RW |
7473 | # Record and document user additions to sub configure arguments. |
7474 | ||
7475 | ||
7476 | ||
7477 | ||
bafecfd6 NN |
7478 | # For the build-side libraries, we just need to pretend we're native, |
7479 | # and not use the same cache file. Multilibs are neither needed nor | |
fe508576 CV |
7480 | # desired. We can't even use the same cache file for all build-side |
7481 | # libraries, as they're compiled differently; some with C, some with | |
7482 | # C++ or with different feature-enabling options. | |
7483 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
bafecfd6 NN |
7484 | |
7485 | # For host modules, accept cache file option, or specification as blank. | |
7486 | case "${cache_file}" in | |
7487 | "") # empty | |
7488 | cache_file_option="" ;; | |
7489 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7490 | cache_file_option="--cache-file=${cache_file}" ;; | |
7491 | *) # relative path | |
7492 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7493 | esac | |
7494 | ||
68c6d8ac NN |
7495 | # Host dirs don't like to share a cache file either, horribly enough. |
7496 | # This seems to be due to autoconf 2.5x stupidity. | |
1d694d8e | 7497 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
bafecfd6 | 7498 | |
3bd3027c | 7499 | target_configargs="$target_configargs ${tbaseargs}" |
bafecfd6 NN |
7500 | |
7501 | # Passing a --with-cross-host argument lets the target libraries know | |
7502 | # whether they are being built with a cross-compiler or being built | |
7503 | # native. However, it would be better to use other mechanisms to make the | |
7504 | # sorts of decisions they want to make on this basis. Please consider | |
7505 | # this option to be deprecated. FIXME. | |
7506 | if test x${is_cross_compiler} = xyes ; then | |
b58b6ee1 | 7507 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
bafecfd6 NN |
7508 | fi |
7509 | ||
fe508576 CV |
7510 | # Special user-friendly check for native x86_64-linux build, if |
7511 | # multilib is not explicitly enabled. | |
7512 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7513 | x86_64-*linux*:yes:$build:$build:) | |
7514 | # Make sure we have a development environment that handles 32-bit | |
7515 | dev64=no | |
7516 | echo "int main () { return 0; }" > conftest.c | |
7517 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7518 | if test $? = 0 ; then | |
7519 | if test -s conftest || test -s conftest.exe ; then | |
7520 | dev64=yes | |
7521 | fi | |
7522 | fi | |
7523 | rm -f conftest* | |
7524 | if test x${dev64} != xyes ; then | |
7525 | as_fn_error "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5 | |
7526 | fi | |
7527 | ;; | |
7528 | esac | |
7529 | ||
5d239c61 RW |
7530 | # Default to --enable-multilib. |
7531 | if test x${enable_multilib} = x ; then | |
bafecfd6 | 7532 | target_configargs="--enable-multilib ${target_configargs}" |
5d239c61 | 7533 | fi |
bafecfd6 NN |
7534 | |
7535 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7536 | # changed from the earlier setting of with_newlib. | |
7537 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7538 | target_configargs="--with-newlib ${target_configargs}" | |
7539 | fi | |
7540 | ||
5b28b6ef NN |
7541 | # Different target subdirs use different values of certain variables |
7542 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7543 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7544 | # it doesn't automatically accept command-line overrides of them. | |
7545 | # This means it's not safe for target subdirs to share a cache file, | |
7546 | # which is disgusting, but there you have it. Hopefully this can be | |
7547 | # fixed in future. It's still worthwhile to use a cache file for each | |
7548 | # directory. I think. | |
7549 | ||
29730600 MS |
7550 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7551 | # We need to pass --target, as newer autoconf's requires consistency | |
7552 | # for target_alias and gcc doesn't manage it consistently. | |
42f55f77 | 7553 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
bafecfd6 | 7554 | |
bafecfd6 NN |
7555 | FLAGS_FOR_TARGET= |
7556 | case " $target_configdirs " in | |
7557 | *" newlib "*) | |
7558 | case " $target_configargs " in | |
7559 | *" --with-newlib "*) | |
7560 | case "$target" in | |
5074489a | 7561 | *-cygwin*) |
738ff2e8 | 7562 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
5074489a | 7563 | ;; |
bafecfd6 NN |
7564 | esac |
7565 | ||
7566 | # If we're not building GCC, don't discard standard headers. | |
7567 | if test -d ${srcdir}/gcc; then | |
7568 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7569 | ||
7570 | if test "${build}" != "${host}"; then | |
7571 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7572 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7573 | # to it. This is right: we don't want to search that directory | |
7574 | # for binaries, but we want the header files in there, so add | |
7575 | # them explicitly. | |
d5b7129a | 7576 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
bafecfd6 NN |
7577 | |
7578 | # Someone might think of using the pre-installed headers on | |
7579 | # Canadian crosses, in case the installed compiler is not fully | |
7580 | # compatible with the compiler being built. In this case, it | |
7581 | # would be better to flag an error than risking having | |
7582 | # incompatible object files being constructed. We can't | |
7583 | # guarantee that an error will be flagged, but let's hope the | |
7584 | # compiler will do it, when presented with incompatible header | |
7585 | # files. | |
7586 | fi | |
7587 | fi | |
7588 | ||
7589 | case "${target}-${is_cross_compiler}" in | |
08049c01 | 7590 | i[3456789]86-*-linux*-no) |
bafecfd6 NN |
7591 | # Here host == target, so we don't need to build gcc, |
7592 | # so we don't want to discard standard headers. | |
7593 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7594 | ;; | |
7595 | *) | |
7596 | # If we're building newlib, use its generic headers last, but search | |
7597 | # for any libc-related directories first (so make it the last -B | |
7598 | # switch). | |
7599 | 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 |
7600 | |
7601 | # If we're building libgloss, find the startup file, simulator library | |
7602 | # and linker script. | |
7603 | case " $target_configdirs " in | |
7604 | *" libgloss "*) | |
7605 | # Look for startup file, simulator library and maybe linker script. | |
7606 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7607 | # Look for libnosys.a in case the target needs it. | |
7608 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7609 | # Most targets have the linker script in the source directory. | |
7610 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7611 | ;; | |
7612 | esac | |
bafecfd6 NN |
7613 | ;; |
7614 | esac | |
7615 | ;; | |
7616 | esac | |
7617 | ;; | |
7618 | esac | |
5074489a | 7619 | |
bc668665 | 7620 | case "$target" in |
5074489a AO |
7621 | x86_64-*mingw* | *-w64-mingw*) |
7622 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7623 | # however, use a symlink named 'mingw' in ${prefix} . | |
7624 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7625 | ;; | |
7626 | *-mingw*) | |
7627 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7628 | 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' | |
7629 | ;; | |
bc668665 | 7630 | esac |
bafecfd6 | 7631 | |
e9ea9dec DD |
7632 | # Allow the user to override the flags for |
7633 | # our build compiler if desired. | |
77961173 NC |
7634 | if test x"${build}" = x"${host}" ; then |
7635 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7636 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7637 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7638 | fi | |
e9ea9dec | 7639 | |
bafecfd6 NN |
7640 | # On Canadian crosses, we'll be searching the right directories for |
7641 | # the previously-installed cross compiler, so don't bother to add | |
7642 | # flags for directories within the install tree of the compiler | |
7643 | # being built; programs in there won't even run. | |
7644 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7645 | # Search for pre-installed headers if nothing else fits. | |
2245eb63 | 7646 | 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 |
7647 | fi |
7648 | ||
7649 | if test "x${use_gnu_ld}" = x && | |
7650 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7651 | # Arrange for us to find uninstalled linker scripts. | |
7fc2ca22 | 7652 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
bafecfd6 NN |
7653 | fi |
7654 | ||
ad352d9b DD |
7655 | # Search for other target-specific linker scripts and such. |
7656 | case "${target}" in | |
4e16301e DB |
7657 | mep*) |
7658 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7659 | ;; | |
7660 | esac | |
7661 | ||
bafecfd6 | 7662 | # Makefile fragments. |
96979a18 PB |
7663 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7664 | do | |
7665 | eval fragval=\$$frag | |
7666 | if test $fragval != /dev/null; then | |
7667 | eval $frag=${srcdir}/$fragval | |
7668 | fi | |
7669 | done | |
bafecfd6 NN |
7670 | |
7671 | ||
7672 | ||
7673 | ||
7674 | ||
7675 | # Miscellanea: directories, flags, etc. | |
7676 | ||
7677 | ||
7678 | ||
7679 | ||
7680 | ||
7681 | ||
7682 | ||
8453fdba | 7683 | |
2cb47d68 | 7684 | # Build module lists & subconfigure args. |
bafecfd6 NN |
7685 | |
7686 | ||
7687 | ||
a7dc05b5 PB |
7688 | # Host module lists & subconfigure args. |
7689 | ||
7690 | ||
7691 | ||
e894eef9 | 7692 | |
a7dc05b5 PB |
7693 | # Target module lists & subconfigure args. |
7694 | ||
7695 | ||
7696 | ||
7697 | # Build tools. | |
7698 | ||
7699 | ||
7700 | ||
4413ec01 PB |
7701 | |
7702 | ||
7703 | ||
7704 | ||
7705 | ||
7706 | ||
7707 | ||
7708 | ||
7709 | ||
7710 | ||
7711 | ||
7712 | ||
7713 | ||
7714 | ||
a7dc05b5 PB |
7715 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7716 | # on the build machine. These are used if the Makefile can't locate these | |
7717 | # programs in objdir. | |
7718 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7719 | ||
7720 | for ac_prog in 'bison -y' byacc yacc | |
7721 | do | |
b58b6ee1 | 7722 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 7723 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
7724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7725 | $as_echo_n "checking for $ac_word... " >&6; } | |
7726 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7727 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
7728 | else |
7729 | if test -n "$YACC"; then | |
7730 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7731 | else | |
b58b6ee1 DJ |
7732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7733 | for as_dir in $PATH | |
7734 | do | |
7735 | IFS=$as_save_IFS | |
7736 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
7737 | for ac_exec_ext in '' $ac_executable_extensions; do |
7738 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 7739 | ac_cv_prog_YACC="$ac_prog" |
efd58f08 | 7740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
7741 | break 2 |
7742 | fi | |
7743 | done | |
efd58f08 RW |
7744 | done |
7745 | IFS=$as_save_IFS | |
b58b6ee1 | 7746 | |
a7dc05b5 PB |
7747 | fi |
7748 | fi | |
b58b6ee1 | 7749 | YACC=$ac_cv_prog_YACC |
a7dc05b5 | 7750 | if test -n "$YACC"; then |
efd58f08 RW |
7751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7752 | $as_echo "$YACC" >&6; } | |
a7dc05b5 | 7753 | else |
efd58f08 RW |
7754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7755 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
7756 | fi |
7757 | ||
efd58f08 | 7758 | |
b58b6ee1 | 7759 | test -n "$YACC" && break |
a7dc05b5 PB |
7760 | done |
7761 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7762 | ||
7763 | case " $build_configdirs " in | |
7764 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
a7dc05b5 PB |
7765 | esac |
7766 | ||
7767 | for ac_prog in bison | |
7768 | do | |
b58b6ee1 | 7769 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 7770 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
7771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7772 | $as_echo_n "checking for $ac_word... " >&6; } | |
7773 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7774 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
7775 | else |
7776 | if test -n "$BISON"; then | |
7777 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7778 | else | |
b58b6ee1 DJ |
7779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7780 | for as_dir in $PATH | |
7781 | do | |
7782 | IFS=$as_save_IFS | |
7783 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
7784 | for ac_exec_ext in '' $ac_executable_extensions; do |
7785 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 7786 | ac_cv_prog_BISON="$ac_prog" |
efd58f08 | 7787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
7788 | break 2 |
7789 | fi | |
7790 | done | |
efd58f08 RW |
7791 | done |
7792 | IFS=$as_save_IFS | |
b58b6ee1 | 7793 | |
a7dc05b5 PB |
7794 | fi |
7795 | fi | |
b58b6ee1 | 7796 | BISON=$ac_cv_prog_BISON |
a7dc05b5 | 7797 | if test -n "$BISON"; then |
efd58f08 RW |
7798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7799 | $as_echo "$BISON" >&6; } | |
a7dc05b5 | 7800 | else |
efd58f08 RW |
7801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7802 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
7803 | fi |
7804 | ||
efd58f08 | 7805 | |
b58b6ee1 | 7806 | test -n "$BISON" && break |
a7dc05b5 PB |
7807 | done |
7808 | test -n "$BISON" || BISON="$MISSING bison" | |
7809 | ||
7810 | case " $build_configdirs " in | |
7811 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7812 | esac | |
7813 | ||
7814 | for ac_prog in gm4 gnum4 m4 | |
7815 | do | |
b58b6ee1 | 7816 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 7817 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
7818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7819 | $as_echo_n "checking for $ac_word... " >&6; } | |
7820 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7821 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
7822 | else |
7823 | if test -n "$M4"; then | |
7824 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7825 | else | |
b58b6ee1 DJ |
7826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7827 | for as_dir in $PATH | |
7828 | do | |
7829 | IFS=$as_save_IFS | |
7830 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
7831 | for ac_exec_ext in '' $ac_executable_extensions; do |
7832 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 7833 | ac_cv_prog_M4="$ac_prog" |
efd58f08 | 7834 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
7835 | break 2 |
7836 | fi | |
7837 | done | |
efd58f08 RW |
7838 | done |
7839 | IFS=$as_save_IFS | |
b58b6ee1 | 7840 | |
a7dc05b5 PB |
7841 | fi |
7842 | fi | |
b58b6ee1 | 7843 | M4=$ac_cv_prog_M4 |
a7dc05b5 | 7844 | if test -n "$M4"; then |
efd58f08 RW |
7845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7846 | $as_echo "$M4" >&6; } | |
a7dc05b5 | 7847 | else |
efd58f08 RW |
7848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7849 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
7850 | fi |
7851 | ||
efd58f08 | 7852 | |
b58b6ee1 | 7853 | test -n "$M4" && break |
a7dc05b5 PB |
7854 | done |
7855 | test -n "$M4" || M4="$MISSING m4" | |
7856 | ||
7857 | case " $build_configdirs " in | |
7858 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7859 | esac | |
7860 | ||
7861 | for ac_prog in flex lex | |
7862 | do | |
b58b6ee1 | 7863 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 7864 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
7865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7866 | $as_echo_n "checking for $ac_word... " >&6; } | |
7867 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7868 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
7869 | else |
7870 | if test -n "$LEX"; then | |
7871 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7872 | else | |
b58b6ee1 DJ |
7873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7874 | for as_dir in $PATH | |
7875 | do | |
7876 | IFS=$as_save_IFS | |
7877 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
7878 | for ac_exec_ext in '' $ac_executable_extensions; do |
7879 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 7880 | ac_cv_prog_LEX="$ac_prog" |
efd58f08 | 7881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
7882 | break 2 |
7883 | fi | |
7884 | done | |
efd58f08 RW |
7885 | done |
7886 | IFS=$as_save_IFS | |
b58b6ee1 | 7887 | |
a7dc05b5 PB |
7888 | fi |
7889 | fi | |
b58b6ee1 | 7890 | LEX=$ac_cv_prog_LEX |
a7dc05b5 | 7891 | if test -n "$LEX"; then |
efd58f08 RW |
7892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7893 | $as_echo "$LEX" >&6; } | |
a7dc05b5 | 7894 | else |
efd58f08 RW |
7895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7896 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
7897 | fi |
7898 | ||
efd58f08 | 7899 | |
b58b6ee1 | 7900 | test -n "$LEX" && break |
a7dc05b5 PB |
7901 | done |
7902 | test -n "$LEX" || LEX="$MISSING flex" | |
7903 | ||
7904 | case " $build_configdirs " in | |
7905 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7906 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7907 | esac | |
7908 | ||
7909 | for ac_prog in flex | |
7910 | do | |
b58b6ee1 | 7911 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 7912 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
7913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7914 | $as_echo_n "checking for $ac_word... " >&6; } | |
7915 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7916 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
7917 | else |
7918 | if test -n "$FLEX"; then | |
7919 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7920 | else | |
b58b6ee1 DJ |
7921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7922 | for as_dir in $PATH | |
7923 | do | |
7924 | IFS=$as_save_IFS | |
7925 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
7926 | for ac_exec_ext in '' $ac_executable_extensions; do |
7927 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 7928 | ac_cv_prog_FLEX="$ac_prog" |
efd58f08 | 7929 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
7930 | break 2 |
7931 | fi | |
7932 | done | |
efd58f08 RW |
7933 | done |
7934 | IFS=$as_save_IFS | |
b58b6ee1 | 7935 | |
a7dc05b5 PB |
7936 | fi |
7937 | fi | |
b58b6ee1 | 7938 | FLEX=$ac_cv_prog_FLEX |
a7dc05b5 | 7939 | if test -n "$FLEX"; then |
efd58f08 RW |
7940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7941 | $as_echo "$FLEX" >&6; } | |
a7dc05b5 | 7942 | else |
efd58f08 RW |
7943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7944 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
7945 | fi |
7946 | ||
efd58f08 | 7947 | |
b58b6ee1 | 7948 | test -n "$FLEX" && break |
a7dc05b5 PB |
7949 | done |
7950 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7951 | ||
7952 | case " $build_configdirs " in | |
7953 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7954 | esac | |
7955 | ||
7956 | for ac_prog in makeinfo | |
7957 | do | |
b58b6ee1 | 7958 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 7959 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
7960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7961 | $as_echo_n "checking for $ac_word... " >&6; } | |
7962 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7963 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
7964 | else |
7965 | if test -n "$MAKEINFO"; then | |
7966 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7967 | else | |
b58b6ee1 DJ |
7968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7969 | for as_dir in $PATH | |
7970 | do | |
7971 | IFS=$as_save_IFS | |
7972 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
7973 | for ac_exec_ext in '' $ac_executable_extensions; do |
7974 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 7975 | ac_cv_prog_MAKEINFO="$ac_prog" |
efd58f08 | 7976 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
7977 | break 2 |
7978 | fi | |
7979 | done | |
efd58f08 RW |
7980 | done |
7981 | IFS=$as_save_IFS | |
b58b6ee1 | 7982 | |
a7dc05b5 PB |
7983 | fi |
7984 | fi | |
b58b6ee1 | 7985 | MAKEINFO=$ac_cv_prog_MAKEINFO |
a7dc05b5 | 7986 | if test -n "$MAKEINFO"; then |
efd58f08 RW |
7987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7988 | $as_echo "$MAKEINFO" >&6; } | |
a7dc05b5 | 7989 | else |
efd58f08 RW |
7990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7991 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
7992 | fi |
7993 | ||
efd58f08 | 7994 | |
b58b6ee1 | 7995 | test -n "$MAKEINFO" && break |
a7dc05b5 PB |
7996 | done |
7997 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7998 | ||
7999 | case " $build_configdirs " in | |
8000 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
8001 | *) | |
8002 | ||
3ac4fba1 | 8003 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
a7dc05b5 PB |
8004 | # higher, else we use the "missing" dummy. |
8005 | if ${MAKEINFO} --version \ | |
3ac4fba1 | 8006 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
a7dc05b5 PB |
8007 | : |
8008 | else | |
8009 | MAKEINFO="$MISSING makeinfo" | |
8010 | fi | |
8011 | ;; | |
8012 | ||
8013 | esac | |
bafecfd6 | 8014 | |
a7dc05b5 | 8015 | # FIXME: expect and dejagnu may become build tools? |
bafecfd6 | 8016 | |
a7dc05b5 PB |
8017 | for ac_prog in expect |
8018 | do | |
b58b6ee1 | 8019 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 8020 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
8021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8022 | $as_echo_n "checking for $ac_word... " >&6; } | |
8023 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
8024 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
8025 | else |
8026 | if test -n "$EXPECT"; then | |
8027 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
8028 | else | |
b58b6ee1 DJ |
8029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8030 | for as_dir in $PATH | |
8031 | do | |
8032 | IFS=$as_save_IFS | |
8033 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8034 | for ac_exec_ext in '' $ac_executable_extensions; do |
8035 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8036 | ac_cv_prog_EXPECT="$ac_prog" |
efd58f08 | 8037 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8038 | break 2 |
8039 | fi | |
8040 | done | |
efd58f08 RW |
8041 | done |
8042 | IFS=$as_save_IFS | |
b58b6ee1 | 8043 | |
a7dc05b5 PB |
8044 | fi |
8045 | fi | |
b58b6ee1 | 8046 | EXPECT=$ac_cv_prog_EXPECT |
a7dc05b5 | 8047 | if test -n "$EXPECT"; then |
efd58f08 RW |
8048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8049 | $as_echo "$EXPECT" >&6; } | |
a7dc05b5 | 8050 | else |
efd58f08 RW |
8051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8052 | $as_echo "no" >&6; } | |
a7dc05b5 | 8053 | fi |
bafecfd6 | 8054 | |
efd58f08 | 8055 | |
b58b6ee1 | 8056 | test -n "$EXPECT" && break |
a7dc05b5 PB |
8057 | done |
8058 | test -n "$EXPECT" || EXPECT="expect" | |
bafecfd6 | 8059 | |
a7dc05b5 PB |
8060 | case " $configdirs " in |
8061 | *" expect "*) | |
8062 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8063 | ;; | |
8064 | esac | |
bafecfd6 | 8065 | |
a7dc05b5 PB |
8066 | for ac_prog in runtest |
8067 | do | |
b58b6ee1 | 8068 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 8069 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
8070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8071 | $as_echo_n "checking for $ac_word... " >&6; } | |
8072 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
8073 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
8074 | else |
8075 | if test -n "$RUNTEST"; then | |
8076 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
8077 | else | |
b58b6ee1 DJ |
8078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8079 | for as_dir in $PATH | |
8080 | do | |
8081 | IFS=$as_save_IFS | |
8082 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8083 | for ac_exec_ext in '' $ac_executable_extensions; do |
8084 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8085 | ac_cv_prog_RUNTEST="$ac_prog" |
efd58f08 | 8086 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8087 | break 2 |
8088 | fi | |
8089 | done | |
efd58f08 RW |
8090 | done |
8091 | IFS=$as_save_IFS | |
b58b6ee1 | 8092 | |
a7dc05b5 PB |
8093 | fi |
8094 | fi | |
b58b6ee1 | 8095 | RUNTEST=$ac_cv_prog_RUNTEST |
a7dc05b5 | 8096 | if test -n "$RUNTEST"; then |
efd58f08 RW |
8097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8098 | $as_echo "$RUNTEST" >&6; } | |
a7dc05b5 | 8099 | else |
efd58f08 RW |
8100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8101 | $as_echo "no" >&6; } | |
a7dc05b5 | 8102 | fi |
bafecfd6 | 8103 | |
efd58f08 | 8104 | |
b58b6ee1 | 8105 | test -n "$RUNTEST" && break |
a7dc05b5 PB |
8106 | done |
8107 | test -n "$RUNTEST" || RUNTEST="runtest" | |
bafecfd6 | 8108 | |
a7dc05b5 PB |
8109 | case " $configdirs " in |
8110 | *" dejagnu "*) | |
adb51f0a | 8111 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
a7dc05b5 PB |
8112 | ;; |
8113 | esac | |
bafecfd6 NN |
8114 | |
8115 | ||
bafecfd6 | 8116 | # Host tools. |
a0c92996 AC |
8117 | ncn_tool_prefix= |
8118 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8119 | ncn_target_tool_prefix= | |
8120 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8121 | ||
82026593 AO |
8122 | |
8123 | ||
8124 | if test -n "$AR"; then | |
8125 | ac_cv_prog_AR=$AR | |
8126 | elif test -n "$ac_cv_prog_AR"; then | |
8127 | AR=$ac_cv_prog_AR | |
8128 | fi | |
8129 | ||
8130 | if test -n "$ac_cv_prog_AR"; then | |
8131 | for ncn_progname in ar; do | |
8132 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8133 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8135 | $as_echo_n "checking for $ac_word... " >&6; } | |
8136 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8137 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
8138 | else |
8139 | if test -n "$AR"; then | |
8140 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8141 | else | |
8142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8143 | for as_dir in $PATH | |
8144 | do | |
8145 | IFS=$as_save_IFS | |
8146 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8147 | for ac_exec_ext in '' $ac_executable_extensions; do |
8148 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 8149 | ac_cv_prog_AR="${ncn_progname}" |
efd58f08 | 8150 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
8151 | break 2 |
8152 | fi | |
8153 | done | |
efd58f08 RW |
8154 | done |
8155 | IFS=$as_save_IFS | |
82026593 AO |
8156 | |
8157 | fi | |
8158 | fi | |
8159 | AR=$ac_cv_prog_AR | |
8160 | if test -n "$AR"; then | |
efd58f08 RW |
8161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8162 | $as_echo "$AR" >&6; } | |
82026593 | 8163 | else |
efd58f08 RW |
8164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8165 | $as_echo "no" >&6; } | |
82026593 AO |
8166 | fi |
8167 | ||
efd58f08 | 8168 | |
82026593 AO |
8169 | done |
8170 | fi | |
8171 | ||
8172 | for ncn_progname in ar; do | |
60cfca65 PB |
8173 | if test -n "$ncn_tool_prefix"; then |
8174 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8175 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8177 | $as_echo_n "checking for $ac_word... " >&6; } | |
8178 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8179 | $as_echo_n "(cached) " >&6 | |
a0c92996 AC |
8180 | else |
8181 | if test -n "$AR"; then | |
8182 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8183 | else | |
b58b6ee1 DJ |
8184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8185 | for as_dir in $PATH | |
8186 | do | |
8187 | IFS=$as_save_IFS | |
8188 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8189 | for ac_exec_ext in '' $ac_executable_extensions; do |
8190 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8191 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 8192 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8193 | break 2 |
8194 | fi | |
8195 | done | |
efd58f08 RW |
8196 | done |
8197 | IFS=$as_save_IFS | |
b58b6ee1 | 8198 | |
a0c92996 AC |
8199 | fi |
8200 | fi | |
b58b6ee1 | 8201 | AR=$ac_cv_prog_AR |
a0c92996 | 8202 | if test -n "$AR"; then |
efd58f08 RW |
8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8204 | $as_echo "$AR" >&6; } | |
a0c92996 | 8205 | else |
efd58f08 RW |
8206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8207 | $as_echo "no" >&6; } | |
a0c92996 AC |
8208 | fi |
8209 | ||
efd58f08 | 8210 | |
60cfca65 PB |
8211 | fi |
8212 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8213 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8214 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8216 | $as_echo_n "checking for $ac_word... " >&6; } | |
8217 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8218 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 8219 | else |
60cfca65 PB |
8220 | if test -n "$AR"; then |
8221 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
a0c92996 | 8222 | else |
b58b6ee1 DJ |
8223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8224 | for as_dir in $PATH | |
8225 | do | |
8226 | IFS=$as_save_IFS | |
8227 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8228 | for ac_exec_ext in '' $ac_executable_extensions; do |
8229 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8230 | ac_cv_prog_AR="${ncn_progname}" |
efd58f08 | 8231 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8232 | break 2 |
8233 | fi | |
8234 | done | |
efd58f08 RW |
8235 | done |
8236 | IFS=$as_save_IFS | |
b58b6ee1 | 8237 | |
a0c92996 AC |
8238 | fi |
8239 | fi | |
b58b6ee1 | 8240 | AR=$ac_cv_prog_AR |
60cfca65 | 8241 | if test -n "$AR"; then |
efd58f08 RW |
8242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8243 | $as_echo "$AR" >&6; } | |
a0c92996 | 8244 | else |
efd58f08 RW |
8245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8246 | $as_echo "no" >&6; } | |
a0c92996 | 8247 | fi |
b58b6ee1 | 8248 | |
efd58f08 | 8249 | |
60cfca65 PB |
8250 | fi |
8251 | test -n "$ac_cv_prog_AR" && break | |
8252 | done | |
8253 | ||
8254 | if test -z "$ac_cv_prog_AR" ; then | |
8255 | set dummy ar | |
8256 | if test $build = $host ; then | |
8257 | AR="$2" | |
a0c92996 | 8258 | else |
60cfca65 | 8259 | AR="${ncn_tool_prefix}$2" |
a0c92996 | 8260 | fi |
a0c92996 AC |
8261 | fi |
8262 | ||
82026593 AO |
8263 | |
8264 | ||
8265 | if test -n "$AS"; then | |
8266 | ac_cv_prog_AS=$AS | |
8267 | elif test -n "$ac_cv_prog_AS"; then | |
8268 | AS=$ac_cv_prog_AS | |
8269 | fi | |
8270 | ||
8271 | if test -n "$ac_cv_prog_AS"; then | |
8272 | for ncn_progname in as; do | |
8273 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8274 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8276 | $as_echo_n "checking for $ac_word... " >&6; } | |
8277 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8278 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
8279 | else |
8280 | if test -n "$AS"; then | |
8281 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8282 | else | |
8283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8284 | for as_dir in $PATH | |
8285 | do | |
8286 | IFS=$as_save_IFS | |
8287 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8288 | for ac_exec_ext in '' $ac_executable_extensions; do |
8289 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 8290 | ac_cv_prog_AS="${ncn_progname}" |
efd58f08 | 8291 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
8292 | break 2 |
8293 | fi | |
8294 | done | |
efd58f08 RW |
8295 | done |
8296 | IFS=$as_save_IFS | |
82026593 AO |
8297 | |
8298 | fi | |
8299 | fi | |
8300 | AS=$ac_cv_prog_AS | |
8301 | if test -n "$AS"; then | |
efd58f08 RW |
8302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8303 | $as_echo "$AS" >&6; } | |
82026593 | 8304 | else |
efd58f08 RW |
8305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8306 | $as_echo "no" >&6; } | |
82026593 AO |
8307 | fi |
8308 | ||
efd58f08 | 8309 | |
82026593 AO |
8310 | done |
8311 | fi | |
8312 | ||
8313 | for ncn_progname in as; do | |
60cfca65 PB |
8314 | if test -n "$ncn_tool_prefix"; then |
8315 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8316 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8318 | $as_echo_n "checking for $ac_word... " >&6; } | |
8319 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8320 | $as_echo_n "(cached) " >&6 | |
a0c92996 AC |
8321 | else |
8322 | if test -n "$AS"; then | |
8323 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
b58b6ee1 DJ |
8324 | else |
8325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8326 | for as_dir in $PATH | |
8327 | do | |
8328 | IFS=$as_save_IFS | |
8329 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8330 | for ac_exec_ext in '' $ac_executable_extensions; do |
8331 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8332 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 8333 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8334 | break 2 |
8335 | fi | |
8336 | done | |
efd58f08 RW |
8337 | done |
8338 | IFS=$as_save_IFS | |
b58b6ee1 | 8339 | |
a0c92996 AC |
8340 | fi |
8341 | fi | |
b58b6ee1 | 8342 | AS=$ac_cv_prog_AS |
a0c92996 | 8343 | if test -n "$AS"; then |
efd58f08 RW |
8344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8345 | $as_echo "$AS" >&6; } | |
a0c92996 | 8346 | else |
efd58f08 RW |
8347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8348 | $as_echo "no" >&6; } | |
a0c92996 AC |
8349 | fi |
8350 | ||
efd58f08 | 8351 | |
60cfca65 PB |
8352 | fi |
8353 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8354 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8355 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8357 | $as_echo_n "checking for $ac_word... " >&6; } | |
8358 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8359 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 8360 | else |
60cfca65 PB |
8361 | if test -n "$AS"; then |
8362 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
a0c92996 | 8363 | else |
b58b6ee1 DJ |
8364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8365 | for as_dir in $PATH | |
8366 | do | |
8367 | IFS=$as_save_IFS | |
8368 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8369 | for ac_exec_ext in '' $ac_executable_extensions; do |
8370 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8371 | ac_cv_prog_AS="${ncn_progname}" |
efd58f08 | 8372 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8373 | break 2 |
8374 | fi | |
8375 | done | |
efd58f08 RW |
8376 | done |
8377 | IFS=$as_save_IFS | |
b58b6ee1 | 8378 | |
a0c92996 AC |
8379 | fi |
8380 | fi | |
b58b6ee1 | 8381 | AS=$ac_cv_prog_AS |
60cfca65 | 8382 | if test -n "$AS"; then |
efd58f08 RW |
8383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8384 | $as_echo "$AS" >&6; } | |
a0c92996 | 8385 | else |
efd58f08 RW |
8386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8387 | $as_echo "no" >&6; } | |
a0c92996 | 8388 | fi |
b58b6ee1 | 8389 | |
efd58f08 | 8390 | |
60cfca65 PB |
8391 | fi |
8392 | test -n "$ac_cv_prog_AS" && break | |
8393 | done | |
8394 | ||
8395 | if test -z "$ac_cv_prog_AS" ; then | |
8396 | set dummy as | |
8397 | if test $build = $host ; then | |
8398 | AS="$2" | |
a0c92996 | 8399 | else |
60cfca65 | 8400 | AS="${ncn_tool_prefix}$2" |
a0c92996 | 8401 | fi |
a0c92996 AC |
8402 | fi |
8403 | ||
82026593 AO |
8404 | |
8405 | ||
8406 | if test -n "$DLLTOOL"; then | |
8407 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8408 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8409 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8410 | fi | |
8411 | ||
8412 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8413 | for ncn_progname in dlltool; do | |
8414 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8415 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8417 | $as_echo_n "checking for $ac_word... " >&6; } | |
8418 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8419 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
8420 | else |
8421 | if test -n "$DLLTOOL"; then | |
8422 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8423 | else | |
8424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8425 | for as_dir in $PATH | |
8426 | do | |
8427 | IFS=$as_save_IFS | |
8428 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8429 | for ac_exec_ext in '' $ac_executable_extensions; do |
8430 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 8431 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
efd58f08 | 8432 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
8433 | break 2 |
8434 | fi | |
8435 | done | |
efd58f08 RW |
8436 | done |
8437 | IFS=$as_save_IFS | |
82026593 AO |
8438 | |
8439 | fi | |
8440 | fi | |
8441 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8442 | if test -n "$DLLTOOL"; then | |
efd58f08 RW |
8443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8444 | $as_echo "$DLLTOOL" >&6; } | |
82026593 | 8445 | else |
efd58f08 RW |
8446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8447 | $as_echo "no" >&6; } | |
82026593 AO |
8448 | fi |
8449 | ||
efd58f08 | 8450 | |
82026593 AO |
8451 | done |
8452 | fi | |
8453 | ||
8454 | for ncn_progname in dlltool; do | |
60cfca65 PB |
8455 | if test -n "$ncn_tool_prefix"; then |
8456 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8457 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8459 | $as_echo_n "checking for $ac_word... " >&6; } | |
8460 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8461 | $as_echo_n "(cached) " >&6 | |
a0c92996 AC |
8462 | else |
8463 | if test -n "$DLLTOOL"; then | |
8464 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8465 | else | |
b58b6ee1 DJ |
8466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8467 | for as_dir in $PATH | |
8468 | do | |
8469 | IFS=$as_save_IFS | |
8470 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8471 | for ac_exec_ext in '' $ac_executable_extensions; do |
8472 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8473 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 8474 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8475 | break 2 |
8476 | fi | |
8477 | done | |
efd58f08 RW |
8478 | done |
8479 | IFS=$as_save_IFS | |
b58b6ee1 | 8480 | |
a0c92996 AC |
8481 | fi |
8482 | fi | |
b58b6ee1 | 8483 | DLLTOOL=$ac_cv_prog_DLLTOOL |
a0c92996 | 8484 | if test -n "$DLLTOOL"; then |
efd58f08 RW |
8485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8486 | $as_echo "$DLLTOOL" >&6; } | |
a0c92996 | 8487 | else |
efd58f08 RW |
8488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8489 | $as_echo "no" >&6; } | |
a0c92996 AC |
8490 | fi |
8491 | ||
efd58f08 | 8492 | |
60cfca65 PB |
8493 | fi |
8494 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8495 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8496 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8498 | $as_echo_n "checking for $ac_word... " >&6; } | |
8499 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8500 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 8501 | else |
60cfca65 PB |
8502 | if test -n "$DLLTOOL"; then |
8503 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
a0c92996 | 8504 | else |
b58b6ee1 DJ |
8505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8506 | for as_dir in $PATH | |
8507 | do | |
8508 | IFS=$as_save_IFS | |
8509 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8510 | for ac_exec_ext in '' $ac_executable_extensions; do |
8511 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8512 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
efd58f08 | 8513 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8514 | break 2 |
8515 | fi | |
8516 | done | |
efd58f08 RW |
8517 | done |
8518 | IFS=$as_save_IFS | |
b58b6ee1 | 8519 | |
a0c92996 AC |
8520 | fi |
8521 | fi | |
b58b6ee1 | 8522 | DLLTOOL=$ac_cv_prog_DLLTOOL |
60cfca65 | 8523 | if test -n "$DLLTOOL"; then |
efd58f08 RW |
8524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8525 | $as_echo "$DLLTOOL" >&6; } | |
a0c92996 | 8526 | else |
efd58f08 RW |
8527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8528 | $as_echo "no" >&6; } | |
a0c92996 | 8529 | fi |
b58b6ee1 | 8530 | |
efd58f08 | 8531 | |
60cfca65 PB |
8532 | fi |
8533 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8534 | done | |
8535 | ||
8536 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8537 | set dummy dlltool | |
8538 | if test $build = $host ; then | |
8539 | DLLTOOL="$2" | |
a0c92996 | 8540 | else |
60cfca65 | 8541 | DLLTOOL="${ncn_tool_prefix}$2" |
a0c92996 | 8542 | fi |
a0c92996 AC |
8543 | fi |
8544 | ||
82026593 AO |
8545 | |
8546 | ||
8547 | if test -n "$LD"; then | |
8548 | ac_cv_prog_LD=$LD | |
8549 | elif test -n "$ac_cv_prog_LD"; then | |
8550 | LD=$ac_cv_prog_LD | |
8551 | fi | |
8552 | ||
8553 | if test -n "$ac_cv_prog_LD"; then | |
8554 | for ncn_progname in ld; do | |
8555 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8556 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8558 | $as_echo_n "checking for $ac_word... " >&6; } | |
8559 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8560 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
8561 | else |
8562 | if test -n "$LD"; then | |
8563 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8564 | else | |
8565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8566 | for as_dir in $PATH | |
8567 | do | |
8568 | IFS=$as_save_IFS | |
8569 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8570 | for ac_exec_ext in '' $ac_executable_extensions; do |
8571 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 8572 | ac_cv_prog_LD="${ncn_progname}" |
efd58f08 | 8573 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
8574 | break 2 |
8575 | fi | |
8576 | done | |
efd58f08 RW |
8577 | done |
8578 | IFS=$as_save_IFS | |
82026593 AO |
8579 | |
8580 | fi | |
8581 | fi | |
8582 | LD=$ac_cv_prog_LD | |
8583 | if test -n "$LD"; then | |
efd58f08 RW |
8584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8585 | $as_echo "$LD" >&6; } | |
82026593 | 8586 | else |
efd58f08 RW |
8587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8588 | $as_echo "no" >&6; } | |
82026593 AO |
8589 | fi |
8590 | ||
efd58f08 | 8591 | |
82026593 AO |
8592 | done |
8593 | fi | |
8594 | ||
8595 | for ncn_progname in ld; do | |
60cfca65 PB |
8596 | if test -n "$ncn_tool_prefix"; then |
8597 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8598 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8600 | $as_echo_n "checking for $ac_word... " >&6; } | |
8601 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8602 | $as_echo_n "(cached) " >&6 | |
a0c92996 AC |
8603 | else |
8604 | if test -n "$LD"; then | |
8605 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8606 | else | |
b58b6ee1 DJ |
8607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8608 | for as_dir in $PATH | |
8609 | do | |
8610 | IFS=$as_save_IFS | |
8611 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8612 | for ac_exec_ext in '' $ac_executable_extensions; do |
8613 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8614 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 8615 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8616 | break 2 |
8617 | fi | |
8618 | done | |
efd58f08 RW |
8619 | done |
8620 | IFS=$as_save_IFS | |
b58b6ee1 | 8621 | |
a0c92996 AC |
8622 | fi |
8623 | fi | |
b58b6ee1 | 8624 | LD=$ac_cv_prog_LD |
a0c92996 | 8625 | if test -n "$LD"; then |
efd58f08 RW |
8626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8627 | $as_echo "$LD" >&6; } | |
a0c92996 | 8628 | else |
efd58f08 RW |
8629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8630 | $as_echo "no" >&6; } | |
a0c92996 AC |
8631 | fi |
8632 | ||
efd58f08 | 8633 | |
60cfca65 PB |
8634 | fi |
8635 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8636 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8637 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8639 | $as_echo_n "checking for $ac_word... " >&6; } | |
8640 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8641 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 8642 | else |
60cfca65 PB |
8643 | if test -n "$LD"; then |
8644 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
76402c80 | 8645 | else |
b58b6ee1 DJ |
8646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8647 | for as_dir in $PATH | |
8648 | do | |
8649 | IFS=$as_save_IFS | |
8650 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8651 | for ac_exec_ext in '' $ac_executable_extensions; do |
8652 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8653 | ac_cv_prog_LD="${ncn_progname}" |
efd58f08 | 8654 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8655 | break 2 |
8656 | fi | |
8657 | done | |
efd58f08 RW |
8658 | done |
8659 | IFS=$as_save_IFS | |
b58b6ee1 | 8660 | |
a0c92996 AC |
8661 | fi |
8662 | fi | |
b58b6ee1 | 8663 | LD=$ac_cv_prog_LD |
60cfca65 | 8664 | if test -n "$LD"; then |
efd58f08 RW |
8665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8666 | $as_echo "$LD" >&6; } | |
a0c92996 | 8667 | else |
efd58f08 RW |
8668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8669 | $as_echo "no" >&6; } | |
a0c92996 | 8670 | fi |
b58b6ee1 | 8671 | |
efd58f08 | 8672 | |
60cfca65 PB |
8673 | fi |
8674 | test -n "$ac_cv_prog_LD" && break | |
8675 | done | |
8676 | ||
8677 | if test -z "$ac_cv_prog_LD" ; then | |
8678 | set dummy ld | |
8679 | if test $build = $host ; then | |
8680 | LD="$2" | |
a0c92996 | 8681 | else |
60cfca65 | 8682 | LD="${ncn_tool_prefix}$2" |
a0c92996 | 8683 | fi |
a0c92996 AC |
8684 | fi |
8685 | ||
82026593 AO |
8686 | |
8687 | ||
8688 | if test -n "$LIPO"; then | |
8689 | ac_cv_prog_LIPO=$LIPO | |
8690 | elif test -n "$ac_cv_prog_LIPO"; then | |
8691 | LIPO=$ac_cv_prog_LIPO | |
8692 | fi | |
8693 | ||
8694 | if test -n "$ac_cv_prog_LIPO"; then | |
8695 | for ncn_progname in lipo; do | |
8696 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8697 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8699 | $as_echo_n "checking for $ac_word... " >&6; } | |
8700 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8701 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
8702 | else |
8703 | if test -n "$LIPO"; then | |
8704 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8705 | else | |
8706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8707 | for as_dir in $PATH | |
8708 | do | |
8709 | IFS=$as_save_IFS | |
8710 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8711 | for ac_exec_ext in '' $ac_executable_extensions; do |
8712 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 8713 | ac_cv_prog_LIPO="${ncn_progname}" |
efd58f08 | 8714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
8715 | break 2 |
8716 | fi | |
8717 | done | |
efd58f08 RW |
8718 | done |
8719 | IFS=$as_save_IFS | |
82026593 AO |
8720 | |
8721 | fi | |
8722 | fi | |
8723 | LIPO=$ac_cv_prog_LIPO | |
8724 | if test -n "$LIPO"; then | |
efd58f08 RW |
8725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8726 | $as_echo "$LIPO" >&6; } | |
82026593 | 8727 | else |
efd58f08 RW |
8728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8729 | $as_echo "no" >&6; } | |
82026593 AO |
8730 | fi |
8731 | ||
efd58f08 | 8732 | |
82026593 AO |
8733 | done |
8734 | fi | |
8735 | ||
8736 | for ncn_progname in lipo; do | |
a7dc05b5 PB |
8737 | if test -n "$ncn_tool_prefix"; then |
8738 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8739 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8741 | $as_echo_n "checking for $ac_word... " >&6; } | |
8742 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8743 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
8744 | else |
8745 | if test -n "$LIPO"; then | |
8746 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8747 | else | |
b58b6ee1 DJ |
8748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8749 | for as_dir in $PATH | |
8750 | do | |
8751 | IFS=$as_save_IFS | |
8752 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8753 | for ac_exec_ext in '' $ac_executable_extensions; do |
8754 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8755 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 8756 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8757 | break 2 |
8758 | fi | |
8759 | done | |
efd58f08 RW |
8760 | done |
8761 | IFS=$as_save_IFS | |
b58b6ee1 | 8762 | |
a7dc05b5 PB |
8763 | fi |
8764 | fi | |
b58b6ee1 | 8765 | LIPO=$ac_cv_prog_LIPO |
a7dc05b5 | 8766 | if test -n "$LIPO"; then |
efd58f08 RW |
8767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8768 | $as_echo "$LIPO" >&6; } | |
a7dc05b5 | 8769 | else |
efd58f08 RW |
8770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8771 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
8772 | fi |
8773 | ||
efd58f08 | 8774 | |
a7dc05b5 PB |
8775 | fi |
8776 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8777 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8778 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8780 | $as_echo_n "checking for $ac_word... " >&6; } | |
8781 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8782 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
8783 | else |
8784 | if test -n "$LIPO"; then | |
8785 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8786 | else | |
b58b6ee1 DJ |
8787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8788 | for as_dir in $PATH | |
8789 | do | |
8790 | IFS=$as_save_IFS | |
8791 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8792 | for ac_exec_ext in '' $ac_executable_extensions; do |
8793 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 8794 | ac_cv_prog_LIPO="${ncn_progname}" |
efd58f08 | 8795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8796 | break 2 |
8797 | fi | |
8798 | done | |
efd58f08 RW |
8799 | done |
8800 | IFS=$as_save_IFS | |
b58b6ee1 | 8801 | |
a7dc05b5 PB |
8802 | fi |
8803 | fi | |
b58b6ee1 | 8804 | LIPO=$ac_cv_prog_LIPO |
a7dc05b5 | 8805 | if test -n "$LIPO"; then |
efd58f08 RW |
8806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8807 | $as_echo "$LIPO" >&6; } | |
a7dc05b5 | 8808 | else |
efd58f08 RW |
8809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8810 | $as_echo "no" >&6; } | |
a7dc05b5 | 8811 | fi |
b58b6ee1 | 8812 | |
efd58f08 | 8813 | |
a7dc05b5 PB |
8814 | fi |
8815 | test -n "$ac_cv_prog_LIPO" && break | |
8816 | done | |
8817 | ||
8818 | if test -z "$ac_cv_prog_LIPO" ; then | |
8819 | set dummy lipo | |
8820 | if test $build = $host ; then | |
8821 | LIPO="$2" | |
8822 | else | |
8823 | LIPO="${ncn_tool_prefix}$2" | |
8824 | fi | |
8825 | fi | |
8826 | ||
82026593 AO |
8827 | |
8828 | ||
8829 | if test -n "$NM"; then | |
8830 | ac_cv_prog_NM=$NM | |
8831 | elif test -n "$ac_cv_prog_NM"; then | |
8832 | NM=$ac_cv_prog_NM | |
8833 | fi | |
8834 | ||
8835 | if test -n "$ac_cv_prog_NM"; then | |
8836 | for ncn_progname in nm; do | |
8837 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8838 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8840 | $as_echo_n "checking for $ac_word... " >&6; } | |
8841 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8842 | $as_echo_n "(cached) " >&6 | |
a0c92996 AC |
8843 | else |
8844 | if test -n "$NM"; then | |
8845 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8846 | else | |
b58b6ee1 DJ |
8847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8848 | for as_dir in $PATH | |
8849 | do | |
8850 | IFS=$as_save_IFS | |
8851 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8852 | for ac_exec_ext in '' $ac_executable_extensions; do |
8853 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 8854 | ac_cv_prog_NM="${ncn_progname}" |
efd58f08 | 8855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8856 | break 2 |
8857 | fi | |
8858 | done | |
efd58f08 RW |
8859 | done |
8860 | IFS=$as_save_IFS | |
b58b6ee1 | 8861 | |
a0c92996 AC |
8862 | fi |
8863 | fi | |
b58b6ee1 | 8864 | NM=$ac_cv_prog_NM |
a0c92996 | 8865 | if test -n "$NM"; then |
efd58f08 RW |
8866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8867 | $as_echo "$NM" >&6; } | |
a0c92996 | 8868 | else |
efd58f08 RW |
8869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8870 | $as_echo "no" >&6; } | |
a0c92996 AC |
8871 | fi |
8872 | ||
efd58f08 | 8873 | |
82026593 AO |
8874 | done |
8875 | fi | |
8876 | ||
8877 | for ncn_progname in nm; do | |
8878 | if test -n "$ncn_tool_prefix"; then | |
8879 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8880 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8882 | $as_echo_n "checking for $ac_word... " >&6; } | |
8883 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8884 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 8885 | else |
60cfca65 PB |
8886 | if test -n "$NM"; then |
8887 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
a0c92996 | 8888 | else |
b58b6ee1 DJ |
8889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8890 | for as_dir in $PATH | |
8891 | do | |
8892 | IFS=$as_save_IFS | |
8893 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8894 | for ac_exec_ext in '' $ac_executable_extensions; do |
8895 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 8896 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 8897 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8898 | break 2 |
8899 | fi | |
8900 | done | |
efd58f08 RW |
8901 | done |
8902 | IFS=$as_save_IFS | |
b58b6ee1 | 8903 | |
a0c92996 AC |
8904 | fi |
8905 | fi | |
b58b6ee1 | 8906 | NM=$ac_cv_prog_NM |
60cfca65 | 8907 | if test -n "$NM"; then |
efd58f08 RW |
8908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8909 | $as_echo "$NM" >&6; } | |
a0c92996 | 8910 | else |
efd58f08 RW |
8911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8912 | $as_echo "no" >&6; } | |
a0c92996 | 8913 | fi |
b58b6ee1 | 8914 | |
efd58f08 | 8915 | |
60cfca65 | 8916 | fi |
82026593 AO |
8917 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8918 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8919 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8921 | $as_echo_n "checking for $ac_word... " >&6; } | |
8922 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8923 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
8924 | else |
8925 | if test -n "$NM"; then | |
8926 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8927 | else | |
8928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8929 | for as_dir in $PATH | |
8930 | do | |
8931 | IFS=$as_save_IFS | |
8932 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8933 | for ac_exec_ext in '' $ac_executable_extensions; do |
8934 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 8935 | ac_cv_prog_NM="${ncn_progname}" |
efd58f08 | 8936 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
8937 | break 2 |
8938 | fi | |
8939 | done | |
efd58f08 RW |
8940 | done |
8941 | IFS=$as_save_IFS | |
82026593 AO |
8942 | |
8943 | fi | |
8944 | fi | |
8945 | NM=$ac_cv_prog_NM | |
8946 | if test -n "$NM"; then | |
efd58f08 RW |
8947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8948 | $as_echo "$NM" >&6; } | |
82026593 | 8949 | else |
efd58f08 RW |
8950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8951 | $as_echo "no" >&6; } | |
82026593 AO |
8952 | fi |
8953 | ||
efd58f08 | 8954 | |
82026593 AO |
8955 | fi |
8956 | test -n "$ac_cv_prog_NM" && break | |
8957 | done | |
8958 | ||
8959 | if test -z "$ac_cv_prog_NM" ; then | |
8960 | set dummy nm | |
8961 | if test $build = $host ; then | |
8962 | NM="$2" | |
8963 | else | |
8964 | NM="${ncn_tool_prefix}$2" | |
8965 | fi | |
8966 | fi | |
8967 | ||
8968 | ||
8969 | ||
8970 | if test -n "$RANLIB"; then | |
8971 | ac_cv_prog_RANLIB=$RANLIB | |
8972 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8973 | RANLIB=$ac_cv_prog_RANLIB | |
8974 | fi | |
8975 | ||
8976 | if test -n "$ac_cv_prog_RANLIB"; then | |
8977 | for ncn_progname in ranlib; do | |
8978 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8979 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8981 | $as_echo_n "checking for $ac_word... " >&6; } | |
8982 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8983 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
8984 | else |
8985 | if test -n "$RANLIB"; then | |
8986 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8987 | else | |
8988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8989 | for as_dir in $PATH | |
8990 | do | |
8991 | IFS=$as_save_IFS | |
8992 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
8993 | for ac_exec_ext in '' $ac_executable_extensions; do |
8994 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 8995 | ac_cv_prog_RANLIB="${ncn_progname}" |
efd58f08 | 8996 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
8997 | break 2 |
8998 | fi | |
8999 | done | |
efd58f08 RW |
9000 | done |
9001 | IFS=$as_save_IFS | |
82026593 AO |
9002 | |
9003 | fi | |
9004 | fi | |
9005 | RANLIB=$ac_cv_prog_RANLIB | |
9006 | if test -n "$RANLIB"; then | |
efd58f08 RW |
9007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9008 | $as_echo "$RANLIB" >&6; } | |
82026593 | 9009 | else |
efd58f08 RW |
9010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9011 | $as_echo "no" >&6; } | |
82026593 AO |
9012 | fi |
9013 | ||
efd58f08 | 9014 | |
82026593 AO |
9015 | done |
9016 | fi | |
a0c92996 | 9017 | |
82026593 | 9018 | for ncn_progname in ranlib; do |
60cfca65 PB |
9019 | if test -n "$ncn_tool_prefix"; then |
9020 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9021 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9023 | $as_echo_n "checking for $ac_word... " >&6; } | |
9024 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
9025 | $as_echo_n "(cached) " >&6 | |
a0c92996 AC |
9026 | else |
9027 | if test -n "$RANLIB"; then | |
9028 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9029 | else | |
b58b6ee1 DJ |
9030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9031 | for as_dir in $PATH | |
9032 | do | |
9033 | IFS=$as_save_IFS | |
9034 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9035 | for ac_exec_ext in '' $ac_executable_extensions; do |
9036 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 9037 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 9038 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9039 | break 2 |
9040 | fi | |
9041 | done | |
efd58f08 RW |
9042 | done |
9043 | IFS=$as_save_IFS | |
b58b6ee1 | 9044 | |
a0c92996 AC |
9045 | fi |
9046 | fi | |
b58b6ee1 | 9047 | RANLIB=$ac_cv_prog_RANLIB |
a0c92996 | 9048 | if test -n "$RANLIB"; then |
efd58f08 RW |
9049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9050 | $as_echo "$RANLIB" >&6; } | |
a0c92996 | 9051 | else |
efd58f08 RW |
9052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9053 | $as_echo "no" >&6; } | |
a0c92996 AC |
9054 | fi |
9055 | ||
efd58f08 | 9056 | |
60cfca65 PB |
9057 | fi |
9058 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
9059 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9060 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9062 | $as_echo_n "checking for $ac_word... " >&6; } | |
9063 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
9064 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 9065 | else |
60cfca65 PB |
9066 | if test -n "$RANLIB"; then |
9067 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
a0c92996 | 9068 | else |
b58b6ee1 DJ |
9069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9070 | for as_dir in $PATH | |
9071 | do | |
9072 | IFS=$as_save_IFS | |
9073 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9074 | for ac_exec_ext in '' $ac_executable_extensions; do |
9075 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 9076 | ac_cv_prog_RANLIB="${ncn_progname}" |
efd58f08 | 9077 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9078 | break 2 |
9079 | fi | |
9080 | done | |
efd58f08 RW |
9081 | done |
9082 | IFS=$as_save_IFS | |
b58b6ee1 | 9083 | |
a0c92996 AC |
9084 | fi |
9085 | fi | |
b58b6ee1 | 9086 | RANLIB=$ac_cv_prog_RANLIB |
60cfca65 | 9087 | if test -n "$RANLIB"; then |
efd58f08 RW |
9088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9089 | $as_echo "$RANLIB" >&6; } | |
a0c92996 | 9090 | else |
efd58f08 RW |
9091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9092 | $as_echo "no" >&6; } | |
a0c92996 | 9093 | fi |
b58b6ee1 | 9094 | |
efd58f08 | 9095 | |
a0c92996 | 9096 | fi |
60cfca65 PB |
9097 | test -n "$ac_cv_prog_RANLIB" && break |
9098 | done | |
9099 | ||
9100 | if test -z "$ac_cv_prog_RANLIB" ; then | |
56fbdfab | 9101 | RANLIB="true" |
a0c92996 AC |
9102 | fi |
9103 | ||
82026593 AO |
9104 | |
9105 | ||
9106 | if test -n "$STRIP"; then | |
9107 | ac_cv_prog_STRIP=$STRIP | |
9108 | elif test -n "$ac_cv_prog_STRIP"; then | |
9109 | STRIP=$ac_cv_prog_STRIP | |
9110 | fi | |
9111 | ||
9112 | if test -n "$ac_cv_prog_STRIP"; then | |
9113 | for ncn_progname in strip; do | |
9114 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9115 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9117 | $as_echo_n "checking for $ac_word... " >&6; } | |
9118 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9119 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
9120 | else |
9121 | if test -n "$STRIP"; then | |
9122 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9123 | else | |
9124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9125 | for as_dir in $PATH | |
9126 | do | |
9127 | IFS=$as_save_IFS | |
9128 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9129 | for ac_exec_ext in '' $ac_executable_extensions; do |
9130 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 9131 | ac_cv_prog_STRIP="${ncn_progname}" |
efd58f08 | 9132 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
9133 | break 2 |
9134 | fi | |
9135 | done | |
efd58f08 RW |
9136 | done |
9137 | IFS=$as_save_IFS | |
82026593 AO |
9138 | |
9139 | fi | |
9140 | fi | |
9141 | STRIP=$ac_cv_prog_STRIP | |
9142 | if test -n "$STRIP"; then | |
efd58f08 RW |
9143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9144 | $as_echo "$STRIP" >&6; } | |
82026593 | 9145 | else |
efd58f08 RW |
9146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9147 | $as_echo "no" >&6; } | |
82026593 AO |
9148 | fi |
9149 | ||
efd58f08 | 9150 | |
82026593 AO |
9151 | done |
9152 | fi | |
9153 | ||
9154 | for ncn_progname in strip; do | |
a7dc05b5 PB |
9155 | if test -n "$ncn_tool_prefix"; then |
9156 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9157 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9159 | $as_echo_n "checking for $ac_word... " >&6; } | |
9160 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9161 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
9162 | else |
9163 | if test -n "$STRIP"; then | |
9164 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9165 | else | |
b58b6ee1 DJ |
9166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9167 | for as_dir in $PATH | |
9168 | do | |
9169 | IFS=$as_save_IFS | |
9170 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9171 | for ac_exec_ext in '' $ac_executable_extensions; do |
9172 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 9173 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 9174 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9175 | break 2 |
9176 | fi | |
9177 | done | |
efd58f08 RW |
9178 | done |
9179 | IFS=$as_save_IFS | |
b58b6ee1 | 9180 | |
a7dc05b5 PB |
9181 | fi |
9182 | fi | |
b58b6ee1 | 9183 | STRIP=$ac_cv_prog_STRIP |
a7dc05b5 | 9184 | if test -n "$STRIP"; then |
efd58f08 RW |
9185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9186 | $as_echo "$STRIP" >&6; } | |
a7dc05b5 | 9187 | else |
efd58f08 RW |
9188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9189 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
9190 | fi |
9191 | ||
efd58f08 | 9192 | |
a7dc05b5 PB |
9193 | fi |
9194 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9195 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9196 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9198 | $as_echo_n "checking for $ac_word... " >&6; } | |
9199 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9200 | $as_echo_n "(cached) " >&6 | |
a7dc05b5 PB |
9201 | else |
9202 | if test -n "$STRIP"; then | |
9203 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9204 | else | |
b58b6ee1 DJ |
9205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9206 | for as_dir in $PATH | |
9207 | do | |
9208 | IFS=$as_save_IFS | |
9209 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9210 | for ac_exec_ext in '' $ac_executable_extensions; do |
9211 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 9212 | ac_cv_prog_STRIP="${ncn_progname}" |
efd58f08 | 9213 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9214 | break 2 |
9215 | fi | |
9216 | done | |
efd58f08 RW |
9217 | done |
9218 | IFS=$as_save_IFS | |
b58b6ee1 | 9219 | |
a7dc05b5 PB |
9220 | fi |
9221 | fi | |
b58b6ee1 | 9222 | STRIP=$ac_cv_prog_STRIP |
a7dc05b5 | 9223 | if test -n "$STRIP"; then |
efd58f08 RW |
9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9225 | $as_echo "$STRIP" >&6; } | |
a7dc05b5 | 9226 | else |
efd58f08 RW |
9227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9228 | $as_echo "no" >&6; } | |
a7dc05b5 | 9229 | fi |
b58b6ee1 | 9230 | |
efd58f08 | 9231 | |
a7dc05b5 PB |
9232 | fi |
9233 | test -n "$ac_cv_prog_STRIP" && break | |
9234 | done | |
9235 | ||
9236 | if test -z "$ac_cv_prog_STRIP" ; then | |
56fbdfab | 9237 | STRIP="true" |
a7dc05b5 PB |
9238 | fi |
9239 | ||
82026593 AO |
9240 | |
9241 | ||
9242 | if test -n "$WINDRES"; then | |
9243 | ac_cv_prog_WINDRES=$WINDRES | |
9244 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9245 | WINDRES=$ac_cv_prog_WINDRES | |
9246 | fi | |
9247 | ||
9248 | if test -n "$ac_cv_prog_WINDRES"; then | |
9249 | for ncn_progname in windres; do | |
9250 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9251 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9253 | $as_echo_n "checking for $ac_word... " >&6; } | |
9254 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9255 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
9256 | else |
9257 | if test -n "$WINDRES"; then | |
9258 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9259 | else | |
9260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9261 | for as_dir in $PATH | |
9262 | do | |
9263 | IFS=$as_save_IFS | |
9264 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9265 | for ac_exec_ext in '' $ac_executable_extensions; do |
9266 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 9267 | ac_cv_prog_WINDRES="${ncn_progname}" |
efd58f08 | 9268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
9269 | break 2 |
9270 | fi | |
9271 | done | |
efd58f08 RW |
9272 | done |
9273 | IFS=$as_save_IFS | |
82026593 AO |
9274 | |
9275 | fi | |
9276 | fi | |
9277 | WINDRES=$ac_cv_prog_WINDRES | |
9278 | if test -n "$WINDRES"; then | |
efd58f08 RW |
9279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9280 | $as_echo "$WINDRES" >&6; } | |
82026593 | 9281 | else |
efd58f08 RW |
9282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9283 | $as_echo "no" >&6; } | |
82026593 AO |
9284 | fi |
9285 | ||
efd58f08 | 9286 | |
82026593 AO |
9287 | done |
9288 | fi | |
9289 | ||
9290 | for ncn_progname in windres; do | |
60cfca65 PB |
9291 | if test -n "$ncn_tool_prefix"; then |
9292 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9293 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9295 | $as_echo_n "checking for $ac_word... " >&6; } | |
9296 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9297 | $as_echo_n "(cached) " >&6 | |
a0c92996 AC |
9298 | else |
9299 | if test -n "$WINDRES"; then | |
9300 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9301 | else | |
b58b6ee1 DJ |
9302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9303 | for as_dir in $PATH | |
9304 | do | |
9305 | IFS=$as_save_IFS | |
9306 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9307 | for ac_exec_ext in '' $ac_executable_extensions; do |
9308 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 9309 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 9310 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9311 | break 2 |
9312 | fi | |
9313 | done | |
efd58f08 RW |
9314 | done |
9315 | IFS=$as_save_IFS | |
b58b6ee1 | 9316 | |
a0c92996 AC |
9317 | fi |
9318 | fi | |
b58b6ee1 | 9319 | WINDRES=$ac_cv_prog_WINDRES |
a0c92996 | 9320 | if test -n "$WINDRES"; then |
efd58f08 RW |
9321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9322 | $as_echo "$WINDRES" >&6; } | |
a0c92996 | 9323 | else |
efd58f08 RW |
9324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9325 | $as_echo "no" >&6; } | |
a0c92996 AC |
9326 | fi |
9327 | ||
efd58f08 | 9328 | |
60cfca65 PB |
9329 | fi |
9330 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9331 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9332 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9334 | $as_echo_n "checking for $ac_word... " >&6; } | |
9335 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9336 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 9337 | else |
60cfca65 PB |
9338 | if test -n "$WINDRES"; then |
9339 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
a0c92996 | 9340 | else |
b58b6ee1 DJ |
9341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9342 | for as_dir in $PATH | |
9343 | do | |
9344 | IFS=$as_save_IFS | |
9345 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9346 | for ac_exec_ext in '' $ac_executable_extensions; do |
9347 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 9348 | ac_cv_prog_WINDRES="${ncn_progname}" |
efd58f08 | 9349 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9350 | break 2 |
9351 | fi | |
9352 | done | |
efd58f08 RW |
9353 | done |
9354 | IFS=$as_save_IFS | |
b58b6ee1 | 9355 | |
a0c92996 AC |
9356 | fi |
9357 | fi | |
b58b6ee1 | 9358 | WINDRES=$ac_cv_prog_WINDRES |
60cfca65 | 9359 | if test -n "$WINDRES"; then |
efd58f08 RW |
9360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9361 | $as_echo "$WINDRES" >&6; } | |
a0c92996 | 9362 | else |
efd58f08 RW |
9363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9364 | $as_echo "no" >&6; } | |
a0c92996 | 9365 | fi |
b58b6ee1 | 9366 | |
efd58f08 | 9367 | |
60cfca65 PB |
9368 | fi |
9369 | test -n "$ac_cv_prog_WINDRES" && break | |
9370 | done | |
9371 | ||
9372 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9373 | set dummy windres | |
9374 | if test $build = $host ; then | |
9375 | WINDRES="$2" | |
a0c92996 | 9376 | else |
60cfca65 | 9377 | WINDRES="${ncn_tool_prefix}$2" |
a0c92996 | 9378 | fi |
a0c92996 AC |
9379 | fi |
9380 | ||
82026593 AO |
9381 | |
9382 | ||
bffcbe34 NC |
9383 | if test -n "$WINDMC"; then |
9384 | ac_cv_prog_WINDMC=$WINDMC | |
9385 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9386 | WINDMC=$ac_cv_prog_WINDMC | |
9387 | fi | |
9388 | ||
9389 | if test -n "$ac_cv_prog_WINDMC"; then | |
9390 | for ncn_progname in windmc; do | |
9391 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9392 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9394 | $as_echo_n "checking for $ac_word... " >&6; } | |
9395 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9396 | $as_echo_n "(cached) " >&6 | |
bffcbe34 NC |
9397 | else |
9398 | if test -n "$WINDMC"; then | |
9399 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9400 | else | |
9401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9402 | for as_dir in $PATH | |
9403 | do | |
9404 | IFS=$as_save_IFS | |
9405 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9406 | for ac_exec_ext in '' $ac_executable_extensions; do |
9407 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bffcbe34 | 9408 | ac_cv_prog_WINDMC="${ncn_progname}" |
efd58f08 | 9409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bffcbe34 NC |
9410 | break 2 |
9411 | fi | |
9412 | done | |
efd58f08 RW |
9413 | done |
9414 | IFS=$as_save_IFS | |
bffcbe34 NC |
9415 | |
9416 | fi | |
9417 | fi | |
9418 | WINDMC=$ac_cv_prog_WINDMC | |
9419 | if test -n "$WINDMC"; then | |
efd58f08 RW |
9420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9421 | $as_echo "$WINDMC" >&6; } | |
bffcbe34 | 9422 | else |
efd58f08 RW |
9423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9424 | $as_echo "no" >&6; } | |
bffcbe34 NC |
9425 | fi |
9426 | ||
efd58f08 | 9427 | |
bffcbe34 NC |
9428 | done |
9429 | fi | |
9430 | ||
9431 | for ncn_progname in windmc; do | |
9432 | if test -n "$ncn_tool_prefix"; then | |
9433 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9434 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9436 | $as_echo_n "checking for $ac_word... " >&6; } | |
9437 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9438 | $as_echo_n "(cached) " >&6 | |
bffcbe34 NC |
9439 | else |
9440 | if test -n "$WINDMC"; then | |
9441 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9442 | else | |
9443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9444 | for as_dir in $PATH | |
9445 | do | |
9446 | IFS=$as_save_IFS | |
9447 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9448 | for ac_exec_ext in '' $ac_executable_extensions; do |
9449 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bffcbe34 | 9450 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 9451 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bffcbe34 NC |
9452 | break 2 |
9453 | fi | |
9454 | done | |
efd58f08 RW |
9455 | done |
9456 | IFS=$as_save_IFS | |
bffcbe34 NC |
9457 | |
9458 | fi | |
9459 | fi | |
9460 | WINDMC=$ac_cv_prog_WINDMC | |
9461 | if test -n "$WINDMC"; then | |
efd58f08 RW |
9462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9463 | $as_echo "$WINDMC" >&6; } | |
bffcbe34 | 9464 | else |
efd58f08 RW |
9465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9466 | $as_echo "no" >&6; } | |
bffcbe34 NC |
9467 | fi |
9468 | ||
efd58f08 | 9469 | |
bffcbe34 NC |
9470 | fi |
9471 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9472 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9473 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9475 | $as_echo_n "checking for $ac_word... " >&6; } | |
9476 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9477 | $as_echo_n "(cached) " >&6 | |
bffcbe34 NC |
9478 | else |
9479 | if test -n "$WINDMC"; then | |
9480 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9481 | else | |
9482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9483 | for as_dir in $PATH | |
9484 | do | |
9485 | IFS=$as_save_IFS | |
9486 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9487 | for ac_exec_ext in '' $ac_executable_extensions; do |
9488 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bffcbe34 | 9489 | ac_cv_prog_WINDMC="${ncn_progname}" |
efd58f08 | 9490 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bffcbe34 NC |
9491 | break 2 |
9492 | fi | |
9493 | done | |
efd58f08 RW |
9494 | done |
9495 | IFS=$as_save_IFS | |
bffcbe34 NC |
9496 | |
9497 | fi | |
9498 | fi | |
9499 | WINDMC=$ac_cv_prog_WINDMC | |
9500 | if test -n "$WINDMC"; then | |
efd58f08 RW |
9501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9502 | $as_echo "$WINDMC" >&6; } | |
bffcbe34 | 9503 | else |
efd58f08 RW |
9504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9505 | $as_echo "no" >&6; } | |
bffcbe34 NC |
9506 | fi |
9507 | ||
efd58f08 | 9508 | |
bffcbe34 NC |
9509 | fi |
9510 | test -n "$ac_cv_prog_WINDMC" && break | |
9511 | done | |
9512 | ||
9513 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9514 | set dummy windmc | |
9515 | if test $build = $host ; then | |
9516 | WINDMC="$2" | |
9517 | else | |
9518 | WINDMC="${ncn_tool_prefix}$2" | |
9519 | fi | |
9520 | fi | |
9521 | ||
9522 | ||
9523 | ||
82026593 AO |
9524 | if test -n "$OBJCOPY"; then |
9525 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9526 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9527 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9528 | fi | |
9529 | ||
9530 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9531 | for ncn_progname in objcopy; do | |
9532 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9533 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9535 | $as_echo_n "checking for $ac_word... " >&6; } | |
9536 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9537 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
9538 | else |
9539 | if test -n "$OBJCOPY"; then | |
9540 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9541 | else | |
9542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9543 | for as_dir in $PATH | |
9544 | do | |
9545 | IFS=$as_save_IFS | |
9546 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9547 | for ac_exec_ext in '' $ac_executable_extensions; do |
9548 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 9549 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
efd58f08 | 9550 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
9551 | break 2 |
9552 | fi | |
9553 | done | |
efd58f08 RW |
9554 | done |
9555 | IFS=$as_save_IFS | |
82026593 AO |
9556 | |
9557 | fi | |
9558 | fi | |
9559 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9560 | if test -n "$OBJCOPY"; then | |
efd58f08 RW |
9561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9562 | $as_echo "$OBJCOPY" >&6; } | |
82026593 | 9563 | else |
efd58f08 RW |
9564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9565 | $as_echo "no" >&6; } | |
82026593 AO |
9566 | fi |
9567 | ||
efd58f08 | 9568 | |
82026593 AO |
9569 | done |
9570 | fi | |
9571 | ||
9572 | for ncn_progname in objcopy; do | |
60cfca65 PB |
9573 | if test -n "$ncn_tool_prefix"; then |
9574 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9575 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9577 | $as_echo_n "checking for $ac_word... " >&6; } | |
9578 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9579 | $as_echo_n "(cached) " >&6 | |
a0c92996 AC |
9580 | else |
9581 | if test -n "$OBJCOPY"; then | |
9582 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9583 | else | |
b58b6ee1 DJ |
9584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9585 | for as_dir in $PATH | |
9586 | do | |
9587 | IFS=$as_save_IFS | |
9588 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9589 | for ac_exec_ext in '' $ac_executable_extensions; do |
9590 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 9591 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 9592 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9593 | break 2 |
9594 | fi | |
9595 | done | |
efd58f08 RW |
9596 | done |
9597 | IFS=$as_save_IFS | |
b58b6ee1 | 9598 | |
a0c92996 AC |
9599 | fi |
9600 | fi | |
b58b6ee1 | 9601 | OBJCOPY=$ac_cv_prog_OBJCOPY |
a0c92996 | 9602 | if test -n "$OBJCOPY"; then |
efd58f08 RW |
9603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9604 | $as_echo "$OBJCOPY" >&6; } | |
a0c92996 | 9605 | else |
efd58f08 RW |
9606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9607 | $as_echo "no" >&6; } | |
a0c92996 AC |
9608 | fi |
9609 | ||
efd58f08 | 9610 | |
60cfca65 PB |
9611 | fi |
9612 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9613 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9614 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9616 | $as_echo_n "checking for $ac_word... " >&6; } | |
9617 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9618 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 9619 | else |
60cfca65 PB |
9620 | if test -n "$OBJCOPY"; then |
9621 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
a0c92996 | 9622 | else |
b58b6ee1 DJ |
9623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9624 | for as_dir in $PATH | |
9625 | do | |
9626 | IFS=$as_save_IFS | |
9627 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9628 | for ac_exec_ext in '' $ac_executable_extensions; do |
9629 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 9630 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
efd58f08 | 9631 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9632 | break 2 |
9633 | fi | |
9634 | done | |
efd58f08 RW |
9635 | done |
9636 | IFS=$as_save_IFS | |
b58b6ee1 | 9637 | |
a0c92996 AC |
9638 | fi |
9639 | fi | |
b58b6ee1 | 9640 | OBJCOPY=$ac_cv_prog_OBJCOPY |
60cfca65 | 9641 | if test -n "$OBJCOPY"; then |
efd58f08 RW |
9642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9643 | $as_echo "$OBJCOPY" >&6; } | |
a0c92996 | 9644 | else |
efd58f08 RW |
9645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9646 | $as_echo "no" >&6; } | |
a0c92996 | 9647 | fi |
b58b6ee1 | 9648 | |
efd58f08 | 9649 | |
60cfca65 PB |
9650 | fi |
9651 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9652 | done | |
9653 | ||
9654 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9655 | set dummy objcopy | |
9656 | if test $build = $host ; then | |
9657 | OBJCOPY="$2" | |
a0c92996 | 9658 | else |
60cfca65 | 9659 | OBJCOPY="${ncn_tool_prefix}$2" |
a0c92996 | 9660 | fi |
a0c92996 AC |
9661 | fi |
9662 | ||
82026593 AO |
9663 | |
9664 | ||
9665 | if test -n "$OBJDUMP"; then | |
9666 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9667 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9668 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9669 | fi | |
9670 | ||
9671 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9672 | for ncn_progname in objdump; do | |
9673 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9674 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9676 | $as_echo_n "checking for $ac_word... " >&6; } | |
9677 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9678 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
9679 | else |
9680 | if test -n "$OBJDUMP"; then | |
9681 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9682 | else | |
9683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9684 | for as_dir in $PATH | |
9685 | do | |
9686 | IFS=$as_save_IFS | |
9687 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9688 | for ac_exec_ext in '' $ac_executable_extensions; do |
9689 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 9690 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
efd58f08 | 9691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
9692 | break 2 |
9693 | fi | |
9694 | done | |
efd58f08 RW |
9695 | done |
9696 | IFS=$as_save_IFS | |
82026593 AO |
9697 | |
9698 | fi | |
9699 | fi | |
9700 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9701 | if test -n "$OBJDUMP"; then | |
efd58f08 RW |
9702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9703 | $as_echo "$OBJDUMP" >&6; } | |
82026593 | 9704 | else |
efd58f08 RW |
9705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9706 | $as_echo "no" >&6; } | |
82026593 AO |
9707 | fi |
9708 | ||
efd58f08 | 9709 | |
82026593 AO |
9710 | done |
9711 | fi | |
9712 | ||
9713 | for ncn_progname in objdump; do | |
60cfca65 PB |
9714 | if test -n "$ncn_tool_prefix"; then |
9715 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9716 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9718 | $as_echo_n "checking for $ac_word... " >&6; } | |
9719 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9720 | $as_echo_n "(cached) " >&6 | |
a0c92996 AC |
9721 | else |
9722 | if test -n "$OBJDUMP"; then | |
9723 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9724 | else | |
b58b6ee1 DJ |
9725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9726 | for as_dir in $PATH | |
9727 | do | |
9728 | IFS=$as_save_IFS | |
9729 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9730 | for ac_exec_ext in '' $ac_executable_extensions; do |
9731 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 9732 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 9733 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9734 | break 2 |
9735 | fi | |
9736 | done | |
efd58f08 RW |
9737 | done |
9738 | IFS=$as_save_IFS | |
b58b6ee1 | 9739 | |
a0c92996 AC |
9740 | fi |
9741 | fi | |
b58b6ee1 | 9742 | OBJDUMP=$ac_cv_prog_OBJDUMP |
a0c92996 | 9743 | if test -n "$OBJDUMP"; then |
efd58f08 RW |
9744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9745 | $as_echo "$OBJDUMP" >&6; } | |
a0c92996 | 9746 | else |
efd58f08 RW |
9747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9748 | $as_echo "no" >&6; } | |
a0c92996 AC |
9749 | fi |
9750 | ||
efd58f08 | 9751 | |
60cfca65 PB |
9752 | fi |
9753 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9754 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9755 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9757 | $as_echo_n "checking for $ac_word... " >&6; } | |
9758 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9759 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 9760 | else |
60cfca65 PB |
9761 | if test -n "$OBJDUMP"; then |
9762 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
a0c92996 | 9763 | else |
b58b6ee1 DJ |
9764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9765 | for as_dir in $PATH | |
9766 | do | |
9767 | IFS=$as_save_IFS | |
9768 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9769 | for ac_exec_ext in '' $ac_executable_extensions; do |
9770 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 9771 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
efd58f08 | 9772 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9773 | break 2 |
9774 | fi | |
9775 | done | |
efd58f08 RW |
9776 | done |
9777 | IFS=$as_save_IFS | |
b58b6ee1 | 9778 | |
a0c92996 AC |
9779 | fi |
9780 | fi | |
b58b6ee1 | 9781 | OBJDUMP=$ac_cv_prog_OBJDUMP |
60cfca65 | 9782 | if test -n "$OBJDUMP"; then |
efd58f08 RW |
9783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9784 | $as_echo "$OBJDUMP" >&6; } | |
a0c92996 | 9785 | else |
efd58f08 RW |
9786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9787 | $as_echo "no" >&6; } | |
a0c92996 | 9788 | fi |
b58b6ee1 | 9789 | |
efd58f08 | 9790 | |
60cfca65 PB |
9791 | fi |
9792 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9793 | done | |
9794 | ||
9795 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9796 | set dummy objdump | |
9797 | if test $build = $host ; then | |
9798 | OBJDUMP="$2" | |
a0c92996 | 9799 | else |
60cfca65 | 9800 | OBJDUMP="${ncn_tool_prefix}$2" |
a0c92996 | 9801 | fi |
a0c92996 AC |
9802 | fi |
9803 | ||
bafecfd6 NN |
9804 | |
9805 | ||
46e7439b DD |
9806 | if test -n "$READELF"; then |
9807 | ac_cv_prog_READELF=$READELF | |
9808 | elif test -n "$ac_cv_prog_READELF"; then | |
9809 | READELF=$ac_cv_prog_READELF | |
9810 | fi | |
9811 | ||
9812 | if test -n "$ac_cv_prog_READELF"; then | |
9813 | for ncn_progname in readelf; do | |
9814 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9815 | set dummy ${ncn_progname}; ac_word=$2 | |
9816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9817 | $as_echo_n "checking for $ac_word... " >&6; } | |
9818 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9819 | $as_echo_n "(cached) " >&6 | |
9820 | else | |
9821 | if test -n "$READELF"; then | |
9822 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9823 | else | |
9824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9825 | for as_dir in $PATH | |
9826 | do | |
9827 | IFS=$as_save_IFS | |
9828 | test -z "$as_dir" && as_dir=. | |
9829 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9830 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9831 | ac_cv_prog_READELF="${ncn_progname}" | |
9832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9833 | break 2 | |
9834 | fi | |
9835 | done | |
9836 | done | |
9837 | IFS=$as_save_IFS | |
9838 | ||
9839 | fi | |
9840 | fi | |
9841 | READELF=$ac_cv_prog_READELF | |
9842 | if test -n "$READELF"; then | |
9843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9844 | $as_echo "$READELF" >&6; } | |
9845 | else | |
9846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9847 | $as_echo "no" >&6; } | |
9848 | fi | |
9849 | ||
9850 | ||
9851 | done | |
9852 | fi | |
9853 | ||
9854 | for ncn_progname in readelf; do | |
9855 | if test -n "$ncn_tool_prefix"; then | |
9856 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9857 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9859 | $as_echo_n "checking for $ac_word... " >&6; } | |
9860 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9861 | $as_echo_n "(cached) " >&6 | |
9862 | else | |
9863 | if test -n "$READELF"; then | |
9864 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9865 | else | |
9866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9867 | for as_dir in $PATH | |
9868 | do | |
9869 | IFS=$as_save_IFS | |
9870 | test -z "$as_dir" && as_dir=. | |
9871 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9872 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9873 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" | |
9874 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9875 | break 2 | |
9876 | fi | |
9877 | done | |
9878 | done | |
9879 | IFS=$as_save_IFS | |
9880 | ||
9881 | fi | |
9882 | fi | |
9883 | READELF=$ac_cv_prog_READELF | |
9884 | if test -n "$READELF"; then | |
9885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9886 | $as_echo "$READELF" >&6; } | |
9887 | else | |
9888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9889 | $as_echo "no" >&6; } | |
9890 | fi | |
9891 | ||
9892 | ||
9893 | fi | |
9894 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9895 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9896 | set dummy ${ncn_progname}; ac_word=$2 | |
9897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9898 | $as_echo_n "checking for $ac_word... " >&6; } | |
9899 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9900 | $as_echo_n "(cached) " >&6 | |
9901 | else | |
9902 | if test -n "$READELF"; then | |
9903 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9904 | else | |
9905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9906 | for as_dir in $PATH | |
9907 | do | |
9908 | IFS=$as_save_IFS | |
9909 | test -z "$as_dir" && as_dir=. | |
9910 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9911 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9912 | ac_cv_prog_READELF="${ncn_progname}" | |
9913 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9914 | break 2 | |
9915 | fi | |
9916 | done | |
9917 | done | |
9918 | IFS=$as_save_IFS | |
9919 | ||
9920 | fi | |
9921 | fi | |
9922 | READELF=$ac_cv_prog_READELF | |
9923 | if test -n "$READELF"; then | |
9924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9925 | $as_echo "$READELF" >&6; } | |
9926 | else | |
9927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9928 | $as_echo "no" >&6; } | |
9929 | fi | |
9930 | ||
9931 | ||
9932 | fi | |
9933 | test -n "$ac_cv_prog_READELF" && break | |
9934 | done | |
9935 | ||
9936 | if test -z "$ac_cv_prog_READELF" ; then | |
9937 | set dummy readelf | |
9938 | if test $build = $host ; then | |
9939 | READELF="$2" | |
9940 | else | |
9941 | READELF="${ncn_tool_prefix}$2" | |
9942 | fi | |
9943 | fi | |
9944 | ||
9945 | ||
9946 | ||
bafecfd6 NN |
9947 | |
9948 | ||
9949 | ||
a7dc05b5 | 9950 | # Target tools. |
b58b6ee1 | 9951 | |
efd58f08 RW |
9952 | # Check whether --with-build-time-tools was given. |
9953 | if test "${with_build_time_tools+set}" = set; then : | |
9954 | withval=$with_build_time_tools; case x"$withval" in | |
fef3f213 PB |
9955 | x/*) ;; |
9956 | *) | |
9957 | with_build_time_tools= | |
efd58f08 RW |
9958 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9959 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
fef3f213 PB |
9960 | ;; |
9961 | esac | |
a0c92996 | 9962 | else |
fef3f213 | 9963 | with_build_time_tools= |
efd58f08 RW |
9964 | fi |
9965 | ||
a0c92996 | 9966 | |
82026593 AO |
9967 | |
9968 | ||
9969 | if test -n "$CC_FOR_TARGET"; then | |
9970 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9971 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9972 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9973 | fi | |
9974 | ||
9975 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9976 | for ncn_progname in cc gcc; do | |
9977 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9978 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9980 | $as_echo_n "checking for $ac_word... " >&6; } | |
9981 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9982 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
9983 | else |
9984 | if test -n "$CC_FOR_TARGET"; then | |
9985 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9986 | else | |
9987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9988 | for as_dir in $PATH | |
9989 | do | |
9990 | IFS=$as_save_IFS | |
9991 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
9992 | for ac_exec_ext in '' $ac_executable_extensions; do |
9993 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 9994 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
efd58f08 | 9995 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
9996 | break 2 |
9997 | fi | |
9998 | done | |
efd58f08 RW |
9999 | done |
10000 | IFS=$as_save_IFS | |
82026593 AO |
10001 | |
10002 | fi | |
10003 | fi | |
10004 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10005 | if test -n "$CC_FOR_TARGET"; then | |
efd58f08 RW |
10006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10007 | $as_echo "$CC_FOR_TARGET" >&6; } | |
82026593 | 10008 | else |
efd58f08 RW |
10009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10010 | $as_echo "no" >&6; } | |
82026593 AO |
10011 | fi |
10012 | ||
efd58f08 | 10013 | |
82026593 AO |
10014 | done |
10015 | fi | |
10016 | ||
10017 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 10018 | for ncn_progname in cc gcc; do |
efd58f08 RW |
10019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10020 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
10021 | if test -x $with_build_time_tools/${ncn_progname}; then |
10022 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
10023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10024 | $as_echo "yes" >&6; } | |
f69e2532 | 10025 | break |
fef3f213 | 10026 | else |
efd58f08 RW |
10027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10028 | $as_echo "no" >&6; } | |
f69e2532 CM |
10029 | fi |
10030 | done | |
5fb28bcc PB |
10031 | fi |
10032 | ||
fef3f213 PB |
10033 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
10034 | for ncn_progname in cc gcc; do | |
10035 | if test -n "$ncn_target_tool_prefix"; then | |
10036 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10037 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10039 | $as_echo_n "checking for $ac_word... " >&6; } | |
10040 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
10041 | $as_echo_n "(cached) " >&6 | |
5fb28bcc PB |
10042 | else |
10043 | if test -n "$CC_FOR_TARGET"; then | |
10044 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10045 | else | |
b58b6ee1 DJ |
10046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10047 | for as_dir in $PATH | |
10048 | do | |
10049 | IFS=$as_save_IFS | |
10050 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10051 | for ac_exec_ext in '' $ac_executable_extensions; do |
10052 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 10053 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 10054 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10055 | break 2 |
10056 | fi | |
10057 | done | |
efd58f08 RW |
10058 | done |
10059 | IFS=$as_save_IFS | |
b58b6ee1 | 10060 | |
5fb28bcc PB |
10061 | fi |
10062 | fi | |
b58b6ee1 | 10063 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
5fb28bcc | 10064 | if test -n "$CC_FOR_TARGET"; then |
efd58f08 RW |
10065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10066 | $as_echo "$CC_FOR_TARGET" >&6; } | |
5fb28bcc | 10067 | else |
efd58f08 RW |
10068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10069 | $as_echo "no" >&6; } | |
5fb28bcc PB |
10070 | fi |
10071 | ||
efd58f08 | 10072 | |
fef3f213 PB |
10073 | fi |
10074 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10075 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10076 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10078 | $as_echo_n "checking for $ac_word... " >&6; } | |
10079 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
10080 | $as_echo_n "(cached) " >&6 | |
5fb28bcc | 10081 | else |
60cfca65 PB |
10082 | if test -n "$CC_FOR_TARGET"; then |
10083 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
5fb28bcc | 10084 | else |
b58b6ee1 DJ |
10085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10086 | for as_dir in $PATH | |
10087 | do | |
10088 | IFS=$as_save_IFS | |
10089 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10090 | for ac_exec_ext in '' $ac_executable_extensions; do |
10091 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 10092 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10093 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10094 | break 2 |
10095 | fi | |
10096 | done | |
efd58f08 RW |
10097 | done |
10098 | IFS=$as_save_IFS | |
b58b6ee1 | 10099 | |
5fb28bcc PB |
10100 | fi |
10101 | fi | |
b58b6ee1 | 10102 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
60cfca65 | 10103 | if test -n "$CC_FOR_TARGET"; then |
efd58f08 RW |
10104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10105 | $as_echo "$CC_FOR_TARGET" >&6; } | |
5fb28bcc | 10106 | else |
efd58f08 RW |
10107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10108 | $as_echo "no" >&6; } | |
5fb28bcc | 10109 | fi |
b58b6ee1 | 10110 | |
efd58f08 | 10111 | |
fef3f213 PB |
10112 | fi |
10113 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10114 | done | |
10115 | fi | |
b58b6ee1 | 10116 | |
60cfca65 PB |
10117 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10118 | set dummy cc gcc | |
10119 | if test $build = $target ; then | |
10120 | CC_FOR_TARGET="$2" | |
5fb28bcc | 10121 | else |
60cfca65 | 10122 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
5fb28bcc | 10123 | fi |
d058b81b MS |
10124 | else |
10125 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
5fb28bcc PB |
10126 | fi |
10127 | ||
82026593 AO |
10128 | |
10129 | ||
10130 | if test -n "$CXX_FOR_TARGET"; then | |
10131 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10132 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10133 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10134 | fi | |
10135 | ||
10136 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10137 | for ncn_progname in c++ g++ cxx gxx; do | |
10138 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10139 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
10140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10141 | $as_echo_n "checking for $ac_word... " >&6; } | |
10142 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10143 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
10144 | else |
10145 | if test -n "$CXX_FOR_TARGET"; then | |
10146 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10147 | else | |
10148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10149 | for as_dir in $PATH | |
10150 | do | |
10151 | IFS=$as_save_IFS | |
10152 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10153 | for ac_exec_ext in '' $ac_executable_extensions; do |
10154 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 10155 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10156 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
10157 | break 2 |
10158 | fi | |
10159 | done | |
efd58f08 RW |
10160 | done |
10161 | IFS=$as_save_IFS | |
82026593 AO |
10162 | |
10163 | fi | |
10164 | fi | |
10165 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10166 | if test -n "$CXX_FOR_TARGET"; then | |
efd58f08 RW |
10167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10168 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
82026593 | 10169 | else |
efd58f08 RW |
10170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10171 | $as_echo "no" >&6; } | |
82026593 AO |
10172 | fi |
10173 | ||
efd58f08 | 10174 | |
82026593 AO |
10175 | done |
10176 | fi | |
10177 | ||
10178 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 10179 | for ncn_progname in c++ g++ cxx gxx; do |
efd58f08 RW |
10180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10181 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
10182 | if test -x $with_build_time_tools/${ncn_progname}; then |
10183 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
10184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10185 | $as_echo "yes" >&6; } | |
fef3f213 PB |
10186 | break |
10187 | else | |
efd58f08 RW |
10188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10189 | $as_echo "no" >&6; } | |
fef3f213 PB |
10190 | fi |
10191 | done | |
10192 | fi | |
10193 | ||
10194 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10195 | for ncn_progname in c++ g++ cxx gxx; do | |
10196 | if test -n "$ncn_target_tool_prefix"; then | |
10197 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10198 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10200 | $as_echo_n "checking for $ac_word... " >&6; } | |
10201 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10202 | $as_echo_n "(cached) " >&6 | |
5fb28bcc PB |
10203 | else |
10204 | if test -n "$CXX_FOR_TARGET"; then | |
10205 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10206 | else | |
b58b6ee1 DJ |
10207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10208 | for as_dir in $PATH | |
10209 | do | |
10210 | IFS=$as_save_IFS | |
10211 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10212 | for ac_exec_ext in '' $ac_executable_extensions; do |
10213 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 10214 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 10215 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10216 | break 2 |
10217 | fi | |
10218 | done | |
efd58f08 RW |
10219 | done |
10220 | IFS=$as_save_IFS | |
b58b6ee1 | 10221 | |
5fb28bcc PB |
10222 | fi |
10223 | fi | |
b58b6ee1 | 10224 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
5fb28bcc | 10225 | if test -n "$CXX_FOR_TARGET"; then |
efd58f08 RW |
10226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10227 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
5fb28bcc | 10228 | else |
efd58f08 RW |
10229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10230 | $as_echo "no" >&6; } | |
5fb28bcc PB |
10231 | fi |
10232 | ||
efd58f08 | 10233 | |
fef3f213 PB |
10234 | fi |
10235 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10236 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10237 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10239 | $as_echo_n "checking for $ac_word... " >&6; } | |
10240 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10241 | $as_echo_n "(cached) " >&6 | |
5fb28bcc | 10242 | else |
60cfca65 PB |
10243 | if test -n "$CXX_FOR_TARGET"; then |
10244 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
5fb28bcc | 10245 | else |
b58b6ee1 DJ |
10246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10247 | for as_dir in $PATH | |
10248 | do | |
10249 | IFS=$as_save_IFS | |
10250 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10251 | for ac_exec_ext in '' $ac_executable_extensions; do |
10252 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 10253 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10254 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10255 | break 2 |
10256 | fi | |
10257 | done | |
efd58f08 RW |
10258 | done |
10259 | IFS=$as_save_IFS | |
b58b6ee1 | 10260 | |
5fb28bcc PB |
10261 | fi |
10262 | fi | |
b58b6ee1 | 10263 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
60cfca65 | 10264 | if test -n "$CXX_FOR_TARGET"; then |
efd58f08 RW |
10265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10266 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
5fb28bcc | 10267 | else |
efd58f08 RW |
10268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10269 | $as_echo "no" >&6; } | |
5fb28bcc | 10270 | fi |
b58b6ee1 | 10271 | |
efd58f08 | 10272 | |
fef3f213 PB |
10273 | fi |
10274 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10275 | done | |
10276 | fi | |
b58b6ee1 | 10277 | |
60cfca65 PB |
10278 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10279 | set dummy c++ g++ cxx gxx | |
10280 | if test $build = $target ; then | |
10281 | CXX_FOR_TARGET="$2" | |
5fb28bcc | 10282 | else |
60cfca65 | 10283 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
5fb28bcc | 10284 | fi |
d058b81b MS |
10285 | else |
10286 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
a0c92996 AC |
10287 | fi |
10288 | ||
82026593 AO |
10289 | |
10290 | ||
10291 | if test -n "$GCC_FOR_TARGET"; then | |
10292 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10293 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10294 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10295 | fi | |
10296 | ||
10297 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10298 | for ncn_progname in gcc; do | |
10299 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10300 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
10301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10302 | $as_echo_n "checking for $ac_word... " >&6; } | |
10303 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10304 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
10305 | else |
10306 | if test -n "$GCC_FOR_TARGET"; then | |
10307 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10308 | else | |
10309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10310 | for as_dir in $PATH | |
10311 | do | |
10312 | IFS=$as_save_IFS | |
10313 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10314 | for ac_exec_ext in '' $ac_executable_extensions; do |
10315 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 10316 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10317 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
10318 | break 2 |
10319 | fi | |
10320 | done | |
efd58f08 RW |
10321 | done |
10322 | IFS=$as_save_IFS | |
82026593 AO |
10323 | |
10324 | fi | |
10325 | fi | |
10326 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10327 | if test -n "$GCC_FOR_TARGET"; then | |
efd58f08 RW |
10328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10329 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
82026593 | 10330 | else |
efd58f08 RW |
10331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10332 | $as_echo "no" >&6; } | |
82026593 AO |
10333 | fi |
10334 | ||
efd58f08 | 10335 | |
82026593 AO |
10336 | done |
10337 | fi | |
10338 | ||
10339 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 10340 | for ncn_progname in gcc; do |
efd58f08 RW |
10341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10342 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
10343 | if test -x $with_build_time_tools/${ncn_progname}; then |
10344 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
10345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10346 | $as_echo "yes" >&6; } | |
fef3f213 PB |
10347 | break |
10348 | else | |
efd58f08 RW |
10349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10350 | $as_echo "no" >&6; } | |
fef3f213 PB |
10351 | fi |
10352 | done | |
10353 | fi | |
10354 | ||
10355 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10356 | for ncn_progname in gcc; do | |
10357 | if test -n "$ncn_target_tool_prefix"; then | |
10358 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10359 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10361 | $as_echo_n "checking for $ac_word... " >&6; } | |
10362 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10363 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 10364 | else |
fef3f213 PB |
10365 | if test -n "$GCC_FOR_TARGET"; then |
10366 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
5fb28bcc | 10367 | else |
b58b6ee1 DJ |
10368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10369 | for as_dir in $PATH | |
10370 | do | |
10371 | IFS=$as_save_IFS | |
10372 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10373 | for ac_exec_ext in '' $ac_executable_extensions; do |
10374 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 10375 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 10376 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10377 | break 2 |
10378 | fi | |
10379 | done | |
efd58f08 RW |
10380 | done |
10381 | IFS=$as_save_IFS | |
b58b6ee1 | 10382 | |
5fb28bcc PB |
10383 | fi |
10384 | fi | |
b58b6ee1 | 10385 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
5fb28bcc | 10386 | if test -n "$GCC_FOR_TARGET"; then |
efd58f08 RW |
10387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10388 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
5fb28bcc | 10389 | else |
efd58f08 RW |
10390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10391 | $as_echo "no" >&6; } | |
5fb28bcc PB |
10392 | fi |
10393 | ||
efd58f08 | 10394 | |
fef3f213 PB |
10395 | fi |
10396 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10397 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10398 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10400 | $as_echo_n "checking for $ac_word... " >&6; } | |
10401 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10402 | $as_echo_n "(cached) " >&6 | |
5fb28bcc | 10403 | else |
60cfca65 PB |
10404 | if test -n "$GCC_FOR_TARGET"; then |
10405 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
5fb28bcc | 10406 | else |
b58b6ee1 DJ |
10407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10408 | for as_dir in $PATH | |
10409 | do | |
10410 | IFS=$as_save_IFS | |
10411 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10412 | for ac_exec_ext in '' $ac_executable_extensions; do |
10413 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 10414 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10415 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10416 | break 2 |
10417 | fi | |
10418 | done | |
efd58f08 RW |
10419 | done |
10420 | IFS=$as_save_IFS | |
b58b6ee1 | 10421 | |
5fb28bcc PB |
10422 | fi |
10423 | fi | |
b58b6ee1 | 10424 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
60cfca65 | 10425 | if test -n "$GCC_FOR_TARGET"; then |
efd58f08 RW |
10426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10427 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
5fb28bcc | 10428 | else |
efd58f08 RW |
10429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10430 | $as_echo "no" >&6; } | |
5fb28bcc | 10431 | fi |
b58b6ee1 | 10432 | |
efd58f08 | 10433 | |
fef3f213 PB |
10434 | fi |
10435 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10436 | done | |
10437 | fi | |
b58b6ee1 | 10438 | |
60cfca65 PB |
10439 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10440 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d058b81b MS |
10441 | else |
10442 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
5fb28bcc PB |
10443 | fi |
10444 | ||
82026593 AO |
10445 | |
10446 | ||
10447 | if test -n "$GCJ_FOR_TARGET"; then | |
10448 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10449 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10450 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10451 | fi | |
10452 | ||
10453 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10454 | for ncn_progname in gcj; do | |
10455 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10456 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
10457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10458 | $as_echo_n "checking for $ac_word... " >&6; } | |
10459 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10460 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
10461 | else |
10462 | if test -n "$GCJ_FOR_TARGET"; then | |
10463 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10464 | else | |
10465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10466 | for as_dir in $PATH | |
10467 | do | |
10468 | IFS=$as_save_IFS | |
10469 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10470 | for ac_exec_ext in '' $ac_executable_extensions; do |
10471 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 10472 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10473 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
10474 | break 2 |
10475 | fi | |
10476 | done | |
efd58f08 RW |
10477 | done |
10478 | IFS=$as_save_IFS | |
82026593 AO |
10479 | |
10480 | fi | |
10481 | fi | |
10482 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10483 | if test -n "$GCJ_FOR_TARGET"; then | |
efd58f08 RW |
10484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10485 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
82026593 | 10486 | else |
efd58f08 RW |
10487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10488 | $as_echo "no" >&6; } | |
82026593 AO |
10489 | fi |
10490 | ||
efd58f08 | 10491 | |
82026593 AO |
10492 | done |
10493 | fi | |
10494 | ||
10495 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 10496 | for ncn_progname in gcj; do |
efd58f08 RW |
10497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10498 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
10499 | if test -x $with_build_time_tools/${ncn_progname}; then |
10500 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
10501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10502 | $as_echo "yes" >&6; } | |
fef3f213 PB |
10503 | break |
10504 | else | |
efd58f08 RW |
10505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10506 | $as_echo "no" >&6; } | |
fef3f213 PB |
10507 | fi |
10508 | done | |
10509 | fi | |
10510 | ||
10511 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10512 | for ncn_progname in gcj; do | |
10513 | if test -n "$ncn_target_tool_prefix"; then | |
10514 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10515 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10517 | $as_echo_n "checking for $ac_word... " >&6; } | |
10518 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10519 | $as_echo_n "(cached) " >&6 | |
5fb28bcc PB |
10520 | else |
10521 | if test -n "$GCJ_FOR_TARGET"; then | |
10522 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10523 | else | |
b58b6ee1 DJ |
10524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10525 | for as_dir in $PATH | |
10526 | do | |
10527 | IFS=$as_save_IFS | |
10528 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10529 | for ac_exec_ext in '' $ac_executable_extensions; do |
10530 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 10531 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 10532 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10533 | break 2 |
10534 | fi | |
10535 | done | |
efd58f08 RW |
10536 | done |
10537 | IFS=$as_save_IFS | |
b58b6ee1 | 10538 | |
5fb28bcc PB |
10539 | fi |
10540 | fi | |
82026593 AO |
10541 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10542 | if test -n "$GCJ_FOR_TARGET"; then | |
efd58f08 RW |
10543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10544 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
82026593 | 10545 | else |
efd58f08 RW |
10546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10547 | $as_echo "no" >&6; } | |
82026593 AO |
10548 | fi |
10549 | ||
efd58f08 | 10550 | |
82026593 AO |
10551 | fi |
10552 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10553 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10554 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
10555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10556 | $as_echo_n "checking for $ac_word... " >&6; } | |
10557 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10558 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
10559 | else |
10560 | if test -n "$GCJ_FOR_TARGET"; then | |
10561 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10562 | else | |
10563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10564 | for as_dir in $PATH | |
10565 | do | |
10566 | IFS=$as_save_IFS | |
10567 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10568 | for ac_exec_ext in '' $ac_executable_extensions; do |
10569 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 10570 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10571 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
10572 | break 2 |
10573 | fi | |
10574 | done | |
efd58f08 RW |
10575 | done |
10576 | IFS=$as_save_IFS | |
82026593 AO |
10577 | |
10578 | fi | |
10579 | fi | |
10580 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10581 | if test -n "$GCJ_FOR_TARGET"; then | |
efd58f08 RW |
10582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10583 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
82026593 | 10584 | else |
efd58f08 RW |
10585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10586 | $as_echo "no" >&6; } | |
82026593 AO |
10587 | fi |
10588 | ||
efd58f08 | 10589 | |
82026593 AO |
10590 | fi |
10591 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10592 | done | |
10593 | fi | |
10594 | ||
10595 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10596 | set dummy gcj | |
10597 | if test $build = $target ; then | |
10598 | GCJ_FOR_TARGET="$2" | |
10599 | else | |
10600 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10601 | fi | |
d058b81b MS |
10602 | else |
10603 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
82026593 AO |
10604 | fi |
10605 | ||
10606 | ||
10607 | ||
10608 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10609 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10610 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10611 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
5fb28bcc PB |
10612 | fi |
10613 | ||
82026593 AO |
10614 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10615 | for ncn_progname in gfortran; do | |
10616 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10617 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10619 | $as_echo_n "checking for $ac_word... " >&6; } | |
10620 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10621 | $as_echo_n "(cached) " >&6 | |
5fb28bcc | 10622 | else |
82026593 AO |
10623 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10624 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
5fb28bcc | 10625 | else |
b58b6ee1 DJ |
10626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10627 | for as_dir in $PATH | |
10628 | do | |
10629 | IFS=$as_save_IFS | |
10630 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10631 | for ac_exec_ext in '' $ac_executable_extensions; do |
10632 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 10633 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10634 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10635 | break 2 |
10636 | fi | |
10637 | done | |
efd58f08 RW |
10638 | done |
10639 | IFS=$as_save_IFS | |
b58b6ee1 | 10640 | |
5fb28bcc PB |
10641 | fi |
10642 | fi | |
82026593 AO |
10643 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10644 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
efd58f08 RW |
10645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10646 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
5fb28bcc | 10647 | else |
efd58f08 RW |
10648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10649 | $as_echo "no" >&6; } | |
5fb28bcc | 10650 | fi |
b58b6ee1 | 10651 | |
efd58f08 | 10652 | |
fef3f213 PB |
10653 | done |
10654 | fi | |
b58b6ee1 | 10655 | |
82026593 | 10656 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
fef3f213 | 10657 | for ncn_progname in gfortran; do |
efd58f08 RW |
10658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10659 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
10660 | if test -x $with_build_time_tools/${ncn_progname}; then |
10661 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
10662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10663 | $as_echo "yes" >&6; } | |
fef3f213 PB |
10664 | break |
10665 | else | |
efd58f08 RW |
10666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10667 | $as_echo "no" >&6; } | |
fef3f213 PB |
10668 | fi |
10669 | done | |
10670 | fi | |
10671 | ||
10672 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10673 | for ncn_progname in gfortran; do | |
10674 | if test -n "$ncn_target_tool_prefix"; then | |
10675 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10676 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10678 | $as_echo_n "checking for $ac_word... " >&6; } | |
10679 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10680 | $as_echo_n "(cached) " >&6 | |
5fb28bcc PB |
10681 | else |
10682 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10683 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10684 | else | |
b58b6ee1 DJ |
10685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10686 | for as_dir in $PATH | |
10687 | do | |
10688 | IFS=$as_save_IFS | |
10689 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10690 | for ac_exec_ext in '' $ac_executable_extensions; do |
10691 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 10692 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 10693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10694 | break 2 |
10695 | fi | |
10696 | done | |
efd58f08 RW |
10697 | done |
10698 | IFS=$as_save_IFS | |
b58b6ee1 | 10699 | |
5fb28bcc PB |
10700 | fi |
10701 | fi | |
b58b6ee1 | 10702 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
5fb28bcc | 10703 | if test -n "$GFORTRAN_FOR_TARGET"; then |
efd58f08 RW |
10704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10705 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
5fb28bcc | 10706 | else |
efd58f08 RW |
10707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10708 | $as_echo "no" >&6; } | |
5fb28bcc PB |
10709 | fi |
10710 | ||
efd58f08 | 10711 | |
fef3f213 PB |
10712 | fi |
10713 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10714 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10715 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10717 | $as_echo_n "checking for $ac_word... " >&6; } | |
10718 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10719 | $as_echo_n "(cached) " >&6 | |
5fb28bcc | 10720 | else |
60cfca65 | 10721 | if test -n "$GFORTRAN_FOR_TARGET"; then |
b58b6ee1 DJ |
10722 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10723 | else | |
10724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10725 | for as_dir in $PATH | |
10726 | do | |
10727 | IFS=$as_save_IFS | |
10728 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10729 | for ac_exec_ext in '' $ac_executable_extensions; do |
10730 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 10731 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10733 | break 2 |
10734 | fi | |
10735 | done | |
efd58f08 RW |
10736 | done |
10737 | IFS=$as_save_IFS | |
b58b6ee1 | 10738 | |
5fb28bcc PB |
10739 | fi |
10740 | fi | |
b58b6ee1 | 10741 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
60cfca65 | 10742 | if test -n "$GFORTRAN_FOR_TARGET"; then |
efd58f08 RW |
10743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10744 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
5fb28bcc | 10745 | else |
efd58f08 RW |
10746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10747 | $as_echo "no" >&6; } | |
5fb28bcc | 10748 | fi |
b58b6ee1 | 10749 | |
efd58f08 | 10750 | |
fef3f213 PB |
10751 | fi |
10752 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10753 | done | |
10754 | fi | |
b58b6ee1 | 10755 | |
60cfca65 PB |
10756 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10757 | set dummy gfortran | |
10758 | if test $build = $target ; then | |
10759 | GFORTRAN_FOR_TARGET="$2" | |
5fb28bcc | 10760 | else |
60cfca65 | 10761 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
5fb28bcc | 10762 | fi |
d058b81b MS |
10763 | else |
10764 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
a0c92996 AC |
10765 | fi |
10766 | ||
fef3f213 PB |
10767 | |
10768 | ||
d5b7129a ILT |
10769 | if test -n "$GOC_FOR_TARGET"; then |
10770 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10771 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10772 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10773 | fi | |
10774 | ||
10775 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10776 | for ncn_progname in gccgo; do | |
10777 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10778 | set dummy ${ncn_progname}; ac_word=$2 | |
10779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10780 | $as_echo_n "checking for $ac_word... " >&6; } | |
10781 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10782 | $as_echo_n "(cached) " >&6 | |
10783 | else | |
10784 | if test -n "$GOC_FOR_TARGET"; then | |
10785 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10786 | else | |
10787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10788 | for as_dir in $PATH | |
10789 | do | |
10790 | IFS=$as_save_IFS | |
10791 | test -z "$as_dir" && as_dir=. | |
10792 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10793 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10794 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10796 | break 2 | |
10797 | fi | |
10798 | done | |
10799 | done | |
10800 | IFS=$as_save_IFS | |
10801 | ||
10802 | fi | |
10803 | fi | |
10804 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10805 | if test -n "$GOC_FOR_TARGET"; then | |
10806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10807 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10808 | else | |
10809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10810 | $as_echo "no" >&6; } | |
10811 | fi | |
10812 | ||
10813 | ||
10814 | done | |
10815 | fi | |
10816 | ||
10817 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10818 | for ncn_progname in gccgo; do | |
10819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10820 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10821 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10822 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10824 | $as_echo "yes" >&6; } | |
10825 | break | |
10826 | else | |
10827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10828 | $as_echo "no" >&6; } | |
10829 | fi | |
10830 | done | |
10831 | fi | |
10832 | ||
10833 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10834 | for ncn_progname in gccgo; do | |
10835 | if test -n "$ncn_target_tool_prefix"; then | |
10836 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10837 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10839 | $as_echo_n "checking for $ac_word... " >&6; } | |
10840 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10841 | $as_echo_n "(cached) " >&6 | |
10842 | else | |
10843 | if test -n "$GOC_FOR_TARGET"; then | |
10844 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10845 | else | |
10846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10847 | for as_dir in $PATH | |
10848 | do | |
10849 | IFS=$as_save_IFS | |
10850 | test -z "$as_dir" && as_dir=. | |
10851 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10852 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10853 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10854 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10855 | break 2 | |
10856 | fi | |
10857 | done | |
10858 | done | |
10859 | IFS=$as_save_IFS | |
10860 | ||
10861 | fi | |
10862 | fi | |
10863 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10864 | if test -n "$GOC_FOR_TARGET"; then | |
10865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10866 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10867 | else | |
10868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10869 | $as_echo "no" >&6; } | |
10870 | fi | |
10871 | ||
10872 | ||
10873 | fi | |
10874 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10875 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10876 | set dummy ${ncn_progname}; ac_word=$2 | |
10877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10878 | $as_echo_n "checking for $ac_word... " >&6; } | |
10879 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10880 | $as_echo_n "(cached) " >&6 | |
10881 | else | |
10882 | if test -n "$GOC_FOR_TARGET"; then | |
10883 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10884 | else | |
10885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10886 | for as_dir in $PATH | |
10887 | do | |
10888 | IFS=$as_save_IFS | |
10889 | test -z "$as_dir" && as_dir=. | |
10890 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10891 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10892 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10894 | break 2 | |
10895 | fi | |
10896 | done | |
10897 | done | |
10898 | IFS=$as_save_IFS | |
10899 | ||
10900 | fi | |
10901 | fi | |
10902 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10903 | if test -n "$GOC_FOR_TARGET"; then | |
10904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10905 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10906 | else | |
10907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10908 | $as_echo "no" >&6; } | |
10909 | fi | |
10910 | ||
10911 | ||
10912 | fi | |
10913 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10914 | done | |
10915 | fi | |
10916 | ||
10917 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10918 | set dummy gccgo | |
10919 | if test $build = $target ; then | |
10920 | GOC_FOR_TARGET="$2" | |
10921 | else | |
10922 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10923 | fi | |
10924 | else | |
10925 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10926 | fi | |
10927 | ||
10928 | ||
10929 | ||
fef3f213 PB |
10930 | cat > conftest.c << \EOF |
10931 | #ifdef __GNUC__ | |
10932 | gcc_yay; | |
10933 | #endif | |
10934 | EOF | |
10935 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10936 | have_gcc_for_target=yes | |
a0c92996 | 10937 | else |
fef3f213 PB |
10938 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
10939 | have_gcc_for_target=no | |
a0c92996 | 10940 | fi |
fef3f213 PB |
10941 | rm conftest.c |
10942 | ||
10943 | ||
10944 | ||
a0c92996 | 10945 | |
fef3f213 PB |
10946 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
10947 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
10948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10949 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
207258c8 PB |
10950 | if test -x $with_build_time_tools/ar; then |
10951 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10952 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
efd58f08 RW |
10953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10954 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
207258c8 | 10955 | else |
efd58f08 RW |
10956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10957 | $as_echo "no" >&6; } | |
207258c8 | 10958 | fi |
fef3f213 PB |
10959 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10960 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d058b81b MS |
10961 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10962 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
60cfca65 | 10963 | fi |
fef3f213 | 10964 | fi |
b58b6ee1 | 10965 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
10966 | # Extract the first word of "ar", so it can be a program name with args. |
10967 | set dummy ar; ac_word=$2 | |
efd58f08 RW |
10968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10969 | $as_echo_n "checking for $ac_word... " >&6; } | |
10970 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10971 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 10972 | else |
b58b6ee1 DJ |
10973 | case $AR_FOR_TARGET in |
10974 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
10975 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10976 | ;; | |
fef3f213 | 10977 | *) |
b58b6ee1 DJ |
10978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10979 | for as_dir in $gcc_cv_tool_dirs | |
10980 | do | |
10981 | IFS=$as_save_IFS | |
10982 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
10983 | for ac_exec_ext in '' $ac_executable_extensions; do |
10984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 10985 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 10986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10987 | break 2 |
10988 | fi | |
10989 | done | |
efd58f08 RW |
10990 | done |
10991 | IFS=$as_save_IFS | |
b58b6ee1 | 10992 | |
fef3f213 PB |
10993 | ;; |
10994 | esac | |
a0c92996 | 10995 | fi |
b58b6ee1 | 10996 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
fef3f213 | 10997 | if test -n "$AR_FOR_TARGET"; then |
efd58f08 RW |
10998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10999 | $as_echo "$AR_FOR_TARGET" >&6; } | |
a0c92996 | 11000 | else |
efd58f08 RW |
11001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11002 | $as_echo "no" >&6; } | |
a0c92996 | 11003 | fi |
60cfca65 | 11004 | |
efd58f08 | 11005 | |
fef3f213 PB |
11006 | fi |
11007 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
82026593 AO |
11008 | |
11009 | ||
11010 | if test -n "$AR_FOR_TARGET"; then | |
11011 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
11012 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11013 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11014 | fi | |
11015 | ||
11016 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11017 | for ncn_progname in ar; do | |
11018 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11019 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11021 | $as_echo_n "checking for $ac_word... " >&6; } | |
11022 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11023 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
11024 | else |
11025 | if test -n "$AR_FOR_TARGET"; then | |
11026 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11027 | else | |
11028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11029 | for as_dir in $PATH | |
11030 | do | |
11031 | IFS=$as_save_IFS | |
11032 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11033 | for ac_exec_ext in '' $ac_executable_extensions; do |
11034 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 11035 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11036 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
11037 | break 2 |
11038 | fi | |
11039 | done | |
efd58f08 RW |
11040 | done |
11041 | IFS=$as_save_IFS | |
82026593 AO |
11042 | |
11043 | fi | |
11044 | fi | |
11045 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11046 | if test -n "$AR_FOR_TARGET"; then | |
efd58f08 RW |
11047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11048 | $as_echo "$AR_FOR_TARGET" >&6; } | |
82026593 | 11049 | else |
efd58f08 RW |
11050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11051 | $as_echo "no" >&6; } | |
82026593 AO |
11052 | fi |
11053 | ||
efd58f08 | 11054 | |
82026593 AO |
11055 | done |
11056 | fi | |
11057 | ||
11058 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 11059 | for ncn_progname in ar; do |
efd58f08 RW |
11060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11061 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11062 | if test -x $with_build_time_tools/${ncn_progname}; then |
11063 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
11064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11065 | $as_echo "yes" >&6; } | |
fef3f213 PB |
11066 | break |
11067 | else | |
efd58f08 RW |
11068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11069 | $as_echo "no" >&6; } | |
fef3f213 PB |
11070 | fi |
11071 | done | |
a0c92996 AC |
11072 | fi |
11073 | ||
fef3f213 PB |
11074 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
11075 | for ncn_progname in ar; do | |
11076 | if test -n "$ncn_target_tool_prefix"; then | |
11077 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 11078 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
11079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11080 | $as_echo_n "checking for $ac_word... " >&6; } | |
11081 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11082 | $as_echo_n "(cached) " >&6 | |
6a33f745 | 11083 | else |
fef3f213 PB |
11084 | if test -n "$AR_FOR_TARGET"; then |
11085 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
6a33f745 | 11086 | else |
b58b6ee1 DJ |
11087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11088 | for as_dir in $PATH | |
11089 | do | |
11090 | IFS=$as_save_IFS | |
11091 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11092 | for ac_exec_ext in '' $ac_executable_extensions; do |
11093 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11094 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 11095 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11096 | break 2 |
11097 | fi | |
11098 | done | |
efd58f08 RW |
11099 | done |
11100 | IFS=$as_save_IFS | |
b58b6ee1 | 11101 | |
6a33f745 GK |
11102 | fi |
11103 | fi | |
b58b6ee1 | 11104 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
fef3f213 | 11105 | if test -n "$AR_FOR_TARGET"; then |
efd58f08 RW |
11106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11107 | $as_echo "$AR_FOR_TARGET" >&6; } | |
6a33f745 | 11108 | else |
efd58f08 RW |
11109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11110 | $as_echo "no" >&6; } | |
6a33f745 GK |
11111 | fi |
11112 | ||
efd58f08 | 11113 | |
fef3f213 PB |
11114 | fi |
11115 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
11116 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6a33f745 | 11117 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
11118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11119 | $as_echo_n "checking for $ac_word... " >&6; } | |
11120 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11121 | $as_echo_n "(cached) " >&6 | |
6a33f745 | 11122 | else |
fef3f213 PB |
11123 | if test -n "$AR_FOR_TARGET"; then |
11124 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
f69e2532 | 11125 | else |
b58b6ee1 DJ |
11126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11127 | for as_dir in $PATH | |
11128 | do | |
11129 | IFS=$as_save_IFS | |
11130 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11131 | for ac_exec_ext in '' $ac_executable_extensions; do |
11132 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11133 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11134 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11135 | break 2 |
11136 | fi | |
11137 | done | |
efd58f08 RW |
11138 | done |
11139 | IFS=$as_save_IFS | |
b58b6ee1 | 11140 | |
6a33f745 GK |
11141 | fi |
11142 | fi | |
b58b6ee1 | 11143 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
fef3f213 | 11144 | if test -n "$AR_FOR_TARGET"; then |
efd58f08 RW |
11145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11146 | $as_echo "$AR_FOR_TARGET" >&6; } | |
6a33f745 | 11147 | else |
efd58f08 RW |
11148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11149 | $as_echo "no" >&6; } | |
6a33f745 | 11150 | fi |
b58b6ee1 | 11151 | |
efd58f08 | 11152 | |
fef3f213 PB |
11153 | fi |
11154 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11155 | done | |
11156 | fi | |
b58b6ee1 | 11157 | |
fef3f213 PB |
11158 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11159 | set dummy ar | |
6a33f745 | 11160 | if test $build = $target ; then |
fef3f213 | 11161 | AR_FOR_TARGET="$2" |
6a33f745 | 11162 | else |
fef3f213 | 11163 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
6a33f745 | 11164 | fi |
d058b81b MS |
11165 | else |
11166 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
6a33f745 GK |
11167 | fi |
11168 | ||
207258c8 PB |
11169 | else |
11170 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
fef3f213 PB |
11171 | fi |
11172 | ||
11173 | ||
11174 | ||
11175 | ||
11176 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11177 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
11178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11179 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11180 | if test -x $with_build_time_tools/as; then |
11181 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11182 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
efd58f08 RW |
11183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11184 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
207258c8 | 11185 | else |
efd58f08 RW |
11186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11187 | $as_echo "no" >&6; } | |
207258c8 | 11188 | fi |
fef3f213 PB |
11189 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11190 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d058b81b MS |
11191 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11192 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
fef3f213 PB |
11193 | fi |
11194 | fi | |
b58b6ee1 | 11195 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
11196 | # Extract the first word of "as", so it can be a program name with args. |
11197 | set dummy as; ac_word=$2 | |
efd58f08 RW |
11198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11199 | $as_echo_n "checking for $ac_word... " >&6; } | |
11200 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
11201 | $as_echo_n "(cached) " >&6 | |
fef3f213 | 11202 | else |
b58b6ee1 DJ |
11203 | case $AS_FOR_TARGET in |
11204 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
11205 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11206 | ;; | |
fef3f213 | 11207 | *) |
b58b6ee1 DJ |
11208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11209 | for as_dir in $gcc_cv_tool_dirs | |
11210 | do | |
11211 | IFS=$as_save_IFS | |
11212 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11213 | for ac_exec_ext in '' $ac_executable_extensions; do |
11214 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11215 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 11216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11217 | break 2 |
11218 | fi | |
11219 | done | |
efd58f08 RW |
11220 | done |
11221 | IFS=$as_save_IFS | |
b58b6ee1 | 11222 | |
fef3f213 PB |
11223 | ;; |
11224 | esac | |
11225 | fi | |
b58b6ee1 | 11226 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
fef3f213 | 11227 | if test -n "$AS_FOR_TARGET"; then |
efd58f08 RW |
11228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11229 | $as_echo "$AS_FOR_TARGET" >&6; } | |
fef3f213 | 11230 | else |
efd58f08 RW |
11231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11232 | $as_echo "no" >&6; } | |
fef3f213 PB |
11233 | fi |
11234 | ||
efd58f08 | 11235 | |
fef3f213 PB |
11236 | fi |
11237 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
82026593 AO |
11238 | |
11239 | ||
11240 | if test -n "$AS_FOR_TARGET"; then | |
11241 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11242 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11243 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11244 | fi | |
11245 | ||
11246 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11247 | for ncn_progname in as; do | |
11248 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11249 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11251 | $as_echo_n "checking for $ac_word... " >&6; } | |
11252 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11253 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
11254 | else |
11255 | if test -n "$AS_FOR_TARGET"; then | |
11256 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11257 | else | |
11258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11259 | for as_dir in $PATH | |
11260 | do | |
11261 | IFS=$as_save_IFS | |
11262 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11263 | for ac_exec_ext in '' $ac_executable_extensions; do |
11264 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 11265 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11266 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
11267 | break 2 |
11268 | fi | |
11269 | done | |
efd58f08 RW |
11270 | done |
11271 | IFS=$as_save_IFS | |
82026593 AO |
11272 | |
11273 | fi | |
11274 | fi | |
11275 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11276 | if test -n "$AS_FOR_TARGET"; then | |
efd58f08 RW |
11277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11278 | $as_echo "$AS_FOR_TARGET" >&6; } | |
82026593 | 11279 | else |
efd58f08 RW |
11280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11281 | $as_echo "no" >&6; } | |
82026593 AO |
11282 | fi |
11283 | ||
efd58f08 | 11284 | |
82026593 AO |
11285 | done |
11286 | fi | |
11287 | ||
11288 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 11289 | for ncn_progname in as; do |
efd58f08 RW |
11290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11291 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11292 | if test -x $with_build_time_tools/${ncn_progname}; then |
11293 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
11294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11295 | $as_echo "yes" >&6; } | |
fef3f213 PB |
11296 | break |
11297 | else | |
efd58f08 RW |
11298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11299 | $as_echo "no" >&6; } | |
fef3f213 PB |
11300 | fi |
11301 | done | |
11302 | fi | |
11303 | ||
11304 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11305 | for ncn_progname in as; do | |
11306 | if test -n "$ncn_target_tool_prefix"; then | |
11307 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11308 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11310 | $as_echo_n "checking for $ac_word... " >&6; } | |
11311 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11312 | $as_echo_n "(cached) " >&6 | |
fef3f213 PB |
11313 | else |
11314 | if test -n "$AS_FOR_TARGET"; then | |
11315 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11316 | else | |
b58b6ee1 DJ |
11317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11318 | for as_dir in $PATH | |
11319 | do | |
11320 | IFS=$as_save_IFS | |
11321 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11322 | for ac_exec_ext in '' $ac_executable_extensions; do |
11323 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11324 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 11325 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11326 | break 2 |
11327 | fi | |
11328 | done | |
efd58f08 RW |
11329 | done |
11330 | IFS=$as_save_IFS | |
b58b6ee1 | 11331 | |
fef3f213 PB |
11332 | fi |
11333 | fi | |
b58b6ee1 | 11334 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
fef3f213 | 11335 | if test -n "$AS_FOR_TARGET"; then |
efd58f08 RW |
11336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11337 | $as_echo "$AS_FOR_TARGET" >&6; } | |
fef3f213 | 11338 | else |
efd58f08 RW |
11339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11340 | $as_echo "no" >&6; } | |
fef3f213 PB |
11341 | fi |
11342 | ||
efd58f08 | 11343 | |
fef3f213 PB |
11344 | fi |
11345 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11346 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11347 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11349 | $as_echo_n "checking for $ac_word... " >&6; } | |
11350 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11351 | $as_echo_n "(cached) " >&6 | |
fef3f213 PB |
11352 | else |
11353 | if test -n "$AS_FOR_TARGET"; then | |
11354 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11355 | else | |
b58b6ee1 DJ |
11356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11357 | for as_dir in $PATH | |
11358 | do | |
11359 | IFS=$as_save_IFS | |
11360 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11361 | for ac_exec_ext in '' $ac_executable_extensions; do |
11362 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11363 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11364 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11365 | break 2 |
11366 | fi | |
11367 | done | |
efd58f08 RW |
11368 | done |
11369 | IFS=$as_save_IFS | |
b58b6ee1 | 11370 | |
fef3f213 PB |
11371 | fi |
11372 | fi | |
b58b6ee1 | 11373 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
fef3f213 | 11374 | if test -n "$AS_FOR_TARGET"; then |
efd58f08 RW |
11375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11376 | $as_echo "$AS_FOR_TARGET" >&6; } | |
fef3f213 | 11377 | else |
efd58f08 RW |
11378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11379 | $as_echo "no" >&6; } | |
fef3f213 | 11380 | fi |
b58b6ee1 | 11381 | |
efd58f08 | 11382 | |
fef3f213 PB |
11383 | fi |
11384 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11385 | done | |
11386 | fi | |
b58b6ee1 | 11387 | |
fef3f213 PB |
11388 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11389 | set dummy as | |
11390 | if test $build = $target ; then | |
11391 | AS_FOR_TARGET="$2" | |
11392 | else | |
11393 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11394 | fi | |
d058b81b MS |
11395 | else |
11396 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
fef3f213 PB |
11397 | fi |
11398 | ||
207258c8 PB |
11399 | else |
11400 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
fef3f213 PB |
11401 | fi |
11402 | ||
11403 | ||
11404 | ||
11405 | ||
11406 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11407 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
11408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11409 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11410 | if test -x $with_build_time_tools/dlltool; then |
11411 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11412 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
efd58f08 RW |
11413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11414 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
207258c8 | 11415 | else |
efd58f08 RW |
11416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11417 | $as_echo "no" >&6; } | |
207258c8 | 11418 | fi |
fef3f213 PB |
11419 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11420 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d058b81b MS |
11421 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11422 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
fef3f213 PB |
11423 | fi |
11424 | fi | |
b58b6ee1 | 11425 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
11426 | # Extract the first word of "dlltool", so it can be a program name with args. |
11427 | set dummy dlltool; ac_word=$2 | |
efd58f08 RW |
11428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11429 | $as_echo_n "checking for $ac_word... " >&6; } | |
11430 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11431 | $as_echo_n "(cached) " >&6 | |
fef3f213 | 11432 | else |
b58b6ee1 DJ |
11433 | case $DLLTOOL_FOR_TARGET in |
11434 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
11435 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11436 | ;; | |
fef3f213 | 11437 | *) |
b58b6ee1 DJ |
11438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11439 | for as_dir in $gcc_cv_tool_dirs | |
11440 | do | |
11441 | IFS=$as_save_IFS | |
11442 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11443 | for ac_exec_ext in '' $ac_executable_extensions; do |
11444 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11445 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 11446 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11447 | break 2 |
11448 | fi | |
11449 | done | |
efd58f08 RW |
11450 | done |
11451 | IFS=$as_save_IFS | |
b58b6ee1 | 11452 | |
fef3f213 PB |
11453 | ;; |
11454 | esac | |
11455 | fi | |
b58b6ee1 | 11456 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
fef3f213 | 11457 | if test -n "$DLLTOOL_FOR_TARGET"; then |
efd58f08 RW |
11458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11459 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
fef3f213 | 11460 | else |
efd58f08 RW |
11461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11462 | $as_echo "no" >&6; } | |
fef3f213 PB |
11463 | fi |
11464 | ||
efd58f08 | 11465 | |
fef3f213 PB |
11466 | fi |
11467 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
82026593 AO |
11468 | |
11469 | ||
11470 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11471 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11472 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11473 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11474 | fi | |
11475 | ||
11476 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11477 | for ncn_progname in dlltool; do | |
11478 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11479 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11481 | $as_echo_n "checking for $ac_word... " >&6; } | |
11482 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11483 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
11484 | else |
11485 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11486 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11487 | else | |
11488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11489 | for as_dir in $PATH | |
11490 | do | |
11491 | IFS=$as_save_IFS | |
11492 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11493 | for ac_exec_ext in '' $ac_executable_extensions; do |
11494 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 11495 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11496 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
11497 | break 2 |
11498 | fi | |
11499 | done | |
efd58f08 RW |
11500 | done |
11501 | IFS=$as_save_IFS | |
82026593 AO |
11502 | |
11503 | fi | |
11504 | fi | |
11505 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11506 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
efd58f08 RW |
11507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11508 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
82026593 | 11509 | else |
efd58f08 RW |
11510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11511 | $as_echo "no" >&6; } | |
82026593 AO |
11512 | fi |
11513 | ||
efd58f08 | 11514 | |
82026593 AO |
11515 | done |
11516 | fi | |
11517 | ||
11518 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 11519 | for ncn_progname in dlltool; do |
efd58f08 RW |
11520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11521 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11522 | if test -x $with_build_time_tools/${ncn_progname}; then |
11523 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
11524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11525 | $as_echo "yes" >&6; } | |
fef3f213 PB |
11526 | break |
11527 | else | |
efd58f08 RW |
11528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11529 | $as_echo "no" >&6; } | |
fef3f213 PB |
11530 | fi |
11531 | done | |
11532 | fi | |
11533 | ||
11534 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11535 | for ncn_progname in dlltool; do | |
11536 | if test -n "$ncn_target_tool_prefix"; then | |
11537 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11538 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11540 | $as_echo_n "checking for $ac_word... " >&6; } | |
11541 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11542 | $as_echo_n "(cached) " >&6 | |
fef3f213 PB |
11543 | else |
11544 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11545 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11546 | else | |
b58b6ee1 DJ |
11547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11548 | for as_dir in $PATH | |
11549 | do | |
11550 | IFS=$as_save_IFS | |
11551 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11552 | for ac_exec_ext in '' $ac_executable_extensions; do |
11553 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11554 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 11555 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11556 | break 2 |
11557 | fi | |
11558 | done | |
efd58f08 RW |
11559 | done |
11560 | IFS=$as_save_IFS | |
b58b6ee1 | 11561 | |
fef3f213 PB |
11562 | fi |
11563 | fi | |
b58b6ee1 | 11564 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
fef3f213 | 11565 | if test -n "$DLLTOOL_FOR_TARGET"; then |
efd58f08 RW |
11566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11567 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
fef3f213 | 11568 | else |
efd58f08 RW |
11569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11570 | $as_echo "no" >&6; } | |
fef3f213 PB |
11571 | fi |
11572 | ||
efd58f08 | 11573 | |
fef3f213 PB |
11574 | fi |
11575 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11576 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11577 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11579 | $as_echo_n "checking for $ac_word... " >&6; } | |
11580 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11581 | $as_echo_n "(cached) " >&6 | |
fef3f213 PB |
11582 | else |
11583 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11584 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11585 | else | |
b58b6ee1 DJ |
11586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11587 | for as_dir in $PATH | |
11588 | do | |
11589 | IFS=$as_save_IFS | |
11590 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11591 | for ac_exec_ext in '' $ac_executable_extensions; do |
11592 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11593 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11594 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11595 | break 2 |
11596 | fi | |
11597 | done | |
efd58f08 RW |
11598 | done |
11599 | IFS=$as_save_IFS | |
b58b6ee1 | 11600 | |
fef3f213 PB |
11601 | fi |
11602 | fi | |
b58b6ee1 | 11603 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
fef3f213 | 11604 | if test -n "$DLLTOOL_FOR_TARGET"; then |
efd58f08 RW |
11605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11606 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
fef3f213 | 11607 | else |
efd58f08 RW |
11608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11609 | $as_echo "no" >&6; } | |
fef3f213 | 11610 | fi |
b58b6ee1 | 11611 | |
efd58f08 | 11612 | |
fef3f213 PB |
11613 | fi |
11614 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11615 | done | |
11616 | fi | |
b58b6ee1 | 11617 | |
fef3f213 PB |
11618 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11619 | set dummy dlltool | |
11620 | if test $build = $target ; then | |
11621 | DLLTOOL_FOR_TARGET="$2" | |
11622 | else | |
11623 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11624 | fi | |
d058b81b MS |
11625 | else |
11626 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
fef3f213 PB |
11627 | fi |
11628 | ||
207258c8 PB |
11629 | else |
11630 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
fef3f213 PB |
11631 | fi |
11632 | ||
11633 | ||
11634 | ||
11635 | ||
11636 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11637 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
11638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11639 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11640 | if test -x $with_build_time_tools/ld; then |
11641 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11642 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
efd58f08 RW |
11643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11644 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
207258c8 | 11645 | else |
efd58f08 RW |
11646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11647 | $as_echo "no" >&6; } | |
207258c8 | 11648 | fi |
fef3f213 PB |
11649 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11650 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d058b81b MS |
11651 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11652 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
fef3f213 PB |
11653 | fi |
11654 | fi | |
b58b6ee1 | 11655 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
11656 | # Extract the first word of "ld", so it can be a program name with args. |
11657 | set dummy ld; ac_word=$2 | |
efd58f08 RW |
11658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11659 | $as_echo_n "checking for $ac_word... " >&6; } | |
11660 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11661 | $as_echo_n "(cached) " >&6 | |
fef3f213 | 11662 | else |
b58b6ee1 DJ |
11663 | case $LD_FOR_TARGET in |
11664 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
11665 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11666 | ;; | |
fef3f213 | 11667 | *) |
b58b6ee1 DJ |
11668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11669 | for as_dir in $gcc_cv_tool_dirs | |
11670 | do | |
11671 | IFS=$as_save_IFS | |
11672 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11673 | for ac_exec_ext in '' $ac_executable_extensions; do |
11674 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11675 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 11676 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11677 | break 2 |
11678 | fi | |
11679 | done | |
efd58f08 RW |
11680 | done |
11681 | IFS=$as_save_IFS | |
b58b6ee1 | 11682 | |
fef3f213 PB |
11683 | ;; |
11684 | esac | |
11685 | fi | |
b58b6ee1 | 11686 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
fef3f213 | 11687 | if test -n "$LD_FOR_TARGET"; then |
efd58f08 RW |
11688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11689 | $as_echo "$LD_FOR_TARGET" >&6; } | |
fef3f213 | 11690 | else |
efd58f08 RW |
11691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11692 | $as_echo "no" >&6; } | |
fef3f213 PB |
11693 | fi |
11694 | ||
efd58f08 | 11695 | |
fef3f213 PB |
11696 | fi |
11697 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
82026593 AO |
11698 | |
11699 | ||
11700 | if test -n "$LD_FOR_TARGET"; then | |
11701 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11702 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11703 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11704 | fi | |
11705 | ||
11706 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11707 | for ncn_progname in ld; do | |
11708 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11709 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11711 | $as_echo_n "checking for $ac_word... " >&6; } | |
11712 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11713 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
11714 | else |
11715 | if test -n "$LD_FOR_TARGET"; then | |
11716 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11717 | else | |
11718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11719 | for as_dir in $PATH | |
11720 | do | |
11721 | IFS=$as_save_IFS | |
11722 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11723 | for ac_exec_ext in '' $ac_executable_extensions; do |
11724 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 11725 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11726 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
11727 | break 2 |
11728 | fi | |
11729 | done | |
efd58f08 RW |
11730 | done |
11731 | IFS=$as_save_IFS | |
82026593 AO |
11732 | |
11733 | fi | |
11734 | fi | |
11735 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11736 | if test -n "$LD_FOR_TARGET"; then | |
efd58f08 RW |
11737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11738 | $as_echo "$LD_FOR_TARGET" >&6; } | |
82026593 | 11739 | else |
efd58f08 RW |
11740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11741 | $as_echo "no" >&6; } | |
82026593 AO |
11742 | fi |
11743 | ||
efd58f08 | 11744 | |
82026593 AO |
11745 | done |
11746 | fi | |
11747 | ||
11748 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 11749 | for ncn_progname in ld; do |
efd58f08 RW |
11750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11751 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11752 | if test -x $with_build_time_tools/${ncn_progname}; then |
11753 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
11754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11755 | $as_echo "yes" >&6; } | |
fef3f213 PB |
11756 | break |
11757 | else | |
efd58f08 RW |
11758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11759 | $as_echo "no" >&6; } | |
fef3f213 PB |
11760 | fi |
11761 | done | |
11762 | fi | |
11763 | ||
11764 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11765 | for ncn_progname in ld; do | |
11766 | if test -n "$ncn_target_tool_prefix"; then | |
11767 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11768 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11770 | $as_echo_n "checking for $ac_word... " >&6; } | |
11771 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11772 | $as_echo_n "(cached) " >&6 | |
fef3f213 PB |
11773 | else |
11774 | if test -n "$LD_FOR_TARGET"; then | |
11775 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11776 | else | |
b58b6ee1 DJ |
11777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11778 | for as_dir in $PATH | |
11779 | do | |
11780 | IFS=$as_save_IFS | |
11781 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11782 | for ac_exec_ext in '' $ac_executable_extensions; do |
11783 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11784 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 11785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11786 | break 2 |
11787 | fi | |
11788 | done | |
efd58f08 RW |
11789 | done |
11790 | IFS=$as_save_IFS | |
b58b6ee1 | 11791 | |
fef3f213 PB |
11792 | fi |
11793 | fi | |
b58b6ee1 | 11794 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
fef3f213 | 11795 | if test -n "$LD_FOR_TARGET"; then |
efd58f08 RW |
11796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11797 | $as_echo "$LD_FOR_TARGET" >&6; } | |
fef3f213 | 11798 | else |
efd58f08 RW |
11799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11800 | $as_echo "no" >&6; } | |
fef3f213 PB |
11801 | fi |
11802 | ||
efd58f08 | 11803 | |
fef3f213 PB |
11804 | fi |
11805 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11806 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11807 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11809 | $as_echo_n "checking for $ac_word... " >&6; } | |
11810 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11811 | $as_echo_n "(cached) " >&6 | |
fef3f213 PB |
11812 | else |
11813 | if test -n "$LD_FOR_TARGET"; then | |
11814 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11815 | else | |
b58b6ee1 DJ |
11816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11817 | for as_dir in $PATH | |
11818 | do | |
11819 | IFS=$as_save_IFS | |
11820 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11821 | for ac_exec_ext in '' $ac_executable_extensions; do |
11822 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 11823 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11825 | break 2 |
11826 | fi | |
11827 | done | |
efd58f08 RW |
11828 | done |
11829 | IFS=$as_save_IFS | |
b58b6ee1 | 11830 | |
fef3f213 PB |
11831 | fi |
11832 | fi | |
b58b6ee1 | 11833 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
fef3f213 | 11834 | if test -n "$LD_FOR_TARGET"; then |
efd58f08 RW |
11835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11836 | $as_echo "$LD_FOR_TARGET" >&6; } | |
fef3f213 | 11837 | else |
efd58f08 RW |
11838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11839 | $as_echo "no" >&6; } | |
fef3f213 | 11840 | fi |
b58b6ee1 | 11841 | |
efd58f08 | 11842 | |
fef3f213 PB |
11843 | fi |
11844 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11845 | done | |
11846 | fi | |
b58b6ee1 | 11847 | |
fef3f213 PB |
11848 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11849 | set dummy ld | |
11850 | if test $build = $target ; then | |
11851 | LD_FOR_TARGET="$2" | |
11852 | else | |
11853 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11854 | fi | |
d058b81b MS |
11855 | else |
11856 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
fef3f213 PB |
11857 | fi |
11858 | ||
207258c8 PB |
11859 | else |
11860 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
fef3f213 PB |
11861 | fi |
11862 | ||
11863 | ||
11864 | ||
11865 | ||
11866 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11867 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
11868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11869 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11870 | if test -x $with_build_time_tools/lipo; then |
11871 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11872 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
efd58f08 RW |
11873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11874 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
207258c8 | 11875 | else |
efd58f08 RW |
11876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11877 | $as_echo "no" >&6; } | |
207258c8 | 11878 | fi |
fef3f213 PB |
11879 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11880 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d058b81b MS |
11881 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11882 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
fef3f213 PB |
11883 | fi |
11884 | fi | |
82026593 AO |
11885 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11886 | # Extract the first word of "lipo", so it can be a program name with args. | |
11887 | set dummy lipo; ac_word=$2 | |
efd58f08 RW |
11888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11889 | $as_echo_n "checking for $ac_word... " >&6; } | |
11890 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11891 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
11892 | else |
11893 | case $LIPO_FOR_TARGET in | |
11894 | [\\/]* | ?:[\\/]*) | |
11895 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11896 | ;; | |
11897 | *) | |
11898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11899 | for as_dir in $gcc_cv_tool_dirs | |
11900 | do | |
11901 | IFS=$as_save_IFS | |
11902 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11903 | for ac_exec_ext in '' $ac_executable_extensions; do |
11904 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 11905 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 11906 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
11907 | break 2 |
11908 | fi | |
11909 | done | |
efd58f08 RW |
11910 | done |
11911 | IFS=$as_save_IFS | |
82026593 AO |
11912 | |
11913 | ;; | |
11914 | esac | |
11915 | fi | |
11916 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
82026593 | 11917 | if test -n "$LIPO_FOR_TARGET"; then |
efd58f08 RW |
11918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11919 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
82026593 | 11920 | else |
efd58f08 RW |
11921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11922 | $as_echo "no" >&6; } | |
82026593 AO |
11923 | fi |
11924 | ||
efd58f08 | 11925 | |
82026593 AO |
11926 | fi |
11927 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11928 | ||
11929 | ||
11930 | if test -n "$LIPO_FOR_TARGET"; then | |
11931 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11932 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11933 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11934 | fi | |
11935 | ||
11936 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11937 | for ncn_progname in lipo; do | |
11938 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11939 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11941 | $as_echo_n "checking for $ac_word... " >&6; } | |
11942 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11943 | $as_echo_n "(cached) " >&6 | |
fef3f213 | 11944 | else |
82026593 AO |
11945 | if test -n "$LIPO_FOR_TARGET"; then |
11946 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11947 | else | |
11948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11949 | for as_dir in $PATH | |
b58b6ee1 DJ |
11950 | do |
11951 | IFS=$as_save_IFS | |
11952 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
11953 | for ac_exec_ext in '' $ac_executable_extensions; do |
11954 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 11955 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11956 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11957 | break 2 |
11958 | fi | |
11959 | done | |
efd58f08 RW |
11960 | done |
11961 | IFS=$as_save_IFS | |
b58b6ee1 | 11962 | |
fef3f213 | 11963 | fi |
82026593 AO |
11964 | fi |
11965 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
fef3f213 | 11966 | if test -n "$LIPO_FOR_TARGET"; then |
efd58f08 RW |
11967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11968 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
fef3f213 | 11969 | else |
efd58f08 RW |
11970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11971 | $as_echo "no" >&6; } | |
fef3f213 PB |
11972 | fi |
11973 | ||
efd58f08 | 11974 | |
82026593 | 11975 | done |
fef3f213 | 11976 | fi |
82026593 AO |
11977 | |
11978 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 11979 | for ncn_progname in lipo; do |
efd58f08 RW |
11980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11981 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11982 | if test -x $with_build_time_tools/${ncn_progname}; then |
11983 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
11984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11985 | $as_echo "yes" >&6; } | |
fef3f213 PB |
11986 | break |
11987 | else | |
efd58f08 RW |
11988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11989 | $as_echo "no" >&6; } | |
fef3f213 PB |
11990 | fi |
11991 | done | |
11992 | fi | |
11993 | ||
11994 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11995 | for ncn_progname in lipo; do | |
11996 | if test -n "$ncn_target_tool_prefix"; then | |
11997 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11998 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12000 | $as_echo_n "checking for $ac_word... " >&6; } | |
12001 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
12002 | $as_echo_n "(cached) " >&6 | |
fef3f213 PB |
12003 | else |
12004 | if test -n "$LIPO_FOR_TARGET"; then | |
12005 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12006 | else | |
b58b6ee1 DJ |
12007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12008 | for as_dir in $PATH | |
12009 | do | |
12010 | IFS=$as_save_IFS | |
12011 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12012 | for ac_exec_ext in '' $ac_executable_extensions; do |
12013 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 12014 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 12015 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12016 | break 2 |
12017 | fi | |
12018 | done | |
efd58f08 RW |
12019 | done |
12020 | IFS=$as_save_IFS | |
b58b6ee1 | 12021 | |
fef3f213 PB |
12022 | fi |
12023 | fi | |
b58b6ee1 | 12024 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
fef3f213 | 12025 | if test -n "$LIPO_FOR_TARGET"; then |
efd58f08 RW |
12026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12027 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
fef3f213 | 12028 | else |
efd58f08 RW |
12029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12030 | $as_echo "no" >&6; } | |
fef3f213 PB |
12031 | fi |
12032 | ||
efd58f08 | 12033 | |
fef3f213 PB |
12034 | fi |
12035 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
12036 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12037 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
12038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12039 | $as_echo_n "checking for $ac_word... " >&6; } | |
12040 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
12041 | $as_echo_n "(cached) " >&6 | |
fef3f213 PB |
12042 | else |
12043 | if test -n "$LIPO_FOR_TARGET"; then | |
12044 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12045 | else | |
b58b6ee1 DJ |
12046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12047 | for as_dir in $PATH | |
12048 | do | |
12049 | IFS=$as_save_IFS | |
12050 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12051 | for ac_exec_ext in '' $ac_executable_extensions; do |
12052 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 12053 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
efd58f08 | 12054 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12055 | break 2 |
12056 | fi | |
12057 | done | |
efd58f08 RW |
12058 | done |
12059 | IFS=$as_save_IFS | |
b58b6ee1 | 12060 | |
fef3f213 PB |
12061 | fi |
12062 | fi | |
b58b6ee1 | 12063 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
fef3f213 | 12064 | if test -n "$LIPO_FOR_TARGET"; then |
efd58f08 RW |
12065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12066 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
fef3f213 | 12067 | else |
efd58f08 RW |
12068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12069 | $as_echo "no" >&6; } | |
fef3f213 | 12070 | fi |
b58b6ee1 | 12071 | |
efd58f08 | 12072 | |
fef3f213 PB |
12073 | fi |
12074 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
12075 | done | |
12076 | fi | |
b58b6ee1 | 12077 | |
fef3f213 PB |
12078 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
12079 | set dummy lipo | |
12080 | if test $build = $target ; then | |
12081 | LIPO_FOR_TARGET="$2" | |
12082 | else | |
12083 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12084 | fi | |
d058b81b MS |
12085 | else |
12086 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
fef3f213 PB |
12087 | fi |
12088 | ||
207258c8 PB |
12089 | else |
12090 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
fef3f213 PB |
12091 | fi |
12092 | ||
12093 | ||
12094 | ||
12095 | ||
12096 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
12097 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
12098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
12099 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
207258c8 PB |
12100 | if test -x $with_build_time_tools/nm; then |
12101 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
12102 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
efd58f08 RW |
12103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
12104 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
207258c8 | 12105 | else |
efd58f08 RW |
12106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12107 | $as_echo "no" >&6; } | |
207258c8 | 12108 | fi |
fef3f213 PB |
12109 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12110 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d058b81b MS |
12111 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
12112 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
fef3f213 PB |
12113 | fi |
12114 | fi | |
b58b6ee1 | 12115 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
12116 | # Extract the first word of "nm", so it can be a program name with args. |
12117 | set dummy nm; ac_word=$2 | |
efd58f08 RW |
12118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12119 | $as_echo_n "checking for $ac_word... " >&6; } | |
12120 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
12121 | $as_echo_n "(cached) " >&6 | |
fef3f213 | 12122 | else |
b58b6ee1 DJ |
12123 | case $NM_FOR_TARGET in |
12124 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
12125 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
12126 | ;; | |
fef3f213 | 12127 | *) |
b58b6ee1 DJ |
12128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12129 | for as_dir in $gcc_cv_tool_dirs | |
12130 | do | |
12131 | IFS=$as_save_IFS | |
12132 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12133 | for ac_exec_ext in '' $ac_executable_extensions; do |
12134 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 12135 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 12136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12137 | break 2 |
12138 | fi | |
12139 | done | |
efd58f08 RW |
12140 | done |
12141 | IFS=$as_save_IFS | |
b58b6ee1 | 12142 | |
fef3f213 PB |
12143 | ;; |
12144 | esac | |
12145 | fi | |
b58b6ee1 | 12146 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
fef3f213 | 12147 | if test -n "$NM_FOR_TARGET"; then |
efd58f08 RW |
12148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12149 | $as_echo "$NM_FOR_TARGET" >&6; } | |
fef3f213 | 12150 | else |
efd58f08 RW |
12151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12152 | $as_echo "no" >&6; } | |
fef3f213 PB |
12153 | fi |
12154 | ||
efd58f08 | 12155 | |
fef3f213 PB |
12156 | fi |
12157 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
82026593 AO |
12158 | |
12159 | ||
12160 | if test -n "$NM_FOR_TARGET"; then | |
12161 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12162 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12163 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12164 | fi | |
12165 | ||
12166 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12167 | for ncn_progname in nm; do | |
12168 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12169 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
12170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12171 | $as_echo_n "checking for $ac_word... " >&6; } | |
12172 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12173 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
12174 | else |
12175 | if test -n "$NM_FOR_TARGET"; then | |
12176 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12177 | else | |
12178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12179 | for as_dir in $PATH | |
12180 | do | |
12181 | IFS=$as_save_IFS | |
12182 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12183 | for ac_exec_ext in '' $ac_executable_extensions; do |
12184 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 12185 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
efd58f08 | 12186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
12187 | break 2 |
12188 | fi | |
12189 | done | |
efd58f08 RW |
12190 | done |
12191 | IFS=$as_save_IFS | |
82026593 AO |
12192 | |
12193 | fi | |
12194 | fi | |
12195 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12196 | if test -n "$NM_FOR_TARGET"; then | |
efd58f08 RW |
12197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12198 | $as_echo "$NM_FOR_TARGET" >&6; } | |
82026593 | 12199 | else |
efd58f08 RW |
12200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12201 | $as_echo "no" >&6; } | |
82026593 AO |
12202 | fi |
12203 | ||
efd58f08 | 12204 | |
82026593 AO |
12205 | done |
12206 | fi | |
12207 | ||
12208 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 12209 | for ncn_progname in nm; do |
efd58f08 RW |
12210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12211 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
12212 | if test -x $with_build_time_tools/${ncn_progname}; then |
12213 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
12214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12215 | $as_echo "yes" >&6; } | |
fef3f213 PB |
12216 | break |
12217 | else | |
efd58f08 RW |
12218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12219 | $as_echo "no" >&6; } | |
fef3f213 PB |
12220 | fi |
12221 | done | |
12222 | fi | |
12223 | ||
12224 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12225 | for ncn_progname in nm; do | |
12226 | if test -n "$ncn_target_tool_prefix"; then | |
12227 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6a33f745 | 12228 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
12229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12230 | $as_echo_n "checking for $ac_word... " >&6; } | |
12231 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12232 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 12233 | else |
5fb28bcc PB |
12234 | if test -n "$NM_FOR_TARGET"; then |
12235 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
a0c92996 | 12236 | else |
b58b6ee1 DJ |
12237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12238 | for as_dir in $PATH | |
12239 | do | |
12240 | IFS=$as_save_IFS | |
12241 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12242 | for ac_exec_ext in '' $ac_executable_extensions; do |
12243 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 12244 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 12245 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12246 | break 2 |
12247 | fi | |
12248 | done | |
efd58f08 RW |
12249 | done |
12250 | IFS=$as_save_IFS | |
b58b6ee1 | 12251 | |
a0c92996 AC |
12252 | fi |
12253 | fi | |
b58b6ee1 | 12254 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
5fb28bcc | 12255 | if test -n "$NM_FOR_TARGET"; then |
efd58f08 RW |
12256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12257 | $as_echo "$NM_FOR_TARGET" >&6; } | |
a0c92996 | 12258 | else |
efd58f08 RW |
12259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12260 | $as_echo "no" >&6; } | |
a0c92996 AC |
12261 | fi |
12262 | ||
efd58f08 | 12263 | |
fef3f213 PB |
12264 | fi |
12265 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12266 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 12267 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
12268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12269 | $as_echo_n "checking for $ac_word... " >&6; } | |
12270 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12271 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 12272 | else |
60cfca65 PB |
12273 | if test -n "$NM_FOR_TARGET"; then |
12274 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
a0c92996 | 12275 | else |
b58b6ee1 DJ |
12276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12277 | for as_dir in $PATH | |
12278 | do | |
12279 | IFS=$as_save_IFS | |
12280 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12281 | for ac_exec_ext in '' $ac_executable_extensions; do |
12282 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 12283 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
efd58f08 | 12284 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12285 | break 2 |
12286 | fi | |
12287 | done | |
efd58f08 RW |
12288 | done |
12289 | IFS=$as_save_IFS | |
b58b6ee1 | 12290 | |
a0c92996 AC |
12291 | fi |
12292 | fi | |
b58b6ee1 | 12293 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
60cfca65 | 12294 | if test -n "$NM_FOR_TARGET"; then |
efd58f08 RW |
12295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12296 | $as_echo "$NM_FOR_TARGET" >&6; } | |
a0c92996 | 12297 | else |
efd58f08 RW |
12298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12299 | $as_echo "no" >&6; } | |
a0c92996 | 12300 | fi |
b58b6ee1 | 12301 | |
efd58f08 | 12302 | |
fef3f213 PB |
12303 | fi |
12304 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12305 | done | |
12306 | fi | |
b58b6ee1 | 12307 | |
60cfca65 PB |
12308 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12309 | set dummy nm | |
12310 | if test $build = $target ; then | |
12311 | NM_FOR_TARGET="$2" | |
a0c92996 | 12312 | else |
60cfca65 | 12313 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
a0c92996 | 12314 | fi |
d058b81b MS |
12315 | else |
12316 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
a0c92996 AC |
12317 | fi |
12318 | ||
207258c8 PB |
12319 | else |
12320 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
fef3f213 PB |
12321 | fi |
12322 | ||
12323 | ||
12324 | ||
12325 | ||
fe508576 CV |
12326 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12327 | if test -n "$with_build_time_tools"; then | |
12328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12329 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12330 | if test -x $with_build_time_tools/objcopy; then | |
12331 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12332 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12334 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12335 | else | |
12336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12337 | $as_echo "no" >&6; } | |
12338 | fi | |
12339 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12340 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12341 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12342 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12343 | fi | |
12344 | fi | |
12345 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12346 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12347 | set dummy objcopy; ac_word=$2 | |
12348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12349 | $as_echo_n "checking for $ac_word... " >&6; } | |
12350 | if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12351 | $as_echo_n "(cached) " >&6 | |
12352 | else | |
12353 | case $OBJCOPY_FOR_TARGET in | |
12354 | [\\/]* | ?:[\\/]*) | |
12355 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12356 | ;; | |
12357 | *) | |
12358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12359 | for as_dir in $gcc_cv_tool_dirs | |
12360 | do | |
12361 | IFS=$as_save_IFS | |
12362 | test -z "$as_dir" && as_dir=. | |
12363 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12364 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12365 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12366 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12367 | break 2 | |
12368 | fi | |
12369 | done | |
12370 | done | |
12371 | IFS=$as_save_IFS | |
12372 | ||
12373 | ;; | |
12374 | esac | |
12375 | fi | |
12376 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12377 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12379 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12380 | else | |
12381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12382 | $as_echo "no" >&6; } | |
12383 | fi | |
12384 | ||
12385 | ||
12386 | fi | |
12387 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12388 | ||
12389 | ||
12390 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12391 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12392 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12393 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12394 | fi | |
12395 | ||
12396 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12397 | for ncn_progname in objcopy; do | |
12398 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12399 | set dummy ${ncn_progname}; ac_word=$2 | |
12400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12401 | $as_echo_n "checking for $ac_word... " >&6; } | |
12402 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12403 | $as_echo_n "(cached) " >&6 | |
12404 | else | |
12405 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12406 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12407 | else | |
12408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12409 | for as_dir in $PATH | |
12410 | do | |
12411 | IFS=$as_save_IFS | |
12412 | test -z "$as_dir" && as_dir=. | |
12413 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12414 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12415 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12417 | break 2 | |
12418 | fi | |
12419 | done | |
12420 | done | |
12421 | IFS=$as_save_IFS | |
12422 | ||
12423 | fi | |
12424 | fi | |
12425 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12426 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12428 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12429 | else | |
12430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12431 | $as_echo "no" >&6; } | |
12432 | fi | |
12433 | ||
12434 | ||
12435 | done | |
12436 | fi | |
12437 | ||
12438 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12439 | for ncn_progname in objcopy; do | |
12440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12441 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12442 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12443 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12445 | $as_echo "yes" >&6; } | |
12446 | break | |
12447 | else | |
12448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12449 | $as_echo "no" >&6; } | |
12450 | fi | |
12451 | done | |
12452 | fi | |
12453 | ||
12454 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12455 | for ncn_progname in objcopy; do | |
12456 | if test -n "$ncn_target_tool_prefix"; then | |
12457 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12458 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12460 | $as_echo_n "checking for $ac_word... " >&6; } | |
12461 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12462 | $as_echo_n "(cached) " >&6 | |
12463 | else | |
12464 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12465 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12466 | else | |
12467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12468 | for as_dir in $PATH | |
12469 | do | |
12470 | IFS=$as_save_IFS | |
12471 | test -z "$as_dir" && as_dir=. | |
12472 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12473 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12474 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12475 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12476 | break 2 | |
12477 | fi | |
12478 | done | |
12479 | done | |
12480 | IFS=$as_save_IFS | |
12481 | ||
12482 | fi | |
12483 | fi | |
12484 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12485 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12487 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12488 | else | |
12489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12490 | $as_echo "no" >&6; } | |
12491 | fi | |
12492 | ||
12493 | ||
12494 | fi | |
12495 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12496 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12497 | set dummy ${ncn_progname}; ac_word=$2 | |
12498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12499 | $as_echo_n "checking for $ac_word... " >&6; } | |
12500 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12501 | $as_echo_n "(cached) " >&6 | |
12502 | else | |
12503 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12504 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12505 | else | |
12506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12507 | for as_dir in $PATH | |
12508 | do | |
12509 | IFS=$as_save_IFS | |
12510 | test -z "$as_dir" && as_dir=. | |
12511 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12512 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12513 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12514 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12515 | break 2 | |
12516 | fi | |
12517 | done | |
12518 | done | |
12519 | IFS=$as_save_IFS | |
12520 | ||
12521 | fi | |
12522 | fi | |
12523 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12524 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12526 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12527 | else | |
12528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12529 | $as_echo "no" >&6; } | |
12530 | fi | |
12531 | ||
12532 | ||
12533 | fi | |
12534 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12535 | done | |
12536 | fi | |
12537 | ||
12538 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12539 | set dummy objcopy | |
12540 | if test $build = $target ; then | |
12541 | OBJCOPY_FOR_TARGET="$2" | |
12542 | else | |
12543 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12544 | fi | |
12545 | else | |
12546 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12547 | fi | |
12548 | ||
12549 | else | |
12550 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12551 | fi | |
12552 | ||
12553 | ||
12554 | ||
12555 | ||
fef3f213 PB |
12556 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12557 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
12558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12559 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
207258c8 PB |
12560 | if test -x $with_build_time_tools/objdump; then |
12561 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12562 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
efd58f08 RW |
12563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12564 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
207258c8 | 12565 | else |
efd58f08 RW |
12566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12567 | $as_echo "no" >&6; } | |
207258c8 | 12568 | fi |
fef3f213 PB |
12569 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12570 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d058b81b MS |
12571 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12572 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
fef3f213 PB |
12573 | fi |
12574 | fi | |
b58b6ee1 | 12575 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
12576 | # Extract the first word of "objdump", so it can be a program name with args. |
12577 | set dummy objdump; ac_word=$2 | |
efd58f08 RW |
12578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12579 | $as_echo_n "checking for $ac_word... " >&6; } | |
12580 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12581 | $as_echo_n "(cached) " >&6 | |
fef3f213 | 12582 | else |
b58b6ee1 DJ |
12583 | case $OBJDUMP_FOR_TARGET in |
12584 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
12585 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12586 | ;; | |
fef3f213 | 12587 | *) |
b58b6ee1 DJ |
12588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12589 | for as_dir in $gcc_cv_tool_dirs | |
12590 | do | |
12591 | IFS=$as_save_IFS | |
12592 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12593 | for ac_exec_ext in '' $ac_executable_extensions; do |
12594 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 12595 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 12596 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12597 | break 2 |
12598 | fi | |
12599 | done | |
efd58f08 RW |
12600 | done |
12601 | IFS=$as_save_IFS | |
b58b6ee1 | 12602 | |
fef3f213 PB |
12603 | ;; |
12604 | esac | |
12605 | fi | |
b58b6ee1 | 12606 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
fef3f213 | 12607 | if test -n "$OBJDUMP_FOR_TARGET"; then |
efd58f08 RW |
12608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12609 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
fef3f213 | 12610 | else |
efd58f08 RW |
12611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12612 | $as_echo "no" >&6; } | |
fef3f213 PB |
12613 | fi |
12614 | ||
efd58f08 | 12615 | |
fef3f213 PB |
12616 | fi |
12617 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
82026593 AO |
12618 | |
12619 | ||
12620 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12621 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12622 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12623 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12624 | fi | |
12625 | ||
12626 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12627 | for ncn_progname in objdump; do | |
12628 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12629 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
12630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12631 | $as_echo_n "checking for $ac_word... " >&6; } | |
12632 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12633 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
12634 | else |
12635 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12636 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12637 | else | |
12638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12639 | for as_dir in $PATH | |
12640 | do | |
12641 | IFS=$as_save_IFS | |
12642 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12643 | for ac_exec_ext in '' $ac_executable_extensions; do |
12644 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 12645 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
efd58f08 | 12646 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
12647 | break 2 |
12648 | fi | |
12649 | done | |
efd58f08 RW |
12650 | done |
12651 | IFS=$as_save_IFS | |
82026593 AO |
12652 | |
12653 | fi | |
12654 | fi | |
12655 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12656 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
efd58f08 RW |
12657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12658 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
82026593 | 12659 | else |
efd58f08 RW |
12660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12661 | $as_echo "no" >&6; } | |
82026593 AO |
12662 | fi |
12663 | ||
efd58f08 | 12664 | |
82026593 AO |
12665 | done |
12666 | fi | |
12667 | ||
12668 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 12669 | for ncn_progname in objdump; do |
efd58f08 RW |
12670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12671 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
12672 | if test -x $with_build_time_tools/${ncn_progname}; then |
12673 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
12674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12675 | $as_echo "yes" >&6; } | |
fef3f213 PB |
12676 | break |
12677 | else | |
efd58f08 RW |
12678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12679 | $as_echo "no" >&6; } | |
fef3f213 PB |
12680 | fi |
12681 | done | |
12682 | fi | |
12683 | ||
12684 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12685 | for ncn_progname in objdump; do | |
12686 | if test -n "$ncn_target_tool_prefix"; then | |
12687 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 12688 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
12689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12690 | $as_echo_n "checking for $ac_word... " >&6; } | |
12691 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12692 | $as_echo_n "(cached) " >&6 | |
51c8a213 DJ |
12693 | else |
12694 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12695 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12696 | else | |
b58b6ee1 DJ |
12697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12698 | for as_dir in $PATH | |
12699 | do | |
12700 | IFS=$as_save_IFS | |
12701 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12702 | for ac_exec_ext in '' $ac_executable_extensions; do |
12703 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 12704 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 12705 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12706 | break 2 |
12707 | fi | |
12708 | done | |
efd58f08 RW |
12709 | done |
12710 | IFS=$as_save_IFS | |
b58b6ee1 | 12711 | |
51c8a213 DJ |
12712 | fi |
12713 | fi | |
b58b6ee1 | 12714 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
51c8a213 | 12715 | if test -n "$OBJDUMP_FOR_TARGET"; then |
efd58f08 RW |
12716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12717 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
51c8a213 | 12718 | else |
efd58f08 RW |
12719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12720 | $as_echo "no" >&6; } | |
51c8a213 DJ |
12721 | fi |
12722 | ||
efd58f08 | 12723 | |
fef3f213 PB |
12724 | fi |
12725 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12726 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
51c8a213 | 12727 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
12728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12729 | $as_echo_n "checking for $ac_word... " >&6; } | |
12730 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12731 | $as_echo_n "(cached) " >&6 | |
51c8a213 DJ |
12732 | else |
12733 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12734 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12735 | else | |
b58b6ee1 DJ |
12736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12737 | for as_dir in $PATH | |
12738 | do | |
12739 | IFS=$as_save_IFS | |
12740 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12741 | for ac_exec_ext in '' $ac_executable_extensions; do |
12742 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 12743 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
efd58f08 | 12744 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12745 | break 2 |
12746 | fi | |
12747 | done | |
efd58f08 RW |
12748 | done |
12749 | IFS=$as_save_IFS | |
b58b6ee1 | 12750 | |
51c8a213 DJ |
12751 | fi |
12752 | fi | |
b58b6ee1 | 12753 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
51c8a213 | 12754 | if test -n "$OBJDUMP_FOR_TARGET"; then |
efd58f08 RW |
12755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12756 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
51c8a213 | 12757 | else |
efd58f08 RW |
12758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12759 | $as_echo "no" >&6; } | |
51c8a213 | 12760 | fi |
b58b6ee1 | 12761 | |
efd58f08 | 12762 | |
fef3f213 PB |
12763 | fi |
12764 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12765 | done | |
12766 | fi | |
b58b6ee1 | 12767 | |
51c8a213 DJ |
12768 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12769 | set dummy objdump | |
12770 | if test $build = $target ; then | |
12771 | OBJDUMP_FOR_TARGET="$2" | |
12772 | else | |
12773 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12774 | fi | |
d058b81b MS |
12775 | else |
12776 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
51c8a213 DJ |
12777 | fi |
12778 | ||
207258c8 PB |
12779 | else |
12780 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
fef3f213 PB |
12781 | fi |
12782 | ||
12783 | ||
12784 | ||
12785 | ||
12786 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12787 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
12788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12789 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
207258c8 PB |
12790 | if test -x $with_build_time_tools/ranlib; then |
12791 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12792 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
efd58f08 RW |
12793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12794 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
207258c8 | 12795 | else |
efd58f08 RW |
12796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12797 | $as_echo "no" >&6; } | |
207258c8 | 12798 | fi |
fef3f213 PB |
12799 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12800 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d058b81b MS |
12801 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12802 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
fef3f213 PB |
12803 | fi |
12804 | fi | |
b58b6ee1 | 12805 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
12806 | # Extract the first word of "ranlib", so it can be a program name with args. |
12807 | set dummy ranlib; ac_word=$2 | |
efd58f08 RW |
12808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12809 | $as_echo_n "checking for $ac_word... " >&6; } | |
12810 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12811 | $as_echo_n "(cached) " >&6 | |
fef3f213 | 12812 | else |
b58b6ee1 DJ |
12813 | case $RANLIB_FOR_TARGET in |
12814 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
12815 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12816 | ;; | |
fef3f213 | 12817 | *) |
b58b6ee1 DJ |
12818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12819 | for as_dir in $gcc_cv_tool_dirs | |
12820 | do | |
12821 | IFS=$as_save_IFS | |
12822 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12823 | for ac_exec_ext in '' $ac_executable_extensions; do |
12824 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 12825 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 12826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12827 | break 2 |
12828 | fi | |
12829 | done | |
efd58f08 RW |
12830 | done |
12831 | IFS=$as_save_IFS | |
b58b6ee1 | 12832 | |
fef3f213 PB |
12833 | ;; |
12834 | esac | |
12835 | fi | |
b58b6ee1 | 12836 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
fef3f213 | 12837 | if test -n "$RANLIB_FOR_TARGET"; then |
efd58f08 RW |
12838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12839 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
fef3f213 | 12840 | else |
efd58f08 RW |
12841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12842 | $as_echo "no" >&6; } | |
fef3f213 PB |
12843 | fi |
12844 | ||
efd58f08 | 12845 | |
fef3f213 PB |
12846 | fi |
12847 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
82026593 AO |
12848 | |
12849 | ||
12850 | if test -n "$RANLIB_FOR_TARGET"; then | |
12851 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12852 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12853 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12854 | fi | |
12855 | ||
12856 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12857 | for ncn_progname in ranlib; do | |
12858 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12859 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
12860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12861 | $as_echo_n "checking for $ac_word... " >&6; } | |
12862 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12863 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
12864 | else |
12865 | if test -n "$RANLIB_FOR_TARGET"; then | |
12866 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12867 | else | |
12868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12869 | for as_dir in $PATH | |
12870 | do | |
12871 | IFS=$as_save_IFS | |
12872 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12873 | for ac_exec_ext in '' $ac_executable_extensions; do |
12874 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 12875 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
efd58f08 | 12876 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
12877 | break 2 |
12878 | fi | |
12879 | done | |
efd58f08 RW |
12880 | done |
12881 | IFS=$as_save_IFS | |
82026593 AO |
12882 | |
12883 | fi | |
12884 | fi | |
12885 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12886 | if test -n "$RANLIB_FOR_TARGET"; then | |
efd58f08 RW |
12887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12888 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
82026593 | 12889 | else |
efd58f08 RW |
12890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12891 | $as_echo "no" >&6; } | |
82026593 AO |
12892 | fi |
12893 | ||
efd58f08 | 12894 | |
82026593 AO |
12895 | done |
12896 | fi | |
12897 | ||
12898 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 12899 | for ncn_progname in ranlib; do |
efd58f08 RW |
12900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12901 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
12902 | if test -x $with_build_time_tools/${ncn_progname}; then |
12903 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
12904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12905 | $as_echo "yes" >&6; } | |
fef3f213 PB |
12906 | break |
12907 | else | |
efd58f08 RW |
12908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12909 | $as_echo "no" >&6; } | |
fef3f213 PB |
12910 | fi |
12911 | done | |
12912 | fi | |
12913 | ||
12914 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12915 | for ncn_progname in ranlib; do | |
12916 | if test -n "$ncn_target_tool_prefix"; then | |
12917 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
51c8a213 | 12918 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
12919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12920 | $as_echo_n "checking for $ac_word... " >&6; } | |
12921 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12922 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 12923 | else |
5fb28bcc PB |
12924 | if test -n "$RANLIB_FOR_TARGET"; then |
12925 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
a0c92996 | 12926 | else |
b58b6ee1 DJ |
12927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12928 | for as_dir in $PATH | |
12929 | do | |
12930 | IFS=$as_save_IFS | |
12931 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12932 | for ac_exec_ext in '' $ac_executable_extensions; do |
12933 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 12934 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 12935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12936 | break 2 |
12937 | fi | |
12938 | done | |
efd58f08 RW |
12939 | done |
12940 | IFS=$as_save_IFS | |
b58b6ee1 | 12941 | |
a0c92996 AC |
12942 | fi |
12943 | fi | |
b58b6ee1 | 12944 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
5fb28bcc | 12945 | if test -n "$RANLIB_FOR_TARGET"; then |
efd58f08 RW |
12946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12947 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
a0c92996 | 12948 | else |
efd58f08 RW |
12949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12950 | $as_echo "no" >&6; } | |
a0c92996 AC |
12951 | fi |
12952 | ||
efd58f08 | 12953 | |
fef3f213 PB |
12954 | fi |
12955 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12956 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 12957 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
12958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12959 | $as_echo_n "checking for $ac_word... " >&6; } | |
12960 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12961 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 12962 | else |
60cfca65 PB |
12963 | if test -n "$RANLIB_FOR_TARGET"; then |
12964 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
a0c92996 | 12965 | else |
b58b6ee1 DJ |
12966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12967 | for as_dir in $PATH | |
12968 | do | |
12969 | IFS=$as_save_IFS | |
12970 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
12971 | for ac_exec_ext in '' $ac_executable_extensions; do |
12972 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 12973 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
efd58f08 | 12974 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12975 | break 2 |
12976 | fi | |
12977 | done | |
efd58f08 RW |
12978 | done |
12979 | IFS=$as_save_IFS | |
b58b6ee1 | 12980 | |
a0c92996 AC |
12981 | fi |
12982 | fi | |
b58b6ee1 | 12983 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
60cfca65 | 12984 | if test -n "$RANLIB_FOR_TARGET"; then |
efd58f08 RW |
12985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12986 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
a0c92996 | 12987 | else |
efd58f08 RW |
12988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12989 | $as_echo "no" >&6; } | |
a0c92996 | 12990 | fi |
b58b6ee1 | 12991 | |
efd58f08 | 12992 | |
fef3f213 PB |
12993 | fi |
12994 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12995 | done | |
12996 | fi | |
b58b6ee1 | 12997 | |
fef3f213 PB |
12998 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12999 | set dummy ranlib | |
13000 | if test $build = $target ; then | |
13001 | RANLIB_FOR_TARGET="$2" | |
13002 | else | |
13003 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
a0c92996 | 13004 | fi |
d058b81b MS |
13005 | else |
13006 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
fef3f213 | 13007 | fi |
60cfca65 | 13008 | |
207258c8 PB |
13009 | else |
13010 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
a0c92996 AC |
13011 | fi |
13012 | ||
fef3f213 PB |
13013 | |
13014 | ||
13015 | ||
46e7439b DD |
13016 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
13017 | if test -n "$with_build_time_tools"; then | |
13018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
13019 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
13020 | if test -x $with_build_time_tools/readelf; then | |
13021 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
13022 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
13024 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
13025 | else | |
13026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13027 | $as_echo "no" >&6; } | |
13028 | fi | |
13029 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13030 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
13031 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
13032 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13033 | fi | |
13034 | fi | |
13035 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13036 | # Extract the first word of "readelf", so it can be a program name with args. | |
13037 | set dummy readelf; ac_word=$2 | |
13038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13039 | $as_echo_n "checking for $ac_word... " >&6; } | |
13040 | if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then : | |
13041 | $as_echo_n "(cached) " >&6 | |
13042 | else | |
13043 | case $READELF_FOR_TARGET in | |
13044 | [\\/]* | ?:[\\/]*) | |
13045 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
13046 | ;; | |
13047 | *) | |
13048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13049 | for as_dir in $gcc_cv_tool_dirs | |
13050 | do | |
13051 | IFS=$as_save_IFS | |
13052 | test -z "$as_dir" && as_dir=. | |
13053 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13054 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13055 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
13056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13057 | break 2 | |
13058 | fi | |
13059 | done | |
13060 | done | |
13061 | IFS=$as_save_IFS | |
13062 | ||
13063 | ;; | |
13064 | esac | |
13065 | fi | |
13066 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13067 | if test -n "$READELF_FOR_TARGET"; then | |
13068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13069 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13070 | else | |
13071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13072 | $as_echo "no" >&6; } | |
13073 | fi | |
13074 | ||
13075 | ||
13076 | fi | |
13077 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
13078 | ||
13079 | ||
13080 | if test -n "$READELF_FOR_TARGET"; then | |
13081 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13082 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13083 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13084 | fi | |
13085 | ||
13086 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13087 | for ncn_progname in readelf; do | |
13088 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13089 | set dummy ${ncn_progname}; ac_word=$2 | |
13090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13091 | $as_echo_n "checking for $ac_word... " >&6; } | |
13092 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13093 | $as_echo_n "(cached) " >&6 | |
13094 | else | |
13095 | if test -n "$READELF_FOR_TARGET"; then | |
13096 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13097 | else | |
13098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13099 | for as_dir in $PATH | |
13100 | do | |
13101 | IFS=$as_save_IFS | |
13102 | test -z "$as_dir" && as_dir=. | |
13103 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13104 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13105 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
13106 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13107 | break 2 | |
13108 | fi | |
13109 | done | |
13110 | done | |
13111 | IFS=$as_save_IFS | |
13112 | ||
13113 | fi | |
13114 | fi | |
13115 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13116 | if test -n "$READELF_FOR_TARGET"; then | |
13117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13118 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13119 | else | |
13120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13121 | $as_echo "no" >&6; } | |
13122 | fi | |
13123 | ||
13124 | ||
13125 | done | |
13126 | fi | |
13127 | ||
13128 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13129 | for ncn_progname in readelf; do | |
13130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13131 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13132 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13133 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13135 | $as_echo "yes" >&6; } | |
13136 | break | |
13137 | else | |
13138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13139 | $as_echo "no" >&6; } | |
13140 | fi | |
13141 | done | |
13142 | fi | |
13143 | ||
13144 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13145 | for ncn_progname in readelf; do | |
13146 | if test -n "$ncn_target_tool_prefix"; then | |
13147 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13148 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13150 | $as_echo_n "checking for $ac_word... " >&6; } | |
13151 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13152 | $as_echo_n "(cached) " >&6 | |
13153 | else | |
13154 | if test -n "$READELF_FOR_TARGET"; then | |
13155 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13156 | else | |
13157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13158 | for as_dir in $PATH | |
13159 | do | |
13160 | IFS=$as_save_IFS | |
13161 | test -z "$as_dir" && as_dir=. | |
13162 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13163 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13164 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
13165 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13166 | break 2 | |
13167 | fi | |
13168 | done | |
13169 | done | |
13170 | IFS=$as_save_IFS | |
13171 | ||
13172 | fi | |
13173 | fi | |
13174 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13175 | if test -n "$READELF_FOR_TARGET"; then | |
13176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13177 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13178 | else | |
13179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13180 | $as_echo "no" >&6; } | |
13181 | fi | |
13182 | ||
13183 | ||
13184 | fi | |
13185 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
13186 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13187 | set dummy ${ncn_progname}; ac_word=$2 | |
13188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13189 | $as_echo_n "checking for $ac_word... " >&6; } | |
13190 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13191 | $as_echo_n "(cached) " >&6 | |
13192 | else | |
13193 | if test -n "$READELF_FOR_TARGET"; then | |
13194 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13195 | else | |
13196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13197 | for as_dir in $PATH | |
13198 | do | |
13199 | IFS=$as_save_IFS | |
13200 | test -z "$as_dir" && as_dir=. | |
13201 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13202 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13203 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
13204 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13205 | break 2 | |
13206 | fi | |
13207 | done | |
13208 | done | |
13209 | IFS=$as_save_IFS | |
13210 | ||
13211 | fi | |
13212 | fi | |
13213 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13214 | if test -n "$READELF_FOR_TARGET"; then | |
13215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13216 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13217 | else | |
13218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13219 | $as_echo "no" >&6; } | |
13220 | fi | |
13221 | ||
13222 | ||
13223 | fi | |
13224 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
13225 | done | |
13226 | fi | |
13227 | ||
13228 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
13229 | set dummy readelf | |
13230 | if test $build = $target ; then | |
13231 | READELF_FOR_TARGET="$2" | |
13232 | else | |
13233 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13234 | fi | |
13235 | else | |
13236 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13237 | fi | |
13238 | ||
13239 | else | |
13240 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13241 | fi | |
13242 | ||
13243 | ||
13244 | ||
13245 | ||
fef3f213 PB |
13246 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13247 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
13248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13249 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
207258c8 PB |
13250 | if test -x $with_build_time_tools/strip; then |
13251 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13252 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
efd58f08 RW |
13253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13254 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
207258c8 | 13255 | else |
efd58f08 RW |
13256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13257 | $as_echo "no" >&6; } | |
207258c8 | 13258 | fi |
fef3f213 PB |
13259 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13260 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d058b81b MS |
13261 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13262 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
fef3f213 PB |
13263 | fi |
13264 | fi | |
b58b6ee1 | 13265 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
13266 | # Extract the first word of "strip", so it can be a program name with args. |
13267 | set dummy strip; ac_word=$2 | |
efd58f08 RW |
13268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13269 | $as_echo_n "checking for $ac_word... " >&6; } | |
13270 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
13271 | $as_echo_n "(cached) " >&6 | |
fef3f213 | 13272 | else |
b58b6ee1 DJ |
13273 | case $STRIP_FOR_TARGET in |
13274 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
13275 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13276 | ;; | |
fef3f213 | 13277 | *) |
b58b6ee1 DJ |
13278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13279 | for as_dir in $gcc_cv_tool_dirs | |
13280 | do | |
13281 | IFS=$as_save_IFS | |
13282 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
13283 | for ac_exec_ext in '' $ac_executable_extensions; do |
13284 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 13285 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 13286 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
13287 | break 2 |
13288 | fi | |
13289 | done | |
efd58f08 RW |
13290 | done |
13291 | IFS=$as_save_IFS | |
b58b6ee1 | 13292 | |
fef3f213 PB |
13293 | ;; |
13294 | esac | |
13295 | fi | |
b58b6ee1 | 13296 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
fef3f213 | 13297 | if test -n "$STRIP_FOR_TARGET"; then |
efd58f08 RW |
13298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13299 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
fef3f213 | 13300 | else |
efd58f08 RW |
13301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13302 | $as_echo "no" >&6; } | |
fef3f213 PB |
13303 | fi |
13304 | ||
efd58f08 | 13305 | |
fef3f213 PB |
13306 | fi |
13307 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
82026593 AO |
13308 | |
13309 | ||
13310 | if test -n "$STRIP_FOR_TARGET"; then | |
13311 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13312 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13313 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13314 | fi | |
13315 | ||
13316 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13317 | for ncn_progname in strip; do | |
13318 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13319 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
13320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13321 | $as_echo_n "checking for $ac_word... " >&6; } | |
13322 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13323 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
13324 | else |
13325 | if test -n "$STRIP_FOR_TARGET"; then | |
13326 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13327 | else | |
13328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13329 | for as_dir in $PATH | |
13330 | do | |
13331 | IFS=$as_save_IFS | |
13332 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
13333 | for ac_exec_ext in '' $ac_executable_extensions; do |
13334 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 13335 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
efd58f08 | 13336 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
13337 | break 2 |
13338 | fi | |
13339 | done | |
efd58f08 RW |
13340 | done |
13341 | IFS=$as_save_IFS | |
82026593 AO |
13342 | |
13343 | fi | |
13344 | fi | |
13345 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13346 | if test -n "$STRIP_FOR_TARGET"; then | |
efd58f08 RW |
13347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13348 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
82026593 | 13349 | else |
efd58f08 RW |
13350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13351 | $as_echo "no" >&6; } | |
82026593 AO |
13352 | fi |
13353 | ||
efd58f08 | 13354 | |
82026593 AO |
13355 | done |
13356 | fi | |
13357 | ||
13358 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 13359 | for ncn_progname in strip; do |
efd58f08 RW |
13360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13361 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
13362 | if test -x $with_build_time_tools/${ncn_progname}; then |
13363 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
13364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13365 | $as_echo "yes" >&6; } | |
fef3f213 PB |
13366 | break |
13367 | else | |
efd58f08 RW |
13368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13369 | $as_echo "no" >&6; } | |
fef3f213 PB |
13370 | fi |
13371 | done | |
13372 | fi | |
13373 | ||
13374 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13375 | for ncn_progname in strip; do | |
13376 | if test -n "$ncn_target_tool_prefix"; then | |
13377 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6a33f745 | 13378 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
13379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13380 | $as_echo_n "checking for $ac_word... " >&6; } | |
13381 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13382 | $as_echo_n "(cached) " >&6 | |
6a33f745 GK |
13383 | else |
13384 | if test -n "$STRIP_FOR_TARGET"; then | |
13385 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
b58b6ee1 DJ |
13386 | else |
13387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13388 | for as_dir in $PATH | |
13389 | do | |
13390 | IFS=$as_save_IFS | |
13391 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
13392 | for ac_exec_ext in '' $ac_executable_extensions; do |
13393 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 13394 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 13395 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
13396 | break 2 |
13397 | fi | |
13398 | done | |
efd58f08 RW |
13399 | done |
13400 | IFS=$as_save_IFS | |
b58b6ee1 | 13401 | |
6a33f745 GK |
13402 | fi |
13403 | fi | |
b58b6ee1 | 13404 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
6a33f745 | 13405 | if test -n "$STRIP_FOR_TARGET"; then |
efd58f08 RW |
13406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13407 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
6a33f745 | 13408 | else |
efd58f08 RW |
13409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13410 | $as_echo "no" >&6; } | |
6a33f745 GK |
13411 | fi |
13412 | ||
efd58f08 | 13413 | |
fef3f213 PB |
13414 | fi |
13415 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13416 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6a33f745 | 13417 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
13418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13419 | $as_echo_n "checking for $ac_word... " >&6; } | |
13420 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13421 | $as_echo_n "(cached) " >&6 | |
6a33f745 GK |
13422 | else |
13423 | if test -n "$STRIP_FOR_TARGET"; then | |
13424 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13425 | else | |
b58b6ee1 DJ |
13426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13427 | for as_dir in $PATH | |
13428 | do | |
13429 | IFS=$as_save_IFS | |
13430 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
13431 | for ac_exec_ext in '' $ac_executable_extensions; do |
13432 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 13433 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
efd58f08 | 13434 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
13435 | break 2 |
13436 | fi | |
13437 | done | |
efd58f08 RW |
13438 | done |
13439 | IFS=$as_save_IFS | |
b58b6ee1 | 13440 | |
6a33f745 GK |
13441 | fi |
13442 | fi | |
b58b6ee1 | 13443 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
6a33f745 | 13444 | if test -n "$STRIP_FOR_TARGET"; then |
efd58f08 RW |
13445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13446 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
6a33f745 | 13447 | else |
efd58f08 RW |
13448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13449 | $as_echo "no" >&6; } | |
6a33f745 | 13450 | fi |
b58b6ee1 | 13451 | |
efd58f08 | 13452 | |
fef3f213 PB |
13453 | fi |
13454 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13455 | done | |
13456 | fi | |
b58b6ee1 | 13457 | |
6a33f745 GK |
13458 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13459 | set dummy strip | |
13460 | if test $build = $target ; then | |
13461 | STRIP_FOR_TARGET="$2" | |
13462 | else | |
13463 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13464 | fi | |
d058b81b MS |
13465 | else |
13466 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
6a33f745 GK |
13467 | fi |
13468 | ||
207258c8 PB |
13469 | else |
13470 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
fef3f213 PB |
13471 | fi |
13472 | ||
13473 | ||
13474 | ||
13475 | ||
13476 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13477 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
13478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13479 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
207258c8 PB |
13480 | if test -x $with_build_time_tools/windres; then |
13481 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13482 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
efd58f08 RW |
13483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13484 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
207258c8 | 13485 | else |
efd58f08 RW |
13486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13487 | $as_echo "no" >&6; } | |
207258c8 | 13488 | fi |
fef3f213 PB |
13489 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13490 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d058b81b MS |
13491 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13492 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
fef3f213 PB |
13493 | fi |
13494 | fi | |
b58b6ee1 | 13495 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
13496 | # Extract the first word of "windres", so it can be a program name with args. |
13497 | set dummy windres; ac_word=$2 | |
efd58f08 RW |
13498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13499 | $as_echo_n "checking for $ac_word... " >&6; } | |
13500 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
13501 | $as_echo_n "(cached) " >&6 | |
fef3f213 | 13502 | else |
b58b6ee1 DJ |
13503 | case $WINDRES_FOR_TARGET in |
13504 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
13505 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13506 | ;; | |
fef3f213 | 13507 | *) |
b58b6ee1 DJ |
13508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13509 | for as_dir in $gcc_cv_tool_dirs | |
13510 | do | |
13511 | IFS=$as_save_IFS | |
13512 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
13513 | for ac_exec_ext in '' $ac_executable_extensions; do |
13514 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 13515 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 13516 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
13517 | break 2 |
13518 | fi | |
13519 | done | |
efd58f08 RW |
13520 | done |
13521 | IFS=$as_save_IFS | |
b58b6ee1 | 13522 | |
fef3f213 PB |
13523 | ;; |
13524 | esac | |
13525 | fi | |
b58b6ee1 | 13526 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
fef3f213 | 13527 | if test -n "$WINDRES_FOR_TARGET"; then |
efd58f08 RW |
13528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13529 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
fef3f213 | 13530 | else |
efd58f08 RW |
13531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13532 | $as_echo "no" >&6; } | |
fef3f213 PB |
13533 | fi |
13534 | ||
efd58f08 | 13535 | |
fef3f213 PB |
13536 | fi |
13537 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
82026593 AO |
13538 | |
13539 | ||
13540 | if test -n "$WINDRES_FOR_TARGET"; then | |
13541 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13542 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13543 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13544 | fi | |
13545 | ||
13546 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13547 | for ncn_progname in windres; do | |
13548 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13549 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
13550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13551 | $as_echo_n "checking for $ac_word... " >&6; } | |
13552 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13553 | $as_echo_n "(cached) " >&6 | |
82026593 AO |
13554 | else |
13555 | if test -n "$WINDRES_FOR_TARGET"; then | |
13556 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13557 | else | |
13558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13559 | for as_dir in $PATH | |
13560 | do | |
13561 | IFS=$as_save_IFS | |
13562 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
13563 | for ac_exec_ext in '' $ac_executable_extensions; do |
13564 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
82026593 | 13565 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
efd58f08 | 13566 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
13567 | break 2 |
13568 | fi | |
13569 | done | |
efd58f08 RW |
13570 | done |
13571 | IFS=$as_save_IFS | |
82026593 AO |
13572 | |
13573 | fi | |
13574 | fi | |
13575 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13576 | if test -n "$WINDRES_FOR_TARGET"; then | |
efd58f08 RW |
13577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13578 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
82026593 | 13579 | else |
efd58f08 RW |
13580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13581 | $as_echo "no" >&6; } | |
82026593 AO |
13582 | fi |
13583 | ||
efd58f08 | 13584 | |
82026593 AO |
13585 | done |
13586 | fi | |
13587 | ||
13588 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 13589 | for ncn_progname in windres; do |
efd58f08 RW |
13590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13591 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
13592 | if test -x $with_build_time_tools/${ncn_progname}; then |
13593 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
13594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13595 | $as_echo "yes" >&6; } | |
fef3f213 PB |
13596 | break |
13597 | else | |
efd58f08 RW |
13598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13599 | $as_echo "no" >&6; } | |
fef3f213 PB |
13600 | fi |
13601 | done | |
13602 | fi | |
13603 | ||
13604 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13605 | for ncn_progname in windres; do | |
13606 | if test -n "$ncn_target_tool_prefix"; then | |
13607 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 13608 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
13609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13610 | $as_echo_n "checking for $ac_word... " >&6; } | |
13611 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13612 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 13613 | else |
5fb28bcc PB |
13614 | if test -n "$WINDRES_FOR_TARGET"; then |
13615 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
a0c92996 | 13616 | else |
b58b6ee1 DJ |
13617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13618 | for as_dir in $PATH | |
13619 | do | |
13620 | IFS=$as_save_IFS | |
13621 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
13622 | for ac_exec_ext in '' $ac_executable_extensions; do |
13623 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 13624 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 13625 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
13626 | break 2 |
13627 | fi | |
13628 | done | |
efd58f08 RW |
13629 | done |
13630 | IFS=$as_save_IFS | |
b58b6ee1 | 13631 | |
a0c92996 AC |
13632 | fi |
13633 | fi | |
b58b6ee1 | 13634 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
5fb28bcc | 13635 | if test -n "$WINDRES_FOR_TARGET"; then |
efd58f08 RW |
13636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13637 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
a0c92996 | 13638 | else |
efd58f08 RW |
13639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13640 | $as_echo "no" >&6; } | |
a0c92996 AC |
13641 | fi |
13642 | ||
efd58f08 | 13643 | |
fef3f213 PB |
13644 | fi |
13645 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13646 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 13647 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
13648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13649 | $as_echo_n "checking for $ac_word... " >&6; } | |
13650 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13651 | $as_echo_n "(cached) " >&6 | |
a0c92996 | 13652 | else |
60cfca65 PB |
13653 | if test -n "$WINDRES_FOR_TARGET"; then |
13654 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
a0c92996 | 13655 | else |
b58b6ee1 DJ |
13656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13657 | for as_dir in $PATH | |
13658 | do | |
13659 | IFS=$as_save_IFS | |
13660 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
13661 | for ac_exec_ext in '' $ac_executable_extensions; do |
13662 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b58b6ee1 | 13663 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
efd58f08 | 13664 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
13665 | break 2 |
13666 | fi | |
13667 | done | |
efd58f08 RW |
13668 | done |
13669 | IFS=$as_save_IFS | |
b58b6ee1 | 13670 | |
a0c92996 AC |
13671 | fi |
13672 | fi | |
b58b6ee1 | 13673 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
60cfca65 | 13674 | if test -n "$WINDRES_FOR_TARGET"; then |
efd58f08 RW |
13675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13676 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
a0c92996 | 13677 | else |
efd58f08 RW |
13678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13679 | $as_echo "no" >&6; } | |
a0c92996 | 13680 | fi |
b58b6ee1 | 13681 | |
efd58f08 | 13682 | |
fef3f213 PB |
13683 | fi |
13684 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13685 | done | |
13686 | fi | |
b58b6ee1 | 13687 | |
60cfca65 PB |
13688 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13689 | set dummy windres | |
13690 | if test $build = $target ; then | |
13691 | WINDRES_FOR_TARGET="$2" | |
a0c92996 | 13692 | else |
60cfca65 | 13693 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
a0c92996 | 13694 | fi |
d058b81b MS |
13695 | else |
13696 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
a0c92996 AC |
13697 | fi |
13698 | ||
207258c8 PB |
13699 | else |
13700 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
fef3f213 PB |
13701 | fi |
13702 | ||
712e2a32 | 13703 | |
bffcbe34 NC |
13704 | |
13705 | ||
13706 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13707 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
13708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13709 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
bffcbe34 NC |
13710 | if test -x $with_build_time_tools/windmc; then |
13711 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13712 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
efd58f08 RW |
13713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13714 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
bffcbe34 | 13715 | else |
efd58f08 RW |
13716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13717 | $as_echo "no" >&6; } | |
bffcbe34 NC |
13718 | fi |
13719 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13720 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
13721 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
13722 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13723 | fi | |
13724 | fi | |
13725 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13726 | # Extract the first word of "windmc", so it can be a program name with args. | |
13727 | set dummy windmc; ac_word=$2 | |
efd58f08 RW |
13728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13729 | $as_echo_n "checking for $ac_word... " >&6; } | |
13730 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13731 | $as_echo_n "(cached) " >&6 | |
bffcbe34 NC |
13732 | else |
13733 | case $WINDMC_FOR_TARGET in | |
13734 | [\\/]* | ?:[\\/]*) | |
13735 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13736 | ;; | |
13737 | *) | |
13738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13739 | for as_dir in $gcc_cv_tool_dirs | |
13740 | do | |
13741 | IFS=$as_save_IFS | |
13742 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
13743 | for ac_exec_ext in '' $ac_executable_extensions; do |
13744 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bffcbe34 | 13745 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 13746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bffcbe34 NC |
13747 | break 2 |
13748 | fi | |
13749 | done | |
efd58f08 RW |
13750 | done |
13751 | IFS=$as_save_IFS | |
bffcbe34 NC |
13752 | |
13753 | ;; | |
13754 | esac | |
13755 | fi | |
13756 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
bffcbe34 | 13757 | if test -n "$WINDMC_FOR_TARGET"; then |
efd58f08 RW |
13758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13759 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
bffcbe34 | 13760 | else |
efd58f08 RW |
13761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13762 | $as_echo "no" >&6; } | |
bffcbe34 NC |
13763 | fi |
13764 | ||
efd58f08 | 13765 | |
bffcbe34 NC |
13766 | fi |
13767 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13768 | ||
13769 | ||
13770 | if test -n "$WINDMC_FOR_TARGET"; then | |
13771 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13772 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13773 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13774 | fi | |
13775 | ||
13776 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13777 | for ncn_progname in windmc; do | |
13778 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13779 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
13780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13781 | $as_echo_n "checking for $ac_word... " >&6; } | |
13782 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13783 | $as_echo_n "(cached) " >&6 | |
bffcbe34 NC |
13784 | else |
13785 | if test -n "$WINDMC_FOR_TARGET"; then | |
13786 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13787 | else | |
13788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13789 | for as_dir in $PATH | |
13790 | do | |
13791 | IFS=$as_save_IFS | |
13792 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
13793 | for ac_exec_ext in '' $ac_executable_extensions; do |
13794 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bffcbe34 | 13795 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
efd58f08 | 13796 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bffcbe34 NC |
13797 | break 2 |
13798 | fi | |
13799 | done | |
efd58f08 RW |
13800 | done |
13801 | IFS=$as_save_IFS | |
bffcbe34 NC |
13802 | |
13803 | fi | |
13804 | fi | |
13805 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13806 | if test -n "$WINDMC_FOR_TARGET"; then | |
efd58f08 RW |
13807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13808 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
bffcbe34 | 13809 | else |
efd58f08 RW |
13810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13811 | $as_echo "no" >&6; } | |
bffcbe34 NC |
13812 | fi |
13813 | ||
efd58f08 | 13814 | |
bffcbe34 NC |
13815 | done |
13816 | fi | |
13817 | ||
13818 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13819 | for ncn_progname in windmc; do | |
efd58f08 RW |
13820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13821 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
bffcbe34 NC |
13822 | if test -x $with_build_time_tools/${ncn_progname}; then |
13823 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
13824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13825 | $as_echo "yes" >&6; } | |
bffcbe34 NC |
13826 | break |
13827 | else | |
efd58f08 RW |
13828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13829 | $as_echo "no" >&6; } | |
bffcbe34 NC |
13830 | fi |
13831 | done | |
13832 | fi | |
13833 | ||
13834 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13835 | for ncn_progname in windmc; do | |
13836 | if test -n "$ncn_target_tool_prefix"; then | |
13837 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13838 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
13839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13840 | $as_echo_n "checking for $ac_word... " >&6; } | |
13841 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13842 | $as_echo_n "(cached) " >&6 | |
bffcbe34 NC |
13843 | else |
13844 | if test -n "$WINDMC_FOR_TARGET"; then | |
13845 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13846 | else | |
13847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13848 | for as_dir in $PATH | |
13849 | do | |
13850 | IFS=$as_save_IFS | |
13851 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
13852 | for ac_exec_ext in '' $ac_executable_extensions; do |
13853 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bffcbe34 | 13854 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 13855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bffcbe34 NC |
13856 | break 2 |
13857 | fi | |
13858 | done | |
efd58f08 RW |
13859 | done |
13860 | IFS=$as_save_IFS | |
bffcbe34 NC |
13861 | |
13862 | fi | |
13863 | fi | |
13864 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13865 | if test -n "$WINDMC_FOR_TARGET"; then | |
efd58f08 RW |
13866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13867 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
bffcbe34 | 13868 | else |
efd58f08 RW |
13869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13870 | $as_echo "no" >&6; } | |
bffcbe34 NC |
13871 | fi |
13872 | ||
efd58f08 | 13873 | |
bffcbe34 NC |
13874 | fi |
13875 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13876 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13877 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
13878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13879 | $as_echo_n "checking for $ac_word... " >&6; } | |
13880 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13881 | $as_echo_n "(cached) " >&6 | |
bffcbe34 NC |
13882 | else |
13883 | if test -n "$WINDMC_FOR_TARGET"; then | |
13884 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13885 | else | |
13886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13887 | for as_dir in $PATH | |
13888 | do | |
13889 | IFS=$as_save_IFS | |
13890 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
13891 | for ac_exec_ext in '' $ac_executable_extensions; do |
13892 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bffcbe34 | 13893 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
efd58f08 | 13894 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bffcbe34 NC |
13895 | break 2 |
13896 | fi | |
13897 | done | |
efd58f08 RW |
13898 | done |
13899 | IFS=$as_save_IFS | |
bffcbe34 NC |
13900 | |
13901 | fi | |
13902 | fi | |
13903 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13904 | if test -n "$WINDMC_FOR_TARGET"; then | |
efd58f08 RW |
13905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13906 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
bffcbe34 | 13907 | else |
efd58f08 RW |
13908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13909 | $as_echo "no" >&6; } | |
bffcbe34 NC |
13910 | fi |
13911 | ||
efd58f08 | 13912 | |
bffcbe34 NC |
13913 | fi |
13914 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13915 | done | |
13916 | fi | |
13917 | ||
13918 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13919 | set dummy windmc | |
13920 | if test $build = $target ; then | |
13921 | WINDMC_FOR_TARGET="$2" | |
13922 | else | |
13923 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13924 | fi | |
13925 | else | |
13926 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
13927 | fi | |
13928 | ||
13929 | else | |
13930 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13931 | fi | |
13932 | ||
13933 | ||
a7dc05b5 PB |
13934 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13935 | ||
efd58f08 RW |
13936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13937 | $as_echo_n "checking where to find the target ar... " >&6; } | |
a7dc05b5 | 13938 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
13939 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13940 | # We already found the complete path | |
7a81a717 | 13941 | ac_dir=`dirname $AR_FOR_TARGET` |
efd58f08 RW |
13942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13943 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
13944 | else |
13945 | # Canadian cross, just use what we found | |
efd58f08 RW |
13946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13947 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 13948 | fi |
a7dc05b5 PB |
13949 | else |
13950 | ok=yes | |
13951 | case " ${configdirs} " in | |
13952 | *" binutils "*) ;; | |
13953 | *) ok=no ;; | |
13954 | esac | |
b58b6ee1 | 13955 | |
a7dc05b5 PB |
13956 | if test $ok = yes; then |
13957 | # An in-tree tool is available and we can use it | |
13958 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
efd58f08 RW |
13959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13960 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
13961 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13962 | # We already found the complete path | |
7a81a717 | 13963 | ac_dir=`dirname $AR_FOR_TARGET` |
efd58f08 RW |
13964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13965 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
13966 | elif test "x$target" = "x$host"; then |
13967 | # We can use an host tool | |
13968 | AR_FOR_TARGET='$(AR)' | |
efd58f08 RW |
13969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13970 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
13971 | else |
13972 | # We need a cross tool | |
efd58f08 RW |
13973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13974 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
13975 | fi |
13976 | fi | |
42f55f77 | 13977 | |
efd58f08 RW |
13978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13979 | $as_echo_n "checking where to find the target as... " >&6; } | |
a7dc05b5 | 13980 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
13981 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13982 | # We already found the complete path | |
7a81a717 | 13983 | ac_dir=`dirname $AS_FOR_TARGET` |
efd58f08 RW |
13984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13985 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
13986 | else |
13987 | # Canadian cross, just use what we found | |
efd58f08 RW |
13988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13989 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 13990 | fi |
a7dc05b5 PB |
13991 | else |
13992 | ok=yes | |
13993 | case " ${configdirs} " in | |
13994 | *" gas "*) ;; | |
13995 | *) ok=no ;; | |
13996 | esac | |
b58b6ee1 | 13997 | |
a7dc05b5 PB |
13998 | if test $ok = yes; then |
13999 | # An in-tree tool is available and we can use it | |
14000 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
efd58f08 RW |
14001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14002 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14003 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
14004 | # We already found the complete path | |
7a81a717 | 14005 | ac_dir=`dirname $AS_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; } | |
a7dc05b5 PB |
14008 | elif test "x$target" = "x$host"; then |
14009 | # We can use an host tool | |
14010 | AS_FOR_TARGET='$(AS)' | |
efd58f08 RW |
14011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14012 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14013 | else |
14014 | # We need a cross tool | |
efd58f08 RW |
14015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14016 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14017 | fi |
14018 | fi | |
42f55f77 | 14019 | |
efd58f08 RW |
14020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
14021 | $as_echo_n "checking where to find the target cc... " >&6; } | |
a7dc05b5 | 14022 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14023 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14024 | # We already found the complete path | |
7a81a717 | 14025 | ac_dir=`dirname $CC_FOR_TARGET` |
efd58f08 RW |
14026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14027 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14028 | else |
14029 | # Canadian cross, just use what we found | |
efd58f08 RW |
14030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14031 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14032 | fi |
a7dc05b5 PB |
14033 | else |
14034 | ok=yes | |
14035 | case " ${configdirs} " in | |
14036 | *" gcc "*) ;; | |
14037 | *) ok=no ;; | |
14038 | esac | |
b58b6ee1 | 14039 | |
a7dc05b5 PB |
14040 | if test $ok = yes; then |
14041 | # An in-tree tool is available and we can use it | |
14042 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
efd58f08 RW |
14043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14044 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14045 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14046 | # We already found the complete path | |
7a81a717 | 14047 | ac_dir=`dirname $CC_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; } | |
a7dc05b5 PB |
14050 | elif test "x$target" = "x$host"; then |
14051 | # We can use an host tool | |
14052 | CC_FOR_TARGET='$(CC)' | |
efd58f08 RW |
14053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14054 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14055 | else |
14056 | # We need a cross tool | |
efd58f08 RW |
14057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14058 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14059 | fi |
14060 | fi | |
42f55f77 | 14061 | |
efd58f08 RW |
14062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
14063 | $as_echo_n "checking where to find the target c++... " >&6; } | |
a7dc05b5 | 14064 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14065 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14066 | # We already found the complete path | |
7a81a717 | 14067 | ac_dir=`dirname $CXX_FOR_TARGET` |
efd58f08 RW |
14068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14069 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14070 | else |
14071 | # Canadian cross, just use what we found | |
efd58f08 RW |
14072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14073 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14074 | fi |
a7dc05b5 PB |
14075 | else |
14076 | ok=yes | |
14077 | case " ${configdirs} " in | |
14078 | *" gcc "*) ;; | |
14079 | *) ok=no ;; | |
14080 | esac | |
14081 | case ,${enable_languages}, in | |
14082 | *,c++,*) ;; | |
14083 | *) ok=no ;; | |
14084 | esac | |
14085 | if test $ok = yes; then | |
14086 | # An in-tree tool is available and we can use it | |
111ced6d | 14087 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
efd58f08 RW |
14088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14089 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14090 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14091 | # We already found the complete path | |
7a81a717 | 14092 | ac_dir=`dirname $CXX_FOR_TARGET` |
efd58f08 RW |
14093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14094 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14095 | elif test "x$target" = "x$host"; then |
14096 | # We can use an host tool | |
14097 | CXX_FOR_TARGET='$(CXX)' | |
efd58f08 RW |
14098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14099 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14100 | else |
14101 | # We need a cross tool | |
efd58f08 RW |
14102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14103 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14104 | fi |
14105 | fi | |
42f55f77 | 14106 | |
efd58f08 RW |
14107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
14108 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
a7dc05b5 | 14109 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14110 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14111 | # We already found the complete path | |
7a81a717 | 14112 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
efd58f08 RW |
14113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14114 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14115 | else |
14116 | # Canadian cross, just use what we found | |
efd58f08 RW |
14117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14118 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14119 | fi |
a7dc05b5 PB |
14120 | else |
14121 | ok=yes | |
14122 | case " ${configdirs} " in | |
14123 | *" gcc "*) ;; | |
14124 | *) ok=no ;; | |
14125 | esac | |
14126 | case ,${enable_languages}, in | |
14127 | *,c++,*) ;; | |
14128 | *) ok=no ;; | |
14129 | esac | |
14130 | if test $ok = yes; then | |
14131 | # An in-tree tool is available and we can use it | |
111ced6d | 14132 | RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
efd58f08 RW |
14133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14134 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14135 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14136 | # We already found the complete path | |
7a81a717 | 14137 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
efd58f08 RW |
14138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14139 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14140 | elif test "x$target" = "x$host"; then |
14141 | # We can use an host tool | |
14142 | RAW_CXX_FOR_TARGET='$(CXX)' | |
efd58f08 RW |
14143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14144 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14145 | else |
14146 | # We need a cross tool | |
efd58f08 RW |
14147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14148 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14149 | fi |
14150 | fi | |
42f55f77 | 14151 | |
efd58f08 RW |
14152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
14153 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
a7dc05b5 | 14154 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14155 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14156 | # We already found the complete path | |
7a81a717 | 14157 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
efd58f08 RW |
14158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14159 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14160 | else |
14161 | # Canadian cross, just use what we found | |
efd58f08 RW |
14162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14163 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14164 | fi |
a7dc05b5 PB |
14165 | else |
14166 | ok=yes | |
14167 | case " ${configdirs} " in | |
14168 | *" binutils "*) ;; | |
14169 | *) ok=no ;; | |
14170 | esac | |
b58b6ee1 | 14171 | |
a7dc05b5 PB |
14172 | if test $ok = yes; then |
14173 | # An in-tree tool is available and we can use it | |
14174 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
efd58f08 RW |
14175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14176 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14177 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14178 | # We already found the complete path | |
7a81a717 | 14179 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
efd58f08 RW |
14180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14181 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14182 | elif test "x$target" = "x$host"; then |
14183 | # We can use an host tool | |
14184 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
efd58f08 RW |
14185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14186 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14187 | else |
14188 | # We need a cross tool | |
efd58f08 RW |
14189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14190 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14191 | fi |
14192 | fi | |
42f55f77 | 14193 | |
efd58f08 RW |
14194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
14195 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
a7dc05b5 | 14196 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14197 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14198 | # We already found the complete path | |
7a81a717 | 14199 | ac_dir=`dirname $GCC_FOR_TARGET` |
efd58f08 RW |
14200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14201 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14202 | else |
14203 | # Canadian cross, just use what we found | |
efd58f08 RW |
14204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14205 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14206 | fi |
a7dc05b5 PB |
14207 | else |
14208 | ok=yes | |
14209 | case " ${configdirs} " in | |
14210 | *" gcc "*) ;; | |
14211 | *) ok=no ;; | |
14212 | esac | |
b58b6ee1 | 14213 | |
a7dc05b5 PB |
14214 | if test $ok = yes; then |
14215 | # An in-tree tool is available and we can use it | |
14216 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
efd58f08 RW |
14217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14218 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14219 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14220 | # We already found the complete path | |
7a81a717 | 14221 | ac_dir=`dirname $GCC_FOR_TARGET` |
efd58f08 RW |
14222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14223 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14224 | elif test "x$target" = "x$host"; then |
14225 | # We can use an host tool | |
14226 | GCC_FOR_TARGET='$()' | |
efd58f08 RW |
14227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14228 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14229 | else |
14230 | # We need a cross tool | |
efd58f08 RW |
14231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14232 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14233 | fi |
14234 | fi | |
42f55f77 | 14235 | |
efd58f08 RW |
14236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
14237 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
a7dc05b5 | 14238 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14239 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14240 | # We already found the complete path | |
7a81a717 | 14241 | ac_dir=`dirname $GCJ_FOR_TARGET` |
efd58f08 RW |
14242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14243 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14244 | else |
14245 | # Canadian cross, just use what we found | |
efd58f08 RW |
14246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14247 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14248 | fi |
a7dc05b5 PB |
14249 | else |
14250 | ok=yes | |
14251 | case " ${configdirs} " in | |
14252 | *" gcc "*) ;; | |
14253 | *) ok=no ;; | |
14254 | esac | |
14255 | case ,${enable_languages}, in | |
14256 | *,java,*) ;; | |
14257 | *) ok=no ;; | |
14258 | esac | |
14259 | if test $ok = yes; then | |
14260 | # An in-tree tool is available and we can use it | |
14261 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
efd58f08 RW |
14262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14263 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14264 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14265 | # We already found the complete path | |
7a81a717 | 14266 | ac_dir=`dirname $GCJ_FOR_TARGET` |
efd58f08 RW |
14267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14268 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14269 | elif test "x$target" = "x$host"; then |
14270 | # We can use an host tool | |
14271 | GCJ_FOR_TARGET='$(GCJ)' | |
efd58f08 RW |
14272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14273 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14274 | else |
14275 | # We need a cross tool | |
efd58f08 RW |
14276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14277 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14278 | fi |
14279 | fi | |
42f55f77 | 14280 | |
efd58f08 RW |
14281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14282 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
a7dc05b5 | 14283 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14284 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14285 | # We already found the complete path | |
7a81a717 | 14286 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
efd58f08 RW |
14287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14288 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14289 | else |
14290 | # Canadian cross, just use what we found | |
efd58f08 RW |
14291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14292 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14293 | fi |
a7dc05b5 PB |
14294 | else |
14295 | ok=yes | |
14296 | case " ${configdirs} " in | |
14297 | *" gcc "*) ;; | |
14298 | *) ok=no ;; | |
14299 | esac | |
14300 | case ,${enable_languages}, in | |
14301 | *,fortran,*) ;; | |
14302 | *) ok=no ;; | |
14303 | esac | |
14304 | if test $ok = yes; then | |
14305 | # An in-tree tool is available and we can use it | |
14306 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
efd58f08 RW |
14307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14308 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14309 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14310 | # We already found the complete path | |
7a81a717 | 14311 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
efd58f08 RW |
14312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14313 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14314 | elif test "x$target" = "x$host"; then |
14315 | # We can use an host tool | |
14316 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
efd58f08 RW |
14317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14318 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14319 | else |
14320 | # We need a cross tool | |
efd58f08 RW |
14321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14322 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14323 | fi |
14324 | fi | |
42f55f77 | 14325 | |
d5b7129a ILT |
14326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14327 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14328 | if test "x${build}" != "x${host}" ; then | |
14329 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14330 | # We already found the complete path | |
14331 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14333 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14334 | else | |
14335 | # Canadian cross, just use what we found | |
14336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14337 | $as_echo "pre-installed" >&6; } | |
14338 | fi | |
14339 | else | |
14340 | ok=yes | |
14341 | case " ${configdirs} " in | |
14342 | *" gcc "*) ;; | |
14343 | *) ok=no ;; | |
14344 | esac | |
14345 | case ,${enable_languages}, in | |
14346 | *,go,*) ;; | |
14347 | *) ok=no ;; | |
14348 | esac | |
14349 | if test $ok = yes; then | |
14350 | # An in-tree tool is available and we can use it | |
14351 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14353 | $as_echo "just compiled" >&6; } | |
14354 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14355 | # We already found the complete path | |
14356 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14358 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14359 | elif test "x$target" = "x$host"; then | |
14360 | # We can use an host tool | |
14361 | GOC_FOR_TARGET='$(GOC)' | |
14362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14363 | $as_echo "host tool" >&6; } | |
14364 | else | |
14365 | # We need a cross tool | |
14366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14367 | $as_echo "pre-installed" >&6; } | |
14368 | fi | |
14369 | fi | |
14370 | ||
efd58f08 RW |
14371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14372 | $as_echo_n "checking where to find the target ld... " >&6; } | |
a7dc05b5 | 14373 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14374 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14375 | # We already found the complete path | |
7a81a717 | 14376 | ac_dir=`dirname $LD_FOR_TARGET` |
efd58f08 RW |
14377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14378 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14379 | else |
14380 | # Canadian cross, just use what we found | |
efd58f08 RW |
14381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14382 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14383 | fi |
a7dc05b5 PB |
14384 | else |
14385 | ok=yes | |
14386 | case " ${configdirs} " in | |
14387 | *" ld "*) ;; | |
14388 | *) ok=no ;; | |
14389 | esac | |
b58b6ee1 | 14390 | |
a7dc05b5 PB |
14391 | if test $ok = yes; then |
14392 | # An in-tree tool is available and we can use it | |
14393 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
efd58f08 RW |
14394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14395 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14396 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14397 | # We already found the complete path | |
7a81a717 | 14398 | ac_dir=`dirname $LD_FOR_TARGET` |
efd58f08 RW |
14399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14400 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14401 | elif test "x$target" = "x$host"; then |
14402 | # We can use an host tool | |
14403 | LD_FOR_TARGET='$(LD)' | |
efd58f08 RW |
14404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14405 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14406 | else |
14407 | # We need a cross tool | |
efd58f08 RW |
14408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14409 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14410 | fi |
14411 | fi | |
42f55f77 | 14412 | |
efd58f08 RW |
14413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14414 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
a7dc05b5 | 14415 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14416 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14417 | # We already found the complete path | |
7a81a717 | 14418 | ac_dir=`dirname $LIPO_FOR_TARGET` |
efd58f08 RW |
14419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14420 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14421 | else |
14422 | # Canadian cross, just use what we found | |
efd58f08 RW |
14423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14424 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14425 | fi |
a7dc05b5 | 14426 | else |
fef3f213 PB |
14427 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14428 | # We already found the complete path | |
7a81a717 | 14429 | ac_dir=`dirname $LIPO_FOR_TARGET` |
efd58f08 RW |
14430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14431 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 | 14432 | elif test "x$target" = "x$host"; then |
a7dc05b5 PB |
14433 | # We can use an host tool |
14434 | LIPO_FOR_TARGET='$(LIPO)' | |
efd58f08 RW |
14435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14436 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14437 | else |
14438 | # We need a cross tool | |
efd58f08 RW |
14439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14440 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14441 | fi |
14442 | fi | |
42f55f77 | 14443 | |
efd58f08 RW |
14444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14445 | $as_echo_n "checking where to find the target nm... " >&6; } | |
a7dc05b5 | 14446 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14447 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14448 | # We already found the complete path | |
7a81a717 | 14449 | ac_dir=`dirname $NM_FOR_TARGET` |
efd58f08 RW |
14450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14451 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14452 | else |
14453 | # Canadian cross, just use what we found | |
efd58f08 RW |
14454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14455 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14456 | fi |
a7dc05b5 PB |
14457 | else |
14458 | ok=yes | |
14459 | case " ${configdirs} " in | |
14460 | *" binutils "*) ;; | |
14461 | *) ok=no ;; | |
14462 | esac | |
b58b6ee1 | 14463 | |
a7dc05b5 PB |
14464 | if test $ok = yes; then |
14465 | # An in-tree tool is available and we can use it | |
14466 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
efd58f08 RW |
14467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14468 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14469 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14470 | # We already found the complete path | |
7a81a717 | 14471 | ac_dir=`dirname $NM_FOR_TARGET` |
efd58f08 RW |
14472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14473 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14474 | elif test "x$target" = "x$host"; then |
14475 | # We can use an host tool | |
14476 | NM_FOR_TARGET='$(NM)' | |
efd58f08 RW |
14477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14478 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14479 | else |
14480 | # We need a cross tool | |
efd58f08 RW |
14481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14482 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14483 | fi |
14484 | fi | |
42f55f77 | 14485 | |
fe508576 CV |
14486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14487 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14488 | if test "x${build}" != "x${host}" ; then | |
14489 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14490 | # We already found the complete path | |
14491 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14493 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14494 | else | |
14495 | # Canadian cross, just use what we found | |
14496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14497 | $as_echo "pre-installed" >&6; } | |
14498 | fi | |
14499 | else | |
14500 | ok=yes | |
14501 | case " ${configdirs} " in | |
14502 | *" binutils "*) ;; | |
14503 | *) ok=no ;; | |
14504 | esac | |
14505 | ||
14506 | if test $ok = yes; then | |
14507 | # An in-tree tool is available and we can use it | |
14508 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14510 | $as_echo "just compiled" >&6; } | |
14511 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14512 | # We already found the complete path | |
14513 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14515 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14516 | elif test "x$target" = "x$host"; then | |
14517 | # We can use an host tool | |
14518 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' | |
14519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14520 | $as_echo "host tool" >&6; } | |
14521 | else | |
14522 | # We need a cross tool | |
14523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14524 | $as_echo "pre-installed" >&6; } | |
14525 | fi | |
14526 | fi | |
14527 | ||
efd58f08 RW |
14528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14529 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
a7dc05b5 | 14530 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14531 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14532 | # We already found the complete path | |
7a81a717 | 14533 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
efd58f08 RW |
14534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14535 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14536 | else |
14537 | # Canadian cross, just use what we found | |
efd58f08 RW |
14538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14539 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14540 | fi |
a7dc05b5 PB |
14541 | else |
14542 | ok=yes | |
14543 | case " ${configdirs} " in | |
14544 | *" binutils "*) ;; | |
14545 | *) ok=no ;; | |
14546 | esac | |
b58b6ee1 | 14547 | |
a7dc05b5 PB |
14548 | if test $ok = yes; then |
14549 | # An in-tree tool is available and we can use it | |
14550 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
efd58f08 RW |
14551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14552 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14553 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14554 | # We already found the complete path | |
7a81a717 | 14555 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
efd58f08 RW |
14556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14557 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14558 | elif test "x$target" = "x$host"; then |
14559 | # We can use an host tool | |
14560 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
efd58f08 RW |
14561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14562 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14563 | else |
14564 | # We need a cross tool | |
efd58f08 RW |
14565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14566 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14567 | fi |
14568 | fi | |
42f55f77 | 14569 | |
efd58f08 RW |
14570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14571 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
a7dc05b5 | 14572 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14573 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14574 | # We already found the complete path | |
7a81a717 | 14575 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
efd58f08 RW |
14576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14577 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14578 | else |
14579 | # Canadian cross, just use what we found | |
efd58f08 RW |
14580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14581 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14582 | fi |
a7dc05b5 PB |
14583 | else |
14584 | ok=yes | |
14585 | case " ${configdirs} " in | |
14586 | *" binutils "*) ;; | |
14587 | *) ok=no ;; | |
14588 | esac | |
b58b6ee1 | 14589 | |
a7dc05b5 PB |
14590 | if test $ok = yes; then |
14591 | # An in-tree tool is available and we can use it | |
14592 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
efd58f08 RW |
14593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14594 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14595 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14596 | # We already found the complete path | |
7a81a717 | 14597 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
efd58f08 RW |
14598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14599 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14600 | elif test "x$target" = "x$host"; then |
14601 | # We can use an host tool | |
14602 | RANLIB_FOR_TARGET='$(RANLIB)' | |
efd58f08 RW |
14603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14604 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14605 | else |
14606 | # We need a cross tool | |
efd58f08 RW |
14607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14608 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14609 | fi |
14610 | fi | |
42f55f77 | 14611 | |
46e7439b DD |
14612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14613 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14614 | if test "x${build}" != "x${host}" ; then | |
14615 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14616 | # We already found the complete path | |
14617 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14619 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14620 | else | |
14621 | # Canadian cross, just use what we found | |
14622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14623 | $as_echo "pre-installed" >&6; } | |
14624 | fi | |
14625 | else | |
14626 | ok=yes | |
14627 | case " ${configdirs} " in | |
14628 | *" binutils "*) ;; | |
14629 | *) ok=no ;; | |
14630 | esac | |
14631 | ||
14632 | if test $ok = yes; then | |
14633 | # An in-tree tool is available and we can use it | |
14634 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14636 | $as_echo "just compiled" >&6; } | |
14637 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14638 | # We already found the complete path | |
14639 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14641 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14642 | elif test "x$target" = "x$host"; then | |
14643 | # We can use an host tool | |
14644 | READELF_FOR_TARGET='$(READELF)' | |
14645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14646 | $as_echo "host tool" >&6; } | |
14647 | else | |
14648 | # We need a cross tool | |
14649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14650 | $as_echo "pre-installed" >&6; } | |
14651 | fi | |
14652 | fi | |
14653 | ||
efd58f08 RW |
14654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14655 | $as_echo_n "checking where to find the target strip... " >&6; } | |
a7dc05b5 | 14656 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14657 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14658 | # We already found the complete path | |
7a81a717 | 14659 | ac_dir=`dirname $STRIP_FOR_TARGET` |
efd58f08 RW |
14660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14661 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14662 | else |
14663 | # Canadian cross, just use what we found | |
efd58f08 RW |
14664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14665 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14666 | fi |
a7dc05b5 PB |
14667 | else |
14668 | ok=yes | |
14669 | case " ${configdirs} " in | |
14670 | *" binutils "*) ;; | |
14671 | *) ok=no ;; | |
14672 | esac | |
b58b6ee1 | 14673 | |
a7dc05b5 PB |
14674 | if test $ok = yes; then |
14675 | # An in-tree tool is available and we can use it | |
6f396dc7 | 14676 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
efd58f08 RW |
14677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14678 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14679 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14680 | # We already found the complete path | |
7a81a717 | 14681 | ac_dir=`dirname $STRIP_FOR_TARGET` |
efd58f08 RW |
14682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14683 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14684 | elif test "x$target" = "x$host"; then |
14685 | # We can use an host tool | |
14686 | STRIP_FOR_TARGET='$(STRIP)' | |
efd58f08 RW |
14687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14688 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14689 | else |
14690 | # We need a cross tool | |
efd58f08 RW |
14691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14692 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14693 | fi |
14694 | fi | |
42f55f77 | 14695 | |
efd58f08 RW |
14696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14697 | $as_echo_n "checking where to find the target windres... " >&6; } | |
a7dc05b5 | 14698 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14699 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14700 | # We already found the complete path | |
7a81a717 | 14701 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
efd58f08 RW |
14702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14703 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14704 | else |
14705 | # Canadian cross, just use what we found | |
efd58f08 RW |
14706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14707 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14708 | fi |
a7dc05b5 PB |
14709 | else |
14710 | ok=yes | |
14711 | case " ${configdirs} " in | |
14712 | *" binutils "*) ;; | |
14713 | *) ok=no ;; | |
14714 | esac | |
b58b6ee1 | 14715 | |
a7dc05b5 PB |
14716 | if test $ok = yes; then |
14717 | # An in-tree tool is available and we can use it | |
14718 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
efd58f08 RW |
14719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14720 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14721 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14722 | # We already found the complete path | |
7a81a717 | 14723 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
efd58f08 RW |
14724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14725 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14726 | elif test "x$target" = "x$host"; then |
14727 | # We can use an host tool | |
14728 | WINDRES_FOR_TARGET='$(WINDRES)' | |
efd58f08 RW |
14729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14730 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14731 | else |
14732 | # We need a cross tool | |
efd58f08 RW |
14733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14734 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 | 14735 | fi |
bafecfd6 | 14736 | fi |
ef76efc6 | 14737 | |
efd58f08 RW |
14738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14739 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
bffcbe34 NC |
14740 | if test "x${build}" != "x${host}" ; then |
14741 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14742 | # We already found the complete path | |
14743 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
efd58f08 RW |
14744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14745 | $as_echo "pre-installed in $ac_dir" >&6; } | |
bffcbe34 NC |
14746 | else |
14747 | # Canadian cross, just use what we found | |
efd58f08 RW |
14748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14749 | $as_echo "pre-installed" >&6; } | |
bffcbe34 NC |
14750 | fi |
14751 | else | |
14752 | ok=yes | |
14753 | case " ${configdirs} " in | |
14754 | *" binutils "*) ;; | |
14755 | *) ok=no ;; | |
14756 | esac | |
14757 | ||
14758 | if test $ok = yes; then | |
14759 | # An in-tree tool is available and we can use it | |
14760 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
efd58f08 RW |
14761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14762 | $as_echo "just compiled" >&6; } | |
bffcbe34 NC |
14763 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14764 | # We already found the complete path | |
14765 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
efd58f08 RW |
14766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14767 | $as_echo "pre-installed in $ac_dir" >&6; } | |
bffcbe34 NC |
14768 | elif test "x$target" = "x$host"; then |
14769 | # We can use an host tool | |
14770 | WINDMC_FOR_TARGET='$(WINDMC)' | |
efd58f08 RW |
14771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14772 | $as_echo "host tool" >&6; } | |
bffcbe34 NC |
14773 | else |
14774 | # We need a cross tool | |
efd58f08 RW |
14775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14776 | $as_echo "pre-installed" >&6; } | |
bffcbe34 NC |
14777 | fi |
14778 | fi | |
14779 | ||
ef76efc6 NN |
14780 | |
14781 | ||
a7dc05b5 | 14782 | |
42f55f77 | 14783 | |
bafecfd6 NN |
14784 | # Certain tools may need extra flags. |
14785 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14786 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14787 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14788 | ||
a7dc05b5 PB |
14789 | # When building target libraries, except in a Canadian cross, we use |
14790 | # the same toolchain as the compiler we just built. | |
14791 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14792 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14793 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14794 | if test $host = $build; then | |
14795 | case " $configdirs " in | |
14796 | *" gcc "*) | |
14797 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14798 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14799 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14800 | ;; | |
14801 | esac | |
14802 | fi | |
14803 | ||
14804 | ||
14805 | ||
14806 | ||
14807 | ||
efd58f08 RW |
14808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14809 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14810 | # Check whether --enable-maintainer-mode was given. | |
14811 | if test "${enable_maintainer_mode+set}" = set; then : | |
14812 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
51dcf285 AO |
14813 | else |
14814 | USE_MAINTAINER_MODE=no | |
efd58f08 RW |
14815 | fi |
14816 | ||
14817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14818 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
51dcf285 AO |
14819 | |
14820 | ||
14821 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14822 | MAINTAINER_MODE_TRUE= | |
14823 | MAINTAINER_MODE_FALSE='#' | |
14824 | else | |
14825 | MAINTAINER_MODE_TRUE='#' | |
14826 | MAINTAINER_MODE_FALSE= | |
b58b6ee1 | 14827 | fi |
51dcf285 AO |
14828 | MAINT=$MAINTAINER_MODE_TRUE |
14829 | ||
457eaf16 NN |
14830 | # --------------------- |
14831 | # GCC bootstrap support | |
14832 | # --------------------- | |
14833 | ||
14834 | # Stage specific cflags for build. | |
14835 | stage1_cflags="-g" | |
14836 | case $build in | |
14837 | vax-*-*) | |
14838 | case ${GCC} in | |
14839 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14840 | *) stage1_cflags="-g -J" ;; | |
14841 | esac ;; | |
457eaf16 NN |
14842 | esac |
14843 | ||
c684482d | 14844 | |
457eaf16 | 14845 | |
14a1406e | 14846 | # Enable --enable-checking in stage1 of the compiler. |
efd58f08 RW |
14847 | # Check whether --enable-stage1-checking was given. |
14848 | if test "${enable_stage1_checking+set}" = set; then : | |
14849 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
14a1406e | 14850 | else |
1b410bcf | 14851 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
fe508576 CV |
14852 | # For --disable-checking or implicit --enable-checking=release, avoid |
14853 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
14854 | # bootstraps. See PR62077. | |
fe508576 CV |
14855 | case $BUILD_CONFIG in |
14856 | *lto*) | |
d5632bcf AK |
14857 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
14858 | *) | |
14859 | stage1_checking=--enable-checking=yes,types;; | |
fe508576 | 14860 | esac |
d5632bcf AK |
14861 | if test "x$enable_checking" = x && \ |
14862 | test -d ${srcdir}/gcc && \ | |
14863 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
14864 | stage1_checking=--enable-checking=yes,types,extra | |
14865 | fi | |
14a1406e | 14866 | else |
1b410bcf | 14867 | stage1_checking=--enable-checking=$enable_checking,types |
14a1406e | 14868 | fi |
efd58f08 | 14869 | fi |
14a1406e PB |
14870 | |
14871 | ||
b58b6ee1 | 14872 | |
efd58f08 RW |
14873 | # Enable -Werror in bootstrap stage2 and later. |
14874 | # Check whether --enable-werror was given. | |
14875 | if test "${enable_werror+set}" = set; then : | |
14876 | enableval=$enable_werror; | |
457eaf16 | 14877 | else |
e6659c00 | 14878 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
457eaf16 | 14879 | enable_werror=yes |
48edcc3f PB |
14880 | else |
14881 | enable_werror=no | |
14882 | fi | |
efd58f08 RW |
14883 | fi |
14884 | ||
f06f3d7c NN |
14885 | case ${enable_werror} in |
14886 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14887 | *) stage2_werror_flag="" ;; | |
457eaf16 NN |
14888 | esac |
14889 | ||
14890 | ||
afa221db JBG |
14891 | # Enable --enable-host-shared. |
14892 | # Check whether --enable-host-shared was given. | |
14893 | if test "${enable_host_shared+set}" = set; then : | |
14894 | enableval=$enable_host_shared; host_shared=$enableval | |
14895 | else | |
14896 | host_shared=no | |
14897 | fi | |
14898 | ||
14899 | ||
14900 | ||
fe508576 CV |
14901 | # PR jit/64780: Require the user to explicitly specify |
14902 | # --enable-host-shared if the jit is enabled, hinting | |
14903 | # that they might want to do a separate configure/build of | |
14904 | # the jit, to avoid users from slowing down the rest of the | |
14905 | # compiler by enabling the jit. | |
14906 | if test ${host_shared} = "no" ; then | |
14907 | case "${enable_languages}" in | |
14908 | *jit*) | |
14909 | as_fn_error " | |
14910 | Enabling language \"jit\" requires --enable-host-shared. | |
14911 | ||
14912 | --enable-host-shared typically slows the rest of the compiler down by | |
14913 | a few %, so you must explicitly enable it. | |
14914 | ||
14915 | If you want to build both the jit and the regular compiler, it is often | |
14916 | best to do this via two separate configure/builds, in separate | |
14917 | directories, to avoid imposing the performance cost of | |
14918 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
14919 | ;; | |
14920 | *) | |
14921 | ;; | |
14922 | esac | |
14923 | fi | |
14924 | ||
121f0eb2 RW |
14925 | # Specify what files to not compare during bootstrap. |
14926 | ||
14927 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14928 | case "$target" in | |
14929 | hppa*64*-*-hpux*) ;; | |
14930 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
ddb7b65a | 14931 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
121f0eb2 RW |
14932 | esac |
14933 | ||
14934 | ||
efd58f08 RW |
14935 | ac_config_files="$ac_config_files Makefile" |
14936 | ||
b58b6ee1 | 14937 | cat >confcache <<\_ACEOF |
bafecfd6 NN |
14938 | # This file is a shell script that caches the results of configure |
14939 | # tests run on this system so they can be shared between configure | |
b58b6ee1 DJ |
14940 | # scripts and configure runs, see configure's option --config-cache. |
14941 | # It is not useful on other systems. If it contains results you don't | |
14942 | # want to keep, you may remove or edit it. | |
bafecfd6 | 14943 | # |
b58b6ee1 DJ |
14944 | # config.status only pays attention to the cache file if you give it |
14945 | # the --recheck option to rerun configure. | |
bafecfd6 | 14946 | # |
b58b6ee1 DJ |
14947 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14948 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14949 | # following values. | |
14950 | ||
14951 | _ACEOF | |
14952 | ||
bafecfd6 NN |
14953 | # The following way of writing the cache mishandles newlines in values, |
14954 | # but we know of no workaround that is simple, portable, and efficient. | |
efd58f08 | 14955 | # So, we kill variables containing newlines. |
bafecfd6 NN |
14956 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14957 | # and sets the high bit in the cache file unless we assign to the vars. | |
efd58f08 RW |
14958 | ( |
14959 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14960 | eval ac_val=\$$ac_var | |
14961 | case $ac_val in #( | |
14962 | *${as_nl}*) | |
14963 | case $ac_var in #( | |
14964 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14965 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14966 | esac | |
14967 | case $ac_var in #( | |
14968 | _ | IFS | as_nl) ;; #( | |
14969 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14970 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14971 | esac ;; | |
14972 | esac | |
14973 | done | |
14974 | ||
b58b6ee1 | 14975 | (set) 2>&1 | |
efd58f08 RW |
14976 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14977 | *${as_nl}ac_space=\ *) | |
14978 | # `set' does not quote correctly, so add quotes: double-quote | |
14979 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b58b6ee1 DJ |
14980 | sed -n \ |
14981 | "s/'/'\\\\''/g; | |
14982 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
efd58f08 | 14983 | ;; #( |
b58b6ee1 DJ |
14984 | *) |
14985 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
efd58f08 | 14986 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b58b6ee1 | 14987 | ;; |
efd58f08 RW |
14988 | esac | |
14989 | sort | |
14990 | ) | | |
b58b6ee1 | 14991 | sed ' |
efd58f08 | 14992 | /^ac_cv_env_/b end |
b58b6ee1 | 14993 | t clear |
efd58f08 | 14994 | :clear |
b58b6ee1 DJ |
14995 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14996 | t end | |
efd58f08 RW |
14997 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14998 | :end' >>confcache | |
14999 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15000 | if test -w "$cache_file"; then | |
15001 | test "x$cache_file" != "x/dev/null" && | |
15002 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
15003 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
b58b6ee1 | 15004 | cat confcache >$cache_file |
bafecfd6 | 15005 | else |
efd58f08 RW |
15006 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
15007 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
bafecfd6 | 15008 | fi |
712e2a32 | 15009 | fi |
bafecfd6 | 15010 | rm -f confcache |
712e2a32 | 15011 | |
bafecfd6 NN |
15012 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15013 | # Let make expand exec_prefix. | |
15014 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
712e2a32 | 15015 | |
bafecfd6 NN |
15016 | # Transform confdefs.h into DEFS. |
15017 | # Protect against shell expansion while executing Makefile rules. | |
15018 | # Protect against Makefile macro expansion. | |
b58b6ee1 DJ |
15019 | # |
15020 | # If the first sed substitution is executed (which looks for macros that | |
efd58f08 | 15021 | # take arguments), then branch to the quote section. Otherwise, |
b58b6ee1 | 15022 | # look for a macro that doesn't take arguments. |
efd58f08 RW |
15023 | ac_script=' |
15024 | :mline | |
15025 | /\\$/{ | |
15026 | N | |
15027 | s,\\\n,, | |
15028 | b mline | |
15029 | } | |
b58b6ee1 | 15030 | t clear |
efd58f08 RW |
15031 | :clear |
15032 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
b58b6ee1 | 15033 | t quote |
efd58f08 | 15034 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
b58b6ee1 | 15035 | t quote |
efd58f08 RW |
15036 | b any |
15037 | :quote | |
15038 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
15039 | s/\[/\\&/g | |
15040 | s/\]/\\&/g | |
15041 | s/\$/$$/g | |
15042 | H | |
15043 | :any | |
15044 | ${ | |
15045 | g | |
15046 | s/^\n// | |
15047 | s/\n/ /g | |
15048 | p | |
15049 | } | |
15050 | ' | |
15051 | DEFS=`sed -n "$ac_script" confdefs.h` | |
b58b6ee1 DJ |
15052 | |
15053 | ||
15054 | ac_libobjs= | |
15055 | ac_ltlibobjs= | |
15056 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
15057 | # 1. Remove the extension, and $U if already installed. | |
efd58f08 RW |
15058 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
15059 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
15060 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
15061 | # will be set to the directory where LIBOBJS objects are built. | |
15062 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15063 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b58b6ee1 DJ |
15064 | done |
15065 | LIBOBJS=$ac_libobjs | |
712e2a32 | 15066 | |
b58b6ee1 | 15067 | LTLIBOBJS=$ac_ltlibobjs |
76402c80 | 15068 | |
f69e2532 | 15069 | |
b58b6ee1 DJ |
15070 | |
15071 | : ${CONFIG_STATUS=./config.status} | |
efd58f08 | 15072 | ac_write_fail=0 |
b58b6ee1 DJ |
15073 | ac_clean_files_save=$ac_clean_files |
15074 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
efd58f08 RW |
15075 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
15076 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15077 | as_write_fail=0 | |
15078 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b58b6ee1 DJ |
15079 | #! $SHELL |
15080 | # Generated by $as_me. | |
bafecfd6 | 15081 | # Run this file to recreate the current configuration. |
bafecfd6 | 15082 | # Compiler output produced by configure, useful for debugging |
b58b6ee1 | 15083 | # configure, is in config.log if it exists. |
76402c80 | 15084 | |
b58b6ee1 DJ |
15085 | debug=false |
15086 | ac_cs_recheck=false | |
15087 | ac_cs_silent=false | |
b58b6ee1 | 15088 | |
efd58f08 RW |
15089 | SHELL=\${CONFIG_SHELL-$SHELL} |
15090 | export SHELL | |
15091 | _ASEOF | |
15092 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15093 | ## -------------------- ## | |
15094 | ## M4sh Initialization. ## | |
15095 | ## -------------------- ## | |
15096 | ||
15097 | # Be more Bourne compatible | |
15098 | DUALCASE=1; export DUALCASE # for MKS sh | |
15099 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b58b6ee1 DJ |
15100 | emulate sh |
15101 | NULLCMD=: | |
efd58f08 | 15102 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b58b6ee1 DJ |
15103 | # is contrary to our usage. Disable this feature. |
15104 | alias -g '${1+"$@"}'='"$@"' | |
efd58f08 RW |
15105 | setopt NO_GLOB_SUBST |
15106 | else | |
15107 | case `(set -o) 2>/dev/null` in #( | |
15108 | *posix*) : | |
15109 | set -o posix ;; #( | |
15110 | *) : | |
15111 | ;; | |
15112 | esac | |
b58b6ee1 | 15113 | fi |
b58b6ee1 | 15114 | |
efd58f08 RW |
15115 | |
15116 | as_nl=' | |
15117 | ' | |
15118 | export as_nl | |
15119 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15120 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15121 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15122 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15123 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15124 | # but without wasting forks for bash or zsh. | |
15125 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15126 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15127 | as_echo='print -r --' | |
15128 | as_echo_n='print -rn --' | |
15129 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15130 | as_echo='printf %s\n' | |
15131 | as_echo_n='printf %s' | |
15132 | else | |
15133 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15134 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15135 | as_echo_n='/usr/ucb/echo -n' | |
15136 | else | |
15137 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15138 | as_echo_n_body='eval | |
15139 | arg=$1; | |
15140 | case $arg in #( | |
15141 | *"$as_nl"*) | |
15142 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15143 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15144 | esac; | |
15145 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15146 | ' | |
15147 | export as_echo_n_body | |
15148 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15149 | fi | |
15150 | export as_echo_body | |
15151 | as_echo='sh -c $as_echo_body as_echo' | |
b58b6ee1 DJ |
15152 | fi |
15153 | ||
efd58f08 RW |
15154 | # The user is always right. |
15155 | if test "${PATH_SEPARATOR+set}" != set; then | |
15156 | PATH_SEPARATOR=: | |
15157 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15158 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15159 | PATH_SEPARATOR=';' | |
15160 | } | |
15161 | fi | |
15162 | ||
15163 | ||
15164 | # IFS | |
15165 | # We need space, tab and new line, in precisely that order. Quoting is | |
15166 | # there to prevent editors from complaining about space-tab. | |
15167 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15168 | # splitting by setting IFS to empty value.) | |
15169 | IFS=" "" $as_nl" | |
15170 | ||
15171 | # Find who we are. Look in the path if we contain no directory separator. | |
15172 | case $0 in #(( | |
15173 | *[\\/]* ) as_myself=$0 ;; | |
15174 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15175 | for as_dir in $PATH | |
15176 | do | |
15177 | IFS=$as_save_IFS | |
15178 | test -z "$as_dir" && as_dir=. | |
15179 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15180 | done | |
15181 | IFS=$as_save_IFS | |
15182 | ||
15183 | ;; | |
15184 | esac | |
15185 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15186 | # in which case we are not to be found in the path. | |
15187 | if test "x$as_myself" = x; then | |
15188 | as_myself=$0 | |
15189 | fi | |
15190 | if test ! -f "$as_myself"; then | |
15191 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15192 | exit 1 | |
15193 | fi | |
b58b6ee1 | 15194 | |
efd58f08 RW |
15195 | # Unset variables that we do not need and which cause bugs (e.g. in |
15196 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15197 | # suppresses any "Segmentation fault" message there. '((' could | |
15198 | # trigger a bug in pdksh 5.2.14. | |
15199 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15200 | do eval test x\${$as_var+set} = xset \ | |
15201 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15202 | done | |
b58b6ee1 DJ |
15203 | PS1='$ ' |
15204 | PS2='> ' | |
15205 | PS4='+ ' | |
15206 | ||
15207 | # NLS nuisances. | |
efd58f08 RW |
15208 | LC_ALL=C |
15209 | export LC_ALL | |
15210 | LANGUAGE=C | |
15211 | export LANGUAGE | |
15212 | ||
15213 | # CDPATH. | |
15214 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15215 | ||
15216 | ||
15217 | # as_fn_error ERROR [LINENO LOG_FD] | |
15218 | # --------------------------------- | |
15219 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
15220 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
15221 | # script with status $?, using 1 if that was 0. | |
15222 | as_fn_error () | |
15223 | { | |
15224 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
15225 | if test "$3"; then | |
15226 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15227 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
b58b6ee1 | 15228 | fi |
efd58f08 RW |
15229 | $as_echo "$as_me: error: $1" >&2 |
15230 | as_fn_exit $as_status | |
15231 | } # as_fn_error | |
15232 | ||
15233 | ||
15234 | # as_fn_set_status STATUS | |
15235 | # ----------------------- | |
15236 | # Set $? to STATUS, without forking. | |
15237 | as_fn_set_status () | |
15238 | { | |
15239 | return $1 | |
15240 | } # as_fn_set_status | |
15241 | ||
15242 | # as_fn_exit STATUS | |
15243 | # ----------------- | |
15244 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15245 | as_fn_exit () | |
15246 | { | |
15247 | set +e | |
15248 | as_fn_set_status $1 | |
15249 | exit $1 | |
15250 | } # as_fn_exit | |
15251 | ||
15252 | # as_fn_unset VAR | |
15253 | # --------------- | |
15254 | # Portably unset VAR. | |
15255 | as_fn_unset () | |
15256 | { | |
15257 | { eval $1=; unset $1;} | |
15258 | } | |
15259 | as_unset=as_fn_unset | |
15260 | # as_fn_append VAR VALUE | |
15261 | # ---------------------- | |
15262 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15263 | # advantage of any shell optimizations that allow amortized linear growth over | |
15264 | # repeated appends, instead of the typical quadratic growth present in naive | |
15265 | # implementations. | |
15266 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15267 | eval 'as_fn_append () | |
15268 | { | |
15269 | eval $1+=\$2 | |
15270 | }' | |
15271 | else | |
15272 | as_fn_append () | |
15273 | { | |
15274 | eval $1=\$$1\$2 | |
15275 | } | |
15276 | fi # as_fn_append | |
15277 | ||
15278 | # as_fn_arith ARG... | |
15279 | # ------------------ | |
15280 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15281 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15282 | # must be portable across $(()) and expr. | |
15283 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15284 | eval 'as_fn_arith () | |
15285 | { | |
15286 | as_val=$(( $* )) | |
15287 | }' | |
15288 | else | |
15289 | as_fn_arith () | |
15290 | { | |
15291 | as_val=`expr "$@" || test $? -eq 1` | |
15292 | } | |
15293 | fi # as_fn_arith | |
15294 | ||
b58b6ee1 | 15295 | |
efd58f08 RW |
15296 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15297 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b58b6ee1 DJ |
15298 | as_expr=expr |
15299 | else | |
15300 | as_expr=false | |
15301 | fi | |
15302 | ||
efd58f08 | 15303 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b58b6ee1 DJ |
15304 | as_basename=basename |
15305 | else | |
15306 | as_basename=false | |
15307 | fi | |
15308 | ||
efd58f08 RW |
15309 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15310 | as_dirname=dirname | |
15311 | else | |
15312 | as_dirname=false | |
15313 | fi | |
b58b6ee1 | 15314 | |
efd58f08 | 15315 | as_me=`$as_basename -- "$0" || |
b58b6ee1 DJ |
15316 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15317 | X"$0" : 'X\(//\)$' \| \ | |
efd58f08 RW |
15318 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15319 | $as_echo X/"$0" | | |
15320 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15321 | s//\1/ | |
15322 | q | |
15323 | } | |
15324 | /^X\/\(\/\/\)$/{ | |
15325 | s//\1/ | |
15326 | q | |
15327 | } | |
15328 | /^X\/\(\/\).*/{ | |
15329 | s//\1/ | |
15330 | q | |
15331 | } | |
15332 | s/.*/./; q'` | |
b58b6ee1 | 15333 | |
b58b6ee1 DJ |
15334 | # Avoid depending upon Character Ranges. |
15335 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15336 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15337 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15338 | as_cr_digits='0123456789' | |
15339 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15340 | ||
efd58f08 RW |
15341 | ECHO_C= ECHO_N= ECHO_T= |
15342 | case `echo -n x` in #((((( | |
15343 | -n*) | |
15344 | case `echo 'xy\c'` in | |
15345 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15346 | xy) ECHO_C='\c';; | |
15347 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15348 | ECHO_T=' ';; | |
15349 | esac;; | |
15350 | *) | |
15351 | ECHO_N='-n';; | |
b58b6ee1 DJ |
15352 | esac |
15353 | ||
efd58f08 RW |
15354 | rm -f conf$$ conf$$.exe conf$$.file |
15355 | if test -d conf$$.dir; then | |
15356 | rm -f conf$$.dir/conf$$.file | |
b58b6ee1 | 15357 | else |
efd58f08 RW |
15358 | rm -f conf$$.dir |
15359 | mkdir conf$$.dir 2>/dev/null | |
b58b6ee1 | 15360 | fi |
efd58f08 RW |
15361 | if (echo >conf$$.file) 2>/dev/null; then |
15362 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b58b6ee1 | 15363 | as_ln_s='ln -s' |
efd58f08 RW |
15364 | # ... but there are two gotchas: |
15365 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15366 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15367 | # In both cases, we have to default to `cp -p'. | |
15368 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15369 | as_ln_s='cp -p' | |
15370 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15371 | as_ln_s=ln | |
15372 | else | |
15373 | as_ln_s='cp -p' | |
b58b6ee1 | 15374 | fi |
b58b6ee1 DJ |
15375 | else |
15376 | as_ln_s='cp -p' | |
15377 | fi | |
efd58f08 RW |
15378 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15379 | rmdir conf$$.dir 2>/dev/null | |
15380 | ||
15381 | ||
15382 | # as_fn_mkdir_p | |
15383 | # ------------- | |
15384 | # Create "$as_dir" as a directory, including parents if necessary. | |
15385 | as_fn_mkdir_p () | |
15386 | { | |
15387 | ||
15388 | case $as_dir in #( | |
15389 | -*) as_dir=./$as_dir;; | |
15390 | esac | |
15391 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15392 | as_dirs= | |
15393 | while :; do | |
15394 | case $as_dir in #( | |
15395 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15396 | *) as_qdir=$as_dir;; | |
15397 | esac | |
15398 | as_dirs="'$as_qdir' $as_dirs" | |
15399 | as_dir=`$as_dirname -- "$as_dir" || | |
15400 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15401 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15402 | X"$as_dir" : 'X\(//\)$' \| \ | |
15403 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15404 | $as_echo X"$as_dir" | | |
15405 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15406 | s//\1/ | |
15407 | q | |
15408 | } | |
15409 | /^X\(\/\/\)[^/].*/{ | |
15410 | s//\1/ | |
15411 | q | |
15412 | } | |
15413 | /^X\(\/\/\)$/{ | |
15414 | s//\1/ | |
15415 | q | |
15416 | } | |
15417 | /^X\(\/\).*/{ | |
15418 | s//\1/ | |
15419 | q | |
15420 | } | |
15421 | s/.*/./; q'` | |
15422 | test -d "$as_dir" && break | |
15423 | done | |
15424 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15425 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
15426 | ||
b58b6ee1 | 15427 | |
efd58f08 | 15428 | } # as_fn_mkdir_p |
b58b6ee1 | 15429 | if mkdir -p . 2>/dev/null; then |
efd58f08 | 15430 | as_mkdir_p='mkdir -p "$as_dir"' |
b58b6ee1 DJ |
15431 | else |
15432 | test -d ./-p && rmdir ./-p | |
15433 | as_mkdir_p=false | |
15434 | fi | |
15435 | ||
efd58f08 RW |
15436 | if test -x / >/dev/null 2>&1; then |
15437 | as_test_x='test -x' | |
15438 | else | |
15439 | if ls -dL / >/dev/null 2>&1; then | |
15440 | as_ls_L_option=L | |
15441 | else | |
15442 | as_ls_L_option= | |
15443 | fi | |
15444 | as_test_x=' | |
15445 | eval sh -c '\'' | |
15446 | if test -d "$1"; then | |
15447 | test -d "$1/."; | |
15448 | else | |
15449 | case $1 in #( | |
15450 | -*)set "./$1";; | |
15451 | esac; | |
15452 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
15453 | ???[sx]*):;;*)false;;esac;fi | |
15454 | '\'' sh | |
15455 | ' | |
15456 | fi | |
15457 | as_executable_p=$as_test_x | |
b58b6ee1 DJ |
15458 | |
15459 | # Sed expression to map a string onto a valid CPP name. | |
15460 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15461 | ||
15462 | # Sed expression to map a string onto a valid variable name. | |
15463 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15464 | ||
15465 | ||
b58b6ee1 | 15466 | exec 6>&1 |
efd58f08 RW |
15467 | ## ----------------------------------- ## |
15468 | ## Main body of $CONFIG_STATUS script. ## | |
15469 | ## ----------------------------------- ## | |
15470 | _ASEOF | |
15471 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15472 | ||
15473 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15474 | # Save the log message, to keep $0 and so on meaningful, and to | |
b58b6ee1 | 15475 | # report actual input values of CONFIG_FILES etc. instead of their |
efd58f08 RW |
15476 | # values after options handling. |
15477 | ac_log=" | |
b58b6ee1 | 15478 | This file was extended by $as_me, which was |
efd58f08 | 15479 | generated by GNU Autoconf 2.64. Invocation command line was |
b58b6ee1 DJ |
15480 | |
15481 | CONFIG_FILES = $CONFIG_FILES | |
15482 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15483 | CONFIG_LINKS = $CONFIG_LINKS | |
15484 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15485 | $ $0 $@ | |
15486 | ||
efd58f08 RW |
15487 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15488 | " | |
15489 | ||
b58b6ee1 DJ |
15490 | _ACEOF |
15491 | ||
efd58f08 RW |
15492 | case $ac_config_files in *" |
15493 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15494 | esac | |
b58b6ee1 | 15495 | |
b58b6ee1 | 15496 | |
b58b6ee1 | 15497 | |
efd58f08 RW |
15498 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15499 | # Files that config.status was made for. | |
15500 | config_files="$ac_config_files" | |
b58b6ee1 | 15501 | |
efd58f08 | 15502 | _ACEOF |
b58b6ee1 | 15503 | |
efd58f08 | 15504 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b58b6ee1 | 15505 | ac_cs_usage="\ |
efd58f08 RW |
15506 | \`$as_me' instantiates files and other configuration actions |
15507 | from templates according to the current configuration. Unless the files | |
15508 | and actions are specified as TAGs, all are instantiated by default. | |
b58b6ee1 | 15509 | |
efd58f08 | 15510 | Usage: $0 [OPTION]... [TAG]... |
b58b6ee1 DJ |
15511 | |
15512 | -h, --help print this help, then exit | |
efd58f08 RW |
15513 | -V, --version print version number and configuration settings, then exit |
15514 | -q, --quiet, --silent | |
15515 | do not print progress messages | |
b58b6ee1 DJ |
15516 | -d, --debug don't remove temporary files |
15517 | --recheck update $as_me by reconfiguring in the same conditions | |
efd58f08 RW |
15518 | --file=FILE[:TEMPLATE] |
15519 | instantiate the configuration file FILE | |
b58b6ee1 DJ |
15520 | |
15521 | Configuration files: | |
15522 | $config_files | |
15523 | ||
efd58f08 | 15524 | Report bugs to the package provider." |
b58b6ee1 | 15525 | |
efd58f08 RW |
15526 | _ACEOF |
15527 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b58b6ee1 DJ |
15528 | ac_cs_version="\\ |
15529 | config.status | |
efd58f08 RW |
15530 | configured by $0, generated by GNU Autoconf 2.64, |
15531 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
b58b6ee1 | 15532 | |
efd58f08 | 15533 | Copyright (C) 2009 Free Software Foundation, Inc. |
b58b6ee1 DJ |
15534 | This config.status script is free software; the Free Software Foundation |
15535 | gives unlimited permission to copy, distribute and modify it." | |
efd58f08 RW |
15536 | |
15537 | ac_pwd='$ac_pwd' | |
15538 | srcdir='$srcdir' | |
15539 | INSTALL='$INSTALL' | |
a8a01987 | 15540 | AWK='$AWK' |
efd58f08 | 15541 | test -n "\$AWK" || AWK=awk |
b58b6ee1 DJ |
15542 | _ACEOF |
15543 | ||
efd58f08 RW |
15544 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15545 | # The default lists apply if the user does not specify any file. | |
b58b6ee1 DJ |
15546 | ac_need_defaults=: |
15547 | while test $# != 0 | |
bafecfd6 | 15548 | do |
b58b6ee1 DJ |
15549 | case $1 in |
15550 | --*=*) | |
efd58f08 RW |
15551 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15552 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b58b6ee1 DJ |
15553 | ac_shift=: |
15554 | ;; | |
efd58f08 | 15555 | *) |
b58b6ee1 DJ |
15556 | ac_option=$1 |
15557 | ac_optarg=$2 | |
15558 | ac_shift=shift | |
15559 | ;; | |
b58b6ee1 DJ |
15560 | esac |
15561 | ||
15562 | case $ac_option in | |
15563 | # Handling of the options. | |
bafecfd6 | 15564 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
b58b6ee1 | 15565 | ac_cs_recheck=: ;; |
efd58f08 RW |
15566 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15567 | $as_echo "$ac_cs_version"; exit ;; | |
15568 | --debug | --debu | --deb | --de | --d | -d ) | |
b58b6ee1 DJ |
15569 | debug=: ;; |
15570 | --file | --fil | --fi | --f ) | |
15571 | $ac_shift | |
efd58f08 RW |
15572 | case $ac_optarg in |
15573 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15574 | esac | |
15575 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
b58b6ee1 | 15576 | ac_need_defaults=false;; |
efd58f08 RW |
15577 | --he | --h | --help | --hel | -h ) |
15578 | $as_echo "$ac_cs_usage"; exit ;; | |
b58b6ee1 DJ |
15579 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15580 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15581 | ac_cs_silent=: ;; | |
15582 | ||
15583 | # This is an error. | |
efd58f08 RW |
15584 | -*) as_fn_error "unrecognized option: \`$1' |
15585 | Try \`$0 --help' for more information." ;; | |
b58b6ee1 | 15586 | |
efd58f08 RW |
15587 | *) as_fn_append ac_config_targets " $1" |
15588 | ac_need_defaults=false ;; | |
b58b6ee1 | 15589 | |
76402c80 | 15590 | esac |
b58b6ee1 | 15591 | shift |
76402c80 CM |
15592 | done |
15593 | ||
b58b6ee1 | 15594 | ac_configure_extra_args= |
76402c80 | 15595 | |
b58b6ee1 DJ |
15596 | if $ac_cs_silent; then |
15597 | exec 6>/dev/null | |
15598 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15599 | fi | |
76402c80 | 15600 | |
b58b6ee1 | 15601 | _ACEOF |
efd58f08 | 15602 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b58b6ee1 | 15603 | if \$ac_cs_recheck; then |
efd58f08 RW |
15604 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15605 | shift | |
15606 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15607 | CONFIG_SHELL='$SHELL' | |
15608 | export CONFIG_SHELL | |
15609 | exec "\$@" | |
b58b6ee1 DJ |
15610 | fi |
15611 | ||
15612 | _ACEOF | |
efd58f08 RW |
15613 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15614 | exec 5>>config.log | |
15615 | { | |
15616 | echo | |
15617 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15618 | ## Running $as_me. ## | |
15619 | _ASBOX | |
15620 | $as_echo "$ac_log" | |
15621 | } >&5 | |
b58b6ee1 | 15622 | |
efd58f08 RW |
15623 | _ACEOF |
15624 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
94f4a7b9 RW |
15625 | # |
15626 | # INIT-COMMANDS | |
15627 | # | |
15628 | extrasub_build="$extrasub_build" | |
15629 | extrasub_host="$extrasub_host" | |
15630 | extrasub_target="$extrasub_target" | |
15631 | ||
efd58f08 | 15632 | _ACEOF |
b58b6ee1 | 15633 | |
efd58f08 | 15634 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b58b6ee1 | 15635 | |
efd58f08 | 15636 | # Handling of arguments. |
b58b6ee1 DJ |
15637 | for ac_config_target in $ac_config_targets |
15638 | do | |
efd58f08 RW |
15639 | case $ac_config_target in |
15640 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15641 | ||
15642 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
b58b6ee1 DJ |
15643 | esac |
15644 | done | |
15645 | ||
efd58f08 | 15646 | |
b58b6ee1 DJ |
15647 | # If the user did not use the arguments to specify the items to instantiate, |
15648 | # then the envvar interface is used. Set only those that are not. | |
15649 | # We use the long form for the default assignment because of an extremely | |
15650 | # bizarre bug on SunOS 4.1.3. | |
15651 | if $ac_need_defaults; then | |
15652 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15653 | fi | |
15654 | ||
15655 | # Have a temporary directory for convenience. Make it in the build tree | |
efd58f08 | 15656 | # simply because there is no reason against having it here, and in addition, |
b58b6ee1 | 15657 | # creating and moving files from /tmp can sometimes cause problems. |
efd58f08 RW |
15658 | # Hook for its removal unless debugging. |
15659 | # Note that there is a small window in which the directory will not be cleaned: | |
15660 | # after its creation but before its name has been assigned to `$tmp'. | |
b58b6ee1 DJ |
15661 | $debug || |
15662 | { | |
efd58f08 RW |
15663 | tmp= |
15664 | trap 'exit_status=$? | |
15665 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15666 | ' 0 | |
15667 | trap 'as_fn_exit 1' 1 2 13 15 | |
b58b6ee1 | 15668 | } |
b58b6ee1 DJ |
15669 | # Create a (secure) tmp directory for tmp files. |
15670 | ||
15671 | { | |
efd58f08 | 15672 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b58b6ee1 DJ |
15673 | test -n "$tmp" && test -d "$tmp" |
15674 | } || | |
15675 | { | |
efd58f08 RW |
15676 | tmp=./conf$$-$RANDOM |
15677 | (umask 077 && mkdir "$tmp") | |
15678 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
15679 | ||
15680 | # Set up the scripts for CONFIG_FILES section. | |
15681 | # No need to generate them if there are no CONFIG_FILES. | |
15682 | # This happens for instance with `./config.status config.h'. | |
15683 | if test -n "$CONFIG_FILES"; then | |
15684 | ||
15685 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15686 | ac_cs_awk_getline=: | |
15687 | ac_cs_awk_pipe_init= | |
15688 | ac_cs_awk_read_file=' | |
15689 | while ((getline aline < (F[key])) > 0) | |
15690 | print(aline) | |
15691 | close(F[key])' | |
15692 | ac_cs_awk_pipe_fini= | |
15693 | else | |
15694 | ac_cs_awk_getline=false | |
15695 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15696 | ac_cs_awk_read_file=' | |
15697 | print "|#_!!_#|" | |
15698 | print "cat " F[key] " &&" | |
15699 | '$ac_cs_awk_pipe_init | |
15700 | # The final `:' finishes the AND list. | |
15701 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15702 | fi | |
15703 | ac_cr=`echo X | tr X '\015'` | |
15704 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15705 | # But we know of no other shell where ac_cr would be empty at this | |
15706 | # point, so we can use a bashism as a fallback. | |
15707 | if test "x$ac_cr" = x; then | |
15708 | eval ac_cr=\$\'\\r\' | |
15709 | fi | |
15710 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15711 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15712 | ac_cs_awk_cr='\r' | |
15713 | else | |
15714 | ac_cs_awk_cr=$ac_cr | |
15715 | fi | |
15716 | ||
15717 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15718 | _ACEOF | |
15719 | ||
15720 | # Create commands to substitute file output variables. | |
b58b6ee1 | 15721 | { |
efd58f08 RW |
15722 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
15723 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
15724 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
15725 | echo "_ACAWK" && | |
15726 | echo "_ACEOF" | |
15727 | } >conf$$files.sh && | |
15728 | . ./conf$$files.sh || | |
15729 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15730 | rm -f conf$$files.sh | |
b58b6ee1 | 15731 | |
efd58f08 RW |
15732 | { |
15733 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15734 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15735 | echo "_ACEOF" | |
15736 | } >conf$$subs.sh || | |
15737 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15738 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15739 | ac_delim='%!_!# ' | |
15740 | for ac_last_try in false false false false false :; do | |
15741 | . ./conf$$subs.sh || | |
15742 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15743 | ||
15744 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15745 | if test $ac_delim_n = $ac_delim_num; then | |
15746 | break | |
15747 | elif $ac_last_try; then | |
15748 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15749 | else | |
15750 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15751 | fi | |
15752 | done | |
15753 | rm -f conf$$subs.sh | |
15754 | ||
15755 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15756 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
b58b6ee1 | 15757 | _ACEOF |
efd58f08 RW |
15758 | sed -n ' |
15759 | h | |
15760 | s/^/S["/; s/!.*/"]=/ | |
15761 | p | |
15762 | g | |
15763 | s/^[^!]*!// | |
15764 | :repl | |
15765 | t repl | |
15766 | s/'"$ac_delim"'$// | |
15767 | t delim | |
15768 | :nl | |
15769 | h | |
15770 | s/\(.\{148\}\).*/\1/ | |
15771 | t more1 | |
15772 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15773 | p | |
15774 | n | |
15775 | b repl | |
15776 | :more1 | |
15777 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15778 | p | |
15779 | g | |
15780 | s/.\{148\}// | |
15781 | t nl | |
15782 | :delim | |
15783 | h | |
15784 | s/\(.\{148\}\).*/\1/ | |
15785 | t more2 | |
15786 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15787 | p | |
15788 | b | |
15789 | :more2 | |
15790 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15791 | p | |
15792 | g | |
15793 | s/.\{148\}// | |
15794 | t delim | |
15795 | ' <conf$$subs.awk | sed ' | |
15796 | /^[^""]/{ | |
15797 | N | |
15798 | s/\n// | |
15799 | } | |
15800 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15801 | rm -f conf$$subs.awk | |
15802 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15803 | _ACAWK | |
15804 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15805 | for (key in S) S_is_set[key] = 1 | |
15806 | FS = "\a" | |
15807 | \$ac_cs_awk_pipe_init | |
15808 | } | |
15809 | { | |
15810 | line = $ 0 | |
15811 | nfields = split(line, field, "@") | |
15812 | substed = 0 | |
15813 | len = length(field[1]) | |
15814 | for (i = 2; i < nfields; i++) { | |
15815 | key = field[i] | |
15816 | keylen = length(key) | |
15817 | if (S_is_set[key]) { | |
15818 | value = S[key] | |
15819 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15820 | len += length(value) + length(field[++i]) | |
15821 | substed = 1 | |
15822 | } else | |
15823 | len += 1 + keylen | |
15824 | } | |
15825 | if (nfields == 3 && !substed) { | |
15826 | key = field[2] | |
15827 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15828 | \$ac_cs_awk_read_file | |
15829 | next | |
15830 | } | |
15831 | } | |
15832 | print line | |
15833 | } | |
15834 | \$ac_cs_awk_pipe_fini | |
15835 | _ACAWK | |
15836 | _ACEOF | |
15837 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15838 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15839 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15840 | else | |
15841 | cat | |
15842 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15843 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15844 | _ACEOF | |
15845 | ||
15846 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15847 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15848 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15849 | # (actually we leave an empty line to preserve line numbers). | |
15850 | if test "x$srcdir" = x.; then | |
15851 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15852 | s/:*\$(srcdir):*/:/ | |
15853 | s/:*\${srcdir}:*/:/ | |
15854 | s/:*@srcdir@:*/:/ | |
15855 | s/^\([^=]*=[ ]*\):*/\1/ | |
15856 | s/:*$// | |
15857 | s/^[^=]*=[ ]*$// | |
15858 | }' | |
15859 | fi | |
b58b6ee1 | 15860 | |
efd58f08 RW |
15861 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15862 | fi # test -n "$CONFIG_FILES" | |
b58b6ee1 | 15863 | |
b58b6ee1 | 15864 | |
efd58f08 RW |
15865 | eval set X " :F $CONFIG_FILES " |
15866 | shift | |
15867 | for ac_tag | |
15868 | do | |
15869 | case $ac_tag in | |
15870 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15871 | esac | |
15872 | case $ac_mode$ac_tag in | |
15873 | :[FHL]*:*);; | |
15874 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15875 | :[FH]-) ac_tag=-:-;; | |
15876 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15877 | esac | |
15878 | ac_save_IFS=$IFS | |
15879 | IFS=: | |
15880 | set x $ac_tag | |
15881 | IFS=$ac_save_IFS | |
15882 | shift | |
15883 | ac_file=$1 | |
15884 | shift | |
a3acbf46 | 15885 | |
efd58f08 RW |
15886 | case $ac_mode in |
15887 | :L) ac_source=$1;; | |
15888 | :[FH]) | |
15889 | ac_file_inputs= | |
15890 | for ac_f | |
15891 | do | |
15892 | case $ac_f in | |
15893 | -) ac_f="$tmp/stdin";; | |
15894 | *) # Look for the file first in the build tree, then in the source tree | |
15895 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15896 | # because $ac_f cannot contain `:'. | |
15897 | test -f "$ac_f" || | |
15898 | case $ac_f in | |
15899 | [\\/$]*) false;; | |
15900 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15901 | esac || | |
15902 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15903 | esac | |
15904 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15905 | as_fn_append ac_file_inputs " '$ac_f'" | |
15906 | done | |
b58b6ee1 | 15907 | |
efd58f08 RW |
15908 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15909 | # use $as_me), people would be surprised to read: | |
15910 | # /* config.h. Generated by config.status. */ | |
15911 | configure_input='Generated from '` | |
15912 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15913 | `' by configure.' | |
15914 | if test x"$ac_file" != x-; then | |
15915 | configure_input="$ac_file. $configure_input" | |
15916 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15917 | $as_echo "$as_me: creating $ac_file" >&6;} | |
bafecfd6 | 15918 | fi |
efd58f08 RW |
15919 | # Neutralize special characters interpreted by sed in replacement strings. |
15920 | case $configure_input in #( | |
15921 | *\&* | *\|* | *\\* ) | |
15922 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15923 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15924 | *) ac_sed_conf_input=$configure_input;; | |
15925 | esac | |
f69e2532 | 15926 | |
efd58f08 RW |
15927 | case $ac_tag in |
15928 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15929 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15930 | esac | |
15931 | ;; | |
bafecfd6 | 15932 | esac |
a3acbf46 | 15933 | |
efd58f08 | 15934 | ac_dir=`$as_dirname -- "$ac_file" || |
b58b6ee1 DJ |
15935 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15936 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15937 | X"$ac_file" : 'X\(//\)$' \| \ | |
efd58f08 RW |
15938 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15939 | $as_echo X"$ac_file" | | |
15940 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15941 | s//\1/ | |
15942 | q | |
15943 | } | |
15944 | /^X\(\/\/\)[^/].*/{ | |
15945 | s//\1/ | |
15946 | q | |
15947 | } | |
15948 | /^X\(\/\/\)$/{ | |
15949 | s//\1/ | |
15950 | q | |
15951 | } | |
15952 | /^X\(\/\).*/{ | |
15953 | s//\1/ | |
15954 | q | |
15955 | } | |
15956 | s/.*/./; q'` | |
15957 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b58b6ee1 | 15958 | ac_builddir=. |
a3acbf46 | 15959 | |
efd58f08 RW |
15960 | case "$ac_dir" in |
15961 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15962 | *) | |
15963 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15964 | # A ".." for each directory in $ac_dir_suffix. | |
15965 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15966 | case $ac_top_builddir_sub in | |
15967 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15968 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15969 | esac ;; | |
15970 | esac | |
15971 | ac_abs_top_builddir=$ac_pwd | |
15972 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15973 | # for backward compatibility: | |
15974 | ac_top_builddir=$ac_top_build_prefix | |
b58b6ee1 DJ |
15975 | |
15976 | case $srcdir in | |
efd58f08 | 15977 | .) # We are building in place. |
b58b6ee1 | 15978 | ac_srcdir=. |
efd58f08 RW |
15979 | ac_top_srcdir=$ac_top_builddir_sub |
15980 | ac_abs_top_srcdir=$ac_pwd ;; | |
15981 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b58b6ee1 | 15982 | ac_srcdir=$srcdir$ac_dir_suffix; |
efd58f08 RW |
15983 | ac_top_srcdir=$srcdir |
15984 | ac_abs_top_srcdir=$srcdir ;; | |
15985 | *) # Relative name. | |
15986 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15987 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15988 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b58b6ee1 | 15989 | esac |
efd58f08 | 15990 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a3acbf46 | 15991 | |
a3acbf46 | 15992 | |
efd58f08 RW |
15993 | case $ac_mode in |
15994 | :F) | |
15995 | # | |
15996 | # CONFIG_FILE | |
15997 | # | |
b58b6ee1 DJ |
15998 | |
15999 | case $INSTALL in | |
16000 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
efd58f08 | 16001 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bafecfd6 | 16002 | esac |
efd58f08 | 16003 | _ACEOF |
a3acbf46 | 16004 | |
efd58f08 RW |
16005 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16006 | # If the template does not know about datarootdir, expand it. | |
16007 | # FIXME: This hack should be removed a few years after 2.60. | |
16008 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16009 | ac_sed_dataroot=' | |
16010 | /datarootdir/ { | |
16011 | p | |
16012 | q | |
16013 | } | |
16014 | /@datadir@/p | |
16015 | /@docdir@/p | |
16016 | /@infodir@/p | |
16017 | /@localedir@/p | |
16018 | /@mandir@/p' | |
16019 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
16020 | *datarootdir*) ac_datarootdir_seen=yes;; | |
16021 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
16022 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
16023 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
b58b6ee1 | 16024 | _ACEOF |
efd58f08 RW |
16025 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16026 | ac_datarootdir_hack=' | |
16027 | s&@datadir@&$datadir&g | |
16028 | s&@docdir@&$docdir&g | |
16029 | s&@infodir@&$infodir&g | |
16030 | s&@localedir@&$localedir&g | |
16031 | s&@mandir@&$mandir&g | |
16032 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16033 | esac | |
16034 | _ACEOF | |
16035 | ||
16036 | # Neutralize VPATH when `$srcdir' = `.'. | |
16037 | # Shell code in configure.ac might set extrasub. | |
16038 | # FIXME: do we really want to maintain this feature? | |
16039 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16040 | ac_sed_extra="$ac_vpsub | |
b58b6ee1 DJ |
16041 | $extrasub |
16042 | _ACEOF | |
efd58f08 | 16043 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b58b6ee1 DJ |
16044 | :t |
16045 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
efd58f08 RW |
16046 | s|@configure_input@|$ac_sed_conf_input|;t t |
16047 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16048 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16049 | s&@srcdir@&$ac_srcdir&;t t | |
16050 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16051 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16052 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16053 | s&@builddir@&$ac_builddir&;t t | |
16054 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16055 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16056 | s&@INSTALL@&$ac_INSTALL&;t t | |
16057 | $ac_datarootdir_hack | |
16058 | " | |
16059 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
16060 | if $ac_cs_awk_getline; then | |
16061 | $AWK -f "$tmp/subs.awk" | |
16062 | else | |
16063 | $AWK -f "$tmp/subs.awk" | $SHELL | |
16064 | fi >$tmp/out \ | |
16065 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
16066 | ||
16067 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
16068 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
16069 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
16070 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
16071 | which seems to be undefined. Please make sure it is defined." >&5 | |
16072 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
16073 | which seems to be undefined. Please make sure it is defined." >&2;} | |
16074 | ||
16075 | rm -f "$tmp/stdin" | |
16076 | case $ac_file in | |
16077 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
16078 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
16079 | esac \ | |
16080 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
16081 | ;; | |
9f35b464 | 16082 | |
9f35b464 | 16083 | |
9f35b464 | 16084 | |
efd58f08 RW |
16085 | esac |
16086 | ||
94f4a7b9 RW |
16087 | |
16088 | case $ac_file$ac_mode in | |
16089 | "Makefile":F) sed "$extrasub_build" Makefile | | |
16090 | sed "$extrasub_host" | | |
16091 | sed "$extrasub_target" > mf$$ | |
16092 | mv -f mf$$ Makefile ;; | |
16093 | ||
16094 | esac | |
efd58f08 RW |
16095 | done # for ac_tag |
16096 | ||
16097 | ||
16098 | as_fn_exit 0 | |
b58b6ee1 | 16099 | _ACEOF |
b58b6ee1 DJ |
16100 | ac_clean_files=$ac_clean_files_save |
16101 | ||
efd58f08 RW |
16102 | test $ac_write_fail = 0 || |
16103 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
16104 | ||
b58b6ee1 DJ |
16105 | |
16106 | # configure is writing to config.log, and then calls config.status. | |
16107 | # config.status does its own redirection, appending to config.log. | |
16108 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16109 | # by configure, so config.status won't be able to write to it; its | |
16110 | # output is simply discarded. So we exec the FD to /dev/null, | |
16111 | # effectively closing config.log, so it can be properly (re)opened and | |
16112 | # appended to by config.status. When coming back to configure, we | |
16113 | # need to make the FD available again. | |
16114 | if test "$no_create" != yes; then | |
16115 | ac_cs_success=: | |
16116 | ac_config_status_args= | |
16117 | test "$silent" = yes && | |
16118 | ac_config_status_args="$ac_config_status_args --quiet" | |
16119 | exec 5>/dev/null | |
16120 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16121 | exec 5>>config.log | |
16122 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16123 | # would make configure fail if this is the last instruction. | |
efd58f08 RW |
16124 | $ac_cs_success || as_fn_exit $? |
16125 | fi | |
16126 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
16127 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16128 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
b58b6ee1 | 16129 | fi |
9f35b464 | 16130 |