Commit | Line | Data |
---|---|---|
a0da8069 | 1 | #! /bin/sh |
a0da8069 | 2 | # Guess values for system-dependent variables and create Makefiles. |
81ecdfbb RW |
3 | # Generated by GNU Autoconf 2.64. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
a0da8069 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
c6b750e1 | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
c6b750e1 | 31 | fi |
c6b750e1 | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
c6b750e1 DJ |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
c6b750e1 DJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
8e957354 PB |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
81ecdfbb RW |
173 | if (eval "$as_required") 2>/dev/null; then : |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
c6b750e1 | 184 | do |
81ecdfbb RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
c6b750e1 | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
c6b750e1 | 233 | fi |
81ecdfbb RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
c6b750e1 | 263 | |
81ecdfbb RW |
264 | # as_fn_exit STATUS |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
372 | ||
373 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
c6b750e1 | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
c6b750e1 | 410 | |
c6b750e1 DJ |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
417 | ||
c6b750e1 | 418 | |
81ecdfbb RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
c6b750e1 | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
c6b750e1 | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c6b750e1 | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
c6b750e1 | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
c6b750e1 DJ |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
c6b750e1 DJ |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
c6b750e1 DJ |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
c6b750e1 | 483 | fi |
c6b750e1 DJ |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
c6b750e1 DJ |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
81ecdfbb RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
519 | |
520 | # Sed expression to map a string onto a valid CPP name. | |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
81ecdfbb | 527 | exec 7<&0 </dev/null 6>&1 |
a0da8069 | 528 | |
c6b750e1 DJ |
529 | # Name of the host. |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
c6b750e1 DJ |
534 | # |
535 | # Initializations. | |
536 | # | |
a0da8069 | 537 | ac_default_prefix=/usr/local |
81ecdfbb | 538 | ac_clean_files= |
c6b750e1 | 539 | ac_config_libobj_dir=. |
81ecdfbb | 540 | LIBOBJS= |
c6b750e1 DJ |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
c6b750e1 DJ |
545 | |
546 | # Identity of this package. | |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
81ecdfbb | 552 | PACKAGE_URL= |
c6b750e1 DJ |
553 | |
554 | ac_unique_file="move-if-change" | |
81ecdfbb RW |
555 | enable_option_checking=no |
556 | ac_subst_vars='LTLIBOBJS | |
557 | LIBOBJS | |
558 | compare_exclusions | |
82033c9b | 559 | host_shared |
81ecdfbb RW |
560 | stage2_werror_flag |
561 | stage1_checking | |
562 | stage1_cflags | |
563 | MAINT | |
564 | MAINTAINER_MODE_FALSE | |
565 | MAINTAINER_MODE_TRUE | |
566 | COMPILER_NM_FOR_TARGET | |
567 | COMPILER_LD_FOR_TARGET | |
568 | COMPILER_AS_FOR_TARGET | |
569 | FLAGS_FOR_TARGET | |
570 | RAW_CXX_FOR_TARGET | |
571 | WINDMC_FOR_TARGET | |
572 | WINDRES_FOR_TARGET | |
573 | STRIP_FOR_TARGET | |
b121d7d4 | 574 | READELF_FOR_TARGET |
81ecdfbb RW |
575 | RANLIB_FOR_TARGET |
576 | OBJDUMP_FOR_TARGET | |
577 | NM_FOR_TARGET | |
578 | LIPO_FOR_TARGET | |
579 | LD_FOR_TARGET | |
580 | DLLTOOL_FOR_TARGET | |
581 | AS_FOR_TARGET | |
582 | AR_FOR_TARGET | |
e552509b | 583 | GOC_FOR_TARGET |
81ecdfbb RW |
584 | GFORTRAN_FOR_TARGET |
585 | GCJ_FOR_TARGET | |
586 | GCC_FOR_TARGET | |
587 | CXX_FOR_TARGET | |
588 | CC_FOR_TARGET | |
b121d7d4 | 589 | READELF |
81ecdfbb RW |
590 | OBJDUMP |
591 | OBJCOPY | |
592 | WINDMC | |
593 | WINDRES | |
594 | STRIP | |
595 | RANLIB | |
596 | NM | |
597 | LIPO | |
598 | LD | |
599 | DLLTOOL | |
600 | AS | |
601 | AR | |
602 | RUNTEST | |
603 | EXPECT | |
604 | MAKEINFO | |
605 | FLEX | |
606 | LEX | |
607 | M4 | |
608 | BISON | |
609 | YACC | |
81ecdfbb RW |
610 | WINDRES_FOR_BUILD |
611 | WINDMC_FOR_BUILD | |
612 | RANLIB_FOR_BUILD | |
613 | NM_FOR_BUILD | |
614 | LD_FOR_BUILD | |
615 | LDFLAGS_FOR_BUILD | |
e552509b | 616 | GOC_FOR_BUILD |
81ecdfbb RW |
617 | GFORTRAN_FOR_BUILD |
618 | GCJ_FOR_BUILD | |
619 | DLLTOOL_FOR_BUILD | |
620 | CXX_FOR_BUILD | |
621 | CXXFLAGS_FOR_BUILD | |
622 | CFLAGS_FOR_BUILD | |
623 | CC_FOR_BUILD | |
624 | AS_FOR_BUILD | |
625 | AR_FOR_BUILD | |
911e63d0 | 626 | target_configdirs |
81ecdfbb | 627 | configdirs |
81ecdfbb | 628 | build_configdirs |
81ecdfbb RW |
629 | INSTALL_GDB_TK |
630 | GDB_TK | |
631 | CONFIGURE_GDB_TK | |
632 | build_tooldir | |
633 | tooldir | |
634 | GCC_SHLIB_SUBDIR | |
635 | RPATH_ENVVAR | |
4074d5f2 RW |
636 | target_configargs |
637 | host_configargs | |
638 | build_configargs | |
96655cc4 | 639 | BUILD_CONFIG |
91c1f14c | 640 | LDFLAGS_FOR_TARGET |
81ecdfbb RW |
641 | CXXFLAGS_FOR_TARGET |
642 | CFLAGS_FOR_TARGET | |
643 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
644 | SYSROOT_CFLAGS_FOR_TARGET | |
645 | stage1_languages | |
700d40ca | 646 | extra_host_libiberty_configure_flags |
81ecdfbb RW |
647 | clooginc |
648 | clooglibs | |
7ec59b9e | 649 | islinc |
81ecdfbb | 650 | poststage1_ldflags |
143754cd | 651 | poststage1_libs |
81ecdfbb | 652 | stage1_ldflags |
b3676d82 | 653 | stage1_libs |
7ec59b9e | 654 | extra_isl_gmp_configure_flags |
81ecdfbb RW |
655 | extra_mpc_mpfr_configure_flags |
656 | extra_mpc_gmp_configure_flags | |
657 | extra_mpfr_configure_flags | |
658 | gmpinc | |
659 | gmplibs | |
660 | do_compare | |
661 | GNATMAKE | |
662 | GNATBIND | |
663 | ac_ct_CXX | |
664 | CXXFLAGS | |
665 | CXX | |
666 | OBJEXT | |
667 | EXEEXT | |
668 | ac_ct_CC | |
669 | CPPFLAGS | |
670 | LDFLAGS | |
671 | CFLAGS | |
672 | CC | |
ffdd6afc | 673 | EXTRA_CONFIGARGS_LIBJAVA |
81ecdfbb RW |
674 | target_subdir |
675 | host_subdir | |
676 | build_subdir | |
677 | build_libsubdir | |
8e957354 PB |
678 | AWK |
679 | SED | |
81ecdfbb RW |
680 | LN_S |
681 | LN | |
682 | INSTALL_DATA | |
683 | INSTALL_SCRIPT | |
684 | INSTALL_PROGRAM | |
685 | target_os | |
686 | target_vendor | |
687 | target_cpu | |
688 | target | |
689 | host_os | |
690 | host_vendor | |
691 | host_cpu | |
692 | host | |
693 | target_noncanonical | |
694 | host_noncanonical | |
695 | build_noncanonical | |
696 | build_os | |
697 | build_vendor | |
698 | build_cpu | |
699 | build | |
700 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
701 | target_alias | |
702 | host_alias | |
703 | build_alias | |
704 | LIBS | |
705 | ECHO_T | |
706 | ECHO_N | |
707 | ECHO_C | |
708 | DEFS | |
709 | mandir | |
710 | localedir | |
711 | libdir | |
712 | psdir | |
713 | pdfdir | |
714 | dvidir | |
715 | htmldir | |
716 | infodir | |
717 | docdir | |
718 | oldincludedir | |
719 | includedir | |
720 | localstatedir | |
721 | sharedstatedir | |
722 | sysconfdir | |
723 | datadir | |
724 | datarootdir | |
725 | libexecdir | |
726 | sbindir | |
727 | bindir | |
728 | program_transform_name | |
729 | prefix | |
730 | exec_prefix | |
731 | PACKAGE_URL | |
732 | PACKAGE_BUGREPORT | |
733 | PACKAGE_STRING | |
734 | PACKAGE_VERSION | |
735 | PACKAGE_TARNAME | |
736 | PACKAGE_NAME | |
737 | PATH_SEPARATOR | |
738 | SHELL' | |
739 | ac_subst_files='serialization_dependencies | |
740 | host_makefile_frag | |
741 | target_makefile_frag | |
742 | alphaieee_frag | |
743 | ospace_frag' | |
744 | ac_user_opts=' | |
745 | enable_option_checking | |
746 | with_build_libsubdir | |
747 | enable_gold | |
c7791212 | 748 | enable_ld |
89a1e9c3 PB |
749 | enable_libquadmath |
750 | enable_libquadmath_support | |
81ecdfbb RW |
751 | enable_libada |
752 | enable_libssp | |
f66a9a70 | 753 | enable_libstdcxx |
ffdd6afc ILT |
754 | enable_static_libjava |
755 | enable_bootstrap | |
81ecdfbb RW |
756 | with_mpc |
757 | with_mpc_include | |
758 | with_mpc_lib | |
759 | with_mpfr_dir | |
760 | with_mpfr | |
761 | with_mpfr_include | |
762 | with_mpfr_lib | |
763 | with_gmp_dir | |
764 | with_gmp | |
765 | with_gmp_include | |
766 | with_gmp_lib | |
767 | with_host_libstdcxx | |
81ecdfbb | 768 | with_stage1_libs |
b3676d82 | 769 | with_stage1_ldflags |
81ecdfbb | 770 | with_boot_libs |
143754cd | 771 | with_boot_ldflags |
8e71395b | 772 | with_cloog |
7ec59b9e L |
773 | with_isl |
774 | with_isl_include | |
775 | with_isl_lib | |
776 | enable_isl_version_check | |
81ecdfbb RW |
777 | with_cloog_include |
778 | with_cloog_lib | |
779 | enable_cloog_version_check | |
700d40ca | 780 | enable_lto |
81ecdfbb RW |
781 | enable_stage1_languages |
782 | enable_objc_gc | |
783 | with_build_sysroot | |
784 | with_debug_prefix_map | |
96655cc4 | 785 | with_build_config |
81ecdfbb RW |
786 | enable_serial_configure |
787 | with_build_time_tools | |
788 | enable_maintainer_mode | |
789 | enable_stage1_checking | |
790 | enable_werror | |
82033c9b | 791 | enable_host_shared |
81ecdfbb RW |
792 | ' |
793 | ac_precious_vars='build_alias | |
794 | host_alias | |
795 | target_alias | |
796 | CC | |
797 | CFLAGS | |
798 | LDFLAGS | |
799 | LIBS | |
800 | CPPFLAGS | |
801 | CXX | |
802 | CXXFLAGS | |
803 | CCC | |
4074d5f2 RW |
804 | build_configargs |
805 | host_configargs | |
806 | target_configargs | |
81ecdfbb RW |
807 | AR |
808 | AS | |
809 | DLLTOOL | |
810 | LD | |
811 | LIPO | |
812 | NM | |
813 | RANLIB | |
814 | STRIP | |
815 | WINDRES | |
816 | WINDMC | |
817 | OBJCOPY | |
818 | OBJDUMP | |
b121d7d4 | 819 | READELF |
81ecdfbb RW |
820 | CC_FOR_TARGET |
821 | CXX_FOR_TARGET | |
822 | GCC_FOR_TARGET | |
823 | GCJ_FOR_TARGET | |
824 | GFORTRAN_FOR_TARGET | |
e552509b | 825 | GOC_FOR_TARGET |
81ecdfbb RW |
826 | AR_FOR_TARGET |
827 | AS_FOR_TARGET | |
828 | DLLTOOL_FOR_TARGET | |
829 | LD_FOR_TARGET | |
830 | LIPO_FOR_TARGET | |
831 | NM_FOR_TARGET | |
832 | OBJDUMP_FOR_TARGET | |
833 | RANLIB_FOR_TARGET | |
b121d7d4 | 834 | READELF_FOR_TARGET |
81ecdfbb RW |
835 | STRIP_FOR_TARGET |
836 | WINDRES_FOR_TARGET | |
837 | WINDMC_FOR_TARGET' | |
838 | ||
a0da8069 NN |
839 | |
840 | # Initialize some variables set by options. | |
c6b750e1 DJ |
841 | ac_init_help= |
842 | ac_init_version=false | |
81ecdfbb RW |
843 | ac_unrecognized_opts= |
844 | ac_unrecognized_sep= | |
a0da8069 NN |
845 | # The variables have the same names as the options, with |
846 | # dashes changed to underlines. | |
c6b750e1 | 847 | cache_file=/dev/null |
a0da8069 | 848 | exec_prefix=NONE |
a0da8069 | 849 | no_create= |
a0da8069 NN |
850 | no_recursion= |
851 | prefix=NONE | |
852 | program_prefix=NONE | |
853 | program_suffix=NONE | |
854 | program_transform_name=s,x,x, | |
855 | silent= | |
856 | site= | |
857 | srcdir= | |
a0da8069 NN |
858 | verbose= |
859 | x_includes=NONE | |
860 | x_libraries=NONE | |
c6b750e1 DJ |
861 | |
862 | # Installation directory options. | |
863 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
864 | # and all the variables that are supposed to be based on exec_prefix | |
865 | # by default will actually change. | |
866 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 867 | # (The list follows the same order as the GNU Coding Standards.) |
a0da8069 NN |
868 | bindir='${exec_prefix}/bin' |
869 | sbindir='${exec_prefix}/sbin' | |
870 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
871 | datarootdir='${prefix}/share' |
872 | datadir='${datarootdir}' | |
a0da8069 NN |
873 | sysconfdir='${prefix}/etc' |
874 | sharedstatedir='${prefix}/com' | |
875 | localstatedir='${prefix}/var' | |
a0da8069 NN |
876 | includedir='${prefix}/include' |
877 | oldincludedir='/usr/include' | |
81ecdfbb RW |
878 | docdir='${datarootdir}/doc/${PACKAGE}' |
879 | infodir='${datarootdir}/info' | |
880 | htmldir='${docdir}' | |
881 | dvidir='${docdir}' | |
882 | pdfdir='${docdir}' | |
883 | psdir='${docdir}' | |
884 | libdir='${exec_prefix}/lib' | |
885 | localedir='${datarootdir}/locale' | |
886 | mandir='${datarootdir}/man' | |
252b5132 | 887 | |
a0da8069 | 888 | ac_prev= |
81ecdfbb | 889 | ac_dashdash= |
a0da8069 NN |
890 | for ac_option |
891 | do | |
a0da8069 NN |
892 | # If the previous option needs an argument, assign it. |
893 | if test -n "$ac_prev"; then | |
81ecdfbb | 894 | eval $ac_prev=\$ac_option |
a0da8069 NN |
895 | ac_prev= |
896 | continue | |
897 | fi | |
252b5132 | 898 | |
81ecdfbb RW |
899 | case $ac_option in |
900 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
901 | *) ac_optarg=yes ;; | |
902 | esac | |
a0da8069 NN |
903 | |
904 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
905 | ||
81ecdfbb RW |
906 | case $ac_dashdash$ac_option in |
907 | --) | |
908 | ac_dashdash=yes ;; | |
a0da8069 NN |
909 | |
910 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
911 | ac_prev=bindir ;; | |
912 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
c6b750e1 | 913 | bindir=$ac_optarg ;; |
a0da8069 NN |
914 | |
915 | -build | --build | --buil | --bui | --bu) | |
c6b750e1 | 916 | ac_prev=build_alias ;; |
a0da8069 | 917 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
c6b750e1 | 918 | build_alias=$ac_optarg ;; |
a0da8069 NN |
919 | |
920 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
921 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
922 | ac_prev=cache_file ;; | |
923 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
924 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
c6b750e1 DJ |
925 | cache_file=$ac_optarg ;; |
926 | ||
927 | --config-cache | -C) | |
928 | cache_file=config.cache ;; | |
a0da8069 | 929 | |
81ecdfbb | 930 | -datadir | --datadir | --datadi | --datad) |
a0da8069 | 931 | ac_prev=datadir ;; |
81ecdfbb | 932 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
c6b750e1 | 933 | datadir=$ac_optarg ;; |
a0da8069 | 934 | |
81ecdfbb RW |
935 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
936 | | --dataroo | --dataro | --datar) | |
937 | ac_prev=datarootdir ;; | |
938 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
939 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
940 | datarootdir=$ac_optarg ;; | |
941 | ||
a0da8069 | 942 | -disable-* | --disable-*) |
81ecdfbb | 943 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a0da8069 | 944 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
945 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
946 | as_fn_error "invalid feature name: $ac_useropt" | |
947 | ac_useropt_orig=$ac_useropt | |
948 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
949 | case $ac_user_opts in | |
950 | *" | |
951 | "enable_$ac_useropt" | |
952 | "*) ;; | |
953 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
954 | ac_unrecognized_sep=', ';; | |
955 | esac | |
956 | eval enable_$ac_useropt=no ;; | |
957 | ||
958 | -docdir | --docdir | --docdi | --doc | --do) | |
959 | ac_prev=docdir ;; | |
960 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
961 | docdir=$ac_optarg ;; | |
962 | ||
963 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
964 | ac_prev=dvidir ;; | |
965 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
966 | dvidir=$ac_optarg ;; | |
a0da8069 NN |
967 | |
968 | -enable-* | --enable-*) | |
81ecdfbb | 969 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a0da8069 | 970 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
971 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
972 | as_fn_error "invalid feature name: $ac_useropt" | |
973 | ac_useropt_orig=$ac_useropt | |
974 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
975 | case $ac_user_opts in | |
976 | *" | |
977 | "enable_$ac_useropt" | |
978 | "*) ;; | |
979 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
980 | ac_unrecognized_sep=', ';; | |
a0da8069 | 981 | esac |
81ecdfbb | 982 | eval enable_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
983 | |
984 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
985 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
986 | | --exec | --exe | --ex) | |
987 | ac_prev=exec_prefix ;; | |
988 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
989 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
990 | | --exec=* | --exe=* | --ex=*) | |
c6b750e1 | 991 | exec_prefix=$ac_optarg ;; |
a0da8069 NN |
992 | |
993 | -gas | --gas | --ga | --g) | |
994 | # Obsolete; use --with-gas. | |
995 | with_gas=yes ;; | |
996 | ||
c6b750e1 DJ |
997 | -help | --help | --hel | --he | -h) |
998 | ac_init_help=long ;; | |
999 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1000 | ac_init_help=recursive ;; | |
1001 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1002 | ac_init_help=short ;; | |
a0da8069 NN |
1003 | |
1004 | -host | --host | --hos | --ho) | |
c6b750e1 | 1005 | ac_prev=host_alias ;; |
a0da8069 | 1006 | -host=* | --host=* | --hos=* | --ho=*) |
c6b750e1 | 1007 | host_alias=$ac_optarg ;; |
a0da8069 | 1008 | |
81ecdfbb RW |
1009 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1010 | ac_prev=htmldir ;; | |
1011 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1012 | | --ht=*) | |
1013 | htmldir=$ac_optarg ;; | |
1014 | ||
a0da8069 NN |
1015 | -includedir | --includedir | --includedi | --included | --include \ |
1016 | | --includ | --inclu | --incl | --inc) | |
1017 | ac_prev=includedir ;; | |
1018 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1019 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
c6b750e1 | 1020 | includedir=$ac_optarg ;; |
a0da8069 NN |
1021 | |
1022 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1023 | ac_prev=infodir ;; | |
1024 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
c6b750e1 | 1025 | infodir=$ac_optarg ;; |
a0da8069 NN |
1026 | |
1027 | -libdir | --libdir | --libdi | --libd) | |
1028 | ac_prev=libdir ;; | |
1029 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
c6b750e1 | 1030 | libdir=$ac_optarg ;; |
a0da8069 NN |
1031 | |
1032 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1033 | | --libexe | --libex | --libe) | |
1034 | ac_prev=libexecdir ;; | |
1035 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1036 | | --libexe=* | --libex=* | --libe=*) | |
c6b750e1 | 1037 | libexecdir=$ac_optarg ;; |
a0da8069 | 1038 | |
81ecdfbb RW |
1039 | -localedir | --localedir | --localedi | --localed | --locale) |
1040 | ac_prev=localedir ;; | |
1041 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1042 | localedir=$ac_optarg ;; | |
1043 | ||
a0da8069 | 1044 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1045 | | --localstate | --localstat | --localsta | --localst | --locals) |
a0da8069 NN |
1046 | ac_prev=localstatedir ;; |
1047 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1048 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
c6b750e1 | 1049 | localstatedir=$ac_optarg ;; |
a0da8069 NN |
1050 | |
1051 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1052 | ac_prev=mandir ;; | |
1053 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
c6b750e1 | 1054 | mandir=$ac_optarg ;; |
a0da8069 NN |
1055 | |
1056 | -nfp | --nfp | --nf) | |
1057 | # Obsolete; use --without-fp. | |
1058 | with_fp=no ;; | |
1059 | ||
1060 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c6b750e1 | 1061 | | --no-cr | --no-c | -n) |
a0da8069 NN |
1062 | no_create=yes ;; |
1063 | ||
1064 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1065 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1066 | no_recursion=yes ;; | |
1067 | ||
1068 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1069 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1070 | | --oldin | --oldi | --old | --ol | --o) | |
1071 | ac_prev=oldincludedir ;; | |
1072 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1073 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1074 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
c6b750e1 | 1075 | oldincludedir=$ac_optarg ;; |
a0da8069 NN |
1076 | |
1077 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1078 | ac_prev=prefix ;; | |
1079 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
c6b750e1 | 1080 | prefix=$ac_optarg ;; |
a0da8069 NN |
1081 | |
1082 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1083 | | --program-pre | --program-pr | --program-p) | |
1084 | ac_prev=program_prefix ;; | |
1085 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1086 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
c6b750e1 | 1087 | program_prefix=$ac_optarg ;; |
a0da8069 NN |
1088 | |
1089 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1090 | | --program-suf | --program-su | --program-s) | |
1091 | ac_prev=program_suffix ;; | |
1092 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1093 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
c6b750e1 | 1094 | program_suffix=$ac_optarg ;; |
a0da8069 NN |
1095 | |
1096 | -program-transform-name | --program-transform-name \ | |
1097 | | --program-transform-nam | --program-transform-na \ | |
1098 | | --program-transform-n | --program-transform- \ | |
1099 | | --program-transform | --program-transfor \ | |
1100 | | --program-transfo | --program-transf \ | |
1101 | | --program-trans | --program-tran \ | |
1102 | | --progr-tra | --program-tr | --program-t) | |
1103 | ac_prev=program_transform_name ;; | |
1104 | -program-transform-name=* | --program-transform-name=* \ | |
1105 | | --program-transform-nam=* | --program-transform-na=* \ | |
1106 | | --program-transform-n=* | --program-transform-=* \ | |
1107 | | --program-transform=* | --program-transfor=* \ | |
1108 | | --program-transfo=* | --program-transf=* \ | |
1109 | | --program-trans=* | --program-tran=* \ | |
1110 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
c6b750e1 | 1111 | program_transform_name=$ac_optarg ;; |
a0da8069 | 1112 | |
81ecdfbb RW |
1113 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1114 | ac_prev=pdfdir ;; | |
1115 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1116 | pdfdir=$ac_optarg ;; | |
1117 | ||
1118 | -psdir | --psdir | --psdi | --psd | --ps) | |
1119 | ac_prev=psdir ;; | |
1120 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1121 | psdir=$ac_optarg ;; | |
1122 | ||
a0da8069 NN |
1123 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1124 | | -silent | --silent | --silen | --sile | --sil) | |
1125 | silent=yes ;; | |
1126 | ||
1127 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1128 | ac_prev=sbindir ;; | |
1129 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1130 | | --sbi=* | --sb=*) | |
c6b750e1 | 1131 | sbindir=$ac_optarg ;; |
a0da8069 NN |
1132 | |
1133 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1134 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1135 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1136 | | --sha | --sh) | |
1137 | ac_prev=sharedstatedir ;; | |
1138 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1139 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1140 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1141 | | --sha=* | --sh=*) | |
c6b750e1 | 1142 | sharedstatedir=$ac_optarg ;; |
a0da8069 NN |
1143 | |
1144 | -site | --site | --sit) | |
1145 | ac_prev=site ;; | |
1146 | -site=* | --site=* | --sit=*) | |
c6b750e1 | 1147 | site=$ac_optarg ;; |
a0da8069 NN |
1148 | |
1149 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1150 | ac_prev=srcdir ;; | |
1151 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
c6b750e1 | 1152 | srcdir=$ac_optarg ;; |
a0da8069 NN |
1153 | |
1154 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1155 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1156 | ac_prev=sysconfdir ;; | |
1157 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1158 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
c6b750e1 | 1159 | sysconfdir=$ac_optarg ;; |
a0da8069 NN |
1160 | |
1161 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
c6b750e1 | 1162 | ac_prev=target_alias ;; |
a0da8069 | 1163 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
c6b750e1 | 1164 | target_alias=$ac_optarg ;; |
a0da8069 NN |
1165 | |
1166 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1167 | verbose=yes ;; | |
1168 | ||
c6b750e1 DJ |
1169 | -version | --version | --versio | --versi | --vers | -V) |
1170 | ac_init_version=: ;; | |
a0da8069 NN |
1171 | |
1172 | -with-* | --with-*) | |
81ecdfbb | 1173 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a0da8069 | 1174 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1175 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1176 | as_fn_error "invalid package name: $ac_useropt" | |
1177 | ac_useropt_orig=$ac_useropt | |
1178 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1179 | case $ac_user_opts in | |
1180 | *" | |
1181 | "with_$ac_useropt" | |
1182 | "*) ;; | |
1183 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1184 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1185 | esac |
81ecdfbb | 1186 | eval with_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1187 | |
1188 | -without-* | --without-*) | |
81ecdfbb | 1189 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a0da8069 | 1190 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1191 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1192 | as_fn_error "invalid package name: $ac_useropt" | |
1193 | ac_useropt_orig=$ac_useropt | |
1194 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1195 | case $ac_user_opts in | |
1196 | *" | |
1197 | "with_$ac_useropt" | |
1198 | "*) ;; | |
1199 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1200 | ac_unrecognized_sep=', ';; | |
1201 | esac | |
1202 | eval with_$ac_useropt=no ;; | |
a0da8069 NN |
1203 | |
1204 | --x) | |
1205 | # Obsolete; use --with-x. | |
1206 | with_x=yes ;; | |
1207 | ||
1208 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1209 | | --x-incl | --x-inc | --x-in | --x-i) | |
1210 | ac_prev=x_includes ;; | |
1211 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1212 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
c6b750e1 | 1213 | x_includes=$ac_optarg ;; |
a0da8069 NN |
1214 | |
1215 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1216 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1217 | ac_prev=x_libraries ;; | |
1218 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1219 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
c6b750e1 | 1220 | x_libraries=$ac_optarg ;; |
a0da8069 | 1221 | |
81ecdfbb RW |
1222 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1223 | Try \`$0 --help' for more information." | |
a0da8069 NN |
1224 | ;; |
1225 | ||
c6b750e1 DJ |
1226 | *=*) |
1227 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1228 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1229 | case $ac_envvar in #( |
1230 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1231 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1232 | esac | |
1233 | eval $ac_envvar=\$ac_optarg | |
c6b750e1 DJ |
1234 | export $ac_envvar ;; |
1235 | ||
a0da8069 | 1236 | *) |
c6b750e1 | 1237 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1238 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
c6b750e1 | 1239 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1240 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
c6b750e1 | 1241 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
a0da8069 NN |
1242 | ;; |
1243 | ||
1244 | esac | |
1245 | done | |
1246 | ||
1247 | if test -n "$ac_prev"; then | |
c6b750e1 | 1248 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1249 | as_fn_error "missing argument to $ac_option" |
a0da8069 | 1250 | fi |
a0da8069 | 1251 | |
81ecdfbb RW |
1252 | if test -n "$ac_unrecognized_opts"; then |
1253 | case $enable_option_checking in | |
1254 | no) ;; | |
1255 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1256 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
c6b750e1 | 1257 | esac |
81ecdfbb | 1258 | fi |
a0da8069 | 1259 | |
81ecdfbb RW |
1260 | # Check all directory arguments for consistency. |
1261 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1262 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1263 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1264 | libdir localedir mandir | |
a0da8069 | 1265 | do |
81ecdfbb RW |
1266 | eval ac_val=\$$ac_var |
1267 | # Remove trailing slashes. | |
1268 | case $ac_val in | |
1269 | */ ) | |
1270 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1271 | eval $ac_var=\$ac_val;; | |
1272 | esac | |
1273 | # Be sure to have absolute directory names. | |
c6b750e1 | 1274 | case $ac_val in |
81ecdfbb RW |
1275 | [\\/$]* | ?:[\\/]* ) continue;; |
1276 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a0da8069 | 1277 | esac |
81ecdfbb | 1278 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
a0da8069 NN |
1279 | done |
1280 | ||
c6b750e1 DJ |
1281 | # There might be people who depend on the old broken behavior: `$host' |
1282 | # used to hold the argument of --host etc. | |
1283 | # FIXME: To remove some day. | |
1284 | build=$build_alias | |
1285 | host=$host_alias | |
1286 | target=$target_alias | |
376a0e54 | 1287 | |
c6b750e1 DJ |
1288 | # FIXME: To remove some day. |
1289 | if test "x$host_alias" != x; then | |
1290 | if test "x$build_alias" = x; then | |
1291 | cross_compiling=maybe | |
81ecdfbb | 1292 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
c6b750e1 DJ |
1293 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1294 | elif test "x$build_alias" != "x$host_alias"; then | |
1295 | cross_compiling=yes | |
1296 | fi | |
1297 | fi | |
1298 | ||
1299 | ac_tool_prefix= | |
1300 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1301 | ||
1302 | test "$silent" = yes && exec 6>/dev/null | |
a0da8069 | 1303 | |
a0da8069 | 1304 | |
81ecdfbb RW |
1305 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1306 | ac_ls_di=`ls -di .` && | |
1307 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1308 | as_fn_error "working directory cannot be determined" | |
1309 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1310 | as_fn_error "pwd does not report name of working directory" | |
1311 | ||
1312 | ||
a0da8069 NN |
1313 | # Find the source files, if location was not specified. |
1314 | if test -z "$srcdir"; then | |
1315 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1316 | # Try the directory containing this script, then the parent directory. |
1317 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1318 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1319 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1320 | X"$as_myself" : 'X\(//\)$' \| \ | |
1321 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1322 | $as_echo X"$as_myself" | | |
1323 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1324 | s//\1/ | |
1325 | q | |
1326 | } | |
1327 | /^X\(\/\/\)[^/].*/{ | |
1328 | s//\1/ | |
1329 | q | |
1330 | } | |
1331 | /^X\(\/\/\)$/{ | |
1332 | s//\1/ | |
1333 | q | |
1334 | } | |
1335 | /^X\(\/\).*/{ | |
1336 | s//\1/ | |
1337 | q | |
1338 | } | |
1339 | s/.*/./; q'` | |
a0da8069 | 1340 | srcdir=$ac_confdir |
81ecdfbb | 1341 | if test ! -r "$srcdir/$ac_unique_file"; then |
a0da8069 NN |
1342 | srcdir=.. |
1343 | fi | |
1344 | else | |
1345 | ac_srcdir_defaulted=no | |
1346 | fi | |
81ecdfbb RW |
1347 | if test ! -r "$srcdir/$ac_unique_file"; then |
1348 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1349 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1350 | fi | |
1351 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1352 | ac_abs_confdir=`( | |
1353 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1354 | pwd)` | |
1355 | # When building in place, set srcdir=. | |
1356 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1357 | srcdir=. | |
1358 | fi | |
1359 | # Remove unnecessary trailing slashes from srcdir. | |
1360 | # Double slashes in file names in object file debugging info | |
1361 | # mess up M-x gdb in Emacs. | |
1362 | case $srcdir in | |
1363 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1364 | esac | |
6d0cd39e AM |
1365 | case $srcdir in |
1366 | *" "*) | |
1367 | as_fn_error "path to source, $srcdir, contains spaces" | |
1368 | ;; | |
1369 | esac | |
9cc8ae67 PB |
1370 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1371 | ||
81ecdfbb RW |
1372 | for ac_var in $ac_precious_vars; do |
1373 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1374 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1375 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1376 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1377 | done | |
c6b750e1 DJ |
1378 | |
1379 | # | |
1380 | # Report the --help message. | |
1381 | # | |
1382 | if test "$ac_init_help" = "long"; then | |
1383 | # Omit some internal or obsolete options to make the list less imposing. | |
1384 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1385 | cat <<_ACEOF | |
1386 | \`configure' configures this package to adapt to many kinds of systems. | |
1387 | ||
1388 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1389 | ||
1390 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1391 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1392 | ||
1393 | Defaults for the options are specified in brackets. | |
1394 | ||
1395 | Configuration: | |
1396 | -h, --help display this help and exit | |
1397 | --help=short display options specific to this package | |
1398 | --help=recursive display the short help of all the included packages | |
1399 | -V, --version display version information and exit | |
1400 | -q, --quiet, --silent do not print \`checking...' messages | |
1401 | --cache-file=FILE cache test results in FILE [disabled] | |
1402 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1403 | -n, --no-create do not create output files | |
1404 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1405 | ||
c6b750e1 DJ |
1406 | Installation directories: |
1407 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1408 | [$ac_default_prefix] |
c6b750e1 | 1409 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1410 | [PREFIX] |
c6b750e1 DJ |
1411 | |
1412 | By default, \`make install' will install all the files in | |
1413 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1414 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1415 | for instance \`--prefix=\$HOME'. | |
1416 | ||
1417 | For better control, use the options below. | |
1418 | ||
1419 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1420 | --bindir=DIR user executables [EPREFIX/bin] |
1421 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1422 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1423 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1424 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1425 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1426 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1427 | --includedir=DIR C header files [PREFIX/include] | |
1428 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1429 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1430 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1431 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1432 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1433 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1434 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1435 | --htmldir=DIR html documentation [DOCDIR] | |
1436 | --dvidir=DIR dvi documentation [DOCDIR] | |
1437 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1438 | --psdir=DIR ps documentation [DOCDIR] | |
c6b750e1 DJ |
1439 | _ACEOF |
1440 | ||
1441 | cat <<\_ACEOF | |
1442 | ||
1443 | Program names: | |
1444 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1445 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1446 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1447 | ||
1448 | System types: | |
1449 | --build=BUILD configure for building on BUILD [guessed] | |
1450 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1451 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1452 | _ACEOF | |
a0da8069 | 1453 | fi |
a0da8069 | 1454 | |
c6b750e1 DJ |
1455 | if test -n "$ac_init_help"; then |
1456 | ||
1457 | cat <<\_ACEOF | |
1458 | ||
1459 | Optional Features: | |
81ecdfbb | 1460 | --disable-option-checking ignore unrecognized --enable/--with options |
c6b750e1 DJ |
1461 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1462 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
c7791212 | 1463 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7837304f | 1464 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
89a1e9c3 PB |
1465 | --disable-libquadmath do not build libquadmath directory |
1466 | --disable-libquadmath-support | |
1467 | disable libquadmath support for Fortran | |
521ec477 DD |
1468 | --enable-libada build libada directory |
1469 | --enable-libssp build libssp directory | |
f66a9a70 | 1470 | --disable-libstdcxx do not build libstdc++-v3 directory |
ffdd6afc ILT |
1471 | --enable-static-libjava[=ARG] |
1472 | build static libjava [default=no] | |
1473 | --enable-bootstrap enable bootstrapping [yes if native build] | |
7ec59b9e L |
1474 | --disable-isl-version-check |
1475 | disable check for ISL version | |
e552509b ILT |
1476 | --disable-cloog-version-check |
1477 | disable check for CLooG version | |
700d40ca | 1478 | --enable-lto enable link time optimization support |
7837304f AS |
1479 | --enable-stage1-languages[=all] |
1480 | choose additional languages to build during stage1. | |
1481 | Mostly useful for compiler development | |
1482 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1483 | Objective-C runtime | |
521ec477 | 1484 | --enable-serial-[{host,target,build}-]configure |
7837304f AS |
1485 | force sequential configuration of sub-packages for |
1486 | the host, target or build machine, or all | |
1487 | sub-packages | |
1488 | --enable-maintainer-mode | |
1489 | enable make rules and dependencies not useful (and | |
1490 | sometimes confusing) to the casual installer | |
1491 | --enable-stage1-checking[=all] | |
1492 | choose additional checking for stage1 of the | |
1493 | compiler | |
c6b750e1 | 1494 | --enable-werror enable -Werror in bootstrap stage2 and later |
82033c9b | 1495 | --enable-host-shared build host code as shared libraries |
c6b750e1 DJ |
1496 | |
1497 | Optional Packages: | |
1498 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1499 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1500 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
7837304f AS |
1501 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1502 | Equivalent to --with-mpc-include=PATH/include plus | |
1503 | --with-mpc-lib=PATH/lib | |
1504 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1505 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
521ec477 DD |
1506 | --with-mpfr-dir=PATH this option has been REMOVED |
1507 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
7837304f AS |
1508 | Equivalent to --with-mpfr-include=PATH/include plus |
1509 | --with-mpfr-lib=PATH/lib | |
c6b750e1 | 1510 | --with-mpfr-include=PATH |
521ec477 DD |
1511 | specify directory for installed MPFR include files |
1512 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1513 | --with-gmp-dir=PATH this option has been REMOVED | |
7837304f AS |
1514 | --with-gmp=PATH specify prefix directory for the installed GMP |
1515 | package. Equivalent to | |
1516 | --with-gmp-include=PATH/include plus | |
1517 | --with-gmp-lib=PATH/lib | |
521ec477 DD |
1518 | --with-gmp-include=PATH specify directory for installed GMP include files |
1519 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
7837304f AS |
1520 | --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when |
1521 | linking with PPL | |
b3676d82 | 1522 | --with-stage1-libs=LIBS libraries for stage1 |
7837304f AS |
1523 | --with-stage1-ldflags=FLAGS |
1524 | linker flags for stage1 | |
7837304f AS |
1525 | --with-boot-libs=LIBS libraries for stage2 and later |
1526 | --with-boot-ldflags=FLAGS | |
1527 | linker flags for stage2 and later | |
8e71395b L |
1528 | --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL |
1529 | package. Equivalent to | |
1530 | --with-cloog-include=PATH/include plus | |
1531 | --with-cloog-lib=PATH/lib | |
7ec59b9e | 1532 | --with-isl=PATH Specify prefix directory for the installed ISL |
7837304f | 1533 | package. Equivalent to |
7ec59b9e L |
1534 | --with-isl-include=PATH/include plus |
1535 | --with-isl-lib=PATH/lib | |
1536 | --with-isl-include=PATH Specify directory for installed ISL include files | |
1537 | --with-isl-lib=PATH Specify the directory for the installed ISL library | |
e552509b ILT |
1538 | --with-cloog-include=PATH |
1539 | Specify directory for installed CLooG include files | |
1540 | --with-cloog-lib=PATH Specify the directory for the installed CLooG | |
1541 | library | |
521ec477 | 1542 | --with-build-sysroot=SYSROOT |
c6b750e1 | 1543 | use sysroot as the system root during the build |
8a6ee3ab | 1544 | --with-debug-prefix-map='A=B C=D ...' |
7837304f AS |
1545 | map A to B, C to D ... in debug information |
1546 | --with-build-config='NAME NAME2...' | |
1547 | use config/NAME.mk build configuration | |
521ec477 | 1548 | --with-build-time-tools=PATH |
c6b750e1 | 1549 | use given path to find target tools during the build |
c6b750e1 DJ |
1550 | |
1551 | Some influential environment variables: | |
1552 | CC C compiler command | |
1553 | CFLAGS C compiler flags | |
1554 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1555 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1556 | LIBS libraries to pass to the linker, e.g. -l<library> |
1557 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1558 | you have headers in a nonstandard directory <include dir> | |
18f6b6ee PB |
1559 | CXX C++ compiler command |
1560 | CXXFLAGS C++ compiler flags | |
4074d5f2 RW |
1561 | build_configargs |
1562 | additional configure arguments for build directories | |
1563 | host_configargs | |
1564 | additional configure arguments for host directories | |
1565 | target_configargs | |
1566 | additional configure arguments for target directories | |
9a819804 AO |
1567 | AR AR for the host |
1568 | AS AS for the host | |
1569 | DLLTOOL DLLTOOL for the host | |
1570 | LD LD for the host | |
1571 | LIPO LIPO for the host | |
1572 | NM NM for the host | |
1573 | RANLIB RANLIB for the host | |
1574 | STRIP STRIP for the host | |
1575 | WINDRES WINDRES for the host | |
0c24b341 | 1576 | WINDMC WINDMC for the host |
9a819804 AO |
1577 | OBJCOPY OBJCOPY for the host |
1578 | OBJDUMP OBJDUMP for the host | |
b121d7d4 | 1579 | READELF READELF for the host |
9a819804 AO |
1580 | CC_FOR_TARGET |
1581 | CC for the target | |
1582 | CXX_FOR_TARGET | |
1583 | CXX for the target | |
1584 | GCC_FOR_TARGET | |
1585 | GCC for the target | |
1586 | GCJ_FOR_TARGET | |
1587 | GCJ for the target | |
1588 | GFORTRAN_FOR_TARGET | |
1589 | GFORTRAN for the target | |
e552509b ILT |
1590 | GOC_FOR_TARGET |
1591 | GOC for the target | |
9a819804 AO |
1592 | AR_FOR_TARGET |
1593 | AR for the target | |
1594 | AS_FOR_TARGET | |
1595 | AS for the target | |
1596 | DLLTOOL_FOR_TARGET | |
1597 | DLLTOOL for the target | |
1598 | LD_FOR_TARGET | |
1599 | LD for the target | |
1600 | LIPO_FOR_TARGET | |
1601 | LIPO for the target | |
1602 | NM_FOR_TARGET | |
1603 | NM for the target | |
1604 | OBJDUMP_FOR_TARGET | |
1605 | OBJDUMP for the target | |
1606 | RANLIB_FOR_TARGET | |
1607 | RANLIB for the target | |
b121d7d4 DD |
1608 | READELF_FOR_TARGET |
1609 | READELF for the target | |
9a819804 AO |
1610 | STRIP_FOR_TARGET |
1611 | STRIP for the target | |
1612 | WINDRES_FOR_TARGET | |
1613 | WINDRES for the target | |
0c24b341 NC |
1614 | WINDMC_FOR_TARGET |
1615 | WINDMC for the target | |
c6b750e1 DJ |
1616 | |
1617 | Use these variables to override the choices made by `configure' or to help | |
1618 | it to find libraries and programs with nonstandard names/locations. | |
1619 | ||
81ecdfbb | 1620 | Report bugs to the package provider. |
c6b750e1 | 1621 | _ACEOF |
81ecdfbb | 1622 | ac_status=$? |
c6b750e1 DJ |
1623 | fi |
1624 | ||
1625 | if test "$ac_init_help" = "recursive"; then | |
1626 | # If there are subdirs, report their specific --help. | |
c6b750e1 | 1627 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1628 | test -d "$ac_dir" || |
1629 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1630 | continue | |
c6b750e1 DJ |
1631 | ac_builddir=. |
1632 | ||
81ecdfbb RW |
1633 | case "$ac_dir" in |
1634 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1635 | *) | |
1636 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1637 | # A ".." for each directory in $ac_dir_suffix. | |
1638 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1639 | case $ac_top_builddir_sub in | |
1640 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1641 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1642 | esac ;; | |
1643 | esac | |
1644 | ac_abs_top_builddir=$ac_pwd | |
1645 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1646 | # for backward compatibility: | |
1647 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
1648 | |
1649 | case $srcdir in | |
81ecdfbb | 1650 | .) # We are building in place. |
c6b750e1 | 1651 | ac_srcdir=. |
81ecdfbb RW |
1652 | ac_top_srcdir=$ac_top_builddir_sub |
1653 | ac_abs_top_srcdir=$ac_pwd ;; | |
1654 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 1655 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1656 | ac_top_srcdir=$srcdir |
1657 | ac_abs_top_srcdir=$srcdir ;; | |
1658 | *) # Relative name. | |
1659 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1660 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1661 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 1662 | esac |
81ecdfbb RW |
1663 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1664 | ||
1665 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1666 | # Check for guested configure. | |
1667 | if test -f "$ac_srcdir/configure.gnu"; then | |
1668 | echo && | |
1669 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1670 | elif test -f "$ac_srcdir/configure"; then | |
1671 | echo && | |
1672 | $SHELL "$ac_srcdir/configure" --help=recursive | |
c6b750e1 | 1673 | else |
81ecdfbb RW |
1674 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1675 | fi || ac_status=$? | |
1676 | cd "$ac_pwd" || { ac_status=$?; break; } | |
c6b750e1 DJ |
1677 | done |
1678 | fi | |
1679 | ||
81ecdfbb | 1680 | test -n "$ac_init_help" && exit $ac_status |
c6b750e1 DJ |
1681 | if $ac_init_version; then |
1682 | cat <<\_ACEOF | |
81ecdfbb RW |
1683 | configure |
1684 | generated by GNU Autoconf 2.64 | |
c6b750e1 | 1685 | |
81ecdfbb | 1686 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
1687 | This configure script is free software; the Free Software Foundation |
1688 | gives unlimited permission to copy, distribute and modify it. | |
1689 | _ACEOF | |
81ecdfbb | 1690 | exit |
c6b750e1 | 1691 | fi |
81ecdfbb RW |
1692 | |
1693 | ## ------------------------ ## | |
1694 | ## Autoconf initialization. ## | |
1695 | ## ------------------------ ## | |
1696 | ||
1697 | # ac_fn_c_try_compile LINENO | |
1698 | # -------------------------- | |
1699 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1700 | ac_fn_c_try_compile () | |
1701 | { | |
1702 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1703 | rm -f conftest.$ac_objext | |
1704 | if { { ac_try="$ac_compile" | |
1705 | case "(($ac_try" in | |
1706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1707 | *) ac_try_echo=$ac_try;; | |
1708 | esac | |
1709 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1710 | $as_echo "$ac_try_echo"; } >&5 | |
1711 | (eval "$ac_compile") 2>conftest.err | |
1712 | ac_status=$? | |
1713 | if test -s conftest.err; then | |
1714 | grep -v '^ *+' conftest.err >conftest.er1 | |
1715 | cat conftest.er1 >&5 | |
1716 | mv -f conftest.er1 conftest.err | |
1717 | fi | |
1718 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1719 | test $ac_status = 0; } && { | |
1720 | test -z "$ac_c_werror_flag" || | |
1721 | test ! -s conftest.err | |
1722 | } && test -s conftest.$ac_objext; then : | |
1723 | ac_retval=0 | |
1724 | else | |
1725 | $as_echo "$as_me: failed program was:" >&5 | |
1726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1727 | ||
1728 | ac_retval=1 | |
1729 | fi | |
1730 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1731 | return $ac_retval | |
1732 | ||
1733 | } # ac_fn_c_try_compile | |
1734 | ||
1735 | # ac_fn_cxx_try_compile LINENO | |
1736 | # ---------------------------- | |
1737 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1738 | ac_fn_cxx_try_compile () | |
1739 | { | |
1740 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1741 | rm -f conftest.$ac_objext | |
1742 | if { { ac_try="$ac_compile" | |
1743 | case "(($ac_try" in | |
1744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1745 | *) ac_try_echo=$ac_try;; | |
1746 | esac | |
1747 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1748 | $as_echo "$ac_try_echo"; } >&5 | |
1749 | (eval "$ac_compile") 2>conftest.err | |
1750 | ac_status=$? | |
1751 | if test -s conftest.err; then | |
1752 | grep -v '^ *+' conftest.err >conftest.er1 | |
1753 | cat conftest.er1 >&5 | |
1754 | mv -f conftest.er1 conftest.err | |
1755 | fi | |
1756 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1757 | test $ac_status = 0; } && { | |
1758 | test -z "$ac_cxx_werror_flag" || | |
1759 | test ! -s conftest.err | |
1760 | } && test -s conftest.$ac_objext; then : | |
1761 | ac_retval=0 | |
1762 | else | |
1763 | $as_echo "$as_me: failed program was:" >&5 | |
1764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1765 | ||
1766 | ac_retval=1 | |
1767 | fi | |
1768 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1769 | return $ac_retval | |
1770 | ||
1771 | } # ac_fn_cxx_try_compile | |
1772 | ||
b3676d82 EB |
1773 | # ac_fn_cxx_try_link LINENO |
1774 | # ------------------------- | |
1775 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1776 | ac_fn_cxx_try_link () | |
1777 | { | |
1778 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1779 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1780 | if { { ac_try="$ac_link" | |
1781 | case "(($ac_try" in | |
1782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1783 | *) ac_try_echo=$ac_try;; | |
1784 | esac | |
1785 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1786 | $as_echo "$ac_try_echo"; } >&5 | |
1787 | (eval "$ac_link") 2>conftest.err | |
1788 | ac_status=$? | |
1789 | if test -s conftest.err; then | |
1790 | grep -v '^ *+' conftest.err >conftest.er1 | |
1791 | cat conftest.er1 >&5 | |
1792 | mv -f conftest.er1 conftest.err | |
1793 | fi | |
1794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1795 | test $ac_status = 0; } && { | |
1796 | test -z "$ac_cxx_werror_flag" || | |
1797 | test ! -s conftest.err | |
1798 | } && test -s conftest$ac_exeext && { | |
1799 | test "$cross_compiling" = yes || | |
1800 | $as_test_x conftest$ac_exeext | |
1801 | }; then : | |
1802 | ac_retval=0 | |
1803 | else | |
1804 | $as_echo "$as_me: failed program was:" >&5 | |
1805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1806 | ||
1807 | ac_retval=1 | |
1808 | fi | |
1809 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1810 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1811 | # interfere with the next link command; also delete a directory that is | |
1812 | # left behind by Apple's compiler. We do this before executing the actions. | |
1813 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1814 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1815 | return $ac_retval | |
1816 | ||
1817 | } # ac_fn_cxx_try_link | |
1818 | ||
81ecdfbb RW |
1819 | # ac_fn_c_try_link LINENO |
1820 | # ----------------------- | |
1821 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1822 | ac_fn_c_try_link () | |
1823 | { | |
1824 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1825 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1826 | if { { ac_try="$ac_link" | |
1827 | case "(($ac_try" in | |
1828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1829 | *) ac_try_echo=$ac_try;; | |
1830 | esac | |
1831 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1832 | $as_echo "$ac_try_echo"; } >&5 | |
1833 | (eval "$ac_link") 2>conftest.err | |
1834 | ac_status=$? | |
1835 | if test -s conftest.err; then | |
1836 | grep -v '^ *+' conftest.err >conftest.er1 | |
1837 | cat conftest.er1 >&5 | |
1838 | mv -f conftest.er1 conftest.err | |
1839 | fi | |
1840 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1841 | test $ac_status = 0; } && { | |
1842 | test -z "$ac_c_werror_flag" || | |
1843 | test ! -s conftest.err | |
1844 | } && test -s conftest$ac_exeext && { | |
1845 | test "$cross_compiling" = yes || | |
1846 | $as_test_x conftest$ac_exeext | |
1847 | }; then : | |
1848 | ac_retval=0 | |
1849 | else | |
1850 | $as_echo "$as_me: failed program was:" >&5 | |
1851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1852 | ||
1853 | ac_retval=1 | |
1854 | fi | |
1855 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1856 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1857 | # interfere with the next link command; also delete a directory that is | |
1858 | # left behind by Apple's compiler. We do this before executing the actions. | |
1859 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1860 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1861 | return $ac_retval | |
1862 | ||
1863 | } # ac_fn_c_try_link | |
7ec59b9e L |
1864 | |
1865 | # ac_fn_c_try_run LINENO | |
1866 | # ---------------------- | |
1867 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1868 | # that executables *can* be run. | |
1869 | ac_fn_c_try_run () | |
1870 | { | |
1871 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1872 | if { { ac_try="$ac_link" | |
1873 | case "(($ac_try" in | |
1874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1875 | *) ac_try_echo=$ac_try;; | |
1876 | esac | |
1877 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1878 | $as_echo "$ac_try_echo"; } >&5 | |
1879 | (eval "$ac_link") 2>&5 | |
1880 | ac_status=$? | |
1881 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1882 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1883 | { { case "(($ac_try" in | |
1884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1885 | *) ac_try_echo=$ac_try;; | |
1886 | esac | |
1887 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1888 | $as_echo "$ac_try_echo"; } >&5 | |
1889 | (eval "$ac_try") 2>&5 | |
1890 | ac_status=$? | |
1891 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1892 | test $ac_status = 0; }; }; then : | |
1893 | ac_retval=0 | |
1894 | else | |
1895 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1896 | $as_echo "$as_me: failed program was:" >&5 | |
1897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1898 | ||
1899 | ac_retval=$ac_status | |
1900 | fi | |
1901 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1902 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1903 | return $ac_retval | |
1904 | ||
1905 | } # ac_fn_c_try_run | |
81ecdfbb | 1906 | cat >config.log <<_ACEOF |
c6b750e1 DJ |
1907 | This file contains any messages produced by compilers while |
1908 | running configure, to aid debugging if configure makes a mistake. | |
1909 | ||
1910 | It was created by $as_me, which was | |
81ecdfbb | 1911 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
1912 | |
1913 | $ $0 $@ | |
1914 | ||
1915 | _ACEOF | |
81ecdfbb | 1916 | exec 5>>config.log |
c6b750e1 DJ |
1917 | { |
1918 | cat <<_ASUNAME | |
1919 | ## --------- ## | |
1920 | ## Platform. ## | |
1921 | ## --------- ## | |
1922 | ||
1923 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1924 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1925 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1926 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1927 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1928 | ||
1929 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1930 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1931 | ||
1932 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1933 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1934 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 1935 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
c6b750e1 DJ |
1936 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1937 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1938 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1939 | ||
1940 | _ASUNAME | |
1941 | ||
1942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1943 | for as_dir in $PATH | |
1944 | do | |
1945 | IFS=$as_save_IFS | |
1946 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1947 | $as_echo "PATH: $as_dir" |
1948 | done | |
1949 | IFS=$as_save_IFS | |
c6b750e1 DJ |
1950 | |
1951 | } >&5 | |
1952 | ||
1953 | cat >&5 <<_ACEOF | |
1954 | ||
1955 | ||
1956 | ## ----------- ## | |
1957 | ## Core tests. ## | |
1958 | ## ----------- ## | |
1959 | ||
1960 | _ACEOF | |
1961 | ||
1962 | ||
1963 | # Keep a trace of the command line. | |
1964 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1965 | # Strip out --silent because we don't want to record it for future runs. | |
1966 | # Also quote any args containing shell meta-characters. | |
1967 | # Make two passes to allow for proper duplicate-argument suppression. | |
1968 | ac_configure_args= | |
1969 | ac_configure_args0= | |
1970 | ac_configure_args1= | |
c6b750e1 DJ |
1971 | ac_must_keep_next=false |
1972 | for ac_pass in 1 2 | |
1973 | do | |
1974 | for ac_arg | |
1975 | do | |
1976 | case $ac_arg in | |
1977 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1978 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1979 | | -silent | --silent | --silen | --sile | --sil) | |
1980 | continue ;; | |
81ecdfbb RW |
1981 | *\'*) |
1982 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c6b750e1 DJ |
1983 | esac |
1984 | case $ac_pass in | |
81ecdfbb | 1985 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
c6b750e1 | 1986 | 2) |
81ecdfbb | 1987 | as_fn_append ac_configure_args1 " '$ac_arg'" |
c6b750e1 DJ |
1988 | if test $ac_must_keep_next = true; then |
1989 | ac_must_keep_next=false # Got value, back to normal. | |
1990 | else | |
1991 | case $ac_arg in | |
1992 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1993 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1994 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1995 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1996 | case "$ac_configure_args0 " in | |
1997 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1998 | esac | |
1999 | ;; | |
2000 | -* ) ac_must_keep_next=true ;; | |
2001 | esac | |
2002 | fi | |
81ecdfbb | 2003 | as_fn_append ac_configure_args " '$ac_arg'" |
c6b750e1 DJ |
2004 | ;; |
2005 | esac | |
2006 | done | |
2007 | done | |
81ecdfbb RW |
2008 | { ac_configure_args0=; unset ac_configure_args0;} |
2009 | { ac_configure_args1=; unset ac_configure_args1;} | |
c6b750e1 DJ |
2010 | |
2011 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2012 | # config.log. We remove comments because anyway the quotes in there | |
2013 | # would cause problems or look ugly. | |
81ecdfbb RW |
2014 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2015 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
c6b750e1 DJ |
2016 | trap 'exit_status=$? |
2017 | # Save into config.log some information that might help in debugging. | |
2018 | { | |
2019 | echo | |
2020 | ||
2021 | cat <<\_ASBOX | |
2022 | ## ---------------- ## | |
2023 | ## Cache variables. ## | |
2024 | ## ---------------- ## | |
2025 | _ASBOX | |
2026 | echo | |
2027 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2028 | ( |
2029 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2030 | eval ac_val=\$$ac_var | |
2031 | case $ac_val in #( | |
2032 | *${as_nl}*) | |
2033 | case $ac_var in #( | |
2034 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2035 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2036 | esac | |
2037 | case $ac_var in #( | |
2038 | _ | IFS | as_nl) ;; #( | |
2039 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2040 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2041 | esac ;; | |
2042 | esac | |
2043 | done | |
c6b750e1 | 2044 | (set) 2>&1 | |
81ecdfbb RW |
2045 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2046 | *${as_nl}ac_space=\ *) | |
c6b750e1 | 2047 | sed -n \ |
81ecdfbb RW |
2048 | "s/'\''/'\''\\\\'\'''\''/g; |
2049 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2050 | ;; #( | |
c6b750e1 | 2051 | *) |
81ecdfbb | 2052 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 2053 | ;; |
81ecdfbb RW |
2054 | esac | |
2055 | sort | |
2056 | ) | |
c6b750e1 DJ |
2057 | echo |
2058 | ||
2059 | cat <<\_ASBOX | |
2060 | ## ----------------- ## | |
2061 | ## Output variables. ## | |
2062 | ## ----------------- ## | |
2063 | _ASBOX | |
2064 | echo | |
2065 | for ac_var in $ac_subst_vars | |
2066 | do | |
81ecdfbb RW |
2067 | eval ac_val=\$$ac_var |
2068 | case $ac_val in | |
2069 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2070 | esac | |
2071 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2072 | done | sort |
2073 | echo | |
2074 | ||
2075 | if test -n "$ac_subst_files"; then | |
2076 | cat <<\_ASBOX | |
81ecdfbb RW |
2077 | ## ------------------- ## |
2078 | ## File substitutions. ## | |
2079 | ## ------------------- ## | |
c6b750e1 DJ |
2080 | _ASBOX |
2081 | echo | |
2082 | for ac_var in $ac_subst_files | |
2083 | do | |
81ecdfbb RW |
2084 | eval ac_val=\$$ac_var |
2085 | case $ac_val in | |
2086 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2087 | esac | |
2088 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2089 | done | sort |
2090 | echo | |
2091 | fi | |
2092 | ||
2093 | if test -s confdefs.h; then | |
2094 | cat <<\_ASBOX | |
2095 | ## ----------- ## | |
2096 | ## confdefs.h. ## | |
2097 | ## ----------- ## | |
2098 | _ASBOX | |
2099 | echo | |
81ecdfbb | 2100 | cat confdefs.h |
c6b750e1 DJ |
2101 | echo |
2102 | fi | |
2103 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2104 | $as_echo "$as_me: caught signal $ac_signal" |
2105 | $as_echo "$as_me: exit $exit_status" | |
c6b750e1 | 2106 | } >&5 |
81ecdfbb RW |
2107 | rm -f core *.core core.conftest.* && |
2108 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
c6b750e1 | 2109 | exit $exit_status |
81ecdfbb | 2110 | ' 0 |
c6b750e1 | 2111 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2112 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
c6b750e1 DJ |
2113 | done |
2114 | ac_signal=0 | |
2115 | ||
2116 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2117 | rm -f -r conftest* confdefs.h |
2118 | ||
2119 | $as_echo "/* confdefs.h */" > confdefs.h | |
c6b750e1 DJ |
2120 | |
2121 | # Predefined preprocessor variables. | |
2122 | ||
2123 | cat >>confdefs.h <<_ACEOF | |
2124 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2125 | _ACEOF | |
2126 | ||
c6b750e1 DJ |
2127 | cat >>confdefs.h <<_ACEOF |
2128 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2129 | _ACEOF | |
2130 | ||
c6b750e1 DJ |
2131 | cat >>confdefs.h <<_ACEOF |
2132 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2133 | _ACEOF | |
2134 | ||
c6b750e1 DJ |
2135 | cat >>confdefs.h <<_ACEOF |
2136 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2137 | _ACEOF | |
2138 | ||
c6b750e1 DJ |
2139 | cat >>confdefs.h <<_ACEOF |
2140 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2141 | _ACEOF | |
2142 | ||
81ecdfbb RW |
2143 | cat >>confdefs.h <<_ACEOF |
2144 | #define PACKAGE_URL "$PACKAGE_URL" | |
2145 | _ACEOF | |
2146 | ||
c6b750e1 DJ |
2147 | |
2148 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2149 | # Prefer an explicitly selected file to automatically selected ones. |
2150 | ac_site_file1=NONE | |
2151 | ac_site_file2=NONE | |
2152 | if test -n "$CONFIG_SITE"; then | |
2153 | ac_site_file1=$CONFIG_SITE | |
2154 | elif test "x$prefix" != xNONE; then | |
2155 | ac_site_file1=$prefix/share/config.site | |
2156 | ac_site_file2=$prefix/etc/config.site | |
2157 | else | |
2158 | ac_site_file1=$ac_default_prefix/share/config.site | |
2159 | ac_site_file2=$ac_default_prefix/etc/config.site | |
a0da8069 | 2160 | fi |
81ecdfbb RW |
2161 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2162 | do | |
2163 | test "x$ac_site_file" = xNONE && continue | |
a0da8069 | 2164 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2165 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2166 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
c6b750e1 | 2167 | sed 's/^/| /' "$ac_site_file" >&5 |
a0da8069 NN |
2168 | . "$ac_site_file" |
2169 | fi | |
2170 | done | |
2171 | ||
2172 | if test -r "$cache_file"; then | |
c6b750e1 DJ |
2173 | # Some versions of bash will fail to source /dev/null (special |
2174 | # files actually), so we avoid doing that. | |
2175 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2176 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2177 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
c6b750e1 | 2178 | case $cache_file in |
81ecdfbb RW |
2179 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2180 | *) . "./$cache_file";; | |
c6b750e1 DJ |
2181 | esac |
2182 | fi | |
a0da8069 | 2183 | else |
81ecdfbb RW |
2184 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2185 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
c6b750e1 DJ |
2186 | >$cache_file |
2187 | fi | |
2188 | ||
2189 | # Check that the precious variables saved in the cache have kept the same | |
2190 | # value. | |
2191 | ac_cache_corrupted=false | |
81ecdfbb | 2192 | for ac_var in $ac_precious_vars; do |
c6b750e1 DJ |
2193 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2194 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2195 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2196 | eval ac_new_val=\$ac_env_${ac_var}_value | |
c6b750e1 DJ |
2197 | case $ac_old_set,$ac_new_set in |
2198 | set,) | |
81ecdfbb RW |
2199 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2200 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
c6b750e1 DJ |
2201 | ac_cache_corrupted=: ;; |
2202 | ,set) | |
81ecdfbb RW |
2203 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2204 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
c6b750e1 DJ |
2205 | ac_cache_corrupted=: ;; |
2206 | ,);; | |
2207 | *) | |
2208 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2209 | # differences in whitespace do not lead to failure. |
2210 | ac_old_val_w=`echo x $ac_old_val` | |
2211 | ac_new_val_w=`echo x $ac_new_val` | |
2212 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2213 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2214 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2215 | ac_cache_corrupted=: | |
2216 | else | |
2217 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2218 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2219 | eval $ac_var=\$ac_old_val | |
2220 | fi | |
2221 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2222 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2223 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2224 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
c6b750e1 DJ |
2225 | fi;; |
2226 | esac | |
2227 | # Pass precious variables to config.status. | |
2228 | if test "$ac_new_set" = set; then | |
2229 | case $ac_new_val in | |
81ecdfbb | 2230 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c6b750e1 DJ |
2231 | *) ac_arg=$ac_var=$ac_new_val ;; |
2232 | esac | |
2233 | case " $ac_configure_args " in | |
2234 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2235 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
c6b750e1 DJ |
2236 | esac |
2237 | fi | |
2238 | done | |
2239 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2240 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2241 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2242 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2243 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2244 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
a0da8069 | 2245 | fi |
81ecdfbb RW |
2246 | ## -------------------- ## |
2247 | ## Main body of script. ## | |
2248 | ## -------------------- ## | |
a0da8069 NN |
2249 | |
2250 | ac_ext=c | |
a0da8069 | 2251 | ac_cpp='$CPP $CPPFLAGS' |
c6b750e1 DJ |
2252 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2253 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2254 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2255 | ||
2256 | ||
2257 | ||
2258 | ||
c6b750e1 DJ |
2259 | |
2260 | ||
34a0f3cf | 2261 | |
c6b750e1 | 2262 | |
5b553f7e RW |
2263 | |
2264 | progname=$0 | |
2265 | # if PWD already has a value, it is probably wrong. | |
2266 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2267 | ||
2268 | # Export original configure arguments for use by sub-configures. | |
2269 | # Quote arguments with shell meta charatcers. | |
2270 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2271 | set -- "$progname" "$@" | |
2272 | for ac_arg | |
2273 | do | |
2274 | case "$ac_arg" in | |
2275 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2276 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2277 | # if the argument is of the form -foo=baz, quote the baz part only | |
2278 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2279 | *) ;; | |
2280 | esac | |
2281 | # Add the quoted argument to the list. | |
2282 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2283 | done | |
2284 | if test "$silent" = yes; then | |
2285 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2286 | fi | |
2287 | # Remove the initial space we just introduced and, as these will be | |
2288 | # expanded by make, quote '$'. | |
2289 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2290 | ||
c6b750e1 DJ |
2291 | |
2292 | # Find the build, host, and target systems. | |
a0da8069 | 2293 | ac_aux_dir= |
81ecdfbb RW |
2294 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2295 | for ac_t in install-sh install.sh shtool; do | |
2296 | if test -f "$ac_dir/$ac_t"; then | |
2297 | ac_aux_dir=$ac_dir | |
2298 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2299 | break 2 | |
2300 | fi | |
2301 | done | |
a0da8069 NN |
2302 | done |
2303 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2304 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a0da8069 | 2305 | fi |
81ecdfbb RW |
2306 | |
2307 | # These three variables are undocumented and unsupported, | |
2308 | # and are intended to be withdrawn in a future Autoconf release. | |
2309 | # They can cause serious problems if a builder's source tree is in a directory | |
2310 | # whose full name contains unusual characters. | |
2311 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2312 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2313 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2314 | ||
a0da8069 | 2315 | |
c6b750e1 | 2316 | # Make sure we can run config.sub. |
81ecdfbb RW |
2317 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2318 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2319 | ||
2320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2321 | $as_echo_n "checking build system type... " >&6; } | |
2322 | if test "${ac_cv_build+set}" = set; then : | |
2323 | $as_echo_n "(cached) " >&6 | |
2324 | else | |
2325 | ac_build_alias=$build_alias | |
2326 | test "x$ac_build_alias" = x && | |
2327 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2328 | test "x$ac_build_alias" = x && | |
2329 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2330 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2331 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2332 | ||
2333 | fi | |
2334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2335 | $as_echo "$ac_cv_build" >&6; } | |
2336 | case $ac_cv_build in | |
2337 | *-*-*) ;; | |
2338 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2339 | esac | |
c6b750e1 | 2340 | build=$ac_cv_build |
81ecdfbb RW |
2341 | ac_save_IFS=$IFS; IFS='-' |
2342 | set x $ac_cv_build | |
2343 | shift | |
2344 | build_cpu=$1 | |
2345 | build_vendor=$2 | |
2346 | shift; shift | |
2347 | # Remember, the first character of IFS is used to create $*, | |
2348 | # except with old shells: | |
2349 | build_os=$* | |
2350 | IFS=$ac_save_IFS | |
2351 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
a0da8069 | 2352 | |
a0da8069 | 2353 | |
c6b750e1 DJ |
2354 | case ${build_alias} in |
2355 | "") build_noncanonical=${build} ;; | |
2356 | *) build_noncanonical=${build_alias} ;; | |
cac3d6c4 CM |
2357 | esac |
2358 | ||
2359 | ||
cac3d6c4 | 2360 | |
c6b750e1 DJ |
2361 | case ${host_alias} in |
2362 | "") host_noncanonical=${build_noncanonical} ;; | |
2363 | *) host_noncanonical=${host_alias} ;; | |
cac3d6c4 CM |
2364 | esac |
2365 | ||
cac3d6c4 | 2366 | |
c6b750e1 DJ |
2367 | |
2368 | case ${target_alias} in | |
2369 | "") target_noncanonical=${host_noncanonical} ;; | |
2370 | *) target_noncanonical=${target_alias} ;; | |
cac3d6c4 CM |
2371 | esac |
2372 | ||
cac3d6c4 | 2373 | |
c6b750e1 DJ |
2374 | |
2375 | ||
2376 | test "$host_noncanonical" = "$target_noncanonical" && | |
a0da8069 NN |
2377 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2378 | NONENONEs,x,x, && | |
c6b750e1 | 2379 | program_transform_name=s,y,y, |
cac3d6c4 | 2380 | |
81ecdfbb RW |
2381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2382 | $as_echo_n "checking host system type... " >&6; } | |
2383 | if test "${ac_cv_host+set}" = set; then : | |
2384 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 2385 | else |
81ecdfbb RW |
2386 | if test "x$host_alias" = x; then |
2387 | ac_cv_host=$ac_cv_build | |
2388 | else | |
2389 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2390 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2391 | fi | |
c6b750e1 DJ |
2392 | |
2393 | fi | |
81ecdfbb RW |
2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2395 | $as_echo "$ac_cv_host" >&6; } | |
2396 | case $ac_cv_host in | |
2397 | *-*-*) ;; | |
2398 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2399 | esac | |
c6b750e1 | 2400 | host=$ac_cv_host |
81ecdfbb RW |
2401 | ac_save_IFS=$IFS; IFS='-' |
2402 | set x $ac_cv_host | |
2403 | shift | |
2404 | host_cpu=$1 | |
2405 | host_vendor=$2 | |
2406 | shift; shift | |
2407 | # Remember, the first character of IFS is used to create $*, | |
2408 | # except with old shells: | |
2409 | host_os=$* | |
2410 | IFS=$ac_save_IFS | |
2411 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2412 | |
2413 | ||
81ecdfbb RW |
2414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2415 | $as_echo_n "checking target system type... " >&6; } | |
2416 | if test "${ac_cv_target+set}" = set; then : | |
2417 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 2418 | else |
81ecdfbb RW |
2419 | if test "x$target_alias" = x; then |
2420 | ac_cv_target=$ac_cv_host | |
2421 | else | |
2422 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2423 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2424 | fi | |
c6b750e1 | 2425 | |
cac3d6c4 | 2426 | fi |
81ecdfbb RW |
2427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2428 | $as_echo "$ac_cv_target" >&6; } | |
2429 | case $ac_cv_target in | |
2430 | *-*-*) ;; | |
2431 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2432 | esac | |
c6b750e1 | 2433 | target=$ac_cv_target |
81ecdfbb RW |
2434 | ac_save_IFS=$IFS; IFS='-' |
2435 | set x $ac_cv_target | |
2436 | shift | |
2437 | target_cpu=$1 | |
2438 | target_vendor=$2 | |
2439 | shift; shift | |
2440 | # Remember, the first character of IFS is used to create $*, | |
2441 | # except with old shells: | |
2442 | target_os=$* | |
2443 | IFS=$ac_save_IFS | |
2444 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2445 | |
2446 | ||
2447 | # The aliases save the names the user supplied, while $host etc. | |
2448 | # will get canonicalized. | |
2449 | test -n "$target_alias" && | |
2450 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2451 | NONENONEs,x,x, && | |
2452 | program_prefix=${target_alias}- | |
81ecdfbb | 2453 | |
a0da8069 | 2454 | test "$program_prefix" != NONE && |
81ecdfbb | 2455 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
a0da8069 NN |
2456 | # Use a double $ so make ignores it. |
2457 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2458 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2459 | # Double any \ or $. | |
c6b750e1 | 2460 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2461 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2462 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
cac3d6c4 | 2463 | |
a0da8069 NN |
2464 | |
2465 | ||
e5c3f801 NN |
2466 | # Get 'install' or 'install-sh' and its variants. |
2467 | # Find a good install program. We prefer a C program (faster), | |
2468 | # so one script is as good as another. But avoid the broken or | |
2469 | # incompatible versions: | |
2470 | # SysV /etc/install, /usr/sbin/install | |
2471 | # SunOS /usr/etc/install | |
2472 | # IRIX /sbin/install | |
2473 | # AIX /bin/install | |
c6b750e1 | 2474 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5c3f801 NN |
2475 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2476 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2477 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c6b750e1 | 2478 | # OS/2's system install, which has a completely different semantic |
e5c3f801 | 2479 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2480 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2482 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5c3f801 | 2483 | if test -z "$INSTALL"; then |
81ecdfbb RW |
2484 | if test "${ac_cv_path_install+set}" = set; then : |
2485 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
2486 | else |
2487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2488 | for as_dir in $PATH | |
2489 | do | |
2490 | IFS=$as_save_IFS | |
2491 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2492 | # Account for people who put trailing slashes in PATH elements. |
2493 | case $as_dir/ in #(( | |
2494 | ./ | .// | /[cC]/* | \ | |
c6b750e1 | 2495 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2496 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
c6b750e1 DJ |
2497 | /usr/ucb/* ) ;; |
2498 | *) | |
2499 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2500 | # Don't use installbsd from OSF since it installs stuff as root | |
2501 | # by default. | |
2502 | for ac_prog in ginstall scoinst install; do | |
2503 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 2504 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
e5c3f801 | 2505 | if test $ac_prog = install && |
c6b750e1 | 2506 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e5c3f801 NN |
2507 | # AIX install. It has an incompatible calling convention. |
2508 | : | |
c6b750e1 DJ |
2509 | elif test $ac_prog = install && |
2510 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2511 | # program-specific install script used by HP pwplus--don't use. | |
2512 | : | |
e5c3f801 | 2513 | else |
58c85be7 RW |
2514 | rm -rf conftest.one conftest.two conftest.dir |
2515 | echo one > conftest.one | |
2516 | echo two > conftest.two | |
2517 | mkdir conftest.dir | |
2518 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2519 | test -s conftest.one && test -s conftest.two && | |
2520 | test -s conftest.dir/conftest.one && | |
2521 | test -s conftest.dir/conftest.two | |
2522 | then | |
2523 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2524 | break 3 | |
2525 | fi | |
e5c3f801 NN |
2526 | fi |
2527 | fi | |
2528 | done | |
c6b750e1 DJ |
2529 | done |
2530 | ;; | |
2531 | esac | |
81ecdfbb RW |
2532 | |
2533 | done | |
2534 | IFS=$as_save_IFS | |
c6b750e1 | 2535 | |
58c85be7 | 2536 | rm -rf conftest.one conftest.two conftest.dir |
e5c3f801 NN |
2537 | |
2538 | fi | |
2539 | if test "${ac_cv_path_install+set}" = set; then | |
c6b750e1 | 2540 | INSTALL=$ac_cv_path_install |
e5c3f801 | 2541 | else |
58c85be7 RW |
2542 | # As a last resort, use the slow shell script. Don't cache a |
2543 | # value for INSTALL within a source directory, because that will | |
e5c3f801 | 2544 | # break other packages using the cache if that directory is |
58c85be7 | 2545 | # removed, or if the value is a relative name. |
c6b750e1 | 2546 | INSTALL=$ac_install_sh |
e5c3f801 NN |
2547 | fi |
2548 | fi | |
81ecdfbb RW |
2549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2550 | $as_echo "$INSTALL" >&6; } | |
e5c3f801 NN |
2551 | |
2552 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2553 | # It thinks the first close brace ends the variable substitution. | |
2554 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2555 | ||
c6b750e1 | 2556 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
e5c3f801 NN |
2557 | |
2558 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2559 | ||
81ecdfbb RW |
2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2561 | $as_echo_n "checking whether ln works... " >&6; } | |
2562 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2563 | $as_echo_n "(cached) " >&6 | |
656fdd47 PB |
2564 | else |
2565 | rm -f conftestdata_t | |
2566 | echo >conftestdata_f | |
2567 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2568 | then | |
2569 | acx_cv_prog_LN=ln | |
2570 | else | |
2571 | acx_cv_prog_LN=no | |
2572 | fi | |
2573 | rm -f conftestdata_f conftestdata_t | |
2574 | ||
2575 | fi | |
2576 | if test $acx_cv_prog_LN = no; then | |
2577 | LN="cp" | |
81ecdfbb RW |
2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2579 | $as_echo "no, using $LN" >&6; } | |
656fdd47 PB |
2580 | else |
2581 | LN="$acx_cv_prog_LN" | |
81ecdfbb RW |
2582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2583 | $as_echo "yes" >&6; } | |
656fdd47 PB |
2584 | fi |
2585 | ||
81ecdfbb RW |
2586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2587 | $as_echo_n "checking whether ln -s works... " >&6; } | |
c6b750e1 DJ |
2588 | LN_S=$as_ln_s |
2589 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
2590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2591 | $as_echo "yes" >&6; } | |
cac3d6c4 | 2592 | else |
81ecdfbb RW |
2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2594 | $as_echo "no, using $LN_S" >&6; } | |
dfdffa2c PB |
2595 | fi |
2596 | ||
8e957354 PB |
2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2598 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2599 | if test "${ac_cv_path_SED+set}" = set; then : | |
2600 | $as_echo_n "(cached) " >&6 | |
2601 | else | |
2602 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2603 | for ac_i in 1 2 3 4 5 6 7; do | |
2604 | ac_script="$ac_script$as_nl$ac_script" | |
2605 | done | |
2606 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2607 | { ac_script=; unset ac_script;} | |
2608 | if test -z "$SED"; then | |
2609 | ac_path_SED_found=false | |
2610 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2612 | for as_dir in $PATH | |
2613 | do | |
2614 | IFS=$as_save_IFS | |
2615 | test -z "$as_dir" && as_dir=. | |
2616 | for ac_prog in sed gsed; do | |
2617 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2618 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2619 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2620 | # Check for GNU ac_path_SED and select it if it is found. | |
2621 | # Check for GNU $ac_path_SED | |
2622 | case `"$ac_path_SED" --version 2>&1` in | |
2623 | *GNU*) | |
2624 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2625 | *) | |
2626 | ac_count=0 | |
2627 | $as_echo_n 0123456789 >"conftest.in" | |
2628 | while : | |
2629 | do | |
2630 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2631 | mv "conftest.tmp" "conftest.in" | |
2632 | cp "conftest.in" "conftest.nl" | |
2633 | $as_echo '' >> "conftest.nl" | |
2634 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2635 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2636 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2637 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2638 | # Best one so far, save it but keep looking for a better one | |
2639 | ac_cv_path_SED="$ac_path_SED" | |
2640 | ac_path_SED_max=$ac_count | |
2641 | fi | |
2642 | # 10*(2^10) chars as input seems more than enough | |
2643 | test $ac_count -gt 10 && break | |
2644 | done | |
2645 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2646 | esac | |
2647 | ||
2648 | $ac_path_SED_found && break 3 | |
2649 | done | |
2650 | done | |
2651 | done | |
2652 | IFS=$as_save_IFS | |
2653 | if test -z "$ac_cv_path_SED"; then | |
2654 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2655 | fi | |
2656 | else | |
2657 | ac_cv_path_SED=$SED | |
2658 | fi | |
2659 | ||
2660 | fi | |
2661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2662 | $as_echo "$ac_cv_path_SED" >&6; } | |
2663 | SED="$ac_cv_path_SED" | |
2664 | rm -f conftest.sed | |
2665 | ||
2666 | for ac_prog in gawk mawk nawk awk | |
2667 | do | |
2668 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2669 | set dummy $ac_prog; ac_word=$2 | |
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2671 | $as_echo_n "checking for $ac_word... " >&6; } | |
2672 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2673 | $as_echo_n "(cached) " >&6 | |
2674 | else | |
2675 | if test -n "$AWK"; then | |
2676 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2677 | else | |
2678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2679 | for as_dir in $PATH | |
2680 | do | |
2681 | IFS=$as_save_IFS | |
2682 | test -z "$as_dir" && as_dir=. | |
2683 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2684 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2685 | ac_cv_prog_AWK="$ac_prog" | |
2686 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2687 | break 2 | |
2688 | fi | |
2689 | done | |
2690 | done | |
2691 | IFS=$as_save_IFS | |
2692 | ||
2693 | fi | |
2694 | fi | |
2695 | AWK=$ac_cv_prog_AWK | |
2696 | if test -n "$AWK"; then | |
2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2698 | $as_echo "$AWK" >&6; } | |
2699 | else | |
2700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2701 | $as_echo "no" >&6; } | |
2702 | fi | |
2703 | ||
2704 | ||
2705 | test -n "$AWK" && break | |
2706 | done | |
2707 | ||
e5c3f801 | 2708 | |
0fdbe983 DJ |
2709 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2710 | ||
2711 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2712 | # a relative path. | |
2713 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2714 | INSTALL="${srcpwd}/install-sh -c" | |
2715 | fi | |
2716 | ||
a0da8069 NN |
2717 | # Set srcdir to "." if that's what it is. |
2718 | # This is important for multilib support. | |
2719 | pwd=`${PWDCMD-pwd}` | |
a0da8069 NN |
2720 | if test "${pwd}" = "${srcpwd}" ; then |
2721 | srcdir=. | |
252b5132 RH |
2722 | fi |
2723 | ||
a0da8069 | 2724 | topsrcdir=$srcpwd |
252b5132 | 2725 | |
a0da8069 | 2726 | extra_host_args= |
afefada0 | 2727 | |
a0da8069 NN |
2728 | ### To add a new directory to the tree, first choose whether it is a target |
2729 | ### or a host dependent tool. Then put it into the appropriate list | |
2730 | ### (library or tools, host or target), doing a dependency sort. | |
252b5132 | 2731 | |
c6b750e1 | 2732 | # Subdirs will be configured in the order listed in build_configdirs, |
a0da8069 | 2733 | # configdirs, or target_configdirs; see the serialization section below. |
252b5132 | 2734 | |
c6b750e1 DJ |
2735 | # Dependency sorting is only needed when *configuration* must be done in |
2736 | # a particular order. In all cases a dependency should be specified in | |
a0da8069 | 2737 | # the Makefile, whether or not it's implicitly specified here. |
252b5132 | 2738 | |
a0da8069 NN |
2739 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2740 | # cause circular dependencies and break everything horribly. | |
252b5132 | 2741 | |
6a9cf61e PB |
2742 | # these library is used by various programs built for the build |
2743 | # environment | |
2744 | # | |
2745 | build_libs="build-libiberty" | |
2746 | ||
2747 | # these tools are built for the build environment | |
a90ef4bf | 2748 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
6a9cf61e | 2749 | |
a0da8069 NN |
2750 | # these libraries are used by various programs built for the host environment |
2751 | # | |
2bf680c4 | 2752 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv" |
a0da8069 | 2753 | |
a0da8069 NN |
2754 | # these tools are built for the host environment |
2755 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2756 | # know that we are building the simulator. | |
2757 | # binutils, gas and ld appear in that order because it makes sense to run | |
2758 | # "make check" in that particular order. | |
e6de499b | 2759 | # If --enable-gold is used, "gold" may replace "ld". |
a90ef4bf | 2760 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools" |
a0da8069 NN |
2761 | |
2762 | # libgcj represents the runtime libraries only used by gcj. | |
2763 | libgcj="target-libffi \ | |
a0da8069 | 2764 | target-zlib \ |
a0da8069 NN |
2765 | target-libjava" |
2766 | ||
2767 | # these libraries are built for the target environment, and are built after | |
2768 | # the host libraries and the host tools (which may be a cross compiler) | |
ffdd6afc | 2769 | # Note that libiberty is not a target library. |
b1299c4e | 2770 | target_libraries="target-libgcc \ |
2bf680c4 | 2771 | target-libbacktrace \ |
a0da8069 NN |
2772 | target-libgloss \ |
2773 | target-newlib \ | |
cff87f51 | 2774 | target-libgomp \ |
7ec59b9e | 2775 | target-libatomic \ |
d32e2926 | 2776 | target-libitm \ |
b9459e83 | 2777 | target-libstdc++-v3 \ |
4b1cb4fe | 2778 | target-libmudflap \ |
5286fdef | 2779 | target-libsanitizer \ |
95e43135 | 2780 | target-libvtv \ |
bb780410 | 2781 | target-libssp \ |
e552509b | 2782 | target-libquadmath \ |
4b1cb4fe | 2783 | target-libgfortran \ |
4f0ef2d8 | 2784 | target-boehm-gc \ |
83326456 | 2785 | ${libgcj} \ |
a2592b1b | 2786 | target-libobjc \ |
e552509b ILT |
2787 | target-libada \ |
2788 | target-libgo" | |
a0da8069 | 2789 | |
9c14acb8 NN |
2790 | # these tools are built using the target libraries, and are intended to |
2791 | # run only in the target environment | |
a0da8069 | 2792 | # |
9c14acb8 | 2793 | # note: any program that *uses* libraries that are in the "target_libraries" |
0377a422 | 2794 | # list belongs in this list. |
a0da8069 | 2795 | # |
a90ef4bf | 2796 | target_tools="target-rda" |
252b5132 | 2797 | |
a0da8069 | 2798 | ################################################################################ |
252b5132 | 2799 | |
a0da8069 NN |
2800 | ## All tools belong in one of the four categories, and are assigned above |
2801 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2802 | ## is important because configure will choke if they ever get through. | |
2803 | ## ${configdirs} is directories we build using the host tools. | |
2804 | ## ${target_configdirs} is directories we build using the target tools. | |
a0da8069 | 2805 | configdirs=`echo ${host_libs} ${host_tools}` |
9c14acb8 | 2806 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
ee025550 | 2807 | build_configdirs=`echo ${build_libs} ${build_tools}` |
dd12c3a8 | 2808 | |
9cc8ae67 PB |
2809 | |
2810 | ||
a0da8069 | 2811 | ################################################################################ |
252b5132 | 2812 | |
a0da8069 | 2813 | srcname="gnu development package" |
252b5132 | 2814 | |
a0da8069 NN |
2815 | # This gets set non-empty for some net releases of packages. |
2816 | appdirs="" | |
252b5132 | 2817 | |
a0da8069 NN |
2818 | # Define is_cross_compiler to save on calls to 'test'. |
2819 | is_cross_compiler= | |
2820 | if test x"${host}" = x"${target}" ; then | |
2821 | is_cross_compiler=no | |
252b5132 | 2822 | else |
a0da8069 | 2823 | is_cross_compiler=yes |
c6b750e1 | 2824 | fi |
252b5132 | 2825 | |
9175bfc0 | 2826 | # Find the build and target subdir names. |
dd12c3a8 | 2827 | |
66a79c16 DJ |
2828 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2829 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2830 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2831 | # However, they still use the build modules, because the corresponding | |
2832 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2833 | # finishes. So: | |
2834 | # - build_subdir is where we find build modules, and never changes. | |
2835 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2836 | ||
2837 | # Prefix 'build-' so this never conflicts with target_subdir. | |
dd12c3a8 | 2838 | build_subdir="build-${build_noncanonical}" |
c6b750e1 | 2839 | |
81ecdfbb RW |
2840 | # Check whether --with-build-libsubdir was given. |
2841 | if test "${with_build_libsubdir+set}" = set; then : | |
2842 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
66a79c16 DJ |
2843 | else |
2844 | build_libsubdir="$build_subdir" | |
81ecdfbb RW |
2845 | fi |
2846 | ||
b00612cc PB |
2847 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2848 | if ( test $srcdir = . && test -d gcc ) \ | |
2849 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2850 | host_subdir="host-${host_noncanonical}" | |
2851 | else | |
2852 | host_subdir=. | |
2853 | fi | |
dd12c3a8 NN |
2854 | # No prefix. |
2855 | target_subdir=${target_noncanonical} | |
c6b750e1 | 2856 | |
2fd0b40b RW |
2857 | # Be sure to cover against remnants of an in-tree build. |
2858 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2859 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2860 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2861 | fi | |
252b5132 | 2862 | |
a0da8069 NN |
2863 | # Skipdirs are removed silently. |
2864 | skipdirs= | |
2865 | # Noconfigdirs are removed loudly. | |
2866 | noconfigdirs="" | |
252b5132 | 2867 | |
a0da8069 NN |
2868 | use_gnu_ld= |
2869 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2870 | if test x$with_gnu_ld = xno ; then | |
2871 | use_gnu_ld=no | |
93f9b408 | 2872 | noconfigdirs="$noconfigdirs ld gold" |
252b5132 RH |
2873 | fi |
2874 | ||
a0da8069 NN |
2875 | use_gnu_as= |
2876 | # Make sure we don't let GNU as be added if we didn't want it. | |
2877 | if test x$with_gnu_as = xno ; then | |
2878 | use_gnu_as=no | |
2879 | noconfigdirs="$noconfigdirs gas" | |
252b5132 RH |
2880 | fi |
2881 | ||
700d40ca ILT |
2882 | use_included_zlib= |
2883 | # Make sure we don't let ZLIB be added if we didn't want it. | |
2884 | if test x$with_system_zlib = xyes ; then | |
2885 | use_included_zlib=no | |
2886 | noconfigdirs="$noconfigdirs zlib" | |
2887 | fi | |
2888 | ||
c6b750e1 | 2889 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2890 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2891 | |
a0da8069 NN |
2892 | case ${with_x} in |
2893 | yes | "") ;; # the default value for this tree is that X11 is available | |
2894 | no) | |
675c6968 | 2895 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2896 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2897 | enable_gdbtk=no |
a0da8069 NN |
2898 | ;; |
2899 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2900 | esac | |
252b5132 | 2901 | |
0377a422 | 2902 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2903 | # Remove these if host=target. |
2904 | cross_only="target-libgloss target-newlib target-opcodes" | |
2905 | ||
2906 | case $is_cross_compiler in | |
2907 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2908 | esac |
252b5132 | 2909 | |
a0da8069 NN |
2910 | # If both --with-headers and --with-libs are specified, default to |
2911 | # --without-newlib. | |
32be62b5 RS |
2912 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2913 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
2914 | if test x"${with_newlib}" = x ; then |
2915 | with_newlib=no | |
2916 | fi | |
252b5132 RH |
2917 | fi |
2918 | ||
a0da8069 NN |
2919 | # Recognize --with-newlib/--without-newlib. |
2920 | case ${with_newlib} in | |
2921 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2922 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2923 | esac | |
252b5132 | 2924 | |
c7791212 NC |
2925 | # Handle --enable-gold, --enable-ld. |
2926 | # --disable-gold [--enable-ld] | |
2927 | # Build only ld. Default option. | |
d3b50760 L |
2928 | # --enable-gold [--enable-ld] |
2929 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2930 | # as "ld.bfd" and "ld". | |
2931 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
2932 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2933 | # install ld as "ld.bfd". | |
2934 | # --enable-gold[=default] --disable-ld | |
2935 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2936 | # --enable-gold --enable-ld=default | |
d3b50760 L |
2937 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2938 | # and ld.bfd). | |
c7791212 NC |
2939 | # In other words, ld is default |
2940 | # --enable-gold=default --enable-ld=default | |
2941 | # Error. | |
2942 | ||
2943 | default_ld= | |
81ecdfbb RW |
2944 | # Check whether --enable-gold was given. |
2945 | if test "${enable_gold+set}" = set; then : | |
2946 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
2947 | else |
2948 | ENABLE_GOLD=no | |
81ecdfbb RW |
2949 | fi |
2950 | ||
c7791212 NC |
2951 | case "${ENABLE_GOLD}" in |
2952 | yes|default) | |
e6de499b NC |
2953 | # Check for ELF target. |
2954 | is_elf=no | |
2955 | case "${target}" in | |
2956 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2344b8da | 2957 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
5b806d27 | 2958 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
2bda3143 | 2959 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
e6de499b NC |
2960 | case "${target}" in |
2961 | *-*-linux*aout* | *-*-linux*oldld*) | |
2962 | ;; | |
2963 | *) | |
2964 | is_elf=yes | |
2965 | ;; | |
2966 | esac | |
2967 | esac | |
2968 | ||
2969 | if test "$is_elf" = "yes"; then | |
2970 | # Check for target supported by gold. | |
93f9b408 | 2971 | case "${target}" in |
5c0b3823 | 2972 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*) |
c7791212 NC |
2973 | configdirs="$configdirs gold" |
2974 | if test x${ENABLE_GOLD} = xdefault; then | |
2975 | default_ld=gold | |
2976 | fi | |
e6de499b | 2977 | ENABLE_GOLD=yes |
93f9b408 ILT |
2978 | ;; |
2979 | esac | |
e6de499b NC |
2980 | fi |
2981 | ;; | |
2982 | no) | |
2983 | ;; | |
2984 | *) | |
2985 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2986 | ;; | |
c7791212 NC |
2987 | esac |
2988 | ||
2989 | # Check whether --enable-ld was given. | |
2990 | if test "${enable_ld+set}" = set; then : | |
2991 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2992 | else | |
2993 | ENABLE_LD=yes | |
2994 | fi | |
2995 | ||
2996 | ||
2997 | case "${ENABLE_LD}" in | |
2998 | default) | |
d3b50760 | 2999 | if test x${default_ld} != x; then |
c7791212 NC |
3000 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
3001 | fi | |
3002 | ;; | |
3003 | yes) | |
3004 | ;; | |
3005 | no) | |
3006 | if test x${ENABLE_GOLD} != xyes; then | |
3007 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3008 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3009 | fi | |
3010 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3011 | ;; | |
3012 | *) | |
3013 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
3014 | ;; | |
3015 | esac | |
93f9b408 | 3016 | |
a0da8069 | 3017 | # Configure extra directories which are host specific |
252b5132 | 3018 | |
a0da8069 NN |
3019 | case "${host}" in |
3020 | *-cygwin*) | |
3021 | configdirs="$configdirs libtermcap" ;; | |
3022 | esac | |
252b5132 | 3023 | |
59f7ec45 HPN |
3024 | # A target can indicate whether a language isn't supported for some reason. |
3025 | # Only spaces may be used in this macro; not newlines or tabs. | |
3026 | unsupported_languages= | |
3027 | ||
c6b750e1 | 3028 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
3029 | # target this usually means that a port of the program doesn't |
3030 | # exist yet. | |
252b5132 | 3031 | |
a0da8069 | 3032 | case "${host}" in |
3516a403 | 3033 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 3034 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 3035 | ;; |
a0da8069 | 3036 | esac |
252b5132 | 3037 | |
4b1cb4fe | 3038 | |
89a1e9c3 PB |
3039 | # Check whether --enable-libquadmath was given. |
3040 | if test "${enable_libquadmath+set}" = set; then : | |
3041 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3042 | else | |
3043 | ENABLE_LIBQUADMATH=yes | |
3044 | fi | |
3045 | ||
3046 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3047 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3048 | fi | |
3049 | ||
3050 | ||
3051 | # Check whether --enable-libquadmath-support was given. | |
3052 | if test "${enable_libquadmath_support+set}" = set; then : | |
3053 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3054 | else | |
3055 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3056 | fi | |
3057 | ||
3058 | enable_libquadmath_support= | |
3059 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3060 | enable_libquadmath_support=no | |
3061 | fi | |
3062 | ||
3063 | ||
81ecdfbb RW |
3064 | # Check whether --enable-libada was given. |
3065 | if test "${enable_libada+set}" = set; then : | |
3066 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
3067 | else |
3068 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
3069 | fi |
3070 | ||
a2592b1b | 3071 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 3072 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
3073 | fi |
3074 | ||
81ecdfbb RW |
3075 | # Check whether --enable-libssp was given. |
3076 | if test "${enable_libssp+set}" = set; then : | |
3077 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
3078 | else |
3079 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
3080 | fi |
3081 | ||
5f128533 | 3082 | |
f66a9a70 L |
3083 | # Check whether --enable-libstdcxx was given. |
3084 | if test "${enable_libstdcxx+set}" = set; then : | |
3085 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3086 | else | |
3087 | ENABLE_LIBSTDCXX=default | |
3088 | fi | |
3089 | ||
3090 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
3091 | noconfigdirs="$noconfigdirs libstdc++-v3" | |
3092 | fi | |
3093 | ||
a0da8069 NN |
3094 | # Save it here so that, even in case of --enable-libgcj, if the Java |
3095 | # front-end isn't enabled, we still get libgcj disabled. | |
3096 | libgcj_saved=$libgcj | |
3097 | case $enable_libgcj in | |
3098 | yes) | |
3099 | # If we reset it here, it won't get added to noconfigdirs in the | |
3100 | # target-specific build rules, so it will be forcibly enabled | |
3101 | # (unless the Java language itself isn't enabled). | |
3102 | libgcj= | |
3103 | ;; | |
3104 | no) | |
3105 | # Make sure we get it printed in the list of not supported target libs. | |
9e1a94f4 ILT |
3106 | # Don't disable libffi, though, other languages use it. |
3107 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
33d23ee8 ILT |
3108 | # Clear libgcj_saved so that even if java is enabled libffi won't be |
3109 | # built. | |
3110 | libgcj_saved= | |
a0da8069 NN |
3111 | ;; |
3112 | esac | |
252b5132 | 3113 | |
ffdd6afc ILT |
3114 | # Check whether --enable-static-libjava was given. |
3115 | if test "${enable_static_libjava+set}" = set; then : | |
3116 | enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval | |
3117 | else | |
3118 | ENABLE_STATIC_LIBJAVA=no | |
3119 | fi | |
3120 | ||
3121 | enable_static_libjava= | |
3122 | if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then | |
3123 | enable_static_libjava=yes | |
3124 | fi | |
3125 | ||
3126 | if test x$enable_static_libjava != xyes ; then | |
3127 | EXTRA_CONFIGARGS_LIBJAVA=--disable-static | |
3128 | fi | |
3129 | ||
4b1cb4fe | 3130 | |
a6df5a19 PB |
3131 | # Disable libmudflap on some systems. |
3132 | if test x$enable_libmudflap = x ; then | |
3e707e94 | 3133 | case "${target}" in |
29383458 | 3134 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu) |
3d6dfe0f | 3135 | # Enable libmudflap by default in GNU and friends. |
3e707e94 PB |
3136 | ;; |
3137 | *-*-freebsd*) | |
3138 | # Enable libmudflap by default in FreeBSD. | |
3139 | ;; | |
3140 | *) | |
3141 | # Disable it by default everywhere else. | |
3142 | noconfigdirs="$noconfigdirs target-libmudflap" | |
3143 | ;; | |
3144 | esac | |
a6df5a19 | 3145 | fi |
4b1cb4fe | 3146 | |
a6df5a19 PB |
3147 | # Disable libgomp on non POSIX hosted systems. |
3148 | if test x$enable_libgomp = x ; then | |
b3ded179 PB |
3149 | # Enable libgomp by default on hosted POSIX systems. |
3150 | case "${target}" in | |
29383458 | 3151 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
b3ded179 | 3152 | ;; |
5b806d27 | 3153 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
b3ded179 | 3154 | ;; |
2479f722 | 3155 | *-*-solaris2* | *-*-hpux11*) |
b3ded179 PB |
3156 | ;; |
3157 | *-*-darwin* | *-*-aix*) | |
3158 | ;; | |
3159 | *) | |
3160 | noconfigdirs="$noconfigdirs target-libgomp" | |
3161 | ;; | |
3162 | esac | |
a6df5a19 | 3163 | fi |
b3ded179 | 3164 | |
7ec59b9e L |
3165 | # Disable libatomic on unsupported systems. |
3166 | if test -d ${srcdir}/libatomic; then | |
3167 | if test x$enable_libatomic = x; then | |
3168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3169 | $as_echo_n "checking for libatomic support... " >&6; } | |
3170 | if (srcdir=${srcdir}/libatomic; \ | |
3171 | . ${srcdir}/configure.tgt; \ | |
3172 | test -n "$UNSUPPORTED") | |
3173 | then | |
3174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3175 | $as_echo "no" >&6; } | |
3176 | noconfigdirs="$noconfigdirs target-libatomic" | |
3177 | else | |
3178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3179 | $as_echo "yes" >&6; } | |
3180 | fi | |
3181 | fi | |
3182 | fi | |
3183 | ||
d32e2926 RH |
3184 | # Disable libitm on unsupported systems. |
3185 | if test -d ${srcdir}/libitm; then | |
3186 | if test x$enable_libitm = x; then | |
3187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3188 | $as_echo_n "checking for libitm support... " >&6; } | |
3189 | if (srcdir=${srcdir}/libitm; \ | |
3190 | . ${srcdir}/configure.tgt; \ | |
3191 | test -n "$UNSUPPORTED") | |
3192 | then | |
3193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3194 | $as_echo "no" >&6; } | |
3195 | noconfigdirs="$noconfigdirs target-libitm" | |
3196 | else | |
3197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3198 | $as_echo "yes" >&6; } | |
3199 | fi | |
3200 | fi | |
3201 | fi | |
3202 | ||
5286fdef L |
3203 | # Disable libsanitizer on unsupported systems. |
3204 | if test -d ${srcdir}/libsanitizer; then | |
3205 | if test x$enable_libsanitizer = x; then | |
3206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3207 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3208 | if (srcdir=${srcdir}/libsanitizer; \ | |
3209 | . ${srcdir}/configure.tgt; \ | |
3210 | test -n "$UNSUPPORTED") | |
3211 | then | |
3212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3213 | $as_echo "no" >&6; } | |
3214 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3215 | else | |
3216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3217 | $as_echo "yes" >&6; } | |
3218 | fi | |
3219 | fi | |
3220 | fi | |
3221 | ||
95e43135 JBG |
3222 | # Disable libvtv on unsupported systems. |
3223 | if test -d ${srcdir}/libvtv; then | |
3224 | if test x$enable_libvtv = x; then | |
3225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3226 | $as_echo_n "checking for libvtv support... " >&6; } | |
3227 | if (srcdir=${srcdir}/libvtv; \ | |
3228 | . ${srcdir}/configure.tgt; \ | |
3229 | test "$VTV_SUPPORTED" != "yes") | |
3230 | then | |
3231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3232 | $as_echo "no" >&6; } | |
3233 | noconfigdirs="$noconfigdirs target-libvtv" | |
3234 | else | |
3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3236 | $as_echo "yes" >&6; } | |
3237 | fi | |
3238 | fi | |
3239 | fi | |
3240 | ||
1488e230 DE |
3241 | # Disable libquadmath for some systems. |
3242 | case "${target}" in | |
5286fdef L |
3243 | avr-*-*) |
3244 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3245 | ;; | |
1488e230 DE |
3246 | # libquadmath is unused on AIX and libquadmath build process use of |
3247 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3248 | powerpc-*-aix* | rs6000-*-aix*) | |
3249 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3250 | ;; | |
3251 | esac | |
3252 | ||
065a5627 JM |
3253 | # Disable libssp for some systems. |
3254 | case "${target}" in | |
3255 | avr-*-*) | |
c5f5c3c2 | 3256 | # No hosted I/O support. |
065a5627 JM |
3257 | noconfigdirs="$noconfigdirs target-libssp" |
3258 | ;; | |
3259 | powerpc-*-aix* | rs6000-*-aix*) | |
3260 | noconfigdirs="$noconfigdirs target-libssp" | |
3261 | ;; | |
99c513f6 | 3262 | rl78-*-*) |
202e2356 NC |
3263 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3264 | # doesn't fault for those - instead, it gives a build-time error | |
3265 | # for explicit misaligned loads. | |
99c513f6 DD |
3266 | noconfigdirs="$noconfigdirs target-libssp" |
3267 | ;; | |
065a5627 JM |
3268 | esac |
3269 | ||
065a5627 | 3270 | # Disable libstdc++-v3 for some systems. |
f66a9a70 L |
3271 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3272 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3273 | case "${target}" in | |
3274 | *-*-vxworks*) | |
3275 | # VxWorks uses the Dinkumware C++ library. | |
3276 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3277 | ;; | |
3278 | arm*-wince-pe*) | |
3279 | # the C++ libraries don't build on top of CE's C libraries | |
3280 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3281 | ;; | |
3282 | avr-*-*) | |
3283 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3284 | ;; | |
3285 | esac | |
3286 | fi | |
065a5627 JM |
3287 | |
3288 | # Disable Fortran for some systems. | |
3289 | case "${target}" in | |
3290 | mmix-*-*) | |
3291 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3292 | unsupported_languages="$unsupported_languages fortran" | |
3293 | ;; | |
3294 | esac | |
3295 | ||
0827f9a6 | 3296 | # Disable Java if libffi is not supported. |
9863d716 | 3297 | case "${target}" in |
e7d5abf1 JBG |
3298 | aarch64-*-*) |
3299 | ;; | |
0827f9a6 JM |
3300 | alpha*-*-*) |
3301 | ;; | |
3302 | arm*-*-*) | |
3303 | ;; | |
3304 | cris-*-*) | |
3305 | ;; | |
3306 | frv-*-*) | |
3307 | ;; | |
3308 | hppa*-*-linux*) | |
3309 | ;; | |
3310 | hppa*-*-hpux*) | |
3311 | ;; | |
3312 | i?86-*-*) | |
3313 | ;; | |
3314 | ia64*-*-*) | |
3315 | ;; | |
3316 | m32r*-*-*) | |
3317 | ;; | |
3318 | m68k-*-*) | |
3319 | ;; | |
2479f722 | 3320 | mips*-*-rtems*) |
0827f9a6 JM |
3321 | ;; |
3322 | mips*-*-linux*) | |
3323 | ;; | |
3324 | powerpc*-*-linux*) | |
3325 | ;; | |
3326 | powerpc-*-darwin*) | |
3327 | ;; | |
3328 | powerpc-*-aix* | rs6000-*-aix*) | |
3329 | ;; | |
3330 | powerpc-*-freebsd*) | |
3331 | ;; | |
3332 | powerpc64-*-freebsd*) | |
3333 | ;; | |
3334 | powerpc*-*-rtems*) | |
9863d716 | 3335 | ;; |
0827f9a6 JM |
3336 | s390-*-* | s390x-*-*) |
3337 | ;; | |
3338 | sh-*-* | sh[34]*-*-*) | |
3339 | ;; | |
3340 | sh64-*-* | sh5*-*-*) | |
3341 | ;; | |
3342 | sparc*-*-*) | |
3343 | ;; | |
3344 | x86_64-*-*) | |
3345 | ;; | |
3346 | *-*-*) | |
3347 | unsupported_languages="$unsupported_languages java" | |
3348 | ;; | |
3349 | esac | |
3350 | ||
3351 | # Disable Java, libgcj or related libraries for some systems. | |
3352 | case "${target}" in | |
9863d716 JM |
3353 | powerpc-*-darwin*) |
3354 | ;; | |
3355 | i[3456789]86-*-darwin*) | |
3356 | ;; | |
3357 | x86_64-*-darwin[912]*) | |
3358 | ;; | |
3359 | *-*-darwin*) | |
3360 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3361 | ;; | |
9863d716 JM |
3362 | *-*-netware*) |
3363 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3364 | ;; | |
3365 | *-*-rtems*) | |
3366 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3367 | ;; | |
3368 | *-*-tpf*) | |
3369 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3370 | ;; | |
3371 | *-*-uclinux*) | |
3372 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3373 | ;; | |
3374 | *-*-vxworks*) | |
3375 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3376 | ;; | |
9863d716 JM |
3377 | alpha*-*-*vms*) |
3378 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3379 | ;; | |
0827f9a6 | 3380 | arm-wince-pe) |
9863d716 JM |
3381 | noconfigdirs="$noconfigdirs ${libgcj}" |
3382 | ;; | |
9863d716 JM |
3383 | arm*-*-symbianelf*) |
3384 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3385 | ;; | |
9863d716 | 3386 | bfin-*-*) |
9863d716 JM |
3387 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3388 | ;; | |
9863d716 JM |
3389 | cris-*-* | crisv32-*-*) |
3390 | unsupported_languages="$unsupported_languages java" | |
3391 | case "${target}" in | |
3392 | *-*-linux*) | |
3393 | ;; | |
3394 | *) # See PR46792 regarding target-libffi. | |
3395 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3396 | esac | |
3397 | ;; | |
9863d716 JM |
3398 | hppa*64*-*-linux*) |
3399 | # In this case, it's because the hppa64-linux target is for | |
3400 | # the kernel only at this point and has no libc, and thus no | |
3401 | # headers, crt*.o, etc., all of which are needed by these. | |
82ae827f | 3402 | unsupported_languages="$unsupported_languages java" |
9863d716 | 3403 | ;; |
82ae827f | 3404 | hppa*64*-*-hpux*) |
9863d716 JM |
3405 | noconfigdirs="$noconfigdirs ${libgcj}" |
3406 | ;; | |
3407 | hppa*-hp-hpux11*) | |
3408 | ;; | |
82ae827f | 3409 | hppa*-*-hpux*) |
9863d716 JM |
3410 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't |
3411 | # build on HP-UX 10.20. | |
3412 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3413 | ;; | |
9863d716 JM |
3414 | ia64*-*-*vms*) |
3415 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3416 | ;; | |
9863d716 JM |
3417 | i[3456789]86-w64-mingw*) |
3418 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3419 | ;; | |
3420 | i[3456789]86-*-mingw*) | |
3421 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3422 | ;; | |
3423 | x86_64-*-mingw*) | |
3424 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3425 | ;; | |
9863d716 JM |
3426 | mmix-*-*) |
3427 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
9863d716 JM |
3428 | ;; |
3429 | powerpc-*-aix*) | |
3430 | # copied from rs6000-*-* entry | |
3431 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3432 | ;; | |
9863d716 JM |
3433 | rs6000-*-aix*) |
3434 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3435 | ;; | |
9863d716 JM |
3436 | *-*-lynxos*) |
3437 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3438 | ;; | |
9863d716 JM |
3439 | esac |
3440 | ||
a413f71a ILT |
3441 | # Disable libgo for some systems where it is known to not work. |
3442 | # For testing, you can easily override this with --enable-libgo. | |
3443 | if test x$enable_libgo = x; then | |
3444 | case "${target}" in | |
3445 | *-*-darwin*) | |
3446 | # PR 46986 | |
3447 | noconfigdirs="$noconfigdirs target-libgo" | |
3448 | ;; | |
3449 | *-*-cygwin* | *-*-mingw*) | |
3450 | noconfigdirs="$noconfigdirs target-libgo" | |
3451 | ;; | |
3452 | *-*-aix*) | |
3453 | noconfigdirs="$noconfigdirs target-libgo" | |
3454 | ;; | |
3455 | esac | |
3456 | fi | |
3457 | ||
691bb5a1 DD |
3458 | # Default libgloss CPU subdirectory. |
3459 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3460 | |
ff46fb8f JM |
3461 | case "${target}" in |
3462 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3463 | libgloss_dir=wince | |
3464 | ;; | |
f1dd87fc YZ |
3465 | aarch64*-*-* ) |
3466 | libgloss_dir=aarch64 | |
3467 | ;; | |
ff46fb8f JM |
3468 | arm*-*-*) |
3469 | libgloss_dir=arm | |
3470 | ;; | |
3471 | cris-*-* | crisv32-*-*) | |
3472 | libgloss_dir=cris | |
3473 | ;; | |
3474 | hppa*-*-*) | |
3475 | libgloss_dir=pa | |
3476 | ;; | |
3477 | i[3456789]86-*-*) | |
3478 | libgloss_dir=i386 | |
3479 | ;; | |
3480 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3481 | libgloss_dir=m68hc11 | |
3482 | ;; | |
3483 | m68*-*-* | fido-*-*) | |
3484 | libgloss_dir=m68k | |
3485 | ;; | |
3486 | mips*-*-*) | |
3487 | libgloss_dir=mips | |
3488 | ;; | |
3489 | powerpc*-*-*) | |
3490 | libgloss_dir=rs6000 | |
3491 | ;; | |
3492 | sparc*-*-*) | |
3493 | libgloss_dir=sparc | |
3494 | ;; | |
3495 | esac | |
3496 | ||
c7e4b184 | 3497 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3498 | case "${target}" in |
c7e4b184 JM |
3499 | alpha*-dec-osf*) |
3500 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3501 | ;; | |
3502 | i[3456789]86-*-linux*) | |
3503 | # This section makes it possible to build newlib natively on linux. | |
3504 | # If we are using a cross compiler then don't configure newlib. | |
3505 | if test x${is_cross_compiler} != xno ; then | |
3506 | noconfigdirs="$noconfigdirs target-newlib" | |
3507 | fi | |
3508 | noconfigdirs="$noconfigdirs target-libgloss" | |
3509 | # If we are not using a cross compiler, do configure newlib. | |
3510 | # Note however, that newlib will only be configured in this situation | |
3511 | # if the --with-newlib option has been given, because otherwise | |
3512 | # 'target-newlib' will appear in skipdirs. | |
3513 | ;; | |
3514 | i[3456789]86-*-rdos*) | |
3515 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3516 | ;; | |
3517 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3518 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3519 | ;; | |
3520 | sparc-*-sunos4*) | |
3521 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3522 | ;; | |
3523 | *-*-aix*) | |
3524 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3525 | ;; | |
3526 | *-*-beos*) | |
3527 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3528 | ;; | |
a0da8069 | 3529 | *-*-chorusos) |
b2f14e4a | 3530 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3531 | ;; |
c7e4b184 JM |
3532 | *-*-dragonfly*) |
3533 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3534 | ;; | |
3535 | *-*-freebsd*) | |
3536 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3537 | ;; | |
3538 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3539 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3540 | ;; | |
3541 | *-*-lynxos*) | |
3542 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3543 | ;; | |
3544 | *-*-mingw*) | |
3545 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3546 | ;; | |
3547 | *-*-netbsd*) | |
3548 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3549 | ;; | |
3550 | *-*-netware*) | |
3551 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3552 | ;; | |
3553 | *-*-tpf*) | |
3554 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3555 | ;; | |
3556 | *-*-uclinux*) | |
3557 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3558 | ;; | |
3559 | *-*-vxworks*) | |
3560 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3561 | ;; | |
3562 | esac | |
3563 | ||
3564 | case "${target}" in | |
3565 | *-*-chorusos) | |
3566 | ;; | |
24741ab2 | 3567 | powerpc-*-darwin*) |
9d39db92 | 3568 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3569 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3570 | ;; |
85bd1942 TG |
3571 | i[3456789]86-*-darwin*) |
3572 | noconfigdirs="$noconfigdirs ld gprof" | |
3573 | noconfigdirs="$noconfigdirs sim target-rda" | |
3574 | ;; | |
e8a5fa9c | 3575 | x86_64-*-darwin[912]*) |
652dec25 TG |
3576 | noconfigdirs="$noconfigdirs ld gas gprof" |
3577 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3578 | ;; |
04d1ab34 | 3579 | *-*-darwin*) |
d320aacb | 3580 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3581 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3582 | ;; |
5b806d27 | 3583 | *-*-dragonfly*) |
5b806d27 | 3584 | ;; |
de0b4a87 | 3585 | *-*-freebsd*) |
4b1cb4fe DD |
3586 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3587 | && test -f /usr/local/include/gmp.h; then | |
3588 | with_gmp=/usr/local | |
3589 | fi | |
4b1cb4fe | 3590 | ;; |
f8a495c8 NC |
3591 | *-*-kaos*) |
3592 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3593 | noconfigdirs="$noconfigdirs target-libgloss" |
3594 | ;; | |
a0da8069 | 3595 | *-*-netbsd*) |
a0da8069 | 3596 | ;; |
2a3124ca | 3597 | *-*-netware*) |
a0da8069 NN |
3598 | ;; |
3599 | *-*-rtems*) | |
9863d716 | 3600 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3601 | ;; |
1587117a EC |
3602 | # The tpf target doesn't support gdb yet. |
3603 | *-*-tpf*) | |
c7e4b184 | 3604 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3605 | ;; |
c1968181 | 3606 | *-*-uclinux*) |
c7e4b184 | 3607 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3608 | ;; |
a0da8069 | 3609 | *-*-vxworks*) |
a0da8069 NN |
3610 | ;; |
3611 | alpha*-dec-osf*) | |
3612 | # ld works, but does not support shared libraries. | |
a0da8069 | 3613 | # gas doesn't generate exception information. |
c7e4b184 | 3614 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3615 | ;; |
3616 | alpha*-*-*vms*) | |
9863d716 | 3617 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3618 | ;; |
a0da8069 NN |
3619 | alpha*-*-*) |
3620 | # newlib is not 64 bit ready | |
9863d716 | 3621 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3622 | ;; |
a0da8069 | 3623 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3624 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 | 3625 | ;; |
f4cfb980 | 3626 | arc-*-*|arceb-*-*) |
782cb41f | 3627 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3628 | ;; |
a0da8069 | 3629 | arm-*-pe*) |
9863d716 | 3630 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3631 | ;; |
a0da8069 | 3632 | arm-*-riscix*) |
b2f14e4a | 3633 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3634 | ;; |
8e71395b L |
3635 | avr-*-rtems*) |
3636 | ;; | |
3637 | avr-*-*) | |
3638 | if test x${with_avrlibc} != xno; then | |
3639 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3640 | fi | |
3641 | ;; | |
a0da8069 | 3642 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3643 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3644 | ;; |
b2f14e4a JM |
3645 | tic54x-*-*) |
3646 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3647 | ;; |
a0da8069 | 3648 | d10v-*-*) |
b2f14e4a | 3649 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3650 | ;; |
3651 | d30v-*-*) | |
b2f14e4a | 3652 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3653 | ;; |
3654 | fr30-*-elf*) | |
9863d716 | 3655 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3656 | ;; |
20135e4c | 3657 | moxie-*-*) |
20135e4c NC |
3658 | noconfigdirs="$noconfigdirs gprof" |
3659 | ;; | |
a0da8069 | 3660 | h8300*-*-*) |
9863d716 | 3661 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3662 | ;; |
3663 | h8500-*-*) | |
b2f14e4a | 3664 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3665 | ;; |
caeba88f | 3666 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3667 | ;; |
93cc359e | 3668 | hppa*64*-*-linux*) |
a0da8069 | 3669 | ;; |
f0ff0f90 | 3670 | hppa*-*-linux*) |
5dcac624 | 3671 | ;; |
a0da8069 | 3672 | hppa*-*-*elf* | \ |
a0da8069 NN |
3673 | hppa*-*-lites* | \ |
3674 | hppa*-*-openbsd* | \ | |
3675 | hppa*64*-*-*) | |
4f0ef2d8 CD |
3676 | ;; |
3677 | hppa*-hp-hpux11*) | |
0377a422 | 3678 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3679 | ;; |
691bb5a1 | 3680 | hppa*-*-pro*) |
691bb5a1 | 3681 | ;; |
a0da8069 | 3682 | hppa*-*-*) |
9863d716 | 3683 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3684 | ;; |
b07c2aad | 3685 | i960-*-*) |
b2f14e4a | 3686 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3687 | ;; |
a0da8069 NN |
3688 | ia64*-*-elf*) |
3689 | # No gdb support yet. | |
0377a422 | 3690 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3691 | ;; |
3692 | ia64*-**-hpux*) | |
92c9a463 | 3693 | # No ld support yet. |
9863d716 | 3694 | noconfigdirs="$noconfigdirs libgui itcl ld" |
a0da8069 | 3695 | ;; |
19e99079 | 3696 | ia64*-*-*vms*) |
7ec59b9e L |
3697 | # No ld support yet. |
3698 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
19e99079 | 3699 | ;; |
1f53ca9a | 3700 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3701 | ;; |
3702 | i[3456789]86-*-mingw*) | |
45055374 | 3703 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3704 | ;; |
a0da8069 NN |
3705 | *-*-cygwin*) |
3706 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3707 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3708 | # always build newlib if winsup directory is present. |
45055374 | 3709 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3710 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3711 | elif test -d "$srcdir/newlib"; then |
45055374 | 3712 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3713 | fi |
c6b750e1 | 3714 | ;; |
ec11bdc6 | 3715 | i[3456789]86-*-pe) |
782cb41f | 3716 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3717 | ;; |
ec11bdc6 | 3718 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3719 | # The linker does not yet know about weak symbols in COFF, |
3720 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3721 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3722 | ;; |
ec11bdc6 | 3723 | i[3456789]86-*-sco*) |
b2f14e4a | 3724 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3725 | ;; |
cff32a7c | 3726 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
a0da8069 NN |
3727 | noconfigdirs="$noconfigdirs target-libgloss" |
3728 | ;; | |
ec11bdc6 | 3729 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3730 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3731 | ;; |
ec11bdc6 | 3732 | i[3456789]86-*-beos*) |
c7e4b184 | 3733 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3734 | ;; |
b59bea8a | 3735 | i[3456789]86-*-rdos*) |
c7e4b184 | 3736 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3737 | ;; |
a0da8069 | 3738 | mmix-*-*) |
9863d716 | 3739 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3740 | ;; |
4970f871 | 3741 | mt-*-*) |
cdb9b172 AH |
3742 | noconfigdirs="$noconfigdirs sim" |
3743 | ;; | |
a0da8069 NN |
3744 | powerpc-*-aix*) |
3745 | # copied from rs6000-*-* entry | |
c7e4b184 | 3746 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3747 | ;; |
93cc359e | 3748 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 3749 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 3750 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
3751 | # always build newlib. |
3752 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3753 | ;; | |
3754 | # This is temporary until we can link against shared libraries | |
3755 | powerpcle-*-solaris*) | |
b2f14e4a | 3756 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
3757 | ;; |
3758 | powerpc-*-beos*) | |
c7e4b184 | 3759 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3760 | ;; |
a0da8069 | 3761 | rs6000-*-lynxos*) |
c7e4b184 | 3762 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3763 | ;; |
3764 | rs6000-*-aix*) | |
c7e4b184 | 3765 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3766 | ;; |
3767 | rs6000-*-*) | |
9863d716 | 3768 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3769 | ;; |
3770 | m68k-apollo-*) | |
b2f14e4a | 3771 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 3772 | ;; |
25a07265 | 3773 | microblaze*) |
9863d716 | 3774 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 3775 | ;; |
d09bbf00 | 3776 | mips*-sde-elf* | mips*-mti-elf*) |
5bd8be13 RS |
3777 | if test x$with_newlib = xyes; then |
3778 | noconfigdirs="$noconfigdirs gprof" | |
3779 | fi | |
5bd8be13 | 3780 | ;; |
a0da8069 | 3781 | mips*-*-irix5*) |
b2f14e4a | 3782 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
3783 | ;; |
3784 | mips*-*-irix6*) | |
9863d716 | 3785 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3786 | ;; |
a0da8069 | 3787 | mips*-*-bsd*) |
e8044f35 | 3788 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
a0da8069 | 3789 | ;; |
a0da8069 | 3790 | mips*-*-linux*) |
a0da8069 | 3791 | ;; |
e8044f35 RS |
3792 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3793 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3794 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3795 | ;; | |
a0da8069 | 3796 | mips*-*-*) |
9863d716 | 3797 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3798 | ;; |
dbf85af7 | 3799 | sh-*-* | sh64-*-*) |
e8a5fa9c RW |
3800 | case "${target}" in |
3801 | sh*-*-elf) | |
9863d716 | 3802 | ;; |
e8a5fa9c | 3803 | *) |
9863d716 | 3804 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 3805 | esac |
a0da8069 | 3806 | ;; |
a0da8069 | 3807 | sparc-*-sunos4*) |
c7e4b184 | 3808 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
3809 | use_gnu_ld=no |
3810 | fi | |
3811 | ;; | |
619a3713 | 3812 | tic6x-*-*) |
40ae9136 | 3813 | noconfigdirs="$noconfigdirs sim" |
619a3713 | 3814 | ;; |
eb4b2452 NC |
3815 | tilepro-*-* | tilegx-*-*) |
3816 | noconfigdirs="$noconfigdirs sim" | |
3817 | ;; | |
a0da8069 | 3818 | v810-*-*) |
b2f14e4a | 3819 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
3820 | ;; |
3821 | vax-*-*) | |
9863d716 | 3822 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3823 | ;; |
a0da8069 | 3824 | esac |
252b5132 | 3825 | |
a0da8069 NN |
3826 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3827 | # depends upon some newlib header files. | |
3828 | case "${noconfigdirs}" in | |
3829 | *target-libgloss*) ;; | |
3830 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3831 | esac | |
3832 | ||
a0da8069 | 3833 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
3834 | host_makefile_frag=/dev/null |
3835 | if test -d ${srcdir}/config ; then | |
3836 | case "${host}" in | |
ec11bdc6 | 3837 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
3838 | host_makefile_frag="config/mh-djgpp" |
3839 | ;; | |
3840 | *-cygwin*) | |
e33b51a6 | 3841 | |
81ecdfbb RW |
3842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3843 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 3844 | echo a >cygwin-cat-check |
1f53ca9a | 3845 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 3846 | rm cygwin-cat-check |
81ecdfbb RW |
3847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3848 | $as_echo "yes" >&6; } | |
e33b51a6 | 3849 | else |
8ade07e9 | 3850 | rm cygwin-cat-check |
81ecdfbb RW |
3851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3852 | $as_echo "no" >&6; } | |
3853 | as_fn_error "The cat command does not ignore carriage return characters. | |
e33b51a6 NC |
3854 | Please either mount the build directory in binary mode or run the following |
3855 | commands before running any configure script: | |
3856 | set -o igncr | |
3857 | export SHELLOPTS | |
81ecdfbb | 3858 | " "$LINENO" 5 |
e33b51a6 | 3859 | fi |
e33b51a6 | 3860 | |
a0da8069 NN |
3861 | host_makefile_frag="config/mh-cygwin" |
3862 | ;; | |
8a1599ab | 3863 | *-mingw*) |
84e7906e | 3864 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 3865 | ;; |
da888c87 | 3866 | hppa*-hp-hpux10*) |
da888c87 | 3867 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 3868 | ;; |
3516a403 | 3869 | hppa*-hp-hpux*) |
da888c87 PB |
3870 | host_makefile_frag="config/mh-pa" |
3871 | ;; | |
3872 | hppa*-*) | |
3873 | host_makefile_frag="config/mh-pa" | |
3874 | ;; | |
e552509b ILT |
3875 | *-*-darwin*) |
3876 | host_makefile_frag="config/mh-darwin" | |
0df3d27f | 3877 | ;; |
f6d183c0 PB |
3878 | powerpc-*-aix*) |
3879 | host_makefile_frag="config/mh-ppc-aix" | |
3880 | ;; | |
3881 | rs6000-*-aix*) | |
3882 | host_makefile_frag="config/mh-ppc-aix" | |
3883 | ;; | |
a0da8069 NN |
3884 | esac |
3885 | fi | |
3886 | ||
9e07f89d | 3887 | if test "${build}" != "${host}" ; then |
1576798e PB |
3888 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3889 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 3890 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
1576798e PB |
3891 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3892 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
3893 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
e552509b | 3894 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
1576798e PB |
3895 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3896 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3897 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3898 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3899 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3900 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3901 | else | |
3902 | AR_FOR_BUILD="\$(AR)" | |
3903 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 3904 | CC_FOR_BUILD="\$(CC)" |
1576798e PB |
3905 | CXX_FOR_BUILD="\$(CXX)" |
3906 | GCJ_FOR_BUILD="\$(GCJ)" | |
3907 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
e552509b | 3908 | GOC_FOR_BUILD="\$(GOC)" |
1576798e PB |
3909 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3910 | LD_FOR_BUILD="\$(LD)" | |
3911 | NM_FOR_BUILD="\$(NM)" | |
3912 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3913 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3914 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
3915 | fi |
3916 | ||
3917 | ac_ext=c | |
c6b750e1 DJ |
3918 | ac_cpp='$CPP $CPPFLAGS' |
3919 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3920 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3921 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3922 | if test -n "$ac_tool_prefix"; then | |
3923 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3924 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3926 | $as_echo_n "checking for $ac_word... " >&6; } | |
3927 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3928 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
3929 | else |
3930 | if test -n "$CC"; then | |
3931 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3932 | else | |
3933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3934 | for as_dir in $PATH | |
3935 | do | |
3936 | IFS=$as_save_IFS | |
3937 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3938 | for ac_exec_ext in '' $ac_executable_extensions; do |
3939 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3940 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 3941 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3942 | break 2 |
3943 | fi | |
3944 | done | |
81ecdfbb RW |
3945 | done |
3946 | IFS=$as_save_IFS | |
c6b750e1 DJ |
3947 | |
3948 | fi | |
3949 | fi | |
3950 | CC=$ac_cv_prog_CC | |
3951 | if test -n "$CC"; then | |
81ecdfbb RW |
3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3953 | $as_echo "$CC" >&6; } | |
c6b750e1 | 3954 | else |
81ecdfbb RW |
3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3956 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3957 | fi |
3958 | ||
81ecdfbb | 3959 | |
c6b750e1 DJ |
3960 | fi |
3961 | if test -z "$ac_cv_prog_CC"; then | |
3962 | ac_ct_CC=$CC | |
6a9cf61e | 3963 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 3964 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3966 | $as_echo_n "checking for $ac_word... " >&6; } | |
3967 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3968 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
3969 | else |
3970 | if test -n "$ac_ct_CC"; then | |
3971 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3972 | else | |
3973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3974 | for as_dir in $PATH | |
3975 | do | |
3976 | IFS=$as_save_IFS | |
3977 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3978 | for ac_exec_ext in '' $ac_executable_extensions; do |
3979 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3980 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 3981 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3982 | break 2 |
3983 | fi | |
3984 | done | |
81ecdfbb RW |
3985 | done |
3986 | IFS=$as_save_IFS | |
c6b750e1 DJ |
3987 | |
3988 | fi | |
3989 | fi | |
3990 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3991 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3993 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 3994 | else |
81ecdfbb RW |
3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3996 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3997 | fi |
3998 | ||
81ecdfbb RW |
3999 | if test "x$ac_ct_CC" = x; then |
4000 | CC="" | |
4001 | else | |
4002 | case $cross_compiling:$ac_tool_warned in | |
4003 | yes:) | |
4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4005 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4006 | ac_tool_warned=yes ;; | |
4007 | esac | |
4008 | CC=$ac_ct_CC | |
4009 | fi | |
c6b750e1 DJ |
4010 | else |
4011 | CC="$ac_cv_prog_CC" | |
4012 | fi | |
4013 | ||
4014 | if test -z "$CC"; then | |
81ecdfbb RW |
4015 | if test -n "$ac_tool_prefix"; then |
4016 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 4017 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4019 | $as_echo_n "checking for $ac_word... " >&6; } | |
4020 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4021 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4022 | else |
4023 | if test -n "$CC"; then | |
4024 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4025 | else | |
c6b750e1 DJ |
4026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4027 | for as_dir in $PATH | |
4028 | do | |
4029 | IFS=$as_save_IFS | |
4030 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4031 | for ac_exec_ext in '' $ac_executable_extensions; do |
4032 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4033 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4034 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4035 | break 2 |
4036 | fi | |
4037 | done | |
81ecdfbb RW |
4038 | done |
4039 | IFS=$as_save_IFS | |
c6b750e1 | 4040 | |
9e07f89d NN |
4041 | fi |
4042 | fi | |
c6b750e1 | 4043 | CC=$ac_cv_prog_CC |
9e07f89d | 4044 | if test -n "$CC"; then |
81ecdfbb RW |
4045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4046 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4047 | else |
81ecdfbb RW |
4048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4049 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4050 | fi |
4051 | ||
c6b750e1 | 4052 | |
81ecdfbb | 4053 | fi |
c6b750e1 | 4054 | fi |
9e07f89d NN |
4055 | if test -z "$CC"; then |
4056 | # Extract the first word of "cc", so it can be a program name with args. | |
4057 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4059 | $as_echo_n "checking for $ac_word... " >&6; } | |
4060 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4061 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4062 | else |
4063 | if test -n "$CC"; then | |
4064 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4065 | else | |
9e07f89d | 4066 | ac_prog_rejected=no |
c6b750e1 DJ |
4067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4068 | for as_dir in $PATH | |
4069 | do | |
4070 | IFS=$as_save_IFS | |
4071 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4072 | for ac_exec_ext in '' $ac_executable_extensions; do |
4073 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 DJ |
4074 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4075 | ac_prog_rejected=yes | |
4076 | continue | |
4077 | fi | |
4078 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4080 | break 2 |
4081 | fi | |
4082 | done | |
81ecdfbb RW |
4083 | done |
4084 | IFS=$as_save_IFS | |
c6b750e1 | 4085 | |
9e07f89d NN |
4086 | if test $ac_prog_rejected = yes; then |
4087 | # We found a bogon in the path, so make sure we never use it. | |
4088 | set dummy $ac_cv_prog_CC | |
4089 | shift | |
c6b750e1 | 4090 | if test $# != 0; then |
9e07f89d NN |
4091 | # We chose a different compiler from the bogus one. |
4092 | # However, it has the same basename, so the bogon will be chosen | |
4093 | # first if we set CC to just the basename; use the full file name. | |
4094 | shift | |
c6b750e1 | 4095 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
4096 | fi |
4097 | fi | |
4098 | fi | |
4099 | fi | |
c6b750e1 | 4100 | CC=$ac_cv_prog_CC |
9e07f89d | 4101 | if test -n "$CC"; then |
81ecdfbb RW |
4102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4103 | $as_echo "$CC" >&6; } | |
9e07f89d | 4104 | else |
81ecdfbb RW |
4105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4106 | $as_echo "no" >&6; } | |
9e07f89d NN |
4107 | fi |
4108 | ||
81ecdfbb | 4109 | |
c6b750e1 DJ |
4110 | fi |
4111 | if test -z "$CC"; then | |
4112 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4113 | for ac_prog in cl.exe |
c6b750e1 DJ |
4114 | do |
4115 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4116 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb 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_CC+set}" = set; then : | |
4120 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4121 | else |
4122 | if test -n "$CC"; then | |
4123 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4124 | else | |
c6b750e1 DJ |
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=. | |
81ecdfbb 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 | |
c6b750e1 | 4132 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 4134 | break 2 |
376a0e54 | 4135 | fi |
c6b750e1 | 4136 | done |
81ecdfbb RW |
4137 | done |
4138 | IFS=$as_save_IFS | |
cac3d6c4 | 4139 | |
c6b750e1 DJ |
4140 | fi |
4141 | fi | |
4142 | CC=$ac_cv_prog_CC | |
4143 | if test -n "$CC"; then | |
81ecdfbb RW |
4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4145 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 4146 | else |
81ecdfbb RW |
4147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4148 | $as_echo "no" >&6; } | |
9e07f89d | 4149 | fi |
cac3d6c4 | 4150 | |
81ecdfbb | 4151 | |
c6b750e1 DJ |
4152 | test -n "$CC" && break |
4153 | done | |
cac3d6c4 | 4154 | fi |
c6b750e1 DJ |
4155 | if test -z "$CC"; then |
4156 | ac_ct_CC=$CC | |
81ecdfbb | 4157 | for ac_prog in cl.exe |
c6b750e1 DJ |
4158 | do |
4159 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4160 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4162 | $as_echo_n "checking for $ac_word... " >&6; } | |
4163 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4164 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 4165 | else |
c6b750e1 DJ |
4166 | if test -n "$ac_ct_CC"; then |
4167 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 4168 | else |
c6b750e1 DJ |
4169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4170 | for as_dir in $PATH | |
4171 | do | |
4172 | IFS=$as_save_IFS | |
4173 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4174 | for ac_exec_ext in '' $ac_executable_extensions; do |
4175 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4176 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4178 | break 2 |
4179 | fi | |
4180 | done | |
81ecdfbb RW |
4181 | done |
4182 | IFS=$as_save_IFS | |
c6b750e1 | 4183 | |
cac3d6c4 CM |
4184 | fi |
4185 | fi | |
c6b750e1 DJ |
4186 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4187 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4189 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 4190 | else |
81ecdfbb RW |
4191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4192 | $as_echo "no" >&6; } | |
cac3d6c4 | 4193 | fi |
376a0e54 | 4194 | |
81ecdfbb | 4195 | |
c6b750e1 DJ |
4196 | test -n "$ac_ct_CC" && break |
4197 | done | |
4198 | ||
81ecdfbb RW |
4199 | if test "x$ac_ct_CC" = x; then |
4200 | CC="" | |
4201 | else | |
4202 | case $cross_compiling:$ac_tool_warned in | |
4203 | yes:) | |
4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4205 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4206 | ac_tool_warned=yes ;; | |
4207 | esac | |
4208 | CC=$ac_ct_CC | |
4209 | fi | |
c6b750e1 DJ |
4210 | fi |
4211 | ||
4212 | fi | |
4213 | ||
4214 | ||
81ecdfbb RW |
4215 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4216 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4217 | as_fn_error "no acceptable C compiler found in \$PATH | |
4218 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 DJ |
4219 | |
4220 | # Provide some information about the compiler. | |
81ecdfbb RW |
4221 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4222 | set X $ac_compile | |
4223 | ac_compiler=$2 | |
4224 | for ac_option in --version -v -V -qversion; do | |
4225 | { { ac_try="$ac_compiler $ac_option >&5" | |
4226 | case "(($ac_try" in | |
4227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4228 | *) ac_try_echo=$ac_try;; | |
4229 | esac | |
4230 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4231 | $as_echo "$ac_try_echo"; } >&5 | |
4232 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4233 | ac_status=$? |
81ecdfbb RW |
4234 | if test -s conftest.err; then |
4235 | sed '10a\ | |
4236 | ... rest of stderr output deleted ... | |
4237 | 10q' conftest.err >conftest.er1 | |
4238 | cat conftest.er1 >&5 | |
4239 | rm -f conftest.er1 conftest.err | |
4240 | fi | |
4241 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4242 | test $ac_status = 0; } | |
4243 | done | |
c6b750e1 | 4244 | |
81ecdfbb | 4245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4246 | /* end confdefs.h. */ |
4247 | ||
4248 | int | |
4249 | main () | |
4250 | { | |
4251 | ||
4252 | ; | |
4253 | return 0; | |
4254 | } | |
4255 | _ACEOF | |
4256 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 4257 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
c6b750e1 DJ |
4258 | # Try to create an executable without -o first, disregard a.out. |
4259 | # It will help us diagnose broken compilers, and finding out an intuition | |
4260 | # of exeext. | |
81ecdfbb RW |
4261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4262 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4263 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4264 | ||
4265 | # The possible output files: | |
4266 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4267 | ||
4268 | ac_rmfiles= | |
4269 | for ac_file in $ac_files | |
4270 | do | |
4271 | case $ac_file in | |
4272 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4273 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4274 | esac | |
4275 | done | |
4276 | rm -f $ac_rmfiles | |
4277 | ||
4278 | if { { ac_try="$ac_link_default" | |
4279 | case "(($ac_try" in | |
4280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4281 | *) ac_try_echo=$ac_try;; | |
4282 | esac | |
4283 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4284 | $as_echo "$ac_try_echo"; } >&5 | |
4285 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4286 | ac_status=$? |
81ecdfbb RW |
4287 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4288 | test $ac_status = 0; }; then : | |
4289 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4290 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4291 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4292 | # so that the user can short-circuit this test for compilers unknown to | |
4293 | # Autoconf. | |
4294 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4295 | do |
4296 | test -f "$ac_file" || continue | |
4297 | case $ac_file in | |
81ecdfbb | 4298 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4299 | ;; |
4300 | [ab].out ) | |
4301 | # We found the default executable, but exeext='' is most | |
4302 | # certainly right. | |
4303 | break;; | |
4304 | *.* ) | |
81ecdfbb RW |
4305 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4306 | then :; else | |
4307 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4308 | fi | |
4309 | # We set ac_cv_exeext here because the later test for it is not | |
4310 | # safe: cross compilers may not add the suffix if given an `-o' | |
4311 | # argument, so we may need to know it at that point already. | |
4312 | # Even if this section looks crufty: it has the advantage of | |
4313 | # actually working. | |
c6b750e1 DJ |
4314 | break;; |
4315 | * ) | |
4316 | break;; | |
4317 | esac | |
4318 | done | |
81ecdfbb RW |
4319 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4320 | ||
c6b750e1 | 4321 | else |
81ecdfbb RW |
4322 | ac_file='' |
4323 | fi | |
4324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4325 | $as_echo "$ac_file" >&6; } | |
4326 | if test -z "$ac_file"; then : | |
4327 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4328 | sed 's/^/| /' conftest.$ac_ext >&5 |
4329 | ||
81ecdfbb RW |
4330 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4331 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4332 | { as_fn_set_status 77 | |
4333 | as_fn_error "C compiler cannot create executables | |
4334 | See \`config.log' for more details." "$LINENO" 5; }; } | |
c6b750e1 | 4335 | fi |
c6b750e1 | 4336 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4337 | |
81ecdfbb | 4338 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4339 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4341 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
c6b750e1 DJ |
4342 | # If not cross compiling, check that we can run a simple program. |
4343 | if test "$cross_compiling" != yes; then | |
4344 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
4345 | { { case "(($ac_try" in |
4346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4347 | *) ac_try_echo=$ac_try;; | |
4348 | esac | |
4349 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4350 | $as_echo "$ac_try_echo"; } >&5 | |
4351 | (eval "$ac_try") 2>&5 | |
c6b750e1 | 4352 | ac_status=$? |
81ecdfbb RW |
4353 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4354 | test $ac_status = 0; }; }; then | |
c6b750e1 DJ |
4355 | cross_compiling=no |
4356 | else | |
4357 | if test "$cross_compiling" = maybe; then | |
4358 | cross_compiling=yes | |
4359 | else | |
81ecdfbb RW |
4360 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4361 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4362 | as_fn_error "cannot run C compiled programs. | |
c6b750e1 | 4363 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 4364 | See \`config.log' for more details." "$LINENO" 5; } |
c6b750e1 DJ |
4365 | fi |
4366 | fi | |
4367 | fi | |
81ecdfbb RW |
4368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4369 | $as_echo "yes" >&6; } | |
c6b750e1 | 4370 | |
81ecdfbb | 4371 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
c6b750e1 | 4372 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 4373 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4374 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4376 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4378 | $as_echo "$cross_compiling" >&6; } | |
4379 | ||
4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4381 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4382 | if { { ac_try="$ac_link" | |
4383 | case "(($ac_try" in | |
4384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4385 | *) ac_try_echo=$ac_try;; | |
4386 | esac | |
4387 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4388 | $as_echo "$ac_try_echo"; } >&5 | |
4389 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4390 | ac_status=$? |
81ecdfbb RW |
4391 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4392 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4393 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4394 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4395 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4396 | # `rm'. | |
4397 | for ac_file in conftest.exe conftest conftest.*; do | |
4398 | test -f "$ac_file" || continue | |
4399 | case $ac_file in | |
81ecdfbb | 4400 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4401 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4402 | break;; |
4403 | * ) break;; | |
4404 | esac | |
4405 | done | |
4406 | else | |
81ecdfbb RW |
4407 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4408 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4409 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4410 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4411 | fi |
c6b750e1 | 4412 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
4413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4414 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4415 | |
4416 | rm -f conftest.$ac_ext | |
4417 | EXEEXT=$ac_cv_exeext | |
4418 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4420 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4421 | if test "${ac_cv_objext+set}" = set; then : | |
4422 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4423 | else |
81ecdfbb | 4424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4425 | /* end confdefs.h. */ |
4426 | ||
4427 | int | |
4428 | main () | |
4429 | { | |
4430 | ||
4431 | ; | |
4432 | return 0; | |
4433 | } | |
4434 | _ACEOF | |
4435 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4436 | if { { ac_try="$ac_compile" |
4437 | case "(($ac_try" in | |
4438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4439 | *) ac_try_echo=$ac_try;; | |
4440 | esac | |
4441 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4442 | $as_echo "$ac_try_echo"; } >&5 | |
4443 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4444 | ac_status=$? |
81ecdfbb RW |
4445 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4446 | test $ac_status = 0; }; then : | |
4447 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4448 | test -f "$ac_file" || continue; | |
c6b750e1 | 4449 | case $ac_file in |
81ecdfbb | 4450 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4451 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4452 | break;; | |
4453 | esac | |
4454 | done | |
cac3d6c4 | 4455 | else |
81ecdfbb | 4456 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4457 | sed 's/^/| /' conftest.$ac_ext >&5 |
4458 | ||
81ecdfbb RW |
4459 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4460 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4461 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4462 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4463 | fi |
c6b750e1 DJ |
4464 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4465 | fi | |
81ecdfbb RW |
4466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4467 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4468 | OBJEXT=$ac_cv_objext |
4469 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4471 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4472 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4473 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4474 | else |
81ecdfbb | 4475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4476 | /* end confdefs.h. */ |
4477 | ||
4478 | int | |
4479 | main () | |
4480 | { | |
4481 | #ifndef __GNUC__ | |
4482 | choke me | |
4483 | #endif | |
4484 | ||
4485 | ; | |
4486 | return 0; | |
4487 | } | |
4488 | _ACEOF | |
81ecdfbb | 4489 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4490 | ac_compiler_gnu=yes |
4491 | else | |
81ecdfbb | 4492 | ac_compiler_gnu=no |
c6b750e1 | 4493 | fi |
81ecdfbb | 4494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4495 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4496 | ||
4497 | fi | |
81ecdfbb RW |
4498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4499 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4500 | if test $ac_compiler_gnu = yes; then | |
4501 | GCC=yes | |
4502 | else | |
4503 | GCC= | |
4504 | fi | |
c6b750e1 DJ |
4505 | ac_test_CFLAGS=${CFLAGS+set} |
4506 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4508 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4509 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4510 | $as_echo_n "(cached) " >&6 | |
4511 | else | |
4512 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4513 | ac_c_werror_flag=yes | |
4514 | ac_cv_prog_cc_g=no | |
4515 | CFLAGS="-g" | |
4516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4517 | /* end confdefs.h. */ |
4518 | ||
4519 | int | |
4520 | main () | |
4521 | { | |
4522 | ||
4523 | ; | |
4524 | return 0; | |
4525 | } | |
4526 | _ACEOF | |
81ecdfbb | 4527 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4528 | ac_cv_prog_cc_g=yes |
4529 | else | |
81ecdfbb RW |
4530 | CFLAGS="" |
4531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4532 | /* end confdefs.h. */ | |
4533 | ||
4534 | int | |
4535 | main () | |
4536 | { | |
4537 | ||
4538 | ; | |
4539 | return 0; | |
4540 | } | |
4541 | _ACEOF | |
4542 | if ac_fn_c_try_compile "$LINENO"; then : | |
4543 | ||
4544 | else | |
4545 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4546 | CFLAGS="-g" | |
4547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4548 | /* end confdefs.h. */ | |
cac3d6c4 | 4549 | |
81ecdfbb RW |
4550 | int |
4551 | main () | |
4552 | { | |
4553 | ||
4554 | ; | |
4555 | return 0; | |
4556 | } | |
4557 | _ACEOF | |
4558 | if ac_fn_c_try_compile "$LINENO"; then : | |
4559 | ac_cv_prog_cc_g=yes | |
4560 | fi | |
4561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4562 | fi |
81ecdfbb | 4563 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4564 | fi |
81ecdfbb RW |
4565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4566 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4567 | fi | |
4568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4569 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4570 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4571 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4572 | elif test $ac_cv_prog_cc_g = yes; then |
4573 | if test "$GCC" = yes; then | |
4574 | CFLAGS="-g -O2" | |
4575 | else | |
4576 | CFLAGS="-g" | |
4577 | fi | |
4578 | else | |
4579 | if test "$GCC" = yes; then | |
4580 | CFLAGS="-O2" | |
4581 | else | |
4582 | CFLAGS= | |
4583 | fi | |
4584 | fi | |
81ecdfbb RW |
4585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4586 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4587 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4588 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4589 | else |
81ecdfbb | 4590 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4591 | ac_save_CC=$CC |
81ecdfbb | 4592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4593 | /* end confdefs.h. */ |
4594 | #include <stdarg.h> | |
4595 | #include <stdio.h> | |
4596 | #include <sys/types.h> | |
4597 | #include <sys/stat.h> | |
4598 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4599 | struct buf { int x; }; | |
4600 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4601 | static char *e (p, i) | |
4602 | char **p; | |
4603 | int i; | |
4604 | { | |
4605 | return p[i]; | |
4606 | } | |
4607 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4608 | { | |
4609 | char *s; | |
4610 | va_list v; | |
4611 | va_start (v,p); | |
4612 | s = g (p, va_arg (v,int)); | |
4613 | va_end (v); | |
4614 | return s; | |
4615 | } | |
4616 | ||
4617 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4618 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4619 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4620 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4621 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4622 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4623 | that's true only with -std. */ |
c6b750e1 DJ |
4624 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4625 | ||
81ecdfbb RW |
4626 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4627 | inside strings and character constants. */ | |
4628 | #define FOO(x) 'x' | |
4629 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4630 | ||
c6b750e1 DJ |
4631 | int test (int i, double x); |
4632 | struct s1 {int (*f) (int a);}; | |
4633 | struct s2 {int (*f) (double a);}; | |
4634 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4635 | int argc; | |
4636 | char **argv; | |
4637 | int | |
4638 | main () | |
4639 | { | |
4640 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4641 | ; | |
4642 | return 0; | |
4643 | } | |
4644 | _ACEOF | |
81ecdfbb RW |
4645 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4646 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4647 | do |
4648 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4649 | if ac_fn_c_try_compile "$LINENO"; then : |
4650 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4651 | fi |
81ecdfbb RW |
4652 | rm -f core conftest.err conftest.$ac_objext |
4653 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4654 | done |
81ecdfbb | 4655 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4656 | CC=$ac_save_CC |
4657 | ||
4658 | fi | |
81ecdfbb RW |
4659 | # AC_CACHE_VAL |
4660 | case "x$ac_cv_prog_cc_c89" in | |
4661 | x) | |
4662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4663 | $as_echo "none needed" >&6; } ;; | |
4664 | xno) | |
4665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4666 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4667 | *) |
81ecdfbb RW |
4668 | CC="$CC $ac_cv_prog_cc_c89" |
4669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4670 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4671 | esac |
81ecdfbb | 4672 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4673 | |
c6b750e1 DJ |
4674 | fi |
4675 | ||
c6b750e1 DJ |
4676 | ac_ext=c |
4677 | ac_cpp='$CPP $CPPFLAGS' | |
4678 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4679 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4680 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4681 | |
81ecdfbb | 4682 | ac_ext=cpp |
18f6b6ee PB |
4683 | ac_cpp='$CXXCPP $CPPFLAGS' |
4684 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4685 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4686 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
4687 | if test -z "$CXX"; then |
4688 | if test -n "$CCC"; then | |
4689 | CXX=$CCC | |
4690 | else | |
4691 | if test -n "$ac_tool_prefix"; then | |
4692 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
4693 | do |
4694 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4695 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4697 | $as_echo_n "checking for $ac_word... " >&6; } | |
4698 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4699 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4700 | else |
4701 | if test -n "$CXX"; then | |
4702 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4703 | else | |
4704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4705 | for as_dir in $PATH | |
4706 | do | |
4707 | IFS=$as_save_IFS | |
4708 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4709 | for ac_exec_ext in '' $ac_executable_extensions; do |
4710 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4711 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4712 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
4713 | break 2 |
4714 | fi | |
4715 | done | |
81ecdfbb RW |
4716 | done |
4717 | IFS=$as_save_IFS | |
512b7dfb | 4718 | |
18f6b6ee PB |
4719 | fi |
4720 | fi | |
4721 | CXX=$ac_cv_prog_CXX | |
4722 | if test -n "$CXX"; then | |
81ecdfbb RW |
4723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4724 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 4725 | else |
81ecdfbb RW |
4726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4727 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4728 | fi |
4729 | ||
81ecdfbb | 4730 | |
18f6b6ee PB |
4731 | test -n "$CXX" && break |
4732 | done | |
4733 | fi | |
4734 | if test -z "$CXX"; then | |
4735 | ac_ct_CXX=$CXX | |
81ecdfbb | 4736 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
4737 | do |
4738 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4739 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4741 | $as_echo_n "checking for $ac_word... " >&6; } | |
4742 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4743 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4744 | else |
4745 | if test -n "$ac_ct_CXX"; then | |
4746 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4747 | else | |
4748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4749 | for as_dir in $PATH | |
4750 | do | |
4751 | IFS=$as_save_IFS | |
4752 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4753 | for ac_exec_ext in '' $ac_executable_extensions; do |
4754 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4755 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4756 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 4757 | break 2 |
512b7dfb | 4758 | fi |
18f6b6ee | 4759 | done |
81ecdfbb RW |
4760 | done |
4761 | IFS=$as_save_IFS | |
512b7dfb | 4762 | |
18f6b6ee PB |
4763 | fi |
4764 | fi | |
4765 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4766 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
4767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4768 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 4769 | else |
81ecdfbb RW |
4770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4771 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4772 | fi |
4773 | ||
81ecdfbb | 4774 | |
18f6b6ee PB |
4775 | test -n "$ac_ct_CXX" && break |
4776 | done | |
18f6b6ee | 4777 | |
81ecdfbb RW |
4778 | if test "x$ac_ct_CXX" = x; then |
4779 | CXX="g++" | |
4780 | else | |
4781 | case $cross_compiling:$ac_tool_warned in | |
4782 | yes:) | |
4783 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4784 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4785 | ac_tool_warned=yes ;; | |
4786 | esac | |
4787 | CXX=$ac_ct_CXX | |
4788 | fi | |
18f6b6ee PB |
4789 | fi |
4790 | ||
81ecdfbb RW |
4791 | fi |
4792 | fi | |
18f6b6ee | 4793 | # Provide some information about the compiler. |
81ecdfbb RW |
4794 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4795 | set X $ac_compile | |
4796 | ac_compiler=$2 | |
4797 | for ac_option in --version -v -V -qversion; do | |
4798 | { { ac_try="$ac_compiler $ac_option >&5" | |
4799 | case "(($ac_try" in | |
4800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4801 | *) ac_try_echo=$ac_try;; | |
4802 | esac | |
4803 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4804 | $as_echo "$ac_try_echo"; } >&5 | |
4805 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 4806 | ac_status=$? |
81ecdfbb RW |
4807 | if test -s conftest.err; then |
4808 | sed '10a\ | |
4809 | ... rest of stderr output deleted ... | |
4810 | 10q' conftest.err >conftest.er1 | |
4811 | cat conftest.er1 >&5 | |
4812 | rm -f conftest.er1 conftest.err | |
4813 | fi | |
4814 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4815 | test $ac_status = 0; } | |
4816 | done | |
18f6b6ee | 4817 | |
81ecdfbb RW |
4818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4819 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4820 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4821 | $as_echo_n "(cached) " >&6 | |
18f6b6ee | 4822 | else |
81ecdfbb | 4823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
4824 | /* end confdefs.h. */ |
4825 | ||
4826 | int | |
4827 | main () | |
4828 | { | |
4829 | #ifndef __GNUC__ | |
4830 | choke me | |
4831 | #endif | |
4832 | ||
4833 | ; | |
4834 | return 0; | |
4835 | } | |
4836 | _ACEOF | |
81ecdfbb | 4837 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4838 | ac_compiler_gnu=yes |
4839 | else | |
81ecdfbb | 4840 | ac_compiler_gnu=no |
18f6b6ee | 4841 | fi |
81ecdfbb | 4842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
4843 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4844 | ||
4845 | fi | |
81ecdfbb RW |
4846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4847 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4848 | if test $ac_compiler_gnu = yes; then | |
4849 | GXX=yes | |
4850 | else | |
4851 | GXX= | |
4852 | fi | |
18f6b6ee PB |
4853 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4854 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4856 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4857 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4858 | $as_echo_n "(cached) " >&6 | |
4859 | else | |
4860 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4861 | ac_cxx_werror_flag=yes | |
4862 | ac_cv_prog_cxx_g=no | |
4863 | CXXFLAGS="-g" | |
4864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
4865 | /* end confdefs.h. */ |
4866 | ||
4867 | int | |
4868 | main () | |
4869 | { | |
4870 | ||
4871 | ; | |
4872 | return 0; | |
4873 | } | |
4874 | _ACEOF | |
81ecdfbb | 4875 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4876 | ac_cv_prog_cxx_g=yes |
4877 | else | |
81ecdfbb RW |
4878 | CXXFLAGS="" |
4879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4880 | /* end confdefs.h. */ |
81ecdfbb | 4881 | |
18f6b6ee PB |
4882 | int |
4883 | main () | |
4884 | { | |
81ecdfbb | 4885 | |
18f6b6ee PB |
4886 | ; |
4887 | return 0; | |
4888 | } | |
4889 | _ACEOF | |
81ecdfbb | 4890 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 4891 | |
81ecdfbb RW |
4892 | else |
4893 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4894 | CXXFLAGS="-g" | |
4895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4896 | /* end confdefs.h. */ |
81ecdfbb | 4897 | |
18f6b6ee PB |
4898 | int |
4899 | main () | |
4900 | { | |
81ecdfbb | 4901 | |
18f6b6ee PB |
4902 | ; |
4903 | return 0; | |
4904 | } | |
4905 | _ACEOF | |
81ecdfbb RW |
4906 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4907 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 4908 | fi |
81ecdfbb RW |
4909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4910 | fi | |
4911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4912 | fi | |
4913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4914 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4915 | fi | |
4916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4917 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4918 | if test "$ac_test_CXXFLAGS" = set; then | |
4919 | CXXFLAGS=$ac_save_CXXFLAGS | |
4920 | elif test $ac_cv_prog_cxx_g = yes; then | |
4921 | if test "$GXX" = yes; then | |
4922 | CXXFLAGS="-g -O2" | |
4923 | else | |
4924 | CXXFLAGS="-g" | |
4925 | fi | |
4926 | else | |
4927 | if test "$GXX" = yes; then | |
4928 | CXXFLAGS="-O2" | |
4929 | else | |
4930 | CXXFLAGS= | |
4931 | fi | |
18f6b6ee | 4932 | fi |
18f6b6ee PB |
4933 | ac_ext=c |
4934 | ac_cpp='$CPP $CPPFLAGS' | |
4935 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4936 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4937 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4938 | ||
4939 | ||
4940 | # We must set the default linker to the linker used by gcc for the correct | |
4941 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
4942 | # set the LD default to the ld used by gcc. | |
4943 | if test -z "$LD"; then | |
4944 | if test "$GCC" = yes; then | |
4945 | case $build in | |
4946 | *-*-mingw*) | |
4947 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
4948 | *) | |
4949 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
4950 | esac | |
4951 | case $gcc_prog_ld in | |
4952 | # Accept absolute paths. | |
4953 | [\\/]* | [A-Za-z]:[\\/]*) | |
4954 | LD="$gcc_prog_ld" ;; | |
4955 | esac | |
4956 | fi | |
512b7dfb PB |
4957 | fi |
4958 | ||
b3676d82 EB |
4959 | # Check whether -static-libstdc++ -static-libgcc is supported. |
4960 | have_static_libs=no | |
4961 | if test "$GCC" = yes; then | |
4962 | saved_LDFLAGS="$LDFLAGS" | |
4963 | ||
4964 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
4965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
4966 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
4967 | ac_ext=cpp | |
4968 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4969 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4970 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4971 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4972 | ||
4973 | ||
4974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4975 | /* end confdefs.h. */ | |
a882be68 EB |
4976 | |
4977 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
4978 | #error -static-libstdc++ not implemented | |
4979 | #endif | |
b3676d82 EB |
4980 | int main() {} |
4981 | _ACEOF | |
4982 | if ac_fn_cxx_try_link "$LINENO"; then : | |
4983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4984 | $as_echo "yes" >&6; }; have_static_libs=yes | |
4985 | else | |
4986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4987 | $as_echo "no" >&6; } | |
4988 | fi | |
4989 | rm -f core conftest.err conftest.$ac_objext \ | |
4990 | conftest$ac_exeext conftest.$ac_ext | |
4991 | ac_ext=c | |
4992 | ac_cpp='$CPP $CPPFLAGS' | |
4993 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4994 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4995 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4996 | ||
4997 | ||
4998 | LDFLAGS="$saved_LDFLAGS" | |
4999 | fi | |
5000 | ||
512b7dfb PB |
5001 | |
5002 | ||
5003 | ||
c6b750e1 | 5004 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5005 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
5006 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
5007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5008 | $as_echo_n "checking for $ac_word... " >&6; } | |
5009 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
5010 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 5011 | else |
512b7dfb PB |
5012 | if test -n "$GNATBIND"; then |
5013 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 5014 | else |
c6b750e1 DJ |
5015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5016 | for as_dir in $PATH | |
5017 | do | |
5018 | IFS=$as_save_IFS | |
5019 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5020 | for ac_exec_ext in '' $ac_executable_extensions; do |
5021 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5022 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 5023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5024 | break 2 |
5025 | fi | |
5026 | done | |
81ecdfbb RW |
5027 | done |
5028 | IFS=$as_save_IFS | |
c6b750e1 | 5029 | |
9e07f89d NN |
5030 | fi |
5031 | fi | |
512b7dfb PB |
5032 | GNATBIND=$ac_cv_prog_GNATBIND |
5033 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
5034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5035 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 5036 | else |
81ecdfbb RW |
5037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5038 | $as_echo "no" >&6; } | |
9e07f89d NN |
5039 | fi |
5040 | ||
81ecdfbb | 5041 | |
c6b750e1 | 5042 | fi |
512b7dfb PB |
5043 | if test -z "$ac_cv_prog_GNATBIND"; then |
5044 | ac_ct_GNATBIND=$GNATBIND | |
5045 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
5046 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
5047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5048 | $as_echo_n "checking for $ac_word... " >&6; } | |
5049 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
5050 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 5051 | else |
512b7dfb PB |
5052 | if test -n "$ac_ct_GNATBIND"; then |
5053 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 5054 | else |
c6b750e1 DJ |
5055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5056 | for as_dir in $PATH | |
5057 | do | |
5058 | IFS=$as_save_IFS | |
5059 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5060 | for ac_exec_ext in '' $ac_executable_extensions; do |
5061 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5062 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 5063 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5064 | break 2 |
5065 | fi | |
5066 | done | |
81ecdfbb RW |
5067 | done |
5068 | IFS=$as_save_IFS | |
c6b750e1 | 5069 | |
9e07f89d NN |
5070 | fi |
5071 | fi | |
512b7dfb PB |
5072 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5073 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
5074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5075 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 5076 | else |
81ecdfbb RW |
5077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5078 | $as_echo "no" >&6; } | |
9e07f89d NN |
5079 | fi |
5080 | ||
81ecdfbb RW |
5081 | if test "x$ac_ct_GNATBIND" = x; then |
5082 | GNATBIND="no" | |
5083 | else | |
5084 | case $cross_compiling:$ac_tool_warned in | |
5085 | yes:) | |
5086 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5087 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5088 | ac_tool_warned=yes ;; | |
5089 | esac | |
5090 | GNATBIND=$ac_ct_GNATBIND | |
5091 | fi | |
24ff9987 | 5092 | else |
512b7dfb | 5093 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
5094 | fi |
5095 | ||
7df2cd5d | 5096 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5097 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
5098 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5100 | $as_echo_n "checking for $ac_word... " >&6; } | |
5101 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
5102 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 5103 | else |
512b7dfb PB |
5104 | if test -n "$GNATMAKE"; then |
5105 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5106 | else |
5107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5108 | for as_dir in $PATH | |
5109 | do | |
5110 | IFS=$as_save_IFS | |
5111 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5112 | for ac_exec_ext in '' $ac_executable_extensions; do |
5113 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5114 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 5115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5116 | break 2 |
5117 | fi | |
5118 | done | |
81ecdfbb RW |
5119 | done |
5120 | IFS=$as_save_IFS | |
7df2cd5d PB |
5121 | |
5122 | fi | |
5123 | fi | |
512b7dfb PB |
5124 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5125 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5127 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 5128 | else |
81ecdfbb RW |
5129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5130 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5131 | fi |
5132 | ||
81ecdfbb | 5133 | |
7df2cd5d | 5134 | fi |
512b7dfb PB |
5135 | if test -z "$ac_cv_prog_GNATMAKE"; then |
5136 | ac_ct_GNATMAKE=$GNATMAKE | |
5137 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
5138 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
5139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5140 | $as_echo_n "checking for $ac_word... " >&6; } | |
5141 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
5142 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 5143 | else |
512b7dfb PB |
5144 | if test -n "$ac_ct_GNATMAKE"; then |
5145 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5146 | else |
5147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5148 | for as_dir in $PATH | |
5149 | do | |
5150 | IFS=$as_save_IFS | |
5151 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5152 | for ac_exec_ext in '' $ac_executable_extensions; do |
5153 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5154 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 5155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5156 | break 2 |
5157 | fi | |
5158 | done | |
81ecdfbb RW |
5159 | done |
5160 | IFS=$as_save_IFS | |
7df2cd5d | 5161 | |
7df2cd5d PB |
5162 | fi |
5163 | fi | |
512b7dfb PB |
5164 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5165 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
5166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5167 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 5168 | else |
81ecdfbb RW |
5169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5170 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5171 | fi |
5172 | ||
81ecdfbb RW |
5173 | if test "x$ac_ct_GNATMAKE" = x; then |
5174 | GNATMAKE="no" | |
5175 | else | |
5176 | case $cross_compiling:$ac_tool_warned in | |
5177 | yes:) | |
5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5179 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5180 | ac_tool_warned=yes ;; | |
5181 | esac | |
5182 | GNATMAKE=$ac_ct_GNATMAKE | |
5183 | fi | |
7df2cd5d | 5184 | else |
512b7dfb | 5185 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
5186 | fi |
5187 | ||
81ecdfbb RW |
5188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5189 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
5190 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
5191 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
5192 | else |
5193 | cat >conftest.adb <<EOF | |
5194 | procedure conftest is begin null; end conftest; | |
5195 | EOF | |
5196 | acx_cv_cc_gcc_supports_ada=no | |
5197 | # There is a bug in old released versions of GCC which causes the | |
5198 | # driver to exit successfully when the appropriate language module | |
5199 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5200 | # Therefore we must check for the error message as well as an | |
5201 | # unsuccessful exit. | |
b8908782 DD |
5202 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5203 | # given a .adb file, but produce no object file. So we must check | |
5204 | # if an object file was really produced to guard against this. | |
9e07f89d | 5205 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 5206 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 5207 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
5208 | fi |
5209 | rm -f conftest.* | |
5210 | fi | |
81ecdfbb RW |
5211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5212 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 5213 | |
64b986c0 | 5214 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
5215 | have_gnat=yes |
5216 | else | |
5217 | have_gnat=no | |
5218 | fi | |
5219 | ||
81ecdfbb RW |
5220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5221 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5222 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5223 | $as_echo_n "(cached) " >&6 | |
b8908782 DD |
5224 | else |
5225 | echo abfoo >t1 | |
5226 | echo cdfoo >t2 | |
5227 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
4b1cb4fe DD |
5228 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5229 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5230 | : | |
5231 | else | |
5232 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5233 | fi | |
5234 | fi | |
b8908782 DD |
5235 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5236 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 5237 | : |
b8908782 DD |
5238 | else |
5239 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5240 | fi | |
5241 | fi | |
5242 | rm t1 t2 | |
5243 | ||
5244 | fi | |
81ecdfbb RW |
5245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5246 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
5247 | do_compare="$gcc_cv_prog_cmp_skip" |
5248 | ||
5249 | ||
9e07f89d | 5250 | |
ffdd6afc ILT |
5251 | # Check whether --enable-bootstrap was given. |
5252 | if test "${enable_bootstrap+set}" = set; then : | |
5253 | enableval=$enable_bootstrap; | |
5254 | else | |
5255 | enable_bootstrap=default | |
5256 | fi | |
5257 | ||
5258 | ||
5259 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5260 | if test -r $srcdir/gcc/configure; then | |
5261 | have_compiler=yes | |
5262 | else | |
5263 | have_compiler=no | |
5264 | fi | |
5265 | ||
5266 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5267 | *:*:*:no) ;; | |
5268 | ||
5269 | # Default behavior. Enable bootstrap if we have a compiler | |
5270 | # and we are in a native configuration. | |
5271 | yes:$build:$build:default) | |
5272 | enable_bootstrap=yes ;; | |
5273 | ||
5274 | *:*:*:default) | |
5275 | enable_bootstrap=no ;; | |
5276 | ||
5277 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5278 | yes:$build:$build:yes) | |
5279 | ;; | |
5280 | ||
5281 | # Other configurations, but we have a compiler. Assume the user knows | |
5282 | # what he's doing. | |
5283 | yes:*:*:yes) | |
5284 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5285 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5286 | ;; | |
5287 | ||
5288 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5289 | no:*:*:yes) | |
5290 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5291 | ||
5292 | # Fail if wrong command line | |
5293 | *) | |
5294 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5295 | ;; | |
5296 | esac | |
5297 | ||
d5f2ee2e KG |
5298 | # Used for setting $lt_cv_objdir |
5299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5300 | $as_echo_n "checking for objdir... " >&6; } | |
5301 | if test "${lt_cv_objdir+set}" = set; then : | |
5302 | $as_echo_n "(cached) " >&6 | |
5303 | else | |
5304 | rm -f .libs 2>/dev/null | |
5305 | mkdir .libs 2>/dev/null | |
5306 | if test -d .libs; then | |
5307 | lt_cv_objdir=.libs | |
5308 | else | |
5309 | # MS-DOS does not allow filenames that begin with a dot. | |
5310 | lt_cv_objdir=_libs | |
5311 | fi | |
5312 | rmdir .libs 2>/dev/null | |
5313 | fi | |
5314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5315 | $as_echo "$lt_cv_objdir" >&6; } | |
5316 | objdir=$lt_cv_objdir | |
5317 | ||
5318 | ||
5319 | ||
5320 | ||
5321 | ||
5322 | cat >>confdefs.h <<_ACEOF | |
5323 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5324 | _ACEOF | |
5325 | ||
5326 | ||
5327 | ||
e8a5fa9c | 5328 | # Check for GMP, MPFR and MPC |
d9b76ff9 | 5329 | gmplibs="-lmpc -lmpfr -lgmp" |
4b1cb4fe | 5330 | gmpinc= |
4b900473 | 5331 | have_gmp=no |
e8a5fa9c RW |
5332 | |
5333 | # Specify a location for mpc | |
5334 | # check for this first so it ends up on the link line before mpfr. | |
5335 | ||
81ecdfbb RW |
5336 | # Check whether --with-mpc was given. |
5337 | if test "${with_mpc+set}" = set; then : | |
5338 | withval=$with_mpc; | |
5339 | fi | |
e8a5fa9c | 5340 | |
e8a5fa9c | 5341 | |
e552509b | 5342 | # Check whether --with-mpc-include was given. |
81ecdfbb RW |
5343 | if test "${with_mpc_include+set}" = set; then : |
5344 | withval=$with_mpc_include; | |
5345 | fi | |
e8a5fa9c | 5346 | |
e8a5fa9c | 5347 | |
e552509b | 5348 | # Check whether --with-mpc-lib was given. |
81ecdfbb RW |
5349 | if test "${with_mpc_lib+set}" = set; then : |
5350 | withval=$with_mpc_lib; | |
5351 | fi | |
e8a5fa9c | 5352 | |
e8a5fa9c RW |
5353 | |
5354 | if test "x$with_mpc" != x; then | |
d9b76ff9 KG |
5355 | gmplibs="-L$with_mpc/lib $gmplibs" |
5356 | gmpinc="-I$with_mpc/include $gmpinc" | |
e8a5fa9c RW |
5357 | fi |
5358 | if test "x$with_mpc_include" != x; then | |
d9b76ff9 | 5359 | gmpinc="-I$with_mpc_include $gmpinc" |
e8a5fa9c RW |
5360 | fi |
5361 | if test "x$with_mpc_lib" != x; then | |
d9b76ff9 | 5362 | gmplibs="-L$with_mpc_lib $gmplibs" |
e8a5fa9c RW |
5363 | fi |
5364 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
d5f2ee2e | 5365 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
d9b76ff9 | 5366 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
e8a5fa9c RW |
5367 | # Do not test the mpc version. Assume that it is sufficient, since |
5368 | # it is in the source tree, and the library has not been built yet | |
5369 | # but it would be included on the link line in the version check below | |
5370 | # hence making the test fail. | |
d9b76ff9 | 5371 | have_gmp=yes |
e8a5fa9c | 5372 | fi |
4b900473 | 5373 | |
11b04d1f DD |
5374 | # Specify a location for mpfr |
5375 | # check for this first so it ends up on the link line before gmp. | |
c6b750e1 | 5376 | |
81ecdfbb RW |
5377 | # Check whether --with-mpfr-dir was given. |
5378 | if test "${with_mpfr_dir+set}" = set; then : | |
5379 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5380 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5381 | fi | |
5382 | ||
11b04d1f DD |
5383 | |
5384 | ||
81ecdfbb RW |
5385 | # Check whether --with-mpfr was given. |
5386 | if test "${with_mpfr+set}" = set; then : | |
5387 | withval=$with_mpfr; | |
5388 | fi | |
c6b750e1 | 5389 | |
11b04d1f | 5390 | |
e552509b | 5391 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
5392 | if test "${with_mpfr_include+set}" = set; then : |
5393 | withval=$with_mpfr_include; | |
5394 | fi | |
c6b750e1 | 5395 | |
8a0d8a5c | 5396 | |
e552509b | 5397 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
5398 | if test "${with_mpfr_lib+set}" = set; then : |
5399 | withval=$with_mpfr_lib; | |
5400 | fi | |
8a0d8a5c | 5401 | |
11b04d1f DD |
5402 | |
5403 | if test "x$with_mpfr" != x; then | |
5404 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 5405 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 5406 | fi |
8a0d8a5c | 5407 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 5408 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
5409 | fi |
5410 | if test "x$with_mpfr_lib" != x; then | |
5411 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5412 | fi | |
4b900473 | 5413 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
58b1dd21 NC |
5414 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
5415 | if test -d ${srcdir}/mpfr/src; then | |
5416 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" | |
5417 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5418 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
5419 | else | |
5420 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" | |
5421 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" | |
5422 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" | |
5423 | fi | |
4b900473 PB |
5424 | # Do not test the mpfr version. Assume that it is sufficient, since |
5425 | # it is in the source tree, and the library has not been built yet | |
5426 | # but it would be included on the link line in the version check below | |
5427 | # hence making the test fail. | |
5428 | have_gmp=yes | |
5429 | fi | |
11b04d1f | 5430 | |
4b1cb4fe | 5431 | # Specify a location for gmp |
c6b750e1 | 5432 | |
81ecdfbb RW |
5433 | # Check whether --with-gmp-dir was given. |
5434 | if test "${with_gmp_dir+set}" = set; then : | |
5435 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5436 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5437 | fi | |
5438 | ||
4b1cb4fe DD |
5439 | |
5440 | ||
81ecdfbb RW |
5441 | # Check whether --with-gmp was given. |
5442 | if test "${with_gmp+set}" = set; then : | |
5443 | withval=$with_gmp; | |
5444 | fi | |
c6b750e1 | 5445 | |
4b1cb4fe | 5446 | |
e552509b | 5447 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
5448 | if test "${with_gmp_include+set}" = set; then : |
5449 | withval=$with_gmp_include; | |
5450 | fi | |
c6b750e1 | 5451 | |
8a0d8a5c | 5452 | |
e552509b | 5453 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
5454 | if test "${with_gmp_lib+set}" = set; then : |
5455 | withval=$with_gmp_lib; | |
5456 | fi | |
8a0d8a5c PB |
5457 | |
5458 | ||
4b1cb4fe | 5459 | |
11b04d1f DD |
5460 | if test "x$with_gmp" != x; then |
5461 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5462 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 5463 | fi |
8a0d8a5c PB |
5464 | if test "x$with_gmp_include" != x; then |
5465 | gmpinc="-I$with_gmp_include $gmpinc" | |
5466 | fi | |
5467 | if test "x$with_gmp_lib" != x; then | |
5468 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5469 | fi | |
4b900473 | 5470 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 5471 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5472 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 5473 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 5474 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
7ec59b9e | 5475 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
4b900473 PB |
5476 | # Do not test the gmp version. Assume that it is sufficient, since |
5477 | # it is in the source tree, and the library has not been built yet | |
5478 | # but it would be included on the link line in the version check below | |
5479 | # hence making the test fail. | |
5480 | have_gmp=yes | |
5481 | fi | |
4b1cb4fe | 5482 | |
ceb92e78 | 5483 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
5484 | have_gmp=yes |
5485 | saved_CFLAGS="$CFLAGS" | |
5486 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
5487 | # Check for the recommended and required versions of GMP. |
5488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5489 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
a009f2e7 RW |
5490 | |
5491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a6b5846e KG |
5492 | /* end confdefs.h. */ |
5493 | #include "gmp.h" | |
5494 | int | |
5495 | main () | |
5496 | { | |
5497 | ||
5498 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5499 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8e71395b | 5500 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
a6b5846e KG |
5501 | choke me |
5502 | #endif | |
5503 | ||
5504 | ; | |
5505 | return 0; | |
5506 | } | |
5507 | _ACEOF | |
5508 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 5509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5510 | /* end confdefs.h. */ |
a6b5846e | 5511 | #include <gmp.h> |
c6b750e1 DJ |
5512 | int |
5513 | main () | |
5514 | { | |
4b1cb4fe | 5515 | |
a6b5846e KG |
5516 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5517 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5518 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
5519 | choke me |
5520 | #endif | |
c6b750e1 DJ |
5521 | |
5522 | ; | |
5523 | return 0; | |
5524 | } | |
5525 | _ACEOF | |
81ecdfbb RW |
5526 | if ac_fn_c_try_compile "$LINENO"; then : |
5527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5528 | $as_echo "yes" >&6; } | |
a6b5846e KG |
5529 | else |
5530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5531 | $as_echo "buggy but acceptable" >&6; } | |
5532 | fi | |
5533 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 5534 | else |
81ecdfbb RW |
5535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5536 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5537 | fi |
81ecdfbb | 5538 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 5539 | |
e8a5fa9c | 5540 | # If we have GMP, check the MPFR version. |
4b900473 | 5541 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
5542 | # Check for the recommended and required versions of MPFR. |
5543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5544 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 5545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5546 | /* end confdefs.h. */ |
9b134994 | 5547 | #include <gmp.h> |
4b900473 | 5548 | #include <mpfr.h> |
c6b750e1 DJ |
5549 | int |
5550 | main () | |
5551 | { | |
9b134994 | 5552 | |
7ec59b9e | 5553 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
4b900473 PB |
5554 | choke me |
5555 | #endif | |
c6b750e1 DJ |
5556 | |
5557 | ; | |
5558 | return 0; | |
5559 | } | |
5560 | _ACEOF | |
81ecdfbb RW |
5561 | if ac_fn_c_try_compile "$LINENO"; then : |
5562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 5563 | /* end confdefs.h. */ |
4b1cb4fe | 5564 | #include <gmp.h> |
4b900473 | 5565 | #include <mpfr.h> |
c6b750e1 DJ |
5566 | int |
5567 | main () | |
5568 | { | |
9dbaa842 | 5569 | |
a6b5846e | 5570 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
4b900473 PB |
5571 | choke me |
5572 | #endif | |
e8a5fa9c RW |
5573 | |
5574 | ; | |
5575 | return 0; | |
5576 | } | |
5577 | _ACEOF | |
81ecdfbb RW |
5578 | if ac_fn_c_try_compile "$LINENO"; then : |
5579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5580 | $as_echo "yes" >&6; } | |
e8a5fa9c | 5581 | else |
81ecdfbb RW |
5582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5583 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 5584 | fi |
81ecdfbb | 5585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 5586 | else |
81ecdfbb RW |
5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5588 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 5589 | fi |
81ecdfbb | 5590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5591 | fi |
5592 | ||
5593 | # Check for the MPC header version. | |
d9b76ff9 | 5594 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 5595 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
5596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5597 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
5599 | /* end confdefs.h. */ |
5600 | #include <mpc.h> | |
5601 | int | |
5602 | main () | |
5603 | { | |
5604 | ||
a6b5846e KG |
5605 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5606 | choke me | |
5607 | #endif | |
5608 | ||
5609 | ; | |
5610 | return 0; | |
5611 | } | |
5612 | _ACEOF | |
5613 | if ac_fn_c_try_compile "$LINENO"; then : | |
5614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5615 | /* end confdefs.h. */ | |
5616 | #include <mpc.h> | |
5617 | int | |
5618 | main () | |
5619 | { | |
5620 | ||
5621 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
5622 | choke me |
5623 | #endif | |
5624 | ||
5625 | ; | |
5626 | return 0; | |
5627 | } | |
5628 | _ACEOF | |
81ecdfbb RW |
5629 | if ac_fn_c_try_compile "$LINENO"; then : |
5630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 5631 | $as_echo "yes" >&6; } |
a6b5846e KG |
5632 | else |
5633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5634 | $as_echo "buggy but acceptable" >&6; } | |
5635 | fi | |
5636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 5637 | else |
81ecdfbb | 5638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 5639 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 5640 | fi |
81ecdfbb | 5641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5642 | fi |
5643 | ||
5644 | # Now check the MPFR library. | |
5645 | if test x"$have_gmp" = xyes; then | |
5646 | saved_LIBS="$LIBS" | |
5647 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
5648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5649 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 5650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 5651 | /* end confdefs.h. */ |
d9b76ff9 | 5652 | #include <mpc.h> |
e8a5fa9c RW |
5653 | int |
5654 | main () | |
5655 | { | |
5656 | ||
5657 | mpfr_t n; | |
5658 | mpfr_t x; | |
d9b76ff9 | 5659 | mpc_t c; |
e8a5fa9c RW |
5660 | int t; |
5661 | mpfr_init (n); | |
5662 | mpfr_init (x); | |
5663 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5664 | mpfr_erfc (n, x, GMP_RNDN); | |
5665 | mpfr_subnormalize (x, t, GMP_RNDN); | |
d9b76ff9 KG |
5666 | mpfr_clear(n); |
5667 | mpfr_clear(x); | |
5668 | mpc_init2 (c, 53); | |
5669 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5670 | mpc_cosh (c, c, MPC_RNDNN); | |
5671 | mpc_pow (c, c, c, MPC_RNDNN); | |
5672 | mpc_acosh (c, c, MPC_RNDNN); | |
5673 | mpc_clear (c); | |
c6b750e1 DJ |
5674 | |
5675 | ; | |
5676 | return 0; | |
5677 | } | |
5678 | _ACEOF | |
81ecdfbb RW |
5679 | if ac_fn_c_try_link "$LINENO"; then : |
5680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5681 | $as_echo "yes" >&6; } | |
c6b750e1 | 5682 | else |
81ecdfbb RW |
5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5684 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5685 | fi |
81ecdfbb RW |
5686 | rm -f core conftest.err conftest.$ac_objext \ |
5687 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
5688 | LIBS="$saved_LIBS" |
5689 | fi | |
5690 | ||
4b900473 | 5691 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 5692 | |
a6b5846e KG |
5693 | # The library versions listed in the error message below should match |
5694 | # the HARD-minimums enforced above. | |
4b900473 | 5695 | if test x$have_gmp != xyes; then |
7ec59b9e | 5696 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
d9b76ff9 KG |
5697 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5698 | their locations. Source code for these libraries can be found at | |
5699 | their respective hosting sites as well as at | |
5700 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5701 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5702 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5703 | make sure that you have installed both the libraries and the header | |
5704 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 5705 | fi |
9dbaa842 DD |
5706 | fi |
5707 | ||
e8a5fa9c RW |
5708 | # Flags needed for both GMP, MPFR and/or MPC. |
5709 | ||
5710 | ||
5711 | ||
4b1cb4fe DD |
5712 | |
5713 | ||
5714 | ||
7ec59b9e | 5715 | |
29383458 JM |
5716 | # Allow host libstdc++ to be specified for static linking with PPL. |
5717 | ||
81ecdfbb RW |
5718 | # Check whether --with-host-libstdcxx was given. |
5719 | if test "${with_host_libstdcxx+set}" = set; then : | |
5720 | withval=$with_host_libstdcxx; | |
5721 | fi | |
29383458 | 5722 | |
29383458 JM |
5723 | |
5724 | case $with_host_libstdcxx in | |
5725 | no|yes) | |
81ecdfbb | 5726 | as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5 |
29383458 JM |
5727 | ;; |
5728 | esac | |
e28c595f | 5729 | |
b3676d82 | 5730 | # Libraries to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5731 | |
b3676d82 EB |
5732 | # Check whether --with-stage1-libs was given. |
5733 | if test "${with_stage1_libs+set}" = set; then : | |
5734 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5735 | stage1_libs= | |
e8a5fa9c | 5736 | else |
b3676d82 | 5737 | stage1_libs=$withval |
e8a5fa9c RW |
5738 | fi |
5739 | else | |
b3676d82 | 5740 | stage1_libs=$with_host_libstdcxx |
81ecdfbb RW |
5741 | fi |
5742 | ||
e8a5fa9c RW |
5743 | |
5744 | ||
b3676d82 | 5745 | # Linker flags to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5746 | |
b3676d82 EB |
5747 | # Check whether --with-stage1-ldflags was given. |
5748 | if test "${with_stage1_ldflags+set}" = set; then : | |
5749 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5750 | stage1_ldflags= | |
e8a5fa9c | 5751 | else |
b3676d82 | 5752 | stage1_ldflags=$withval |
e8a5fa9c RW |
5753 | fi |
5754 | else | |
b3676d82 EB |
5755 | stage1_ldflags= |
5756 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5757 | # if supported. But if the user explicitly specified the libraries to use, | |
5758 | # trust that they are doing what they want. | |
5759 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5760 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5761 | fi | |
81ecdfbb RW |
5762 | fi |
5763 | ||
e8a5fa9c RW |
5764 | |
5765 | ||
e8a5fa9c RW |
5766 | # Libraries to use for stage2 and later builds. This defaults to the |
5767 | # argument passed to --with-host-libstdcxx. | |
5768 | ||
81ecdfbb RW |
5769 | # Check whether --with-boot-libs was given. |
5770 | if test "${with_boot_libs+set}" = set; then : | |
5771 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5772 | poststage1_libs= |
5773 | else | |
5774 | poststage1_libs=$withval | |
5775 | fi | |
5776 | else | |
5777 | poststage1_libs=$with_host_libstdcxx | |
81ecdfbb RW |
5778 | fi |
5779 | ||
e8a5fa9c RW |
5780 | |
5781 | ||
143754cd NC |
5782 | # Linker flags to use for stage2 and later builds. |
5783 | ||
5784 | # Check whether --with-boot-ldflags was given. | |
5785 | if test "${with_boot_ldflags+set}" = set; then : | |
5786 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5787 | poststage1_ldflags= | |
5788 | else | |
5789 | poststage1_ldflags=$withval | |
5790 | fi | |
5791 | else | |
5792 | poststage1_ldflags= | |
4f11b223 ILT |
5793 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5794 | # statically. But if the user explicitly specified the libraries to | |
5795 | # use, trust that they are doing what they want. | |
5796 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
5797 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5798 | fi | |
5799 | fi | |
5800 | ||
5801 | ||
5802 | ||
8e71395b L |
5803 | # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL. |
5804 | # Basic setup is inlined here, actual checks are in config/cloog.m4 and | |
5805 | # config/isl.m4 | |
5806 | ||
5807 | ||
5808 | # Check whether --with-cloog was given. | |
5809 | if test "${with_cloog+set}" = set; then : | |
5810 | withval=$with_cloog; | |
5811 | fi | |
e28c595f JM |
5812 | |
5813 | ||
7ec59b9e L |
5814 | # Check whether --with-isl was given. |
5815 | if test "${with_isl+set}" = set; then : | |
5816 | withval=$with_isl; | |
81ecdfbb | 5817 | fi |
e28c595f | 5818 | |
e28c595f | 5819 | |
8e71395b L |
5820 | # Treat either --without-cloog or --without-isl as a request to disable |
5821 | # GRAPHITE support and skip all following checks. | |
5822 | if test "x$with_isl" != "xno" && | |
5823 | test "x$with_cloog" != "xno"; then | |
5824 | # Check for ISL | |
5825 | ||
5826 | ||
7ec59b9e L |
5827 | # Check whether --with-isl-include was given. |
5828 | if test "${with_isl_include+set}" = set; then : | |
5829 | withval=$with_isl_include; | |
81ecdfbb RW |
5830 | fi |
5831 | ||
e28c595f | 5832 | |
7ec59b9e L |
5833 | # Check whether --with-isl-lib was given. |
5834 | if test "${with_isl_lib+set}" = set; then : | |
5835 | withval=$with_isl_lib; | |
81ecdfbb | 5836 | fi |
e28c595f | 5837 | |
e28c595f | 5838 | |
7ec59b9e L |
5839 | # Check whether --enable-isl-version-check was given. |
5840 | if test "${enable_isl_version_check+set}" = set; then : | |
5841 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5842 | else | |
5843 | ENABLE_ISL_CHECK=yes | |
b123da99 SP |
5844 | fi |
5845 | ||
5846 | ||
7ec59b9e L |
5847 | # Initialize isllibs and islinc. |
5848 | case $with_isl in | |
5849 | no) | |
5850 | isllibs= | |
5851 | islinc= | |
5852 | ;; | |
5853 | "" | yes) | |
5854 | ;; | |
5855 | *) | |
5856 | isllibs="-L$with_isl/lib" | |
5857 | islinc="-I$with_isl/include" | |
5858 | ;; | |
5859 | esac | |
5860 | if test "x${with_isl_include}" != x ; then | |
5861 | islinc="-I$with_isl_include" | |
5862 | fi | |
5863 | if test "x${with_isl_lib}" != x; then | |
5864 | isllibs="-L$with_isl_lib" | |
5865 | fi | |
5866 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5867 | && test -d ${srcdir}/isl; then | |
5868 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5869 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5870 | ENABLE_ISL_CHECK=no | |
3dae1673 JBG |
5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5 |
5872 | $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;} | |
7ec59b9e | 5873 | fi |
b123da99 | 5874 | |
b123da99 | 5875 | |
e28c595f | 5876 | |
7ec59b9e L |
5877 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
5878 | _isl_saved_CFLAGS=$CFLAGS | |
5879 | _isl_saved_LDFLAGS=$LDFLAGS | |
5880 | _isl_saved_LIBS=$LIBS | |
5881 | ||
5882 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
5883 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}" | |
5884 | LIBS="${_isl_saved_LIBS} -lisl" | |
7ec59b9e L |
5885 | |
5886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5 | |
5887 | $as_echo_n "checking for version 0.10 of ISL... " >&6; } | |
3dae1673 | 5888 | if test "$cross_compiling" = yes; then : |
7ec59b9e L |
5889 | gcc_cv_isl=yes |
5890 | else | |
5891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b123da99 | 5892 | /* end confdefs.h. */ |
7ec59b9e L |
5893 | #include <isl/version.h> |
5894 | #include <string.h> | |
b123da99 SP |
5895 | int |
5896 | main () | |
5897 | { | |
7ec59b9e L |
5898 | if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0) |
5899 | return 1; | |
5900 | ||
b123da99 SP |
5901 | ; |
5902 | return 0; | |
5903 | } | |
5904 | _ACEOF | |
7ec59b9e L |
5905 | if ac_fn_c_try_run "$LINENO"; then : |
5906 | gcc_cv_isl=yes | |
e28c595f | 5907 | else |
7ec59b9e | 5908 | gcc_cv_isl=no |
b123da99 | 5909 | fi |
7ec59b9e L |
5910 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5911 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b123da99 | 5912 | fi |
7ec59b9e | 5913 | |
3dae1673 JBG |
5914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
5915 | $as_echo "$gcc_cv_isl" >&6; } | |
5916 | ||
5917 | CFLAGS=$_isl_saved_CFLAGS | |
5918 | LDFLAGS=$_isl_saved_LDFLAGS | |
5919 | LIBS=$_isl_saved_LIBS | |
5920 | fi | |
5921 | ||
5922 | ||
5923 | if test "${gcc_cv_isl}" = no ; then | |
5924 | ||
5925 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
5926 | _isl_saved_CFLAGS=$CFLAGS | |
5927 | _isl_saved_LDFLAGS=$LDFLAGS | |
5928 | _isl_saved_LIBS=$LIBS | |
5929 | ||
5930 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
5931 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}" | |
5932 | LIBS="${_isl_saved_LIBS} -lisl" | |
3dae1673 JBG |
5933 | |
5934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5 | |
5935 | $as_echo_n "checking for version 0.11 of ISL... " >&6; } | |
5936 | if test "$cross_compiling" = yes; then : | |
5937 | gcc_cv_isl=yes | |
5938 | else | |
5939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5940 | /* end confdefs.h. */ | |
5941 | #include <isl/version.h> | |
5942 | #include <string.h> | |
5943 | int | |
5944 | main () | |
5945 | { | |
5946 | if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0) | |
5947 | return 1; | |
5948 | ||
5949 | ; | |
5950 | return 0; | |
5951 | } | |
5952 | _ACEOF | |
5953 | if ac_fn_c_try_run "$LINENO"; then : | |
5954 | gcc_cv_isl=yes | |
5955 | else | |
5956 | gcc_cv_isl=no | |
5957 | fi | |
5958 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5959 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
81ecdfbb | 5960 | fi |
3dae1673 JBG |
5961 | |
5962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 | |
7ec59b9e | 5963 | $as_echo "$gcc_cv_isl" >&6; } |
81ecdfbb | 5964 | |
7ec59b9e L |
5965 | CFLAGS=$_isl_saved_CFLAGS |
5966 | LDFLAGS=$_isl_saved_LDFLAGS | |
5967 | LIBS=$_isl_saved_LIBS | |
b123da99 | 5968 | fi |
e28c595f | 5969 | |
b123da99 | 5970 | |
b3fc79f8 JBG |
5971 | if test "${gcc_cv_isl}" = no ; then |
5972 | ||
5973 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
5974 | _isl_saved_CFLAGS=$CFLAGS | |
5975 | _isl_saved_LDFLAGS=$LDFLAGS | |
5976 | _isl_saved_LIBS=$LIBS | |
5977 | ||
5978 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
5979 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}" | |
5980 | LIBS="${_isl_saved_LIBS} -lisl" | |
5981 | ||
5982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5 | |
5983 | $as_echo_n "checking for version 0.12 of ISL... " >&6; } | |
5984 | if test "$cross_compiling" = yes; then : | |
5985 | gcc_cv_isl=yes | |
5986 | else | |
5987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5988 | /* end confdefs.h. */ | |
5989 | #include <isl/version.h> | |
5990 | #include <string.h> | |
5991 | int | |
5992 | main () | |
5993 | { | |
5994 | if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0) | |
5995 | return 1; | |
5996 | ||
5997 | ; | |
5998 | return 0; | |
5999 | } | |
6000 | _ACEOF | |
6001 | if ac_fn_c_try_run "$LINENO"; then : | |
6002 | gcc_cv_isl=yes | |
6003 | else | |
6004 | gcc_cv_isl=no | |
6005 | fi | |
6006 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6007 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6008 | fi | |
6009 | ||
6010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 | |
6011 | $as_echo "$gcc_cv_isl" >&6; } | |
6012 | ||
6013 | CFLAGS=$_isl_saved_CFLAGS | |
6014 | LDFLAGS=$_isl_saved_LDFLAGS | |
6015 | LIBS=$_isl_saved_LIBS | |
6016 | fi | |
6017 | ||
6018 | ||
6019 | fi | |
3dae1673 | 6020 | fi |
e28c595f | 6021 | |
e28c595f | 6022 | |
7ec59b9e L |
6023 | |
6024 | ||
7ec59b9e L |
6025 | if test "x${with_isl}" = xno; then |
6026 | graphite_requested=no | |
6027 | elif test "x${with_isl}" != x \ | |
6028 | || test "x${with_isl_include}" != x \ | |
6029 | || test "x${with_isl_lib}" != x ; then | |
6030 | graphite_requested=yes | |
6031 | else | |
6032 | graphite_requested=no | |
b123da99 | 6033 | fi |
e28c595f | 6034 | |
e28c595f JM |
6035 | |
6036 | ||
7ec59b9e L |
6037 | if test "${gcc_cv_isl}" = no ; then |
6038 | isllibs= | |
6039 | islinc= | |
6040 | fi | |
e28c595f | 6041 | |
7ec59b9e L |
6042 | if test "${graphite_requested}" = yes \ |
6043 | && test "x${isllibs}" = x \ | |
6044 | && test "x${islinc}" = x ; then | |
e28c595f | 6045 | |
7ec59b9e L |
6046 | as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5 |
6047 | fi | |
e552509b | 6048 | |
e28c595f JM |
6049 | |
6050 | ||
8e71395b L |
6051 | if test "x$gcc_cv_isl" != "xno"; then |
6052 | # Check for CLOOG | |
81ecdfbb | 6053 | |
e28c595f | 6054 | |
e552509b | 6055 | # Check whether --with-cloog-include was given. |
81ecdfbb RW |
6056 | if test "${with_cloog_include+set}" = set; then : |
6057 | withval=$with_cloog_include; | |
6058 | fi | |
e28c595f | 6059 | |
e28c595f | 6060 | |
e552509b | 6061 | # Check whether --with-cloog-lib was given. |
81ecdfbb RW |
6062 | if test "${with_cloog_lib+set}" = set; then : |
6063 | withval=$with_cloog_lib; | |
6064 | fi | |
e28c595f | 6065 | |
e28c595f | 6066 | |
e552509b ILT |
6067 | # Check whether --enable-cloog-version-check was given. |
6068 | if test "${enable_cloog_version_check+set}" = set; then : | |
6069 | enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval | |
6070 | else | |
6071 | ENABLE_CLOOG_CHECK=yes | |
6072 | fi | |
6073 | ||
6074 | ||
6075 | # Initialize clooglibs and clooginc. | |
6076 | case $with_cloog in | |
6077 | no) | |
6078 | clooglibs= | |
6079 | clooginc= | |
6080 | ;; | |
6081 | "" | yes) | |
6082 | ;; | |
6083 | *) | |
6084 | clooglibs="-L$with_cloog/lib" | |
6085 | clooginc="-I$with_cloog/include" | |
6086 | ;; | |
6087 | esac | |
6088 | if test "x${with_cloog_include}" != x ; then | |
6089 | clooginc="-I$with_cloog_include" | |
6090 | fi | |
6091 | if test "x${with_cloog_lib}" != x; then | |
6092 | clooglibs="-L$with_cloog_lib" | |
6093 | fi | |
3dae1673 | 6094 | if test "x${clooginc}" = x && test "x${clooglibs}" = x \ |
7ec59b9e L |
6095 | && test -d ${srcdir}/cloog; then |
6096 | clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' ' | |
6097 | clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include ' | |
3dae1673 JBG |
6098 | ENABLE_CLOOG_CHECK=no |
6099 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5 | |
6100 | $as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;} | |
8d8eef9a RW |
6101 | fi |
6102 | ||
7ec59b9e | 6103 | clooginc="-DCLOOG_INT_GMP ${clooginc}" |
8e71395b | 6104 | clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl" |
e28c595f | 6105 | |
e552509b ILT |
6106 | |
6107 | ||
6108 | ||
6109 | ||
6110 | if test "${ENABLE_CLOOG_CHECK}" = yes ; then | |
6111 | _cloog_saved_CFLAGS=$CFLAGS | |
6112 | _cloog_saved_LDFLAGS=$LDFLAGS | |
6113 | ||
7ec59b9e L |
6114 | CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}" |
6115 | LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}" | |
e552509b | 6116 | |
7ec59b9e L |
6117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5 |
6118 | $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; } | |
3dae1673 | 6119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e552509b | 6120 | /* end confdefs.h. */ |
7ec59b9e | 6121 | #include "cloog/version.h" |
e552509b ILT |
6122 | int |
6123 | main () | |
6124 | { | |
6125 | #if CLOOG_VERSION_MAJOR != 0 \ | |
7ec59b9e L |
6126 | || CLOOG_VERSION_MINOR != 17 \ |
6127 | || CLOOG_VERSION_REVISION < 0 | |
e552509b ILT |
6128 | choke me |
6129 | #endif | |
6130 | ; | |
6131 | return 0; | |
6132 | } | |
6133 | _ACEOF | |
6134 | if ac_fn_c_try_compile "$LINENO"; then : | |
7ec59b9e | 6135 | gcc_cv_cloog=yes |
e552509b | 6136 | else |
7ec59b9e | 6137 | gcc_cv_cloog=no |
e552509b ILT |
6138 | fi |
6139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3dae1673 JBG |
6140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5 |
6141 | $as_echo "$gcc_cv_cloog" >&6; } | |
6142 | ||
6143 | CFLAGS=$_cloog_saved_CFLAGS | |
6144 | LDFLAGS=$_cloog_saved_LDFLAGS | |
6145 | fi | |
6146 | ||
6147 | ||
6148 | if test "${gcc_cv_cloog}" = no ; then | |
6149 | ||
6150 | ||
6151 | ||
6152 | if test "${ENABLE_CLOOG_CHECK}" = yes ; then | |
6153 | _cloog_saved_CFLAGS=$CFLAGS | |
6154 | _cloog_saved_LDFLAGS=$LDFLAGS | |
6155 | ||
6156 | CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}" | |
6157 | LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}" | |
6158 | ||
6159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5 | |
6160 | $as_echo_n "checking for version 0.18.0 of CLooG... " >&6; } | |
6161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6162 | /* end confdefs.h. */ | |
6163 | #include "cloog/version.h" | |
6164 | int | |
6165 | main () | |
6166 | { | |
6167 | #if CLOOG_VERSION_MAJOR != 0 \ | |
6168 | || CLOOG_VERSION_MINOR != 18 \ | |
6169 | || CLOOG_VERSION_REVISION < 0 | |
6170 | choke me | |
6171 | #endif | |
6172 | ; | |
6173 | return 0; | |
6174 | } | |
6175 | _ACEOF | |
6176 | if ac_fn_c_try_compile "$LINENO"; then : | |
6177 | gcc_cv_cloog=yes | |
6178 | else | |
6179 | gcc_cv_cloog=no | |
e552509b | 6180 | fi |
3dae1673 JBG |
6181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5 | |
7ec59b9e | 6183 | $as_echo "$gcc_cv_cloog" >&6; } |
e552509b ILT |
6184 | |
6185 | CFLAGS=$_cloog_saved_CFLAGS | |
6186 | LDFLAGS=$_cloog_saved_LDFLAGS | |
6187 | fi | |
6188 | ||
6189 | ||
3dae1673 | 6190 | fi |
e552509b | 6191 | |
e28c595f | 6192 | |
e28c595f JM |
6193 | |
6194 | ||
6195 | ||
8d8eef9a RW |
6196 | if test "x${with_cloog}" = xno; then |
6197 | graphite_requested=no | |
6198 | elif test "x${with_cloog}" != x \ | |
e552509b ILT |
6199 | || test "x${with_cloog_include}" != x \ |
6200 | || test "x${with_cloog_lib}" != x ; then | |
6201 | graphite_requested=yes | |
6202 | else | |
6203 | graphite_requested=no | |
6204 | fi | |
6205 | ||
6206 | ||
6207 | ||
7ec59b9e | 6208 | if test "${gcc_cv_cloog}" = no ; then |
e552509b ILT |
6209 | clooglibs= |
6210 | clooginc= | |
6211 | fi | |
6212 | ||
6213 | if test "${graphite_requested}" = yes \ | |
6214 | && test "x${clooglibs}" = x \ | |
6215 | && test "x${clooginc}" = x ; then | |
6216 | ||
8e71395b | 6217 | as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5 |
e552509b ILT |
6218 | fi |
6219 | ||
6220 | ||
8e71395b | 6221 | fi |
e552509b ILT |
6222 | fi |
6223 | ||
7ec59b9e L |
6224 | # If either the ISL or the CLooG check failed, disable builds of in-tree |
6225 | # variants of both | |
8e71395b L |
6226 | if test "x$with_isl" = xno || |
6227 | test "x$with_cloog" = xno || | |
6228 | test "x$gcc_cv_cloog" = xno || | |
6229 | test "x$gcc_cv_isl" = xno; then | |
7ec59b9e | 6230 | noconfigdirs="$noconfigdirs cloog isl" |
8e71395b L |
6231 | islinc= |
6232 | clooginc= | |
6233 | clooglibs= | |
7ec59b9e L |
6234 | fi |
6235 | ||
8e71395b L |
6236 | |
6237 | ||
6238 | ||
6239 | ||
6240 | ||
700d40ca ILT |
6241 | # Check for LTO support. |
6242 | # Check whether --enable-lto was given. | |
6243 | if test "${enable_lto+set}" = set; then : | |
6244 | enableval=$enable_lto; enable_lto=$enableval | |
6245 | else | |
6246 | enable_lto=yes; default_enable_lto=yes | |
6247 | fi | |
6248 | ||
6249 | ||
143754cd | 6250 | |
e49e5c92 DK |
6251 | |
6252 | ||
6253 | target_elf=no | |
6254 | case $target in | |
6255 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
090bc50f | 6256 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
a009f2e7 | 6257 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*) |
e49e5c92 DK |
6258 | target_elf=no |
6259 | ;; | |
6260 | *) | |
6261 | target_elf=yes | |
6262 | ;; | |
6263 | esac | |
6264 | ||
6265 | if test $target_elf = yes; then : | |
74cea91b DK |
6266 | # ELF platforms build the lto-plugin always. |
6267 | build_lto_plugin=yes | |
e49e5c92 | 6268 | |
e49e5c92 DK |
6269 | else |
6270 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 6271 | case $target in |
899b04ef | 6272 | *-apple-darwin9* | *-cygwin* | *-mingw*) ;; |
74cea91b | 6273 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
6274 | *) enable_lto=no ;; |
6275 | esac | |
e49e5c92 | 6276 | else |
29821356 RW |
6277 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6278 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
6279 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6280 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6281 | # -flto it won't be needed until after installation anyway. | |
6282 | case $target in | |
a8eb3f0a | 6283 | *-cygwin* | *-mingw* | *-apple-darwin*) ;; |
e49e5c92 DK |
6284 | *) if test x"$enable_lto" = x"yes"; then |
6285 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6286 | fi | |
6287 | ;; | |
6288 | esac | |
6289 | fi | |
a8eb3f0a | 6290 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 6291 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 6292 | case $target in |
74cea91b | 6293 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
6294 | *) ;; |
6295 | esac | |
74cea91b | 6296 | |
e49e5c92 DK |
6297 | fi |
6298 | ||
700d40ca | 6299 | |
e28c595f | 6300 | |
7ec59b9e | 6301 | # By default, C and C++ are the only stage 1 languages. |
9b134994 | 6302 | stage1_languages=,c, |
1d39f329 | 6303 | |
e8a5fa9c | 6304 | # Target libraries that we bootstrap. |
2aa2364a | 6305 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 6306 | |
9e07f89d NN |
6307 | # Figure out what language subdirectories are present. |
6308 | # Look if the user specified --enable-languages="..."; if not, use | |
6309 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6310 | # go away some day. | |
6311 | # NB: embedded tabs in this IF block -- do not untabify | |
6312 | if test -d ${srcdir}/gcc; then | |
6313 | if test x"${enable_languages+set}" != xset; then | |
6314 | if test x"${LANGUAGES+set}" = xset; then | |
6315 | enable_languages="${LANGUAGES}" | |
6316 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
6317 | else | |
6318 | enable_languages=all | |
6319 | fi | |
6320 | else | |
6321 | if test x"${enable_languages}" = x || | |
6322 | test x"${enable_languages}" = xyes; | |
6323 | then | |
6324 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
6325 | exit 1 | |
6326 | fi | |
6327 | fi | |
6328 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6329 | ||
096f7d00 DE |
6330 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6331 | # and make the substitution. | |
6332 | case ,${enable_languages}, in | |
6333 | *,f95,*) | |
6334 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
6335 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
6336 | ;; | |
6337 | esac | |
6338 | ||
7ec59b9e L |
6339 | # If bootstrapping, C++ must be enabled. |
6340 | case ",$enable_languages,:$enable_bootstrap" in | |
6341 | *,c++,*:*) ;; | |
6342 | *:yes) | |
ffdd6afc ILT |
6343 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6344 | enable_languages="${enable_languages},c++" | |
6345 | else | |
7ec59b9e | 6346 | as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5 |
ffdd6afc ILT |
6347 | fi |
6348 | ;; | |
6349 | esac | |
6350 | ||
9e07f89d NN |
6351 | # First scan to see if an enabled language requires some other language. |
6352 | # We assume that a given config-lang.in will list all the language | |
6353 | # front ends it requires, even if some are required indirectly. | |
6354 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6355 | case ${lang_frag} in | |
6356 | ..) ;; | |
6357 | # The odd quoting in the next line works around | |
6358 | # an apparent bug in bash 1.12 on linux. | |
6359 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6360 | *) | |
e552509b ILT |
6361 | # From the config-lang.in, get $language, $lang_requires, and |
6362 | # $lang_requires_boot_languages. | |
9e07f89d NN |
6363 | language= |
6364 | lang_requires= | |
e552509b | 6365 | lang_requires_boot_languages= |
9e07f89d | 6366 | . ${lang_frag} |
e552509b | 6367 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
6368 | case ,${enable_languages}, in |
6369 | *,$other,*) ;; | |
6370 | *,all,*) ;; | |
6371 | *,$language,*) | |
6372 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6373 | enable_languages="${enable_languages},${other}" | |
6374 | ;; | |
6375 | esac | |
6376 | done | |
e552509b ILT |
6377 | for other in ${lang_requires_boot_languages} ; do |
6378 | if test "$other" != "c"; then | |
6379 | case ,${enable_stage1_languages}, in | |
6380 | *,$other,*) ;; | |
6381 | *,all,*) ;; | |
6382 | *) | |
6383 | case ,${enable_languages}, in | |
6384 | *,$language,*) | |
6385 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6386 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6387 | ;; | |
6388 | esac | |
6389 | ;; | |
6390 | esac | |
6391 | fi | |
6392 | done | |
9e07f89d NN |
6393 | ;; |
6394 | esac | |
6395 | done | |
6396 | ||
9b134994 | 6397 | new_enable_languages=,c, |
700d40ca ILT |
6398 | |
6399 | # If LTO is enabled, add the LTO front end. | |
6400 | extra_host_libiberty_configure_flags= | |
6401 | if test "$enable_lto" = "yes" ; then | |
6811fb56 RW |
6402 | case ,${enable_languages}, in |
6403 | *,lto,*) ;; | |
6404 | *) enable_languages="${enable_languages},lto" ;; | |
6405 | esac | |
a8eb3f0a | 6406 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca ILT |
6407 | configdirs="$configdirs lto-plugin" |
6408 | extra_host_libiberty_configure_flags=--enable-shared | |
6409 | fi | |
6410 | fi | |
6411 | ||
6412 | ||
9e07f89d | 6413 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 6414 | potential_languages=,c, |
9e07f89d | 6415 | |
9e1a94f4 ILT |
6416 | enabled_target_libs= |
6417 | disabled_target_libs= | |
6418 | ||
9e07f89d NN |
6419 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6420 | case ${lang_frag} in | |
6421 | ..) ;; | |
6422 | # The odd quoting in the next line works around | |
6423 | # an apparent bug in bash 1.12 on linux. | |
6424 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6425 | *) | |
c6b750e1 | 6426 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 6427 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
6428 | language= |
6429 | target_libs= | |
6430 | lang_dirs= | |
64ce424c | 6431 | subdir_requires= |
9b134994 PB |
6432 | boot_language=no |
6433 | build_by_default=yes | |
9e07f89d | 6434 | . ${lang_frag} |
9b134994 PB |
6435 | if test x${language} = x; then |
6436 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6437 | exit 1 | |
6438 | fi | |
6439 | ||
ffdd6afc | 6440 | if test "$language" = "c++"; then |
7ec59b9e | 6441 | boot_language=yes |
e8a5fa9c RW |
6442 | fi |
6443 | ||
8e71395b | 6444 | add_this_lang=no |
9b134994 PB |
6445 | case ,${enable_languages}, in |
6446 | *,${language},*) | |
7ec59b9e L |
6447 | # Language was explicitly selected; include it |
6448 | # unless it is C, which is enabled by default. | |
6449 | if test "$language" != "c"; then | |
6450 | add_this_lang=yes | |
6451 | fi | |
9e07f89d | 6452 | ;; |
9b134994 PB |
6453 | *,all,*) |
6454 | # 'all' was selected, select it if it is a default language | |
8e71395b L |
6455 | if test "$language" != "c"; then |
6456 | add_this_lang=${build_by_default} | |
6457 | fi | |
9e07f89d NN |
6458 | ;; |
6459 | esac | |
4b1cb4fe | 6460 | |
64ce424c | 6461 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 6462 | for i in $subdir_requires; do |
3d3adb43 | 6463 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
64ce424c PB |
6464 | case ,${enable_languages}, in |
6465 | *,${language},*) | |
6466 | # Specifically requested language; tell them. | |
81ecdfbb | 6467 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c PB |
6468 | ;; |
6469 | *) | |
6470 | # Silently disable. | |
9b134994 | 6471 | add_this_lang=unsupported |
64ce424c PB |
6472 | ;; |
6473 | esac | |
6474 | done | |
6475 | ||
9b134994 PB |
6476 | # Disable Ada if no preexisting GNAT is available. |
6477 | case ,${enable_languages},:${language}:${have_gnat} in | |
6478 | *,${language},*:ada:no) | |
6479 | # Specifically requested language; tell them. | |
81ecdfbb | 6480 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
9b134994 PB |
6481 | ;; |
6482 | *:ada:no) | |
6483 | # Silently disable. | |
6484 | add_this_lang=unsupported | |
6485 | ;; | |
6486 | esac | |
6487 | ||
59f7ec45 HPN |
6488 | # Disable a language that is unsupported by the target. |
6489 | case " $unsupported_languages " in | |
6490 | *" $language "*) | |
9b134994 | 6491 | add_this_lang=unsupported |
59f7ec45 HPN |
6492 | ;; |
6493 | esac | |
6494 | ||
4b1cb4fe | 6495 | case $add_this_lang in |
9b134994 | 6496 | unsupported) |
9e07f89d | 6497 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
6498 | disabled_target_libs="$disabled_target_libs $target_libs" |
6499 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 6500 | ;; |
9b134994 PB |
6501 | no) |
6502 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
6503 | disabled_target_libs="$disabled_target_libs $target_libs" |
6504 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
6505 | potential_languages="${potential_languages}${language}," |
6506 | ;; | |
6507 | yes) | |
6508 | new_enable_languages="${new_enable_languages}${language}," | |
6509 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 6510 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 6511 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
6512 | case "${boot_language}:,$enable_stage1_languages," in |
6513 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 6514 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
6515 | case ",$stage1_languages," in |
6516 | *,$language,* | ,yes, | ,all,) ;; | |
6517 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6518 | esac | |
e8a5fa9c RW |
6519 | # We need to bootstrap any supporting libraries. |
6520 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
1d39f329 NN |
6521 | ;; |
6522 | esac | |
6523 | ;; | |
9e07f89d NN |
6524 | esac |
6525 | ;; | |
6526 | esac | |
6527 | done | |
6528 | ||
9e1a94f4 ILT |
6529 | # Add target libraries which are only needed for disabled languages |
6530 | # to noconfigdirs. | |
6531 | if test -n "$disabled_target_libs"; then | |
6532 | for dir in $disabled_target_libs; do | |
6533 | case " $enabled_target_libs " in | |
6534 | *" ${dir} "*) ;; | |
6535 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6536 | esac | |
6537 | done | |
6538 | fi | |
6539 | ||
81ecdfbb RW |
6540 | # Check whether --enable-stage1-languages was given. |
6541 | if test "${enable_stage1_languages+set}" = set; then : | |
6542 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
6543 | ,no,|,,) |
6544 | # Set it to something that will have no effect in the loop below | |
6545 | enable_stage1_languages=c ;; | |
6546 | ,yes,) | |
6547 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6548 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6549 | *,all,*) | |
6550 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6551 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6552 | esac | |
6553 | ||
6554 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6555 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6556 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6557 | case $potential_languages in | |
6558 | *,$i,*) | |
6559 | case $stage1_languages in | |
6560 | *,$i,*) ;; | |
6561 | *) stage1_languages="$stage1_languages$i," ;; | |
6562 | esac ;; | |
6563 | *) | |
6564 | case $missing_languages in | |
6565 | *,$i,*) ;; | |
6566 | *) missing_languages="$missing_languages$i," ;; | |
6567 | esac ;; | |
6568 | esac | |
6569 | done | |
81ecdfbb RW |
6570 | fi |
6571 | ||
9b134994 PB |
6572 | |
6573 | # Remove leading/trailing commas that were added for simplicity | |
6574 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 6575 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
6576 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6577 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6578 | ||
9e07f89d | 6579 | if test "x$missing_languages" != x; then |
81ecdfbb | 6580 | as_fn_error " |
27258dd4 | 6581 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 6582 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 6583 | fi |
9e07f89d NN |
6584 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6585 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 6586 | enable_languages="$new_enable_languages" |
9e07f89d | 6587 | fi |
9b134994 | 6588 | |
c6b750e1 | 6589 | |
81ec575a | 6590 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
6591 | fi |
6592 | ||
a6df5a19 PB |
6593 | # Handle --disable-<component> generically. |
6594 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6595 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
6596 | varname=`echo $dirname | sed -e s/+/_/g` |
6597 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
6598 | noconfigdirs="$noconfigdirs $dir" |
6599 | fi | |
6600 | done | |
6601 | ||
4f0ef2d8 | 6602 | # Check for Boehm's garbage collector |
81ecdfbb RW |
6603 | # Check whether --enable-objc-gc was given. |
6604 | if test "${enable_objc_gc+set}" = set; then : | |
6605 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
4f0ef2d8 | 6606 | *,objc,*:*:yes:*target-boehm-gc*) |
81ecdfbb | 6607 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
4f0ef2d8 CD |
6608 | ;; |
6609 | esac | |
81ecdfbb RW |
6610 | fi |
6611 | ||
4f0ef2d8 CD |
6612 | |
6613 | # Make sure we only build Boehm's garbage collector if required. | |
d42c4017 DA |
6614 | case ,${enable_languages},:${enable_objc_gc} in |
6615 | *,objc,*:yes) | |
4f0ef2d8 CD |
6616 | # Keep target-boehm-gc if requested for Objective-C. |
6617 | ;; | |
4f0ef2d8 | 6618 | *) |
d42c4017 DA |
6619 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6620 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6621 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6622 | fi | |
4f0ef2d8 CD |
6623 | ;; |
6624 | esac | |
6625 | ||
95e43135 | 6626 | # Disable libitm, libsanitizer, libvtv if we're not building C++ |
7ec59b9e L |
6627 | case ,${enable_languages}, in |
6628 | *,c++,*) ;; | |
6629 | *) | |
95e43135 | 6630 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv" |
7ec59b9e L |
6631 | ;; |
6632 | esac | |
6633 | ||
caeba88f AL |
6634 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6635 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
6636 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6637 | ||
6638 | notsupp="" | |
6639 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 6640 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
6641 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6642 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6643 | if test -r $srcdir/$dirname/configure ; then | |
6644 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6645 | true | |
6646 | else | |
6647 | notsupp="$notsupp $dir" | |
6648 | fi | |
6649 | fi | |
6650 | fi | |
caeba88f AL |
6651 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6652 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6653 | if test -r $srcdir/$dirname/configure ; then | |
6654 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6655 | true | |
6656 | else | |
6657 | notsupp="$notsupp $dir" | |
6658 | fi | |
6659 | fi | |
6660 | fi | |
9e07f89d NN |
6661 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6662 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6663 | if test -r $srcdir/$dirname/configure ; then | |
6664 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6665 | true | |
6666 | else | |
6667 | notsupp="$notsupp $dir" | |
6668 | fi | |
6669 | fi | |
6670 | fi | |
6671 | done | |
6672 | ||
9e07f89d NN |
6673 | # Quietly strip out all directories which aren't configurable in this tree. |
6674 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6675 | # is now the case. | |
6a9cf61e PB |
6676 | build_configdirs_all="$build_configdirs" |
6677 | build_configdirs= | |
6678 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 6679 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
6680 | if test -f ${srcdir}/$j/configure ; then |
6681 | build_configdirs="${build_configdirs} $i" | |
6682 | fi | |
6683 | done | |
6684 | ||
9e07f89d NN |
6685 | configdirs_all="$configdirs" |
6686 | configdirs= | |
6687 | for i in ${configdirs_all} ; do | |
6688 | if test -f ${srcdir}/$i/configure ; then | |
6689 | configdirs="${configdirs} $i" | |
6690 | fi | |
6691 | done | |
6a9cf61e | 6692 | |
9e07f89d NN |
6693 | target_configdirs_all="$target_configdirs" |
6694 | target_configdirs= | |
6695 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 6696 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
6697 | if test -f ${srcdir}/$j/configure ; then |
6698 | target_configdirs="${target_configdirs} $i" | |
6699 | fi | |
6700 | done | |
6701 | ||
6702 | # Produce a warning message for the subdirs we can't configure. | |
6703 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6704 | # FSF releases, it's important to let people know when their machine isn't | |
6705 | # supported by the one or two programs in a package. | |
6706 | ||
6707 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6708 | # If $appdirs is non-empty, at least one of those directories must still | |
6709 | # be configured, or we error out. (E.g., if the gas release supports a | |
6710 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6711 | # pretend that all is well.) | |
6712 | if test -n "$appdirs" ; then | |
6713 | for dir in $appdirs ; do | |
6714 | if test -r $dir/Makefile.in ; then | |
6715 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6716 | appdirs="" | |
6717 | break | |
6718 | fi | |
6a9cf61e | 6719 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
6720 | appdirs="" |
6721 | break | |
6722 | fi | |
6723 | fi | |
6724 | done | |
6725 | if test -n "$appdirs" ; then | |
6726 | echo "*** This configuration is not supported by this package." 1>&2 | |
6727 | exit 1 | |
6728 | fi | |
6729 | fi | |
6730 | # Okay, some application will build, or we don't care to check. Still | |
6731 | # notify of subdirs not getting built. | |
6732 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6733 | echo " ${notsupp}" 1>&2 | |
6734 | echo " (Any other directories should still work fine.)" 1>&2 | |
6735 | fi | |
6736 | ||
6737 | case "$host" in | |
6738 | *msdosdjgpp*) | |
6739 | enable_gdbtk=no ;; | |
6740 | esac | |
6741 | ||
18f6b6ee PB |
6742 | # To find our prefix, in gcc_cv_tool_prefix. |
6743 | ||
6744 | # The user is always right. | |
6745 | if test "${PATH_SEPARATOR+set}" != set; then | |
6746 | echo "#! /bin/sh" >conf$$.sh | |
6747 | echo "exit 0" >>conf$$.sh | |
6748 | chmod +x conf$$.sh | |
6749 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6750 | PATH_SEPARATOR=';' | |
6751 | else | |
6752 | PATH_SEPARATOR=: | |
6753 | fi | |
6754 | rm -f conf$$.sh | |
6755 | fi | |
6756 | ||
6757 | ||
6758 | ||
6759 | if test "x$exec_prefix" = xNONE; then | |
6760 | if test "x$prefix" = xNONE; then | |
6761 | gcc_cv_tool_prefix=$ac_default_prefix | |
6762 | else | |
6763 | gcc_cv_tool_prefix=$prefix | |
6764 | fi | |
6765 | else | |
6766 | gcc_cv_tool_prefix=$exec_prefix | |
6767 | fi | |
6768 | ||
6769 | # If there is no compiler in the tree, use the PATH only. In any | |
6770 | # case, if there is no compiler in the tree nobody should use | |
6771 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6772 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6773 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6774 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6775 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6776 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6777 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6778 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6779 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6780 | else | |
6781 | gcc_cv_tool_dirs= | |
6782 | fi | |
6783 | ||
6784 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6785 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6786 | fi | |
6787 | ||
6788 | ||
6789 | ||
9e07f89d NN |
6790 | copy_dirs= |
6791 | ||
c6b750e1 | 6792 | |
81ecdfbb RW |
6793 | # Check whether --with-build-sysroot was given. |
6794 | if test "${with_build_sysroot+set}" = set; then : | |
6795 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
6796 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6797 | fi | |
6798 | else | |
6799 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 6800 | fi |
a19b6204 MM |
6801 | |
6802 | ||
8a6ee3ab | 6803 | |
81ecdfbb RW |
6804 | |
6805 | # Check whether --with-debug-prefix-map was given. | |
6806 | if test "${with_debug_prefix_map+set}" = set; then : | |
6807 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
6808 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6809 | for debug_map in $withval; do | |
6810 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6811 | done | |
6812 | fi | |
6813 | else | |
6814 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
6815 | fi |
6816 | ||
8a6ee3ab JM |
6817 | |
6818 | ||
7f6ef0c0 PB |
6819 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6820 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6821 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6822 | # We want to ensure that TARGET libraries (which we know are built with | |
6823 | # gcc) are built with "-O2 -g", so include those options when setting | |
6824 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6825 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
6826 | CFLAGS_FOR_TARGET=$CFLAGS | |
6827 | case " $CFLAGS " in | |
6828 | *" -O2 "*) ;; | |
68f107fa | 6829 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; |
7f6ef0c0 PB |
6830 | esac |
6831 | case " $CFLAGS " in | |
6832 | *" -g "* | *" -g3 "*) ;; | |
68f107fa | 6833 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; |
7f6ef0c0 PB |
6834 | esac |
6835 | fi | |
6836 | ||
6837 | ||
6838 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
6839 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6840 | case " $CXXFLAGS " in | |
6841 | *" -O2 "*) ;; | |
68f107fa | 6842 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; |
7f6ef0c0 PB |
6843 | esac |
6844 | case " $CXXFLAGS " in | |
6845 | *" -g "* | *" -g3 "*) ;; | |
68f107fa | 6846 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; |
7f6ef0c0 PB |
6847 | esac |
6848 | fi | |
6849 | ||
6850 | ||
91c1f14c DK |
6851 | |
6852 | ||
9e07f89d NN |
6853 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6854 | # the named directory are copied to $(tooldir)/sys-include. | |
6855 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6856 | if test x${is_cross_compiler} = xno ; then | |
6857 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6858 | exit 1 | |
6859 | fi | |
6860 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 6861 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 6862 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
6863 | fi |
6864 | fi | |
6865 | ||
6866 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6867 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6868 | # are permitted. | |
6869 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6870 | if test x${is_cross_compiler} = xno ; then | |
6871 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6872 | exit 1 | |
6873 | fi | |
6874 | if test x"${with_libs}" != xyes ; then | |
6875 | # Copy the libraries in reverse order, so that files in the first named | |
6876 | # library override files in subsequent libraries. | |
18f6b6ee | 6877 | x=${gcc_cv_tool_prefix} |
9e07f89d | 6878 | for l in ${with_libs}; do |
c6b750e1 | 6879 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
6880 | done |
6881 | fi | |
6882 | fi | |
6883 | ||
700d40ca | 6884 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
6885 | # |
6886 | # This is done by determining whether or not the appropriate directory | |
6887 | # is available, and by checking whether or not specific configurations | |
6888 | # have requested that this magic not happen. | |
c6b750e1 DJ |
6889 | # |
6890 | # The command line options always override the explicit settings in | |
2429c060 PB |
6891 | # configure.in, and the settings in configure.in override this magic. |
6892 | # | |
c6b750e1 | 6893 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 6894 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
6895 | # --without-gnu-ld options for the configure script. Similarly, if |
6896 | # the default is to use the included zlib and you don't want to do that, | |
6897 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
6898 | |
6899 | if test x${use_gnu_as} = x && | |
6900 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6901 | with_gnu_as=yes | |
6902 | extra_host_args="$extra_host_args --with-gnu-as" | |
6903 | fi | |
6904 | ||
6905 | if test x${use_gnu_ld} = x && | |
93f9b408 | 6906 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
6907 | with_gnu_ld=yes |
6908 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6909 | fi | |
6910 | ||
700d40ca ILT |
6911 | if test x${use_included_zlib} = x && |
6912 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6913 | : | |
6914 | else | |
6915 | with_system_zlib=yes | |
6916 | extra_host_args="$extra_host_args --with-system-zlib" | |
6917 | fi | |
6918 | ||
2429c060 PB |
6919 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6920 | # can detect this case. | |
6921 | ||
6922 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6923 | with_newlib=yes | |
6924 | extra_host_args="$extra_host_args --with-newlib" | |
6925 | fi | |
6926 | ||
9e07f89d NN |
6927 | # Handle ${copy_dirs} |
6928 | set fnord ${copy_dirs} | |
6929 | shift | |
6930 | while test $# != 0 ; do | |
6931 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6932 | : | |
6933 | else | |
6934 | echo Copying $1 to $2 | |
6935 | ||
6936 | # Use the install script to create the directory and all required | |
6937 | # parent directories. | |
6938 | if test -d $2 ; then | |
6939 | : | |
6940 | else | |
6941 | echo >config.temp | |
6942 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6943 | fi | |
6944 | ||
6945 | # Copy the directory, assuming we have tar. | |
6946 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6947 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6948 | ||
6949 | # It is the responsibility of the user to correctly adjust all | |
6950 | # symlinks. If somebody can figure out how to handle them correctly | |
6951 | # here, feel free to add the code. | |
6952 | ||
6953 | echo $1 > $2/COPIED | |
6954 | fi | |
6955 | shift; shift | |
6956 | done | |
6957 | ||
2429c060 PB |
6958 | # Determine a target-dependent exec_prefix that the installed |
6959 | # gcc will search in. Keep this list sorted by triplet, with | |
6960 | # the *-*-osname triplets last. | |
6961 | md_exec_prefix= | |
6962 | case "${target}" in | |
521ec477 | 6963 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
6964 | md_exec_prefix=/dev/env/DJDIR/bin |
6965 | ;; | |
2429c060 | 6966 | *-*-hpux* | \ |
2429c060 | 6967 | *-*-nto-qnx* | \ |
1f111696 | 6968 | *-*-solaris2*) |
2429c060 PB |
6969 | md_exec_prefix=/usr/ccs/bin |
6970 | ;; | |
6971 | esac | |
6972 | ||
a0da8069 NN |
6973 | extra_arflags_for_target= |
6974 | extra_nmflags_for_target= | |
6975 | extra_ranlibflags_for_target= | |
6976 | target_makefile_frag=/dev/null | |
6977 | case "${target}" in | |
77d7106f AM |
6978 | spu-*-*) |
6979 | target_makefile_frag="config/mt-spu" | |
6980 | ;; | |
d09bbf00 | 6981 | mips*-sde-elf* | mips*-mti-elf*) |
429acdec RS |
6982 | target_makefile_frag="config/mt-sde" |
6983 | ;; | |
f3b1e08e RS |
6984 | mipsisa*-*-elfoabi*) |
6985 | target_makefile_frag="config/mt-mips-elfoabi" | |
6986 | ;; | |
e7c8859c RS |
6987 | mips*-*-*linux* | mips*-*-gnu*) |
6988 | target_makefile_frag="config/mt-mips-gnu" | |
6989 | ;; | |
29383458 | 6990 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 6991 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
6992 | ;; |
6993 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 6994 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
6995 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6996 | # harmless if we're using GNU nm or ar. | |
6997 | extra_arflags_for_target=" -X32_64" | |
6998 | extra_nmflags_for_target=" -B -X32_64" | |
6999 | ;; | |
a0da8069 NN |
7000 | esac |
7001 | ||
7002 | alphaieee_frag=/dev/null | |
7003 | case $target in | |
7004 | alpha*-*-*) | |
7005 | # This just makes sure to use the -mieee option to build target libs. | |
7006 | # This should probably be set individually by each library. | |
7007 | alphaieee_frag="config/mt-alphaieee" | |
7008 | ;; | |
7009 | esac | |
7010 | ||
7011 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
7012 | # the target libraries, similarly if it is not specified, use -Os | |
7013 | # on selected platforms. | |
7014 | ospace_frag=/dev/null | |
7015 | case "${enable_target_optspace}:${target}" in | |
7016 | yes:*) | |
7017 | ospace_frag="config/mt-ospace" | |
7018 | ;; | |
7019 | :d30v-*) | |
7020 | ospace_frag="config/mt-d30v" | |
7021 | ;; | |
7022 | :m32r-* | :d10v-* | :fr30-*) | |
7023 | ospace_frag="config/mt-ospace" | |
7024 | ;; | |
7025 | no:* | :*) | |
7026 | ;; | |
7027 | *) | |
7028 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
7029 | ;; | |
7030 | esac | |
7031 | ||
a0da8069 NN |
7032 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
7033 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 7034 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
7035 | build_tooldir=${tooldir} |
7036 | ||
a0da8069 NN |
7037 | # Create a .gdbinit file which runs the one in srcdir |
7038 | # and tells GDB to look there for source files. | |
7039 | ||
7040 | if test -r ${srcdir}/.gdbinit ; then | |
7041 | case ${srcdir} in | |
7042 | .) ;; | |
7043 | *) cat > ./.gdbinit <<EOF | |
7044 | # ${NO_EDIT} | |
7045 | dir ${srcdir} | |
7046 | dir . | |
7047 | source ${srcdir}/.gdbinit | |
7048 | EOF | |
7049 | ;; | |
7050 | esac | |
7051 | fi | |
7052 | ||
a0da8069 NN |
7053 | # Make sure that the compiler is able to generate an executable. If it |
7054 | # can't, we are probably in trouble. We don't care whether we can run the | |
7055 | # executable--we might be using a cross compiler--we only care whether it | |
7056 | # can be created. At this point the main configure script has set CC. | |
7057 | we_are_ok=no | |
7058 | echo "int main () { return 0; }" > conftest.c | |
7059 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7060 | if test $? = 0 ; then | |
7061 | if test -s conftest || test -s conftest.exe ; then | |
7062 | we_are_ok=yes | |
7063 | fi | |
c6b750e1 | 7064 | fi |
a0da8069 NN |
7065 | case $we_are_ok in |
7066 | no) | |
7067 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
7068 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
7069 | rm -f conftest* | |
7070 | exit 1 | |
7071 | ;; | |
7072 | esac | |
7073 | rm -f conftest* | |
7074 | ||
3bbd2f8f | 7075 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
7076 | case "${host}" in |
7077 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 7078 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 7079 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
7080 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
7081 | esac | |
7082 | ||
3bbd2f8f | 7083 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
7084 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
7085 | # built executables to PATH. | |
3bbd2f8f AL |
7086 | if test "$RPATH_ENVVAR" = PATH; then |
7087 | GCC_SHLIB_SUBDIR=/shlib | |
7088 | else | |
7089 | GCC_SHLIB_SUBDIR= | |
7090 | fi | |
7091 | ||
a0da8069 NN |
7092 | # Record target_configdirs and the configure arguments for target and |
7093 | # build configuration in Makefile. | |
7094 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 7095 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
a0da8069 | 7096 | |
2aa2364a JR |
7097 | # If we are building libgomp, bootstrap it. |
7098 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7099 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7100 | fi | |
7101 | ||
5eb08693 L |
7102 | # If we are building libsanitizer, bootstrap it. |
7103 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1 ; then | |
7104 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
7105 | fi | |
7106 | ||
95e43135 JBG |
7107 | # If we are building libvtv, bootstrap it. |
7108 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 ; then | |
7109 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, | |
7110 | fi | |
7111 | ||
a0da8069 NN |
7112 | # Determine whether gdb needs tk/tcl or not. |
7113 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7114 | # and in that case we want gdb to be built without tk. Ugh! | |
7115 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7116 | # so we should be able to put the 'maybe's in unconditionally and | |
7117 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7118 | # 100% sure that that's safe though. | |
c180f501 | 7119 | |
675c6968 | 7120 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
7121 | case "$enable_gdbtk" in |
7122 | no) | |
7123 | GDB_TK="" ;; | |
c180f501 AC |
7124 | yes) |
7125 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 7126 | *) |
c180f501 AC |
7127 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7128 | # distro. Eventually someone will fix this and move Insight, nee | |
7129 | # gdbtk to a separate directory. | |
7130 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7131 | GDB_TK="${gdb_tk}" | |
7132 | else | |
7133 | GDB_TK="" | |
7134 | fi | |
7135 | ;; | |
a0da8069 | 7136 | esac |
907be67c DJ |
7137 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7138 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 7139 | |
6bd3dfaa | 7140 | # Strip out unwanted targets. |
dd12c3a8 NN |
7141 | |
7142 | # While at that, we remove Makefiles if we were started for recursive | |
7143 | # configuration, so that the top-level Makefile reconfigures them, | |
7144 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 7145 | |
06a51eac RW |
7146 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7147 | # but now we're fixing up the Makefile ourselves with the additional | |
7148 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7149 | # extrasub-{build,host,target} not because there is any reason to split | |
7150 | # the substitutions up that way, but only to remain below the limit of | |
7151 | # 99 commands in a script, for HP-UX sed. | |
7152 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
dd12c3a8 | 7153 | |
16b1ad29 RW |
7154 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7155 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7156 | yes:yes:*\ gold\ *:*) | |
7157 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
7158 | ;; | |
7159 | esac | |
7160 | ||
9cb3fa6f | 7161 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
96655cc4 | 7162 | case $enable_bootstrap in |
319cab08 | 7163 | yes) |
96655cc4 AO |
7164 | bootstrap_suffix=bootstrap |
7165 | BUILD_CONFIG=bootstrap-debug | |
7166 | ;; | |
319cab08 | 7167 | no) |
96655cc4 AO |
7168 | bootstrap_suffix=no-bootstrap |
7169 | BUILD_CONFIG= | |
7170 | ;; | |
319cab08 PB |
7171 | esac |
7172 | ||
96655cc4 AO |
7173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 |
7174 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7175 | ||
7176 | ||
7177 | # Check whether --with-build-config was given. | |
7178 | if test "${with_build_config+set}" = set; then : | |
7179 | withval=$with_build_config; case $with_build_config in | |
7180 | yes) with_build_config= ;; | |
7181 | no) with_build_config= BUILD_CONFIG= ;; | |
7182 | esac | |
7183 | fi | |
7184 | ||
7185 | ||
7186 | if test "x${with_build_config}" != x; then | |
7187 | BUILD_CONFIG=$with_build_config | |
7188 | else | |
7189 | case $BUILD_CONFIG in | |
7190 | bootstrap-debug) | |
7191 | if echo "int f (void) { return 0; }" > conftest.c && | |
7192 | ${CC} -c conftest.c && | |
7193 | mv conftest.o conftest.o.g0 && | |
7194 | ${CC} -c -g conftest.c && | |
7195 | mv conftest.o conftest.o.g && | |
a009f2e7 | 7196 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then |
96655cc4 AO |
7197 | : |
7198 | else | |
7199 | BUILD_CONFIG= | |
7200 | fi | |
7201 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7202 | ;; | |
7203 | esac | |
7204 | fi | |
7205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7206 | $as_echo "$BUILD_CONFIG" >&6; } | |
7207 | ||
7208 | ||
06a51eac | 7209 | extrasub_build= |
6a9cf61e | 7210 | for module in ${build_configdirs} ; do |
498d4a71 CF |
7211 | if test -z "${no_recursion}" \ |
7212 | && test -f ${build_subdir}/${module}/Makefile; then | |
7213 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7214 | rm -f ${build_subdir}/${module}/Makefile | |
7215 | fi | |
06a51eac | 7216 | extrasub_build="$extrasub_build |
498d4a71 CF |
7217 | /^@if build-$module\$/d |
7218 | /^@endif build-$module\$/d | |
7219 | /^@if build-$module-$bootstrap_suffix\$/d | |
7220 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7221 | done | |
06a51eac | 7222 | extrasub_host= |
498d4a71 | 7223 | for module in ${configdirs} ; do |
80911fe1 | 7224 | if test -z "${no_recursion}"; then |
8cf39b1b | 7225 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
7226 | if test -f ${file}; then |
7227 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7228 | rm -f ${file} | |
7229 | fi | |
7230 | done | |
498d4a71 | 7231 | fi |
06a51eac | 7232 | extrasub_host="$extrasub_host |
498d4a71 CF |
7233 | /^@if $module\$/d |
7234 | /^@endif $module\$/d | |
7235 | /^@if $module-$bootstrap_suffix\$/d | |
7236 | /^@endif $module-$bootstrap_suffix\$/d" | |
7237 | done | |
06a51eac | 7238 | extrasub_target= |
498d4a71 CF |
7239 | for module in ${target_configdirs} ; do |
7240 | if test -z "${no_recursion}" \ | |
7241 | && test -f ${target_subdir}/${module}/Makefile; then | |
7242 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7243 | rm -f ${target_subdir}/${module}/Makefile | |
7244 | fi | |
e8a5fa9c RW |
7245 | |
7246 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7247 | case $bootstrap_target_libs in | |
7248 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7249 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7250 | esac | |
7251 | ||
06a51eac | 7252 | extrasub_target="$extrasub_target |
498d4a71 CF |
7253 | /^@if target-$module\$/d |
7254 | /^@endif target-$module\$/d | |
e8a5fa9c RW |
7255 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7256 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
7257 | done |
7258 | ||
06a51eac RW |
7259 | # Do the final fixup along with target modules. |
7260 | extrasub_target="$extrasub_target | |
6bd3dfaa | 7261 | /^@if /,/^@endif /d" |
a0da8069 NN |
7262 | |
7263 | # Create the serialization dependencies. This uses a temporary file. | |
7264 | ||
81ecdfbb RW |
7265 | # Check whether --enable-serial-configure was given. |
7266 | if test "${enable_serial_configure+set}" = set; then : | |
7267 | enableval=$enable_serial_configure; | |
7268 | fi | |
e6bfb94a AO |
7269 | |
7270 | ||
1047cb91 DD |
7271 | case ${enable_serial_configure} in |
7272 | yes) | |
7273 | enable_serial_build_configure=yes | |
7274 | enable_serial_host_configure=yes | |
7275 | enable_serial_target_configure=yes | |
7276 | ;; | |
7277 | esac | |
7278 | ||
a0da8069 NN |
7279 | # These force 'configure's to be done one at a time, to avoid problems |
7280 | # with contention over a shared config.cache. | |
7281 | rm -f serdep.tmp | |
e6bfb94a | 7282 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 7283 | olditem= |
1047cb91 | 7284 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
7285 | for item in ${build_configdirs} ; do |
7286 | case ${olditem} in | |
7287 | "") ;; | |
e6bfb94a | 7288 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7289 | esac |
7290 | olditem=${item} | |
7291 | done | |
7292 | olditem= | |
1047cb91 | 7293 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
7294 | for item in ${configdirs} ; do |
7295 | case ${olditem} in | |
7296 | "") ;; | |
e6bfb94a | 7297 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7298 | esac |
7299 | olditem=${item} | |
7300 | done | |
7301 | olditem= | |
1047cb91 | 7302 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
7303 | for item in ${target_configdirs} ; do |
7304 | case ${olditem} in | |
7305 | "") ;; | |
e6bfb94a | 7306 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7307 | esac |
7308 | olditem=${item} | |
7309 | done | |
7310 | serialization_dependencies=serdep.tmp | |
7311 | ||
7312 | ||
e6bfb94a | 7313 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 7314 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
7315 | # might not want to pass down to subconfigures. The exception being |
7316 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7317 | # files altogether, and which should be passed on to subconfigures. | |
7318 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7319 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 7320 | baseargs= |
65b4571a | 7321 | tbaseargs= |
c6b750e1 DJ |
7322 | keep_next=no |
7323 | skip_next=no | |
7324 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
7325 | for ac_arg |
7326 | do | |
c6b750e1 DJ |
7327 | if test X"$skip_next" = X"yes"; then |
7328 | skip_next=no | |
7329 | continue | |
7330 | fi | |
7331 | if test X"$keep_next" = X"yes"; then | |
7332 | case $ac_arg in | |
7333 | *\'*) | |
7334 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7335 | esac | |
7336 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7337 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
7338 | keep_next=no |
7339 | continue | |
7340 | fi | |
7341 | ||
7342 | # Handle separated arguments. Based on the logic generated by | |
7343 | # autoconf 2.59. | |
7344 | case $ac_arg in | |
7345 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7346 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7347 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7348 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7349 | separate_arg=no | |
7350 | ;; | |
7351 | -*) | |
7352 | separate_arg=yes | |
7353 | ;; | |
7354 | *) | |
7355 | separate_arg=no | |
7356 | ;; | |
7357 | esac | |
7358 | ||
65b4571a AO |
7359 | skip_targ=no |
7360 | case $ac_arg in | |
7361 | ||
7362 | --with-* | --without-*) | |
7363 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7364 | ||
7365 | case $libopt in | |
7366 | *[-_]include) | |
7367 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7368 | ;; | |
7369 | *[-_]lib) | |
7370 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7371 | ;; | |
7372 | *) | |
7373 | lib=$libopt | |
7374 | ;; | |
7375 | esac | |
7376 | ||
7377 | ||
7378 | case $lib in | |
7ec59b9e | 7379 | mpc | mpfr | gmp | cloog) |
65b4571a AO |
7380 | # If we're processing --with-$lib, --with-$lib-include or |
7381 | # --with-$lib-lib, for one of the libs above, and target is | |
7382 | # different from host, don't pass the current argument to any | |
7383 | # target library's configure. | |
7384 | if test x$is_cross_compiler = xyes; then | |
7385 | skip_targ=yes | |
7386 | fi | |
7387 | ;; | |
7388 | esac | |
7389 | ;; | |
7390 | esac | |
7391 | ||
c6b750e1 | 7392 | case "$ac_arg" in |
30167e0a NC |
7393 | --cache-file=/dev/null | \ |
7394 | -cache-file=/dev/null ) | |
7395 | # Handled here to avoid the test to skip args below. | |
7396 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7397 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
7398 | # Assert: $separate_arg should always be no. |
7399 | keep_next=$separate_arg | |
7400 | ;; | |
c6b750e1 DJ |
7401 | --no*) |
7402 | continue | |
7403 | ;; | |
7404 | --c* | \ | |
7405 | --sr* | \ | |
7406 | --ho* | \ | |
7407 | --bu* | \ | |
7408 | --t* | \ | |
7409 | --program-* | \ | |
7410 | -cache_file* | \ | |
7411 | -srcdir* | \ | |
7412 | -host* | \ | |
7413 | -build* | \ | |
7414 | -target* | \ | |
7415 | -program-prefix* | \ | |
7416 | -program-suffix* | \ | |
7417 | -program-transform-name* ) | |
7418 | skip_next=$separate_arg | |
7419 | continue | |
7420 | ;; | |
7421 | -*) | |
7422 | # An option. Add it. | |
7423 | case $ac_arg in | |
7424 | *\'*) | |
7425 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7426 | esac | |
7427 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
7428 | if test X"$skip_targ" = Xno; then |
7429 | tbaseargs="$tbaseargs '$ac_arg'" | |
7430 | fi | |
c6b750e1 DJ |
7431 | keep_next=$separate_arg |
7432 | ;; | |
7433 | *) | |
7434 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7435 | # pass it down; let the Makefile handle this. | |
7436 | continue | |
7437 | ;; | |
7438 | esac | |
7439 | done | |
7440 | # Remove the initial space we just introduced and, as these will be | |
7441 | # expanded by make, quote '$'. | |
7442 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 7443 | |
f27d4f92 DJ |
7444 | # Add in --program-transform-name, after --program-prefix and |
7445 | # --program-suffix have been applied to it. Autoconf has already | |
7446 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7447 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 7448 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
7449 | # Also, because we want to override the logic in subdir configure scripts to |
7450 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7451 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7452 | ${program_transform_name} | |
7453 | EOF_SED | |
7454 | gcc_transform_name=`cat conftestsed.out` | |
7455 | rm -f conftestsed.out | |
7456 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 7457 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
7458 | if test "$silent" = yes; then |
7459 | baseargs="$baseargs --silent" | |
65b4571a | 7460 | tbaseargs="$tbaseargs --silent" |
2444379b | 7461 | fi |
34a0f3cf | 7462 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 7463 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 7464 | |
4074d5f2 RW |
7465 | # Record and document user additions to sub configure arguments. |
7466 | ||
7467 | ||
7468 | ||
7469 | ||
a0da8069 NN |
7470 | # For the build-side libraries, we just need to pretend we're native, |
7471 | # and not use the same cache file. Multilibs are neither needed nor | |
7472 | # desired. | |
4074d5f2 | 7473 | build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}" |
a0da8069 NN |
7474 | |
7475 | # For host modules, accept cache file option, or specification as blank. | |
7476 | case "${cache_file}" in | |
7477 | "") # empty | |
7478 | cache_file_option="" ;; | |
7479 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7480 | cache_file_option="--cache-file=${cache_file}" ;; | |
7481 | *) # relative path | |
7482 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7483 | esac | |
7484 | ||
82252c06 NN |
7485 | # Host dirs don't like to share a cache file either, horribly enough. |
7486 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 7487 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 7488 | |
65b4571a | 7489 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
7490 | |
7491 | # Passing a --with-cross-host argument lets the target libraries know | |
7492 | # whether they are being built with a cross-compiler or being built | |
7493 | # native. However, it would be better to use other mechanisms to make the | |
7494 | # sorts of decisions they want to make on this basis. Please consider | |
7495 | # this option to be deprecated. FIXME. | |
7496 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 7497 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
7498 | fi |
7499 | ||
938d2b74 RW |
7500 | # Default to --enable-multilib. |
7501 | if test x${enable_multilib} = x ; then | |
a0da8069 | 7502 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 7503 | fi |
a0da8069 NN |
7504 | |
7505 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7506 | # changed from the earlier setting of with_newlib. | |
7507 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7508 | target_configargs="--with-newlib ${target_configargs}" | |
7509 | fi | |
7510 | ||
95036d20 NN |
7511 | # Different target subdirs use different values of certain variables |
7512 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7513 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7514 | # it doesn't automatically accept command-line overrides of them. | |
7515 | # This means it's not safe for target subdirs to share a cache file, | |
7516 | # which is disgusting, but there you have it. Hopefully this can be | |
7517 | # fixed in future. It's still worthwhile to use a cache file for each | |
7518 | # directory. I think. | |
7519 | ||
ae380b45 MS |
7520 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7521 | # We need to pass --target, as newer autoconf's requires consistency | |
7522 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 7523 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 7524 | |
a0da8069 NN |
7525 | FLAGS_FOR_TARGET= |
7526 | case " $target_configdirs " in | |
7527 | *" newlib "*) | |
7528 | case " $target_configargs " in | |
7529 | *" --with-newlib "*) | |
7530 | case "$target" in | |
1f53ca9a | 7531 | *-cygwin*) |
6d94c122 | 7532 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
1f53ca9a | 7533 | ;; |
a0da8069 NN |
7534 | esac |
7535 | ||
7536 | # If we're not building GCC, don't discard standard headers. | |
7537 | if test -d ${srcdir}/gcc; then | |
7538 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7539 | ||
7540 | if test "${build}" != "${host}"; then | |
7541 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7542 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7543 | # to it. This is right: we don't want to search that directory | |
7544 | # for binaries, but we want the header files in there, so add | |
7545 | # them explicitly. | |
e552509b | 7546 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
7547 | |
7548 | # Someone might think of using the pre-installed headers on | |
7549 | # Canadian crosses, in case the installed compiler is not fully | |
7550 | # compatible with the compiler being built. In this case, it | |
7551 | # would be better to flag an error than risking having | |
7552 | # incompatible object files being constructed. We can't | |
7553 | # guarantee that an error will be flagged, but let's hope the | |
7554 | # compiler will do it, when presented with incompatible header | |
7555 | # files. | |
7556 | fi | |
7557 | fi | |
7558 | ||
7559 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 7560 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
7561 | # Here host == target, so we don't need to build gcc, |
7562 | # so we don't want to discard standard headers. | |
7563 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7564 | ;; | |
7565 | *) | |
7566 | # If we're building newlib, use its generic headers last, but search | |
7567 | # for any libc-related directories first (so make it the last -B | |
7568 | # switch). | |
7569 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
691bb5a1 DD |
7570 | |
7571 | # If we're building libgloss, find the startup file, simulator library | |
7572 | # and linker script. | |
7573 | case " $target_configdirs " in | |
7574 | *" libgloss "*) | |
7575 | # Look for startup file, simulator library and maybe linker script. | |
7576 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7577 | # Look for libnosys.a in case the target needs it. | |
7578 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7579 | # Most targets have the linker script in the source directory. | |
7580 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7581 | ;; | |
7582 | esac | |
a0da8069 NN |
7583 | ;; |
7584 | esac | |
7585 | ;; | |
7586 | esac | |
7587 | ;; | |
7588 | esac | |
1f53ca9a | 7589 | |
45055374 | 7590 | case "$target" in |
1f53ca9a AO |
7591 | x86_64-*mingw* | *-w64-mingw*) |
7592 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7593 | # however, use a symlink named 'mingw' in ${prefix} . | |
7594 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7595 | ;; | |
7596 | *-mingw*) | |
7597 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7598 | 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' | |
7599 | ;; | |
45055374 | 7600 | esac |
a0da8069 | 7601 | |
5fbad20a DD |
7602 | # Allow the user to override the flags for |
7603 | # our build compiler if desired. | |
c66487f8 NC |
7604 | if test x"${build}" = x"${host}" ; then |
7605 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7606 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7607 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7608 | fi | |
5fbad20a | 7609 | |
a0da8069 NN |
7610 | # On Canadian crosses, we'll be searching the right directories for |
7611 | # the previously-installed cross compiler, so don't bother to add | |
7612 | # flags for directories within the install tree of the compiler | |
7613 | # being built; programs in there won't even run. | |
7614 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7615 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 7616 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
a0da8069 NN |
7617 | fi |
7618 | ||
7619 | if test "x${use_gnu_ld}" = x && | |
7620 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7621 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 7622 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
7623 | fi |
7624 | ||
a481dbb7 DD |
7625 | # Search for other target-specific linker scripts and such. |
7626 | case "${target}" in | |
4e206d7e DB |
7627 | mep*) |
7628 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7629 | ;; | |
7630 | esac | |
7631 | ||
a0da8069 | 7632 | # Makefile fragments. |
3e707e94 PB |
7633 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7634 | do | |
7635 | eval fragval=\$$frag | |
7636 | if test $fragval != /dev/null; then | |
7637 | eval $frag=${srcdir}/$fragval | |
7638 | fi | |
7639 | done | |
a0da8069 NN |
7640 | |
7641 | ||
7642 | ||
7643 | ||
7644 | ||
7645 | # Miscellanea: directories, flags, etc. | |
7646 | ||
7647 | ||
7648 | ||
7649 | ||
7650 | ||
7651 | ||
7652 | ||
3bbd2f8f | 7653 | |
6a9cf61e | 7654 | # Build module lists & subconfigure args. |
a0da8069 NN |
7655 | |
7656 | ||
7657 | ||
be01d343 PB |
7658 | # Host module lists & subconfigure args. |
7659 | ||
7660 | ||
7661 | ||
911e63d0 | 7662 | |
be01d343 PB |
7663 | # Target module lists & subconfigure args. |
7664 | ||
7665 | ||
7666 | ||
7667 | # Build tools. | |
7668 | ||
7669 | ||
7670 | ||
1576798e PB |
7671 | |
7672 | ||
7673 | ||
7674 | ||
7675 | ||
7676 | ||
7677 | ||
7678 | ||
7679 | ||
7680 | ||
7681 | ||
7682 | ||
7683 | ||
7684 | ||
be01d343 PB |
7685 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7686 | # on the build machine. These are used if the Makefile can't locate these | |
7687 | # programs in objdir. | |
7688 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7689 | ||
7690 | for ac_prog in 'bison -y' byacc yacc | |
7691 | do | |
c6b750e1 | 7692 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7693 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7695 | $as_echo_n "checking for $ac_word... " >&6; } | |
7696 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7697 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7698 | else |
7699 | if test -n "$YACC"; then | |
7700 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7701 | else | |
c6b750e1 DJ |
7702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7703 | for as_dir in $PATH | |
7704 | do | |
7705 | IFS=$as_save_IFS | |
7706 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7707 | for ac_exec_ext in '' $ac_executable_extensions; do |
7708 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7709 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 7710 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7711 | break 2 |
7712 | fi | |
7713 | done | |
81ecdfbb RW |
7714 | done |
7715 | IFS=$as_save_IFS | |
c6b750e1 | 7716 | |
be01d343 PB |
7717 | fi |
7718 | fi | |
c6b750e1 | 7719 | YACC=$ac_cv_prog_YACC |
be01d343 | 7720 | if test -n "$YACC"; then |
81ecdfbb RW |
7721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7722 | $as_echo "$YACC" >&6; } | |
be01d343 | 7723 | else |
81ecdfbb RW |
7724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7725 | $as_echo "no" >&6; } | |
be01d343 PB |
7726 | fi |
7727 | ||
81ecdfbb | 7728 | |
c6b750e1 | 7729 | test -n "$YACC" && break |
be01d343 PB |
7730 | done |
7731 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7732 | ||
7733 | case " $build_configdirs " in | |
7734 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
7735 | esac |
7736 | ||
7737 | for ac_prog in bison | |
7738 | do | |
c6b750e1 | 7739 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7740 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7742 | $as_echo_n "checking for $ac_word... " >&6; } | |
7743 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7744 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7745 | else |
7746 | if test -n "$BISON"; then | |
7747 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7748 | else | |
c6b750e1 DJ |
7749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7750 | for as_dir in $PATH | |
7751 | do | |
7752 | IFS=$as_save_IFS | |
7753 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7754 | for ac_exec_ext in '' $ac_executable_extensions; do |
7755 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7756 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 7757 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7758 | break 2 |
7759 | fi | |
7760 | done | |
81ecdfbb RW |
7761 | done |
7762 | IFS=$as_save_IFS | |
c6b750e1 | 7763 | |
be01d343 PB |
7764 | fi |
7765 | fi | |
c6b750e1 | 7766 | BISON=$ac_cv_prog_BISON |
be01d343 | 7767 | if test -n "$BISON"; then |
81ecdfbb RW |
7768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7769 | $as_echo "$BISON" >&6; } | |
be01d343 | 7770 | else |
81ecdfbb RW |
7771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7772 | $as_echo "no" >&6; } | |
be01d343 PB |
7773 | fi |
7774 | ||
81ecdfbb | 7775 | |
c6b750e1 | 7776 | test -n "$BISON" && break |
be01d343 PB |
7777 | done |
7778 | test -n "$BISON" || BISON="$MISSING bison" | |
7779 | ||
7780 | case " $build_configdirs " in | |
7781 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7782 | esac | |
7783 | ||
7784 | for ac_prog in gm4 gnum4 m4 | |
7785 | do | |
c6b750e1 | 7786 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7787 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7789 | $as_echo_n "checking for $ac_word... " >&6; } | |
7790 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7791 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7792 | else |
7793 | if test -n "$M4"; then | |
7794 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7795 | else | |
c6b750e1 DJ |
7796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7797 | for as_dir in $PATH | |
7798 | do | |
7799 | IFS=$as_save_IFS | |
7800 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7801 | for ac_exec_ext in '' $ac_executable_extensions; do |
7802 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7803 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 7804 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7805 | break 2 |
7806 | fi | |
7807 | done | |
81ecdfbb RW |
7808 | done |
7809 | IFS=$as_save_IFS | |
c6b750e1 | 7810 | |
be01d343 PB |
7811 | fi |
7812 | fi | |
c6b750e1 | 7813 | M4=$ac_cv_prog_M4 |
be01d343 | 7814 | if test -n "$M4"; then |
81ecdfbb RW |
7815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7816 | $as_echo "$M4" >&6; } | |
be01d343 | 7817 | else |
81ecdfbb RW |
7818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7819 | $as_echo "no" >&6; } | |
be01d343 PB |
7820 | fi |
7821 | ||
81ecdfbb | 7822 | |
c6b750e1 | 7823 | test -n "$M4" && break |
be01d343 PB |
7824 | done |
7825 | test -n "$M4" || M4="$MISSING m4" | |
7826 | ||
7827 | case " $build_configdirs " in | |
7828 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7829 | esac | |
7830 | ||
7831 | for ac_prog in flex lex | |
7832 | do | |
c6b750e1 | 7833 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7834 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7836 | $as_echo_n "checking for $ac_word... " >&6; } | |
7837 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7838 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7839 | else |
7840 | if test -n "$LEX"; then | |
7841 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7842 | else | |
c6b750e1 DJ |
7843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7844 | for as_dir in $PATH | |
7845 | do | |
7846 | IFS=$as_save_IFS | |
7847 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7848 | for ac_exec_ext in '' $ac_executable_extensions; do |
7849 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7850 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 7851 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7852 | break 2 |
7853 | fi | |
7854 | done | |
81ecdfbb RW |
7855 | done |
7856 | IFS=$as_save_IFS | |
c6b750e1 | 7857 | |
be01d343 PB |
7858 | fi |
7859 | fi | |
c6b750e1 | 7860 | LEX=$ac_cv_prog_LEX |
be01d343 | 7861 | if test -n "$LEX"; then |
81ecdfbb RW |
7862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7863 | $as_echo "$LEX" >&6; } | |
be01d343 | 7864 | else |
81ecdfbb RW |
7865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7866 | $as_echo "no" >&6; } | |
be01d343 PB |
7867 | fi |
7868 | ||
81ecdfbb | 7869 | |
c6b750e1 | 7870 | test -n "$LEX" && break |
be01d343 PB |
7871 | done |
7872 | test -n "$LEX" || LEX="$MISSING flex" | |
7873 | ||
7874 | case " $build_configdirs " in | |
7875 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7876 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7877 | esac | |
7878 | ||
7879 | for ac_prog in flex | |
7880 | do | |
c6b750e1 | 7881 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7882 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7884 | $as_echo_n "checking for $ac_word... " >&6; } | |
7885 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7886 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7887 | else |
7888 | if test -n "$FLEX"; then | |
7889 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7890 | else | |
c6b750e1 DJ |
7891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7892 | for as_dir in $PATH | |
7893 | do | |
7894 | IFS=$as_save_IFS | |
7895 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7896 | for ac_exec_ext in '' $ac_executable_extensions; do |
7897 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7898 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 7899 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7900 | break 2 |
7901 | fi | |
7902 | done | |
81ecdfbb RW |
7903 | done |
7904 | IFS=$as_save_IFS | |
c6b750e1 | 7905 | |
be01d343 PB |
7906 | fi |
7907 | fi | |
c6b750e1 | 7908 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 7909 | if test -n "$FLEX"; then |
81ecdfbb RW |
7910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7911 | $as_echo "$FLEX" >&6; } | |
be01d343 | 7912 | else |
81ecdfbb RW |
7913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7914 | $as_echo "no" >&6; } | |
be01d343 PB |
7915 | fi |
7916 | ||
81ecdfbb | 7917 | |
c6b750e1 | 7918 | test -n "$FLEX" && break |
be01d343 PB |
7919 | done |
7920 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7921 | ||
7922 | case " $build_configdirs " in | |
7923 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7924 | esac | |
7925 | ||
7926 | for ac_prog in makeinfo | |
7927 | do | |
c6b750e1 | 7928 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7929 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7931 | $as_echo_n "checking for $ac_word... " >&6; } | |
7932 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7933 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7934 | else |
7935 | if test -n "$MAKEINFO"; then | |
7936 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7937 | else | |
c6b750e1 DJ |
7938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7939 | for as_dir in $PATH | |
7940 | do | |
7941 | IFS=$as_save_IFS | |
7942 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7943 | for ac_exec_ext in '' $ac_executable_extensions; do |
7944 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7945 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 7946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7947 | break 2 |
7948 | fi | |
7949 | done | |
81ecdfbb RW |
7950 | done |
7951 | IFS=$as_save_IFS | |
c6b750e1 | 7952 | |
be01d343 PB |
7953 | fi |
7954 | fi | |
c6b750e1 | 7955 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 7956 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
7957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7958 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 7959 | else |
81ecdfbb RW |
7960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7961 | $as_echo "no" >&6; } | |
be01d343 PB |
7962 | fi |
7963 | ||
81ecdfbb | 7964 | |
c6b750e1 | 7965 | test -n "$MAKEINFO" && break |
be01d343 PB |
7966 | done |
7967 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7968 | ||
7969 | case " $build_configdirs " in | |
7970 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7971 | *) | |
7972 | ||
10ad8ef3 | 7973 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
7974 | # higher, else we use the "missing" dummy. |
7975 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 7976 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
7977 | : |
7978 | else | |
7979 | MAKEINFO="$MISSING makeinfo" | |
7980 | fi | |
7981 | ;; | |
7982 | ||
7983 | esac | |
a0da8069 | 7984 | |
be01d343 | 7985 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 7986 | |
be01d343 PB |
7987 | for ac_prog in expect |
7988 | do | |
c6b750e1 | 7989 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7990 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7992 | $as_echo_n "checking for $ac_word... " >&6; } | |
7993 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7994 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7995 | else |
7996 | if test -n "$EXPECT"; then | |
7997 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7998 | else | |
c6b750e1 DJ |
7999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8000 | for as_dir in $PATH | |
8001 | do | |
8002 | IFS=$as_save_IFS | |
8003 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8004 | for ac_exec_ext in '' $ac_executable_extensions; do |
8005 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8006 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 8007 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8008 | break 2 |
8009 | fi | |
8010 | done | |
81ecdfbb RW |
8011 | done |
8012 | IFS=$as_save_IFS | |
c6b750e1 | 8013 | |
be01d343 PB |
8014 | fi |
8015 | fi | |
c6b750e1 | 8016 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 8017 | if test -n "$EXPECT"; then |
81ecdfbb RW |
8018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8019 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 8020 | else |
81ecdfbb RW |
8021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8022 | $as_echo "no" >&6; } | |
be01d343 | 8023 | fi |
a0da8069 | 8024 | |
81ecdfbb | 8025 | |
c6b750e1 | 8026 | test -n "$EXPECT" && break |
be01d343 PB |
8027 | done |
8028 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 8029 | |
be01d343 PB |
8030 | case " $configdirs " in |
8031 | *" expect "*) | |
8032 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8033 | ;; | |
8034 | esac | |
a0da8069 | 8035 | |
be01d343 PB |
8036 | for ac_prog in runtest |
8037 | do | |
c6b750e1 | 8038 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8039 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8041 | $as_echo_n "checking for $ac_word... " >&6; } | |
8042 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
8043 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8044 | else |
8045 | if test -n "$RUNTEST"; then | |
8046 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
8047 | else | |
c6b750e1 DJ |
8048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8049 | for as_dir in $PATH | |
8050 | do | |
8051 | IFS=$as_save_IFS | |
8052 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8053 | for ac_exec_ext in '' $ac_executable_extensions; do |
8054 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8055 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 8056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8057 | break 2 |
8058 | fi | |
8059 | done | |
81ecdfbb RW |
8060 | done |
8061 | IFS=$as_save_IFS | |
c6b750e1 | 8062 | |
be01d343 PB |
8063 | fi |
8064 | fi | |
c6b750e1 | 8065 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 8066 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
8067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8068 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 8069 | else |
81ecdfbb RW |
8070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8071 | $as_echo "no" >&6; } | |
be01d343 | 8072 | fi |
a0da8069 | 8073 | |
81ecdfbb | 8074 | |
c6b750e1 | 8075 | test -n "$RUNTEST" && break |
be01d343 PB |
8076 | done |
8077 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 8078 | |
be01d343 PB |
8079 | case " $configdirs " in |
8080 | *" dejagnu "*) | |
6b89cc21 | 8081 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
8082 | ;; |
8083 | esac | |
a0da8069 NN |
8084 | |
8085 | ||
a0da8069 | 8086 | # Host tools. |
859789af AC |
8087 | ncn_tool_prefix= |
8088 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8089 | ncn_target_tool_prefix= | |
8090 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8091 | ||
9a819804 AO |
8092 | |
8093 | ||
8094 | if test -n "$AR"; then | |
8095 | ac_cv_prog_AR=$AR | |
8096 | elif test -n "$ac_cv_prog_AR"; then | |
8097 | AR=$ac_cv_prog_AR | |
8098 | fi | |
8099 | ||
8100 | if test -n "$ac_cv_prog_AR"; then | |
8101 | for ncn_progname in ar; do | |
8102 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8103 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8105 | $as_echo_n "checking for $ac_word... " >&6; } | |
8106 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8107 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8108 | else |
8109 | if test -n "$AR"; then | |
8110 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8111 | else | |
8112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8113 | for as_dir in $PATH | |
8114 | do | |
8115 | IFS=$as_save_IFS | |
8116 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8117 | for ac_exec_ext in '' $ac_executable_extensions; do |
8118 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8119 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8120 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8121 | break 2 |
8122 | fi | |
8123 | done | |
81ecdfbb RW |
8124 | done |
8125 | IFS=$as_save_IFS | |
9a819804 AO |
8126 | |
8127 | fi | |
8128 | fi | |
8129 | AR=$ac_cv_prog_AR | |
8130 | if test -n "$AR"; then | |
81ecdfbb RW |
8131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8132 | $as_echo "$AR" >&6; } | |
9a819804 | 8133 | else |
81ecdfbb RW |
8134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8135 | $as_echo "no" >&6; } | |
9a819804 AO |
8136 | fi |
8137 | ||
81ecdfbb | 8138 | |
9a819804 AO |
8139 | done |
8140 | fi | |
8141 | ||
8142 | for ncn_progname in ar; do | |
05cbd757 PB |
8143 | if test -n "$ncn_tool_prefix"; then |
8144 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8145 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8147 | $as_echo_n "checking for $ac_word... " >&6; } | |
8148 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8149 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8150 | else |
8151 | if test -n "$AR"; then | |
8152 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8153 | else | |
c6b750e1 DJ |
8154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8155 | for as_dir in $PATH | |
8156 | do | |
8157 | IFS=$as_save_IFS | |
8158 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8159 | for ac_exec_ext in '' $ac_executable_extensions; do |
8160 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8161 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8162 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8163 | break 2 |
8164 | fi | |
8165 | done | |
81ecdfbb RW |
8166 | done |
8167 | IFS=$as_save_IFS | |
c6b750e1 | 8168 | |
859789af AC |
8169 | fi |
8170 | fi | |
c6b750e1 | 8171 | AR=$ac_cv_prog_AR |
859789af | 8172 | if test -n "$AR"; then |
81ecdfbb RW |
8173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8174 | $as_echo "$AR" >&6; } | |
859789af | 8175 | else |
81ecdfbb RW |
8176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8177 | $as_echo "no" >&6; } | |
859789af AC |
8178 | fi |
8179 | ||
81ecdfbb | 8180 | |
05cbd757 PB |
8181 | fi |
8182 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8183 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8184 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8186 | $as_echo_n "checking for $ac_word... " >&6; } | |
8187 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8188 | $as_echo_n "(cached) " >&6 | |
859789af | 8189 | else |
05cbd757 PB |
8190 | if test -n "$AR"; then |
8191 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 8192 | else |
c6b750e1 DJ |
8193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8194 | for as_dir in $PATH | |
8195 | do | |
8196 | IFS=$as_save_IFS | |
8197 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8198 | for ac_exec_ext in '' $ac_executable_extensions; do |
8199 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8200 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8201 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8202 | break 2 |
8203 | fi | |
8204 | done | |
81ecdfbb RW |
8205 | done |
8206 | IFS=$as_save_IFS | |
c6b750e1 | 8207 | |
859789af AC |
8208 | fi |
8209 | fi | |
c6b750e1 | 8210 | AR=$ac_cv_prog_AR |
05cbd757 | 8211 | if test -n "$AR"; then |
81ecdfbb RW |
8212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8213 | $as_echo "$AR" >&6; } | |
859789af | 8214 | else |
81ecdfbb RW |
8215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8216 | $as_echo "no" >&6; } | |
859789af | 8217 | fi |
c6b750e1 | 8218 | |
81ecdfbb | 8219 | |
05cbd757 PB |
8220 | fi |
8221 | test -n "$ac_cv_prog_AR" && break | |
8222 | done | |
8223 | ||
8224 | if test -z "$ac_cv_prog_AR" ; then | |
8225 | set dummy ar | |
8226 | if test $build = $host ; then | |
8227 | AR="$2" | |
859789af | 8228 | else |
05cbd757 | 8229 | AR="${ncn_tool_prefix}$2" |
859789af | 8230 | fi |
859789af AC |
8231 | fi |
8232 | ||
9a819804 AO |
8233 | |
8234 | ||
8235 | if test -n "$AS"; then | |
8236 | ac_cv_prog_AS=$AS | |
8237 | elif test -n "$ac_cv_prog_AS"; then | |
8238 | AS=$ac_cv_prog_AS | |
8239 | fi | |
8240 | ||
8241 | if test -n "$ac_cv_prog_AS"; then | |
8242 | for ncn_progname in as; do | |
8243 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8244 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8246 | $as_echo_n "checking for $ac_word... " >&6; } | |
8247 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8248 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8249 | else |
8250 | if test -n "$AS"; then | |
8251 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8252 | else | |
8253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8254 | for as_dir in $PATH | |
8255 | do | |
8256 | IFS=$as_save_IFS | |
8257 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8258 | for ac_exec_ext in '' $ac_executable_extensions; do |
8259 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8260 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8261 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8262 | break 2 |
8263 | fi | |
8264 | done | |
81ecdfbb RW |
8265 | done |
8266 | IFS=$as_save_IFS | |
9a819804 AO |
8267 | |
8268 | fi | |
8269 | fi | |
8270 | AS=$ac_cv_prog_AS | |
8271 | if test -n "$AS"; then | |
81ecdfbb RW |
8272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8273 | $as_echo "$AS" >&6; } | |
9a819804 | 8274 | else |
81ecdfbb RW |
8275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8276 | $as_echo "no" >&6; } | |
9a819804 AO |
8277 | fi |
8278 | ||
81ecdfbb | 8279 | |
9a819804 AO |
8280 | done |
8281 | fi | |
8282 | ||
8283 | for ncn_progname in as; do | |
05cbd757 PB |
8284 | if test -n "$ncn_tool_prefix"; then |
8285 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8286 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8288 | $as_echo_n "checking for $ac_word... " >&6; } | |
8289 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8290 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8291 | else |
8292 | if test -n "$AS"; then | |
8293 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
8294 | else |
8295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8296 | for as_dir in $PATH | |
8297 | do | |
8298 | IFS=$as_save_IFS | |
8299 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8300 | for ac_exec_ext in '' $ac_executable_extensions; do |
8301 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8302 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8303 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8304 | break 2 |
8305 | fi | |
8306 | done | |
81ecdfbb RW |
8307 | done |
8308 | IFS=$as_save_IFS | |
c6b750e1 | 8309 | |
859789af AC |
8310 | fi |
8311 | fi | |
c6b750e1 | 8312 | AS=$ac_cv_prog_AS |
859789af | 8313 | if test -n "$AS"; then |
81ecdfbb RW |
8314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8315 | $as_echo "$AS" >&6; } | |
859789af | 8316 | else |
81ecdfbb RW |
8317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8318 | $as_echo "no" >&6; } | |
859789af AC |
8319 | fi |
8320 | ||
81ecdfbb | 8321 | |
05cbd757 PB |
8322 | fi |
8323 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8324 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8325 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8327 | $as_echo_n "checking for $ac_word... " >&6; } | |
8328 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8329 | $as_echo_n "(cached) " >&6 | |
859789af | 8330 | else |
05cbd757 PB |
8331 | if test -n "$AS"; then |
8332 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 8333 | else |
c6b750e1 DJ |
8334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8335 | for as_dir in $PATH | |
8336 | do | |
8337 | IFS=$as_save_IFS | |
8338 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8339 | for ac_exec_ext in '' $ac_executable_extensions; do |
8340 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8341 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8342 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8343 | break 2 |
8344 | fi | |
8345 | done | |
81ecdfbb RW |
8346 | done |
8347 | IFS=$as_save_IFS | |
c6b750e1 | 8348 | |
859789af AC |
8349 | fi |
8350 | fi | |
c6b750e1 | 8351 | AS=$ac_cv_prog_AS |
05cbd757 | 8352 | if test -n "$AS"; then |
81ecdfbb RW |
8353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8354 | $as_echo "$AS" >&6; } | |
859789af | 8355 | else |
81ecdfbb RW |
8356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8357 | $as_echo "no" >&6; } | |
859789af | 8358 | fi |
c6b750e1 | 8359 | |
81ecdfbb | 8360 | |
05cbd757 PB |
8361 | fi |
8362 | test -n "$ac_cv_prog_AS" && break | |
8363 | done | |
8364 | ||
8365 | if test -z "$ac_cv_prog_AS" ; then | |
8366 | set dummy as | |
8367 | if test $build = $host ; then | |
8368 | AS="$2" | |
859789af | 8369 | else |
05cbd757 | 8370 | AS="${ncn_tool_prefix}$2" |
859789af | 8371 | fi |
859789af AC |
8372 | fi |
8373 | ||
9a819804 AO |
8374 | |
8375 | ||
8376 | if test -n "$DLLTOOL"; then | |
8377 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8378 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8379 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8380 | fi | |
8381 | ||
8382 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8383 | for ncn_progname in dlltool; do | |
8384 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8385 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8387 | $as_echo_n "checking for $ac_word... " >&6; } | |
8388 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8389 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8390 | else |
8391 | if test -n "$DLLTOOL"; then | |
8392 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8393 | else | |
8394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8395 | for as_dir in $PATH | |
8396 | do | |
8397 | IFS=$as_save_IFS | |
8398 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8399 | for ac_exec_ext in '' $ac_executable_extensions; do |
8400 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8401 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8402 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8403 | break 2 |
8404 | fi | |
8405 | done | |
81ecdfbb RW |
8406 | done |
8407 | IFS=$as_save_IFS | |
9a819804 AO |
8408 | |
8409 | fi | |
8410 | fi | |
8411 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8412 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
8413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8414 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 8415 | else |
81ecdfbb RW |
8416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8417 | $as_echo "no" >&6; } | |
9a819804 AO |
8418 | fi |
8419 | ||
81ecdfbb | 8420 | |
9a819804 AO |
8421 | done |
8422 | fi | |
8423 | ||
8424 | for ncn_progname in dlltool; do | |
05cbd757 PB |
8425 | if test -n "$ncn_tool_prefix"; then |
8426 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8427 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8429 | $as_echo_n "checking for $ac_word... " >&6; } | |
8430 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8431 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8432 | else |
8433 | if test -n "$DLLTOOL"; then | |
8434 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8435 | else | |
c6b750e1 DJ |
8436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8437 | for as_dir in $PATH | |
8438 | do | |
8439 | IFS=$as_save_IFS | |
8440 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8441 | for ac_exec_ext in '' $ac_executable_extensions; do |
8442 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8443 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8445 | break 2 |
8446 | fi | |
8447 | done | |
81ecdfbb RW |
8448 | done |
8449 | IFS=$as_save_IFS | |
c6b750e1 | 8450 | |
859789af AC |
8451 | fi |
8452 | fi | |
c6b750e1 | 8453 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 8454 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8456 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8457 | else |
81ecdfbb RW |
8458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8459 | $as_echo "no" >&6; } | |
859789af AC |
8460 | fi |
8461 | ||
81ecdfbb | 8462 | |
05cbd757 PB |
8463 | fi |
8464 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8465 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8466 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8468 | $as_echo_n "checking for $ac_word... " >&6; } | |
8469 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8470 | $as_echo_n "(cached) " >&6 | |
859789af | 8471 | else |
05cbd757 PB |
8472 | if test -n "$DLLTOOL"; then |
8473 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 8474 | else |
c6b750e1 DJ |
8475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8476 | for as_dir in $PATH | |
8477 | do | |
8478 | IFS=$as_save_IFS | |
8479 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8480 | for ac_exec_ext in '' $ac_executable_extensions; do |
8481 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8482 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8484 | break 2 |
8485 | fi | |
8486 | done | |
81ecdfbb RW |
8487 | done |
8488 | IFS=$as_save_IFS | |
c6b750e1 | 8489 | |
859789af AC |
8490 | fi |
8491 | fi | |
c6b750e1 | 8492 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 8493 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8495 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8496 | else |
81ecdfbb RW |
8497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8498 | $as_echo "no" >&6; } | |
859789af | 8499 | fi |
c6b750e1 | 8500 | |
81ecdfbb | 8501 | |
05cbd757 PB |
8502 | fi |
8503 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8504 | done | |
8505 | ||
8506 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8507 | set dummy dlltool | |
8508 | if test $build = $host ; then | |
8509 | DLLTOOL="$2" | |
859789af | 8510 | else |
05cbd757 | 8511 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 8512 | fi |
859789af AC |
8513 | fi |
8514 | ||
9a819804 AO |
8515 | |
8516 | ||
8517 | if test -n "$LD"; then | |
8518 | ac_cv_prog_LD=$LD | |
8519 | elif test -n "$ac_cv_prog_LD"; then | |
8520 | LD=$ac_cv_prog_LD | |
8521 | fi | |
8522 | ||
8523 | if test -n "$ac_cv_prog_LD"; then | |
8524 | for ncn_progname in ld; do | |
8525 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8526 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8528 | $as_echo_n "checking for $ac_word... " >&6; } | |
8529 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8530 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8531 | else |
8532 | if test -n "$LD"; then | |
8533 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8534 | else | |
8535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8536 | for as_dir in $PATH | |
8537 | do | |
8538 | IFS=$as_save_IFS | |
8539 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8540 | for ac_exec_ext in '' $ac_executable_extensions; do |
8541 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8542 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8544 | break 2 |
8545 | fi | |
8546 | done | |
81ecdfbb RW |
8547 | done |
8548 | IFS=$as_save_IFS | |
9a819804 AO |
8549 | |
8550 | fi | |
8551 | fi | |
8552 | LD=$ac_cv_prog_LD | |
8553 | if test -n "$LD"; then | |
81ecdfbb RW |
8554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8555 | $as_echo "$LD" >&6; } | |
9a819804 | 8556 | else |
81ecdfbb RW |
8557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8558 | $as_echo "no" >&6; } | |
9a819804 AO |
8559 | fi |
8560 | ||
81ecdfbb | 8561 | |
9a819804 AO |
8562 | done |
8563 | fi | |
8564 | ||
8565 | for ncn_progname in ld; do | |
05cbd757 PB |
8566 | if test -n "$ncn_tool_prefix"; then |
8567 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8568 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8570 | $as_echo_n "checking for $ac_word... " >&6; } | |
8571 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8572 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8573 | else |
8574 | if test -n "$LD"; then | |
8575 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8576 | else | |
c6b750e1 DJ |
8577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8578 | for as_dir in $PATH | |
8579 | do | |
8580 | IFS=$as_save_IFS | |
8581 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8582 | for ac_exec_ext in '' $ac_executable_extensions; do |
8583 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8584 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8585 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8586 | break 2 |
8587 | fi | |
8588 | done | |
81ecdfbb RW |
8589 | done |
8590 | IFS=$as_save_IFS | |
c6b750e1 | 8591 | |
859789af AC |
8592 | fi |
8593 | fi | |
c6b750e1 | 8594 | LD=$ac_cv_prog_LD |
859789af | 8595 | if test -n "$LD"; then |
81ecdfbb RW |
8596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8597 | $as_echo "$LD" >&6; } | |
859789af | 8598 | else |
81ecdfbb RW |
8599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8600 | $as_echo "no" >&6; } | |
859789af AC |
8601 | fi |
8602 | ||
81ecdfbb | 8603 | |
05cbd757 PB |
8604 | fi |
8605 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8606 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8607 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8609 | $as_echo_n "checking for $ac_word... " >&6; } | |
8610 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8611 | $as_echo_n "(cached) " >&6 | |
859789af | 8612 | else |
05cbd757 PB |
8613 | if test -n "$LD"; then |
8614 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 8615 | else |
c6b750e1 DJ |
8616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8617 | for as_dir in $PATH | |
8618 | do | |
8619 | IFS=$as_save_IFS | |
8620 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8621 | for ac_exec_ext in '' $ac_executable_extensions; do |
8622 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8623 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8624 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8625 | break 2 |
8626 | fi | |
8627 | done | |
81ecdfbb RW |
8628 | done |
8629 | IFS=$as_save_IFS | |
c6b750e1 | 8630 | |
859789af AC |
8631 | fi |
8632 | fi | |
c6b750e1 | 8633 | LD=$ac_cv_prog_LD |
05cbd757 | 8634 | if test -n "$LD"; then |
81ecdfbb RW |
8635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8636 | $as_echo "$LD" >&6; } | |
859789af | 8637 | else |
81ecdfbb RW |
8638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8639 | $as_echo "no" >&6; } | |
859789af | 8640 | fi |
c6b750e1 | 8641 | |
81ecdfbb | 8642 | |
05cbd757 PB |
8643 | fi |
8644 | test -n "$ac_cv_prog_LD" && break | |
8645 | done | |
8646 | ||
8647 | if test -z "$ac_cv_prog_LD" ; then | |
8648 | set dummy ld | |
8649 | if test $build = $host ; then | |
8650 | LD="$2" | |
859789af | 8651 | else |
05cbd757 | 8652 | LD="${ncn_tool_prefix}$2" |
859789af | 8653 | fi |
859789af AC |
8654 | fi |
8655 | ||
9a819804 AO |
8656 | |
8657 | ||
8658 | if test -n "$LIPO"; then | |
8659 | ac_cv_prog_LIPO=$LIPO | |
8660 | elif test -n "$ac_cv_prog_LIPO"; then | |
8661 | LIPO=$ac_cv_prog_LIPO | |
8662 | fi | |
8663 | ||
8664 | if test -n "$ac_cv_prog_LIPO"; then | |
8665 | for ncn_progname in lipo; do | |
8666 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8667 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8669 | $as_echo_n "checking for $ac_word... " >&6; } | |
8670 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8671 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8672 | else |
8673 | if test -n "$LIPO"; then | |
8674 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8675 | else | |
8676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8677 | for as_dir in $PATH | |
8678 | do | |
8679 | IFS=$as_save_IFS | |
8680 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8681 | for ac_exec_ext in '' $ac_executable_extensions; do |
8682 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8683 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8685 | break 2 |
8686 | fi | |
8687 | done | |
81ecdfbb RW |
8688 | done |
8689 | IFS=$as_save_IFS | |
9a819804 AO |
8690 | |
8691 | fi | |
8692 | fi | |
8693 | LIPO=$ac_cv_prog_LIPO | |
8694 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8696 | $as_echo "$LIPO" >&6; } | |
9a819804 | 8697 | else |
81ecdfbb RW |
8698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8699 | $as_echo "no" >&6; } | |
9a819804 AO |
8700 | fi |
8701 | ||
81ecdfbb | 8702 | |
9a819804 AO |
8703 | done |
8704 | fi | |
8705 | ||
8706 | for ncn_progname in lipo; do | |
be01d343 PB |
8707 | if test -n "$ncn_tool_prefix"; then |
8708 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8709 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8711 | $as_echo_n "checking for $ac_word... " >&6; } | |
8712 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8713 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8714 | else |
8715 | if test -n "$LIPO"; then | |
8716 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8717 | else | |
c6b750e1 DJ |
8718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8719 | for as_dir in $PATH | |
8720 | do | |
8721 | IFS=$as_save_IFS | |
8722 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8723 | for ac_exec_ext in '' $ac_executable_extensions; do |
8724 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8725 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8726 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8727 | break 2 |
8728 | fi | |
8729 | done | |
81ecdfbb RW |
8730 | done |
8731 | IFS=$as_save_IFS | |
c6b750e1 | 8732 | |
be01d343 PB |
8733 | fi |
8734 | fi | |
c6b750e1 | 8735 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8736 | if test -n "$LIPO"; then |
81ecdfbb RW |
8737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8738 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8739 | else |
81ecdfbb RW |
8740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8741 | $as_echo "no" >&6; } | |
be01d343 PB |
8742 | fi |
8743 | ||
81ecdfbb | 8744 | |
be01d343 PB |
8745 | fi |
8746 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8747 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8748 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8750 | $as_echo_n "checking for $ac_word... " >&6; } | |
8751 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8752 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8753 | else |
8754 | if test -n "$LIPO"; then | |
8755 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8756 | else | |
c6b750e1 DJ |
8757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8758 | for as_dir in $PATH | |
8759 | do | |
8760 | IFS=$as_save_IFS | |
8761 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8762 | for ac_exec_ext in '' $ac_executable_extensions; do |
8763 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8764 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8765 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8766 | break 2 |
8767 | fi | |
8768 | done | |
81ecdfbb RW |
8769 | done |
8770 | IFS=$as_save_IFS | |
c6b750e1 | 8771 | |
be01d343 PB |
8772 | fi |
8773 | fi | |
c6b750e1 | 8774 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8775 | if test -n "$LIPO"; then |
81ecdfbb RW |
8776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8777 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8778 | else |
81ecdfbb RW |
8779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8780 | $as_echo "no" >&6; } | |
be01d343 | 8781 | fi |
c6b750e1 | 8782 | |
81ecdfbb | 8783 | |
be01d343 PB |
8784 | fi |
8785 | test -n "$ac_cv_prog_LIPO" && break | |
8786 | done | |
8787 | ||
8788 | if test -z "$ac_cv_prog_LIPO" ; then | |
8789 | set dummy lipo | |
8790 | if test $build = $host ; then | |
8791 | LIPO="$2" | |
8792 | else | |
8793 | LIPO="${ncn_tool_prefix}$2" | |
8794 | fi | |
8795 | fi | |
8796 | ||
9a819804 AO |
8797 | |
8798 | ||
8799 | if test -n "$NM"; then | |
8800 | ac_cv_prog_NM=$NM | |
8801 | elif test -n "$ac_cv_prog_NM"; then | |
8802 | NM=$ac_cv_prog_NM | |
8803 | fi | |
8804 | ||
8805 | if test -n "$ac_cv_prog_NM"; then | |
8806 | for ncn_progname in nm; do | |
8807 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8808 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8810 | $as_echo_n "checking for $ac_word... " >&6; } | |
8811 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8812 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8813 | else |
8814 | if test -n "$NM"; then | |
8815 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8816 | else | |
c6b750e1 DJ |
8817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8818 | for as_dir in $PATH | |
8819 | do | |
8820 | IFS=$as_save_IFS | |
8821 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8822 | for ac_exec_ext in '' $ac_executable_extensions; do |
8823 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8824 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8826 | break 2 |
8827 | fi | |
8828 | done | |
81ecdfbb RW |
8829 | done |
8830 | IFS=$as_save_IFS | |
c6b750e1 | 8831 | |
859789af AC |
8832 | fi |
8833 | fi | |
c6b750e1 | 8834 | NM=$ac_cv_prog_NM |
859789af | 8835 | if test -n "$NM"; then |
81ecdfbb RW |
8836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8837 | $as_echo "$NM" >&6; } | |
859789af | 8838 | else |
81ecdfbb RW |
8839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8840 | $as_echo "no" >&6; } | |
859789af AC |
8841 | fi |
8842 | ||
81ecdfbb | 8843 | |
9a819804 AO |
8844 | done |
8845 | fi | |
8846 | ||
8847 | for ncn_progname in nm; do | |
8848 | if test -n "$ncn_tool_prefix"; then | |
8849 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8850 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8852 | $as_echo_n "checking for $ac_word... " >&6; } | |
8853 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8854 | $as_echo_n "(cached) " >&6 | |
859789af | 8855 | else |
05cbd757 PB |
8856 | if test -n "$NM"; then |
8857 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 8858 | else |
c6b750e1 DJ |
8859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8860 | for as_dir in $PATH | |
8861 | do | |
8862 | IFS=$as_save_IFS | |
8863 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8864 | for ac_exec_ext in '' $ac_executable_extensions; do |
8865 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8866 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8867 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8868 | break 2 |
8869 | fi | |
8870 | done | |
81ecdfbb RW |
8871 | done |
8872 | IFS=$as_save_IFS | |
c6b750e1 | 8873 | |
859789af AC |
8874 | fi |
8875 | fi | |
c6b750e1 | 8876 | NM=$ac_cv_prog_NM |
05cbd757 | 8877 | if test -n "$NM"; then |
81ecdfbb RW |
8878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8879 | $as_echo "$NM" >&6; } | |
859789af | 8880 | else |
81ecdfbb RW |
8881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8882 | $as_echo "no" >&6; } | |
859789af | 8883 | fi |
c6b750e1 | 8884 | |
81ecdfbb | 8885 | |
05cbd757 | 8886 | fi |
9a819804 AO |
8887 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8888 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8889 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8891 | $as_echo_n "checking for $ac_word... " >&6; } | |
8892 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8893 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8894 | else |
8895 | if test -n "$NM"; then | |
8896 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8897 | else | |
8898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8899 | for as_dir in $PATH | |
8900 | do | |
8901 | IFS=$as_save_IFS | |
8902 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8903 | for ac_exec_ext in '' $ac_executable_extensions; do |
8904 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8905 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8906 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8907 | break 2 |
8908 | fi | |
8909 | done | |
81ecdfbb RW |
8910 | done |
8911 | IFS=$as_save_IFS | |
9a819804 AO |
8912 | |
8913 | fi | |
8914 | fi | |
8915 | NM=$ac_cv_prog_NM | |
8916 | if test -n "$NM"; then | |
81ecdfbb RW |
8917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8918 | $as_echo "$NM" >&6; } | |
9a819804 | 8919 | else |
81ecdfbb RW |
8920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8921 | $as_echo "no" >&6; } | |
9a819804 AO |
8922 | fi |
8923 | ||
81ecdfbb | 8924 | |
9a819804 AO |
8925 | fi |
8926 | test -n "$ac_cv_prog_NM" && break | |
8927 | done | |
8928 | ||
8929 | if test -z "$ac_cv_prog_NM" ; then | |
8930 | set dummy nm | |
8931 | if test $build = $host ; then | |
8932 | NM="$2" | |
8933 | else | |
8934 | NM="${ncn_tool_prefix}$2" | |
8935 | fi | |
8936 | fi | |
8937 | ||
8938 | ||
8939 | ||
8940 | if test -n "$RANLIB"; then | |
8941 | ac_cv_prog_RANLIB=$RANLIB | |
8942 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8943 | RANLIB=$ac_cv_prog_RANLIB | |
8944 | fi | |
8945 | ||
8946 | if test -n "$ac_cv_prog_RANLIB"; then | |
8947 | for ncn_progname in ranlib; do | |
8948 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8949 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8951 | $as_echo_n "checking for $ac_word... " >&6; } | |
8952 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8953 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8954 | else |
8955 | if test -n "$RANLIB"; then | |
8956 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8957 | else | |
8958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8959 | for as_dir in $PATH | |
8960 | do | |
8961 | IFS=$as_save_IFS | |
8962 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8963 | for ac_exec_ext in '' $ac_executable_extensions; do |
8964 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8965 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 8966 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8967 | break 2 |
8968 | fi | |
8969 | done | |
81ecdfbb RW |
8970 | done |
8971 | IFS=$as_save_IFS | |
9a819804 AO |
8972 | |
8973 | fi | |
8974 | fi | |
8975 | RANLIB=$ac_cv_prog_RANLIB | |
8976 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
8977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8978 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 8979 | else |
81ecdfbb RW |
8980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8981 | $as_echo "no" >&6; } | |
9a819804 AO |
8982 | fi |
8983 | ||
81ecdfbb | 8984 | |
9a819804 AO |
8985 | done |
8986 | fi | |
859789af | 8987 | |
9a819804 | 8988 | for ncn_progname in ranlib; do |
05cbd757 PB |
8989 | if test -n "$ncn_tool_prefix"; then |
8990 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8991 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8993 | $as_echo_n "checking for $ac_word... " >&6; } | |
8994 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8995 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8996 | else |
8997 | if test -n "$RANLIB"; then | |
8998 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8999 | else | |
c6b750e1 DJ |
9000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9001 | for as_dir in $PATH | |
9002 | do | |
9003 | IFS=$as_save_IFS | |
9004 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9005 | for ac_exec_ext in '' $ac_executable_extensions; do |
9006 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9007 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9008 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9009 | break 2 |
9010 | fi | |
9011 | done | |
81ecdfbb RW |
9012 | done |
9013 | IFS=$as_save_IFS | |
c6b750e1 | 9014 | |
859789af AC |
9015 | fi |
9016 | fi | |
c6b750e1 | 9017 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 9018 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9020 | $as_echo "$RANLIB" >&6; } | |
859789af | 9021 | else |
81ecdfbb RW |
9022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9023 | $as_echo "no" >&6; } | |
859789af AC |
9024 | fi |
9025 | ||
81ecdfbb | 9026 | |
05cbd757 PB |
9027 | fi |
9028 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
9029 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9030 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9032 | $as_echo_n "checking for $ac_word... " >&6; } | |
9033 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
9034 | $as_echo_n "(cached) " >&6 | |
859789af | 9035 | else |
05cbd757 PB |
9036 | if test -n "$RANLIB"; then |
9037 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 9038 | else |
c6b750e1 DJ |
9039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9040 | for as_dir in $PATH | |
9041 | do | |
9042 | IFS=$as_save_IFS | |
9043 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9044 | for ac_exec_ext in '' $ac_executable_extensions; do |
9045 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9046 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 9047 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9048 | break 2 |
9049 | fi | |
9050 | done | |
81ecdfbb RW |
9051 | done |
9052 | IFS=$as_save_IFS | |
c6b750e1 | 9053 | |
859789af AC |
9054 | fi |
9055 | fi | |
c6b750e1 | 9056 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 9057 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9059 | $as_echo "$RANLIB" >&6; } | |
859789af | 9060 | else |
81ecdfbb RW |
9061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9062 | $as_echo "no" >&6; } | |
859789af | 9063 | fi |
c6b750e1 | 9064 | |
81ecdfbb | 9065 | |
859789af | 9066 | fi |
05cbd757 PB |
9067 | test -n "$ac_cv_prog_RANLIB" && break |
9068 | done | |
9069 | ||
9070 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 9071 | RANLIB="true" |
859789af AC |
9072 | fi |
9073 | ||
9a819804 AO |
9074 | |
9075 | ||
9076 | if test -n "$STRIP"; then | |
9077 | ac_cv_prog_STRIP=$STRIP | |
9078 | elif test -n "$ac_cv_prog_STRIP"; then | |
9079 | STRIP=$ac_cv_prog_STRIP | |
9080 | fi | |
9081 | ||
9082 | if test -n "$ac_cv_prog_STRIP"; then | |
9083 | for ncn_progname in strip; do | |
9084 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9085 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9087 | $as_echo_n "checking for $ac_word... " >&6; } | |
9088 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9089 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9090 | else |
9091 | if test -n "$STRIP"; then | |
9092 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9093 | else | |
9094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9095 | for as_dir in $PATH | |
9096 | do | |
9097 | IFS=$as_save_IFS | |
9098 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9099 | for ac_exec_ext in '' $ac_executable_extensions; do |
9100 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9101 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9102 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9103 | break 2 |
9104 | fi | |
9105 | done | |
81ecdfbb RW |
9106 | done |
9107 | IFS=$as_save_IFS | |
9a819804 AO |
9108 | |
9109 | fi | |
9110 | fi | |
9111 | STRIP=$ac_cv_prog_STRIP | |
9112 | if test -n "$STRIP"; then | |
81ecdfbb RW |
9113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9114 | $as_echo "$STRIP" >&6; } | |
9a819804 | 9115 | else |
81ecdfbb RW |
9116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9117 | $as_echo "no" >&6; } | |
9a819804 AO |
9118 | fi |
9119 | ||
81ecdfbb | 9120 | |
9a819804 AO |
9121 | done |
9122 | fi | |
9123 | ||
9124 | for ncn_progname in strip; do | |
be01d343 PB |
9125 | if test -n "$ncn_tool_prefix"; then |
9126 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9127 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9129 | $as_echo_n "checking for $ac_word... " >&6; } | |
9130 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9131 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
9132 | else |
9133 | if test -n "$STRIP"; then | |
9134 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9135 | else | |
c6b750e1 DJ |
9136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9137 | for as_dir in $PATH | |
9138 | do | |
9139 | IFS=$as_save_IFS | |
9140 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9141 | for ac_exec_ext in '' $ac_executable_extensions; do |
9142 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9143 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9145 | break 2 |
9146 | fi | |
9147 | done | |
81ecdfbb RW |
9148 | done |
9149 | IFS=$as_save_IFS | |
c6b750e1 | 9150 | |
be01d343 PB |
9151 | fi |
9152 | fi | |
c6b750e1 | 9153 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9154 | if test -n "$STRIP"; then |
81ecdfbb RW |
9155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9156 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9157 | else |
81ecdfbb RW |
9158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9159 | $as_echo "no" >&6; } | |
be01d343 PB |
9160 | fi |
9161 | ||
81ecdfbb | 9162 | |
be01d343 PB |
9163 | fi |
9164 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9165 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9166 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9168 | $as_echo_n "checking for $ac_word... " >&6; } | |
9169 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9170 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
9171 | else |
9172 | if test -n "$STRIP"; then | |
9173 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9174 | else | |
c6b750e1 DJ |
9175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9176 | for as_dir in $PATH | |
9177 | do | |
9178 | IFS=$as_save_IFS | |
9179 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9180 | for ac_exec_ext in '' $ac_executable_extensions; do |
9181 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9182 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9183 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9184 | break 2 |
9185 | fi | |
9186 | done | |
81ecdfbb RW |
9187 | done |
9188 | IFS=$as_save_IFS | |
c6b750e1 | 9189 | |
be01d343 PB |
9190 | fi |
9191 | fi | |
c6b750e1 | 9192 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9193 | if test -n "$STRIP"; then |
81ecdfbb RW |
9194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9195 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9196 | else |
81ecdfbb RW |
9197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9198 | $as_echo "no" >&6; } | |
be01d343 | 9199 | fi |
c6b750e1 | 9200 | |
81ecdfbb | 9201 | |
be01d343 PB |
9202 | fi |
9203 | test -n "$ac_cv_prog_STRIP" && break | |
9204 | done | |
9205 | ||
9206 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 9207 | STRIP="true" |
be01d343 PB |
9208 | fi |
9209 | ||
9a819804 AO |
9210 | |
9211 | ||
9212 | if test -n "$WINDRES"; then | |
9213 | ac_cv_prog_WINDRES=$WINDRES | |
9214 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9215 | WINDRES=$ac_cv_prog_WINDRES | |
9216 | fi | |
9217 | ||
9218 | if test -n "$ac_cv_prog_WINDRES"; then | |
9219 | for ncn_progname in windres; do | |
9220 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9221 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9223 | $as_echo_n "checking for $ac_word... " >&6; } | |
9224 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9225 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9226 | else |
9227 | if test -n "$WINDRES"; then | |
9228 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9229 | else | |
9230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9231 | for as_dir in $PATH | |
9232 | do | |
9233 | IFS=$as_save_IFS | |
9234 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9235 | for ac_exec_ext in '' $ac_executable_extensions; do |
9236 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9237 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9238 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9239 | break 2 |
9240 | fi | |
9241 | done | |
81ecdfbb RW |
9242 | done |
9243 | IFS=$as_save_IFS | |
9a819804 AO |
9244 | |
9245 | fi | |
9246 | fi | |
9247 | WINDRES=$ac_cv_prog_WINDRES | |
9248 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
9249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9250 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 9251 | else |
81ecdfbb RW |
9252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9253 | $as_echo "no" >&6; } | |
9a819804 AO |
9254 | fi |
9255 | ||
81ecdfbb | 9256 | |
9a819804 AO |
9257 | done |
9258 | fi | |
9259 | ||
9260 | for ncn_progname in windres; do | |
05cbd757 PB |
9261 | if test -n "$ncn_tool_prefix"; then |
9262 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9263 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9265 | $as_echo_n "checking for $ac_word... " >&6; } | |
9266 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9267 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9268 | else |
9269 | if test -n "$WINDRES"; then | |
9270 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9271 | else | |
c6b750e1 DJ |
9272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9273 | for as_dir in $PATH | |
9274 | do | |
9275 | IFS=$as_save_IFS | |
9276 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9277 | for ac_exec_ext in '' $ac_executable_extensions; do |
9278 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9279 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9280 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9281 | break 2 |
9282 | fi | |
9283 | done | |
81ecdfbb RW |
9284 | done |
9285 | IFS=$as_save_IFS | |
c6b750e1 | 9286 | |
859789af AC |
9287 | fi |
9288 | fi | |
c6b750e1 | 9289 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 9290 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9292 | $as_echo "$WINDRES" >&6; } | |
859789af | 9293 | else |
81ecdfbb RW |
9294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9295 | $as_echo "no" >&6; } | |
859789af AC |
9296 | fi |
9297 | ||
81ecdfbb | 9298 | |
05cbd757 PB |
9299 | fi |
9300 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9301 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9302 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9304 | $as_echo_n "checking for $ac_word... " >&6; } | |
9305 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9306 | $as_echo_n "(cached) " >&6 | |
859789af | 9307 | else |
05cbd757 PB |
9308 | if test -n "$WINDRES"; then |
9309 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 9310 | else |
c6b750e1 DJ |
9311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9312 | for as_dir in $PATH | |
9313 | do | |
9314 | IFS=$as_save_IFS | |
9315 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9316 | for ac_exec_ext in '' $ac_executable_extensions; do |
9317 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9318 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9319 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9320 | break 2 |
9321 | fi | |
9322 | done | |
81ecdfbb RW |
9323 | done |
9324 | IFS=$as_save_IFS | |
c6b750e1 | 9325 | |
859789af AC |
9326 | fi |
9327 | fi | |
c6b750e1 | 9328 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 9329 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9331 | $as_echo "$WINDRES" >&6; } | |
859789af | 9332 | else |
81ecdfbb RW |
9333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9334 | $as_echo "no" >&6; } | |
859789af | 9335 | fi |
c6b750e1 | 9336 | |
81ecdfbb | 9337 | |
05cbd757 PB |
9338 | fi |
9339 | test -n "$ac_cv_prog_WINDRES" && break | |
9340 | done | |
9341 | ||
9342 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9343 | set dummy windres | |
9344 | if test $build = $host ; then | |
9345 | WINDRES="$2" | |
859789af | 9346 | else |
05cbd757 | 9347 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 9348 | fi |
859789af AC |
9349 | fi |
9350 | ||
9a819804 AO |
9351 | |
9352 | ||
0c24b341 NC |
9353 | if test -n "$WINDMC"; then |
9354 | ac_cv_prog_WINDMC=$WINDMC | |
9355 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9356 | WINDMC=$ac_cv_prog_WINDMC | |
9357 | fi | |
9358 | ||
9359 | if test -n "$ac_cv_prog_WINDMC"; then | |
9360 | for ncn_progname in windmc; do | |
9361 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9362 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9364 | $as_echo_n "checking for $ac_word... " >&6; } | |
9365 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9366 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9367 | else |
9368 | if test -n "$WINDMC"; then | |
9369 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9370 | else | |
9371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9372 | for as_dir in $PATH | |
9373 | do | |
9374 | IFS=$as_save_IFS | |
9375 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9376 | for ac_exec_ext in '' $ac_executable_extensions; do |
9377 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9378 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9379 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9380 | break 2 |
9381 | fi | |
9382 | done | |
81ecdfbb RW |
9383 | done |
9384 | IFS=$as_save_IFS | |
0c24b341 NC |
9385 | |
9386 | fi | |
9387 | fi | |
9388 | WINDMC=$ac_cv_prog_WINDMC | |
9389 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9391 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9392 | else |
81ecdfbb RW |
9393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9394 | $as_echo "no" >&6; } | |
0c24b341 NC |
9395 | fi |
9396 | ||
81ecdfbb | 9397 | |
0c24b341 NC |
9398 | done |
9399 | fi | |
9400 | ||
9401 | for ncn_progname in windmc; do | |
9402 | if test -n "$ncn_tool_prefix"; then | |
9403 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9404 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9406 | $as_echo_n "checking for $ac_word... " >&6; } | |
9407 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9408 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9409 | else |
9410 | if test -n "$WINDMC"; then | |
9411 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9412 | else | |
9413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9414 | for as_dir in $PATH | |
9415 | do | |
9416 | IFS=$as_save_IFS | |
9417 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9418 | for ac_exec_ext in '' $ac_executable_extensions; do |
9419 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9420 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9421 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9422 | break 2 |
9423 | fi | |
9424 | done | |
81ecdfbb RW |
9425 | done |
9426 | IFS=$as_save_IFS | |
0c24b341 NC |
9427 | |
9428 | fi | |
9429 | fi | |
9430 | WINDMC=$ac_cv_prog_WINDMC | |
9431 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9433 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9434 | else |
81ecdfbb RW |
9435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9436 | $as_echo "no" >&6; } | |
0c24b341 NC |
9437 | fi |
9438 | ||
81ecdfbb | 9439 | |
0c24b341 NC |
9440 | fi |
9441 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9442 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9443 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9445 | $as_echo_n "checking for $ac_word... " >&6; } | |
9446 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9447 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9448 | else |
9449 | if test -n "$WINDMC"; then | |
9450 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9451 | else | |
9452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9453 | for as_dir in $PATH | |
9454 | do | |
9455 | IFS=$as_save_IFS | |
9456 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9457 | for ac_exec_ext in '' $ac_executable_extensions; do |
9458 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9459 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9460 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9461 | break 2 |
9462 | fi | |
9463 | done | |
81ecdfbb RW |
9464 | done |
9465 | IFS=$as_save_IFS | |
0c24b341 NC |
9466 | |
9467 | fi | |
9468 | fi | |
9469 | WINDMC=$ac_cv_prog_WINDMC | |
9470 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9472 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9473 | else |
81ecdfbb RW |
9474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9475 | $as_echo "no" >&6; } | |
0c24b341 NC |
9476 | fi |
9477 | ||
81ecdfbb | 9478 | |
0c24b341 NC |
9479 | fi |
9480 | test -n "$ac_cv_prog_WINDMC" && break | |
9481 | done | |
9482 | ||
9483 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9484 | set dummy windmc | |
9485 | if test $build = $host ; then | |
9486 | WINDMC="$2" | |
9487 | else | |
9488 | WINDMC="${ncn_tool_prefix}$2" | |
9489 | fi | |
9490 | fi | |
9491 | ||
9492 | ||
9493 | ||
9a819804 AO |
9494 | if test -n "$OBJCOPY"; then |
9495 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9496 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9497 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9498 | fi | |
9499 | ||
9500 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9501 | for ncn_progname in objcopy; do | |
9502 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9503 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9505 | $as_echo_n "checking for $ac_word... " >&6; } | |
9506 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9507 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9508 | else |
9509 | if test -n "$OBJCOPY"; then | |
9510 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9511 | else | |
9512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9513 | for as_dir in $PATH | |
9514 | do | |
9515 | IFS=$as_save_IFS | |
9516 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9517 | for ac_exec_ext in '' $ac_executable_extensions; do |
9518 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9519 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9520 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9521 | break 2 |
9522 | fi | |
9523 | done | |
81ecdfbb RW |
9524 | done |
9525 | IFS=$as_save_IFS | |
9a819804 AO |
9526 | |
9527 | fi | |
9528 | fi | |
9529 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9530 | if test -n "$OBJCOPY"; then | |
81ecdfbb RW |
9531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9532 | $as_echo "$OBJCOPY" >&6; } | |
9a819804 | 9533 | else |
81ecdfbb RW |
9534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9535 | $as_echo "no" >&6; } | |
9a819804 AO |
9536 | fi |
9537 | ||
81ecdfbb | 9538 | |
9a819804 AO |
9539 | done |
9540 | fi | |
9541 | ||
9542 | for ncn_progname in objcopy; do | |
05cbd757 PB |
9543 | if test -n "$ncn_tool_prefix"; then |
9544 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9545 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9547 | $as_echo_n "checking for $ac_word... " >&6; } | |
9548 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9549 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9550 | else |
9551 | if test -n "$OBJCOPY"; then | |
9552 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9553 | else | |
c6b750e1 DJ |
9554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9555 | for as_dir in $PATH | |
9556 | do | |
9557 | IFS=$as_save_IFS | |
9558 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9559 | for ac_exec_ext in '' $ac_executable_extensions; do |
9560 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9561 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9563 | break 2 |
9564 | fi | |
9565 | done | |
81ecdfbb RW |
9566 | done |
9567 | IFS=$as_save_IFS | |
c6b750e1 | 9568 | |
859789af AC |
9569 | fi |
9570 | fi | |
c6b750e1 | 9571 | OBJCOPY=$ac_cv_prog_OBJCOPY |
859789af | 9572 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9574 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9575 | else |
81ecdfbb RW |
9576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9577 | $as_echo "no" >&6; } | |
859789af AC |
9578 | fi |
9579 | ||
81ecdfbb | 9580 | |
05cbd757 PB |
9581 | fi |
9582 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9583 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9584 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9586 | $as_echo_n "checking for $ac_word... " >&6; } | |
9587 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9588 | $as_echo_n "(cached) " >&6 | |
859789af | 9589 | else |
05cbd757 PB |
9590 | if test -n "$OBJCOPY"; then |
9591 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
859789af | 9592 | else |
c6b750e1 DJ |
9593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9594 | for as_dir in $PATH | |
9595 | do | |
9596 | IFS=$as_save_IFS | |
9597 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9598 | for ac_exec_ext in '' $ac_executable_extensions; do |
9599 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9600 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9601 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9602 | break 2 |
9603 | fi | |
9604 | done | |
81ecdfbb RW |
9605 | done |
9606 | IFS=$as_save_IFS | |
c6b750e1 | 9607 | |
859789af AC |
9608 | fi |
9609 | fi | |
c6b750e1 | 9610 | OBJCOPY=$ac_cv_prog_OBJCOPY |
05cbd757 | 9611 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9613 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9614 | else |
81ecdfbb RW |
9615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9616 | $as_echo "no" >&6; } | |
859789af | 9617 | fi |
c6b750e1 | 9618 | |
81ecdfbb | 9619 | |
05cbd757 PB |
9620 | fi |
9621 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9622 | done | |
9623 | ||
9624 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9625 | set dummy objcopy | |
9626 | if test $build = $host ; then | |
9627 | OBJCOPY="$2" | |
859789af | 9628 | else |
05cbd757 | 9629 | OBJCOPY="${ncn_tool_prefix}$2" |
859789af | 9630 | fi |
859789af AC |
9631 | fi |
9632 | ||
9a819804 AO |
9633 | |
9634 | ||
9635 | if test -n "$OBJDUMP"; then | |
9636 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9637 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9638 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9639 | fi | |
9640 | ||
9641 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9642 | for ncn_progname in objdump; do | |
9643 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9644 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9646 | $as_echo_n "checking for $ac_word... " >&6; } | |
9647 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9648 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9649 | else |
9650 | if test -n "$OBJDUMP"; then | |
9651 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9652 | else | |
9653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9654 | for as_dir in $PATH | |
9655 | do | |
9656 | IFS=$as_save_IFS | |
9657 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9658 | for ac_exec_ext in '' $ac_executable_extensions; do |
9659 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9660 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9661 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9662 | break 2 |
9663 | fi | |
9664 | done | |
81ecdfbb RW |
9665 | done |
9666 | IFS=$as_save_IFS | |
9a819804 AO |
9667 | |
9668 | fi | |
9669 | fi | |
9670 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9671 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
9672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9673 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 9674 | else |
81ecdfbb RW |
9675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9676 | $as_echo "no" >&6; } | |
9a819804 AO |
9677 | fi |
9678 | ||
81ecdfbb | 9679 | |
9a819804 AO |
9680 | done |
9681 | fi | |
9682 | ||
9683 | for ncn_progname in objdump; do | |
05cbd757 PB |
9684 | if test -n "$ncn_tool_prefix"; then |
9685 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9686 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9688 | $as_echo_n "checking for $ac_word... " >&6; } | |
9689 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9690 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9691 | else |
9692 | if test -n "$OBJDUMP"; then | |
9693 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9694 | else | |
c6b750e1 DJ |
9695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9696 | for as_dir in $PATH | |
9697 | do | |
9698 | IFS=$as_save_IFS | |
9699 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9700 | for ac_exec_ext in '' $ac_executable_extensions; do |
9701 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9702 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9704 | break 2 |
9705 | fi | |
9706 | done | |
81ecdfbb RW |
9707 | done |
9708 | IFS=$as_save_IFS | |
c6b750e1 | 9709 | |
859789af AC |
9710 | fi |
9711 | fi | |
c6b750e1 | 9712 | OBJDUMP=$ac_cv_prog_OBJDUMP |
859789af | 9713 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9715 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9716 | else |
81ecdfbb RW |
9717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9718 | $as_echo "no" >&6; } | |
859789af AC |
9719 | fi |
9720 | ||
81ecdfbb | 9721 | |
05cbd757 PB |
9722 | fi |
9723 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9724 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9725 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9727 | $as_echo_n "checking for $ac_word... " >&6; } | |
9728 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9729 | $as_echo_n "(cached) " >&6 | |
859789af | 9730 | else |
05cbd757 PB |
9731 | if test -n "$OBJDUMP"; then |
9732 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 9733 | else |
c6b750e1 DJ |
9734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9735 | for as_dir in $PATH | |
9736 | do | |
9737 | IFS=$as_save_IFS | |
9738 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9739 | for ac_exec_ext in '' $ac_executable_extensions; do |
9740 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9741 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9742 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9743 | break 2 |
9744 | fi | |
9745 | done | |
81ecdfbb RW |
9746 | done |
9747 | IFS=$as_save_IFS | |
c6b750e1 | 9748 | |
859789af AC |
9749 | fi |
9750 | fi | |
c6b750e1 | 9751 | OBJDUMP=$ac_cv_prog_OBJDUMP |
05cbd757 | 9752 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9754 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9755 | else |
81ecdfbb RW |
9756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9757 | $as_echo "no" >&6; } | |
859789af | 9758 | fi |
c6b750e1 | 9759 | |
81ecdfbb | 9760 | |
05cbd757 PB |
9761 | fi |
9762 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9763 | done | |
9764 | ||
9765 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9766 | set dummy objdump | |
9767 | if test $build = $host ; then | |
9768 | OBJDUMP="$2" | |
859789af | 9769 | else |
05cbd757 | 9770 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 9771 | fi |
859789af AC |
9772 | fi |
9773 | ||
a0da8069 NN |
9774 | |
9775 | ||
b121d7d4 DD |
9776 | if test -n "$READELF"; then |
9777 | ac_cv_prog_READELF=$READELF | |
9778 | elif test -n "$ac_cv_prog_READELF"; then | |
9779 | READELF=$ac_cv_prog_READELF | |
9780 | fi | |
9781 | ||
9782 | if test -n "$ac_cv_prog_READELF"; then | |
9783 | for ncn_progname in readelf; do | |
9784 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9785 | set dummy ${ncn_progname}; ac_word=$2 | |
9786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9787 | $as_echo_n "checking for $ac_word... " >&6; } | |
9788 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9789 | $as_echo_n "(cached) " >&6 | |
9790 | else | |
9791 | if test -n "$READELF"; then | |
9792 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9793 | else | |
9794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9795 | for as_dir in $PATH | |
9796 | do | |
9797 | IFS=$as_save_IFS | |
9798 | test -z "$as_dir" && as_dir=. | |
9799 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9800 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9801 | ac_cv_prog_READELF="${ncn_progname}" | |
9802 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9803 | break 2 | |
9804 | fi | |
9805 | done | |
9806 | done | |
9807 | IFS=$as_save_IFS | |
9808 | ||
9809 | fi | |
9810 | fi | |
9811 | READELF=$ac_cv_prog_READELF | |
9812 | if test -n "$READELF"; then | |
9813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9814 | $as_echo "$READELF" >&6; } | |
9815 | else | |
9816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9817 | $as_echo "no" >&6; } | |
9818 | fi | |
9819 | ||
9820 | ||
9821 | done | |
9822 | fi | |
9823 | ||
9824 | for ncn_progname in readelf; do | |
9825 | if test -n "$ncn_tool_prefix"; then | |
9826 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9827 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9829 | $as_echo_n "checking for $ac_word... " >&6; } | |
9830 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9831 | $as_echo_n "(cached) " >&6 | |
9832 | else | |
9833 | if test -n "$READELF"; then | |
9834 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9835 | else | |
9836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9837 | for as_dir in $PATH | |
9838 | do | |
9839 | IFS=$as_save_IFS | |
9840 | test -z "$as_dir" && as_dir=. | |
9841 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9842 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9843 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" | |
9844 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9845 | break 2 | |
9846 | fi | |
9847 | done | |
9848 | done | |
9849 | IFS=$as_save_IFS | |
9850 | ||
9851 | fi | |
9852 | fi | |
9853 | READELF=$ac_cv_prog_READELF | |
9854 | if test -n "$READELF"; then | |
9855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9856 | $as_echo "$READELF" >&6; } | |
9857 | else | |
9858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9859 | $as_echo "no" >&6; } | |
9860 | fi | |
9861 | ||
9862 | ||
9863 | fi | |
9864 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9865 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9866 | set dummy ${ncn_progname}; ac_word=$2 | |
9867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9868 | $as_echo_n "checking for $ac_word... " >&6; } | |
9869 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9870 | $as_echo_n "(cached) " >&6 | |
9871 | else | |
9872 | if test -n "$READELF"; then | |
9873 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9874 | else | |
9875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9876 | for as_dir in $PATH | |
9877 | do | |
9878 | IFS=$as_save_IFS | |
9879 | test -z "$as_dir" && as_dir=. | |
9880 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9881 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9882 | ac_cv_prog_READELF="${ncn_progname}" | |
9883 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9884 | break 2 | |
9885 | fi | |
9886 | done | |
9887 | done | |
9888 | IFS=$as_save_IFS | |
9889 | ||
9890 | fi | |
9891 | fi | |
9892 | READELF=$ac_cv_prog_READELF | |
9893 | if test -n "$READELF"; then | |
9894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9895 | $as_echo "$READELF" >&6; } | |
9896 | else | |
9897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9898 | $as_echo "no" >&6; } | |
9899 | fi | |
9900 | ||
9901 | ||
9902 | fi | |
9903 | test -n "$ac_cv_prog_READELF" && break | |
9904 | done | |
9905 | ||
9906 | if test -z "$ac_cv_prog_READELF" ; then | |
9907 | set dummy readelf | |
9908 | if test $build = $host ; then | |
9909 | READELF="$2" | |
9910 | else | |
9911 | READELF="${ncn_tool_prefix}$2" | |
9912 | fi | |
9913 | fi | |
9914 | ||
9915 | ||
9916 | ||
a0da8069 NN |
9917 | |
9918 | ||
9919 | ||
be01d343 | 9920 | # Target tools. |
c6b750e1 | 9921 | |
81ecdfbb RW |
9922 | # Check whether --with-build-time-tools was given. |
9923 | if test "${with_build_time_tools+set}" = set; then : | |
9924 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
9925 | x/*) ;; |
9926 | *) | |
9927 | with_build_time_tools= | |
81ecdfbb RW |
9928 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9929 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
9930 | ;; |
9931 | esac | |
859789af | 9932 | else |
2429c060 | 9933 | with_build_time_tools= |
81ecdfbb RW |
9934 | fi |
9935 | ||
859789af | 9936 | |
9a819804 AO |
9937 | |
9938 | ||
9939 | if test -n "$CC_FOR_TARGET"; then | |
9940 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9941 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9942 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9943 | fi | |
9944 | ||
9945 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9946 | for ncn_progname in cc gcc; do | |
9947 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9948 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9950 | $as_echo_n "checking for $ac_word... " >&6; } | |
9951 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9952 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9953 | else |
9954 | if test -n "$CC_FOR_TARGET"; then | |
9955 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9956 | else | |
9957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9958 | for as_dir in $PATH | |
9959 | do | |
9960 | IFS=$as_save_IFS | |
9961 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9962 | for ac_exec_ext in '' $ac_executable_extensions; do |
9963 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9964 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9966 | break 2 |
9967 | fi | |
9968 | done | |
81ecdfbb RW |
9969 | done |
9970 | IFS=$as_save_IFS | |
9a819804 AO |
9971 | |
9972 | fi | |
9973 | fi | |
9974 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9975 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
9976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9977 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 9978 | else |
81ecdfbb RW |
9979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9980 | $as_echo "no" >&6; } | |
9a819804 AO |
9981 | fi |
9982 | ||
81ecdfbb | 9983 | |
9a819804 AO |
9984 | done |
9985 | fi | |
9986 | ||
9987 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 9988 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
9989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9990 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
9991 | if test -x $with_build_time_tools/${ncn_progname}; then |
9992 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
9993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9994 | $as_echo "yes" >&6; } | |
cac3d6c4 | 9995 | break |
2429c060 | 9996 | else |
81ecdfbb RW |
9997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9998 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
9999 | fi |
10000 | done | |
55db4b87 PB |
10001 | fi |
10002 | ||
2429c060 PB |
10003 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
10004 | for ncn_progname in cc gcc; do | |
10005 | if test -n "$ncn_target_tool_prefix"; then | |
10006 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10007 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10009 | $as_echo_n "checking for $ac_word... " >&6; } | |
10010 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
10011 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10012 | else |
10013 | if test -n "$CC_FOR_TARGET"; then | |
10014 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10015 | else | |
c6b750e1 DJ |
10016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10017 | for as_dir in $PATH | |
10018 | do | |
10019 | IFS=$as_save_IFS | |
10020 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10021 | for ac_exec_ext in '' $ac_executable_extensions; do |
10022 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10023 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10024 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10025 | break 2 |
10026 | fi | |
10027 | done | |
81ecdfbb RW |
10028 | done |
10029 | IFS=$as_save_IFS | |
c6b750e1 | 10030 | |
55db4b87 PB |
10031 | fi |
10032 | fi | |
c6b750e1 | 10033 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 10034 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10036 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10037 | else |
81ecdfbb RW |
10038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10039 | $as_echo "no" >&6; } | |
55db4b87 PB |
10040 | fi |
10041 | ||
81ecdfbb | 10042 | |
2429c060 PB |
10043 | fi |
10044 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10045 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10046 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10048 | $as_echo_n "checking for $ac_word... " >&6; } | |
10049 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
10050 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10051 | else |
05cbd757 PB |
10052 | if test -n "$CC_FOR_TARGET"; then |
10053 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10054 | else |
c6b750e1 DJ |
10055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10056 | for as_dir in $PATH | |
10057 | do | |
10058 | IFS=$as_save_IFS | |
10059 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10060 | for ac_exec_ext in '' $ac_executable_extensions; do |
10061 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10062 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10063 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10064 | break 2 |
10065 | fi | |
10066 | done | |
81ecdfbb RW |
10067 | done |
10068 | IFS=$as_save_IFS | |
c6b750e1 | 10069 | |
55db4b87 PB |
10070 | fi |
10071 | fi | |
c6b750e1 | 10072 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 10073 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10075 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10076 | else |
81ecdfbb RW |
10077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10078 | $as_echo "no" >&6; } | |
55db4b87 | 10079 | fi |
c6b750e1 | 10080 | |
81ecdfbb | 10081 | |
2429c060 PB |
10082 | fi |
10083 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10084 | done | |
10085 | fi | |
c6b750e1 | 10086 | |
05cbd757 PB |
10087 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10088 | set dummy cc gcc | |
10089 | if test $build = $target ; then | |
10090 | CC_FOR_TARGET="$2" | |
55db4b87 | 10091 | else |
05cbd757 | 10092 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10093 | fi |
d3f5afc4 MS |
10094 | else |
10095 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
10096 | fi |
10097 | ||
9a819804 AO |
10098 | |
10099 | ||
10100 | if test -n "$CXX_FOR_TARGET"; then | |
10101 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10102 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10103 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10104 | fi | |
10105 | ||
10106 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10107 | for ncn_progname in c++ g++ cxx gxx; do | |
10108 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10109 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10111 | $as_echo_n "checking for $ac_word... " >&6; } | |
10112 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10113 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10114 | else |
10115 | if test -n "$CXX_FOR_TARGET"; then | |
10116 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10117 | else | |
10118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10119 | for as_dir in $PATH | |
10120 | do | |
10121 | IFS=$as_save_IFS | |
10122 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10123 | for ac_exec_ext in '' $ac_executable_extensions; do |
10124 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10125 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10126 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10127 | break 2 |
10128 | fi | |
10129 | done | |
81ecdfbb RW |
10130 | done |
10131 | IFS=$as_save_IFS | |
9a819804 AO |
10132 | |
10133 | fi | |
10134 | fi | |
10135 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10136 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
10137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10138 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 10139 | else |
81ecdfbb RW |
10140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10141 | $as_echo "no" >&6; } | |
9a819804 AO |
10142 | fi |
10143 | ||
81ecdfbb | 10144 | |
9a819804 AO |
10145 | done |
10146 | fi | |
10147 | ||
10148 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10149 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
10150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10151 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10152 | if test -x $with_build_time_tools/${ncn_progname}; then |
10153 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10155 | $as_echo "yes" >&6; } | |
2429c060 PB |
10156 | break |
10157 | else | |
81ecdfbb RW |
10158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10159 | $as_echo "no" >&6; } | |
2429c060 PB |
10160 | fi |
10161 | done | |
10162 | fi | |
10163 | ||
10164 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10165 | for ncn_progname in c++ g++ cxx gxx; do | |
10166 | if test -n "$ncn_target_tool_prefix"; then | |
10167 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10168 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10170 | $as_echo_n "checking for $ac_word... " >&6; } | |
10171 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10172 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10173 | else |
10174 | if test -n "$CXX_FOR_TARGET"; then | |
10175 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10176 | else | |
c6b750e1 DJ |
10177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10178 | for as_dir in $PATH | |
10179 | do | |
10180 | IFS=$as_save_IFS | |
10181 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10182 | for ac_exec_ext in '' $ac_executable_extensions; do |
10183 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10184 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10185 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10186 | break 2 |
10187 | fi | |
10188 | done | |
81ecdfbb RW |
10189 | done |
10190 | IFS=$as_save_IFS | |
c6b750e1 | 10191 | |
55db4b87 PB |
10192 | fi |
10193 | fi | |
c6b750e1 | 10194 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 10195 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10197 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10198 | else |
81ecdfbb RW |
10199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10200 | $as_echo "no" >&6; } | |
55db4b87 PB |
10201 | fi |
10202 | ||
81ecdfbb | 10203 | |
2429c060 PB |
10204 | fi |
10205 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10206 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10207 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10209 | $as_echo_n "checking for $ac_word... " >&6; } | |
10210 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10211 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10212 | else |
05cbd757 PB |
10213 | if test -n "$CXX_FOR_TARGET"; then |
10214 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10215 | else |
c6b750e1 DJ |
10216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10217 | for as_dir in $PATH | |
10218 | do | |
10219 | IFS=$as_save_IFS | |
10220 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10221 | for ac_exec_ext in '' $ac_executable_extensions; do |
10222 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10223 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10224 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10225 | break 2 |
10226 | fi | |
10227 | done | |
81ecdfbb RW |
10228 | done |
10229 | IFS=$as_save_IFS | |
c6b750e1 | 10230 | |
55db4b87 PB |
10231 | fi |
10232 | fi | |
c6b750e1 | 10233 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 10234 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10236 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10237 | else |
81ecdfbb RW |
10238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10239 | $as_echo "no" >&6; } | |
55db4b87 | 10240 | fi |
c6b750e1 | 10241 | |
81ecdfbb | 10242 | |
2429c060 PB |
10243 | fi |
10244 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10245 | done | |
10246 | fi | |
c6b750e1 | 10247 | |
05cbd757 PB |
10248 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10249 | set dummy c++ g++ cxx gxx | |
10250 | if test $build = $target ; then | |
10251 | CXX_FOR_TARGET="$2" | |
55db4b87 | 10252 | else |
05cbd757 | 10253 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10254 | fi |
d3f5afc4 MS |
10255 | else |
10256 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
10257 | fi |
10258 | ||
9a819804 AO |
10259 | |
10260 | ||
10261 | if test -n "$GCC_FOR_TARGET"; then | |
10262 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10263 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10264 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10265 | fi | |
10266 | ||
10267 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10268 | for ncn_progname in gcc; do | |
10269 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10270 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10272 | $as_echo_n "checking for $ac_word... " >&6; } | |
10273 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10274 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10275 | else |
10276 | if test -n "$GCC_FOR_TARGET"; then | |
10277 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10278 | else | |
10279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10280 | for as_dir in $PATH | |
10281 | do | |
10282 | IFS=$as_save_IFS | |
10283 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10284 | for ac_exec_ext in '' $ac_executable_extensions; do |
10285 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10286 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10287 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10288 | break 2 |
10289 | fi | |
10290 | done | |
81ecdfbb RW |
10291 | done |
10292 | IFS=$as_save_IFS | |
9a819804 AO |
10293 | |
10294 | fi | |
10295 | fi | |
10296 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10297 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
10298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10299 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 10300 | else |
81ecdfbb RW |
10301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10302 | $as_echo "no" >&6; } | |
9a819804 AO |
10303 | fi |
10304 | ||
81ecdfbb | 10305 | |
9a819804 AO |
10306 | done |
10307 | fi | |
10308 | ||
10309 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10310 | for ncn_progname in gcc; do |
81ecdfbb RW |
10311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10312 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10313 | if test -x $with_build_time_tools/${ncn_progname}; then |
10314 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10316 | $as_echo "yes" >&6; } | |
2429c060 PB |
10317 | break |
10318 | else | |
81ecdfbb RW |
10319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10320 | $as_echo "no" >&6; } | |
2429c060 PB |
10321 | fi |
10322 | done | |
10323 | fi | |
10324 | ||
10325 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10326 | for ncn_progname in gcc; do | |
10327 | if test -n "$ncn_target_tool_prefix"; then | |
10328 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10329 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10331 | $as_echo_n "checking for $ac_word... " >&6; } | |
10332 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10333 | $as_echo_n "(cached) " >&6 | |
859789af | 10334 | else |
2429c060 PB |
10335 | if test -n "$GCC_FOR_TARGET"; then |
10336 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10337 | else |
c6b750e1 DJ |
10338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10339 | for as_dir in $PATH | |
10340 | do | |
10341 | IFS=$as_save_IFS | |
10342 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10343 | for ac_exec_ext in '' $ac_executable_extensions; do |
10344 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10345 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10346 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10347 | break 2 |
10348 | fi | |
10349 | done | |
81ecdfbb RW |
10350 | done |
10351 | IFS=$as_save_IFS | |
c6b750e1 | 10352 | |
55db4b87 PB |
10353 | fi |
10354 | fi | |
c6b750e1 | 10355 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 10356 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10358 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10359 | else |
81ecdfbb RW |
10360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10361 | $as_echo "no" >&6; } | |
55db4b87 PB |
10362 | fi |
10363 | ||
81ecdfbb | 10364 | |
2429c060 PB |
10365 | fi |
10366 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10367 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10368 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10370 | $as_echo_n "checking for $ac_word... " >&6; } | |
10371 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10372 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10373 | else |
05cbd757 PB |
10374 | if test -n "$GCC_FOR_TARGET"; then |
10375 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10376 | else |
c6b750e1 DJ |
10377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10378 | for as_dir in $PATH | |
10379 | do | |
10380 | IFS=$as_save_IFS | |
10381 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10382 | for ac_exec_ext in '' $ac_executable_extensions; do |
10383 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10384 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10385 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10386 | break 2 |
10387 | fi | |
10388 | done | |
81ecdfbb RW |
10389 | done |
10390 | IFS=$as_save_IFS | |
c6b750e1 | 10391 | |
55db4b87 PB |
10392 | fi |
10393 | fi | |
c6b750e1 | 10394 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 10395 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10397 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10398 | else |
81ecdfbb RW |
10399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10400 | $as_echo "no" >&6; } | |
55db4b87 | 10401 | fi |
c6b750e1 | 10402 | |
81ecdfbb | 10403 | |
2429c060 PB |
10404 | fi |
10405 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10406 | done | |
10407 | fi | |
c6b750e1 | 10408 | |
05cbd757 PB |
10409 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10410 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
10411 | else |
10412 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
10413 | fi |
10414 | ||
9a819804 AO |
10415 | |
10416 | ||
10417 | if test -n "$GCJ_FOR_TARGET"; then | |
10418 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10419 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10420 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10421 | fi | |
10422 | ||
10423 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10424 | for ncn_progname in gcj; do | |
10425 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10426 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10428 | $as_echo_n "checking for $ac_word... " >&6; } | |
10429 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10430 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10431 | else |
10432 | if test -n "$GCJ_FOR_TARGET"; then | |
10433 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10434 | else | |
10435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10436 | for as_dir in $PATH | |
10437 | do | |
10438 | IFS=$as_save_IFS | |
10439 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10440 | for ac_exec_ext in '' $ac_executable_extensions; do |
10441 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10442 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10443 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10444 | break 2 |
10445 | fi | |
10446 | done | |
81ecdfbb RW |
10447 | done |
10448 | IFS=$as_save_IFS | |
9a819804 AO |
10449 | |
10450 | fi | |
10451 | fi | |
10452 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10453 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10455 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10456 | else |
81ecdfbb RW |
10457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10458 | $as_echo "no" >&6; } | |
9a819804 AO |
10459 | fi |
10460 | ||
81ecdfbb | 10461 | |
9a819804 AO |
10462 | done |
10463 | fi | |
10464 | ||
10465 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10466 | for ncn_progname in gcj; do |
81ecdfbb RW |
10467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10468 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10469 | if test -x $with_build_time_tools/${ncn_progname}; then |
10470 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10472 | $as_echo "yes" >&6; } | |
2429c060 PB |
10473 | break |
10474 | else | |
81ecdfbb RW |
10475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10476 | $as_echo "no" >&6; } | |
2429c060 PB |
10477 | fi |
10478 | done | |
10479 | fi | |
10480 | ||
10481 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10482 | for ncn_progname in gcj; do | |
10483 | if test -n "$ncn_target_tool_prefix"; then | |
10484 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10485 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10487 | $as_echo_n "checking for $ac_word... " >&6; } | |
10488 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10489 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10490 | else |
10491 | if test -n "$GCJ_FOR_TARGET"; then | |
10492 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10493 | else | |
c6b750e1 DJ |
10494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10495 | for as_dir in $PATH | |
10496 | do | |
10497 | IFS=$as_save_IFS | |
10498 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10499 | for ac_exec_ext in '' $ac_executable_extensions; do |
10500 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10501 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10502 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10503 | break 2 |
10504 | fi | |
10505 | done | |
81ecdfbb RW |
10506 | done |
10507 | IFS=$as_save_IFS | |
c6b750e1 | 10508 | |
55db4b87 PB |
10509 | fi |
10510 | fi | |
9a819804 AO |
10511 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10512 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10514 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10515 | else |
81ecdfbb RW |
10516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10517 | $as_echo "no" >&6; } | |
9a819804 AO |
10518 | fi |
10519 | ||
81ecdfbb | 10520 | |
9a819804 AO |
10521 | fi |
10522 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10523 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10524 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10526 | $as_echo_n "checking for $ac_word... " >&6; } | |
10527 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10528 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10529 | else |
10530 | if test -n "$GCJ_FOR_TARGET"; then | |
10531 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10532 | else | |
10533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10534 | for as_dir in $PATH | |
10535 | do | |
10536 | IFS=$as_save_IFS | |
10537 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10538 | for ac_exec_ext in '' $ac_executable_extensions; do |
10539 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10540 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10541 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10542 | break 2 |
10543 | fi | |
10544 | done | |
81ecdfbb RW |
10545 | done |
10546 | IFS=$as_save_IFS | |
9a819804 AO |
10547 | |
10548 | fi | |
10549 | fi | |
10550 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10551 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10553 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10554 | else |
81ecdfbb RW |
10555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10556 | $as_echo "no" >&6; } | |
9a819804 AO |
10557 | fi |
10558 | ||
81ecdfbb | 10559 | |
9a819804 AO |
10560 | fi |
10561 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10562 | done | |
10563 | fi | |
10564 | ||
10565 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10566 | set dummy gcj | |
10567 | if test $build = $target ; then | |
10568 | GCJ_FOR_TARGET="$2" | |
10569 | else | |
10570 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10571 | fi | |
d3f5afc4 MS |
10572 | else |
10573 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
9a819804 AO |
10574 | fi |
10575 | ||
10576 | ||
10577 | ||
10578 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10579 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10580 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10581 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
10582 | fi |
10583 | ||
9a819804 AO |
10584 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10585 | for ncn_progname in gfortran; do | |
10586 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10587 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10589 | $as_echo_n "checking for $ac_word... " >&6; } | |
10590 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10591 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10592 | else |
9a819804 AO |
10593 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10594 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10595 | else |
c6b750e1 DJ |
10596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10597 | for as_dir in $PATH | |
10598 | do | |
10599 | IFS=$as_save_IFS | |
10600 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10601 | for ac_exec_ext in '' $ac_executable_extensions; do |
10602 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10603 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10604 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10605 | break 2 |
10606 | fi | |
10607 | done | |
81ecdfbb RW |
10608 | done |
10609 | IFS=$as_save_IFS | |
c6b750e1 | 10610 | |
55db4b87 PB |
10611 | fi |
10612 | fi | |
9a819804 AO |
10613 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10614 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
10615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10616 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10617 | else |
81ecdfbb RW |
10618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10619 | $as_echo "no" >&6; } | |
55db4b87 | 10620 | fi |
c6b750e1 | 10621 | |
81ecdfbb | 10622 | |
2429c060 PB |
10623 | done |
10624 | fi | |
c6b750e1 | 10625 | |
9a819804 | 10626 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 10627 | for ncn_progname in gfortran; do |
81ecdfbb RW |
10628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10629 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10630 | if test -x $with_build_time_tools/${ncn_progname}; then |
10631 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10633 | $as_echo "yes" >&6; } | |
2429c060 PB |
10634 | break |
10635 | else | |
81ecdfbb RW |
10636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10637 | $as_echo "no" >&6; } | |
2429c060 PB |
10638 | fi |
10639 | done | |
10640 | fi | |
10641 | ||
10642 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10643 | for ncn_progname in gfortran; do | |
10644 | if test -n "$ncn_target_tool_prefix"; then | |
10645 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10646 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10648 | $as_echo_n "checking for $ac_word... " >&6; } | |
10649 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10650 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10651 | else |
10652 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10653 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10654 | else | |
c6b750e1 DJ |
10655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10656 | for as_dir in $PATH | |
10657 | do | |
10658 | IFS=$as_save_IFS | |
10659 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10660 | for ac_exec_ext in '' $ac_executable_extensions; do |
10661 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10662 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10664 | break 2 |
10665 | fi | |
10666 | done | |
81ecdfbb RW |
10667 | done |
10668 | IFS=$as_save_IFS | |
c6b750e1 | 10669 | |
55db4b87 PB |
10670 | fi |
10671 | fi | |
c6b750e1 | 10672 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
55db4b87 | 10673 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10675 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10676 | else |
81ecdfbb RW |
10677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10678 | $as_echo "no" >&6; } | |
55db4b87 PB |
10679 | fi |
10680 | ||
81ecdfbb | 10681 | |
2429c060 PB |
10682 | fi |
10683 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10684 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10685 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10687 | $as_echo_n "checking for $ac_word... " >&6; } | |
10688 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10689 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10690 | else |
05cbd757 | 10691 | if test -n "$GFORTRAN_FOR_TARGET"; then |
c6b750e1 DJ |
10692 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10693 | else | |
10694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10695 | for as_dir in $PATH | |
10696 | do | |
10697 | IFS=$as_save_IFS | |
10698 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10699 | for ac_exec_ext in '' $ac_executable_extensions; do |
10700 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10701 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10702 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10703 | break 2 |
10704 | fi | |
10705 | done | |
81ecdfbb RW |
10706 | done |
10707 | IFS=$as_save_IFS | |
c6b750e1 | 10708 | |
55db4b87 PB |
10709 | fi |
10710 | fi | |
c6b750e1 | 10711 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
05cbd757 | 10712 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10714 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10715 | else |
81ecdfbb RW |
10716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10717 | $as_echo "no" >&6; } | |
55db4b87 | 10718 | fi |
c6b750e1 | 10719 | |
81ecdfbb | 10720 | |
2429c060 PB |
10721 | fi |
10722 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10723 | done | |
10724 | fi | |
c6b750e1 | 10725 | |
05cbd757 PB |
10726 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10727 | set dummy gfortran | |
10728 | if test $build = $target ; then | |
10729 | GFORTRAN_FOR_TARGET="$2" | |
55db4b87 | 10730 | else |
05cbd757 | 10731 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10732 | fi |
d3f5afc4 MS |
10733 | else |
10734 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
859789af AC |
10735 | fi |
10736 | ||
2429c060 PB |
10737 | |
10738 | ||
e552509b ILT |
10739 | if test -n "$GOC_FOR_TARGET"; then |
10740 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10741 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10742 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10743 | fi | |
10744 | ||
10745 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10746 | for ncn_progname in gccgo; do | |
10747 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10748 | set dummy ${ncn_progname}; ac_word=$2 | |
10749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10750 | $as_echo_n "checking for $ac_word... " >&6; } | |
10751 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10752 | $as_echo_n "(cached) " >&6 | |
10753 | else | |
10754 | if test -n "$GOC_FOR_TARGET"; then | |
10755 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10756 | else | |
10757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10758 | for as_dir in $PATH | |
10759 | do | |
10760 | IFS=$as_save_IFS | |
10761 | test -z "$as_dir" && as_dir=. | |
10762 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10763 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10764 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10765 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10766 | break 2 | |
10767 | fi | |
10768 | done | |
10769 | done | |
10770 | IFS=$as_save_IFS | |
10771 | ||
10772 | fi | |
10773 | fi | |
10774 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10775 | if test -n "$GOC_FOR_TARGET"; then | |
10776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10777 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10778 | else | |
10779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10780 | $as_echo "no" >&6; } | |
10781 | fi | |
10782 | ||
10783 | ||
10784 | done | |
10785 | fi | |
10786 | ||
10787 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10788 | for ncn_progname in gccgo; do | |
10789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10790 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10791 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10792 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10794 | $as_echo "yes" >&6; } | |
10795 | break | |
10796 | else | |
10797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10798 | $as_echo "no" >&6; } | |
10799 | fi | |
10800 | done | |
10801 | fi | |
10802 | ||
10803 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10804 | for ncn_progname in gccgo; do | |
10805 | if test -n "$ncn_target_tool_prefix"; then | |
10806 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10807 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10809 | $as_echo_n "checking for $ac_word... " >&6; } | |
10810 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10811 | $as_echo_n "(cached) " >&6 | |
10812 | else | |
10813 | if test -n "$GOC_FOR_TARGET"; then | |
10814 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10815 | else | |
10816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10817 | for as_dir in $PATH | |
10818 | do | |
10819 | IFS=$as_save_IFS | |
10820 | test -z "$as_dir" && as_dir=. | |
10821 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10822 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10823 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10825 | break 2 | |
10826 | fi | |
10827 | done | |
10828 | done | |
10829 | IFS=$as_save_IFS | |
10830 | ||
10831 | fi | |
10832 | fi | |
10833 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10834 | if test -n "$GOC_FOR_TARGET"; then | |
10835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10836 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10837 | else | |
10838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10839 | $as_echo "no" >&6; } | |
10840 | fi | |
10841 | ||
10842 | ||
10843 | fi | |
10844 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10845 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10846 | set dummy ${ncn_progname}; ac_word=$2 | |
10847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10848 | $as_echo_n "checking for $ac_word... " >&6; } | |
10849 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10850 | $as_echo_n "(cached) " >&6 | |
10851 | else | |
10852 | if test -n "$GOC_FOR_TARGET"; then | |
10853 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10854 | else | |
10855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10856 | for as_dir in $PATH | |
10857 | do | |
10858 | IFS=$as_save_IFS | |
10859 | test -z "$as_dir" && as_dir=. | |
10860 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10861 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10862 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10863 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10864 | break 2 | |
10865 | fi | |
10866 | done | |
10867 | done | |
10868 | IFS=$as_save_IFS | |
10869 | ||
10870 | fi | |
10871 | fi | |
10872 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10873 | if test -n "$GOC_FOR_TARGET"; then | |
10874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10875 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10876 | else | |
10877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10878 | $as_echo "no" >&6; } | |
10879 | fi | |
10880 | ||
10881 | ||
10882 | fi | |
10883 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10884 | done | |
10885 | fi | |
10886 | ||
10887 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10888 | set dummy gccgo | |
10889 | if test $build = $target ; then | |
10890 | GOC_FOR_TARGET="$2" | |
10891 | else | |
10892 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10893 | fi | |
10894 | else | |
10895 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10896 | fi | |
10897 | ||
10898 | ||
10899 | ||
2429c060 PB |
10900 | cat > conftest.c << \EOF |
10901 | #ifdef __GNUC__ | |
10902 | gcc_yay; | |
10903 | #endif | |
10904 | EOF | |
10905 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10906 | have_gcc_for_target=yes | |
859789af | 10907 | else |
2429c060 PB |
10908 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
10909 | have_gcc_for_target=no | |
859789af | 10910 | fi |
2429c060 PB |
10911 | rm conftest.c |
10912 | ||
10913 | ||
10914 | ||
859789af | 10915 | |
2429c060 PB |
10916 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
10917 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10919 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10920 | if test -x $with_build_time_tools/ar; then |
10921 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10922 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
10923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10924 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 10925 | else |
81ecdfbb RW |
10926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10927 | $as_echo "no" >&6; } | |
3a35eeb3 | 10928 | fi |
2429c060 PB |
10929 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10930 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
10931 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10932 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 10933 | fi |
2429c060 | 10934 | fi |
c6b750e1 | 10935 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10936 | # Extract the first word of "ar", so it can be a program name with args. |
10937 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
10938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10939 | $as_echo_n "checking for $ac_word... " >&6; } | |
10940 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10941 | $as_echo_n "(cached) " >&6 | |
859789af | 10942 | else |
c6b750e1 DJ |
10943 | case $AR_FOR_TARGET in |
10944 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10945 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10946 | ;; | |
2429c060 | 10947 | *) |
c6b750e1 DJ |
10948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10949 | for as_dir in $gcc_cv_tool_dirs | |
10950 | do | |
10951 | IFS=$as_save_IFS | |
10952 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10953 | for ac_exec_ext in '' $ac_executable_extensions; do |
10954 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10955 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10956 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10957 | break 2 |
10958 | fi | |
10959 | done | |
81ecdfbb RW |
10960 | done |
10961 | IFS=$as_save_IFS | |
c6b750e1 | 10962 | |
2429c060 PB |
10963 | ;; |
10964 | esac | |
859789af | 10965 | fi |
c6b750e1 | 10966 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 10967 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10969 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 10970 | else |
81ecdfbb RW |
10971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10972 | $as_echo "no" >&6; } | |
859789af | 10973 | fi |
05cbd757 | 10974 | |
81ecdfbb | 10975 | |
2429c060 PB |
10976 | fi |
10977 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
10978 | |
10979 | ||
10980 | if test -n "$AR_FOR_TARGET"; then | |
10981 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10982 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10983 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10984 | fi | |
10985 | ||
10986 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10987 | for ncn_progname in ar; do | |
10988 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10989 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10991 | $as_echo_n "checking for $ac_word... " >&6; } | |
10992 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10993 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10994 | else |
10995 | if test -n "$AR_FOR_TARGET"; then | |
10996 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10997 | else | |
10998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10999 | for as_dir in $PATH | |
11000 | do | |
11001 | IFS=$as_save_IFS | |
11002 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11003 | for ac_exec_ext in '' $ac_executable_extensions; do |
11004 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11005 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11006 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11007 | break 2 |
11008 | fi | |
11009 | done | |
81ecdfbb RW |
11010 | done |
11011 | IFS=$as_save_IFS | |
9a819804 AO |
11012 | |
11013 | fi | |
11014 | fi | |
11015 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11016 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
11017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11018 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 11019 | else |
81ecdfbb RW |
11020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11021 | $as_echo "no" >&6; } | |
9a819804 AO |
11022 | fi |
11023 | ||
81ecdfbb | 11024 | |
9a819804 AO |
11025 | done |
11026 | fi | |
11027 | ||
11028 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11029 | for ncn_progname in ar; do |
81ecdfbb RW |
11030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11031 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11032 | if test -x $with_build_time_tools/${ncn_progname}; then |
11033 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11035 | $as_echo "yes" >&6; } | |
2429c060 PB |
11036 | break |
11037 | else | |
81ecdfbb RW |
11038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11039 | $as_echo "no" >&6; } | |
2429c060 PB |
11040 | fi |
11041 | done | |
859789af AC |
11042 | fi |
11043 | ||
2429c060 PB |
11044 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
11045 | for ncn_progname in ar; do | |
11046 | if test -n "$ncn_target_tool_prefix"; then | |
11047 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 11048 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11050 | $as_echo_n "checking for $ac_word... " >&6; } | |
11051 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11052 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 11053 | else |
2429c060 PB |
11054 | if test -n "$AR_FOR_TARGET"; then |
11055 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 11056 | else |
c6b750e1 DJ |
11057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11058 | for as_dir in $PATH | |
11059 | do | |
11060 | IFS=$as_save_IFS | |
11061 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11062 | for ac_exec_ext in '' $ac_executable_extensions; do |
11063 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11064 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11065 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11066 | break 2 |
11067 | fi | |
11068 | done | |
81ecdfbb RW |
11069 | done |
11070 | IFS=$as_save_IFS | |
c6b750e1 | 11071 | |
7e0f7140 GK |
11072 | fi |
11073 | fi | |
c6b750e1 | 11074 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 11075 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11077 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 11078 | else |
81ecdfbb RW |
11079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11080 | $as_echo "no" >&6; } | |
7e0f7140 GK |
11081 | fi |
11082 | ||
81ecdfbb | 11083 | |
2429c060 PB |
11084 | fi |
11085 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
11086 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 11087 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11089 | $as_echo_n "checking for $ac_word... " >&6; } | |
11090 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11091 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 11092 | else |
2429c060 PB |
11093 | if test -n "$AR_FOR_TARGET"; then |
11094 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 11095 | else |
c6b750e1 DJ |
11096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11097 | for as_dir in $PATH | |
11098 | do | |
11099 | IFS=$as_save_IFS | |
11100 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11101 | for ac_exec_ext in '' $ac_executable_extensions; do |
11102 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11103 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11105 | break 2 |
11106 | fi | |
11107 | done | |
81ecdfbb RW |
11108 | done |
11109 | IFS=$as_save_IFS | |
c6b750e1 | 11110 | |
7e0f7140 GK |
11111 | fi |
11112 | fi | |
c6b750e1 | 11113 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 11114 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11116 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 11117 | else |
81ecdfbb RW |
11118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11119 | $as_echo "no" >&6; } | |
7e0f7140 | 11120 | fi |
c6b750e1 | 11121 | |
81ecdfbb | 11122 | |
2429c060 PB |
11123 | fi |
11124 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11125 | done | |
11126 | fi | |
c6b750e1 | 11127 | |
2429c060 PB |
11128 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11129 | set dummy ar | |
7e0f7140 | 11130 | if test $build = $target ; then |
2429c060 | 11131 | AR_FOR_TARGET="$2" |
7e0f7140 | 11132 | else |
2429c060 | 11133 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 11134 | fi |
d3f5afc4 MS |
11135 | else |
11136 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
11137 | fi |
11138 | ||
3a35eeb3 PB |
11139 | else |
11140 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
11141 | fi |
11142 | ||
11143 | ||
11144 | ||
11145 | ||
11146 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11147 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11149 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11150 | if test -x $with_build_time_tools/as; then |
11151 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11152 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
11153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11154 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 11155 | else |
81ecdfbb RW |
11156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11157 | $as_echo "no" >&6; } | |
3a35eeb3 | 11158 | fi |
2429c060 PB |
11159 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11160 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
11161 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11162 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
11163 | fi |
11164 | fi | |
c6b750e1 | 11165 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11166 | # Extract the first word of "as", so it can be a program name with args. |
11167 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
11168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11169 | $as_echo_n "checking for $ac_word... " >&6; } | |
11170 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
11171 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11172 | else |
c6b750e1 DJ |
11173 | case $AS_FOR_TARGET in |
11174 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11175 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11176 | ;; | |
2429c060 | 11177 | *) |
c6b750e1 DJ |
11178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11179 | for as_dir in $gcc_cv_tool_dirs | |
11180 | do | |
11181 | IFS=$as_save_IFS | |
11182 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11183 | for ac_exec_ext in '' $ac_executable_extensions; do |
11184 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11185 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11187 | break 2 |
11188 | fi | |
11189 | done | |
81ecdfbb RW |
11190 | done |
11191 | IFS=$as_save_IFS | |
c6b750e1 | 11192 | |
2429c060 PB |
11193 | ;; |
11194 | esac | |
11195 | fi | |
c6b750e1 | 11196 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 11197 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11199 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11200 | else |
81ecdfbb RW |
11201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11202 | $as_echo "no" >&6; } | |
2429c060 PB |
11203 | fi |
11204 | ||
81ecdfbb | 11205 | |
2429c060 PB |
11206 | fi |
11207 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
11208 | |
11209 | ||
11210 | if test -n "$AS_FOR_TARGET"; then | |
11211 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11212 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11213 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11214 | fi | |
11215 | ||
11216 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11217 | for ncn_progname in as; do | |
11218 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11219 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11221 | $as_echo_n "checking for $ac_word... " >&6; } | |
11222 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11223 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11224 | else |
11225 | if test -n "$AS_FOR_TARGET"; then | |
11226 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11227 | else | |
11228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11229 | for as_dir in $PATH | |
11230 | do | |
11231 | IFS=$as_save_IFS | |
11232 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11233 | for ac_exec_ext in '' $ac_executable_extensions; do |
11234 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11235 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11236 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11237 | break 2 |
11238 | fi | |
11239 | done | |
81ecdfbb RW |
11240 | done |
11241 | IFS=$as_save_IFS | |
9a819804 AO |
11242 | |
11243 | fi | |
11244 | fi | |
11245 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11246 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
11247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11248 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 11249 | else |
81ecdfbb RW |
11250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11251 | $as_echo "no" >&6; } | |
9a819804 AO |
11252 | fi |
11253 | ||
81ecdfbb | 11254 | |
9a819804 AO |
11255 | done |
11256 | fi | |
11257 | ||
11258 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11259 | for ncn_progname in as; do |
81ecdfbb RW |
11260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11261 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11262 | if test -x $with_build_time_tools/${ncn_progname}; then |
11263 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11265 | $as_echo "yes" >&6; } | |
2429c060 PB |
11266 | break |
11267 | else | |
81ecdfbb RW |
11268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11269 | $as_echo "no" >&6; } | |
2429c060 PB |
11270 | fi |
11271 | done | |
11272 | fi | |
11273 | ||
11274 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11275 | for ncn_progname in as; do | |
11276 | if test -n "$ncn_target_tool_prefix"; then | |
11277 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11278 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11280 | $as_echo_n "checking for $ac_word... " >&6; } | |
11281 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11282 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11283 | else |
11284 | if test -n "$AS_FOR_TARGET"; then | |
11285 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11286 | else | |
c6b750e1 DJ |
11287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11288 | for as_dir in $PATH | |
11289 | do | |
11290 | IFS=$as_save_IFS | |
11291 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11292 | for ac_exec_ext in '' $ac_executable_extensions; do |
11293 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11294 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11295 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11296 | break 2 |
11297 | fi | |
11298 | done | |
81ecdfbb RW |
11299 | done |
11300 | IFS=$as_save_IFS | |
c6b750e1 | 11301 | |
2429c060 PB |
11302 | fi |
11303 | fi | |
c6b750e1 | 11304 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11305 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11307 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11308 | else |
81ecdfbb RW |
11309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11310 | $as_echo "no" >&6; } | |
2429c060 PB |
11311 | fi |
11312 | ||
81ecdfbb | 11313 | |
2429c060 PB |
11314 | fi |
11315 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11316 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11317 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11319 | $as_echo_n "checking for $ac_word... " >&6; } | |
11320 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11321 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11322 | else |
11323 | if test -n "$AS_FOR_TARGET"; then | |
11324 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11325 | else | |
c6b750e1 DJ |
11326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11327 | for as_dir in $PATH | |
11328 | do | |
11329 | IFS=$as_save_IFS | |
11330 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11331 | for ac_exec_ext in '' $ac_executable_extensions; do |
11332 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11333 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11334 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11335 | break 2 |
11336 | fi | |
11337 | done | |
81ecdfbb RW |
11338 | done |
11339 | IFS=$as_save_IFS | |
c6b750e1 | 11340 | |
2429c060 PB |
11341 | fi |
11342 | fi | |
c6b750e1 | 11343 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11344 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11346 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11347 | else |
81ecdfbb RW |
11348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11349 | $as_echo "no" >&6; } | |
2429c060 | 11350 | fi |
c6b750e1 | 11351 | |
81ecdfbb | 11352 | |
2429c060 PB |
11353 | fi |
11354 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11355 | done | |
11356 | fi | |
c6b750e1 | 11357 | |
2429c060 PB |
11358 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11359 | set dummy as | |
11360 | if test $build = $target ; then | |
11361 | AS_FOR_TARGET="$2" | |
11362 | else | |
11363 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11364 | fi | |
d3f5afc4 MS |
11365 | else |
11366 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
11367 | fi |
11368 | ||
3a35eeb3 PB |
11369 | else |
11370 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
11371 | fi |
11372 | ||
11373 | ||
11374 | ||
11375 | ||
11376 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11377 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11379 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11380 | if test -x $with_build_time_tools/dlltool; then |
11381 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11382 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
11383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11384 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 11385 | else |
81ecdfbb RW |
11386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11387 | $as_echo "no" >&6; } | |
3a35eeb3 | 11388 | fi |
2429c060 PB |
11389 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11390 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
11391 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11392 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
11393 | fi |
11394 | fi | |
c6b750e1 | 11395 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11396 | # Extract the first word of "dlltool", so it can be a program name with args. |
11397 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
11398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11399 | $as_echo_n "checking for $ac_word... " >&6; } | |
11400 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11401 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11402 | else |
c6b750e1 DJ |
11403 | case $DLLTOOL_FOR_TARGET in |
11404 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11405 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11406 | ;; | |
2429c060 | 11407 | *) |
c6b750e1 DJ |
11408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11409 | for as_dir in $gcc_cv_tool_dirs | |
11410 | do | |
11411 | IFS=$as_save_IFS | |
11412 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11413 | for ac_exec_ext in '' $ac_executable_extensions; do |
11414 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11415 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11417 | break 2 |
11418 | fi | |
11419 | done | |
81ecdfbb RW |
11420 | done |
11421 | IFS=$as_save_IFS | |
c6b750e1 | 11422 | |
2429c060 PB |
11423 | ;; |
11424 | esac | |
11425 | fi | |
c6b750e1 | 11426 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 11427 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11429 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11430 | else |
81ecdfbb RW |
11431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11432 | $as_echo "no" >&6; } | |
2429c060 PB |
11433 | fi |
11434 | ||
81ecdfbb | 11435 | |
2429c060 PB |
11436 | fi |
11437 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
11438 | |
11439 | ||
11440 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11441 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11442 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11443 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11444 | fi | |
11445 | ||
11446 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11447 | for ncn_progname in dlltool; do | |
11448 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11449 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11451 | $as_echo_n "checking for $ac_word... " >&6; } | |
11452 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11453 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11454 | else |
11455 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11456 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11457 | else | |
11458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11459 | for as_dir in $PATH | |
11460 | do | |
11461 | IFS=$as_save_IFS | |
11462 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11463 | for ac_exec_ext in '' $ac_executable_extensions; do |
11464 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11465 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11466 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11467 | break 2 |
11468 | fi | |
11469 | done | |
81ecdfbb RW |
11470 | done |
11471 | IFS=$as_save_IFS | |
9a819804 AO |
11472 | |
11473 | fi | |
11474 | fi | |
11475 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11476 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
11477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11478 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 11479 | else |
81ecdfbb RW |
11480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11481 | $as_echo "no" >&6; } | |
9a819804 AO |
11482 | fi |
11483 | ||
81ecdfbb | 11484 | |
9a819804 AO |
11485 | done |
11486 | fi | |
11487 | ||
11488 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11489 | for ncn_progname in dlltool; do |
81ecdfbb RW |
11490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11491 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11492 | if test -x $with_build_time_tools/${ncn_progname}; then |
11493 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11495 | $as_echo "yes" >&6; } | |
2429c060 PB |
11496 | break |
11497 | else | |
81ecdfbb RW |
11498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11499 | $as_echo "no" >&6; } | |
2429c060 PB |
11500 | fi |
11501 | done | |
11502 | fi | |
11503 | ||
11504 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11505 | for ncn_progname in dlltool; do | |
11506 | if test -n "$ncn_target_tool_prefix"; then | |
11507 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11508 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11510 | $as_echo_n "checking for $ac_word... " >&6; } | |
11511 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11512 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11513 | else |
11514 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11515 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11516 | else | |
c6b750e1 DJ |
11517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11518 | for as_dir in $PATH | |
11519 | do | |
11520 | IFS=$as_save_IFS | |
11521 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11522 | for ac_exec_ext in '' $ac_executable_extensions; do |
11523 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11524 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11525 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11526 | break 2 |
11527 | fi | |
11528 | done | |
81ecdfbb RW |
11529 | done |
11530 | IFS=$as_save_IFS | |
c6b750e1 | 11531 | |
2429c060 PB |
11532 | fi |
11533 | fi | |
c6b750e1 | 11534 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11535 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11537 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11538 | else |
81ecdfbb RW |
11539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11540 | $as_echo "no" >&6; } | |
2429c060 PB |
11541 | fi |
11542 | ||
81ecdfbb | 11543 | |
2429c060 PB |
11544 | fi |
11545 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11546 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11547 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11549 | $as_echo_n "checking for $ac_word... " >&6; } | |
11550 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11551 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11552 | else |
11553 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11554 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11555 | else | |
c6b750e1 DJ |
11556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11557 | for as_dir in $PATH | |
11558 | do | |
11559 | IFS=$as_save_IFS | |
11560 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11561 | for ac_exec_ext in '' $ac_executable_extensions; do |
11562 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11563 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11564 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11565 | break 2 |
11566 | fi | |
11567 | done | |
81ecdfbb RW |
11568 | done |
11569 | IFS=$as_save_IFS | |
c6b750e1 | 11570 | |
2429c060 PB |
11571 | fi |
11572 | fi | |
c6b750e1 | 11573 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11574 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11576 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11577 | else |
81ecdfbb RW |
11578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11579 | $as_echo "no" >&6; } | |
2429c060 | 11580 | fi |
c6b750e1 | 11581 | |
81ecdfbb | 11582 | |
2429c060 PB |
11583 | fi |
11584 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11585 | done | |
11586 | fi | |
c6b750e1 | 11587 | |
2429c060 PB |
11588 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11589 | set dummy dlltool | |
11590 | if test $build = $target ; then | |
11591 | DLLTOOL_FOR_TARGET="$2" | |
11592 | else | |
11593 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11594 | fi | |
d3f5afc4 MS |
11595 | else |
11596 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
2429c060 PB |
11597 | fi |
11598 | ||
3a35eeb3 PB |
11599 | else |
11600 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
2429c060 PB |
11601 | fi |
11602 | ||
11603 | ||
11604 | ||
11605 | ||
11606 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11607 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11609 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11610 | if test -x $with_build_time_tools/ld; then |
11611 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11612 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
11613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11614 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 11615 | else |
81ecdfbb RW |
11616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11617 | $as_echo "no" >&6; } | |
3a35eeb3 | 11618 | fi |
2429c060 PB |
11619 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11620 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
11621 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11622 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
11623 | fi |
11624 | fi | |
c6b750e1 | 11625 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11626 | # Extract the first word of "ld", so it can be a program name with args. |
11627 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
11628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11629 | $as_echo_n "checking for $ac_word... " >&6; } | |
11630 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11631 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11632 | else |
c6b750e1 DJ |
11633 | case $LD_FOR_TARGET in |
11634 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11635 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11636 | ;; | |
2429c060 | 11637 | *) |
c6b750e1 DJ |
11638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11639 | for as_dir in $gcc_cv_tool_dirs | |
11640 | do | |
11641 | IFS=$as_save_IFS | |
11642 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11643 | for ac_exec_ext in '' $ac_executable_extensions; do |
11644 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11645 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11646 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11647 | break 2 |
11648 | fi | |
11649 | done | |
81ecdfbb RW |
11650 | done |
11651 | IFS=$as_save_IFS | |
c6b750e1 | 11652 | |
2429c060 PB |
11653 | ;; |
11654 | esac | |
11655 | fi | |
c6b750e1 | 11656 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 11657 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11659 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11660 | else |
81ecdfbb RW |
11661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11662 | $as_echo "no" >&6; } | |
2429c060 PB |
11663 | fi |
11664 | ||
81ecdfbb | 11665 | |
2429c060 PB |
11666 | fi |
11667 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
11668 | |
11669 | ||
11670 | if test -n "$LD_FOR_TARGET"; then | |
11671 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11672 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11673 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11674 | fi | |
11675 | ||
11676 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11677 | for ncn_progname in ld; do | |
11678 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11679 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11681 | $as_echo_n "checking for $ac_word... " >&6; } | |
11682 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11683 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11684 | else |
11685 | if test -n "$LD_FOR_TARGET"; then | |
11686 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11687 | else | |
11688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11689 | for as_dir in $PATH | |
11690 | do | |
11691 | IFS=$as_save_IFS | |
11692 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11693 | for ac_exec_ext in '' $ac_executable_extensions; do |
11694 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11695 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11696 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11697 | break 2 |
11698 | fi | |
11699 | done | |
81ecdfbb RW |
11700 | done |
11701 | IFS=$as_save_IFS | |
9a819804 AO |
11702 | |
11703 | fi | |
11704 | fi | |
11705 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11706 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
11707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11708 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 11709 | else |
81ecdfbb RW |
11710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11711 | $as_echo "no" >&6; } | |
9a819804 AO |
11712 | fi |
11713 | ||
81ecdfbb | 11714 | |
9a819804 AO |
11715 | done |
11716 | fi | |
11717 | ||
11718 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11719 | for ncn_progname in ld; do |
81ecdfbb RW |
11720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11721 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11722 | if test -x $with_build_time_tools/${ncn_progname}; then |
11723 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11725 | $as_echo "yes" >&6; } | |
2429c060 PB |
11726 | break |
11727 | else | |
81ecdfbb RW |
11728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11729 | $as_echo "no" >&6; } | |
2429c060 PB |
11730 | fi |
11731 | done | |
11732 | fi | |
11733 | ||
11734 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11735 | for ncn_progname in ld; do | |
11736 | if test -n "$ncn_target_tool_prefix"; then | |
11737 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11738 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11740 | $as_echo_n "checking for $ac_word... " >&6; } | |
11741 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11742 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11743 | else |
11744 | if test -n "$LD_FOR_TARGET"; then | |
11745 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11746 | else | |
c6b750e1 DJ |
11747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11748 | for as_dir in $PATH | |
11749 | do | |
11750 | IFS=$as_save_IFS | |
11751 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11752 | for ac_exec_ext in '' $ac_executable_extensions; do |
11753 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11754 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11755 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11756 | break 2 |
11757 | fi | |
11758 | done | |
81ecdfbb RW |
11759 | done |
11760 | IFS=$as_save_IFS | |
c6b750e1 | 11761 | |
2429c060 PB |
11762 | fi |
11763 | fi | |
c6b750e1 | 11764 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11765 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11767 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11768 | else |
81ecdfbb RW |
11769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11770 | $as_echo "no" >&6; } | |
2429c060 PB |
11771 | fi |
11772 | ||
81ecdfbb | 11773 | |
2429c060 PB |
11774 | fi |
11775 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11776 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11777 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11779 | $as_echo_n "checking for $ac_word... " >&6; } | |
11780 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11781 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11782 | else |
11783 | if test -n "$LD_FOR_TARGET"; then | |
11784 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11785 | else | |
c6b750e1 DJ |
11786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11787 | for as_dir in $PATH | |
11788 | do | |
11789 | IFS=$as_save_IFS | |
11790 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11791 | for ac_exec_ext in '' $ac_executable_extensions; do |
11792 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11793 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11794 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11795 | break 2 |
11796 | fi | |
11797 | done | |
81ecdfbb RW |
11798 | done |
11799 | IFS=$as_save_IFS | |
c6b750e1 | 11800 | |
2429c060 PB |
11801 | fi |
11802 | fi | |
c6b750e1 | 11803 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11804 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11806 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11807 | else |
81ecdfbb RW |
11808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11809 | $as_echo "no" >&6; } | |
2429c060 | 11810 | fi |
c6b750e1 | 11811 | |
81ecdfbb | 11812 | |
2429c060 PB |
11813 | fi |
11814 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11815 | done | |
11816 | fi | |
c6b750e1 | 11817 | |
2429c060 PB |
11818 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11819 | set dummy ld | |
11820 | if test $build = $target ; then | |
11821 | LD_FOR_TARGET="$2" | |
11822 | else | |
11823 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11824 | fi | |
d3f5afc4 MS |
11825 | else |
11826 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
11827 | fi |
11828 | ||
3a35eeb3 PB |
11829 | else |
11830 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
11831 | fi |
11832 | ||
11833 | ||
11834 | ||
11835 | ||
11836 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11837 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11839 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11840 | if test -x $with_build_time_tools/lipo; then |
11841 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11842 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
11843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11844 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 11845 | else |
81ecdfbb RW |
11846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11847 | $as_echo "no" >&6; } | |
3a35eeb3 | 11848 | fi |
2429c060 PB |
11849 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11850 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
11851 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11852 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
11853 | fi |
11854 | fi | |
9a819804 AO |
11855 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11856 | # Extract the first word of "lipo", so it can be a program name with args. | |
11857 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
11858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11859 | $as_echo_n "checking for $ac_word... " >&6; } | |
11860 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11861 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11862 | else |
11863 | case $LIPO_FOR_TARGET in | |
11864 | [\\/]* | ?:[\\/]*) | |
11865 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11866 | ;; | |
11867 | *) | |
11868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11869 | for as_dir in $gcc_cv_tool_dirs | |
11870 | do | |
11871 | IFS=$as_save_IFS | |
11872 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11873 | for ac_exec_ext in '' $ac_executable_extensions; do |
11874 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11875 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11876 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11877 | break 2 |
11878 | fi | |
11879 | done | |
81ecdfbb RW |
11880 | done |
11881 | IFS=$as_save_IFS | |
9a819804 AO |
11882 | |
11883 | ;; | |
11884 | esac | |
11885 | fi | |
11886 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 11887 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11889 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 11890 | else |
81ecdfbb RW |
11891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11892 | $as_echo "no" >&6; } | |
9a819804 AO |
11893 | fi |
11894 | ||
81ecdfbb | 11895 | |
9a819804 AO |
11896 | fi |
11897 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11898 | ||
11899 | ||
11900 | if test -n "$LIPO_FOR_TARGET"; then | |
11901 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11902 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11903 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11904 | fi | |
11905 | ||
11906 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11907 | for ncn_progname in lipo; do | |
11908 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11909 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11911 | $as_echo_n "checking for $ac_word... " >&6; } | |
11912 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11913 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11914 | else |
9a819804 AO |
11915 | if test -n "$LIPO_FOR_TARGET"; then |
11916 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11917 | else | |
11918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11919 | for as_dir in $PATH | |
c6b750e1 DJ |
11920 | do |
11921 | IFS=$as_save_IFS | |
11922 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11923 | for ac_exec_ext in '' $ac_executable_extensions; do |
11924 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11925 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11926 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11927 | break 2 |
11928 | fi | |
11929 | done | |
81ecdfbb RW |
11930 | done |
11931 | IFS=$as_save_IFS | |
c6b750e1 | 11932 | |
2429c060 | 11933 | fi |
9a819804 AO |
11934 | fi |
11935 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 11936 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11938 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11939 | else |
81ecdfbb RW |
11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11941 | $as_echo "no" >&6; } | |
2429c060 PB |
11942 | fi |
11943 | ||
81ecdfbb | 11944 | |
9a819804 | 11945 | done |
2429c060 | 11946 | fi |
9a819804 AO |
11947 | |
11948 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11949 | for ncn_progname in lipo; do |
81ecdfbb RW |
11950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11951 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11952 | if test -x $with_build_time_tools/${ncn_progname}; then |
11953 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11955 | $as_echo "yes" >&6; } | |
2429c060 PB |
11956 | break |
11957 | else | |
81ecdfbb RW |
11958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11959 | $as_echo "no" >&6; } | |
2429c060 PB |
11960 | fi |
11961 | done | |
11962 | fi | |
11963 | ||
11964 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11965 | for ncn_progname in lipo; do | |
11966 | if test -n "$ncn_target_tool_prefix"; then | |
11967 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11968 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11970 | $as_echo_n "checking for $ac_word... " >&6; } | |
11971 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11972 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11973 | else |
11974 | if test -n "$LIPO_FOR_TARGET"; then | |
11975 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11976 | else | |
c6b750e1 DJ |
11977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11978 | for as_dir in $PATH | |
11979 | do | |
11980 | IFS=$as_save_IFS | |
11981 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11982 | for ac_exec_ext in '' $ac_executable_extensions; do |
11983 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11984 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11985 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11986 | break 2 |
11987 | fi | |
11988 | done | |
81ecdfbb RW |
11989 | done |
11990 | IFS=$as_save_IFS | |
c6b750e1 | 11991 | |
2429c060 PB |
11992 | fi |
11993 | fi | |
c6b750e1 | 11994 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11995 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11997 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11998 | else |
81ecdfbb RW |
11999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12000 | $as_echo "no" >&6; } | |
2429c060 PB |
12001 | fi |
12002 | ||
81ecdfbb | 12003 | |
2429c060 PB |
12004 | fi |
12005 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
12006 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12007 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12009 | $as_echo_n "checking for $ac_word... " >&6; } | |
12010 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
12011 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
12012 | else |
12013 | if test -n "$LIPO_FOR_TARGET"; then | |
12014 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12015 | else | |
c6b750e1 DJ |
12016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12017 | for as_dir in $PATH | |
12018 | do | |
12019 | IFS=$as_save_IFS | |
12020 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12021 | for ac_exec_ext in '' $ac_executable_extensions; do |
12022 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12023 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12024 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12025 | break 2 |
12026 | fi | |
12027 | done | |
81ecdfbb RW |
12028 | done |
12029 | IFS=$as_save_IFS | |
c6b750e1 | 12030 | |
2429c060 PB |
12031 | fi |
12032 | fi | |
c6b750e1 | 12033 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 12034 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
12035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12036 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 12037 | else |
81ecdfbb RW |
12038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12039 | $as_echo "no" >&6; } | |
2429c060 | 12040 | fi |
c6b750e1 | 12041 | |
81ecdfbb | 12042 | |
2429c060 PB |
12043 | fi |
12044 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
12045 | done | |
12046 | fi | |
c6b750e1 | 12047 | |
2429c060 PB |
12048 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
12049 | set dummy lipo | |
12050 | if test $build = $target ; then | |
12051 | LIPO_FOR_TARGET="$2" | |
12052 | else | |
12053 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12054 | fi | |
d3f5afc4 MS |
12055 | else |
12056 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
12057 | fi |
12058 | ||
3a35eeb3 PB |
12059 | else |
12060 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
12061 | fi |
12062 | ||
12063 | ||
12064 | ||
12065 | ||
12066 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
12067 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
12069 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12070 | if test -x $with_build_time_tools/nm; then |
12071 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
12072 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
12073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
12074 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 12075 | else |
81ecdfbb RW |
12076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12077 | $as_echo "no" >&6; } | |
3a35eeb3 | 12078 | fi |
2429c060 PB |
12079 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12080 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
12081 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
12082 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
12083 | fi |
12084 | fi | |
c6b750e1 | 12085 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12086 | # Extract the first word of "nm", so it can be a program name with args. |
12087 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
12088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12089 | $as_echo_n "checking for $ac_word... " >&6; } | |
12090 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
12091 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12092 | else |
c6b750e1 DJ |
12093 | case $NM_FOR_TARGET in |
12094 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12095 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
12096 | ;; | |
2429c060 | 12097 | *) |
c6b750e1 DJ |
12098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12099 | for as_dir in $gcc_cv_tool_dirs | |
12100 | do | |
12101 | IFS=$as_save_IFS | |
12102 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12103 | for ac_exec_ext in '' $ac_executable_extensions; do |
12104 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12105 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12106 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12107 | break 2 |
12108 | fi | |
12109 | done | |
81ecdfbb RW |
12110 | done |
12111 | IFS=$as_save_IFS | |
c6b750e1 | 12112 | |
2429c060 PB |
12113 | ;; |
12114 | esac | |
12115 | fi | |
c6b750e1 | 12116 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 12117 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12119 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 12120 | else |
81ecdfbb RW |
12121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12122 | $as_echo "no" >&6; } | |
2429c060 PB |
12123 | fi |
12124 | ||
81ecdfbb | 12125 | |
2429c060 PB |
12126 | fi |
12127 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
12128 | |
12129 | ||
12130 | if test -n "$NM_FOR_TARGET"; then | |
12131 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12132 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12133 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12134 | fi | |
12135 | ||
12136 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12137 | for ncn_progname in nm; do | |
12138 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12139 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12141 | $as_echo_n "checking for $ac_word... " >&6; } | |
12142 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12143 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12144 | else |
12145 | if test -n "$NM_FOR_TARGET"; then | |
12146 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12147 | else | |
12148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12149 | for as_dir in $PATH | |
12150 | do | |
12151 | IFS=$as_save_IFS | |
12152 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12153 | for ac_exec_ext in '' $ac_executable_extensions; do |
12154 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12155 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12156 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12157 | break 2 |
12158 | fi | |
12159 | done | |
81ecdfbb RW |
12160 | done |
12161 | IFS=$as_save_IFS | |
9a819804 AO |
12162 | |
12163 | fi | |
12164 | fi | |
12165 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12166 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
12167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12168 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 12169 | else |
81ecdfbb RW |
12170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12171 | $as_echo "no" >&6; } | |
9a819804 AO |
12172 | fi |
12173 | ||
81ecdfbb | 12174 | |
9a819804 AO |
12175 | done |
12176 | fi | |
12177 | ||
12178 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12179 | for ncn_progname in nm; do |
81ecdfbb RW |
12180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12181 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12182 | if test -x $with_build_time_tools/${ncn_progname}; then |
12183 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12185 | $as_echo "yes" >&6; } | |
2429c060 PB |
12186 | break |
12187 | else | |
81ecdfbb RW |
12188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12189 | $as_echo "no" >&6; } | |
2429c060 PB |
12190 | fi |
12191 | done | |
12192 | fi | |
12193 | ||
12194 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12195 | for ncn_progname in nm; do | |
12196 | if test -n "$ncn_target_tool_prefix"; then | |
12197 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12198 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12200 | $as_echo_n "checking for $ac_word... " >&6; } | |
12201 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12202 | $as_echo_n "(cached) " >&6 | |
859789af | 12203 | else |
55db4b87 PB |
12204 | if test -n "$NM_FOR_TARGET"; then |
12205 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12206 | else |
c6b750e1 DJ |
12207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12208 | for as_dir in $PATH | |
12209 | do | |
12210 | IFS=$as_save_IFS | |
12211 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12212 | for ac_exec_ext in '' $ac_executable_extensions; do |
12213 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12214 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12215 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12216 | break 2 |
12217 | fi | |
12218 | done | |
81ecdfbb RW |
12219 | done |
12220 | IFS=$as_save_IFS | |
c6b750e1 | 12221 | |
859789af AC |
12222 | fi |
12223 | fi | |
c6b750e1 | 12224 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 12225 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12227 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12228 | else |
81ecdfbb RW |
12229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12230 | $as_echo "no" >&6; } | |
859789af AC |
12231 | fi |
12232 | ||
81ecdfbb | 12233 | |
2429c060 PB |
12234 | fi |
12235 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12236 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12237 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12239 | $as_echo_n "checking for $ac_word... " >&6; } | |
12240 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12241 | $as_echo_n "(cached) " >&6 | |
859789af | 12242 | else |
05cbd757 PB |
12243 | if test -n "$NM_FOR_TARGET"; then |
12244 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12245 | else |
c6b750e1 DJ |
12246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12247 | for as_dir in $PATH | |
12248 | do | |
12249 | IFS=$as_save_IFS | |
12250 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12251 | for ac_exec_ext in '' $ac_executable_extensions; do |
12252 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12253 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12254 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12255 | break 2 |
12256 | fi | |
12257 | done | |
81ecdfbb RW |
12258 | done |
12259 | IFS=$as_save_IFS | |
c6b750e1 | 12260 | |
859789af AC |
12261 | fi |
12262 | fi | |
c6b750e1 | 12263 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 12264 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12266 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12267 | else |
81ecdfbb RW |
12268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12269 | $as_echo "no" >&6; } | |
859789af | 12270 | fi |
c6b750e1 | 12271 | |
81ecdfbb | 12272 | |
2429c060 PB |
12273 | fi |
12274 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12275 | done | |
12276 | fi | |
c6b750e1 | 12277 | |
05cbd757 PB |
12278 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12279 | set dummy nm | |
12280 | if test $build = $target ; then | |
12281 | NM_FOR_TARGET="$2" | |
859789af | 12282 | else |
05cbd757 | 12283 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 12284 | fi |
d3f5afc4 MS |
12285 | else |
12286 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
12287 | fi |
12288 | ||
3a35eeb3 PB |
12289 | else |
12290 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
12291 | fi |
12292 | ||
12293 | ||
12294 | ||
12295 | ||
12296 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
12297 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12299 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12300 | if test -x $with_build_time_tools/objdump; then |
12301 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12302 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
12303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12304 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12305 | else |
81ecdfbb RW |
12306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12307 | $as_echo "no" >&6; } | |
3a35eeb3 | 12308 | fi |
2429c060 PB |
12309 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12310 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
12311 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12312 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
12313 | fi |
12314 | fi | |
c6b750e1 | 12315 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12316 | # Extract the first word of "objdump", so it can be a program name with args. |
12317 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
12318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12319 | $as_echo_n "checking for $ac_word... " >&6; } | |
12320 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12321 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12322 | else |
c6b750e1 DJ |
12323 | case $OBJDUMP_FOR_TARGET in |
12324 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12325 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12326 | ;; | |
2429c060 | 12327 | *) |
c6b750e1 DJ |
12328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12329 | for as_dir in $gcc_cv_tool_dirs | |
12330 | do | |
12331 | IFS=$as_save_IFS | |
12332 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12333 | for ac_exec_ext in '' $ac_executable_extensions; do |
12334 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12335 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12336 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12337 | break 2 |
12338 | fi | |
12339 | done | |
81ecdfbb RW |
12340 | done |
12341 | IFS=$as_save_IFS | |
c6b750e1 | 12342 | |
2429c060 PB |
12343 | ;; |
12344 | esac | |
12345 | fi | |
c6b750e1 | 12346 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 12347 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12349 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 12350 | else |
81ecdfbb RW |
12351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12352 | $as_echo "no" >&6; } | |
2429c060 PB |
12353 | fi |
12354 | ||
81ecdfbb | 12355 | |
2429c060 PB |
12356 | fi |
12357 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
12358 | |
12359 | ||
12360 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12361 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12362 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12363 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12364 | fi | |
12365 | ||
12366 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12367 | for ncn_progname in objdump; do | |
12368 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12369 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12371 | $as_echo_n "checking for $ac_word... " >&6; } | |
12372 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12373 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12374 | else |
12375 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12376 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12377 | else | |
12378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12379 | for as_dir in $PATH | |
12380 | do | |
12381 | IFS=$as_save_IFS | |
12382 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12383 | for ac_exec_ext in '' $ac_executable_extensions; do |
12384 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12385 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12386 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12387 | break 2 |
12388 | fi | |
12389 | done | |
81ecdfbb RW |
12390 | done |
12391 | IFS=$as_save_IFS | |
9a819804 AO |
12392 | |
12393 | fi | |
12394 | fi | |
12395 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12396 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
12397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12398 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 12399 | else |
81ecdfbb RW |
12400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12401 | $as_echo "no" >&6; } | |
9a819804 AO |
12402 | fi |
12403 | ||
81ecdfbb | 12404 | |
9a819804 AO |
12405 | done |
12406 | fi | |
12407 | ||
12408 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12409 | for ncn_progname in objdump; do |
81ecdfbb RW |
12410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12411 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12412 | if test -x $with_build_time_tools/${ncn_progname}; then |
12413 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12415 | $as_echo "yes" >&6; } | |
2429c060 PB |
12416 | break |
12417 | else | |
81ecdfbb RW |
12418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12419 | $as_echo "no" >&6; } | |
2429c060 PB |
12420 | fi |
12421 | done | |
12422 | fi | |
12423 | ||
12424 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12425 | for ncn_progname in objdump; do | |
12426 | if test -n "$ncn_target_tool_prefix"; then | |
12427 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12428 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12430 | $as_echo_n "checking for $ac_word... " >&6; } | |
12431 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12432 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12433 | else |
12434 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12435 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12436 | else | |
c6b750e1 DJ |
12437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12438 | for as_dir in $PATH | |
12439 | do | |
12440 | IFS=$as_save_IFS | |
12441 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12442 | for ac_exec_ext in '' $ac_executable_extensions; do |
12443 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12444 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12446 | break 2 |
12447 | fi | |
12448 | done | |
81ecdfbb RW |
12449 | done |
12450 | IFS=$as_save_IFS | |
c6b750e1 | 12451 | |
5ae72758 DJ |
12452 | fi |
12453 | fi | |
c6b750e1 | 12454 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12455 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12457 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12458 | else |
81ecdfbb RW |
12459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12460 | $as_echo "no" >&6; } | |
5ae72758 DJ |
12461 | fi |
12462 | ||
81ecdfbb | 12463 | |
2429c060 PB |
12464 | fi |
12465 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12466 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12467 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12469 | $as_echo_n "checking for $ac_word... " >&6; } | |
12470 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12471 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12472 | else |
12473 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12474 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12475 | else | |
c6b750e1 DJ |
12476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12477 | for as_dir in $PATH | |
12478 | do | |
12479 | IFS=$as_save_IFS | |
12480 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12481 | for ac_exec_ext in '' $ac_executable_extensions; do |
12482 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12483 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12484 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12485 | break 2 |
12486 | fi | |
12487 | done | |
81ecdfbb RW |
12488 | done |
12489 | IFS=$as_save_IFS | |
c6b750e1 | 12490 | |
5ae72758 DJ |
12491 | fi |
12492 | fi | |
c6b750e1 | 12493 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12494 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12496 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12497 | else |
81ecdfbb RW |
12498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12499 | $as_echo "no" >&6; } | |
5ae72758 | 12500 | fi |
c6b750e1 | 12501 | |
81ecdfbb | 12502 | |
2429c060 PB |
12503 | fi |
12504 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12505 | done | |
12506 | fi | |
c6b750e1 | 12507 | |
5ae72758 DJ |
12508 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12509 | set dummy objdump | |
12510 | if test $build = $target ; then | |
12511 | OBJDUMP_FOR_TARGET="$2" | |
12512 | else | |
12513 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12514 | fi | |
d3f5afc4 MS |
12515 | else |
12516 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
12517 | fi |
12518 | ||
3a35eeb3 PB |
12519 | else |
12520 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
12521 | fi |
12522 | ||
12523 | ||
12524 | ||
12525 | ||
12526 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12527 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12529 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12530 | if test -x $with_build_time_tools/ranlib; then |
12531 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12532 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
12533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12534 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 12535 | else |
81ecdfbb RW |
12536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12537 | $as_echo "no" >&6; } | |
3a35eeb3 | 12538 | fi |
2429c060 PB |
12539 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12540 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
12541 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12542 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
12543 | fi |
12544 | fi | |
c6b750e1 | 12545 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12546 | # Extract the first word of "ranlib", so it can be a program name with args. |
12547 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
12548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12549 | $as_echo_n "checking for $ac_word... " >&6; } | |
12550 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12551 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12552 | else |
c6b750e1 DJ |
12553 | case $RANLIB_FOR_TARGET in |
12554 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12555 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12556 | ;; | |
2429c060 | 12557 | *) |
c6b750e1 DJ |
12558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12559 | for as_dir in $gcc_cv_tool_dirs | |
12560 | do | |
12561 | IFS=$as_save_IFS | |
12562 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12563 | for ac_exec_ext in '' $ac_executable_extensions; do |
12564 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12565 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12566 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12567 | break 2 |
12568 | fi | |
12569 | done | |
81ecdfbb RW |
12570 | done |
12571 | IFS=$as_save_IFS | |
c6b750e1 | 12572 | |
2429c060 PB |
12573 | ;; |
12574 | esac | |
12575 | fi | |
c6b750e1 | 12576 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 12577 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12579 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 12580 | else |
81ecdfbb RW |
12581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12582 | $as_echo "no" >&6; } | |
2429c060 PB |
12583 | fi |
12584 | ||
81ecdfbb | 12585 | |
2429c060 PB |
12586 | fi |
12587 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
12588 | |
12589 | ||
12590 | if test -n "$RANLIB_FOR_TARGET"; then | |
12591 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12592 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12593 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12594 | fi | |
12595 | ||
12596 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12597 | for ncn_progname in ranlib; do | |
12598 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12599 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12601 | $as_echo_n "checking for $ac_word... " >&6; } | |
12602 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12603 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12604 | else |
12605 | if test -n "$RANLIB_FOR_TARGET"; then | |
12606 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12607 | else | |
12608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12609 | for as_dir in $PATH | |
12610 | do | |
12611 | IFS=$as_save_IFS | |
12612 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12613 | for ac_exec_ext in '' $ac_executable_extensions; do |
12614 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12615 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12616 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12617 | break 2 |
12618 | fi | |
12619 | done | |
81ecdfbb RW |
12620 | done |
12621 | IFS=$as_save_IFS | |
9a819804 AO |
12622 | |
12623 | fi | |
12624 | fi | |
12625 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12626 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
12627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12628 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 12629 | else |
81ecdfbb RW |
12630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12631 | $as_echo "no" >&6; } | |
9a819804 AO |
12632 | fi |
12633 | ||
81ecdfbb | 12634 | |
9a819804 AO |
12635 | done |
12636 | fi | |
12637 | ||
12638 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12639 | for ncn_progname in ranlib; do |
81ecdfbb RW |
12640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12641 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12642 | if test -x $with_build_time_tools/${ncn_progname}; then |
12643 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12645 | $as_echo "yes" >&6; } | |
2429c060 PB |
12646 | break |
12647 | else | |
81ecdfbb RW |
12648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12649 | $as_echo "no" >&6; } | |
2429c060 PB |
12650 | fi |
12651 | done | |
12652 | fi | |
12653 | ||
12654 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12655 | for ncn_progname in ranlib; do | |
12656 | if test -n "$ncn_target_tool_prefix"; then | |
12657 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12658 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12660 | $as_echo_n "checking for $ac_word... " >&6; } | |
12661 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12662 | $as_echo_n "(cached) " >&6 | |
859789af | 12663 | else |
55db4b87 PB |
12664 | if test -n "$RANLIB_FOR_TARGET"; then |
12665 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12666 | else |
c6b750e1 DJ |
12667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12668 | for as_dir in $PATH | |
12669 | do | |
12670 | IFS=$as_save_IFS | |
12671 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12672 | for ac_exec_ext in '' $ac_executable_extensions; do |
12673 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12674 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12675 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12676 | break 2 |
12677 | fi | |
12678 | done | |
81ecdfbb RW |
12679 | done |
12680 | IFS=$as_save_IFS | |
c6b750e1 | 12681 | |
859789af AC |
12682 | fi |
12683 | fi | |
c6b750e1 | 12684 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 12685 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12687 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12688 | else |
81ecdfbb RW |
12689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12690 | $as_echo "no" >&6; } | |
859789af AC |
12691 | fi |
12692 | ||
81ecdfbb | 12693 | |
2429c060 PB |
12694 | fi |
12695 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12696 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12697 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12699 | $as_echo_n "checking for $ac_word... " >&6; } | |
12700 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12701 | $as_echo_n "(cached) " >&6 | |
859789af | 12702 | else |
05cbd757 PB |
12703 | if test -n "$RANLIB_FOR_TARGET"; then |
12704 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12705 | else |
c6b750e1 DJ |
12706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12707 | for as_dir in $PATH | |
12708 | do | |
12709 | IFS=$as_save_IFS | |
12710 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12711 | for ac_exec_ext in '' $ac_executable_extensions; do |
12712 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12713 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12715 | break 2 |
12716 | fi | |
12717 | done | |
81ecdfbb RW |
12718 | done |
12719 | IFS=$as_save_IFS | |
c6b750e1 | 12720 | |
859789af AC |
12721 | fi |
12722 | fi | |
c6b750e1 | 12723 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 12724 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12726 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12727 | else |
81ecdfbb RW |
12728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12729 | $as_echo "no" >&6; } | |
859789af | 12730 | fi |
c6b750e1 | 12731 | |
81ecdfbb | 12732 | |
2429c060 PB |
12733 | fi |
12734 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12735 | done | |
12736 | fi | |
c6b750e1 | 12737 | |
2429c060 PB |
12738 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12739 | set dummy ranlib | |
12740 | if test $build = $target ; then | |
12741 | RANLIB_FOR_TARGET="$2" | |
12742 | else | |
12743 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 12744 | fi |
d3f5afc4 MS |
12745 | else |
12746 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 12747 | fi |
05cbd757 | 12748 | |
3a35eeb3 PB |
12749 | else |
12750 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
12751 | fi |
12752 | ||
2429c060 PB |
12753 | |
12754 | ||
12755 | ||
b121d7d4 DD |
12756 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
12757 | if test -n "$with_build_time_tools"; then | |
12758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
12759 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
12760 | if test -x $with_build_time_tools/readelf; then | |
12761 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
12762 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
12764 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
12765 | else | |
12766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12767 | $as_echo "no" >&6; } | |
12768 | fi | |
12769 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12770 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
12771 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
12772 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12773 | fi | |
12774 | fi | |
12775 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12776 | # Extract the first word of "readelf", so it can be a program name with args. | |
12777 | set dummy readelf; ac_word=$2 | |
12778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12779 | $as_echo_n "checking for $ac_word... " >&6; } | |
12780 | if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then : | |
12781 | $as_echo_n "(cached) " >&6 | |
12782 | else | |
12783 | case $READELF_FOR_TARGET in | |
12784 | [\\/]* | ?:[\\/]*) | |
12785 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
12786 | ;; | |
12787 | *) | |
12788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12789 | for as_dir in $gcc_cv_tool_dirs | |
12790 | do | |
12791 | IFS=$as_save_IFS | |
12792 | test -z "$as_dir" && as_dir=. | |
12793 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12794 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12795 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12796 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12797 | break 2 | |
12798 | fi | |
12799 | done | |
12800 | done | |
12801 | IFS=$as_save_IFS | |
12802 | ||
12803 | ;; | |
12804 | esac | |
12805 | fi | |
12806 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12807 | if test -n "$READELF_FOR_TARGET"; then | |
12808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12809 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12810 | else | |
12811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12812 | $as_echo "no" >&6; } | |
12813 | fi | |
12814 | ||
12815 | ||
12816 | fi | |
12817 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
12818 | ||
12819 | ||
12820 | if test -n "$READELF_FOR_TARGET"; then | |
12821 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12822 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12823 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12824 | fi | |
12825 | ||
12826 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12827 | for ncn_progname in readelf; do | |
12828 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12829 | set dummy ${ncn_progname}; ac_word=$2 | |
12830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12831 | $as_echo_n "checking for $ac_word... " >&6; } | |
12832 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12833 | $as_echo_n "(cached) " >&6 | |
12834 | else | |
12835 | if test -n "$READELF_FOR_TARGET"; then | |
12836 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12837 | else | |
12838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12839 | for as_dir in $PATH | |
12840 | do | |
12841 | IFS=$as_save_IFS | |
12842 | test -z "$as_dir" && as_dir=. | |
12843 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12844 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12845 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12847 | break 2 | |
12848 | fi | |
12849 | done | |
12850 | done | |
12851 | IFS=$as_save_IFS | |
12852 | ||
12853 | fi | |
12854 | fi | |
12855 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12856 | if test -n "$READELF_FOR_TARGET"; then | |
12857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12858 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12859 | else | |
12860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12861 | $as_echo "no" >&6; } | |
12862 | fi | |
12863 | ||
12864 | ||
12865 | done | |
12866 | fi | |
12867 | ||
12868 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12869 | for ncn_progname in readelf; do | |
12870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12871 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12872 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12873 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12875 | $as_echo "yes" >&6; } | |
12876 | break | |
12877 | else | |
12878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12879 | $as_echo "no" >&6; } | |
12880 | fi | |
12881 | done | |
12882 | fi | |
12883 | ||
12884 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12885 | for ncn_progname in readelf; do | |
12886 | if test -n "$ncn_target_tool_prefix"; then | |
12887 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12888 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12890 | $as_echo_n "checking for $ac_word... " >&6; } | |
12891 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12892 | $as_echo_n "(cached) " >&6 | |
12893 | else | |
12894 | if test -n "$READELF_FOR_TARGET"; then | |
12895 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12896 | else | |
12897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12898 | for as_dir in $PATH | |
12899 | do | |
12900 | IFS=$as_save_IFS | |
12901 | test -z "$as_dir" && as_dir=. | |
12902 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12903 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12904 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12905 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12906 | break 2 | |
12907 | fi | |
12908 | done | |
12909 | done | |
12910 | IFS=$as_save_IFS | |
12911 | ||
12912 | fi | |
12913 | fi | |
12914 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12915 | if test -n "$READELF_FOR_TARGET"; then | |
12916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12917 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12918 | else | |
12919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12920 | $as_echo "no" >&6; } | |
12921 | fi | |
12922 | ||
12923 | ||
12924 | fi | |
12925 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
12926 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12927 | set dummy ${ncn_progname}; ac_word=$2 | |
12928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12929 | $as_echo_n "checking for $ac_word... " >&6; } | |
12930 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12931 | $as_echo_n "(cached) " >&6 | |
12932 | else | |
12933 | if test -n "$READELF_FOR_TARGET"; then | |
12934 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12935 | else | |
12936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12937 | for as_dir in $PATH | |
12938 | do | |
12939 | IFS=$as_save_IFS | |
12940 | test -z "$as_dir" && as_dir=. | |
12941 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12942 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12943 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12944 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12945 | break 2 | |
12946 | fi | |
12947 | done | |
12948 | done | |
12949 | IFS=$as_save_IFS | |
12950 | ||
12951 | fi | |
12952 | fi | |
12953 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12954 | if test -n "$READELF_FOR_TARGET"; then | |
12955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12956 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12957 | else | |
12958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12959 | $as_echo "no" >&6; } | |
12960 | fi | |
12961 | ||
12962 | ||
12963 | fi | |
12964 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
12965 | done | |
12966 | fi | |
12967 | ||
12968 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
12969 | set dummy readelf | |
12970 | if test $build = $target ; then | |
12971 | READELF_FOR_TARGET="$2" | |
12972 | else | |
12973 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12974 | fi | |
12975 | else | |
12976 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
12977 | fi | |
12978 | ||
12979 | else | |
12980 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12981 | fi | |
12982 | ||
12983 | ||
12984 | ||
12985 | ||
2429c060 PB |
12986 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
12987 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
12989 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12990 | if test -x $with_build_time_tools/strip; then |
12991 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
12992 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
12993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
12994 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12995 | else |
81ecdfbb RW |
12996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12997 | $as_echo "no" >&6; } | |
3a35eeb3 | 12998 | fi |
2429c060 PB |
12999 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13000 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
13001 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13002 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
13003 | fi |
13004 | fi | |
c6b750e1 | 13005 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13006 | # Extract the first word of "strip", so it can be a program name with args. |
13007 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
13008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13009 | $as_echo_n "checking for $ac_word... " >&6; } | |
13010 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
13011 | $as_echo_n "(cached) " >&6 | |
2429c060 | 13012 | else |
c6b750e1 DJ |
13013 | case $STRIP_FOR_TARGET in |
13014 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13015 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13016 | ;; | |
2429c060 | 13017 | *) |
c6b750e1 DJ |
13018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13019 | for as_dir in $gcc_cv_tool_dirs | |
13020 | do | |
13021 | IFS=$as_save_IFS | |
13022 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13023 | for ac_exec_ext in '' $ac_executable_extensions; do |
13024 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13025 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13027 | break 2 |
13028 | fi | |
13029 | done | |
81ecdfbb RW |
13030 | done |
13031 | IFS=$as_save_IFS | |
c6b750e1 | 13032 | |
2429c060 PB |
13033 | ;; |
13034 | esac | |
13035 | fi | |
c6b750e1 | 13036 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 13037 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13039 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 13040 | else |
81ecdfbb RW |
13041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13042 | $as_echo "no" >&6; } | |
2429c060 PB |
13043 | fi |
13044 | ||
81ecdfbb | 13045 | |
2429c060 PB |
13046 | fi |
13047 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
13048 | |
13049 | ||
13050 | if test -n "$STRIP_FOR_TARGET"; then | |
13051 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13052 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13053 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13054 | fi | |
13055 | ||
13056 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13057 | for ncn_progname in strip; do | |
13058 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13059 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13061 | $as_echo_n "checking for $ac_word... " >&6; } | |
13062 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13063 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
13064 | else |
13065 | if test -n "$STRIP_FOR_TARGET"; then | |
13066 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13067 | else | |
13068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13069 | for as_dir in $PATH | |
13070 | do | |
13071 | IFS=$as_save_IFS | |
13072 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13073 | for ac_exec_ext in '' $ac_executable_extensions; do |
13074 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 13075 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13077 | break 2 |
13078 | fi | |
13079 | done | |
81ecdfbb RW |
13080 | done |
13081 | IFS=$as_save_IFS | |
9a819804 AO |
13082 | |
13083 | fi | |
13084 | fi | |
13085 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13086 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
13087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13088 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 13089 | else |
81ecdfbb RW |
13090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13091 | $as_echo "no" >&6; } | |
9a819804 AO |
13092 | fi |
13093 | ||
81ecdfbb | 13094 | |
9a819804 AO |
13095 | done |
13096 | fi | |
13097 | ||
13098 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13099 | for ncn_progname in strip; do |
81ecdfbb RW |
13100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13101 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13102 | if test -x $with_build_time_tools/${ncn_progname}; then |
13103 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13105 | $as_echo "yes" >&6; } | |
2429c060 PB |
13106 | break |
13107 | else | |
81ecdfbb RW |
13108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13109 | $as_echo "no" >&6; } | |
2429c060 PB |
13110 | fi |
13111 | done | |
13112 | fi | |
13113 | ||
13114 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13115 | for ncn_progname in strip; do | |
13116 | if test -n "$ncn_target_tool_prefix"; then | |
13117 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13118 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13120 | $as_echo_n "checking for $ac_word... " >&6; } | |
13121 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13122 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
13123 | else |
13124 | if test -n "$STRIP_FOR_TARGET"; then | |
13125 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
13126 | else |
13127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13128 | for as_dir in $PATH | |
13129 | do | |
13130 | IFS=$as_save_IFS | |
13131 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13132 | for ac_exec_ext in '' $ac_executable_extensions; do |
13133 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13134 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13135 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13136 | break 2 |
13137 | fi | |
13138 | done | |
81ecdfbb RW |
13139 | done |
13140 | IFS=$as_save_IFS | |
c6b750e1 | 13141 | |
7e0f7140 GK |
13142 | fi |
13143 | fi | |
c6b750e1 | 13144 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13145 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13147 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13148 | else |
81ecdfbb RW |
13149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13150 | $as_echo "no" >&6; } | |
7e0f7140 GK |
13151 | fi |
13152 | ||
81ecdfbb | 13153 | |
2429c060 PB |
13154 | fi |
13155 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13156 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13157 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13159 | $as_echo_n "checking for $ac_word... " >&6; } | |
13160 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13161 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
13162 | else |
13163 | if test -n "$STRIP_FOR_TARGET"; then | |
13164 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13165 | else | |
c6b750e1 DJ |
13166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13167 | for as_dir in $PATH | |
13168 | do | |
13169 | IFS=$as_save_IFS | |
13170 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13171 | for ac_exec_ext in '' $ac_executable_extensions; do |
13172 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13173 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13174 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13175 | break 2 |
13176 | fi | |
13177 | done | |
81ecdfbb RW |
13178 | done |
13179 | IFS=$as_save_IFS | |
c6b750e1 | 13180 | |
7e0f7140 GK |
13181 | fi |
13182 | fi | |
c6b750e1 | 13183 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13184 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13186 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13187 | else |
81ecdfbb RW |
13188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13189 | $as_echo "no" >&6; } | |
7e0f7140 | 13190 | fi |
c6b750e1 | 13191 | |
81ecdfbb | 13192 | |
2429c060 PB |
13193 | fi |
13194 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13195 | done | |
13196 | fi | |
c6b750e1 | 13197 | |
7e0f7140 GK |
13198 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13199 | set dummy strip | |
13200 | if test $build = $target ; then | |
13201 | STRIP_FOR_TARGET="$2" | |
13202 | else | |
13203 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13204 | fi | |
d3f5afc4 MS |
13205 | else |
13206 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
13207 | fi |
13208 | ||
3a35eeb3 PB |
13209 | else |
13210 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
13211 | fi |
13212 | ||
13213 | ||
13214 | ||
13215 | ||
13216 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13217 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13219 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13220 | if test -x $with_build_time_tools/windres; then |
13221 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13222 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
13223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13224 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 13225 | else |
81ecdfbb RW |
13226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13227 | $as_echo "no" >&6; } | |
3a35eeb3 | 13228 | fi |
2429c060 PB |
13229 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13230 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
13231 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13232 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
13233 | fi |
13234 | fi | |
c6b750e1 | 13235 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13236 | # Extract the first word of "windres", so it can be a program name with args. |
13237 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
13238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13239 | $as_echo_n "checking for $ac_word... " >&6; } | |
13240 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
13241 | $as_echo_n "(cached) " >&6 | |
2429c060 | 13242 | else |
c6b750e1 DJ |
13243 | case $WINDRES_FOR_TARGET in |
13244 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13245 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13246 | ;; | |
2429c060 | 13247 | *) |
c6b750e1 DJ |
13248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13249 | for as_dir in $gcc_cv_tool_dirs | |
13250 | do | |
13251 | IFS=$as_save_IFS | |
13252 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13253 | for ac_exec_ext in '' $ac_executable_extensions; do |
13254 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13255 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13256 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13257 | break 2 |
13258 | fi | |
13259 | done | |
81ecdfbb RW |
13260 | done |
13261 | IFS=$as_save_IFS | |
c6b750e1 | 13262 | |
2429c060 PB |
13263 | ;; |
13264 | esac | |
13265 | fi | |
c6b750e1 | 13266 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 13267 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13269 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 13270 | else |
81ecdfbb RW |
13271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13272 | $as_echo "no" >&6; } | |
2429c060 PB |
13273 | fi |
13274 | ||
81ecdfbb | 13275 | |
2429c060 PB |
13276 | fi |
13277 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
13278 | |
13279 | ||
13280 | if test -n "$WINDRES_FOR_TARGET"; then | |
13281 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13282 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13283 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13284 | fi | |
13285 | ||
13286 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13287 | for ncn_progname in windres; do | |
13288 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13289 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13291 | $as_echo_n "checking for $ac_word... " >&6; } | |
13292 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13293 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
13294 | else |
13295 | if test -n "$WINDRES_FOR_TARGET"; then | |
13296 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13297 | else | |
13298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13299 | for as_dir in $PATH | |
13300 | do | |
13301 | IFS=$as_save_IFS | |
13302 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13303 | for ac_exec_ext in '' $ac_executable_extensions; do |
13304 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 13305 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13306 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13307 | break 2 |
13308 | fi | |
13309 | done | |
81ecdfbb RW |
13310 | done |
13311 | IFS=$as_save_IFS | |
9a819804 AO |
13312 | |
13313 | fi | |
13314 | fi | |
13315 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13316 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
13317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13318 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 13319 | else |
81ecdfbb RW |
13320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13321 | $as_echo "no" >&6; } | |
9a819804 AO |
13322 | fi |
13323 | ||
81ecdfbb | 13324 | |
9a819804 AO |
13325 | done |
13326 | fi | |
13327 | ||
13328 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13329 | for ncn_progname in windres; do |
81ecdfbb RW |
13330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13331 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13332 | if test -x $with_build_time_tools/${ncn_progname}; then |
13333 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13335 | $as_echo "yes" >&6; } | |
2429c060 PB |
13336 | break |
13337 | else | |
81ecdfbb RW |
13338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13339 | $as_echo "no" >&6; } | |
2429c060 PB |
13340 | fi |
13341 | done | |
13342 | fi | |
13343 | ||
13344 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13345 | for ncn_progname in windres; do | |
13346 | if test -n "$ncn_target_tool_prefix"; then | |
13347 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13348 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13350 | $as_echo_n "checking for $ac_word... " >&6; } | |
13351 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13352 | $as_echo_n "(cached) " >&6 | |
859789af | 13353 | else |
55db4b87 PB |
13354 | if test -n "$WINDRES_FOR_TARGET"; then |
13355 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13356 | else |
c6b750e1 DJ |
13357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13358 | for as_dir in $PATH | |
13359 | do | |
13360 | IFS=$as_save_IFS | |
13361 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13362 | for ac_exec_ext in '' $ac_executable_extensions; do |
13363 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13364 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13366 | break 2 |
13367 | fi | |
13368 | done | |
81ecdfbb RW |
13369 | done |
13370 | IFS=$as_save_IFS | |
c6b750e1 | 13371 | |
859789af AC |
13372 | fi |
13373 | fi | |
c6b750e1 | 13374 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 13375 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13377 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13378 | else |
81ecdfbb RW |
13379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13380 | $as_echo "no" >&6; } | |
859789af AC |
13381 | fi |
13382 | ||
81ecdfbb | 13383 | |
2429c060 PB |
13384 | fi |
13385 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13386 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13387 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13389 | $as_echo_n "checking for $ac_word... " >&6; } | |
13390 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13391 | $as_echo_n "(cached) " >&6 | |
859789af | 13392 | else |
05cbd757 PB |
13393 | if test -n "$WINDRES_FOR_TARGET"; then |
13394 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13395 | else |
c6b750e1 DJ |
13396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13397 | for as_dir in $PATH | |
13398 | do | |
13399 | IFS=$as_save_IFS | |
13400 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13401 | for ac_exec_ext in '' $ac_executable_extensions; do |
13402 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13403 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13404 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13405 | break 2 |
13406 | fi | |
13407 | done | |
81ecdfbb RW |
13408 | done |
13409 | IFS=$as_save_IFS | |
c6b750e1 | 13410 | |
859789af AC |
13411 | fi |
13412 | fi | |
c6b750e1 | 13413 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 13414 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13416 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13417 | else |
81ecdfbb RW |
13418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13419 | $as_echo "no" >&6; } | |
859789af | 13420 | fi |
c6b750e1 | 13421 | |
81ecdfbb | 13422 | |
2429c060 PB |
13423 | fi |
13424 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13425 | done | |
13426 | fi | |
c6b750e1 | 13427 | |
05cbd757 PB |
13428 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13429 | set dummy windres | |
13430 | if test $build = $target ; then | |
13431 | WINDRES_FOR_TARGET="$2" | |
859789af | 13432 | else |
05cbd757 | 13433 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 13434 | fi |
d3f5afc4 MS |
13435 | else |
13436 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
13437 | fi |
13438 | ||
3a35eeb3 PB |
13439 | else |
13440 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
13441 | fi |
13442 | ||
852e5f18 | 13443 | |
0c24b341 NC |
13444 | |
13445 | ||
13446 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13447 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13449 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13450 | if test -x $with_build_time_tools/windmc; then |
13451 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13452 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
13453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13454 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13455 | else |
81ecdfbb RW |
13456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13457 | $as_echo "no" >&6; } | |
0c24b341 NC |
13458 | fi |
13459 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13460 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
13461 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
13462 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13463 | fi | |
13464 | fi | |
13465 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13466 | # Extract the first word of "windmc", so it can be a program name with args. | |
13467 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
13468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13469 | $as_echo_n "checking for $ac_word... " >&6; } | |
13470 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13471 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13472 | else |
13473 | case $WINDMC_FOR_TARGET in | |
13474 | [\\/]* | ?:[\\/]*) | |
13475 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13476 | ;; | |
13477 | *) | |
13478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13479 | for as_dir in $gcc_cv_tool_dirs | |
13480 | do | |
13481 | IFS=$as_save_IFS | |
13482 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13483 | for ac_exec_ext in '' $ac_executable_extensions; do |
13484 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13485 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13486 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13487 | break 2 |
13488 | fi | |
13489 | done | |
81ecdfbb RW |
13490 | done |
13491 | IFS=$as_save_IFS | |
0c24b341 NC |
13492 | |
13493 | ;; | |
13494 | esac | |
13495 | fi | |
13496 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 13497 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
13498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13499 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13500 | else |
81ecdfbb RW |
13501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13502 | $as_echo "no" >&6; } | |
0c24b341 NC |
13503 | fi |
13504 | ||
81ecdfbb | 13505 | |
0c24b341 NC |
13506 | fi |
13507 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13508 | ||
13509 | ||
13510 | if test -n "$WINDMC_FOR_TARGET"; then | |
13511 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13512 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13513 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13514 | fi | |
13515 | ||
13516 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13517 | for ncn_progname in windmc; do | |
13518 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13519 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13521 | $as_echo_n "checking for $ac_word... " >&6; } | |
13522 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13523 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13524 | else |
13525 | if test -n "$WINDMC_FOR_TARGET"; then | |
13526 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13527 | else | |
13528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13529 | for as_dir in $PATH | |
13530 | do | |
13531 | IFS=$as_save_IFS | |
13532 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13533 | for ac_exec_ext in '' $ac_executable_extensions; do |
13534 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13535 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13536 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13537 | break 2 |
13538 | fi | |
13539 | done | |
81ecdfbb RW |
13540 | done |
13541 | IFS=$as_save_IFS | |
0c24b341 NC |
13542 | |
13543 | fi | |
13544 | fi | |
13545 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13546 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13548 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13549 | else |
81ecdfbb RW |
13550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13551 | $as_echo "no" >&6; } | |
0c24b341 NC |
13552 | fi |
13553 | ||
81ecdfbb | 13554 | |
0c24b341 NC |
13555 | done |
13556 | fi | |
13557 | ||
13558 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13559 | for ncn_progname in windmc; do | |
81ecdfbb RW |
13560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13561 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13562 | if test -x $with_build_time_tools/${ncn_progname}; then |
13563 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13565 | $as_echo "yes" >&6; } | |
0c24b341 NC |
13566 | break |
13567 | else | |
81ecdfbb RW |
13568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13569 | $as_echo "no" >&6; } | |
0c24b341 NC |
13570 | fi |
13571 | done | |
13572 | fi | |
13573 | ||
13574 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13575 | for ncn_progname in windmc; do | |
13576 | if test -n "$ncn_target_tool_prefix"; then | |
13577 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13578 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13580 | $as_echo_n "checking for $ac_word... " >&6; } | |
13581 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13582 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13583 | else |
13584 | if test -n "$WINDMC_FOR_TARGET"; then | |
13585 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13586 | else | |
13587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13588 | for as_dir in $PATH | |
13589 | do | |
13590 | IFS=$as_save_IFS | |
13591 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13592 | for ac_exec_ext in '' $ac_executable_extensions; do |
13593 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13594 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13595 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13596 | break 2 |
13597 | fi | |
13598 | done | |
81ecdfbb RW |
13599 | done |
13600 | IFS=$as_save_IFS | |
0c24b341 NC |
13601 | |
13602 | fi | |
13603 | fi | |
13604 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13605 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13607 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13608 | else |
81ecdfbb RW |
13609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13610 | $as_echo "no" >&6; } | |
0c24b341 NC |
13611 | fi |
13612 | ||
81ecdfbb | 13613 | |
0c24b341 NC |
13614 | fi |
13615 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13616 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13617 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13619 | $as_echo_n "checking for $ac_word... " >&6; } | |
13620 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13621 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13622 | else |
13623 | if test -n "$WINDMC_FOR_TARGET"; then | |
13624 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13625 | else | |
13626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13627 | for as_dir in $PATH | |
13628 | do | |
13629 | IFS=$as_save_IFS | |
13630 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13631 | for ac_exec_ext in '' $ac_executable_extensions; do |
13632 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13633 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13634 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13635 | break 2 |
13636 | fi | |
13637 | done | |
81ecdfbb RW |
13638 | done |
13639 | IFS=$as_save_IFS | |
0c24b341 NC |
13640 | |
13641 | fi | |
13642 | fi | |
13643 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13644 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13646 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13647 | else |
81ecdfbb RW |
13648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13649 | $as_echo "no" >&6; } | |
0c24b341 NC |
13650 | fi |
13651 | ||
81ecdfbb | 13652 | |
0c24b341 NC |
13653 | fi |
13654 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13655 | done | |
13656 | fi | |
13657 | ||
13658 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13659 | set dummy windmc | |
13660 | if test $build = $target ; then | |
13661 | WINDMC_FOR_TARGET="$2" | |
13662 | else | |
13663 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13664 | fi | |
13665 | else | |
13666 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
13667 | fi | |
13668 | ||
13669 | else | |
13670 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13671 | fi | |
13672 | ||
13673 | ||
be01d343 PB |
13674 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13675 | ||
81ecdfbb RW |
13676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13677 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 13678 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13679 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13680 | # We already found the complete path | |
b8025f34 | 13681 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13683 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13684 | else |
13685 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13687 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13688 | fi |
be01d343 PB |
13689 | else |
13690 | ok=yes | |
13691 | case " ${configdirs} " in | |
13692 | *" binutils "*) ;; | |
13693 | *) ok=no ;; | |
13694 | esac | |
c6b750e1 | 13695 | |
be01d343 PB |
13696 | if test $ok = yes; then |
13697 | # An in-tree tool is available and we can use it | |
13698 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
13699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13700 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13701 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13702 | # We already found the complete path | |
b8025f34 | 13703 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13705 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13706 | elif test "x$target" = "x$host"; then |
13707 | # We can use an host tool | |
13708 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
13709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13710 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13711 | else |
13712 | # We need a cross tool | |
81ecdfbb RW |
13713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13714 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13715 | fi |
13716 | fi | |
4b900473 | 13717 | |
81ecdfbb RW |
13718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13719 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 13720 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13721 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13722 | # We already found the complete path | |
b8025f34 | 13723 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13725 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13726 | else |
13727 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13729 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13730 | fi |
be01d343 PB |
13731 | else |
13732 | ok=yes | |
13733 | case " ${configdirs} " in | |
13734 | *" gas "*) ;; | |
13735 | *) ok=no ;; | |
13736 | esac | |
c6b750e1 | 13737 | |
be01d343 PB |
13738 | if test $ok = yes; then |
13739 | # An in-tree tool is available and we can use it | |
13740 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
13741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13742 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13743 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13744 | # We already found the complete path | |
b8025f34 | 13745 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13747 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13748 | elif test "x$target" = "x$host"; then |
13749 | # We can use an host tool | |
13750 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
13751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13752 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13753 | else |
13754 | # We need a cross tool | |
81ecdfbb RW |
13755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13756 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13757 | fi |
13758 | fi | |
4b900473 | 13759 | |
81ecdfbb RW |
13760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13761 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 13762 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13763 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13764 | # We already found the complete path | |
b8025f34 | 13765 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13767 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13768 | else |
13769 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13771 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13772 | fi |
be01d343 PB |
13773 | else |
13774 | ok=yes | |
13775 | case " ${configdirs} " in | |
13776 | *" gcc "*) ;; | |
13777 | *) ok=no ;; | |
13778 | esac | |
c6b750e1 | 13779 | |
be01d343 PB |
13780 | if test $ok = yes; then |
13781 | # An in-tree tool is available and we can use it | |
13782 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13784 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13785 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13786 | # We already found the complete path | |
b8025f34 | 13787 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13789 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13790 | elif test "x$target" = "x$host"; then |
13791 | # We can use an host tool | |
13792 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
13793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13794 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13795 | else |
13796 | # We need a cross tool | |
81ecdfbb RW |
13797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13798 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13799 | fi |
13800 | fi | |
4b900473 | 13801 | |
81ecdfbb RW |
13802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13803 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 13804 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13805 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13806 | # We already found the complete path | |
b8025f34 | 13807 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13809 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13810 | else |
13811 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13813 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13814 | fi |
be01d343 PB |
13815 | else |
13816 | ok=yes | |
13817 | case " ${configdirs} " in | |
13818 | *" gcc "*) ;; | |
13819 | *) ok=no ;; | |
13820 | esac | |
13821 | case ,${enable_languages}, in | |
13822 | *,c++,*) ;; | |
13823 | *) ok=no ;; | |
13824 | esac | |
13825 | if test $ok = yes; then | |
13826 | # An in-tree tool is available and we can use it | |
95e43135 | 13827 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
81ecdfbb RW |
13828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13829 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13830 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13831 | # We already found the complete path | |
b8025f34 | 13832 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13834 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13835 | elif test "x$target" = "x$host"; then |
13836 | # We can use an host tool | |
13837 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13839 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13840 | else |
13841 | # We need a cross tool | |
81ecdfbb RW |
13842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13843 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13844 | fi |
13845 | fi | |
4b900473 | 13846 | |
81ecdfbb RW |
13847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13848 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 13849 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13850 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13851 | # We already found the complete path | |
b8025f34 | 13852 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13854 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13855 | else |
13856 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13858 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13859 | fi |
be01d343 PB |
13860 | else |
13861 | ok=yes | |
13862 | case " ${configdirs} " in | |
13863 | *" gcc "*) ;; | |
13864 | *) ok=no ;; | |
13865 | esac | |
13866 | case ,${enable_languages}, in | |
13867 | *,c++,*) ;; | |
13868 | *) ok=no ;; | |
13869 | esac | |
13870 | if test $ok = yes; then | |
13871 | # An in-tree tool is available and we can use it | |
95e43135 | 13872 | RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
81ecdfbb RW |
13873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13874 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13875 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13876 | # We already found the complete path | |
b8025f34 | 13877 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13879 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13880 | elif test "x$target" = "x$host"; then |
13881 | # We can use an host tool | |
13882 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13884 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13885 | else |
13886 | # We need a cross tool | |
81ecdfbb RW |
13887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13888 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13889 | fi |
13890 | fi | |
4b900473 | 13891 | |
81ecdfbb RW |
13892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
13893 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 13894 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13895 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13896 | # We already found the complete path | |
b8025f34 | 13897 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13899 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13900 | else |
13901 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13903 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13904 | fi |
be01d343 PB |
13905 | else |
13906 | ok=yes | |
13907 | case " ${configdirs} " in | |
13908 | *" binutils "*) ;; | |
13909 | *) ok=no ;; | |
13910 | esac | |
c6b750e1 | 13911 | |
be01d343 PB |
13912 | if test $ok = yes; then |
13913 | # An in-tree tool is available and we can use it | |
13914 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
13915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13916 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13917 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13918 | # We already found the complete path | |
b8025f34 | 13919 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13921 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13922 | elif test "x$target" = "x$host"; then |
13923 | # We can use an host tool | |
13924 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
13925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13926 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13927 | else |
13928 | # We need a cross tool | |
81ecdfbb RW |
13929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13930 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13931 | fi |
13932 | fi | |
4b900473 | 13933 | |
81ecdfbb RW |
13934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
13935 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 13936 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13937 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13938 | # We already found the complete path | |
b8025f34 | 13939 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
13940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13941 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13942 | else |
13943 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13945 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13946 | fi |
be01d343 PB |
13947 | else |
13948 | ok=yes | |
13949 | case " ${configdirs} " in | |
13950 | *" gcc "*) ;; | |
13951 | *) ok=no ;; | |
13952 | esac | |
c6b750e1 | 13953 | |
be01d343 PB |
13954 | if test $ok = yes; then |
13955 | # An in-tree tool is available and we can use it | |
13956 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13958 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13959 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13960 | # We already found the complete path | |
b8025f34 | 13961 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
13962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13963 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13964 | elif test "x$target" = "x$host"; then |
13965 | # We can use an host tool | |
13966 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
13967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13968 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13969 | else |
13970 | # We need a cross tool | |
81ecdfbb RW |
13971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13972 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13973 | fi |
13974 | fi | |
4b900473 | 13975 | |
81ecdfbb RW |
13976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
13977 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
be01d343 | 13978 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13979 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13980 | # We already found the complete path | |
b8025f34 | 13981 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
13982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13983 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13984 | else |
13985 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13987 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13988 | fi |
be01d343 PB |
13989 | else |
13990 | ok=yes | |
13991 | case " ${configdirs} " in | |
13992 | *" gcc "*) ;; | |
13993 | *) ok=no ;; | |
13994 | esac | |
13995 | case ,${enable_languages}, in | |
13996 | *,java,*) ;; | |
13997 | *) ok=no ;; | |
13998 | esac | |
13999 | if test $ok = yes; then | |
14000 | # An in-tree tool is available and we can use it | |
14001 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14003 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14004 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14005 | # We already found the complete path | |
b8025f34 | 14006 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
14007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14008 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14009 | elif test "x$target" = "x$host"; then |
14010 | # We can use an host tool | |
14011 | GCJ_FOR_TARGET='$(GCJ)' | |
81ecdfbb RW |
14012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14013 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14014 | else |
14015 | # We need a cross tool | |
81ecdfbb RW |
14016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14017 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14018 | fi |
14019 | fi | |
4b900473 | 14020 | |
81ecdfbb RW |
14021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14022 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 14023 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14024 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14025 | # We already found the complete path | |
b8025f34 | 14026 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14028 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14029 | else |
14030 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14032 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14033 | fi |
be01d343 PB |
14034 | else |
14035 | ok=yes | |
14036 | case " ${configdirs} " in | |
14037 | *" gcc "*) ;; | |
14038 | *) ok=no ;; | |
14039 | esac | |
14040 | case ,${enable_languages}, in | |
14041 | *,fortran,*) ;; | |
14042 | *) ok=no ;; | |
14043 | esac | |
14044 | if test $ok = yes; then | |
14045 | # An in-tree tool is available and we can use it | |
14046 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14048 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14049 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14050 | # We already found the complete path | |
b8025f34 | 14051 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14053 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14054 | elif test "x$target" = "x$host"; then |
14055 | # We can use an host tool | |
14056 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
14057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14058 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14059 | else |
14060 | # We need a cross tool | |
81ecdfbb RW |
14061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14062 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14063 | fi |
14064 | fi | |
4b900473 | 14065 | |
e552509b ILT |
14066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14067 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14068 | if test "x${build}" != "x${host}" ; then | |
14069 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14070 | # We already found the complete path | |
14071 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14073 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14074 | else | |
14075 | # Canadian cross, just use what we found | |
14076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14077 | $as_echo "pre-installed" >&6; } | |
14078 | fi | |
14079 | else | |
14080 | ok=yes | |
14081 | case " ${configdirs} " in | |
14082 | *" gcc "*) ;; | |
14083 | *) ok=no ;; | |
14084 | esac | |
14085 | case ,${enable_languages}, in | |
14086 | *,go,*) ;; | |
14087 | *) ok=no ;; | |
14088 | esac | |
14089 | if test $ok = yes; then | |
14090 | # An in-tree tool is available and we can use it | |
14091 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14093 | $as_echo "just compiled" >&6; } | |
14094 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14095 | # We already found the complete path | |
14096 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14098 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14099 | elif test "x$target" = "x$host"; then | |
14100 | # We can use an host tool | |
14101 | GOC_FOR_TARGET='$(GOC)' | |
14102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14103 | $as_echo "host tool" >&6; } | |
14104 | else | |
14105 | # We need a cross tool | |
14106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14107 | $as_echo "pre-installed" >&6; } | |
14108 | fi | |
14109 | fi | |
14110 | ||
81ecdfbb RW |
14111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14112 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 14113 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14114 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14115 | # We already found the complete path | |
b8025f34 | 14116 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14118 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14119 | else |
14120 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14122 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14123 | fi |
be01d343 PB |
14124 | else |
14125 | ok=yes | |
14126 | case " ${configdirs} " in | |
14127 | *" ld "*) ;; | |
14128 | *) ok=no ;; | |
14129 | esac | |
c6b750e1 | 14130 | |
be01d343 PB |
14131 | if test $ok = yes; then |
14132 | # An in-tree tool is available and we can use it | |
14133 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
14134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14135 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14136 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14137 | # We already found the complete path | |
b8025f34 | 14138 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14140 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14141 | elif test "x$target" = "x$host"; then |
14142 | # We can use an host tool | |
14143 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
14144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14145 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14146 | else |
14147 | # We need a cross tool | |
81ecdfbb RW |
14148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14149 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14150 | fi |
14151 | fi | |
4b900473 | 14152 | |
81ecdfbb RW |
14153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14154 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 14155 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14156 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14157 | # We already found the complete path | |
b8025f34 | 14158 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14160 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14161 | else |
14162 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14164 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14165 | fi |
be01d343 | 14166 | else |
2429c060 PB |
14167 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14168 | # We already found the complete path | |
b8025f34 | 14169 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14171 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 14172 | elif test "x$target" = "x$host"; then |
be01d343 PB |
14173 | # We can use an host tool |
14174 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
14175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14176 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14177 | else |
14178 | # We need a cross tool | |
81ecdfbb RW |
14179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14180 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14181 | fi |
14182 | fi | |
4b900473 | 14183 | |
81ecdfbb RW |
14184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14185 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 14186 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14187 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14188 | # We already found the complete path | |
b8025f34 | 14189 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14191 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14192 | else |
14193 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14195 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14196 | fi |
be01d343 PB |
14197 | else |
14198 | ok=yes | |
14199 | case " ${configdirs} " in | |
14200 | *" binutils "*) ;; | |
14201 | *) ok=no ;; | |
14202 | esac | |
c6b750e1 | 14203 | |
be01d343 PB |
14204 | if test $ok = yes; then |
14205 | # An in-tree tool is available and we can use it | |
14206 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
14207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14208 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14209 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14210 | # We already found the complete path | |
b8025f34 | 14211 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14213 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14214 | elif test "x$target" = "x$host"; then |
14215 | # We can use an host tool | |
14216 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
14217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14218 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14219 | else |
14220 | # We need a cross tool | |
81ecdfbb RW |
14221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14222 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14223 | fi |
14224 | fi | |
4b900473 | 14225 | |
81ecdfbb RW |
14226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14227 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 14228 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14229 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14230 | # We already found the complete path | |
b8025f34 | 14231 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14233 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14234 | else |
14235 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14237 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14238 | fi |
be01d343 PB |
14239 | else |
14240 | ok=yes | |
14241 | case " ${configdirs} " in | |
14242 | *" binutils "*) ;; | |
14243 | *) ok=no ;; | |
14244 | esac | |
c6b750e1 | 14245 | |
be01d343 PB |
14246 | if test $ok = yes; then |
14247 | # An in-tree tool is available and we can use it | |
14248 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
14249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14250 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14251 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14252 | # We already found the complete path | |
b8025f34 | 14253 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14255 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14256 | elif test "x$target" = "x$host"; then |
14257 | # We can use an host tool | |
14258 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
14259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14260 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14261 | else |
14262 | # We need a cross tool | |
81ecdfbb RW |
14263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14264 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14265 | fi |
14266 | fi | |
4b900473 | 14267 | |
81ecdfbb RW |
14268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14269 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 14270 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14271 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14272 | # We already found the complete path | |
b8025f34 | 14273 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14275 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14276 | else |
14277 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14279 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14280 | fi |
be01d343 PB |
14281 | else |
14282 | ok=yes | |
14283 | case " ${configdirs} " in | |
14284 | *" binutils "*) ;; | |
14285 | *) ok=no ;; | |
14286 | esac | |
c6b750e1 | 14287 | |
be01d343 PB |
14288 | if test $ok = yes; then |
14289 | # An in-tree tool is available and we can use it | |
14290 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
14291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14292 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14293 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14294 | # We already found the complete path | |
b8025f34 | 14295 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14297 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14298 | elif test "x$target" = "x$host"; then |
14299 | # We can use an host tool | |
14300 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
14301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14302 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14303 | else |
14304 | # We need a cross tool | |
81ecdfbb RW |
14305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14306 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14307 | fi |
14308 | fi | |
4b900473 | 14309 | |
b121d7d4 DD |
14310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14311 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14312 | if test "x${build}" != "x${host}" ; then | |
14313 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14314 | # We already found the complete path | |
14315 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14317 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14318 | else | |
14319 | # Canadian cross, just use what we found | |
14320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14321 | $as_echo "pre-installed" >&6; } | |
14322 | fi | |
14323 | else | |
14324 | ok=yes | |
14325 | case " ${configdirs} " in | |
14326 | *" binutils "*) ;; | |
14327 | *) ok=no ;; | |
14328 | esac | |
14329 | ||
14330 | if test $ok = yes; then | |
14331 | # An in-tree tool is available and we can use it | |
14332 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14334 | $as_echo "just compiled" >&6; } | |
14335 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14336 | # We already found the complete path | |
14337 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14339 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14340 | elif test "x$target" = "x$host"; then | |
14341 | # We can use an host tool | |
14342 | READELF_FOR_TARGET='$(READELF)' | |
14343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14344 | $as_echo "host tool" >&6; } | |
14345 | else | |
14346 | # We need a cross tool | |
14347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14348 | $as_echo "pre-installed" >&6; } | |
14349 | fi | |
14350 | fi | |
14351 | ||
81ecdfbb RW |
14352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14353 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 14354 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14355 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14356 | # We already found the complete path | |
b8025f34 | 14357 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14359 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14360 | else |
14361 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14363 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14364 | fi |
be01d343 PB |
14365 | else |
14366 | ok=yes | |
14367 | case " ${configdirs} " in | |
14368 | *" binutils "*) ;; | |
14369 | *) ok=no ;; | |
14370 | esac | |
c6b750e1 | 14371 | |
be01d343 PB |
14372 | if test $ok = yes; then |
14373 | # An in-tree tool is available and we can use it | |
9b980aa1 | 14374 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
14375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14376 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14377 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14378 | # We already found the complete path | |
b8025f34 | 14379 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14381 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14382 | elif test "x$target" = "x$host"; then |
14383 | # We can use an host tool | |
14384 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
14385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14386 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14387 | else |
14388 | # We need a cross tool | |
81ecdfbb RW |
14389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14390 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14391 | fi |
14392 | fi | |
4b900473 | 14393 | |
81ecdfbb RW |
14394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14395 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 14396 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14397 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14398 | # We already found the complete path | |
b8025f34 | 14399 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14401 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14402 | else |
14403 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14405 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14406 | fi |
be01d343 PB |
14407 | else |
14408 | ok=yes | |
14409 | case " ${configdirs} " in | |
14410 | *" binutils "*) ;; | |
14411 | *) ok=no ;; | |
14412 | esac | |
c6b750e1 | 14413 | |
be01d343 PB |
14414 | if test $ok = yes; then |
14415 | # An in-tree tool is available and we can use it | |
14416 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
14417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14418 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14419 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14420 | # We already found the complete path | |
b8025f34 | 14421 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14423 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14424 | elif test "x$target" = "x$host"; then |
14425 | # We can use an host tool | |
14426 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
14427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14428 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14429 | else |
14430 | # We need a cross tool | |
81ecdfbb RW |
14431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14432 | $as_echo "pre-installed" >&6; } | |
be01d343 | 14433 | fi |
a0da8069 | 14434 | fi |
54752a6b | 14435 | |
81ecdfbb RW |
14436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14437 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
14438 | if test "x${build}" != "x${host}" ; then |
14439 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14440 | # We already found the complete path | |
14441 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14443 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14444 | else |
14445 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14447 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14448 | fi |
14449 | else | |
14450 | ok=yes | |
14451 | case " ${configdirs} " in | |
14452 | *" binutils "*) ;; | |
14453 | *) ok=no ;; | |
14454 | esac | |
14455 | ||
14456 | if test $ok = yes; then | |
14457 | # An in-tree tool is available and we can use it | |
14458 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
14459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14460 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
14461 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14462 | # We already found the complete path | |
14463 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14465 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14466 | elif test "x$target" = "x$host"; then |
14467 | # We can use an host tool | |
14468 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
14469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14470 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
14471 | else |
14472 | # We need a cross tool | |
81ecdfbb RW |
14473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14474 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14475 | fi |
14476 | fi | |
14477 | ||
54752a6b NN |
14478 | |
14479 | ||
be01d343 | 14480 | |
4b900473 | 14481 | |
a0da8069 NN |
14482 | # Certain tools may need extra flags. |
14483 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14484 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14485 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14486 | ||
be01d343 PB |
14487 | # When building target libraries, except in a Canadian cross, we use |
14488 | # the same toolchain as the compiler we just built. | |
14489 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14490 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14491 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14492 | if test $host = $build; then | |
14493 | case " $configdirs " in | |
14494 | *" gcc "*) | |
14495 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14496 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14497 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14498 | ;; | |
14499 | esac | |
14500 | fi | |
14501 | ||
14502 | ||
14503 | ||
14504 | ||
14505 | ||
81ecdfbb RW |
14506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14507 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14508 | # Check whether --enable-maintainer-mode was given. | |
14509 | if test "${enable_maintainer_mode+set}" = set; then : | |
14510 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
14511 | else |
14512 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
14513 | fi |
14514 | ||
14515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14516 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
14517 | |
14518 | ||
14519 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14520 | MAINTAINER_MODE_TRUE= | |
14521 | MAINTAINER_MODE_FALSE='#' | |
14522 | else | |
14523 | MAINTAINER_MODE_TRUE='#' | |
14524 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 14525 | fi |
3d5e36ae AO |
14526 | MAINT=$MAINTAINER_MODE_TRUE |
14527 | ||
1d39f329 NN |
14528 | # --------------------- |
14529 | # GCC bootstrap support | |
14530 | # --------------------- | |
14531 | ||
14532 | # Stage specific cflags for build. | |
14533 | stage1_cflags="-g" | |
14534 | case $build in | |
14535 | vax-*-*) | |
14536 | case ${GCC} in | |
14537 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14538 | *) stage1_cflags="-g -J" ;; | |
14539 | esac ;; | |
1d39f329 NN |
14540 | esac |
14541 | ||
1d89b610 | 14542 | |
1d39f329 | 14543 | |
8a0d8a5c | 14544 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
14545 | # Check whether --enable-stage1-checking was given. |
14546 | if test "${enable_stage1_checking+set}" = set; then : | |
14547 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 14548 | else |
5566c1fa | 14549 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
2abc4e65 | 14550 | stage1_checking=--enable-checking=yes,types |
8a0d8a5c | 14551 | else |
5566c1fa | 14552 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 14553 | fi |
81ecdfbb | 14554 | fi |
8a0d8a5c PB |
14555 | |
14556 | ||
c6b750e1 | 14557 | |
81ecdfbb RW |
14558 | # Enable -Werror in bootstrap stage2 and later. |
14559 | # Check whether --enable-werror was given. | |
14560 | if test "${enable_werror+set}" = set; then : | |
14561 | enableval=$enable_werror; | |
1d39f329 | 14562 | else |
a0323144 | 14563 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
1d39f329 | 14564 | enable_werror=yes |
79fcd0ec PB |
14565 | else |
14566 | enable_werror=no | |
14567 | fi | |
81ecdfbb RW |
14568 | fi |
14569 | ||
1a6f2dc7 NN |
14570 | case ${enable_werror} in |
14571 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14572 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
14573 | esac |
14574 | ||
14575 | ||
82033c9b JBG |
14576 | # Enable --enable-host-shared. |
14577 | # Check whether --enable-host-shared was given. | |
14578 | if test "${enable_host_shared+set}" = set; then : | |
14579 | enableval=$enable_host_shared; host_shared=$enableval | |
14580 | else | |
14581 | host_shared=no | |
14582 | fi | |
14583 | ||
14584 | ||
14585 | ||
e8a5fa9c RW |
14586 | # Specify what files to not compare during bootstrap. |
14587 | ||
14588 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14589 | case "$target" in | |
14590 | hppa*64*-*-hpux*) ;; | |
14591 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
1488e230 | 14592 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
e8a5fa9c RW |
14593 | esac |
14594 | ||
14595 | ||
81ecdfbb RW |
14596 | ac_config_files="$ac_config_files Makefile" |
14597 | ||
c6b750e1 | 14598 | cat >confcache <<\_ACEOF |
a0da8069 NN |
14599 | # This file is a shell script that caches the results of configure |
14600 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
14601 | # scripts and configure runs, see configure's option --config-cache. |
14602 | # It is not useful on other systems. If it contains results you don't | |
14603 | # want to keep, you may remove or edit it. | |
a0da8069 | 14604 | # |
c6b750e1 DJ |
14605 | # config.status only pays attention to the cache file if you give it |
14606 | # the --recheck option to rerun configure. | |
a0da8069 | 14607 | # |
c6b750e1 DJ |
14608 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14609 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14610 | # following values. | |
14611 | ||
14612 | _ACEOF | |
14613 | ||
a0da8069 NN |
14614 | # The following way of writing the cache mishandles newlines in values, |
14615 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14616 | # So, we kill variables containing newlines. |
a0da8069 NN |
14617 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14618 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14619 | ( |
14620 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14621 | eval ac_val=\$$ac_var | |
14622 | case $ac_val in #( | |
14623 | *${as_nl}*) | |
14624 | case $ac_var in #( | |
14625 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14626 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14627 | esac | |
14628 | case $ac_var in #( | |
14629 | _ | IFS | as_nl) ;; #( | |
14630 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14631 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14632 | esac ;; | |
14633 | esac | |
14634 | done | |
14635 | ||
c6b750e1 | 14636 | (set) 2>&1 | |
81ecdfbb RW |
14637 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14638 | *${as_nl}ac_space=\ *) | |
14639 | # `set' does not quote correctly, so add quotes: double-quote | |
14640 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
14641 | sed -n \ |
14642 | "s/'/'\\\\''/g; | |
14643 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14644 | ;; #( |
c6b750e1 DJ |
14645 | *) |
14646 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14647 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 14648 | ;; |
81ecdfbb RW |
14649 | esac | |
14650 | sort | |
14651 | ) | | |
c6b750e1 | 14652 | sed ' |
81ecdfbb | 14653 | /^ac_cv_env_/b end |
c6b750e1 | 14654 | t clear |
81ecdfbb | 14655 | :clear |
c6b750e1 DJ |
14656 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14657 | t end | |
81ecdfbb RW |
14658 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14659 | :end' >>confcache | |
14660 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14661 | if test -w "$cache_file"; then | |
14662 | test "x$cache_file" != "x/dev/null" && | |
14663 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14664 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
c6b750e1 | 14665 | cat confcache >$cache_file |
a0da8069 | 14666 | else |
81ecdfbb RW |
14667 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14668 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 14669 | fi |
852e5f18 | 14670 | fi |
a0da8069 | 14671 | rm -f confcache |
852e5f18 | 14672 | |
a0da8069 NN |
14673 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14674 | # Let make expand exec_prefix. | |
14675 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 14676 | |
a0da8069 NN |
14677 | # Transform confdefs.h into DEFS. |
14678 | # Protect against shell expansion while executing Makefile rules. | |
14679 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
14680 | # |
14681 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 14682 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 14683 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
14684 | ac_script=' |
14685 | :mline | |
14686 | /\\$/{ | |
14687 | N | |
14688 | s,\\\n,, | |
14689 | b mline | |
14690 | } | |
c6b750e1 | 14691 | t clear |
81ecdfbb RW |
14692 | :clear |
14693 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 14694 | t quote |
81ecdfbb | 14695 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 14696 | t quote |
81ecdfbb RW |
14697 | b any |
14698 | :quote | |
14699 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14700 | s/\[/\\&/g | |
14701 | s/\]/\\&/g | |
14702 | s/\$/$$/g | |
14703 | H | |
14704 | :any | |
14705 | ${ | |
14706 | g | |
14707 | s/^\n// | |
14708 | s/\n/ /g | |
14709 | p | |
14710 | } | |
14711 | ' | |
14712 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
14713 | |
14714 | ||
14715 | ac_libobjs= | |
14716 | ac_ltlibobjs= | |
14717 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14718 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14719 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14720 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14721 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14722 | # will be set to the directory where LIBOBJS objects are built. | |
14723 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14724 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
14725 | done |
14726 | LIBOBJS=$ac_libobjs | |
852e5f18 | 14727 | |
c6b750e1 | 14728 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 14729 | |
cac3d6c4 | 14730 | |
c6b750e1 DJ |
14731 | |
14732 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 14733 | ac_write_fail=0 |
c6b750e1 DJ |
14734 | ac_clean_files_save=$ac_clean_files |
14735 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14736 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14737 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14738 | as_write_fail=0 | |
14739 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
14740 | #! $SHELL |
14741 | # Generated by $as_me. | |
a0da8069 | 14742 | # Run this file to recreate the current configuration. |
a0da8069 | 14743 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 14744 | # configure, is in config.log if it exists. |
376a0e54 | 14745 | |
c6b750e1 DJ |
14746 | debug=false |
14747 | ac_cs_recheck=false | |
14748 | ac_cs_silent=false | |
c6b750e1 | 14749 | |
81ecdfbb RW |
14750 | SHELL=\${CONFIG_SHELL-$SHELL} |
14751 | export SHELL | |
14752 | _ASEOF | |
14753 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14754 | ## -------------------- ## | |
14755 | ## M4sh Initialization. ## | |
14756 | ## -------------------- ## | |
14757 | ||
14758 | # Be more Bourne compatible | |
14759 | DUALCASE=1; export DUALCASE # for MKS sh | |
14760 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
14761 | emulate sh |
14762 | NULLCMD=: | |
81ecdfbb | 14763 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
14764 | # is contrary to our usage. Disable this feature. |
14765 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14766 | setopt NO_GLOB_SUBST |
14767 | else | |
14768 | case `(set -o) 2>/dev/null` in #( | |
14769 | *posix*) : | |
14770 | set -o posix ;; #( | |
14771 | *) : | |
14772 | ;; | |
14773 | esac | |
c6b750e1 | 14774 | fi |
c6b750e1 | 14775 | |
81ecdfbb RW |
14776 | |
14777 | as_nl=' | |
14778 | ' | |
14779 | export as_nl | |
14780 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14781 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14782 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14783 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14784 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14785 | # but without wasting forks for bash or zsh. | |
14786 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14787 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14788 | as_echo='print -r --' | |
14789 | as_echo_n='print -rn --' | |
14790 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14791 | as_echo='printf %s\n' | |
14792 | as_echo_n='printf %s' | |
14793 | else | |
14794 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14795 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14796 | as_echo_n='/usr/ucb/echo -n' | |
14797 | else | |
14798 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14799 | as_echo_n_body='eval | |
14800 | arg=$1; | |
14801 | case $arg in #( | |
14802 | *"$as_nl"*) | |
14803 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14804 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14805 | esac; | |
14806 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14807 | ' | |
14808 | export as_echo_n_body | |
14809 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14810 | fi | |
14811 | export as_echo_body | |
14812 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
14813 | fi |
14814 | ||
81ecdfbb RW |
14815 | # The user is always right. |
14816 | if test "${PATH_SEPARATOR+set}" != set; then | |
14817 | PATH_SEPARATOR=: | |
14818 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14819 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14820 | PATH_SEPARATOR=';' | |
14821 | } | |
14822 | fi | |
14823 | ||
14824 | ||
14825 | # IFS | |
14826 | # We need space, tab and new line, in precisely that order. Quoting is | |
14827 | # there to prevent editors from complaining about space-tab. | |
14828 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14829 | # splitting by setting IFS to empty value.) | |
14830 | IFS=" "" $as_nl" | |
14831 | ||
14832 | # Find who we are. Look in the path if we contain no directory separator. | |
14833 | case $0 in #(( | |
14834 | *[\\/]* ) as_myself=$0 ;; | |
14835 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14836 | for as_dir in $PATH | |
14837 | do | |
14838 | IFS=$as_save_IFS | |
14839 | test -z "$as_dir" && as_dir=. | |
14840 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14841 | done | |
14842 | IFS=$as_save_IFS | |
14843 | ||
14844 | ;; | |
14845 | esac | |
14846 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14847 | # in which case we are not to be found in the path. | |
14848 | if test "x$as_myself" = x; then | |
14849 | as_myself=$0 | |
14850 | fi | |
14851 | if test ! -f "$as_myself"; then | |
14852 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14853 | exit 1 | |
14854 | fi | |
c6b750e1 | 14855 | |
81ecdfbb RW |
14856 | # Unset variables that we do not need and which cause bugs (e.g. in |
14857 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14858 | # suppresses any "Segmentation fault" message there. '((' could | |
14859 | # trigger a bug in pdksh 5.2.14. | |
14860 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14861 | do eval test x\${$as_var+set} = xset \ | |
14862 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14863 | done | |
c6b750e1 DJ |
14864 | PS1='$ ' |
14865 | PS2='> ' | |
14866 | PS4='+ ' | |
14867 | ||
14868 | # NLS nuisances. | |
81ecdfbb RW |
14869 | LC_ALL=C |
14870 | export LC_ALL | |
14871 | LANGUAGE=C | |
14872 | export LANGUAGE | |
14873 | ||
14874 | # CDPATH. | |
14875 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14876 | ||
14877 | ||
14878 | # as_fn_error ERROR [LINENO LOG_FD] | |
14879 | # --------------------------------- | |
14880 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14881 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14882 | # script with status $?, using 1 if that was 0. | |
14883 | as_fn_error () | |
14884 | { | |
14885 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14886 | if test "$3"; then | |
14887 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14888 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
c6b750e1 | 14889 | fi |
81ecdfbb RW |
14890 | $as_echo "$as_me: error: $1" >&2 |
14891 | as_fn_exit $as_status | |
14892 | } # as_fn_error | |
14893 | ||
14894 | ||
14895 | # as_fn_set_status STATUS | |
14896 | # ----------------------- | |
14897 | # Set $? to STATUS, without forking. | |
14898 | as_fn_set_status () | |
14899 | { | |
14900 | return $1 | |
14901 | } # as_fn_set_status | |
14902 | ||
14903 | # as_fn_exit STATUS | |
14904 | # ----------------- | |
14905 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14906 | as_fn_exit () | |
14907 | { | |
14908 | set +e | |
14909 | as_fn_set_status $1 | |
14910 | exit $1 | |
14911 | } # as_fn_exit | |
14912 | ||
14913 | # as_fn_unset VAR | |
14914 | # --------------- | |
14915 | # Portably unset VAR. | |
14916 | as_fn_unset () | |
14917 | { | |
14918 | { eval $1=; unset $1;} | |
14919 | } | |
14920 | as_unset=as_fn_unset | |
14921 | # as_fn_append VAR VALUE | |
14922 | # ---------------------- | |
14923 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14924 | # advantage of any shell optimizations that allow amortized linear growth over | |
14925 | # repeated appends, instead of the typical quadratic growth present in naive | |
14926 | # implementations. | |
14927 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14928 | eval 'as_fn_append () | |
14929 | { | |
14930 | eval $1+=\$2 | |
14931 | }' | |
14932 | else | |
14933 | as_fn_append () | |
14934 | { | |
14935 | eval $1=\$$1\$2 | |
14936 | } | |
14937 | fi # as_fn_append | |
14938 | ||
14939 | # as_fn_arith ARG... | |
14940 | # ------------------ | |
14941 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14942 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14943 | # must be portable across $(()) and expr. | |
14944 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14945 | eval 'as_fn_arith () | |
14946 | { | |
14947 | as_val=$(( $* )) | |
14948 | }' | |
14949 | else | |
14950 | as_fn_arith () | |
14951 | { | |
14952 | as_val=`expr "$@" || test $? -eq 1` | |
14953 | } | |
14954 | fi # as_fn_arith | |
14955 | ||
c6b750e1 | 14956 | |
81ecdfbb RW |
14957 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14958 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
14959 | as_expr=expr |
14960 | else | |
14961 | as_expr=false | |
14962 | fi | |
14963 | ||
81ecdfbb | 14964 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
14965 | as_basename=basename |
14966 | else | |
14967 | as_basename=false | |
14968 | fi | |
14969 | ||
81ecdfbb RW |
14970 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14971 | as_dirname=dirname | |
14972 | else | |
14973 | as_dirname=false | |
14974 | fi | |
c6b750e1 | 14975 | |
81ecdfbb | 14976 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
14977 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14978 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14979 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14980 | $as_echo X/"$0" | | |
14981 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14982 | s//\1/ | |
14983 | q | |
14984 | } | |
14985 | /^X\/\(\/\/\)$/{ | |
14986 | s//\1/ | |
14987 | q | |
14988 | } | |
14989 | /^X\/\(\/\).*/{ | |
14990 | s//\1/ | |
14991 | q | |
14992 | } | |
14993 | s/.*/./; q'` | |
c6b750e1 | 14994 | |
c6b750e1 DJ |
14995 | # Avoid depending upon Character Ranges. |
14996 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14997 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14998 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14999 | as_cr_digits='0123456789' | |
15000 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15001 | ||
81ecdfbb RW |
15002 | ECHO_C= ECHO_N= ECHO_T= |
15003 | case `echo -n x` in #((((( | |
15004 | -n*) | |
15005 | case `echo 'xy\c'` in | |
15006 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15007 | xy) ECHO_C='\c';; | |
15008 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15009 | ECHO_T=' ';; | |
15010 | esac;; | |
15011 | *) | |
15012 | ECHO_N='-n';; | |
c6b750e1 DJ |
15013 | esac |
15014 | ||
81ecdfbb RW |
15015 | rm -f conf$$ conf$$.exe conf$$.file |
15016 | if test -d conf$$.dir; then | |
15017 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 15018 | else |
81ecdfbb RW |
15019 | rm -f conf$$.dir |
15020 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 15021 | fi |
81ecdfbb RW |
15022 | if (echo >conf$$.file) 2>/dev/null; then |
15023 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 15024 | as_ln_s='ln -s' |
81ecdfbb RW |
15025 | # ... but there are two gotchas: |
15026 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15027 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15028 | # In both cases, we have to default to `cp -p'. | |
15029 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15030 | as_ln_s='cp -p' | |
15031 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15032 | as_ln_s=ln | |
15033 | else | |
15034 | as_ln_s='cp -p' | |
c6b750e1 | 15035 | fi |
c6b750e1 DJ |
15036 | else |
15037 | as_ln_s='cp -p' | |
15038 | fi | |
81ecdfbb RW |
15039 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15040 | rmdir conf$$.dir 2>/dev/null | |
15041 | ||
15042 | ||
15043 | # as_fn_mkdir_p | |
15044 | # ------------- | |
15045 | # Create "$as_dir" as a directory, including parents if necessary. | |
15046 | as_fn_mkdir_p () | |
15047 | { | |
15048 | ||
15049 | case $as_dir in #( | |
15050 | -*) as_dir=./$as_dir;; | |
15051 | esac | |
15052 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15053 | as_dirs= | |
15054 | while :; do | |
15055 | case $as_dir in #( | |
15056 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15057 | *) as_qdir=$as_dir;; | |
15058 | esac | |
15059 | as_dirs="'$as_qdir' $as_dirs" | |
15060 | as_dir=`$as_dirname -- "$as_dir" || | |
15061 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15062 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15063 | X"$as_dir" : 'X\(//\)$' \| \ | |
15064 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15065 | $as_echo X"$as_dir" | | |
15066 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15067 | s//\1/ | |
15068 | q | |
15069 | } | |
15070 | /^X\(\/\/\)[^/].*/{ | |
15071 | s//\1/ | |
15072 | q | |
15073 | } | |
15074 | /^X\(\/\/\)$/{ | |
15075 | s//\1/ | |
15076 | q | |
15077 | } | |
15078 | /^X\(\/\).*/{ | |
15079 | s//\1/ | |
15080 | q | |
15081 | } | |
15082 | s/.*/./; q'` | |
15083 | test -d "$as_dir" && break | |
15084 | done | |
15085 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15086 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
15087 | ||
c6b750e1 | 15088 | |
81ecdfbb | 15089 | } # as_fn_mkdir_p |
c6b750e1 | 15090 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 15091 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
15092 | else |
15093 | test -d ./-p && rmdir ./-p | |
15094 | as_mkdir_p=false | |
15095 | fi | |
15096 | ||
81ecdfbb RW |
15097 | if test -x / >/dev/null 2>&1; then |
15098 | as_test_x='test -x' | |
15099 | else | |
15100 | if ls -dL / >/dev/null 2>&1; then | |
15101 | as_ls_L_option=L | |
15102 | else | |
15103 | as_ls_L_option= | |
15104 | fi | |
15105 | as_test_x=' | |
15106 | eval sh -c '\'' | |
15107 | if test -d "$1"; then | |
15108 | test -d "$1/."; | |
15109 | else | |
15110 | case $1 in #( | |
15111 | -*)set "./$1";; | |
15112 | esac; | |
15113 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
15114 | ???[sx]*):;;*)false;;esac;fi | |
15115 | '\'' sh | |
15116 | ' | |
15117 | fi | |
15118 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
15119 | |
15120 | # Sed expression to map a string onto a valid CPP name. | |
15121 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15122 | ||
15123 | # Sed expression to map a string onto a valid variable name. | |
15124 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15125 | ||
15126 | ||
c6b750e1 | 15127 | exec 6>&1 |
81ecdfbb RW |
15128 | ## ----------------------------------- ## |
15129 | ## Main body of $CONFIG_STATUS script. ## | |
15130 | ## ----------------------------------- ## | |
15131 | _ASEOF | |
15132 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15133 | ||
15134 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15135 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 15136 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
15137 | # values after options handling. |
15138 | ac_log=" | |
c6b750e1 | 15139 | This file was extended by $as_me, which was |
81ecdfbb | 15140 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
15141 | |
15142 | CONFIG_FILES = $CONFIG_FILES | |
15143 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15144 | CONFIG_LINKS = $CONFIG_LINKS | |
15145 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15146 | $ $0 $@ | |
15147 | ||
81ecdfbb RW |
15148 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15149 | " | |
15150 | ||
c6b750e1 DJ |
15151 | _ACEOF |
15152 | ||
81ecdfbb RW |
15153 | case $ac_config_files in *" |
15154 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15155 | esac | |
c6b750e1 | 15156 | |
c6b750e1 | 15157 | |
c6b750e1 | 15158 | |
81ecdfbb RW |
15159 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15160 | # Files that config.status was made for. | |
15161 | config_files="$ac_config_files" | |
c6b750e1 | 15162 | |
81ecdfbb | 15163 | _ACEOF |
c6b750e1 | 15164 | |
81ecdfbb | 15165 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15166 | ac_cs_usage="\ |
81ecdfbb RW |
15167 | \`$as_me' instantiates files and other configuration actions |
15168 | from templates according to the current configuration. Unless the files | |
15169 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 15170 | |
81ecdfbb | 15171 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
15172 | |
15173 | -h, --help print this help, then exit | |
81ecdfbb RW |
15174 | -V, --version print version number and configuration settings, then exit |
15175 | -q, --quiet, --silent | |
15176 | do not print progress messages | |
c6b750e1 DJ |
15177 | -d, --debug don't remove temporary files |
15178 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
15179 | --file=FILE[:TEMPLATE] |
15180 | instantiate the configuration file FILE | |
c6b750e1 DJ |
15181 | |
15182 | Configuration files: | |
15183 | $config_files | |
15184 | ||
81ecdfbb | 15185 | Report bugs to the package provider." |
c6b750e1 | 15186 | |
81ecdfbb RW |
15187 | _ACEOF |
15188 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
c6b750e1 DJ |
15189 | ac_cs_version="\\ |
15190 | config.status | |
81ecdfbb RW |
15191 | configured by $0, generated by GNU Autoconf 2.64, |
15192 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
c6b750e1 | 15193 | |
81ecdfbb | 15194 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
15195 | This config.status script is free software; the Free Software Foundation |
15196 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
15197 | |
15198 | ac_pwd='$ac_pwd' | |
15199 | srcdir='$srcdir' | |
15200 | INSTALL='$INSTALL' | |
8e957354 | 15201 | AWK='$AWK' |
81ecdfbb | 15202 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
15203 | _ACEOF |
15204 | ||
81ecdfbb RW |
15205 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15206 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
15207 | ac_need_defaults=: |
15208 | while test $# != 0 | |
a0da8069 | 15209 | do |
c6b750e1 DJ |
15210 | case $1 in |
15211 | --*=*) | |
81ecdfbb RW |
15212 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15213 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
15214 | ac_shift=: |
15215 | ;; | |
81ecdfbb | 15216 | *) |
c6b750e1 DJ |
15217 | ac_option=$1 |
15218 | ac_optarg=$2 | |
15219 | ac_shift=shift | |
15220 | ;; | |
c6b750e1 DJ |
15221 | esac |
15222 | ||
15223 | case $ac_option in | |
15224 | # Handling of the options. | |
a0da8069 | 15225 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 15226 | ac_cs_recheck=: ;; |
81ecdfbb RW |
15227 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15228 | $as_echo "$ac_cs_version"; exit ;; | |
15229 | --debug | --debu | --deb | --de | --d | -d ) | |
c6b750e1 DJ |
15230 | debug=: ;; |
15231 | --file | --fil | --fi | --f ) | |
15232 | $ac_shift | |
81ecdfbb RW |
15233 | case $ac_optarg in |
15234 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15235 | esac | |
15236 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 15237 | ac_need_defaults=false;; |
81ecdfbb RW |
15238 | --he | --h | --help | --hel | -h ) |
15239 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
15240 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15241 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15242 | ac_cs_silent=: ;; | |
15243 | ||
15244 | # This is an error. | |
81ecdfbb RW |
15245 | -*) as_fn_error "unrecognized option: \`$1' |
15246 | Try \`$0 --help' for more information." ;; | |
c6b750e1 | 15247 | |
81ecdfbb RW |
15248 | *) as_fn_append ac_config_targets " $1" |
15249 | ac_need_defaults=false ;; | |
c6b750e1 | 15250 | |
376a0e54 | 15251 | esac |
c6b750e1 | 15252 | shift |
376a0e54 CM |
15253 | done |
15254 | ||
c6b750e1 | 15255 | ac_configure_extra_args= |
376a0e54 | 15256 | |
c6b750e1 DJ |
15257 | if $ac_cs_silent; then |
15258 | exec 6>/dev/null | |
15259 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15260 | fi | |
376a0e54 | 15261 | |
c6b750e1 | 15262 | _ACEOF |
81ecdfbb | 15263 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 15264 | if \$ac_cs_recheck; then |
81ecdfbb RW |
15265 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15266 | shift | |
15267 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15268 | CONFIG_SHELL='$SHELL' | |
15269 | export CONFIG_SHELL | |
15270 | exec "\$@" | |
c6b750e1 DJ |
15271 | fi |
15272 | ||
15273 | _ACEOF | |
81ecdfbb RW |
15274 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15275 | exec 5>>config.log | |
15276 | { | |
15277 | echo | |
15278 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15279 | ## Running $as_me. ## | |
15280 | _ASBOX | |
15281 | $as_echo "$ac_log" | |
15282 | } >&5 | |
c6b750e1 | 15283 | |
81ecdfbb RW |
15284 | _ACEOF |
15285 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
15286 | # |
15287 | # INIT-COMMANDS | |
15288 | # | |
15289 | extrasub_build="$extrasub_build" | |
15290 | extrasub_host="$extrasub_host" | |
15291 | extrasub_target="$extrasub_target" | |
15292 | ||
81ecdfbb | 15293 | _ACEOF |
c6b750e1 | 15294 | |
81ecdfbb | 15295 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15296 | |
81ecdfbb | 15297 | # Handling of arguments. |
c6b750e1 DJ |
15298 | for ac_config_target in $ac_config_targets |
15299 | do | |
81ecdfbb RW |
15300 | case $ac_config_target in |
15301 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15302 | ||
15303 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
c6b750e1 DJ |
15304 | esac |
15305 | done | |
15306 | ||
81ecdfbb | 15307 | |
c6b750e1 DJ |
15308 | # If the user did not use the arguments to specify the items to instantiate, |
15309 | # then the envvar interface is used. Set only those that are not. | |
15310 | # We use the long form for the default assignment because of an extremely | |
15311 | # bizarre bug on SunOS 4.1.3. | |
15312 | if $ac_need_defaults; then | |
15313 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15314 | fi | |
15315 | ||
15316 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 15317 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 15318 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
15319 | # Hook for its removal unless debugging. |
15320 | # Note that there is a small window in which the directory will not be cleaned: | |
15321 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
15322 | $debug || |
15323 | { | |
81ecdfbb RW |
15324 | tmp= |
15325 | trap 'exit_status=$? | |
15326 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15327 | ' 0 | |
15328 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 15329 | } |
c6b750e1 DJ |
15330 | # Create a (secure) tmp directory for tmp files. |
15331 | ||
15332 | { | |
81ecdfbb | 15333 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
c6b750e1 DJ |
15334 | test -n "$tmp" && test -d "$tmp" |
15335 | } || | |
15336 | { | |
81ecdfbb RW |
15337 | tmp=./conf$$-$RANDOM |
15338 | (umask 077 && mkdir "$tmp") | |
15339 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
15340 | ||
15341 | # Set up the scripts for CONFIG_FILES section. | |
15342 | # No need to generate them if there are no CONFIG_FILES. | |
15343 | # This happens for instance with `./config.status config.h'. | |
15344 | if test -n "$CONFIG_FILES"; then | |
15345 | ||
15346 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15347 | ac_cs_awk_getline=: | |
15348 | ac_cs_awk_pipe_init= | |
15349 | ac_cs_awk_read_file=' | |
15350 | while ((getline aline < (F[key])) > 0) | |
15351 | print(aline) | |
15352 | close(F[key])' | |
15353 | ac_cs_awk_pipe_fini= | |
15354 | else | |
15355 | ac_cs_awk_getline=false | |
15356 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15357 | ac_cs_awk_read_file=' | |
15358 | print "|#_!!_#|" | |
15359 | print "cat " F[key] " &&" | |
15360 | '$ac_cs_awk_pipe_init | |
15361 | # The final `:' finishes the AND list. | |
15362 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15363 | fi | |
15364 | ac_cr=`echo X | tr X '\015'` | |
15365 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15366 | # But we know of no other shell where ac_cr would be empty at this | |
15367 | # point, so we can use a bashism as a fallback. | |
15368 | if test "x$ac_cr" = x; then | |
15369 | eval ac_cr=\$\'\\r\' | |
15370 | fi | |
15371 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15372 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15373 | ac_cs_awk_cr='\r' | |
15374 | else | |
15375 | ac_cs_awk_cr=$ac_cr | |
15376 | fi | |
15377 | ||
15378 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15379 | _ACEOF | |
15380 | ||
15381 | # Create commands to substitute file output variables. | |
c6b750e1 | 15382 | { |
81ecdfbb RW |
15383 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
15384 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
15385 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
15386 | echo "_ACAWK" && | |
15387 | echo "_ACEOF" | |
15388 | } >conf$$files.sh && | |
15389 | . ./conf$$files.sh || | |
15390 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15391 | rm -f conf$$files.sh | |
c6b750e1 | 15392 | |
81ecdfbb RW |
15393 | { |
15394 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15395 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15396 | echo "_ACEOF" | |
15397 | } >conf$$subs.sh || | |
15398 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15399 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15400 | ac_delim='%!_!# ' | |
15401 | for ac_last_try in false false false false false :; do | |
15402 | . ./conf$$subs.sh || | |
15403 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15404 | ||
15405 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15406 | if test $ac_delim_n = $ac_delim_num; then | |
15407 | break | |
15408 | elif $ac_last_try; then | |
15409 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15410 | else | |
15411 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15412 | fi | |
15413 | done | |
15414 | rm -f conf$$subs.sh | |
15415 | ||
15416 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15417 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
c6b750e1 | 15418 | _ACEOF |
81ecdfbb RW |
15419 | sed -n ' |
15420 | h | |
15421 | s/^/S["/; s/!.*/"]=/ | |
15422 | p | |
15423 | g | |
15424 | s/^[^!]*!// | |
15425 | :repl | |
15426 | t repl | |
15427 | s/'"$ac_delim"'$// | |
15428 | t delim | |
15429 | :nl | |
15430 | h | |
15431 | s/\(.\{148\}\).*/\1/ | |
15432 | t more1 | |
15433 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15434 | p | |
15435 | n | |
15436 | b repl | |
15437 | :more1 | |
15438 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15439 | p | |
15440 | g | |
15441 | s/.\{148\}// | |
15442 | t nl | |
15443 | :delim | |
15444 | h | |
15445 | s/\(.\{148\}\).*/\1/ | |
15446 | t more2 | |
15447 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15448 | p | |
15449 | b | |
15450 | :more2 | |
15451 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15452 | p | |
15453 | g | |
15454 | s/.\{148\}// | |
15455 | t delim | |
15456 | ' <conf$$subs.awk | sed ' | |
15457 | /^[^""]/{ | |
15458 | N | |
15459 | s/\n// | |
15460 | } | |
15461 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15462 | rm -f conf$$subs.awk | |
15463 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15464 | _ACAWK | |
15465 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15466 | for (key in S) S_is_set[key] = 1 | |
15467 | FS = "\a" | |
15468 | \$ac_cs_awk_pipe_init | |
15469 | } | |
15470 | { | |
15471 | line = $ 0 | |
15472 | nfields = split(line, field, "@") | |
15473 | substed = 0 | |
15474 | len = length(field[1]) | |
15475 | for (i = 2; i < nfields; i++) { | |
15476 | key = field[i] | |
15477 | keylen = length(key) | |
15478 | if (S_is_set[key]) { | |
15479 | value = S[key] | |
15480 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15481 | len += length(value) + length(field[++i]) | |
15482 | substed = 1 | |
15483 | } else | |
15484 | len += 1 + keylen | |
15485 | } | |
15486 | if (nfields == 3 && !substed) { | |
15487 | key = field[2] | |
15488 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15489 | \$ac_cs_awk_read_file | |
15490 | next | |
15491 | } | |
15492 | } | |
15493 | print line | |
15494 | } | |
15495 | \$ac_cs_awk_pipe_fini | |
15496 | _ACAWK | |
15497 | _ACEOF | |
15498 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15499 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15500 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15501 | else | |
15502 | cat | |
15503 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15504 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15505 | _ACEOF | |
15506 | ||
15507 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15508 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15509 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15510 | # (actually we leave an empty line to preserve line numbers). | |
15511 | if test "x$srcdir" = x.; then | |
15512 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15513 | s/:*\$(srcdir):*/:/ | |
15514 | s/:*\${srcdir}:*/:/ | |
15515 | s/:*@srcdir@:*/:/ | |
15516 | s/^\([^=]*=[ ]*\):*/\1/ | |
15517 | s/:*$// | |
15518 | s/^[^=]*=[ ]*$// | |
15519 | }' | |
15520 | fi | |
c6b750e1 | 15521 | |
81ecdfbb RW |
15522 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15523 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 15524 | |
c6b750e1 | 15525 | |
81ecdfbb RW |
15526 | eval set X " :F $CONFIG_FILES " |
15527 | shift | |
15528 | for ac_tag | |
15529 | do | |
15530 | case $ac_tag in | |
15531 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15532 | esac | |
15533 | case $ac_mode$ac_tag in | |
15534 | :[FHL]*:*);; | |
15535 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15536 | :[FH]-) ac_tag=-:-;; | |
15537 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15538 | esac | |
15539 | ac_save_IFS=$IFS | |
15540 | IFS=: | |
15541 | set x $ac_tag | |
15542 | IFS=$ac_save_IFS | |
15543 | shift | |
15544 | ac_file=$1 | |
15545 | shift | |
252b5132 | 15546 | |
81ecdfbb RW |
15547 | case $ac_mode in |
15548 | :L) ac_source=$1;; | |
15549 | :[FH]) | |
15550 | ac_file_inputs= | |
15551 | for ac_f | |
15552 | do | |
15553 | case $ac_f in | |
15554 | -) ac_f="$tmp/stdin";; | |
15555 | *) # Look for the file first in the build tree, then in the source tree | |
15556 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15557 | # because $ac_f cannot contain `:'. | |
15558 | test -f "$ac_f" || | |
15559 | case $ac_f in | |
15560 | [\\/$]*) false;; | |
15561 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15562 | esac || | |
15563 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15564 | esac | |
15565 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15566 | as_fn_append ac_file_inputs " '$ac_f'" | |
15567 | done | |
c6b750e1 | 15568 | |
81ecdfbb RW |
15569 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15570 | # use $as_me), people would be surprised to read: | |
15571 | # /* config.h. Generated by config.status. */ | |
15572 | configure_input='Generated from '` | |
15573 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15574 | `' by configure.' | |
15575 | if test x"$ac_file" != x-; then | |
15576 | configure_input="$ac_file. $configure_input" | |
15577 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15578 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 15579 | fi |
81ecdfbb RW |
15580 | # Neutralize special characters interpreted by sed in replacement strings. |
15581 | case $configure_input in #( | |
15582 | *\&* | *\|* | *\\* ) | |
15583 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15584 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15585 | *) ac_sed_conf_input=$configure_input;; | |
15586 | esac | |
cac3d6c4 | 15587 | |
81ecdfbb RW |
15588 | case $ac_tag in |
15589 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15590 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15591 | esac | |
15592 | ;; | |
a0da8069 | 15593 | esac |
252b5132 | 15594 | |
81ecdfbb | 15595 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
15596 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15597 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15598 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15599 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15600 | $as_echo X"$ac_file" | | |
15601 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15602 | s//\1/ | |
15603 | q | |
15604 | } | |
15605 | /^X\(\/\/\)[^/].*/{ | |
15606 | s//\1/ | |
15607 | q | |
15608 | } | |
15609 | /^X\(\/\/\)$/{ | |
15610 | s//\1/ | |
15611 | q | |
15612 | } | |
15613 | /^X\(\/\).*/{ | |
15614 | s//\1/ | |
15615 | q | |
15616 | } | |
15617 | s/.*/./; q'` | |
15618 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 15619 | ac_builddir=. |
252b5132 | 15620 | |
81ecdfbb RW |
15621 | case "$ac_dir" in |
15622 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15623 | *) | |
15624 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15625 | # A ".." for each directory in $ac_dir_suffix. | |
15626 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15627 | case $ac_top_builddir_sub in | |
15628 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15629 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15630 | esac ;; | |
15631 | esac | |
15632 | ac_abs_top_builddir=$ac_pwd | |
15633 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15634 | # for backward compatibility: | |
15635 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
15636 | |
15637 | case $srcdir in | |
81ecdfbb | 15638 | .) # We are building in place. |
c6b750e1 | 15639 | ac_srcdir=. |
81ecdfbb RW |
15640 | ac_top_srcdir=$ac_top_builddir_sub |
15641 | ac_abs_top_srcdir=$ac_pwd ;; | |
15642 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 15643 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15644 | ac_top_srcdir=$srcdir |
15645 | ac_abs_top_srcdir=$srcdir ;; | |
15646 | *) # Relative name. | |
15647 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15648 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15649 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 15650 | esac |
81ecdfbb | 15651 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 15652 | |
252b5132 | 15653 | |
81ecdfbb RW |
15654 | case $ac_mode in |
15655 | :F) | |
15656 | # | |
15657 | # CONFIG_FILE | |
15658 | # | |
c6b750e1 DJ |
15659 | |
15660 | case $INSTALL in | |
15661 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 15662 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 15663 | esac |
81ecdfbb | 15664 | _ACEOF |
252b5132 | 15665 | |
81ecdfbb RW |
15666 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15667 | # If the template does not know about datarootdir, expand it. | |
15668 | # FIXME: This hack should be removed a few years after 2.60. | |
15669 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15670 | ac_sed_dataroot=' | |
15671 | /datarootdir/ { | |
15672 | p | |
15673 | q | |
15674 | } | |
15675 | /@datadir@/p | |
15676 | /@docdir@/p | |
15677 | /@infodir@/p | |
15678 | /@localedir@/p | |
15679 | /@mandir@/p' | |
15680 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15681 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15682 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15683 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15684 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 15685 | _ACEOF |
81ecdfbb RW |
15686 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15687 | ac_datarootdir_hack=' | |
15688 | s&@datadir@&$datadir&g | |
15689 | s&@docdir@&$docdir&g | |
15690 | s&@infodir@&$infodir&g | |
15691 | s&@localedir@&$localedir&g | |
15692 | s&@mandir@&$mandir&g | |
15693 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15694 | esac | |
15695 | _ACEOF | |
15696 | ||
15697 | # Neutralize VPATH when `$srcdir' = `.'. | |
15698 | # Shell code in configure.ac might set extrasub. | |
15699 | # FIXME: do we really want to maintain this feature? | |
15700 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15701 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
15702 | $extrasub |
15703 | _ACEOF | |
81ecdfbb | 15704 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
15705 | :t |
15706 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
15707 | s|@configure_input@|$ac_sed_conf_input|;t t |
15708 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15709 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15710 | s&@srcdir@&$ac_srcdir&;t t | |
15711 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15712 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15713 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15714 | s&@builddir@&$ac_builddir&;t t | |
15715 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15716 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15717 | s&@INSTALL@&$ac_INSTALL&;t t | |
15718 | $ac_datarootdir_hack | |
15719 | " | |
15720 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15721 | if $ac_cs_awk_getline; then | |
15722 | $AWK -f "$tmp/subs.awk" | |
15723 | else | |
15724 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15725 | fi >$tmp/out \ | |
15726 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15727 | ||
15728 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15729 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15730 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15731 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15732 | which seems to be undefined. Please make sure it is defined." >&5 | |
15733 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15734 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15735 | ||
15736 | rm -f "$tmp/stdin" | |
15737 | case $ac_file in | |
15738 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
15739 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15740 | esac \ | |
15741 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15742 | ;; | |
c148b4cb | 15743 | |
c148b4cb | 15744 | |
c148b4cb | 15745 | |
81ecdfbb RW |
15746 | esac |
15747 | ||
06a51eac RW |
15748 | |
15749 | case $ac_file$ac_mode in | |
15750 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15751 | sed "$extrasub_host" | | |
15752 | sed "$extrasub_target" > mf$$ | |
15753 | mv -f mf$$ Makefile ;; | |
15754 | ||
15755 | esac | |
81ecdfbb RW |
15756 | done # for ac_tag |
15757 | ||
15758 | ||
15759 | as_fn_exit 0 | |
c6b750e1 | 15760 | _ACEOF |
c6b750e1 DJ |
15761 | ac_clean_files=$ac_clean_files_save |
15762 | ||
81ecdfbb RW |
15763 | test $ac_write_fail = 0 || |
15764 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15765 | ||
c6b750e1 DJ |
15766 | |
15767 | # configure is writing to config.log, and then calls config.status. | |
15768 | # config.status does its own redirection, appending to config.log. | |
15769 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15770 | # by configure, so config.status won't be able to write to it; its | |
15771 | # output is simply discarded. So we exec the FD to /dev/null, | |
15772 | # effectively closing config.log, so it can be properly (re)opened and | |
15773 | # appended to by config.status. When coming back to configure, we | |
15774 | # need to make the FD available again. | |
15775 | if test "$no_create" != yes; then | |
15776 | ac_cs_success=: | |
15777 | ac_config_status_args= | |
15778 | test "$silent" = yes && | |
15779 | ac_config_status_args="$ac_config_status_args --quiet" | |
15780 | exec 5>/dev/null | |
15781 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15782 | exec 5>>config.log | |
15783 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15784 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
15785 | $ac_cs_success || as_fn_exit $? |
15786 | fi | |
15787 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15788 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15789 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 15790 | fi |
c148b4cb | 15791 |